@osdk/internal.foundry.ontologies 2.15.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @osdk/internal.foundry.ontologies
2
2
 
3
+ ## 2.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - db7ee48: Update Platform SDKs
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [db7ee48]
12
+ - @osdk/internal.foundry.core@2.17.0
13
+ - @osdk/internal.foundry.geo@2.17.0
14
+
15
+ ## 2.16.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 45b549f: Bumping to include new flag on interface object sets.
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [45b549f]
24
+ - @osdk/internal.foundry.core@2.16.0
25
+ - @osdk/internal.foundry.geo@2.16.0
26
+
3
27
  ## 2.15.0
4
28
 
5
29
  ### Minor Changes
@@ -12,6 +12,14 @@ export interface AbsoluteTimeRange {
12
12
  startTime?: string;
13
13
  endTime?: string;
14
14
  }
15
+ /**
16
+ * Calculates absolute value of a numeric value.
17
+ *
18
+ * Log Safety: UNSAFE
19
+ */
20
+ export interface AbsoluteValuePropertyExpression {
21
+ property: DerivedPropertyDefinition;
22
+ }
15
23
  /**
16
24
  * Log Safety: UNSAFE
17
25
  */
@@ -70,6 +78,7 @@ export type ActionParameterType = ({
70
78
  * Log Safety: UNSAFE
71
79
  */
72
80
  export interface ActionParameterV2 {
81
+ displayName: _Core.DisplayName;
73
82
  description?: string;
74
83
  dataType: ActionParameterType;
75
84
  required: boolean;
@@ -153,6 +162,14 @@ export interface AddObject {
153
162
  primaryKey: PropertyValue;
154
163
  objectType: ObjectTypeApiName;
155
164
  }
165
+ /**
166
+ * Adds two or more numeric values.
167
+ *
168
+ * Log Safety: UNSAFE
169
+ */
170
+ export interface AddPropertyExpression {
171
+ properties: Array<DerivedPropertyDefinition>;
172
+ }
156
173
  /**
157
174
  * Log Safety: UNSAFE
158
175
  */
@@ -209,6 +226,13 @@ export interface AggregateObjectsResponseV2 {
209
226
  accuracy: AggregationAccuracy;
210
227
  data: Array<AggregateObjectsResponseItemV2>;
211
228
  }
229
+ /**
230
+ * Log Safety: UNSAFE
231
+ */
232
+ export interface AggregateTimeSeries {
233
+ method: TimeSeriesAggregationMethod;
234
+ strategy: TimeSeriesAggregationStrategy;
235
+ }
212
236
  /**
213
237
  * Specifies an aggregation function.
214
238
  *
@@ -984,9 +1008,29 @@ export type DerivedPropertyApiName = LooselyBrandedString<"DerivedPropertyApiNam
984
1008
  *
985
1009
  * Log Safety: UNSAFE
986
1010
  */
987
- export type DerivedPropertyDefinition = {
1011
+ export type DerivedPropertyDefinition = ({
1012
+ type: "add";
1013
+ } & AddPropertyExpression) | ({
1014
+ type: "absoluteValue";
1015
+ } & AbsoluteValuePropertyExpression) | ({
1016
+ type: "extract";
1017
+ } & ExtractPropertyExpression) | ({
988
1018
  type: "selection";
989
- } & SelectedPropertyDefinition;
1019
+ } & SelectedPropertyExpression) | ({
1020
+ type: "negate";
1021
+ } & NegatePropertyExpression) | ({
1022
+ type: "subtract";
1023
+ } & SubtractPropertyExpression) | ({
1024
+ type: "property";
1025
+ } & PropertyApiNameSelector) | ({
1026
+ type: "least";
1027
+ } & LeastPropertyExpression) | ({
1028
+ type: "divide";
1029
+ } & DividePropertyExpression) | ({
1030
+ type: "multiply";
1031
+ } & MultiplyPropertyExpression) | ({
1032
+ type: "greatest";
1033
+ } & GreatestPropertyExpression);
990
1034
  /**
991
1035
  * The representation of a time series property backed by a derived time series calculated with a formula.
992
1036
  *
@@ -996,6 +1040,15 @@ export interface DerivedTimeSeriesProperty {
996
1040
  templateRid: TimeseriesTemplateRid;
997
1041
  templateVersion?: TimeseriesTemplateVersion;
998
1042
  }
1043
+ /**
1044
+ * Divides the left numeric value by the right numeric value.
1045
+ *
1046
+ * Log Safety: UNSAFE
1047
+ */
1048
+ export interface DividePropertyExpression {
1049
+ left: DerivedPropertyDefinition;
1050
+ right: DerivedPropertyDefinition;
1051
+ }
999
1052
  /**
1000
1053
  * Returns objects where the specified field does not intersect the bounding box provided. Allows you to specify a
1001
1054
  property to query on by a variety of means. Either field or propertyIdentifier must be supplied, but not
@@ -1110,6 +1163,19 @@ export interface ExecuteQueryResponse {
1110
1163
  */
1111
1164
  export interface ExperimentalPropertyTypeStatus {
1112
1165
  }
1166
+ /**
1167
+ * Log Safety: SAFE
1168
+ */
1169
+ export type ExtractDatePart = "DAYS" | "MONTHS" | "QUARTERS" | "YEARS";
1170
+ /**
1171
+ * Extracts the specified date part from a date or timestamp.
1172
+ *
1173
+ * Log Safety: UNSAFE
1174
+ */
1175
+ export interface ExtractPropertyExpression {
1176
+ property: DerivedPropertyDefinition;
1177
+ part: ExtractDatePart;
1178
+ }
1113
1179
  /**
1114
1180
  * A reference to an Ontology object property with the form properties.{propertyApiName}.
1115
1181
  *
@@ -1188,6 +1254,14 @@ Use collectList or collectSet which will return a list of values in that case.
1188
1254
  export interface GetSelectedPropertyOperation {
1189
1255
  selectedPropertyApiName: PropertyApiName;
1190
1256
  }
1257
+ /**
1258
+ * Finds greatest of two or more numeric, date or timestamp values.
1259
+ *
1260
+ * Log Safety: UNSAFE
1261
+ */
1262
+ export interface GreatestPropertyExpression {
1263
+ properties: Array<DerivedPropertyDefinition>;
1264
+ }
1191
1265
  /**
1192
1266
  * The parameter value must be the user id of a member belonging to at least one of the groups defined by the constraint.
1193
1267
  *
@@ -1398,6 +1472,14 @@ export interface IsNullQueryV2 {
1398
1472
  propertyIdentifier?: PropertyIdentifier;
1399
1473
  value: boolean;
1400
1474
  }
1475
+ /**
1476
+ * Finds least of two or more numeric, date or timestamp values.
1477
+ *
1478
+ * Log Safety: UNSAFE
1479
+ */
1480
+ export interface LeastPropertyExpression {
1481
+ properties: Array<DerivedPropertyDefinition>;
1482
+ }
1401
1483
  /**
1402
1484
  * A reference to the linked interface type.
1403
1485
  *
@@ -1785,6 +1867,14 @@ export interface ModifyObject {
1785
1867
  export interface ModifyObjectRule {
1786
1868
  objectTypeApiName: ObjectTypeApiName;
1787
1869
  }
1870
+ /**
1871
+ * Multiplies two or more numeric values.
1872
+ *
1873
+ * Log Safety: UNSAFE
1874
+ */
1875
+ export interface MultiplyPropertyExpression {
1876
+ properties: Array<DerivedPropertyDefinition>;
1877
+ }
1788
1878
  /**
1789
1879
  * Queries support either a vector matching the embedding model defined on the property, or text that is
1790
1880
  automatically embedded.
@@ -1804,6 +1894,14 @@ export type NearestNeighborsQuery = ({
1804
1894
  export interface NearestNeighborsQueryText {
1805
1895
  value: string;
1806
1896
  }
1897
+ /**
1898
+ * Negates a numeric value.
1899
+ *
1900
+ * Log Safety: UNSAFE
1901
+ */
1902
+ export interface NegatePropertyExpression {
1903
+ property: DerivedPropertyDefinition;
1904
+ }
1807
1905
  /**
1808
1906
  * Log Safety: UNSAFE
1809
1907
  */
@@ -1999,6 +2097,7 @@ export interface ObjectSetFilterType {
1999
2097
  */
2000
2098
  export interface ObjectSetInterfaceBaseType {
2001
2099
  interfaceType: string;
2100
+ includeAllBaseObjectProperties?: boolean;
2002
2101
  }
2003
2102
  /**
2004
2103
  * Log Safety: UNSAFE
@@ -2540,6 +2639,21 @@ export interface PhraseQuery {
2540
2639
  export type PolygonValue = {
2541
2640
  type: "Polygon";
2542
2641
  } & _Geo.Polygon;
2642
+ /**
2643
+ * A measurement of duration.
2644
+ *
2645
+ * Log Safety: SAFE
2646
+ */
2647
+ export interface PreciseDuration {
2648
+ value: number;
2649
+ unit: PreciseTimeUnit;
2650
+ }
2651
+ /**
2652
+ * The unit of a fixed-width duration. Each day is 24 hours and each week is 7 days.
2653
+ *
2654
+ * Log Safety: SAFE
2655
+ */
2656
+ export type PreciseTimeUnit = "NANOSECONDS" | "SECONDS" | "MINUTES" | "HOURS" | "DAYS" | "WEEKS";
2543
2657
  /**
2544
2658
  * Returns objects where the specified field starts with the provided value.
2545
2659
  *
@@ -3018,6 +3132,14 @@ export type RequestId = string;
3018
3132
  * Log Safety: SAFE
3019
3133
  */
3020
3134
  export type ReturnEditsMode = "ALL" | "ALL_V2_WITH_DELETIONS" | "NONE";
3135
+ /**
3136
+ * Number of points in each window.
3137
+ *
3138
+ * Log Safety: SAFE
3139
+ */
3140
+ export interface RollingAggregateWindowPoints {
3141
+ count: number;
3142
+ }
3021
3143
  /**
3022
3144
  * Log Safety: UNSAFE
3023
3145
  */
@@ -3266,21 +3388,21 @@ export interface SelectedPropertyCollectSetAggregation {
3266
3388
  export interface SelectedPropertyCountAggregation {
3267
3389
  }
3268
3390
  /**
3269
- * Definition for a selected property over a MethodObjectSet.
3391
+ * Computes an exact number of distinct values for the provided field. May be slower than an approximate distinct aggregation.
3270
3392
  *
3271
3393
  * Log Safety: UNSAFE
3272
3394
  */
3273
- export interface SelectedPropertyDefinition {
3274
- objectSet: MethodObjectSet;
3275
- operation: SelectedPropertyOperation;
3395
+ export interface SelectedPropertyExactDistinctAggregation {
3396
+ selectedPropertyApiName: PropertyApiName;
3276
3397
  }
3277
3398
  /**
3278
- * Computes an exact number of distinct values for the provided field. May be slower than an approximate distinct aggregation.
3399
+ * Definition for a selected property over a MethodObjectSet.
3279
3400
  *
3280
3401
  * Log Safety: UNSAFE
3281
3402
  */
3282
- export interface SelectedPropertyExactDistinctAggregation {
3283
- selectedPropertyApiName: PropertyApiName;
3403
+ export interface SelectedPropertyExpression {
3404
+ objectSet: MethodObjectSet;
3405
+ operation: SelectedPropertyOperation;
3284
3406
  }
3285
3407
  /**
3286
3408
  * Computes the maximum value for the provided field.
@@ -3400,6 +3522,7 @@ export type StreamMessage = ({
3400
3522
  */
3401
3523
  export interface StreamTimeSeriesPointsRequest {
3402
3524
  range?: TimeRange;
3525
+ aggregate?: AggregateTimeSeries;
3403
3526
  }
3404
3527
  /**
3405
3528
  * Log Safety: UNSAFE
@@ -3447,9 +3570,10 @@ export interface StringRegexMatchConstraint {
3447
3570
  */
3448
3571
  export type StructFieldApiName = LooselyBrandedString<"StructFieldApiName">;
3449
3572
  /**
3450
- * A combination of a struct property api name and a struct field api name. This is used to select struct fields
3451
- to query on. Note that you can still select struct properties with only a 'PropertyApiNameSelector'; the queries
3452
- will then become 'OR' queries across the fields of the struct property.
3573
+ * A combination of a property API name and a struct field API name used to select struct fields. Note that you can
3574
+ still select struct properties with only a 'PropertyApiNameSelector'; the queries will then become 'OR' queries
3575
+ across the fields of the struct property, and derived property expressions will operate on the whole struct
3576
+ where applicable.
3453
3577
  *
3454
3578
  * Log Safety: UNSAFE
3455
3579
  */
@@ -3516,6 +3640,15 @@ export type SubscriptionId = string;
3516
3640
  export interface SubscriptionSuccess {
3517
3641
  id: SubscriptionId;
3518
3642
  }
3643
+ /**
3644
+ * Subtracts the right numeric value from the left numeric value.
3645
+ *
3646
+ * Log Safety: UNSAFE
3647
+ */
3648
+ export interface SubtractPropertyExpression {
3649
+ left: DerivedPropertyDefinition;
3650
+ right: DerivedPropertyDefinition;
3651
+ }
3519
3652
  /**
3520
3653
  * Computes the sum of values for the provided field.
3521
3654
  *
@@ -3559,6 +3692,35 @@ export type TimeRange = ({
3559
3692
  } & AbsoluteTimeRange) | ({
3560
3693
  type: "relative";
3561
3694
  } & RelativeTimeRange);
3695
+ /**
3696
+ * The aggregation function to use for aggregating time series data.
3697
+ *
3698
+ * Log Safety: SAFE
3699
+ */
3700
+ export type TimeSeriesAggregationMethod = "SUM" | "MEAN" | "STANDARD_DEVIATION" | "MAX" | "MIN" | "PERCENT_CHANGE" | "DIFFERENCE" | "PRODUCT" | "COUNT" | "FIRST" | "LAST";
3701
+ /**
3702
+ * CUMULATIVE aggregates all points up to the current point.
3703
+ ROLLING aggregates all points in a rolling window whose size is either the specified number of points or
3704
+ time duration.
3705
+ PERIODIC aggregates all points in specified time windows.
3706
+ *
3707
+ * Log Safety: UNSAFE
3708
+ */
3709
+ export type TimeSeriesAggregationStrategy = ({
3710
+ type: "rolling";
3711
+ } & TimeSeriesRollingAggregate) | ({
3712
+ type: "periodic";
3713
+ } & TimeSeriesPeriodicAggregate) | ({
3714
+ type: "cumulative";
3715
+ } & TimeSeriesCumulativeAggregate);
3716
+ /**
3717
+ * The cumulative aggregate is calculated progressively for each point in the input time series,
3718
+ considering all preceding points up to and including the current point.
3719
+ *
3720
+ * Log Safety: SAFE
3721
+ */
3722
+ export interface TimeSeriesCumulativeAggregate {
3723
+ }
3562
3724
  /**
3563
3725
  * A time and value pair.
3564
3726
  *
@@ -3568,6 +3730,22 @@ export interface TimeseriesEntry {
3568
3730
  time: string;
3569
3731
  value: any;
3570
3732
  }
3733
+ /**
3734
+ * Aggregates values over discrete, periodic windows for a given time series.
3735
+ A periodic window divides the time series into windows of fixed durations.
3736
+ For each window, an aggregate function is applied to the points within that window. The result is a time series
3737
+ with values representing the aggregate for each window. Windows with no data points are not included
3738
+ in the output.
3739
+ Periodic aggregation is useful for downsampling a continuous stream of data to larger granularities such as
3740
+ hourly, daily, monthly.
3741
+ *
3742
+ * Log Safety: SAFE
3743
+ */
3744
+ export interface TimeSeriesPeriodicAggregate {
3745
+ windowSize: PreciseDuration;
3746
+ alignmentTimestamp?: string;
3747
+ windowType: TimeSeriesWindowType;
3748
+ }
3571
3749
  /**
3572
3750
  * A time and value pair.
3573
3751
  *
@@ -3581,6 +3759,26 @@ export interface TimeSeriesPoint {
3581
3759
  * Log Safety: UNSAFE
3582
3760
  */
3583
3761
  export type TimeSeriesPropertyV2 = LooselyBrandedString<"TimeSeriesPropertyV2">;
3762
+ /**
3763
+ * Log Safety: UNSAFE
3764
+ */
3765
+ export interface TimeSeriesRollingAggregate {
3766
+ windowSize: TimeSeriesRollingAggregateWindow;
3767
+ }
3768
+ /**
3769
+ * A rolling window is a moving subset of data points that ends at the current timestamp (inclusive)
3770
+ and spans a specified duration (window size). As new data points are added, old points fall out of the
3771
+ window if they are outside the specified duration.
3772
+ Rolling windows are commonly used for smoothing data, detecting trends, and reducing noise
3773
+ in time series analysis.
3774
+ *
3775
+ * Log Safety: UNSAFE
3776
+ */
3777
+ export type TimeSeriesRollingAggregateWindow = ({
3778
+ type: "duration";
3779
+ } & PreciseDuration) | ({
3780
+ type: "pointsCount";
3781
+ } & RollingAggregateWindowPoints);
3584
3782
  /**
3585
3783
  * The RID identifying a time series sync.
3586
3784
  *
@@ -3603,6 +3801,10 @@ export type TimeseriesTemplateVersion = LooselyBrandedString<"TimeseriesTemplate
3603
3801
  * Log Safety: UNSAFE
3604
3802
  */
3605
3803
  export type TimeSeriesValueBankProperty = LooselyBrandedString<"TimeSeriesValueBankProperty">;
3804
+ /**
3805
+ * Log Safety: SAFE
3806
+ */
3807
+ export type TimeSeriesWindowType = "START" | "END";
3606
3808
  /**
3607
3809
  * Log Safety: SAFE
3608
3810
  */