@osdk/api 2.19.0 → 2.20.0-main-9eb67e484674ef3b31366ff805e2a680cb21cb16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @osdk/api
2
2
 
3
+ ## 2.20.0-main-9eb67e484674ef3b31366ff805e2a680cb21cb16
4
+
5
+ ### Minor Changes
6
+
7
+ - 9eb67e4: Add experimental support for streaming queries via the `__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction` marker.
8
+
3
9
  ## 2.19.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,30 @@
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
+ * Executes a query as a streaming function, yielding results as they arrive
21
+ * from the server over an NDJSON stream. For queries that return arrays, the
22
+ * stream yields the element type — batches are flattened automatically.
23
+ */
24
+
25
+ export const __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction = {
26
+ name: "__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction",
27
+ type: "experiment",
28
+ version: "2.19.0"
29
+ };
30
+ //# sourceMappingURL=executeStreamingFunction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executeStreamingFunction.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction","name","type","version"],"sources":["executeStreamingFunction.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 { CompileTimeMetadata } from \"../ontology/ObjectTypeDefinition.js\";\nimport type { QueryDefinition } from \"../ontology/QueryDefinition.js\";\nimport type { Experiment } from \"./Experiment.js\";\n\ntype StreamingArgs<QD extends QueryDefinition<any>> =\n CompileTimeMetadata<QD>[\"signature\"] extends (...args: infer A) => any ? A\n : never[];\n\ntype StreamingElement<QD extends QueryDefinition<any>> =\n CompileTimeMetadata<QD>[\"signature\"] extends\n (...args: any[]) => Promise<infer R>\n ? R extends ReadonlyArray<infer E> ? E : R\n : never;\n\n/**\n * @experimental This feature is experimental and might change in the future.\n *\n * Executes a query as a streaming function, yielding results as they arrive\n * from the server over an NDJSON stream. For queries that return arrays, the\n * stream yields the element type — batches are flattened automatically.\n */\ntype executeStreamingFunctionFn = <QD extends QueryDefinition<any>>(\n query: QD,\n ...args: StreamingArgs<QD>\n) => AsyncIterable<StreamingElement<QD>>;\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction:\n Experiment<\n \"2.19.0\",\n \"__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction\",\n { executeStreamingFunction: executeStreamingFunctionFn }\n > = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction\",\n type: \"experiment\",\n version: \"2.19.0\",\n };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAO,MAAMA,2DAKV,GAAG;EACFC,IAAI,EAAE,6DAA6D;EACnEC,IAAI,EAAE,YAAY;EAClBC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
@@ -15,6 +15,7 @@
15
15
  */
16
16
 
