@runtypelabs/sdk 1.19.0 → 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
@@ -341,6 +341,8 @@ interface DispatchRequest {
341
341
  versionNotes?: string;
342
342
  flowVersionId?: string;
343
343
  upsertOptions?: UpsertOptions$2;
344
+ flowTimeoutMs?: number;
345
+ stepTimeoutMs?: number;
344
346
  };
345
347
  }
346
348
  interface ListParams {
@@ -1075,10 +1077,36 @@ interface SendStreamStepConfig$1 {
1075
1077
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
1076
1078
  when?: string;
1077
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
+ }
1078
1099
  interface RetrieveRecordStepConfig$1 {
1079
1100
  name: string;
1080
1101
  recordType?: string;
1081
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;
1082
1110
  fieldsToInclude?: string[];
1083
1111
  fieldsToExclude?: string[];
1084
1112
  outputVariable?: string;
@@ -1223,6 +1251,8 @@ interface DispatchOptions$1 {
1223
1251
  flowVersionId?: string;
1224
1252
  /** Options for upsert mode (only used when flowMode is 'upsert') */
1225
1253
  upsertOptions?: UpsertOptions$1;
1254
+ flowTimeoutMs?: number;
1255
+ stepTimeoutMs?: number;
1226
1256
  }
1227
1257
  interface Message$1 {
1228
1258
  role: 'system' | 'user' | 'assistant';
@@ -2003,10 +2033,13 @@ interface SendStreamStepConfig {
2003
2033
  message: string;
2004
2034
  enabled?: boolean;
2005
2035
  }
2036
+
2006
2037
  interface RetrieveRecordStepConfig {
2007
2038
  name: string;
2008
2039
  recordType?: string;
2009
2040
  recordName?: string;
2041
+ /** Chip-style filter (metadata + top-level columns). See flow-builder.ts. */
2042
+ recordFilter?: RecordFilter;
2010
2043
  fieldsToInclude?: string[];
2011
2044
  fieldsToExclude?: string[];
2012
2045
  outputVariable?: string;
package/dist/index.d.ts CHANGED
@@ -341,6 +341,8 @@ interface DispatchRequest {
341
341
  versionNotes?: string;
342
342
  flowVersionId?: string;
343
343
  upsertOptions?: UpsertOptions$2;
344
+ flowTimeoutMs?: number;
345
+ stepTimeoutMs?: number;
344
346
  };
345
347
  }
346
348
  interface ListParams {
@@ -1075,10 +1077,36 @@ interface SendStreamStepConfig$1 {
1075
1077
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
1076
1078
  when?: string;
1077
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
+ }
1078
1099
  interface RetrieveRecordStepConfig$1 {
1079
1100
  name: string;
1080
1101
  recordType?: string;
1081
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;
1082
1110
  fieldsToInclude?: string[];
1083
1111
  fieldsToExclude?: string[];
1084
1112
  outputVariable?: string;
@@ -1223,6 +1251,8 @@ interface DispatchOptions$1 {
1223
1251
  flowVersionId?: string;
1224
1252
  /** Options for upsert mode (only used when flowMode is 'upsert') */
1225
1253
  upsertOptions?: UpsertOptions$1;
1254
+ flowTimeoutMs?: number;
1255
+ stepTimeoutMs?: number;
1226
1256
  }
1227
1257
  interface Message$1 {
1228
1258
  role: 'system' | 'user' | 'assistant';
@@ -2003,10 +2033,13 @@ interface SendStreamStepConfig {
2003
2033
  message: string;
2004
2034
  enabled?: boolean;
2005
2035
  }
2036
+
2006
2037
  interface RetrieveRecordStepConfig {
2007
2038
  name: string;
2008
2039
  recordType?: string;
2009
2040
  recordName?: string;
2041
+ /** Chip-style filter (metadata + top-level columns). See flow-builder.ts. */
2042
+ recordFilter?: RecordFilter;
2010
2043
  fieldsToInclude?: string[];
2011
2044
  fieldsToExclude?: string[];
2012
2045
  outputVariable?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "1.19.0",
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",