@runtypelabs/sdk 1.19.1 → 1.20.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/dist/index.d.cts CHANGED
@@ -1077,10 +1077,36 @@ interface SendStreamStepConfig$1 {
1077
1077
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
1078
1078
  when?: string;
1079
1079
  }
1080
+ /**
1081
+ * Operator allowlist for chip-style record filters. Mirrors the API's
1082
+ * `record-filter-compiler.ts`. Kept inline here to avoid a hard dependency
1083
+ * on `@runtypelabs/shared` from the published SDK.
1084
+ */
1085
+ type RecordFilterOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'between' | 'contains' | 'startsWith' | 'endsWith' | 'in' | 'notIn' | 'isSet' | 'isNotSet' | 'isTrue' | 'isFalse' | 'withinLastDays' | 'olderThanDays';
1086
+ interface RecordFilterCondition {
1087
+ field: string;
1088
+ op: RecordFilterOperator;
1089
+ value?: unknown;
1090
+ }
1091
+ interface RecordFilterGroup {
1092
+ op: 'and' | 'or';
1093
+ conditions: Array<RecordFilterCondition | RecordFilterGroup>;
1094
+ }
1095
+ interface RecordFilter {
1096
+ type: string;
1097
+ where?: RecordFilterCondition | RecordFilterGroup;
1098
+ }
1080
1099
  interface RetrieveRecordStepConfig$1 {
1081
1100
  name: string;
1082
1101
  recordType?: string;
1083
1102
  recordName?: string;
1103
+ /**
1104
+ * Optional chip-style filter (metadata + top-level columns: id, name,
1105
+ * createdAt, updatedAt). Coexists with recordType/recordName for
1106
+ * backward compatibility; the API executor prefers recordFilter when
1107
+ * both are set.
1108
+ */
1109
+ recordFilter?: RecordFilter;
1084
1110
  fieldsToInclude?: string[];
1085
1111
  fieldsToExclude?: string[];
1086
1112
  outputVariable?: string;
@@ -2007,10 +2033,13 @@ interface SendStreamStepConfig {
2007
2033
  message: string;
2008
2034
  enabled?: boolean;
2009
2035
  }
2036
+
2010
2037
  interface RetrieveRecordStepConfig {
2011
2038
  name: string;
2012
2039
  recordType?: string;
2013
2040
  recordName?: string;
2041
+ /** Chip-style filter (metadata + top-level columns). See flow-builder.ts. */
2042
+ recordFilter?: RecordFilter;
2014
2043
  fieldsToInclude?: string[];
2015
2044
  fieldsToExclude?: string[];
2016
2045
  outputVariable?: string;
package/dist/index.d.ts CHANGED
@@ -1077,10 +1077,36 @@ interface SendStreamStepConfig$1 {
1077
1077
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
1078
1078
  when?: string;
1079
1079
  }
1080
+ /**
1081
+ * Operator allowlist for chip-style record filters. Mirrors the API's
1082
+ * `record-filter-compiler.ts`. Kept inline here to avoid a hard dependency
1083
+ * on `@runtypelabs/shared` from the published SDK.
1084
+ */
1085
+ type RecordFilterOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'between' | 'contains' | 'startsWith' | 'endsWith' | 'in' | 'notIn' | 'isSet' | 'isNotSet' | 'isTrue' | 'isFalse' | 'withinLastDays' | 'olderThanDays';
1086
+ interface RecordFilterCondition {
1087
+ field: string;
1088
+ op: RecordFilterOperator;
1089
+ value?: unknown;
1090
+ }
1091
+ interface RecordFilterGroup {
1092
+ op: 'and' | 'or';
1093
+ conditions: Array<RecordFilterCondition | RecordFilterGroup>;
1094
+ }
1095
+ interface RecordFilter {
1096
+ type: string;
1097
+ where?: RecordFilterCondition | RecordFilterGroup;
1098
+ }
1080
1099
  interface RetrieveRecordStepConfig$1 {
1081
1100
  name: string;
1082
1101
  recordType?: string;
1083
1102
  recordName?: string;
1103
+ /**
1104
+ * Optional chip-style filter (metadata + top-level columns: id, name,
1105
+ * createdAt, updatedAt). Coexists with recordType/recordName for
1106
+ * backward compatibility; the API executor prefers recordFilter when
1107
+ * both are set.
1108
+ */
1109
+ recordFilter?: RecordFilter;
1084
1110
  fieldsToInclude?: string[];
1085
1111
  fieldsToExclude?: string[];
1086
1112
  outputVariable?: string;
@@ -2007,10 +2033,13 @@ interface SendStreamStepConfig {
2007
2033
  message: string;
2008
2034
  enabled?: boolean;
2009
2035
  }
2036
+
2010
2037
  interface RetrieveRecordStepConfig {
2011
2038
  name: string;
2012
2039
  recordType?: string;
2013
2040
  recordName?: string;
2041
+ /** Chip-style filter (metadata + top-level columns). See flow-builder.ts. */
2042
+ recordFilter?: RecordFilter;
2014
2043
  fieldsToInclude?: string[];
2015
2044
  fieldsToExclude?: string[];
2016
2045
  outputVariable?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "1.19.1",
3
+ "version": "1.20.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
6
6
  "main": "dist/index.cjs",