@osdk/api 2.54.0 → 2.55.0-main-c40b6e5f007c9a377e3232eaa21c9aa8e0e3fc73
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 +7 -0
- package/build/browser/experimental/transformAndWait.js +3 -3
- package/build/browser/experimental/transformAndWait.js.map +1 -1
- package/build/browser/public/unstable.js +1 -2
- package/build/browser/public/unstable.js.map +1 -1
- package/build/cjs/public/unstable.cjs +3 -11
- package/build/cjs/public/unstable.cjs.map +1 -1
- package/build/cjs/public/unstable.d.cts +7 -29
- package/build/esm/experimental/transformAndWait.js +3 -3
- package/build/esm/experimental/transformAndWait.js.map +1 -1
- package/build/esm/public/unstable.js +1 -2
- package/build/esm/public/unstable.js.map +1 -1
- package/build/types/experimental/transformAndWait.d.ts +6 -6
- package/build/types/experimental/transformAndWait.d.ts.map +1 -1
- package/build/types/public/unstable.d.ts +1 -2
- package/build/types/public/unstable.d.ts.map +1 -1
- package/package.json +1 -1
- package/build/browser/experimental/createMediaReference.js +0 -35
- package/build/browser/experimental/createMediaReference.js.map +0 -1
- package/build/esm/experimental/createMediaReference.js +0 -35
- package/build/esm/experimental/createMediaReference.js.map +0 -1
- package/build/types/experimental/createMediaReference.d.ts +0 -28
- package/build/types/experimental/createMediaReference.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @osdk/api
|
|
2
2
|
|
|
3
|
+
## 2.55.0-main-c40b6e5f007c9a377e3232eaa21c9aa8e0e3fc73
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c40b6e5: Remove the experimental `__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference` export. To upload media, pass `{ data, fileName }` directly to an Action's media parameter; the client uploads it via `uploadMedia` and links the resulting media item.
|
|
8
|
+
- f27a119: Rename the experimental `__EXPERIMENTAL__NOT_SUPPORTED_YET__transformAndWait` export to `transformAndWait`, and change its argument from `mediaReference: MediaReference` to `media: Media`. It is still only exported from `@osdk/api/unstable`. Callers holding a media property can now pass it straight through instead of unwrapping it with `getMediaReference()` first.
|
|
9
|
+
|
|
3
10
|
## 2.54.0
|
|
4
11
|
|
|
5
12
|
## 2.53.0
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
* Submits a transformation job for a media item, polls until completion,
|
|
27
27
|
* and returns the transformed content.
|
|
28
28
|
*
|
|
29
|
-
* @param args.
|
|
29
|
+
* @param args.media - The media item to transform
|
|
30
30
|
* @param args.transformation - The {@link MediaTransformation} to apply
|
|
31
31
|
* @param args.options - Polling options (interval and timeout)
|
|
32
32
|
*
|
|
33
33
|
* @returns The transformed media content as a Response
|
|
34
34
|
*/
|
|
35
35
|
|
|
36
|
-
export const
|
|
37
|
-
name: "
|
|
36
|
+
export const transformAndWait = {
|
|
37
|
+
name: "transformAndWait",
|
|
38
38
|
type: "experiment",
|
|
39
39
|
version: "2.8.0"
|
|
40
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformAndWait.js","names":["
|
|
1
|
+
{"version":3,"file":"transformAndWait.js","names":["transformAndWait","name","type","version"],"sources":["transformAndWait.ts"],"sourcesContent":["/*\n * Copyright 2026 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 */\n\nimport type { Media } from \"../object/Media.js\";\nimport type { Experiment } from \"./Experiment.js\";\nimport type { MediaTransformation } from \"./MediaTransformation.js\";\n\n/**\n * Options for polling a media transformation job.\n *\n * @experimental\n */\nexport interface TransformOptions {\n /** Milliseconds between status polls. Defaults to 3000. */\n pollIntervalMs?: number;\n /** Maximum milliseconds to wait before timing out. Defaults to 30000. */\n pollTimeoutMs?: number;\n}\n\n/**\n * @experimental This feature is experimental and might change in the future.\n *\n * Submits a transformation job for a media item, polls until completion,\n * and returns the transformed content.\n *\n * @param args.media - The media item to transform\n * @param args.transformation - The {@link MediaTransformation} to apply\n * @param args.options - Polling options (interval and timeout)\n *\n * @returns The transformed media content as a Response\n */\ntype TransformAndWaitFn = (args: {\n media: Media;\n transformation: MediaTransformation;\n options?: TransformOptions;\n}) => Promise<Response>;\n\nexport const transformAndWait: Experiment<\n \"2.8.0\",\n \"transformAndWait\",\n { transformAndWait: TransformAndWaitFn }\n> = {\n name: \"transformAndWait\",\n type: \"experiment\",\n version: \"2.8.0\",\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA,OAAO,MAAMA,gBAIZ,GAAG;EACFC,IAAI,EAAE,kBAAkB;EACxBC,IAAI,EAAE,YAAY;EAClBC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
|
@@ -14,13 +14,12 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference } from "../experimental/createMediaReference.js";
|
|
18
17
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction } from "../experimental/executeStreamingFunction.js";
|
|
19
18
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid } from "../experimental/fetchOneByRid.js";
|
|
20
19
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid } from "../experimental/fetchPageByRid.js";
|
|
21
20
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from "../experimental/getBulkLinks.js";
|
|
22
21
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet } from "../experimental/subscribeToNoTypeObjectSet.js";
|
|
23
|
-
export {
|
|
22
|
+
export { transformAndWait } from "../experimental/transformAndWait.js";
|
|
24
23
|
export { MediaTransformationError, MediaTransformationFailedError, MediaTransformationTimeoutError } from "../object/MediaTransformationErrors.js";
|
|
25
24
|
// Shapes (unstable — will graduate to @osdk/api/shapes when stable)
|
|
26
25
|
export { configToShapeDefinition, createShapeBuilder, isSourcePkSymbol, ShapeNullabilityError, SourcePrimaryKeySymbol } from "../shapes/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unstable.js","names":["
|
|
1
|
+
{"version":3,"file":"unstable.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks","__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet","transformAndWait","MediaTransformationError","MediaTransformationFailedError","MediaTransformationTimeoutError","configToShapeDefinition","createShapeBuilder","isSourcePkSymbol","ShapeNullabilityError","SourcePrimaryKeySymbol"],"sources":["unstable.ts"],"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 */\n\nexport type { Experiment, ExperimentFns } from \"../experimental/Experiment.js\";\n\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction } from \"../experimental/executeStreamingFunction.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid } from \"../experimental/fetchOneByRid.js\";\nexport {\n __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid,\n type FetchPageByRidPayload,\n} from \"../experimental/fetchPageByRid.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from \"../experimental/getBulkLinks.js\";\nexport type {\n AnnotateGeometry,\n Annotation,\n AudioEncoding,\n AudioOperation,\n AudioToTextOperation,\n BoundingBox,\n Color,\n ContrastType,\n DicomToImageOperation,\n DocumentTextExtractionConfig,\n DocumentToDocumentOperation,\n DocumentToImageOperation,\n DocumentToTextOperation,\n EmailToAttachmentOperation,\n EmailToTextOperation,\n ImageOperation,\n ImagePixelCoordinate,\n ImageRegionPolygon,\n ImageSpec,\n ImageToDocumentOperation,\n ImageToEmbeddingOperation,\n ImageToTextOperation,\n LayoutAwareExtractionParameters,\n LlmSpec,\n MediaTransformation,\n OcrLanguageOrScript,\n OcrOutputFormat,\n OcrParameters,\n PageRange,\n SpreadsheetToTextOperation,\n TranscribeOutputFormat,\n VideoOperation,\n VideoToArchiveOperation,\n VideoToAudioOperation,\n VideoToImageOperation,\n VideoToTextOperation,\n VlmPreprocessingConfig,\n} from \"../experimental/MediaTransformation.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet } from \"../experimental/subscribeToNoTypeObjectSet.js\";\nexport {\n transformAndWait,\n type TransformOptions,\n} from \"../experimental/transformAndWait.js\";\nexport {\n MediaTransformationError,\n MediaTransformationFailedError,\n MediaTransformationTimeoutError,\n} from \"../object/MediaTransformationErrors.js\";\n\nexport type { EXPERIMENTAL_BulkLinkResult } from \"../objectSet/BulkLinkResult.js\";\nexport type { MinimalObjectSet } from \"../objectSet/ObjectSet.js\";\n\n// Shapes (unstable — will graduate to @osdk/api/shapes when stable)\nexport {\n configToShapeDefinition,\n createShapeBuilder,\n isSourcePkSymbol,\n ShapeNullabilityError,\n SourcePrimaryKeySymbol,\n} from \"../shapes/index.js\";\n\nexport type {\n InferShapeDefinition,\n InlineLinkConfig,\n InlineShapeConfig,\n LinkLoadConfig,\n LinkStatus,\n NullabilityViolation,\n PropertyType,\n RequiredProperty,\n ShapeBaseType,\n ShapeBuilder,\n ShapeDefinition,\n ShapeDerivedLinks,\n ShapeInstance,\n ShapeLinkBuilder,\n ShapeLinkResult,\n} from \"../shapes/index.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,2DAA2D,QAAQ,6CAA6C;AACzH,SAASC,gDAAgD,QAAQ,kCAAkC;AACnG,SACEC,iDAAiD,QAE5C,mCAAmC;AAC1C,SAASC,+CAA+C,QAAQ,iCAAiC;AAwCjG,SAASC,6DAA6D,QAAQ,+CAA+C;AAC7H,SACEC,gBAAgB,QAEX,qCAAqC;AAC5C,SACEC,wBAAwB,EACxBC,8BAA8B,EAC9BC,+BAA+B,QAC1B,wCAAwC;AAK/C;AACA,SACEC,uBAAuB,EACvBC,kBAAkB,EAClBC,gBAAgB,EAChBC,qBAAqB,EACrBC,sBAAsB,QACjB,oBAAoB","ignoreList":[]}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
// src/experimental/createMediaReference.ts
|
|
4
|
-
var __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference = {
|
|
5
|
-
name: "__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference",
|
|
6
|
-
type: "experiment",
|
|
7
|
-
version: "2.1.0"
|
|
8
|
-
};
|
|
9
|
-
|
|
10
3
|
// src/experimental/executeStreamingFunction.ts
|
|
11
4
|
var __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction = {
|
|
12
5
|
name: "__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction",
|
|
@@ -43,8 +36,8 @@ var __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet = {
|
|
|
43
36
|
};
|
|
44
37
|
|
|
45
38
|
// src/experimental/transformAndWait.ts
|
|
46
|
-
var
|
|
47
|
-
name: "
|
|
39
|
+
var transformAndWait = {
|
|
40
|
+
name: "transformAndWait",
|
|
48
41
|
type: "experiment",
|
|
49
42
|
version: "2.8.0"
|
|
50
43
|
};
|
|
@@ -470,15 +463,14 @@ exports.MediaTransformationFailedError = MediaTransformationFailedError;
|
|
|
470
463
|
exports.MediaTransformationTimeoutError = MediaTransformationTimeoutError;
|
|
471
464
|
exports.ShapeNullabilityError = ShapeNullabilityError;
|
|
472
465
|
exports.SourcePrimaryKeySymbol = SourcePrimaryKeySymbol;
|
|
473
|
-
exports.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference = __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference;
|
|
474
466
|
exports.__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction = __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction;
|
|
475
467
|
exports.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid = __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid;
|
|
476
468
|
exports.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid = __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid;
|
|
477
469
|
exports.__EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks = __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks;
|
|
478
470
|
exports.__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet = __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet;
|
|
479
|
-
exports.__EXPERIMENTAL__NOT_SUPPORTED_YET__transformAndWait = __EXPERIMENTAL__NOT_SUPPORTED_YET__transformAndWait;
|
|
480
471
|
exports.configToShapeDefinition = configToShapeDefinition;
|
|
481
472
|
exports.createShapeBuilder = createShapeBuilder;
|
|
482
473
|
exports.isSourcePkSymbol = isSourcePkSymbol;
|
|
474
|
+
exports.transformAndWait = transformAndWait;
|
|
483
475
|
//# sourceMappingURL=unstable.cjs.map
|
|
484
476
|
//# sourceMappingURL=unstable.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/experimental/createMediaReference.ts","../../../src/experimental/executeStreamingFunction.ts","../../../src/experimental/fetchOneByRid.ts","../../../src/experimental/fetchPageByRid.ts","../../../src/experimental/getBulkLinks.ts","../../../src/experimental/subscribeToNoTypeObjectSet.ts","../../../src/experimental/transformAndWait.ts","../../../src/object/MediaTransformationErrors.ts","../../../src/shapes/ShapeDefinition.ts","../../../src/shapes/computeShapeId.ts","../../../src/shapes/ShapeBuilder.ts","../../../src/shapes/configToShapeDefinition.ts"],"names":[],"mappings":";;;AA6BO,IAAM,uDAAA,GAA0D;AAAA,EACrE,IAAA,EAAM,yDAAA;AAAA,EACN,IAAA,EAAM,YAAA;AAAA,EACN,OAAA,EAAS;AACX;;;ACTO,IAAM,2DAAA,GAA8D;AAAA,EACzE,IAAA,EAAM,6DAAA;AAAA,EACN,IAAA,EAAM,YAAA;AAAA,EACN,OAAA,EAAS;AACX;;;ACZO,IAAM,gDAAA,GAAmD;AAAA,EAC9D,IAAA,EAAM,kDAAA;AAAA,EACN,IAAA,EAAM,YAAA;AAAA,EACN,OAAA,EAAS;AACX;;;ACJO,IAAM,iDAAA,GAAoD;AAAA,EAC/D,IAAA,EAAM,mDAAA;AAAA,EACN,IAAA,EAAM,YAAA;AAAA,EACN,OAAA,EAAS;AACX;;;ACJO,IAAM,+CAAA,GAAkD;AAAA,EAC7D,IAAA,EAAM,iDAAA;AAAA,EACN,IAAA,EAAM,YAAA;AAAA,EACN,OAAA,EAAS;AACX;;;ACJO,IAAM,6DAAA,G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A,WAAA;AAAA,QACA,MAAA,EAAQ;AAAA,UACN,OAAO,UAAA,CAAW;AAAA;AACpB,OACD,CAAA;AAAA,IACH;AAAA,EACF;AACA,EAAA,MAAM,UAAU,cAAA,CAAe;AAAA,IAC7B,eAAA;AAAA,IACA,KAAA;AAAA,IACA;AAAA,GACD,CAAA;AACD,EAAA,OAAO;AAAA,IACL,SAAA,EAAW,OAAA;AAAA,IACX,WAAA,EAAa,MAAA;AAAA,IACb,UAAA,EAAY,QAAA;AAAA,IACZ,iBAAA,EAAmB,eAAA;AAAA,IACnB,OAAA,EAAS,OAAO,MAAA,CAAO;AAAA,MACrB,GAAG;AAAA,KACJ,CAAA;AAAA,IACD,gBAAgB,MAAA,CAAO,MAAA,CAAO,CAAC,GAAG,YAAY,CAAC,CAAA;AAAA,IAC/C,qBAAqB,EAAC;AAAA,IACtB,oBAAoB;AAAC,GACvB;AACF","file":"unstable.cjs","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 */\n\n/**\n * @experimental This feature is experimental and might change in the future.\n *\n * Uploads a media item to the media property of the specified object type.\n *\n * @param data - Data to upload as media item\n * @param fileName - Name that will be assigned as path to the uploaded media item.\n * @param objectType - Object type to which the media item will be uploaded.\n * @param propertyType - Media reference property of the corresponding object type to which the media item will be uploaded.\n *\n * @returns media reference of the uploaded media item.\n */\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference\",\n type: \"experiment\",\n version: \"2.1.0\"\n};","/*\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 */\n\n/**\n * @experimental This feature is experimental and might change in the future.\n *\n * Intended to execute a query as a streaming function, yielding results as\n * they arrive from the server. Streaming query execution is not currently\n * supported in the TypeScript OSDK.\n */\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction\",\n type: \"experiment\",\n version: \"2.19.0\"\n};","/*\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 */\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid\",\n type: \"experiment\",\n version: \"2.1.0\"\n};","/*\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 */\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid\",\n type: \"experiment\",\n version: \"2.2.0\"\n};","/*\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 */\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks\",\n type: \"experiment\",\n version: \"2.0.8\"\n};","/*\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 */\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet\",\n type: \"experiment\",\n version: \"2.19.0\"\n};","/*\n * Copyright 2026 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 */\n\n/**\n * Options for polling a media transformation job.\n *\n * @experimental\n */\n\n/**\n * @experimental This feature is experimental and might change in the future.\n *\n * Submits a transformation job for a media item, polls until completion,\n * and returns the transformed content.\n *\n * @param args.mediaReference - The media reference to transform\n * @param args.transformation - The {@link MediaTransformation} to apply\n * @param args.options - Polling options (interval and timeout)\n *\n * @returns The transformed media content as a Response\n */\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__transformAndWait = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__transformAndWait\",\n type: \"experiment\",\n version: \"2.8.0\"\n};","/*\n * Copyright 2026 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 */\n\n/**\n * Base error for media transformation failures.\n * @beta\n */\nexport class MediaTransformationError extends Error {\n constructor(message) {\n super(message);\n this.name = \"MediaTransformationError\";\n }\n}\n\n/**\n * Thrown when a media transformation job exceeds the poll timeout.\n * @beta\n */\nexport class MediaTransformationTimeoutError extends MediaTransformationError {\n constructor(jobId) {\n super(`Transformation job ${jobId} timed out polling status`);\n this.name = \"MediaTransformationTimeoutError\";\n }\n}\n\n/**\n * Thrown when a media transformation job status is FAILED.\n * @beta\n */\nexport class MediaTransformationFailedError extends MediaTransformationError {\n constructor(jobId) {\n super(`Transformation job ${jobId} failed`);\n this.name = \"MediaTransformationFailedError\";\n }\n}","/*\n * Copyright 2025 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 */\n\nexport const SourcePrimaryKeySymbol = Symbol.for(\"osdk.query.$sourcePk\");\nconst LegacyShapesSymbol = Symbol.for(\"osdk.shapes.$primaryKey\");\nexport function isSourcePkSymbol(value) {\n return typeof value === \"symbol\" && (value === SourcePrimaryKeySymbol || value === LegacyShapesSymbol);\n}\n\n/** Configuration for how a derived link is loaded at runtime. */\n\n/** The result of calling `ShapeLinkBuilder.as()`, binding a link traversal to a target shape. */\n\n/** A single link traversal step in a derived link's object set definition. */\n\n/** Sort clause for a derived link's result set. */\n\n/** A set operation (union/intersect/subtract) applied to a derived link's object set. */\n\n/** Serializable definition of a derived link's object set: link traversals, filters, ordering, and set operations. */\n\n/** How a shape handles null values for a selected property. */\n\n/** Per-property configuration stored in a shape's `__props` map. */\n\n/** A derived link definition stored in a shape's `__derivedLinks` array. */\n\n/**\n * Type projection from an OSDK type. `__props` is the single source of truth for property config.\n *\n * @typeParam BASE - The base ObjectTypeDefinition or InterfaceDefinition\n * @typeParam SELECTED_PROPS - Record of selected properties and their transformed types\n * @typeParam DERIVED_LINKS - Record of derived link names to their result types\n */\n\nexport class ShapeNullabilityError extends Error {\n constructor(shape, violations) {\n const props = violations.map(v => v.property).join(\", \");\n const shapeName = shape.__debugName ?? shape.__shapeId;\n super(`Shape \"${shapeName}\" requires these properties to be non-null: ${props}`);\n this.shape = shape;\n this.violations = violations;\n this.name = \"ShapeNullabilityError\";\n }\n}","/*\n * Copyright 2025 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 */\n\nfunction sortedStringify(obj) {\n return JSON.stringify(obj, (_, v) => v && typeof v === \"object\" && !Array.isArray(v) ? Object.fromEntries(Object.entries(v).sort(([a], [b]) => a.localeCompare(b))) : v);\n}\n\n/**\n * Computes a stable, deterministic identifier for a shape definition.\n * The ID uniquely represents the combination of base type, property\n * selections/nullability configs, and derived link definitions so\n * that identical shapes produce the same ID across calls.\n */\nexport function computeShapeId(input) {\n const canonical = canonicalizeShapeInput(input);\n return simpleHash(sortedStringify(canonical));\n}\nfunction canonicalizeShapeInput(input) {\n const sortedPropKeys = [...Object.keys(input.props)].sort();\n const canonicalProps = {};\n for (const key of sortedPropKeys) {\n const config = input.props[key];\n const op = config.nullabilityOp;\n canonicalProps[key] = op.type === \"withDefault\" ? {\n type: op.type,\n defaultValue: op.defaultValue\n } : op.type;\n }\n const canonicalLinks = input.derivedLinks.map(link => ({\n name: link.name,\n objectSetDef: canonicalizeObjectSetDef(link.objectSetDef),\n targetShapeId: link.targetShape.__shapeId\n }));\n canonicalLinks.sort((a, b) => a.name.localeCompare(b.name));\n return {\n baseType: input.baseTypeApiName,\n props: canonicalProps,\n links: canonicalLinks\n };\n}\nfunction canonicalizeObjectSetDef(def) {\n const result = {\n segments: def.segments.map(seg => ({\n type: seg.type,\n linkName: seg.linkName,\n sourceType: seg.sourceType\n }))\n };\n if (def.where) {\n result.where = JSON.parse(sortedStringify(def.where));\n }\n if (def.orderBy && def.orderBy.length > 0) {\n result.orderBy = def.orderBy.map(o => ({\n property: o.property,\n direction: o.direction\n }));\n }\n if (def.limit !== undefined) {\n result.limit = def.limit;\n }\n if (def.distinct) {\n result.distinct = true;\n }\n if (def.setOperations && def.setOperations.length > 0) {\n result.setOperations = def.setOperations.map(op => ({\n type: op.type,\n other: canonicalizeObjectSetDef(op.other)\n }));\n }\n return result;\n}\n\n// Shape IDs are used for cache keying and equality, not security,\n// so 32-bit is sufficient.\nfunction simpleHash(str) {\n let hash = 5381;\n for (let i = 0; i < str.length; i++) {\n const char = str.charCodeAt(i);\n hash = (hash << 5) + hash ^ char;\n }\n const positiveHash = hash >>> 0;\n return positiveHash.toString(16).padStart(8, \"0\");\n}","/*\n * Copyright 2025 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 */\n\nimport { computeShapeId } from \"./computeShapeId.js\";\nimport { SourcePrimaryKeySymbol } from \"./ShapeDefinition.js\";\nclass ShapeBuilderImpl {\n #state;\n constructor(state) {\n this.#state = state;\n }\n #addProps(props, type) {\n const newProps = {\n ...this.#state.props\n };\n for (const prop of props) {\n newProps[prop] = {\n nullabilityOp: {\n type\n }\n };\n }\n return newProps;\n }\n select(...props) {\n return new ShapeBuilderImpl({\n ...this.#state,\n props: this.#addProps(props, \"select\")\n });\n }\n require(...props) {\n return new ShapeBuilderImpl({\n ...this.#state,\n props: this.#addProps(props, \"require\")\n });\n }\n dropIfNull(...props) {\n return new ShapeBuilderImpl({\n ...this.#state,\n props: this.#addProps(props, \"dropIfNull\")\n });\n }\n withDefault(prop, defaultValue) {\n return new ShapeBuilderImpl({\n ...this.#state,\n props: {\n ...this.#state.props,\n [prop]: {\n nullabilityOp: {\n type: \"withDefault\",\n defaultValue\n }\n }\n }\n });\n }\n withTransform(prop, transform) {\n return new ShapeBuilderImpl({\n ...this.#state,\n props: {\n ...this.#state.props,\n [prop]: {\n nullabilityOp: {\n type: \"withTransform\",\n transform\n }\n }\n }\n });\n }\n deriveLink(name, builder) {\n const linkBuilder = createShapeLinkBuilder(this.#state.baseTypeApiName);\n const linkResult = builder(linkBuilder);\n return new ShapeBuilderImpl({\n ...this.#state,\n props: {\n ...this.#state.props\n },\n derivedLinks: [...this.#state.derivedLinks, {\n name,\n objectSetDef: linkResult.objectSetDef,\n targetShape: linkResult.targetShape,\n config: linkResult.config\n }]\n });\n }\n build() {\n const shapeId = computeShapeId({\n baseTypeApiName: this.#state.baseTypeApiName,\n props: this.#state.props,\n derivedLinks: this.#state.derivedLinks\n });\n return {\n __shapeId: shapeId,\n __debugName: this.#state.debugName,\n __baseType: this.#state.baseType,\n __baseTypeApiName: this.#state.baseTypeApiName,\n __props: Object.freeze({\n ...this.#state.props\n }),\n __derivedLinks: Object.freeze([...this.#state.derivedLinks]),\n __selectedPropsType: {},\n __derivedLinksType: {}\n };\n }\n}\nclass ShapeLinkBuilderImpl {\n #state;\n $primaryKey = SourcePrimaryKeySymbol;\n constructor(state) {\n this.#state = state;\n }\n pivotTo(link) {\n const newSegments = [...this.#state.segments, {\n type: \"pivotTo\",\n linkName: link,\n sourceType: this.#state.currentTypeApiName\n // targetType is resolved at link execution time when link metadata is available\n }];\n return new ShapeLinkBuilderImpl({\n ...this.#state,\n segments: newSegments,\n // currentTypeApiName is a hint for debugging; actual type resolution happens at execution\n currentTypeApiName: `${this.#state.currentTypeApiName}.${link}`\n });\n }\n\n /** Sets the where filter for this link. Calling multiple times replaces the previous clause (last-write-wins). */\n where(clause) {\n return new ShapeLinkBuilderImpl({\n ...this.#state,\n where: clause\n });\n }\n #setOp(type, others) {\n return new ShapeLinkBuilderImpl({\n ...this.#state,\n setOperations: [...this.#state.setOperations, ...others.map(other => ({\n type,\n other: other.toObjectSetDef()\n }))]\n });\n }\n union(...others) {\n return this.#setOp(\"union\", others);\n }\n intersect(...others) {\n return this.#setOp(\"intersect\", others);\n }\n subtract(...others) {\n return this.#setOp(\"subtract\", others);\n }\n orderBy(property, direction = \"asc\") {\n return new ShapeLinkBuilderImpl({\n ...this.#state,\n orderBy: [...this.#state.orderBy, {\n property: property,\n direction\n }]\n });\n }\n limit(n) {\n if (!Number.isInteger(n) || n <= 0) {\n throw new Error(`ShapeLinkBuilder.limit() requires a positive integer, got: ${n}`);\n }\n return new ShapeLinkBuilderImpl({\n ...this.#state,\n limit: n\n });\n }\n distinct() {\n return new ShapeLinkBuilderImpl({\n ...this.#state,\n distinct: true\n });\n }\n as(shape, config = {}) {\n // The brand is a compile-time only marker, at runtime it's just undefined\n return {\n targetShape: shape,\n objectSetDef: this.toObjectSetDef(),\n config\n };\n }\n toObjectSetDef() {\n return {\n segments: Object.freeze([...this.#state.segments]),\n where: this.#state.where,\n orderBy: this.#state.orderBy.length > 0 ? Object.freeze([...this.#state.orderBy]) : undefined,\n limit: this.#state.limit,\n distinct: this.#state.distinct || undefined,\n setOperations: this.#state.setOperations.length > 0 ? Object.freeze([...this.#state.setOperations]) : undefined\n };\n }\n}\nexport function createShapeLinkBuilder(sourceTypeApiName) {\n return new ShapeLinkBuilderImpl({\n sourceTypeApiName,\n currentTypeApiName: sourceTypeApiName,\n segments: [],\n orderBy: [],\n distinct: false,\n setOperations: []\n });\n}\n\n/**\n * Creates a new ShapeBuilder for the given base type.\n *\n * @param baseType - The base ObjectTypeDefinition or InterfaceDefinition\n * @param debugName - Optional name for debugging in DevTools\n *\n * @example\n * ```typescript\n * const SlimPlayer = createShapeBuilder(Player, \"SlimPlayer\")\n * .require(\"name\", \"age\")\n * .withDefault(\"position\", \"Unknown\")\n * .build();\n * ```\n */\nexport function createShapeBuilder(baseType, debugName) {\n const state = {\n baseType,\n baseTypeApiName: baseType.apiName,\n debugName,\n props: {},\n derivedLinks: []\n };\n return new ShapeBuilderImpl(state);\n}","/*\n * Copyright 2025 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 */\n\nimport { computeShapeId } from \"./computeShapeId.js\";\nimport { createShapeLinkBuilder } from \"./ShapeBuilder.js\";\nexport function configToShapeDefinition(baseType, config) {\n const baseTypeApiName = baseType.apiName;\n const props = {};\n const seen = new Set();\n function addProp(prop, config2) {\n if (seen.has(prop)) {\n throw new Error(`Property \"${prop}\" appears in multiple config arrays`);\n }\n seen.add(prop);\n props[prop] = config2;\n }\n if (config.require) {\n for (const prop of config.require) {\n addProp(prop, {\n nullabilityOp: {\n type: \"require\"\n }\n });\n }\n }\n if (config.select) {\n for (const prop of config.select) {\n addProp(prop, {\n nullabilityOp: {\n type: \"select\"\n }\n });\n }\n }\n if (config.dropIfNull) {\n for (const prop of config.dropIfNull) {\n addProp(prop, {\n nullabilityOp: {\n type: \"dropIfNull\"\n }\n });\n }\n }\n if (config.defaults) {\n for (const [prop, defaultValue] of Object.entries(config.defaults)) {\n addProp(prop, {\n nullabilityOp: {\n type: \"withDefault\",\n defaultValue\n }\n });\n }\n }\n if (config.transforms) {\n for (const [prop, transform] of Object.entries(config.transforms)) {\n if (typeof transform !== \"function\") {\n throw new Error(`transforms[\"${prop}\"] must be a function, got: ${typeof transform}`);\n }\n addProp(prop, {\n nullabilityOp: {\n type: \"withTransform\",\n transform\n }\n });\n }\n }\n const derivedLinks = [];\n if (config.links) {\n for (const [name, linkConfig] of Object.entries(config.links)) {\n const linkBuilder = createShapeLinkBuilder(baseTypeApiName);\n const traversed = linkConfig.via(linkBuilder);\n const objectSetDef = traversed.toObjectSetDef();\n const targetShape = linkConfig.target;\n derivedLinks.push({\n name,\n objectSetDef,\n targetShape,\n config: {\n defer: linkConfig.defer\n }\n });\n }\n }\n const shapeId = computeShapeId({\n baseTypeApiName,\n props,\n derivedLinks\n });\n return {\n __shapeId: shapeId,\n __debugName: undefined,\n __baseType: baseType,\n __baseTypeApiName: baseTypeApiName,\n __props: Object.freeze({\n ...props\n }),\n __derivedLinks: Object.freeze([...derivedLinks]),\n __selectedPropsType: {},\n __derivedLinksType: {}\n };\n}"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/experimental/executeStreamingFunction.ts","../../../src/experimental/fetchOneByRid.ts","../../../src/experimental/fetchPageByRid.ts","../../../src/experimental/getBulkLinks.ts","../../../src/experimental/subscribeToNoTypeObjectSet.ts","../../../src/experimental/transformAndWait.ts","../../../src/object/MediaTransformationErrors.ts","../../../src/shapes/ShapeDefinition.ts","../../../src/shapes/computeShapeId.ts","../../../src/shapes/ShapeBuilder.ts","../../../src/shapes/configToShapeDefinition.ts"],"names":[],"mappings":";;;AAwBO,IAAM,2DAAA,GAA8D;AAAA,EACzE,IAAA,EAAM,6DAAA;AAAA,EACN,IAAA,EAAM,YAAA;AAAA,EACN,OAAA,EAAS;AACX;;;ACZO,IAAM,gDAAA,GAAmD;AAAA,EAC9D,IAAA,EAAM,kDAAA;AAAA,EACN,IAAA,EAAM,YAAA;AAAA,EACN,OAAA,EAAS;AACX;;;ACJO,IAAM,iDAAA,GAAoD;AAAA,EAC/D,IAAA,EAAM,mDAAA;AAAA,EACN,IAAA,EAAM,YAAA;AAAA,EACN,OAAA,EAAS;AACX;;;ACJO,IAAM,+CAAA,GAAkD;AAAA,EAC7D,IAAA,EAAM,iDAAA;AAAA,EACN,IAAA,EAAM,YAAA;AAAA,EACN,OAAA,EAAS;AACX;;;ACJO,IAAM,6DAAA,GAAgE;AAAA,EAC3E,IAAA,EAAM,+DAAA;AAAA,EACN,IAAA,EAAM,YAAA;AAAA,EACN,OAAA,EAAS;AACX;;;ACeO,IAAM,gBAAA,GAAmB;AAAA,EAC9B,IAAA,EAAM,kBAAA;AAA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;AAAA,IACA,KAAA;AAAA,IACA;AAAA,GACD,CAAA;AACD,EAAA,OAAO;AAAA,IACL,SAAA,EAAW,OAAA;AAAA,IACX,WAAA,EAAa,MAAA;AAAA,IACb,UAAA,EAAY,QAAA;AAAA,IACZ,iBAAA,EAAmB,eAAA;AAAA,IACnB,OAAA,EAAS,OAAO,MAAA,CAAO;AAAA,MACrB,GAAG;AAAA,KACJ,CAAA;AAAA,IACD,gBAAgB,MAAA,CAAO,MAAA,CAAO,CAAC,GAAG,YAAY,CAAC,CAAA;AAAA,IAC/C,qBAAqB,EAAC;AAAA,IACtB,oBAAoB;AAAC,GACvB;AACF","file":"unstable.cjs","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 */\n\n/**\n * @experimental This feature is experimental and might change in the future.\n *\n * Intended to execute a query as a streaming function, yielding results as\n * they arrive from the server. Streaming query execution is not currently\n * supported in the TypeScript OSDK.\n */\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction\",\n type: \"experiment\",\n version: \"2.19.0\"\n};","/*\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 */\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid\",\n type: \"experiment\",\n version: \"2.1.0\"\n};","/*\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 */\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid\",\n type: \"experiment\",\n version: \"2.2.0\"\n};","/*\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 */\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks\",\n type: \"experiment\",\n version: \"2.0.8\"\n};","/*\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 */\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet\",\n type: \"experiment\",\n version: \"2.19.0\"\n};","/*\n * Copyright 2026 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 */\n\n/**\n * Options for polling a media transformation job.\n *\n * @experimental\n */\n\n/**\n * @experimental This feature is experimental and might change in the future.\n *\n * Submits a transformation job for a media item, polls until completion,\n * and returns the transformed content.\n *\n * @param args.media - The media item to transform\n * @param args.transformation - The {@link MediaTransformation} to apply\n * @param args.options - Polling options (interval and timeout)\n *\n * @returns The transformed media content as a Response\n */\n\nexport const transformAndWait = {\n name: \"transformAndWait\",\n type: \"experiment\",\n version: \"2.8.0\"\n};","/*\n * Copyright 2026 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 */\n\n/**\n * Base error for media transformation failures.\n * @beta\n */\nexport class MediaTransformationError extends Error {\n constructor(message) {\n super(message);\n this.name = \"MediaTransformationError\";\n }\n}\n\n/**\n * Thrown when a media transformation job exceeds the poll timeout.\n * @beta\n */\nexport class MediaTransformationTimeoutError extends MediaTransformationError {\n constructor(jobId) {\n super(`Transformation job ${jobId} timed out polling status`);\n this.name = \"MediaTransformationTimeoutError\";\n }\n}\n\n/**\n * Thrown when a media transformation job status is FAILED.\n * @beta\n */\nexport class MediaTransformationFailedError extends MediaTransformationError {\n constructor(jobId) {\n super(`Transformation job ${jobId} failed`);\n this.name = \"MediaTransformationFailedError\";\n }\n}","/*\n * Copyright 2025 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 */\n\nexport const SourcePrimaryKeySymbol = Symbol.for(\"osdk.query.$sourcePk\");\nconst LegacyShapesSymbol = Symbol.for(\"osdk.shapes.$primaryKey\");\nexport function isSourcePkSymbol(value) {\n return typeof value === \"symbol\" && (value === SourcePrimaryKeySymbol || value === LegacyShapesSymbol);\n}\n\n/** Configuration for how a derived link is loaded at runtime. */\n\n/** The result of calling `ShapeLinkBuilder.as()`, binding a link traversal to a target shape. */\n\n/** A single link traversal step in a derived link's object set definition. */\n\n/** Sort clause for a derived link's result set. */\n\n/** A set operation (union/intersect/subtract) applied to a derived link's object set. */\n\n/** Serializable definition of a derived link's object set: link traversals, filters, ordering, and set operations. */\n\n/** How a shape handles null values for a selected property. */\n\n/** Per-property configuration stored in a shape's `__props` map. */\n\n/** A derived link definition stored in a shape's `__derivedLinks` array. */\n\n/**\n * Type projection from an OSDK type. `__props` is the single source of truth for property config.\n *\n * @typeParam BASE - The base ObjectTypeDefinition or InterfaceDefinition\n * @typeParam SELECTED_PROPS - Record of selected properties and their transformed types\n * @typeParam DERIVED_LINKS - Record of derived link names to their result types\n */\n\nexport class ShapeNullabilityError extends Error {\n constructor(shape, violations) {\n const props = violations.map(v => v.property).join(\", \");\n const shapeName = shape.__debugName ?? shape.__shapeId;\n super(`Shape \"${shapeName}\" requires these properties to be non-null: ${props}`);\n this.shape = shape;\n this.violations = violations;\n this.name = \"ShapeNullabilityError\";\n }\n}","/*\n * Copyright 2025 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 */\n\nfunction sortedStringify(obj) {\n return JSON.stringify(obj, (_, v) => v && typeof v === \"object\" && !Array.isArray(v) ? Object.fromEntries(Object.entries(v).sort(([a], [b]) => a.localeCompare(b))) : v);\n}\n\n/**\n * Computes a stable, deterministic identifier for a shape definition.\n * The ID uniquely represents the combination of base type, property\n * selections/nullability configs, and derived link definitions so\n * that identical shapes produce the same ID across calls.\n */\nexport function computeShapeId(input) {\n const canonical = canonicalizeShapeInput(input);\n return simpleHash(sortedStringify(canonical));\n}\nfunction canonicalizeShapeInput(input) {\n const sortedPropKeys = [...Object.keys(input.props)].sort();\n const canonicalProps = {};\n for (const key of sortedPropKeys) {\n const config = input.props[key];\n const op = config.nullabilityOp;\n canonicalProps[key] = op.type === \"withDefault\" ? {\n type: op.type,\n defaultValue: op.defaultValue\n } : op.type;\n }\n const canonicalLinks = input.derivedLinks.map(link => ({\n name: link.name,\n objectSetDef: canonicalizeObjectSetDef(link.objectSetDef),\n targetShapeId: link.targetShape.__shapeId\n }));\n canonicalLinks.sort((a, b) => a.name.localeCompare(b.name));\n return {\n baseType: input.baseTypeApiName,\n props: canonicalProps,\n links: canonicalLinks\n };\n}\nfunction canonicalizeObjectSetDef(def) {\n const result = {\n segments: def.segments.map(seg => ({\n type: seg.type,\n linkName: seg.linkName,\n sourceType: seg.sourceType\n }))\n };\n if (def.where) {\n result.where = JSON.parse(sortedStringify(def.where));\n }\n if (def.orderBy && def.orderBy.length > 0) {\n result.orderBy = def.orderBy.map(o => ({\n property: o.property,\n direction: o.direction\n }));\n }\n if (def.limit !== undefined) {\n result.limit = def.limit;\n }\n if (def.distinct) {\n result.distinct = true;\n }\n if (def.setOperations && def.setOperations.length > 0) {\n result.setOperations = def.setOperations.map(op => ({\n type: op.type,\n other: canonicalizeObjectSetDef(op.other)\n }));\n }\n return result;\n}\n\n// Shape IDs are used for cache keying and equality, not security,\n// so 32-bit is sufficient.\nfunction simpleHash(str) {\n let hash = 5381;\n for (let i = 0; i < str.length; i++) {\n const char = str.charCodeAt(i);\n hash = (hash << 5) + hash ^ char;\n }\n const positiveHash = hash >>> 0;\n return positiveHash.toString(16).padStart(8, \"0\");\n}","/*\n * Copyright 2025 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 */\n\nimport { computeShapeId } from \"./computeShapeId.js\";\nimport { SourcePrimaryKeySymbol } from \"./ShapeDefinition.js\";\nclass ShapeBuilderImpl {\n #state;\n constructor(state) {\n this.#state = state;\n }\n #addProps(props, type) {\n const newProps = {\n ...this.#state.props\n };\n for (const prop of props) {\n newProps[prop] = {\n nullabilityOp: {\n type\n }\n };\n }\n return newProps;\n }\n select(...props) {\n return new ShapeBuilderImpl({\n ...this.#state,\n props: this.#addProps(props, \"select\")\n });\n }\n require(...props) {\n return new ShapeBuilderImpl({\n ...this.#state,\n props: this.#addProps(props, \"require\")\n });\n }\n dropIfNull(...props) {\n return new ShapeBuilderImpl({\n ...this.#state,\n props: this.#addProps(props, \"dropIfNull\")\n });\n }\n withDefault(prop, defaultValue) {\n return new ShapeBuilderImpl({\n ...this.#state,\n props: {\n ...this.#state.props,\n [prop]: {\n nullabilityOp: {\n type: \"withDefault\",\n defaultValue\n }\n }\n }\n });\n }\n withTransform(prop, transform) {\n return new ShapeBuilderImpl({\n ...this.#state,\n props: {\n ...this.#state.props,\n [prop]: {\n nullabilityOp: {\n type: \"withTransform\",\n transform\n }\n }\n }\n });\n }\n deriveLink(name, builder) {\n const linkBuilder = createShapeLinkBuilder(this.#state.baseTypeApiName);\n const linkResult = builder(linkBuilder);\n return new ShapeBuilderImpl({\n ...this.#state,\n props: {\n ...this.#state.props\n },\n derivedLinks: [...this.#state.derivedLinks, {\n name,\n objectSetDef: linkResult.objectSetDef,\n targetShape: linkResult.targetShape,\n config: linkResult.config\n }]\n });\n }\n build() {\n const shapeId = computeShapeId({\n baseTypeApiName: this.#state.baseTypeApiName,\n props: this.#state.props,\n derivedLinks: this.#state.derivedLinks\n });\n return {\n __shapeId: shapeId,\n __debugName: this.#state.debugName,\n __baseType: this.#state.baseType,\n __baseTypeApiName: this.#state.baseTypeApiName,\n __props: Object.freeze({\n ...this.#state.props\n }),\n __derivedLinks: Object.freeze([...this.#state.derivedLinks]),\n __selectedPropsType: {},\n __derivedLinksType: {}\n };\n }\n}\nclass ShapeLinkBuilderImpl {\n #state;\n $primaryKey = SourcePrimaryKeySymbol;\n constructor(state) {\n this.#state = state;\n }\n pivotTo(link) {\n const newSegments = [...this.#state.segments, {\n type: \"pivotTo\",\n linkName: link,\n sourceType: this.#state.currentTypeApiName\n // targetType is resolved at link execution time when link metadata is available\n }];\n return new ShapeLinkBuilderImpl({\n ...this.#state,\n segments: newSegments,\n // currentTypeApiName is a hint for debugging; actual type resolution happens at execution\n currentTypeApiName: `${this.#state.currentTypeApiName}.${link}`\n });\n }\n\n /** Sets the where filter for this link. Calling multiple times replaces the previous clause (last-write-wins). */\n where(clause) {\n return new ShapeLinkBuilderImpl({\n ...this.#state,\n where: clause\n });\n }\n #setOp(type, others) {\n return new ShapeLinkBuilderImpl({\n ...this.#state,\n setOperations: [...this.#state.setOperations, ...others.map(other => ({\n type,\n other: other.toObjectSetDef()\n }))]\n });\n }\n union(...others) {\n return this.#setOp(\"union\", others);\n }\n intersect(...others) {\n return this.#setOp(\"intersect\", others);\n }\n subtract(...others) {\n return this.#setOp(\"subtract\", others);\n }\n orderBy(property, direction = \"asc\") {\n return new ShapeLinkBuilderImpl({\n ...this.#state,\n orderBy: [...this.#state.orderBy, {\n property: property,\n direction\n }]\n });\n }\n limit(n) {\n if (!Number.isInteger(n) || n <= 0) {\n throw new Error(`ShapeLinkBuilder.limit() requires a positive integer, got: ${n}`);\n }\n return new ShapeLinkBuilderImpl({\n ...this.#state,\n limit: n\n });\n }\n distinct() {\n return new ShapeLinkBuilderImpl({\n ...this.#state,\n distinct: true\n });\n }\n as(shape, config = {}) {\n // The brand is a compile-time only marker, at runtime it's just undefined\n return {\n targetShape: shape,\n objectSetDef: this.toObjectSetDef(),\n config\n };\n }\n toObjectSetDef() {\n return {\n segments: Object.freeze([...this.#state.segments]),\n where: this.#state.where,\n orderBy: this.#state.orderBy.length > 0 ? Object.freeze([...this.#state.orderBy]) : undefined,\n limit: this.#state.limit,\n distinct: this.#state.distinct || undefined,\n setOperations: this.#state.setOperations.length > 0 ? Object.freeze([...this.#state.setOperations]) : undefined\n };\n }\n}\nexport function createShapeLinkBuilder(sourceTypeApiName) {\n return new ShapeLinkBuilderImpl({\n sourceTypeApiName,\n currentTypeApiName: sourceTypeApiName,\n segments: [],\n orderBy: [],\n distinct: false,\n setOperations: []\n });\n}\n\n/**\n * Creates a new ShapeBuilder for the given base type.\n *\n * @param baseType - The base ObjectTypeDefinition or InterfaceDefinition\n * @param debugName - Optional name for debugging in DevTools\n *\n * @example\n * ```typescript\n * const SlimPlayer = createShapeBuilder(Player, \"SlimPlayer\")\n * .require(\"name\", \"age\")\n * .withDefault(\"position\", \"Unknown\")\n * .build();\n * ```\n */\nexport function createShapeBuilder(baseType, debugName) {\n const state = {\n baseType,\n baseTypeApiName: baseType.apiName,\n debugName,\n props: {},\n derivedLinks: []\n };\n return new ShapeBuilderImpl(state);\n}","/*\n * Copyright 2025 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 */\n\nimport { computeShapeId } from \"./computeShapeId.js\";\nimport { createShapeLinkBuilder } from \"./ShapeBuilder.js\";\nexport function configToShapeDefinition(baseType, config) {\n const baseTypeApiName = baseType.apiName;\n const props = {};\n const seen = new Set();\n function addProp(prop, config2) {\n if (seen.has(prop)) {\n throw new Error(`Property \"${prop}\" appears in multiple config arrays`);\n }\n seen.add(prop);\n props[prop] = config2;\n }\n if (config.require) {\n for (const prop of config.require) {\n addProp(prop, {\n nullabilityOp: {\n type: \"require\"\n }\n });\n }\n }\n if (config.select) {\n for (const prop of config.select) {\n addProp(prop, {\n nullabilityOp: {\n type: \"select\"\n }\n });\n }\n }\n if (config.dropIfNull) {\n for (const prop of config.dropIfNull) {\n addProp(prop, {\n nullabilityOp: {\n type: \"dropIfNull\"\n }\n });\n }\n }\n if (config.defaults) {\n for (const [prop, defaultValue] of Object.entries(config.defaults)) {\n addProp(prop, {\n nullabilityOp: {\n type: \"withDefault\",\n defaultValue\n }\n });\n }\n }\n if (config.transforms) {\n for (const [prop, transform] of Object.entries(config.transforms)) {\n if (typeof transform !== \"function\") {\n throw new Error(`transforms[\"${prop}\"] must be a function, got: ${typeof transform}`);\n }\n addProp(prop, {\n nullabilityOp: {\n type: \"withTransform\",\n transform\n }\n });\n }\n }\n const derivedLinks = [];\n if (config.links) {\n for (const [name, linkConfig] of Object.entries(config.links)) {\n const linkBuilder = createShapeLinkBuilder(baseTypeApiName);\n const traversed = linkConfig.via(linkBuilder);\n const objectSetDef = traversed.toObjectSetDef();\n const targetShape = linkConfig.target;\n derivedLinks.push({\n name,\n objectSetDef,\n targetShape,\n config: {\n defer: linkConfig.defer\n }\n });\n }\n }\n const shapeId = computeShapeId({\n baseTypeApiName,\n props,\n derivedLinks\n });\n return {\n __shapeId: shapeId,\n __debugName: undefined,\n __baseType: baseType,\n __baseTypeApiName: baseTypeApiName,\n __props: Object.freeze({\n ...props\n }),\n __derivedLinks: Object.freeze([...derivedLinks]),\n __selectedPropsType: {},\n __derivedLinksType: {}\n };\n}"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as CompileTimeMetadata, O as ObjectOrInterfaceDefinition, bn as PropertyKeys, aS as NullabilityAdherence, bz as SelectArg, bc as Osdk, bX as ExtractOptions, ae as FetchPageArgs, af as FetchPageResult, j as OsdkBase, bY as Just, b8 as ObjectSetSubscription, d as Media } from '../ObjectSet-CinZcKIL.cjs';
|
|
2
2
|
export { bZ as MinimalObjectSet } from '../ObjectSet-CinZcKIL.cjs';
|
|
3
3
|
import { d as QueryDefinition } from '../QueryDefinition-CfQ5fevq.cjs';
|
|
4
4
|
import { P as PropertyType, S as ShapeLinkBuilder, a as ShapeDefinition, R as RequiredProperty, b as ShapeBuilder } from '../shapes-internal-C13DbYcV.cjs';
|
|
@@ -14,28 +14,6 @@ type Experiment<V extends string, T extends string = string, K extends Record<st
|
|
|
14
14
|
};
|
|
15
15
|
type ExperimentFns<B extends Experiment<string, string>> = NonNullable<B["branded"]>;
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* @experimental This feature is experimental and might change in the future.
|
|
19
|
-
*
|
|
20
|
-
* Uploads a media item to the media property of the specified object type.
|
|
21
|
-
*
|
|
22
|
-
* @param data - Data to upload as media item
|
|
23
|
-
* @param fileName - Name that will be assigned as path to the uploaded media item.
|
|
24
|
-
* @param objectType - Object type to which the media item will be uploaded.
|
|
25
|
-
* @param propertyType - Media reference property of the corresponding object type to which the media item will be uploaded.
|
|
26
|
-
*
|
|
27
|
-
* @returns media reference of the uploaded media item.
|
|
28
|
-
*/
|
|
29
|
-
type createMediaReference = <Q extends ObjectOrInterfaceDefinition, const L extends PropertyKeys.Filtered<Q, "mediaReference">>(args: {
|
|
30
|
-
data: Blob;
|
|
31
|
-
fileName: string;
|
|
32
|
-
objectType: Q;
|
|
33
|
-
propertyType: L;
|
|
34
|
-
}) => Promise<MediaReference>;
|
|
35
|
-
declare const __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference: Experiment<"2.1.0", "__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference", {
|
|
36
|
-
createMediaReference: createMediaReference;
|
|
37
|
-
}>;
|
|
38
|
-
|
|
39
17
|
type StreamingArgs<QD extends QueryDefinition<any>> = CompileTimeMetadata<QD>["signature"] extends (...args: infer A) => any ? A : never[];
|
|
40
18
|
type StreamingElement<QD extends QueryDefinition<any>> = CompileTimeMetadata<QD>["signature"] extends (...args: any[]) => Promise<infer R> ? R extends ReadonlyArray<infer E> ? E : R : never;
|
|
41
19
|
/**
|
|
@@ -842,19 +820,19 @@ interface TransformOptions {
|
|
|
842
820
|
* Submits a transformation job for a media item, polls until completion,
|
|
843
821
|
* and returns the transformed content.
|
|
844
822
|
*
|
|
845
|
-
* @param args.
|
|
823
|
+
* @param args.media - The media item to transform
|
|
846
824
|
* @param args.transformation - The {@link MediaTransformation} to apply
|
|
847
825
|
* @param args.options - Polling options (interval and timeout)
|
|
848
826
|
*
|
|
849
827
|
* @returns The transformed media content as a Response
|
|
850
828
|
*/
|
|
851
|
-
type
|
|
852
|
-
|
|
829
|
+
type TransformAndWaitFn = (args: {
|
|
830
|
+
media: Media;
|
|
853
831
|
transformation: MediaTransformation;
|
|
854
832
|
options?: TransformOptions;
|
|
855
833
|
}) => Promise<Response>;
|
|
856
|
-
declare const
|
|
857
|
-
transformAndWait:
|
|
834
|
+
declare const transformAndWait: Experiment<"2.8.0", "transformAndWait", {
|
|
835
|
+
transformAndWait: TransformAndWaitFn;
|
|
858
836
|
}>;
|
|
859
837
|
|
|
860
838
|
/**
|
|
@@ -931,4 +909,4 @@ declare function createShapeBuilder<BASE extends ObjectOrInterfaceDefinition>(ba
|
|
|
931
909
|
|
|
932
910
|
declare function configToShapeDefinition<BASE extends ObjectOrInterfaceDefinition, const C extends InlineShapeConfig<BASE>>(baseType: BASE, config: C): InferShapeDefinition<BASE, C>;
|
|
933
911
|
|
|
934
|
-
export { AnnotateGeometry, type Annotation, type AudioEncoding, AudioOperation, AudioToTextOperation, type BoundingBox, type Color, ContrastType, DicomToImageOperation, type DocumentTextExtractionConfig, DocumentToDocumentOperation, DocumentToImageOperation, DocumentToTextOperation, type EXPERIMENTAL_BulkLinkResult, EmailToAttachmentOperation, EmailToTextOperation, type Experiment, type ExperimentFns, type FetchPageByRidPayload, ImageOperation, type ImagePixelCoordinate, type ImageRegionPolygon, type ImageSpec, ImageToDocumentOperation, ImageToEmbeddingOperation, ImageToTextOperation, type InferShapeDefinition, type InlineLinkConfig, type InlineShapeConfig, type LayoutAwareExtractionParameters, type LlmSpec, MediaTransformation, MediaTransformationError, MediaTransformationFailedError, MediaTransformationTimeoutError, OcrLanguageOrScript, OcrOutputFormat, type OcrParameters, type PageRange, PropertyType, RequiredProperty, ShapeBuilder, ShapeDefinition, ShapeLinkBuilder, SpreadsheetToTextOperation, TranscribeOutputFormat, type TransformOptions, VideoOperation, VideoToArchiveOperation, VideoToAudioOperation, VideoToImageOperation, VideoToTextOperation, VlmPreprocessingConfig,
|
|
912
|
+
export { AnnotateGeometry, type Annotation, type AudioEncoding, AudioOperation, AudioToTextOperation, type BoundingBox, type Color, ContrastType, DicomToImageOperation, type DocumentTextExtractionConfig, DocumentToDocumentOperation, DocumentToImageOperation, DocumentToTextOperation, type EXPERIMENTAL_BulkLinkResult, EmailToAttachmentOperation, EmailToTextOperation, type Experiment, type ExperimentFns, type FetchPageByRidPayload, ImageOperation, type ImagePixelCoordinate, type ImageRegionPolygon, type ImageSpec, ImageToDocumentOperation, ImageToEmbeddingOperation, ImageToTextOperation, type InferShapeDefinition, type InlineLinkConfig, type InlineShapeConfig, type LayoutAwareExtractionParameters, type LlmSpec, MediaTransformation, MediaTransformationError, MediaTransformationFailedError, MediaTransformationTimeoutError, OcrLanguageOrScript, OcrOutputFormat, type OcrParameters, type PageRange, PropertyType, RequiredProperty, ShapeBuilder, ShapeDefinition, ShapeLinkBuilder, SpreadsheetToTextOperation, TranscribeOutputFormat, type TransformOptions, VideoOperation, VideoToArchiveOperation, VideoToAudioOperation, VideoToImageOperation, VideoToTextOperation, VlmPreprocessingConfig, __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction, __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid, __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid, __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks, __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet, configToShapeDefinition, createShapeBuilder, transformAndWait };
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
* Submits a transformation job for a media item, polls until completion,
|
|
27
27
|
* and returns the transformed content.
|
|
28
28
|
*
|
|
29
|
-
* @param args.
|
|
29
|
+
* @param args.media - The media item to transform
|
|
30
30
|
* @param args.transformation - The {@link MediaTransformation} to apply
|
|
31
31
|
* @param args.options - Polling options (interval and timeout)
|
|
32
32
|
*
|
|
33
33
|
* @returns The transformed media content as a Response
|
|
34
34
|
*/
|
|
35
35
|
|
|
36
|
-
export const
|
|
37
|
-
name: "
|
|
36
|
+
export const transformAndWait = {
|
|
37
|
+
name: "transformAndWait",
|
|
38
38
|
type: "experiment",
|
|
39
39
|
version: "2.8.0"
|
|
40
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformAndWait.js","names":["
|
|
1
|
+
{"version":3,"file":"transformAndWait.js","names":["transformAndWait","name","type","version"],"sources":["transformAndWait.ts"],"sourcesContent":["/*\n * Copyright 2026 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 */\n\nimport type { Media } from \"../object/Media.js\";\nimport type { Experiment } from \"./Experiment.js\";\nimport type { MediaTransformation } from \"./MediaTransformation.js\";\n\n/**\n * Options for polling a media transformation job.\n *\n * @experimental\n */\nexport interface TransformOptions {\n /** Milliseconds between status polls. Defaults to 3000. */\n pollIntervalMs?: number;\n /** Maximum milliseconds to wait before timing out. Defaults to 30000. */\n pollTimeoutMs?: number;\n}\n\n/**\n * @experimental This feature is experimental and might change in the future.\n *\n * Submits a transformation job for a media item, polls until completion,\n * and returns the transformed content.\n *\n * @param args.media - The media item to transform\n * @param args.transformation - The {@link MediaTransformation} to apply\n * @param args.options - Polling options (interval and timeout)\n *\n * @returns The transformed media content as a Response\n */\ntype TransformAndWaitFn = (args: {\n media: Media;\n transformation: MediaTransformation;\n options?: TransformOptions;\n}) => Promise<Response>;\n\nexport const transformAndWait: Experiment<\n \"2.8.0\",\n \"transformAndWait\",\n { transformAndWait: TransformAndWaitFn }\n> = {\n name: \"transformAndWait\",\n type: \"experiment\",\n version: \"2.8.0\",\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA,OAAO,MAAMA,gBAIZ,GAAG;EACFC,IAAI,EAAE,kBAAkB;EACxBC,IAAI,EAAE,YAAY;EAClBC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
|
@@ -14,13 +14,12 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference } from "../experimental/createMediaReference.js";
|
|
18
17
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction } from "../experimental/executeStreamingFunction.js";
|
|
19
18
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid } from "../experimental/fetchOneByRid.js";
|
|
20
19
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid } from "../experimental/fetchPageByRid.js";
|
|
21
20
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from "../experimental/getBulkLinks.js";
|
|
22
21
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet } from "../experimental/subscribeToNoTypeObjectSet.js";
|
|
23
|
-
export {
|
|
22
|
+
export { transformAndWait } from "../experimental/transformAndWait.js";
|
|
24
23
|
export { MediaTransformationError, MediaTransformationFailedError, MediaTransformationTimeoutError } from "../object/MediaTransformationErrors.js";
|
|
25
24
|
// Shapes (unstable — will graduate to @osdk/api/shapes when stable)
|
|
26
25
|
export { configToShapeDefinition, createShapeBuilder, isSourcePkSymbol, ShapeNullabilityError, SourcePrimaryKeySymbol } from "../shapes/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unstable.js","names":["
|
|
1
|
+
{"version":3,"file":"unstable.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks","__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet","transformAndWait","MediaTransformationError","MediaTransformationFailedError","MediaTransformationTimeoutError","configToShapeDefinition","createShapeBuilder","isSourcePkSymbol","ShapeNullabilityError","SourcePrimaryKeySymbol"],"sources":["unstable.ts"],"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 */\n\nexport type { Experiment, ExperimentFns } from \"../experimental/Experiment.js\";\n\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction } from \"../experimental/executeStreamingFunction.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid } from \"../experimental/fetchOneByRid.js\";\nexport {\n __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid,\n type FetchPageByRidPayload,\n} from \"../experimental/fetchPageByRid.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from \"../experimental/getBulkLinks.js\";\nexport type {\n AnnotateGeometry,\n Annotation,\n AudioEncoding,\n AudioOperation,\n AudioToTextOperation,\n BoundingBox,\n Color,\n ContrastType,\n DicomToImageOperation,\n DocumentTextExtractionConfig,\n DocumentToDocumentOperation,\n DocumentToImageOperation,\n DocumentToTextOperation,\n EmailToAttachmentOperation,\n EmailToTextOperation,\n ImageOperation,\n ImagePixelCoordinate,\n ImageRegionPolygon,\n ImageSpec,\n ImageToDocumentOperation,\n ImageToEmbeddingOperation,\n ImageToTextOperation,\n LayoutAwareExtractionParameters,\n LlmSpec,\n MediaTransformation,\n OcrLanguageOrScript,\n OcrOutputFormat,\n OcrParameters,\n PageRange,\n SpreadsheetToTextOperation,\n TranscribeOutputFormat,\n VideoOperation,\n VideoToArchiveOperation,\n VideoToAudioOperation,\n VideoToImageOperation,\n VideoToTextOperation,\n VlmPreprocessingConfig,\n} from \"../experimental/MediaTransformation.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet } from \"../experimental/subscribeToNoTypeObjectSet.js\";\nexport {\n transformAndWait,\n type TransformOptions,\n} from \"../experimental/transformAndWait.js\";\nexport {\n MediaTransformationError,\n MediaTransformationFailedError,\n MediaTransformationTimeoutError,\n} from \"../object/MediaTransformationErrors.js\";\n\nexport type { EXPERIMENTAL_BulkLinkResult } from \"../objectSet/BulkLinkResult.js\";\nexport type { MinimalObjectSet } from \"../objectSet/ObjectSet.js\";\n\n// Shapes (unstable — will graduate to @osdk/api/shapes when stable)\nexport {\n configToShapeDefinition,\n createShapeBuilder,\n isSourcePkSymbol,\n ShapeNullabilityError,\n SourcePrimaryKeySymbol,\n} from \"../shapes/index.js\";\n\nexport type {\n InferShapeDefinition,\n InlineLinkConfig,\n InlineShapeConfig,\n LinkLoadConfig,\n LinkStatus,\n NullabilityViolation,\n PropertyType,\n RequiredProperty,\n ShapeBaseType,\n ShapeBuilder,\n ShapeDefinition,\n ShapeDerivedLinks,\n ShapeInstance,\n ShapeLinkBuilder,\n ShapeLinkResult,\n} from \"../shapes/index.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,2DAA2D,QAAQ,6CAA6C;AACzH,SAASC,gDAAgD,QAAQ,kCAAkC;AACnG,SACEC,iDAAiD,QAE5C,mCAAmC;AAC1C,SAASC,+CAA+C,QAAQ,iCAAiC;AAwCjG,SAASC,6DAA6D,QAAQ,+CAA+C;AAC7H,SACEC,gBAAgB,QAEX,qCAAqC;AAC5C,SACEC,wBAAwB,EACxBC,8BAA8B,EAC9BC,+BAA+B,QAC1B,wCAAwC;AAK/C;AACA,SACEC,uBAAuB,EACvBC,kBAAkB,EAClBC,gBAAgB,EAChBC,qBAAqB,EACrBC,sBAAsB,QACjB,oBAAoB","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Media } from "../object/Media.js";
|
|
2
2
|
import type { Experiment } from "./Experiment.js";
|
|
3
3
|
import type { MediaTransformation } from "./MediaTransformation.js";
|
|
4
4
|
/**
|
|
@@ -18,18 +18,18 @@ export interface TransformOptions {
|
|
|
18
18
|
* Submits a transformation job for a media item, polls until completion,
|
|
19
19
|
* and returns the transformed content.
|
|
20
20
|
*
|
|
21
|
-
* @param args.
|
|
21
|
+
* @param args.media - The media item to transform
|
|
22
22
|
* @param args.transformation - The {@link MediaTransformation} to apply
|
|
23
23
|
* @param args.options - Polling options (interval and timeout)
|
|
24
24
|
*
|
|
25
25
|
* @returns The transformed media content as a Response
|
|
26
26
|
*/
|
|
27
|
-
type
|
|
28
|
-
|
|
27
|
+
type TransformAndWaitFn = (args: {
|
|
28
|
+
media: Media
|
|
29
29
|
transformation: MediaTransformation
|
|
30
30
|
options?: TransformOptions
|
|
31
31
|
}) => Promise<Response>;
|
|
32
|
-
export declare const
|
|
33
|
-
transformAndWait:
|
|
32
|
+
export declare const transformAndWait: Experiment<"2.8.0", "transformAndWait", {
|
|
33
|
+
transformAndWait: TransformAndWaitFn
|
|
34
34
|
}>;
|
|
35
35
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,
|
|
1
|
+
{"mappings":"AAgBA,cAAc,aAAa,oBAAqB;AAChD,cAAc,kBAAkB,iBAAkB;AAClD,cAAc,2BAA2B,0BAA2B;;;;;;AAOpE,iBAAiB,iBAAiB;;CAEhC;;CAEA;AACD;;;;;;;;;;;;;KAcI,sBAAsBA,MAAM;CAC/B,OAAO;CACP,gBAAgB;CAChB,UAAU;AACX,MAAK,QAAQ;AAEd,OAAO,cAAMC,kBAAkB,WAC7B,SACA,oBACA;CAAE,kBAAkB;AAAoB","names":["args: {\n media: Media;\n transformation: MediaTransformation;\n options?: TransformOptions;\n}","transformAndWait: Experiment<\n \"2.8.0\",\n \"transformAndWait\",\n { transformAndWait: TransformAndWaitFn }\n>"],"sources":["../../../src/experimental/transformAndWait.ts"],"version":3,"file":"transformAndWait.d.ts"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export type { Experiment, ExperimentFns } from "../experimental/Experiment.js";
|
|
2
|
-
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference } from "../experimental/createMediaReference.js";
|
|
3
2
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction } from "../experimental/executeStreamingFunction.js";
|
|
4
3
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid } from "../experimental/fetchOneByRid.js";
|
|
5
4
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid, type FetchPageByRidPayload } from "../experimental/fetchPageByRid.js";
|
|
6
5
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from "../experimental/getBulkLinks.js";
|
|
7
6
|
export type { AnnotateGeometry, Annotation, AudioEncoding, AudioOperation, AudioToTextOperation, BoundingBox, Color, ContrastType, DicomToImageOperation, DocumentTextExtractionConfig, DocumentToDocumentOperation, DocumentToImageOperation, DocumentToTextOperation, EmailToAttachmentOperation, EmailToTextOperation, ImageOperation, ImagePixelCoordinate, ImageRegionPolygon, ImageSpec, ImageToDocumentOperation, ImageToEmbeddingOperation, ImageToTextOperation, LayoutAwareExtractionParameters, LlmSpec, MediaTransformation, OcrLanguageOrScript, OcrOutputFormat, OcrParameters, PageRange, SpreadsheetToTextOperation, TranscribeOutputFormat, VideoOperation, VideoToArchiveOperation, VideoToAudioOperation, VideoToImageOperation, VideoToTextOperation, VlmPreprocessingConfig } from "../experimental/MediaTransformation.js";
|
|
8
7
|
export { __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet } from "../experimental/subscribeToNoTypeObjectSet.js";
|
|
9
|
-
export {
|
|
8
|
+
export { transformAndWait, type TransformOptions } from "../experimental/transformAndWait.js";
|
|
10
9
|
export { MediaTransformationError, MediaTransformationFailedError, MediaTransformationTimeoutError } from "../object/MediaTransformationErrors.js";
|
|
11
10
|
export type { EXPERIMENTAL_BulkLinkResult } from "../objectSet/BulkLinkResult.js";
|
|
12
11
|
export type { MinimalObjectSet } from "../objectSet/ObjectSet.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,YAAY,qBAAqB;AAE/C,SAAS
|
|
1
|
+
{"mappings":"AAgBA,cAAc,YAAY,qBAAqB;AAE/C,SAAS,mEAAmE;AAC5E,SAAS,wDAAwD;AACjE,SACE,wDACK,6BACA;AACP,SAAS,uDAAuD;AAChE,cACE,kBACA,YACA,eACA,gBACA,sBACA,aACA,OACA,cACA,uBACA,8BACA,6BACA,0BACA,yBACA,4BACA,sBACA,gBACA,sBACA,oBACA,WACA,0BACA,2BACA,sBACA,iCACA,SACA,qBACA,qBACA,iBACA,eACA,WACA,4BACA,wBACA,gBACA,yBACA,uBACA,uBACA,sBACA,8BACK;AACP,SAAS,qEAAqE;AAC9E,SACE,uBACK,wBACA;AACP,SACE,0BACA,gCACA,uCACK;AAEP,cAAc,mCAAmC;AACjD,cAAc,wBAAwB;AAGtC,SACE,yBACA,oBACA,kBACA,uBACA,8BACK;AAEP,cACE,sBACA,kBACA,mBACA,gBACA,YACA,sBACA,cACA,kBACA,eACA,cACA,iBACA,mBACA,eACA,kBACA,uBACK","names":[],"sources":["../../../src/public/unstable.ts"],"version":3,"file":"unstable.d.ts"}
|
package/package.json
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @experimental This feature is experimental and might change in the future.
|
|
19
|
-
*
|
|
20
|
-
* Uploads a media item to the media property of the specified object type.
|
|
21
|
-
*
|
|
22
|
-
* @param data - Data to upload as media item
|
|
23
|
-
* @param fileName - Name that will be assigned as path to the uploaded media item.
|
|
24
|
-
* @param objectType - Object type to which the media item will be uploaded.
|
|
25
|
-
* @param propertyType - Media reference property of the corresponding object type to which the media item will be uploaded.
|
|
26
|
-
*
|
|
27
|
-
* @returns media reference of the uploaded media item.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
export const __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference = {
|
|
31
|
-
name: "__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference",
|
|
32
|
-
type: "experiment",
|
|
33
|
-
version: "2.1.0"
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=createMediaReference.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createMediaReference.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference","name","type","version"],"sources":["createMediaReference.ts"],"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 */\n\nimport type { MediaReference } from \"../object/Media.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type { Experiment } from \"./Experiment.js\";\n\n/**\n * @experimental This feature is experimental and might change in the future.\n *\n * Uploads a media item to the media property of the specified object type.\n *\n * @param data - Data to upload as media item\n * @param fileName - Name that will be assigned as path to the uploaded media item.\n * @param objectType - Object type to which the media item will be uploaded.\n * @param propertyType - Media reference property of the corresponding object type to which the media item will be uploaded.\n *\n * @returns media reference of the uploaded media item.\n */\ntype createMediaReference = <\n Q extends ObjectOrInterfaceDefinition,\n const L extends PropertyKeys.Filtered<Q, \"mediaReference\">,\n>(args: {\n data: Blob;\n fileName: string;\n objectType: Q;\n propertyType: L;\n}) => Promise<MediaReference>;\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference: Experiment<\n \"2.1.0\",\n \"__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference\",\n { createMediaReference: createMediaReference }\n> = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference\",\n type: \"experiment\",\n version: \"2.1.0\",\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAWA,OAAO,MAAMA,uDAIZ,GAAG;EACFC,IAAI,EAAE,yDAAyD;EAC/DC,IAAI,EAAE,YAAY;EAClBC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @experimental This feature is experimental and might change in the future.
|
|
19
|
-
*
|
|
20
|
-
* Uploads a media item to the media property of the specified object type.
|
|
21
|
-
*
|
|
22
|
-
* @param data - Data to upload as media item
|
|
23
|
-
* @param fileName - Name that will be assigned as path to the uploaded media item.
|
|
24
|
-
* @param objectType - Object type to which the media item will be uploaded.
|
|
25
|
-
* @param propertyType - Media reference property of the corresponding object type to which the media item will be uploaded.
|
|
26
|
-
*
|
|
27
|
-
* @returns media reference of the uploaded media item.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
export const __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference = {
|
|
31
|
-
name: "__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference",
|
|
32
|
-
type: "experiment",
|
|
33
|
-
version: "2.1.0"
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=createMediaReference.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createMediaReference.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference","name","type","version"],"sources":["createMediaReference.ts"],"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 */\n\nimport type { MediaReference } from \"../object/Media.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type { Experiment } from \"./Experiment.js\";\n\n/**\n * @experimental This feature is experimental and might change in the future.\n *\n * Uploads a media item to the media property of the specified object type.\n *\n * @param data - Data to upload as media item\n * @param fileName - Name that will be assigned as path to the uploaded media item.\n * @param objectType - Object type to which the media item will be uploaded.\n * @param propertyType - Media reference property of the corresponding object type to which the media item will be uploaded.\n *\n * @returns media reference of the uploaded media item.\n */\ntype createMediaReference = <\n Q extends ObjectOrInterfaceDefinition,\n const L extends PropertyKeys.Filtered<Q, \"mediaReference\">,\n>(args: {\n data: Blob;\n fileName: string;\n objectType: Q;\n propertyType: L;\n}) => Promise<MediaReference>;\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference: Experiment<\n \"2.1.0\",\n \"__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference\",\n { createMediaReference: createMediaReference }\n> = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference\",\n type: \"experiment\",\n version: \"2.1.0\",\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAWA,OAAO,MAAMA,uDAIZ,GAAG;EACFC,IAAI,EAAE,yDAAyD;EAC/DC,IAAI,EAAE,YAAY;EAClBC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { MediaReference } from "../object/Media.js";
|
|
2
|
-
import type { ObjectOrInterfaceDefinition, PropertyKeys } from "../ontology/ObjectOrInterface.js";
|
|
3
|
-
import type { Experiment } from "./Experiment.js";
|
|
4
|
-
/**
|
|
5
|
-
* @experimental This feature is experimental and might change in the future.
|
|
6
|
-
*
|
|
7
|
-
* Uploads a media item to the media property of the specified object type.
|
|
8
|
-
*
|
|
9
|
-
* @param data - Data to upload as media item
|
|
10
|
-
* @param fileName - Name that will be assigned as path to the uploaded media item.
|
|
11
|
-
* @param objectType - Object type to which the media item will be uploaded.
|
|
12
|
-
* @param propertyType - Media reference property of the corresponding object type to which the media item will be uploaded.
|
|
13
|
-
*
|
|
14
|
-
* @returns media reference of the uploaded media item.
|
|
15
|
-
*/
|
|
16
|
-
type createMediaReference = <
|
|
17
|
-
Q extends ObjectOrInterfaceDefinition,
|
|
18
|
-
const L extends PropertyKeys.Filtered<Q, "mediaReference">
|
|
19
|
-
>(args: {
|
|
20
|
-
data: Blob
|
|
21
|
-
fileName: string
|
|
22
|
-
objectType: Q
|
|
23
|
-
propertyType: L
|
|
24
|
-
}) => Promise<MediaReference>;
|
|
25
|
-
export declare const __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference: Experiment<"2.1.0", "__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference", {
|
|
26
|
-
createMediaReference: createMediaReference
|
|
27
|
-
}>;
|
|
28
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,sBAAsB,oBAAqB;AACzD,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,kBAAkB,iBAAkB;;;;;;;;;;;;;KAc7C;CACH,UAAU;OACJ,UAAU,aAAa,SAAS,GAAG;EACzCA,MAAM;CACN,MAAM;CACN;CACA,YAAY;CACZ,cAAc;AACf,MAAK,QAAQ;AAEd,OAAO,cAAMC,yDAAyD,WACpE,SACA,2DACA;CAAE,sBAAsB;AAAsB","names":["args: {\n data: Blob;\n fileName: string;\n objectType: Q;\n propertyType: L;\n}","__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference: Experiment<\n \"2.1.0\",\n \"__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference\",\n { createMediaReference: createMediaReference }\n>"],"sources":["../../../src/experimental/createMediaReference.ts"],"version":3,"file":"createMediaReference.d.ts"}
|