17
17
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference } from "../experimental/createMediaReference.js";
18
+ export { __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction } from "../experimental/executeStreamingFunction.js";
18
19
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid } from "../experimental/fetchOneByRid.js";
19
20
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid } from "../experimental/fetchPageByRid.js";
20
21
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from "../experimental/getBulkLinks.js";
@@ -1 +1 @@
1
- {"version":3,"file":"unstable.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks","__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet","__EXPERIMENTAL__NOT_SUPPORTED_YET__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__createMediaReference } from \"../experimental/createMediaReference.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 AudioEncoding,\n AudioOperation,\n AudioToTextOperation,\n DicomToImageOperation,\n DocumentTextExtractionConfig,\n DocumentToDocumentOperation,\n DocumentToImageOperation,\n DocumentToTextOperation,\n EmailToAttachmentOperation,\n EmailToTextOperation,\n ImageOperation,\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 __EXPERIMENTAL__NOT_SUPPORTED_YET__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,uDAAuD,QAAQ,yCAAyC;AACjH,SAASC,gDAAgD,QAAQ,kCAAkC;AACnG,SACEC,iDAAiD,QAE5C,mCAAmC;AAC1C,SAASC,+CAA+C,QAAQ,iCAAiC;AAiCjG,SAASC,6DAA6D,QAAQ,+CAA+C;AAC7H,SACEC,mDAAmD,QAE9C,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
+ {"version":3,"file":"unstable.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference","__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","__EXPERIMENTAL__NOT_SUPPORTED_YET__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__createMediaReference } from \"../experimental/createMediaReference.js\";\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 AudioEncoding,\n AudioOperation,\n AudioToTextOperation,\n DicomToImageOperation,\n DocumentTextExtractionConfig,\n DocumentToDocumentOperation,\n DocumentToImageOperation,\n DocumentToTextOperation,\n EmailToAttachmentOperation,\n EmailToTextOperation,\n ImageOperation,\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 __EXPERIMENTAL__NOT_SUPPORTED_YET__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,uDAAuD,QAAQ,yCAAyC;AACjH,SAASC,2DAA2D,QAAQ,6CAA6C;AACzH,SAASC,gDAAgD,QAAQ,kCAAkC;AACnG,SACEC,iDAAiD,QAE5C,mCAAmC;AAC1C,SAASC,+CAA+C,QAAQ,iCAAiC;AAiCjG,SAASC,6DAA6D,QAAQ,+CAA+C;AAC7H,SACEC,mDAAmD,QAE9C,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":[]}
@@ -2158,4 +2158,4 @@ interface AsyncIterLinks<Q extends ObjectOrInterfaceDefinition> {
2158
2158
  interface ObjectSetCleanedTypes<Q extends ObjectOrInterfaceDefinition, D extends Record<string, SimplePropertyDef>, MERGED extends ObjectOrInterfaceDefinition & Q, ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<PropertyKeys<Q>> = {}> extends MinimalObjectSet<Q, D, ORDER_BY_OPTIONS>, WithProperties<Q, D>, Aggregate<MERGED>, SetArithmetic<MERGED>, PivotTo<Q>, FetchOne<Q, D>, NearestNeighbors<Q>, NarrowToType<Q> {
2159
2159
  }
2160
2160
 
2161
- export { type GroupByClause as $, type AttachmentUpload as A, type BaseObjectSet as B, type CompileTimeMetadata as C, type DatetimeFormat as D, type DatetimeLocalizedFormatType as E, type DatetimeStringFormat as F, type DatetimeTimezone as G, type DatetimeTimezoneStatic as H, type InterfaceDefinition as I, type DatetimeTimezoneUser as J, DerivedProperty as K, DistanceUnitMapping as L, type MediaReference as M, type DurationBaseValue as N, type ObjectTypeDefinition as O, type PropertyValueWireToClient as P, type DurationFormatStyle as Q, type ReleaseStatus as R, DurationMapping as S, type DurationPrecision as T, type FetchLinksPageResult as U, type FetchPageArgs as V, type FetchPageResult as W, type GeoFilterOptions as X, type GeoFilter_Intersects as Y, type GeoFilter_Within as Z, type GeotimeSeriesProperty as _, type MediaUpload as a, type TimeSeriesProperty as a$, type GroupByRange as a0, type HumanReadableFormat as a1, InterfaceMetadata as a2, type IntervalRule as a3, type KnownType as a4, type LinkNames as a5, type LinkTypeApiNamesFor as a6, type LinkedType as a7, type MaybeScore as a8, type MediaMetadata as a9, type OsdkObjectLinksObject as aA, type OsdkObjectPropertyType as aB, type PageResult as aC, type PossibleWhereClauseFilters as aD, type PrimaryKeyType as aE, type PropertyBooleanFormattingRule as aF, type PropertyDateFormattingRule as aG, type PropertyDef as aH, PropertyKeys as aI, type PropertyKnownTypeFormattingRule as aJ, type PropertyMarkings as aK, type PropertyNumberFormattingRule as aL, type PropertyNumberFormattingRuleType as aM, type PropertySecurity as aN, type PropertyTimestampFormattingRule as aO, type PropertyTypeReference as aP, type PropertyTypeReferenceOrStringConstant as aQ, type PropertyValueFormattingRule as aR, type Result as aS, type SelectArg as aT, type SelectArgToKeys as aU, SimplePropertyDef as aV, type SingleLinkAccessor as aW, type SingleOsdkResult as aX, type StringConstant as aY, type TimeCodeFormat as aZ, type TimeSeriesPoint as a_, type MediaPropertyLocation as aa, type MinimalDirectedObjectLinkInstance as ab, type NotWhereClause as ac, NullabilityAdherence as ad, type NumberFormatAffix as ae, type NumberFormatCurrency as af, type NumberFormatCurrencyStyle as ag, type NumberFormatCustomUnit as ah, type NumberFormatDuration as ai, type NumberFormatFixedValues as aj, type NumberFormatNotation as ak, type NumberFormatOptions as al, type NumberFormatRatio as am, type NumberFormatScale as an, type NumberFormatStandard as ao, type NumberFormatStandardUnit as ap, type NumberRatioType as aq, type NumberRoundingMode as ar, type NumberScaleType as as, ObjectMetadata as at, ObjectSetArgs as au, ObjectSetSubscription as av, type ObjectSpecifier as aw, type OrWhereClause as ax, Osdk as ay, type OsdkObjectCreatePropertyType as az, type Media as b, type TimeSeriesQuery as b0, TimeseriesDurationMapping as b1, type ValidAggregationKeys as b2, type VersionBound as b3, type WhereClause as b4, type WirePropertyTypes as b5, isOk as b6, type ExtractOptions as b7, type Just as b8, type MinimalObjectSet as b9, type Attachment as c, type ObjectIdentifiers as d, type OsdkObjectPrimaryKeyType as e, type ObjectSet as f, type OsdkMetadata as g, type ObjectOrInterfaceDefinition as h, type PrimaryKeyTypes as i, type OsdkBase as j, type Affix as k, type AggregateOpts as l, type AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy as m, type AggregationClause as n, type AggregationResultsWithGroups as o, type AggregationResultsWithoutGroups as p, type AggregationsResults as q, type AllGroupByValues as r, type AndWhereClause as s, type AsyncIterArgs as t, type AttachmentMetadata as u, type Augment as v, type Augments as w, type BaseWirePropertyTypes as x, type ConvertProps as y, type DatetimeLocalizedFormat as z };
2161
+ export { type GroupByClause as $, type AttachmentUpload as A, type BaseObjectSet as B, type CompileTimeMetadata as C, type DatetimeFormat as D, type DatetimeLocalizedFormatType as E, type DatetimeStringFormat as F, type DatetimeTimezone as G, type DatetimeTimezoneStatic as H, type InterfaceDefinition as I, type DatetimeTimezoneUser as J, DerivedProperty as K, DistanceUnitMapping as L, type MediaReference as M, type DurationBaseValue as N, type ObjectOrInterfaceDefinition as O, type PropertyValueWireToClient as P, type DurationFormatStyle as Q, type ReleaseStatus as R, DurationMapping as S, type DurationPrecision as T, type FetchLinksPageResult as U, type FetchPageArgs as V, type FetchPageResult as W, type GeoFilterOptions as X, type GeoFilter_Intersects as Y, type GeoFilter_Within as Z, type GeotimeSeriesProperty as _, type OsdkMetadata as a, type TimeSeriesProperty as a$, type GroupByRange as a0, type HumanReadableFormat as a1, InterfaceMetadata as a2, type IntervalRule as a3, type KnownType as a4, type LinkNames as a5, type LinkTypeApiNamesFor as a6, type LinkedType as a7, type MaybeScore as a8, type MediaMetadata as a9, type OsdkObjectLinksObject as aA, type OsdkObjectPropertyType as aB, type PageResult as aC, type PossibleWhereClauseFilters as aD, type PrimaryKeyType as aE, type PropertyBooleanFormattingRule as aF, type PropertyDateFormattingRule as aG, type PropertyDef as aH, PropertyKeys as aI, type PropertyKnownTypeFormattingRule as aJ, type PropertyMarkings as aK, type PropertyNumberFormattingRule as aL, type PropertyNumberFormattingRuleType as aM, type PropertySecurity as aN, type PropertyTimestampFormattingRule as aO, type PropertyTypeReference as aP, type PropertyTypeReferenceOrStringConstant as aQ, type PropertyValueFormattingRule as aR, type Result as aS, type SelectArg as aT, type SelectArgToKeys as aU, SimplePropertyDef as aV, type SingleLinkAccessor as aW, type SingleOsdkResult as aX, type StringConstant as aY, type TimeCodeFormat as aZ, type TimeSeriesPoint as a_, type MediaPropertyLocation as aa, type MinimalDirectedObjectLinkInstance as ab, type NotWhereClause as ac, NullabilityAdherence as ad, type NumberFormatAffix as ae, type NumberFormatCurrency as af, type NumberFormatCurrencyStyle as ag, type NumberFormatCustomUnit as ah, type NumberFormatDuration as ai, type NumberFormatFixedValues as aj, type NumberFormatNotation as ak, type NumberFormatOptions as al, type NumberFormatRatio as am, type NumberFormatScale as an, type NumberFormatStandard as ao, type NumberFormatStandardUnit as ap, type NumberRatioType as aq, type NumberRoundingMode as ar, type NumberScaleType as as, ObjectMetadata as at, ObjectSetArgs as au, ObjectSetSubscription as av, type ObjectSpecifier as aw, type OrWhereClause as ax, Osdk as ay, type OsdkObjectCreatePropertyType as az, type ObjectTypeDefinition as b, type TimeSeriesQuery as b0, TimeseriesDurationMapping as b1, type ValidAggregationKeys as b2, type VersionBound as b3, type WhereClause as b4, type WirePropertyTypes as b5, isOk as b6, type ExtractOptions as b7, type Just as b8, type MinimalObjectSet as b9, type MediaUpload as c, type Media as d, type Attachment as e, type ObjectIdentifiers as f, type OsdkObjectPrimaryKeyType as g, type ObjectSet as h, type PrimaryKeyTypes as i, type OsdkBase as j, type Affix as k, type AggregateOpts as l, type AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy as m, type AggregationClause as n, type AggregationResultsWithGroups as o, type AggregationResultsWithoutGroups as p, type AggregationsResults as q, type AllGroupByValues as r, type AndWhereClause as s, type AsyncIterArgs as t, type AttachmentMetadata as u, type Augment as v, type Augments as w, type BaseWirePropertyTypes as x, type ConvertProps as y, type DatetimeLocalizedFormat as z };
@@ -0,0 +1,92 @@
1
+ import { O as ObjectOrInterfaceDefinition, a as OsdkMetadata, b as ObjectTypeDefinition } from './ObjectSet-fGyPIAmS.cjs';
2
+
3
+ interface QueryMetadata {
4
+ type: "query";
5
+ apiName: string;
6
+ description?: string;
7
+ displayName?: string;
8
+ version: string;
9
+ parameters: Record<string, QueryParameterDefinition<any>>;
10
+ output: QueryDataTypeDefinition;
11
+ rid: string;
12
+ typeReferences?: Record<string, QueryDataTypeDefinition>;
13
+ }
14
+ interface QueryCompileTimeMetadata<T> {
15
+ signature: T;
16
+ }
17
+ interface QueryDefinition<T = any> {
18
+ type: "query";
19
+ apiName: string;
20
+ version?: string;
21
+ isFixedVersion?: boolean;
22
+ osdkMetadata?: OsdkMetadata;
23
+ __DefinitionMetadata?: QueryCompileTimeMetadata<T> & QueryMetadata;
24
+ }
25
+ type QueryParameterDefinition<T_Target extends ObjectTypeDefinition = any> = {
26
+ description?: string;
27
+ } & QueryDataTypeDefinition<T_Target>;
28
+ type QueryDataTypeDefinition<T_Target extends ObjectOrInterfaceDefinition = any> = PrimitiveDataType | ObjectQueryDataType<T_Target> | InterfaceQueryDataType<T_Target> | ObjectSetQueryDataType<T_Target> | InterfaceObjectSetQueryDataType<T_Target> | SetQueryDataType | UnionQueryDataType | StructQueryDataType | TwoDimensionalAggregationDataType | ThreeDimensionalAggregationDataType | MapDataType | ArrayQueryDataType | TypeReferenceQueryDataType;
29
+ type BaseQueryDataTypeDefinition<T extends string> = {
30
+ nullable?: boolean;
31
+ type: T;
32
+ };
33
+ type WireQueryDataTypes = "double" | "float" | "integer" | "long" | "boolean" | "string" | "date" | "timestamp" | "attachment" | "mediaReference";
34
+ type PrimitiveDataType<Q extends WireQueryDataTypes = WireQueryDataTypes> = BaseQueryDataTypeDefinition<Q>;
35
+ interface ObjectQueryDataType<T_Target extends ObjectOrInterfaceDefinition = never> extends BaseQueryDataTypeDefinition<"object"> {
36
+ object: string;
37
+ __OsdkTargetType?: T_Target;
38
+ }
39
+ interface InterfaceQueryDataType<T_Target extends ObjectOrInterfaceDefinition = never> extends BaseQueryDataTypeDefinition<"interface"> {
40
+ interface: string;
41
+ __OsdkTargetType?: T_Target;
42
+ }
43
+ interface ObjectSetQueryDataType<T_Target extends ObjectOrInterfaceDefinition = never> extends BaseQueryDataTypeDefinition<"objectSet"> {
44
+ objectSet: string;
45
+ __OsdkTargetType?: T_Target;
46
+ }
47
+ interface InterfaceObjectSetQueryDataType<T_Target extends ObjectOrInterfaceDefinition = never> extends BaseQueryDataTypeDefinition<"interfaceObjectSet"> {
48
+ objectSet: string;
49
+ __OsdkTargetType?: T_Target;
50
+ }
51
+ interface SetQueryDataType extends BaseQueryDataTypeDefinition<"set"> {
52
+ set: QueryDataTypeDefinition;
53
+ }
54
+ interface ArrayQueryDataType extends BaseQueryDataTypeDefinition<"array"> {
55
+ array: QueryDataTypeDefinition;
56
+ }
57
+ interface UnionQueryDataType extends BaseQueryDataTypeDefinition<"union"> {
58
+ union: ReadonlyArray<QueryDataTypeDefinition>;
59
+ }
60
+ interface StructQueryDataType extends BaseQueryDataTypeDefinition<"struct"> {
61
+ struct: Record<string, QueryDataTypeDefinition>;
62
+ }
63
+ interface TwoDimensionalAggregationDataType extends BaseQueryDataTypeDefinition<"twoDimensionalAggregation"> {
64
+ twoDimensionalAggregation: TwoDimensionalQueryAggregationDefinition;
65
+ }
66
+ interface ThreeDimensionalAggregationDataType extends BaseQueryDataTypeDefinition<"threeDimensionalAggregation"> {
67
+ threeDimensionalAggregation: ThreeDimensionalQueryAggregationDefinition;
68
+ }
69
+ interface MapDataType extends BaseQueryDataTypeDefinition<"map"> {
70
+ keyType: QueryDataTypeDefinition;
71
+ valueType: QueryDataTypeDefinition;
72
+ }
73
+ interface TypeReferenceQueryDataType extends BaseQueryDataTypeDefinition<"typeReference"> {
74
+ typeId: string;
75
+ }
76
+ type AggregationKeyDataType<V = any> = SimpleAggregationKeyDataType<V> | RangeAggregationKeyDataType<V>;
77
+ interface SimpleAggregationKeyDataType<V = any> {
78
+ keyType: Exclude<AggregationKeyTypes, "range">;
79
+ valueType: V;
80
+ }
81
+ interface RangeAggregationKeyDataType<V = any> {
82
+ keyType: "range";
83
+ keySubtype: AggregationRangeKeyTypes;
84
+ valueType: V;
85
+ }
86
+ type TwoDimensionalQueryAggregationDefinition = AggregationKeyDataType<AggregationValueTypes>;
87
+ type ThreeDimensionalQueryAggregationDefinition = AggregationKeyDataType<TwoDimensionalQueryAggregationDefinition>;
88
+ type AggregationKeyTypes = "boolean" | "string" | "date" | "double" | "integer" | "timestamp" | "range";
89
+ type AggregationRangeKeyTypes = "date" | "double" | "integer" | "timestamp";
90
+ type AggregationValueTypes = "date" | "double" | "timestamp";
91
+
92
+ export type { AggregationKeyTypes as A, InterfaceQueryDataType as I, ObjectQueryDataType as O, QueryDataTypeDefinition as Q, ThreeDimensionalQueryAggregationDefinition as T, AggregationRangeKeyTypes as a, AggregationValueTypes as b, ObjectSetQueryDataType as c, QueryDefinition as d, QueryMetadata as e, QueryParameterDefinition as f, TwoDimensionalQueryAggregationDefinition as g };
@@ -1,5 +1,7 @@
1
- import { A as AttachmentUpload, M as MediaReference, a as MediaUpload, b as Media, c as Attachment, O as ObjectTypeDefinition, d as ObjectIdentifiers, e as OsdkObjectPrimaryKeyType, f as ObjectSet, I as InterfaceDefinition, C as CompileTimeMetadata, g as OsdkMetadata, R as ReleaseStatus, h as ObjectOrInterfaceDefinition, P as PropertyValueWireToClient, i as PrimaryKeyTypes, j as OsdkBase } from './ObjectSet-CsJQ0rYb.cjs';
2
- export { k as Affix, l as AggregateOpts, m as AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy, n as AggregationClause, o as AggregationResultsWithGroups, p as AggregationResultsWithoutGroups, q as AggregationsResults, r as AllGroupByValues, s as AndWhereClause, t as AsyncIterArgs, u as AttachmentMetadata, v as Augment, w as Augments, B as BaseObjectSet, x as BaseWirePropertyTypes, y as ConvertProps, D as DatetimeFormat, z as DatetimeLocalizedFormat, E as DatetimeLocalizedFormatType, F as DatetimeStringFormat, G as DatetimeTimezone, H as DatetimeTimezoneStatic, J as DatetimeTimezoneUser, K as DerivedProperty, L as DistanceUnitMapping, N as DurationBaseValue, Q as DurationFormatStyle, S as DurationMapping, T as DurationPrecision, U as FetchLinksPageResult, V as FetchPageArgs, W as FetchPageResult, X as GeoFilterOptions, Y as GeoFilter_Intersects, Z as GeoFilter_Within, _ as GeotimeSeriesProperty, $ as GroupByClause, a0 as GroupByRange, a1 as HumanReadableFormat, a2 as InterfaceMetadata, a3 as IntervalRule, a4 as KnownType, a5 as LinkNames, a6 as LinkTypeApiNamesFor, a7 as LinkedType, a8 as MaybeScore, a9 as MediaMetadata, aa as MediaPropertyLocation, ab as MinimalDirectedObjectLinkInstance, ac as NotWhereClause, ad as NullabilityAdherence, ae as NumberFormatAffix, af as NumberFormatCurrency, ag as NumberFormatCurrencyStyle, ah as NumberFormatCustomUnit, ai as NumberFormatDuration, aj as NumberFormatFixedValues, ak as NumberFormatNotation, al as NumberFormatOptions, am as NumberFormatRatio, an as NumberFormatScale, ao as NumberFormatStandard, ap as NumberFormatStandardUnit, aq as NumberRatioType, ar as NumberRoundingMode, as as NumberScaleType, at as ObjectMetadata, au as ObjectSetArgs, av as ObjectSetSubscription, aw as ObjectSpecifier, ax as OrWhereClause, ay as Osdk, az as OsdkObjectCreatePropertyType, aA as OsdkObjectLinksObject, aB as OsdkObjectPropertyType, aC as PageResult, aD as PossibleWhereClauseFilters, aE as PrimaryKeyType, aF as PropertyBooleanFormattingRule, aG as PropertyDateFormattingRule, aH as PropertyDef, aI as PropertyKeys, aJ as PropertyKnownTypeFormattingRule, aK as PropertyMarkings, aL as PropertyNumberFormattingRule, aM as PropertyNumberFormattingRuleType, aN as PropertySecurity, aO as PropertyTimestampFormattingRule, aP as PropertyTypeReference, aQ as PropertyTypeReferenceOrStringConstant, aR as PropertyValueFormattingRule, aS as Result, aT as SelectArg, aU as SelectArgToKeys, aV as SimplePropertyDef, aW as SingleLinkAccessor, aX as SingleOsdkResult, aY as StringConstant, aZ as TimeCodeFormat, a_ as TimeSeriesPoint, a$ as TimeSeriesProperty, b0 as TimeSeriesQuery, b1 as TimeseriesDurationMapping, b2 as ValidAggregationKeys, b3 as VersionBound, b4 as WhereClause, b5 as WirePropertyTypes, b6 as isOk } from './ObjectSet-CsJQ0rYb.cjs';
1
+ import { A as AttachmentUpload, M as MediaReference, c as MediaUpload, d as Media, e as Attachment, b as ObjectTypeDefinition, f as ObjectIdentifiers, g as OsdkObjectPrimaryKeyType, h as ObjectSet, I as InterfaceDefinition, C as CompileTimeMetadata, a as OsdkMetadata, R as ReleaseStatus, P as PropertyValueWireToClient, i as PrimaryKeyTypes, O as ObjectOrInterfaceDefinition, j as OsdkBase } from './ObjectSet-fGyPIAmS.cjs';
2
+ export { k as Affix, l as AggregateOpts, m as AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy, n as AggregationClause, o as AggregationResultsWithGroups, p as AggregationResultsWithoutGroups, q as AggregationsResults, r as AllGroupByValues, s as AndWhereClause, t as AsyncIterArgs, u as AttachmentMetadata, v as Augment, w as Augments, B as BaseObjectSet, x as BaseWirePropertyTypes, y as ConvertProps, D as DatetimeFormat, z as DatetimeLocalizedFormat, E as DatetimeLocalizedFormatType, F as DatetimeStringFormat, G as DatetimeTimezone, H as DatetimeTimezoneStatic, J as DatetimeTimezoneUser, K as DerivedProperty, L as DistanceUnitMapping, N as DurationBaseValue, Q as DurationFormatStyle, S as DurationMapping, T as DurationPrecision, U as FetchLinksPageResult, V as FetchPageArgs, W as FetchPageResult, X as GeoFilterOptions, Y as GeoFilter_Intersects, Z as GeoFilter_Within, _ as GeotimeSeriesProperty, $ as GroupByClause, a0 as GroupByRange, a1 as HumanReadableFormat, a2 as InterfaceMetadata, a3 as IntervalRule, a4 as KnownType, a5 as LinkNames, a6 as LinkTypeApiNamesFor, a7 as LinkedType, a8 as MaybeScore, a9 as MediaMetadata, aa as MediaPropertyLocation, ab as MinimalDirectedObjectLinkInstance, ac as NotWhereClause, ad as NullabilityAdherence, ae as NumberFormatAffix, af as NumberFormatCurrency, ag as NumberFormatCurrencyStyle, ah as NumberFormatCustomUnit, ai as NumberFormatDuration, aj as NumberFormatFixedValues, ak as NumberFormatNotation, al as NumberFormatOptions, am as NumberFormatRatio, an as NumberFormatScale, ao as NumberFormatStandard, ap as NumberFormatStandardUnit, aq as NumberRatioType, ar as NumberRoundingMode, as as NumberScaleType, at as ObjectMetadata, au as ObjectSetArgs, av as ObjectSetSubscription, aw as ObjectSpecifier, ax as OrWhereClause, ay as Osdk, az as OsdkObjectCreatePropertyType, aA as OsdkObjectLinksObject, aB as OsdkObjectPropertyType, aC as PageResult, aD as PossibleWhereClauseFilters, aE as PrimaryKeyType, aF as PropertyBooleanFormattingRule, aG as PropertyDateFormattingRule, aH as PropertyDef, aI as PropertyKeys, aJ as PropertyKnownTypeFormattingRule, aK as PropertyMarkings, aL as PropertyNumberFormattingRule, aM as PropertyNumberFormattingRuleType, aN as PropertySecurity, aO as PropertyTimestampFormattingRule, aP as PropertyTypeReference, aQ as PropertyTypeReferenceOrStringConstant, aR as PropertyValueFormattingRule, aS as Result, aT as SelectArg, aU as SelectArgToKeys, aV as SimplePropertyDef, aW as SingleLinkAccessor, aX as SingleOsdkResult, aY as StringConstant, aZ as TimeCodeFormat, a_ as TimeSeriesPoint, a$ as TimeSeriesProperty, b0 as TimeSeriesQuery, b1 as TimeseriesDurationMapping, b2 as ValidAggregationKeys, b3 as VersionBound, b4 as WhereClause, b5 as WirePropertyTypes, b6 as isOk } from './ObjectSet-fGyPIAmS.cjs';
3
+ import { A as AggregationKeyTypes, a as AggregationRangeKeyTypes, b as AggregationValueTypes } from './QueryDefinition-CZa03G1y.cjs';
4
+ export { I as InterfaceQueryDataType, O as ObjectQueryDataType, c as ObjectSetQueryDataType, Q as QueryDataTypeDefinition, d as QueryDefinition, e as QueryMetadata, f as QueryParameterDefinition, T as ThreeDimensionalQueryAggregationDefinition, g as TwoDimensionalQueryAggregationDefinition } from './QueryDefinition-CZa03G1y.cjs';
3
5
  import 'type-fest';
4
6
  import 'geojson';
5
7
 
@@ -356,95 +358,6 @@ interface OntologyMetadata<_NEVER_USED_KEPT_FOR_BACKCOMPAT = any> {
356
358
  userAgent: string;
357
359
  }
358
360
 
359
- interface QueryMetadata {
360
- type: "query";
361
- apiName: string;
362
- description?: string;
363
- displayName?: string;
364
- version: string;
365
- parameters: Record<string, QueryParameterDefinition<any>>;
366
- output: QueryDataTypeDefinition;
367
- rid: string;
368
- typeReferences?: Record<string, QueryDataTypeDefinition>;
369
- }
370
- interface QueryCompileTimeMetadata<T> {
371
- signature: T;
372
- }
373
- interface QueryDefinition<T = any> {
374
- type: "query";
375
- apiName: string;
376
- version?: string;
377
- isFixedVersion?: boolean;
378
- osdkMetadata?: OsdkMetadata;
379
- __DefinitionMetadata?: QueryCompileTimeMetadata<T> & QueryMetadata;
380
- }
381
- type QueryParameterDefinition<T_Target extends ObjectTypeDefinition = any> = {
382
- description?: string;
383
- } & QueryDataTypeDefinition<T_Target>;
384
- type QueryDataTypeDefinition<T_Target extends ObjectOrInterfaceDefinition = any> = PrimitiveDataType | ObjectQueryDataType<T_Target> | InterfaceQueryDataType<T_Target> | ObjectSetQueryDataType<T_Target> | InterfaceObjectSetQueryDataType<T_Target> | SetQueryDataType | UnionQueryDataType | StructQueryDataType | TwoDimensionalAggregationDataType | ThreeDimensionalAggregationDataType | MapDataType | ArrayQueryDataType | TypeReferenceQueryDataType;
385
- type BaseQueryDataTypeDefinition<T extends string> = {
386
- nullable?: boolean;
387
- type: T;
388
- };
389
- type WireQueryDataTypes = "double" | "float" | "integer" | "long" | "boolean" | "string" | "date" | "timestamp" | "attachment" | "mediaReference";
390
- type PrimitiveDataType<Q extends WireQueryDataTypes = WireQueryDataTypes> = BaseQueryDataTypeDefinition<Q>;
391
- interface ObjectQueryDataType<T_Target extends ObjectOrInterfaceDefinition = never> extends BaseQueryDataTypeDefinition<"object"> {
392
- object: string;
393
- __OsdkTargetType?: T_Target;
394
- }
395
- interface InterfaceQueryDataType<T_Target extends ObjectOrInterfaceDefinition = never> extends BaseQueryDataTypeDefinition<"interface"> {
396
- interface: string;
397
- __OsdkTargetType?: T_Target;
398
- }
399
- interface ObjectSetQueryDataType<T_Target extends ObjectOrInterfaceDefinition = never> extends BaseQueryDataTypeDefinition<"objectSet"> {
400
- objectSet: string;
401
- __OsdkTargetType?: T_Target;
402
- }
403
- interface InterfaceObjectSetQueryDataType<T_Target extends ObjectOrInterfaceDefinition = never> extends BaseQueryDataTypeDefinition<"interfaceObjectSet"> {
404
- objectSet: string;
405
- __OsdkTargetType?: T_Target;
406
- }
407
- interface SetQueryDataType extends BaseQueryDataTypeDefinition<"set"> {
408
- set: QueryDataTypeDefinition;
409
- }
410
- interface ArrayQueryDataType extends BaseQueryDataTypeDefinition<"array"> {
411
- array: QueryDataTypeDefinition;
412
- }
413
- interface UnionQueryDataType extends BaseQueryDataTypeDefinition<"union"> {
414
- union: ReadonlyArray<QueryDataTypeDefinition>;
415
- }
416
- interface StructQueryDataType extends BaseQueryDataTypeDefinition<"struct"> {
417
- struct: Record<string, QueryDataTypeDefinition>;
418
- }
419
- interface TwoDimensionalAggregationDataType extends BaseQueryDataTypeDefinition<"twoDimensionalAggregation"> {
420
- twoDimensionalAggregation: TwoDimensionalQueryAggregationDefinition;
421
- }
422
- interface ThreeDimensionalAggregationDataType extends BaseQueryDataTypeDefinition<"threeDimensionalAggregation"> {
423
- threeDimensionalAggregation: ThreeDimensionalQueryAggregationDefinition;
424
- }
425
- interface MapDataType extends BaseQueryDataTypeDefinition<"map"> {
426
- keyType: QueryDataTypeDefinition;
427
- valueType: QueryDataTypeDefinition;
428
- }
429
- interface TypeReferenceQueryDataType extends BaseQueryDataTypeDefinition<"typeReference"> {
430
- typeId: string;
431
- }
432
- type AggregationKeyDataType<V = any> = SimpleAggregationKeyDataType<V> | RangeAggregationKeyDataType<V>;
433
- interface SimpleAggregationKeyDataType<V = any> {
434
- keyType: Exclude<AggregationKeyTypes, "range">;
435
- valueType: V;
436
- }
437
- interface RangeAggregationKeyDataType<V = any> {
438
- keyType: "range";
439
- keySubtype: AggregationRangeKeyTypes;
440
- valueType: V;
441
- }
442
- type TwoDimensionalQueryAggregationDefinition = AggregationKeyDataType<AggregationValueTypes>;
443
- type ThreeDimensionalQueryAggregationDefinition = AggregationKeyDataType<TwoDimensionalQueryAggregationDefinition>;
444
- type AggregationKeyTypes = "boolean" | "string" | "date" | "double" | "integer" | "timestamp" | "range";
445
- type AggregationRangeKeyTypes = "date" | "double" | "integer" | "timestamp";
446
- type AggregationValueTypes = "date" | "double" | "timestamp";
447
-
448
361
  /**
449
362
  * @deprecated Use OsdkBase
450
363
  */
@@ -539,4 +452,4 @@ declare namespace QueryResult {
539
452
  type MediaType = Media;
540
453
  }
541
454
 
542
- export { type ActionDefinition, type ActionEditResponse, ActionMetadata, ActionParam, type ActionReturnTypeForOptions, type ActionValidationResponse, type AllowedBucketKeyTypes$1 as AllowedBucketKeyTypes, type AllowedBucketTypes$1 as AllowedBucketTypes, type ApplyActionOptions, type ApplyBatchActionOptions, Attachment, AttachmentUpload, CompileTimeMetadata, type DataValueClientToWire, type DataValueWireToClient, InterfaceDefinition, type InterfaceQueryDataType, Logger, Media, MediaReference, MediaUpload, ObjectIdentifiers, ObjectOrInterfaceDefinition, type ObjectQueryDataType, type ObjectSet, type ObjectSetQueryDataType, ObjectTypeDefinition, type OntologyMetadata, OsdkBase, type OsdkObject, PrimaryKeyTypes, PropertyValueWireToClient, type QueryDataTypeDefinition, type QueryDefinition, type QueryMetadata, QueryParam, type QueryParameterDefinition, QueryResult, type Range, type ThreeDimensionalAggregation, type ThreeDimensionalQueryAggregationDefinition, type TwoDimensionalAggregation, type TwoDimensionalQueryAggregationDefinition };
455
+ export { type ActionDefinition, type ActionEditResponse, ActionMetadata, ActionParam, type ActionReturnTypeForOptions, type ActionValidationResponse, type AllowedBucketKeyTypes$1 as AllowedBucketKeyTypes, type AllowedBucketTypes$1 as AllowedBucketTypes, type ApplyActionOptions, type ApplyBatchActionOptions, Attachment, AttachmentUpload, CompileTimeMetadata, type DataValueClientToWire, type DataValueWireToClient, InterfaceDefinition, Logger, Media, MediaReference, MediaUpload, ObjectIdentifiers, ObjectOrInterfaceDefinition, type ObjectSet, ObjectTypeDefinition, type OntologyMetadata, OsdkBase, type OsdkObject, PrimaryKeyTypes, PropertyValueWireToClient, QueryParam, QueryResult, type Range, type ThreeDimensionalAggregation, type TwoDimensionalAggregation };
@@ -1,4 +1,4 @@
1
- export { D as DerivedLinkConfig, k as NullabilityOp, l as ShapeDerivedLinkDef, m as ShapeLinkObjectSetDef, n as ShapeLinkOrderBy, o as ShapeLinkSegment, p as ShapeLinkSetOperation, q as ShapePropertyConfig } from '../shapes-internal-BqlLqPlf.cjs';
2
- import '../ObjectSet-CsJQ0rYb.cjs';
1
+ export { D as DerivedLinkConfig, k as NullabilityOp, l as ShapeDerivedLinkDef, m as ShapeLinkObjectSetDef, n as ShapeLinkOrderBy, o as ShapeLinkSegment, p as ShapeLinkSetOperation, q as ShapePropertyConfig } from '../shapes-internal-OxN-0-aT.cjs';
2
+ import '../ObjectSet-fGyPIAmS.cjs';
3
3
  import 'type-fest';
4
4
  import 'geojson';
@@ -7,6 +7,13 @@ var __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference = {
7
7
  version: "2.1.0"
8
8
  };
9
9
 
10
+ // src/experimental/executeStreamingFunction.ts
11
+ var __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction = {
12
+ name: "__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction",
13
+ type: "experiment",
14
+ version: "2.19.0"
15
+ };
16
+
10
17
  // src/experimental/fetchOneByRid.ts
11
18
  var __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid = {
12
19
  name: "__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid",
@@ -464,6 +471,7 @@ exports.MediaTransformationTimeoutError = MediaTransformationTimeoutError;
464
471
  exports.ShapeNullabilityError = ShapeNullabilityError;
465
472
  exports.SourcePrimaryKeySymbol = SourcePrimaryKeySymbol;
466
473
  exports.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference = __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference;
474
+ exports.__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction = __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction;
467
475
  exports.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid = __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid;
468
476
  exports.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid = __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid;
469
477
  exports.__EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks = __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/experimental/createMediaReference.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;;;ACjBO,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,IAA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A,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\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/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.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ies, 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 * Executes a query as a streaming function, yielding results as they arrive\n * from the server over an NDJSON stream. For queries that return arrays, the\n * stream yields the element type — batches are flattened automatically.\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,7 +1,8 @@
1
- import { h as ObjectOrInterfaceDefinition, aI as PropertyKeys, M as MediaReference, ad as NullabilityAdherence, aT as SelectArg, ay as Osdk, b7 as ExtractOptions, V as FetchPageArgs, W as FetchPageResult, j as OsdkBase, b8 as Just, av as ObjectSetSubscription } from '../ObjectSet-CsJQ0rYb.cjs';
2
- export { b9 as MinimalObjectSet } from '../ObjectSet-CsJQ0rYb.cjs';
3
- import { P as PropertyType, S as ShapeLinkBuilder, a as ShapeDefinition, R as RequiredProperty, b as ShapeBuilder } from '../shapes-internal-BqlLqPlf.cjs';
4
- export { L as LinkLoadConfig, c as LinkStatus, N as NullabilityViolation, d as ShapeBaseType, e as ShapeDerivedLinks, f as ShapeInstance, g as ShapeLinkResult, h as ShapeNullabilityError, i as SourcePrimaryKeySymbol, j as isSourcePkSymbol } from '../shapes-internal-BqlLqPlf.cjs';
1
+ import { O as ObjectOrInterfaceDefinition, aI as PropertyKeys, M as MediaReference, C as CompileTimeMetadata, ad as NullabilityAdherence, aT as SelectArg, ay as Osdk, b7 as ExtractOptions, V as FetchPageArgs, W as FetchPageResult, j as OsdkBase, b8 as Just, av as ObjectSetSubscription } from '../ObjectSet-fGyPIAmS.cjs';
2
+ export { b9 as MinimalObjectSet } from '../ObjectSet-fGyPIAmS.cjs';
3
+ import { d as QueryDefinition } from '../QueryDefinition-CZa03G1y.cjs';
4
+ import { P as PropertyType, S as ShapeLinkBuilder, a as ShapeDefinition, R as RequiredProperty, b as ShapeBuilder } from '../shapes-internal-OxN-0-aT.cjs';
5
+ export { L as LinkLoadConfig, c as LinkStatus, N as NullabilityViolation, d as ShapeBaseType, e as ShapeDerivedLinks, f as ShapeInstance, g as ShapeLinkResult, h as ShapeNullabilityError, i as SourcePrimaryKeySymbol, j as isSourcePkSymbol } from '../shapes-internal-OxN-0-aT.cjs';
5
6
  import 'type-fest';
6
7
  import 'geojson';
7
8
 
@@ -35,6 +36,20 @@ declare const __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference: Experimen
35
36
  createMediaReference: createMediaReference;
36
37
  }>;
37
38
 
39
+ type StreamingArgs<QD extends QueryDefinition<any>> = CompileTimeMetadata<QD>["signature"] extends (...args: infer A) => any ? A : never[];
40
+ type StreamingElement<QD extends QueryDefinition<any>> = CompileTimeMetadata<QD>["signature"] extends (...args: any[]) => Promise<infer R> ? R extends ReadonlyArray<infer E> ? E : R : never;
41
+ /**
42
+ * @experimental This feature is experimental and might change in the future.
43
+ *
44
+ * Executes a query as a streaming function, yielding results as they arrive
45
+ * from the server over an NDJSON stream. For queries that return arrays, the
46
+ * stream yields the element type — batches are flattened automatically.
47
+ */
48
+ type executeStreamingFunctionFn = <QD extends QueryDefinition<any>>(query: QD, ...args: StreamingArgs<QD>) => AsyncIterable<StreamingElement<QD>>;
49
+ declare const __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction: Experiment<"2.19.0", "__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction", {
50
+ executeStreamingFunction: executeStreamingFunctionFn;
51
+ }>;
52
+
38
53
  type fetchOneByRidFn = <Q extends ObjectOrInterfaceDefinition, const L extends PropertyKeys<Q>, const R extends boolean, const S extends false | "throw" = NullabilityAdherence.Default>(objectType: Q, rid: string, options?: SelectArg<Q, L, R, S>) => Promise<Osdk.Instance<Q, ExtractOptions<R, S>, L>>;
39
54
  declare const __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid: Experiment<"2.1.0", "__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid", {
40
55
  fetchOneByRid: fetchOneByRidFn;
@@ -823,4 +838,4 @@ declare function createShapeBuilder<BASE extends ObjectOrInterfaceDefinition>(ba
823
838
 
824
839
  declare function configToShapeDefinition<BASE extends ObjectOrInterfaceDefinition, const C extends InlineShapeConfig<BASE>>(baseType: BASE, config: C): InferShapeDefinition<BASE, C>;
825
840
 
826
- export { type AudioEncoding, AudioOperation, AudioToTextOperation, DicomToImageOperation, type DocumentTextExtractionConfig, DocumentToDocumentOperation, DocumentToImageOperation, DocumentToTextOperation, type EXPERIMENTAL_BulkLinkResult, EmailToAttachmentOperation, EmailToTextOperation, type Experiment, type ExperimentFns, type FetchPageByRidPayload, ImageOperation, 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__createMediaReference, __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid, __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid, __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks, __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet, __EXPERIMENTAL__NOT_SUPPORTED_YET__transformAndWait, configToShapeDefinition, createShapeBuilder };
841
+ export { type AudioEncoding, AudioOperation, AudioToTextOperation, DicomToImageOperation, type DocumentTextExtractionConfig, DocumentToDocumentOperation, DocumentToImageOperation, DocumentToTextOperation, type EXPERIMENTAL_BulkLinkResult, EmailToAttachmentOperation, EmailToTextOperation, type Experiment, type ExperimentFns, type FetchPageByRidPayload, ImageOperation, 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__createMediaReference, __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, __EXPERIMENTAL__NOT_SUPPORTED_YET__transformAndWait, configToShapeDefinition, createShapeBuilder };
@@ -1,4 +1,4 @@
1
- import { h as ObjectOrInterfaceDefinition, b4 as WhereClause, aI as PropertyKeys, C as CompileTimeMetadata, a5 as LinkNames, a7 as LinkedType, j as OsdkBase } from './ObjectSet-CsJQ0rYb.cjs';
1
+ import { O as ObjectOrInterfaceDefinition, b4 as WhereClause, aI as PropertyKeys, C as CompileTimeMetadata, a5 as LinkNames, a7 as LinkedType, j as OsdkBase } from './ObjectSet-fGyPIAmS.cjs';
2
2
 
3
3
  declare const SourcePrimaryKeySymbol: unique symbol;
4
4
  declare function isSourcePkSymbol(value: unknown): value is symbol;
@@ -0,0 +1,30 @@
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
+ * Executes a query as a streaming function, yielding results as they arrive
21
+ * from the server over an NDJSON stream. For queries that return arrays, the
22
+ * stream yields the element type — batches are flattened automatically.
23
+ */
24
+
25
+ export const __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction = {
26
+ name: "__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction",
27
+ type: "experiment",
28
+ version: "2.19.0"
29
+ };
30
+ //# sourceMappingURL=executeStreamingFunction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executeStreamingFunction.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction","name","type","version"],"sources":["executeStreamingFunction.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 { CompileTimeMetadata } from \"../ontology/ObjectTypeDefinition.js\";\nimport type { QueryDefinition } from \"../ontology/QueryDefinition.js\";\nimport type { Experiment } from \"./Experiment.js\";\n\ntype StreamingArgs<QD extends QueryDefinition<any>> =\n CompileTimeMetadata<QD>[\"signature\"] extends (...args: infer A) => any ? A\n : never[];\n\ntype StreamingElement<QD extends QueryDefinition<any>> =\n CompileTimeMetadata<QD>[\"signature\"] extends\n (...args: any[]) => Promise<infer R>\n ? R extends ReadonlyArray<infer E> ? E : R\n : never;\n\n/**\n * @experimental This feature is experimental and might change in the future.\n *\n * Executes a query as a streaming function, yielding results as they arrive\n * from the server over an NDJSON stream. For queries that return arrays, the\n * stream yields the element type — batches are flattened automatically.\n */\ntype executeStreamingFunctionFn = <QD extends QueryDefinition<any>>(\n query: QD,\n ...args: StreamingArgs<QD>\n) => AsyncIterable<StreamingElement<QD>>;\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction:\n Experiment<\n \"2.19.0\",\n \"__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction\",\n { executeStreamingFunction: executeStreamingFunctionFn }\n > = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction\",\n type: \"experiment\",\n version: \"2.19.0\",\n };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAO,MAAMA,2DAKV,GAAG;EACFC,IAAI,EAAE,6DAA6D;EACnEC,IAAI,EAAE,YAAY;EAClBC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
@@ -15,6 +15,7 @@
15
15
  */
16
16
 
17
17
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference } from "../experimental/createMediaReference.js";
18
+ export { __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction } from "../experimental/executeStreamingFunction.js";
18
19
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid } from "../experimental/fetchOneByRid.js";
19
20
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid } from "../experimental/fetchPageByRid.js";
20
21
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from "../experimental/getBulkLinks.js";
@@ -1 +1 @@
1
- {"version":3,"file":"unstable.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks","__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet","__EXPERIMENTAL__NOT_SUPPORTED_YET__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__createMediaReference } from \"../experimental/createMediaReference.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 AudioEncoding,\n AudioOperation,\n AudioToTextOperation,\n DicomToImageOperation,\n DocumentTextExtractionConfig,\n DocumentToDocumentOperation,\n DocumentToImageOperation,\n DocumentToTextOperation,\n EmailToAttachmentOperation,\n EmailToTextOperation,\n ImageOperation,\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 __EXPERIMENTAL__NOT_SUPPORTED_YET__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,uDAAuD,QAAQ,yCAAyC;AACjH,SAASC,gDAAgD,QAAQ,kCAAkC;AACnG,SACEC,iDAAiD,QAE5C,mCAAmC;AAC1C,SAASC,+CAA+C,QAAQ,iCAAiC;AAiCjG,SAASC,6DAA6D,QAAQ,+CAA+C;AAC7H,SACEC,mDAAmD,QAE9C,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
+ {"version":3,"file":"unstable.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference","__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","__EXPERIMENTAL__NOT_SUPPORTED_YET__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__createMediaReference } from \"../experimental/createMediaReference.js\";\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 AudioEncoding,\n AudioOperation,\n AudioToTextOperation,\n DicomToImageOperation,\n DocumentTextExtractionConfig,\n DocumentToDocumentOperation,\n DocumentToImageOperation,\n DocumentToTextOperation,\n EmailToAttachmentOperation,\n EmailToTextOperation,\n ImageOperation,\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 __EXPERIMENTAL__NOT_SUPPORTED_YET__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,uDAAuD,QAAQ,yCAAyC;AACjH,SAASC,2DAA2D,QAAQ,6CAA6C;AACzH,SAASC,gDAAgD,QAAQ,kCAAkC;AACnG,SACEC,iDAAiD,QAE5C,mCAAmC;AAC1C,SAASC,+CAA+C,QAAQ,iCAAiC;AAiCjG,SAASC,6DAA6D,QAAQ,+CAA+C;AAC7H,SACEC,mDAAmD,QAE9C,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":[]}
@@ -0,0 +1,17 @@
1
+ import type { CompileTimeMetadata } from "../ontology/ObjectTypeDefinition.js";
2
+ import type { QueryDefinition } from "../ontology/QueryDefinition.js";
3
+ import type { Experiment } from "./Experiment.js";
4
+ type StreamingArgs<QD extends QueryDefinition<any>> = CompileTimeMetadata<QD>["signature"] extends (...args: infer A) => any ? A : never[];
5
+ type StreamingElement<QD extends QueryDefinition<any>> = CompileTimeMetadata<QD>["signature"] extends (...args: any[]) => Promise<infer R> ? R extends ReadonlyArray<infer E> ? E : R : never;
6
+ /**
7
+ * @experimental This feature is experimental and might change in the future.
8
+ *
9
+ * Executes a query as a streaming function, yielding results as they arrive
10
+ * from the server over an NDJSON stream. For queries that return arrays, the
11
+ * stream yields the element type — batches are flattened automatically.
12
+ */
13
+ type executeStreamingFunctionFn = <QD extends QueryDefinition<any>>(query: QD, ...args: StreamingArgs<QD>) => AsyncIterable<StreamingElement<QD>>;
14
+ export declare const __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction: Experiment<"2.19.0", "__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction", {
15
+ executeStreamingFunction: executeStreamingFunctionFn
16
+ }>;
17
+ export {};
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,2BAA2B,qCAAsC;AAC/E,cAAc,uBAAuB,gCAAiC;AACtE,cAAc,kBAAkB,iBAAkB;KAE7C,cAAc,WAAW,wBAC5B,oBAAoB,IAAI,sBAAsB,GAAG,YAAY,YAAY;KAGtE,iBAAiB,WAAW,wBAC/B,oBAAoB,IAAI,sBACrB,GAAG,gBAAgB,cAAc,KAChC,UAAU,oBAAoB,KAAK,IAAI;;;;;;;;KAUxC,8BAA8B,WAAW,sBAC5CA,OAAO,IACP,GAAG,MAAM,cAAc,QACpB,cAAc,iBAAiB;AAEpC,OAAO,cAAMC,6DACX,WACE,UACA,+DACA;CAAE,0BAA0B;AAA4B","names":["query: QD","__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction:\n Experiment<\n \"2.19.0\",\n \"__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction\",\n { executeStreamingFunction: executeStreamingFunctionFn }\n >"],"sources":["../../../src/experimental/executeStreamingFunction.ts"],"version":3,"file":"executeStreamingFunction.d.ts"}
@@ -1,5 +1,6 @@
1
1
  export type { Experiment, ExperimentFns } from "../experimental/Experiment.js";
2
2
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference } from "../experimental/createMediaReference.js";
3
+ export { __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction } from "../experimental/executeStreamingFunction.js";
3
4
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid } from "../experimental/fetchOneByRid.js";
4
5
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid, type FetchPageByRidPayload } from "../experimental/fetchPageByRid.js";
5
6
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from "../experimental/getBulkLinks.js";
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,YAAY,qBAAqB;AAE/C,SAAS,+DAA+D;AACxE,SAAS,wDAAwD;AACjE,SACE,wDACK,6BACA;AACP,SAAS,uDAAuD;AAChE,cACE,eACA,gBACA,sBACA,uBACA,8BACA,6BACA,0BACA,yBACA,4BACA,sBACA,gBACA,WACA,0BACA,2BACA,sBACA,iCACA,SACA,qBACA,qBACA,iBACA,eACA,WACA,4BACA,wBACA,gBACA,yBACA,uBACA,uBACA,sBACA,8BACK;AACP,SAAS,qEAAqE;AAC9E,SACE,0DACK,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"}
1
+ {"mappings":"AAgBA,cAAc,YAAY,qBAAqB;AAE/C,SAAS,+DAA+D;AACxE,SAAS,mEAAmE;AAC5E,SAAS,wDAAwD;AACjE,SACE,wDACK,6BACA;AACP,SAAS,uDAAuD;AAChE,cACE,eACA,gBACA,sBACA,uBACA,8BACA,6BACA,0BACA,yBACA,4BACA,sBACA,gBACA,WACA,0BACA,2BACA,sBACA,iCACA,SACA,qBACA,qBACA,iBACA,eACA,WACA,4BACA,wBACA,gBACA,yBACA,uBACA,uBACA,sBACA,8BACK;AACP,SAAS,qEAAqE;AAC9E,SACE,0DACK,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,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/api",
3
- "version": "2.19.0",
3
+ "version": "2.20.0-main-9eb67e484674ef3b31366ff805e2a680cb21cb16",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",