@stndrds/schema 1.0.0-alpha.263 → 1.0.0-alpha.265
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/{attributes-_6tvjbyl.d.ts → attributes-_b3Db8vT.d.ts} +1 -23
- package/dist/{attributes-Cmkc7UgJ.d.mts → attributes-lBLiOIY3.d.mts} +1 -23
- package/dist/chunk-NGGU6BSN.mjs +216 -0
- package/dist/chunk-NI3HCSYH.js +229 -0
- package/dist/{chunk-54WDPQ6R.mjs → chunk-QIWADKYA.mjs} +12 -216
- package/dist/{chunk-TS3PJOMZ.js → chunk-ZBQEMIAV.js} +11 -227
- package/dist/exceptions.d.mts +458 -0
- package/dist/exceptions.d.ts +458 -0
- package/dist/exceptions.js +154 -0
- package/dist/exceptions.mjs +1 -0
- package/dist/{helpers-BTC6TsKH.d.ts → helpers-eyrnPJEF.d.ts} +4 -39
- package/dist/{helpers-BO10yqih.d.mts → helpers-uKLet0kF.d.mts} +4 -39
- package/dist/index.d.mts +150 -476
- package/dist/index.d.ts +150 -476
- package/dist/index.js +238 -139
- package/dist/index.mjs +131 -35
- package/dist/migrations-BXd2ZGfM.d.mts +39 -0
- package/dist/migrations-DcuJZ8qO.d.ts +39 -0
- package/dist/{types-CVswgCx9.d.mts → types-DNz3ITS-.d.mts} +1 -1
- package/dist/{types-B_UZK_6m.d.ts → types-DqLi1tx1.d.ts} +1 -1
- package/dist/validation/all.d.mts +4 -3
- package/dist/validation/all.d.ts +4 -3
- package/dist/validation/all.js +10 -9
- package/dist/validation/all.mjs +4 -3
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/location.d.mts +2 -2
- package/dist/validation/complex/location.d.ts +2 -2
- package/dist/validation/complex/phone.d.mts +2 -2
- package/dist/validation/complex/phone.d.ts +2 -2
- package/dist/validation/complex/relation.d.mts +2 -2
- package/dist/validation/complex/relation.d.ts +2 -2
- package/dist/validation/complex/richtext.d.mts +2 -2
- package/dist/validation/complex/richtext.d.ts +2 -2
- package/dist/validation/complex/select.d.mts +2 -2
- package/dist/validation/complex/select.d.ts +2 -2
- package/dist/validation/complex/user.d.mts +2 -2
- package/dist/validation/complex/user.d.ts +2 -2
- package/dist/validation/computed/formula.d.mts +2 -2
- package/dist/validation/computed/formula.d.ts +2 -2
- package/dist/validation/computed/rollup.d.mts +2 -2
- package/dist/validation/computed/rollup.d.ts +2 -2
- package/dist/validation/config/index.d.mts +1 -1
- package/dist/validation/config/index.d.ts +1 -1
- package/dist/validation/core/index.d.mts +3 -3
- package/dist/validation/core/index.d.ts +3 -3
- package/dist/validation/object/index.d.mts +5 -4
- package/dist/validation/object/index.d.ts +5 -4
- package/dist/validation/object/index.js +16 -15
- package/dist/validation/object/index.mjs +4 -3
- package/dist/validation/primitives/checkbox.d.mts +2 -2
- package/dist/validation/primitives/checkbox.d.ts +2 -2
- package/dist/validation/primitives/date.d.mts +2 -2
- package/dist/validation/primitives/date.d.ts +2 -2
- package/dist/validation/primitives/number.d.mts +2 -2
- package/dist/validation/primitives/number.d.ts +2 -2
- package/dist/validation/primitives/text.d.mts +2 -2
- package/dist/validation/primitives/text.d.ts +2 -2
- package/package.json +7 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { i as ComputedValueType, j as ComputedReturnType,
|
|
2
|
-
export {
|
|
1
|
+
import { i as ComputedValueType, j as ComputedReturnType, f as AttributeType, k as ComputedOptionsSource, l as ComputedDependency, m as ComputedPlan, e as RollupAttribute, n as ComputedFormulaAstNode, A as Attribute, o as LocationGranularity, p as Location, F as FormulaAttribute, D as DateAttribute, q as DateRangeValue, r as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, s as Phone, t as Currency, U as UserAttribute, u as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, v as TimeFormat, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, O as Option, L as LocationAttribute, w as FormulaReturnType, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, x as RelationTarget, a as RichtextAttribute, y as RollupFunction, z as UserReferenceType } from './attributes-_b3Db8vT.js';
|
|
2
|
+
export { E as AttributeGroup, G as BaseAttribute, h as ComputedAttributeState, H as ComputedFieldKind, I as ComputedFormulaBinaryNode, J as ComputedFormulaBinaryOperator, K as ComputedFormulaCallNode, Q as ComputedFormulaLiteralNode, V as ComputedFormulaParseError, W as ComputedFormulaPathNode, X as ComputedStateStatus, Y as DateFormat, Z as DateValue, _ as NumberUnit, $ as OptionPropertyAttribute, a0 as PropertyAttribute, a1 as PropertyType, a2 as RELATION_TARGET_ANY, a3 as RichTextAttribute, a4 as StatusGroup, a5 as hasOptions, a6 as inferInverseCardinality, a7 as isAttributeSortable, a8 as isBilateralRelation, a9 as isUniversalRelation, aa as parseComputedFormula, ab as resolvePropertyDefinitions } from './attributes-_b3Db8vT.js';
|
|
3
3
|
import { IconName, MimeType, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
|
|
4
4
|
import { Uuid, TenantId } from './utils.js';
|
|
5
5
|
export { UserId, asTenantId, asUserId, deepEqual, generateId, indexBy } from './utils.js';
|
|
6
|
-
import { D as DocumentLayout, T as Timestamps,
|
|
7
|
-
export {
|
|
6
|
+
import { D as DocumentLayout, T as Timestamps, O as ObjectDefinition } from './helpers-eyrnPJEF.js';
|
|
7
|
+
export { h as DocumentLayoutVariant, F as FolderPreset, M as MAX_PRESET_DEPTH, j as ObjectAttribute, k as ObjectRecord, P as PresetNode, R as RESERVED_ATTRIBUTE_NAMES, l as RESERVED_OBJECT_NAMES, m as ReservedAttributeName, n as ReservedObjectName, S as SYSTEM_FIELD_NAMES, o as SystemFieldName, c as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, a as validateDraftOrThrow, b as validateObject, d as validateObjectOrThrow } from './helpers-eyrnPJEF.js';
|
|
8
|
+
import { M as MigrationDefinition } from './migrations-DcuJZ8qO.js';
|
|
9
|
+
export { B as BuiltInTransform, S as SchemaOperation } from './migrations-DcuJZ8qO.js';
|
|
10
|
+
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, AttributeUsage, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReference, RecordReferencedError, RepositoryError, RepositoryOperation, RoleNotFoundError, SchemaError, SchemaErrorCode, SearchBackendError, StorageError, StorageOperation, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, ValidationErrorDetail, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError } from './exceptions.js';
|
|
8
11
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
9
12
|
export { StandardSchemaV1 } from '@standard-schema/spec';
|
|
10
13
|
import z from 'zod';
|
|
11
|
-
export { V as ValidationMessages } from './types-
|
|
14
|
+
export { V as ValidationMessages } from './types-DqLi1tx1.js';
|
|
12
15
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.js';
|
|
13
16
|
export { parseAttributeConfig } from './validation/config/index.js';
|
|
14
17
|
|
|
@@ -270,16 +273,33 @@ interface ListOptions {
|
|
|
270
273
|
}
|
|
271
274
|
|
|
272
275
|
type CountMode = "none" | "estimated" | "exact";
|
|
276
|
+
interface CollectionPage {
|
|
277
|
+
hasMore: boolean;
|
|
278
|
+
total: number | null;
|
|
279
|
+
countMode: CountMode;
|
|
280
|
+
}
|
|
281
|
+
interface CollectionResponse<T> {
|
|
282
|
+
data: T[];
|
|
283
|
+
page: CollectionPage;
|
|
284
|
+
}
|
|
285
|
+
interface CollectionRequest {
|
|
286
|
+
limit?: number;
|
|
287
|
+
offset?: number;
|
|
288
|
+
countMode?: CountMode;
|
|
289
|
+
}
|
|
290
|
+
/** Legacy/internal offset-based pagination metadata. */
|
|
273
291
|
interface PageInfo {
|
|
274
292
|
limit: number;
|
|
275
293
|
hasMore: boolean;
|
|
276
294
|
total: number | null;
|
|
277
295
|
countMode: CountMode;
|
|
278
296
|
}
|
|
297
|
+
/** Legacy/internal offset-based pagination response. */
|
|
279
298
|
interface PageResponse<T> {
|
|
280
299
|
data: T[];
|
|
281
300
|
page: PageInfo;
|
|
282
301
|
}
|
|
302
|
+
/** Legacy/internal offset-based pagination options. */
|
|
283
303
|
interface PageOptions {
|
|
284
304
|
limit?: number;
|
|
285
305
|
offset?: number;
|
|
@@ -963,6 +983,8 @@ interface DBView extends Timestamps {
|
|
|
963
983
|
* Replaces the integer `schema_version` migration-tracking field.
|
|
964
984
|
*/
|
|
965
985
|
baseline_hash: string | null;
|
|
986
|
+
/** The view config the row was last known to match; null if never synced. Used for the runtime-vs-baseline delta. */
|
|
987
|
+
baseline_config: ViewConfig | null;
|
|
966
988
|
}
|
|
967
989
|
/**
|
|
968
990
|
* Data for creating a new view.
|
|
@@ -980,6 +1002,8 @@ interface CreateDBView {
|
|
|
980
1002
|
default?: boolean;
|
|
981
1003
|
metadata?: Record<string, unknown>;
|
|
982
1004
|
baseline_hash?: string | null;
|
|
1005
|
+
/** The view config the row was last known to match; null if never synced. Used for the runtime-vs-baseline delta. */
|
|
1006
|
+
baseline_config?: ViewConfig | null;
|
|
983
1007
|
}
|
|
984
1008
|
/**
|
|
985
1009
|
* Data for updating a view.
|
|
@@ -992,6 +1016,8 @@ interface UpdateDBView {
|
|
|
992
1016
|
default?: boolean;
|
|
993
1017
|
metadata?: Record<string, unknown>;
|
|
994
1018
|
baseline_hash?: string | null;
|
|
1019
|
+
/** The view config the row was last known to match; null if never synced. Used for the runtime-vs-baseline delta. */
|
|
1020
|
+
baseline_config?: ViewConfig | null;
|
|
995
1021
|
}
|
|
996
1022
|
/**
|
|
997
1023
|
* Data for upserting a view (used by registry seeding).
|
|
@@ -1008,6 +1034,8 @@ interface UpsertDBView {
|
|
|
1008
1034
|
default?: boolean;
|
|
1009
1035
|
metadata?: Record<string, unknown>;
|
|
1010
1036
|
baseline_hash?: string | null;
|
|
1037
|
+
/** The view config the row was last known to match; null if never synced. Used for the runtime-vs-baseline delta. */
|
|
1038
|
+
baseline_config?: ViewConfig | null;
|
|
1011
1039
|
}
|
|
1012
1040
|
/**
|
|
1013
1041
|
* View overlay as stored in database
|
|
@@ -1133,7 +1161,7 @@ interface BoundingBox {
|
|
|
1133
1161
|
height: number;
|
|
1134
1162
|
}
|
|
1135
1163
|
|
|
1136
|
-
type ActorType = "user" | "agent" | "api_key" | "system";
|
|
1164
|
+
type ActorType = "user" | "agent" | "api_key" | "reflex" | "system";
|
|
1137
1165
|
type ActorStatus = "active" | "suspended" | "deleted";
|
|
1138
1166
|
interface ActorBase {
|
|
1139
1167
|
id: Uuid;
|
|
@@ -2952,449 +2980,6 @@ interface BuilderConfig {
|
|
|
2952
2980
|
label: string;
|
|
2953
2981
|
}
|
|
2954
2982
|
|
|
2955
|
-
/**
|
|
2956
|
-
* Error codes for schema exceptions
|
|
2957
|
-
*/
|
|
2958
|
-
declare const SchemaErrorCode: {
|
|
2959
|
-
readonly UNKNOWN: "SCHEMA_UNKNOWN_ERROR";
|
|
2960
|
-
readonly OBJECT_NOT_FOUND: "SCHEMA_OBJECT_NOT_FOUND";
|
|
2961
|
-
readonly ATTRIBUTE_NOT_FOUND: "SCHEMA_ATTRIBUTE_NOT_FOUND";
|
|
2962
|
-
readonly RECORD_NOT_FOUND: "SCHEMA_RECORD_NOT_FOUND";
|
|
2963
|
-
readonly ROLE_NOT_FOUND: "SCHEMA_ROLE_NOT_FOUND";
|
|
2964
|
-
readonly MEMORY_NOT_FOUND: "SCHEMA_MEMORY_NOT_FOUND";
|
|
2965
|
-
readonly VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
|
|
2966
|
-
readonly INVALID_ATTRIBUTE_NAME: "SCHEMA_INVALID_ATTRIBUTE_NAME";
|
|
2967
|
-
readonly INVALID_OBJECT_NAME: "SCHEMA_INVALID_OBJECT_NAME";
|
|
2968
|
-
readonly PROTECTED_OBJECT: "SCHEMA_PROTECTED_OBJECT";
|
|
2969
|
-
readonly PROTECTED_ATTRIBUTE: "SCHEMA_PROTECTED_ATTRIBUTE";
|
|
2970
|
-
readonly PROTECTED_VIEW: "SCHEMA_PROTECTED_VIEW";
|
|
2971
|
-
readonly PROTECTED_ROLE: "SCHEMA_PROTECTED_ROLE";
|
|
2972
|
-
readonly FORBIDDEN: "SCHEMA_FORBIDDEN";
|
|
2973
|
-
readonly ACCESS_DENIED: "SCHEMA_ACCESS_DENIED";
|
|
2974
|
-
readonly CONNECTOR_AUTH_FAILED: "SCHEMA_CONNECTOR_AUTH_FAILED";
|
|
2975
|
-
readonly CONNECTOR_INVALID_STATE: "SCHEMA_CONNECTOR_INVALID_STATE";
|
|
2976
|
-
readonly SYNC_FAILED: "SCHEMA_SYNC_FAILED";
|
|
2977
|
-
readonly SYNC_CONFLICT: "SCHEMA_SYNC_CONFLICT";
|
|
2978
|
-
readonly SYNC_CASCADE: "SCHEMA_SYNC_CASCADE";
|
|
2979
|
-
readonly ORPHAN_SYSTEM_ATTRIBUTE: "SCHEMA_ORPHAN_SYSTEM_ATTRIBUTE";
|
|
2980
|
-
readonly SYSTEM_ENTITY_IMMUTABLE: "SCHEMA_SYSTEM_ENTITY_IMMUTABLE";
|
|
2981
|
-
readonly DESTRUCTIVE_NOT_ALLOWED: "SCHEMA_DESTRUCTIVE_NOT_ALLOWED";
|
|
2982
|
-
readonly MIGRATION_TIMEOUT: "SCHEMA_MIGRATION_TIMEOUT";
|
|
2983
|
-
readonly CHANGE_TYPE_NOT_SUPPORTED: "SCHEMA_CHANGE_TYPE_NOT_SUPPORTED";
|
|
2984
|
-
readonly DUPLICATE: "SCHEMA_DUPLICATE";
|
|
2985
|
-
readonly DUPLICATE_OBJECT: "SCHEMA_DUPLICATE_OBJECT";
|
|
2986
|
-
readonly DUPLICATE_ATTRIBUTE: "SCHEMA_DUPLICATE_ATTRIBUTE";
|
|
2987
|
-
readonly CONFLICT: "SCHEMA_CONFLICT";
|
|
2988
|
-
readonly STORAGE_UPLOAD_FAILED: "SCHEMA_STORAGE_UPLOAD_FAILED";
|
|
2989
|
-
readonly STORAGE_DOWNLOAD_FAILED: "SCHEMA_STORAGE_DOWNLOAD_FAILED";
|
|
2990
|
-
readonly STORAGE_DELETE_FAILED: "SCHEMA_STORAGE_DELETE_FAILED";
|
|
2991
|
-
readonly STORAGE_URL_FAILED: "SCHEMA_STORAGE_URL_FAILED";
|
|
2992
|
-
readonly REPOSITORY_CREATE_FAILED: "SCHEMA_REPOSITORY_CREATE_FAILED";
|
|
2993
|
-
readonly REPOSITORY_UPDATE_FAILED: "SCHEMA_REPOSITORY_UPDATE_FAILED";
|
|
2994
|
-
readonly REPOSITORY_DELETE_FAILED: "SCHEMA_REPOSITORY_DELETE_FAILED";
|
|
2995
|
-
readonly REPOSITORY_QUERY_FAILED: "SCHEMA_REPOSITORY_QUERY_FAILED";
|
|
2996
|
-
readonly NOT_IMPLEMENTED: "SCHEMA_NOT_IMPLEMENTED";
|
|
2997
|
-
readonly TIMEOUT: "SCHEMA_TIMEOUT";
|
|
2998
|
-
readonly RECORD_REFERENCED: "SCHEMA_RECORD_REFERENCED";
|
|
2999
|
-
readonly ATTRIBUTE_IN_USE: "SCHEMA_ATTRIBUTE_IN_USE";
|
|
3000
|
-
readonly OBJECT_REFERENCED: "SCHEMA_OBJECT_REFERENCED";
|
|
3001
|
-
readonly CONFIGURATION_REQUIRED: "CONFIGURATION_REQUIRED";
|
|
3002
|
-
readonly SEARCH_ADAPTER_REQUIRED: "SEARCH_ADAPTER_REQUIRED";
|
|
3003
|
-
readonly SEARCH_BACKEND_FAILED: "SEARCH_BACKEND_FAILED";
|
|
3004
|
-
readonly INVARIANT_VIOLATION: "INVARIANT_VIOLATION";
|
|
3005
|
-
readonly TENANT_CONTEXT_MISSING: "TENANT_CONTEXT_MISSING";
|
|
3006
|
-
readonly FEATURE_FLAGS_CONTEXT: "FEATURE_FLAGS_CONTEXT";
|
|
3007
|
-
readonly AGENT_UNKNOWN: "AGENT_UNKNOWN";
|
|
3008
|
-
readonly AGENT_DEPTH_EXCEEDED: "AGENT_DEPTH_EXCEEDED";
|
|
3009
|
-
readonly AGENT_COST_LIMIT_EXCEEDED: "AGENT_COST_LIMIT_EXCEEDED";
|
|
3010
|
-
readonly AGENT_TREE_COST_LIMIT_EXCEEDED: "AGENT_TREE_COST_LIMIT_EXCEEDED";
|
|
3011
|
-
readonly AGENT_SESSION_NOT_FOUND: "AGENT_SESSION_NOT_FOUND";
|
|
3012
|
-
readonly AGENT_DEFINITION_NOT_FOUND: "AGENT_DEFINITION_NOT_FOUND";
|
|
3013
|
-
readonly AGENT_RUN_CONFIG: "AGENT_RUN_CONFIG";
|
|
3014
|
-
readonly AGENT_STREAMING: "AGENT_STREAMING";
|
|
3015
|
-
readonly AGENT_MISSING_ACTOR: "AGENT_MISSING_ACTOR";
|
|
3016
|
-
readonly AGENT_INVALID_STATE: "AGENT_INVALID_STATE";
|
|
3017
|
-
readonly AGENT_COMPACTION_IMPOSSIBLE: "AGENT_COMPACTION_IMPOSSIBLE";
|
|
3018
|
-
readonly AGENT_COMPACTION_TIMEOUT: "AGENT_COMPACTION_TIMEOUT";
|
|
3019
|
-
readonly AGENT_LEASE_HELD: "AGENT_LEASE_HELD";
|
|
3020
|
-
readonly AGENT_MISSION_CONFLICT: "AGENT_MISSION_CONFLICT";
|
|
3021
|
-
readonly AGENT_MISSION_INCOMPLETE: "AGENT_MISSION_INCOMPLETE";
|
|
3022
|
-
readonly AI_UNKNOWN: "AI_UNKNOWN";
|
|
3023
|
-
readonly AI_USAGE_LIMIT_EXCEEDED: "AI_USAGE_LIMIT_EXCEEDED";
|
|
3024
|
-
readonly AI_INVALID_USAGE: "AI_INVALID_USAGE";
|
|
3025
|
-
readonly AI_INVALID_MODEL: "AI_INVALID_MODEL";
|
|
3026
|
-
readonly AI_REPOSITORY_ERROR: "AI_REPOSITORY_ERROR";
|
|
3027
|
-
readonly AI_GENERATION_FAILED: "AI_GENERATION_FAILED";
|
|
3028
|
-
readonly DOCUMENT_MIME_NOT_ACCEPTED: "DOCUMENT_MIME_NOT_ACCEPTED";
|
|
3029
|
-
readonly DOCUMENT_MULTIPLE_NOT_ALLOWED: "DOCUMENT_MULTIPLE_NOT_ALLOWED";
|
|
3030
|
-
readonly DOCUMENT_NOT_FOUND_FOR_OPERATION: "DOCUMENT_NOT_FOUND_FOR_OPERATION";
|
|
3031
|
-
readonly DOCUMENT_STORAGE_FAILED: "DOCUMENT_STORAGE_FAILED";
|
|
3032
|
-
readonly DOCUMENT_SIZE_EXCEEDED: "DOCUMENT_SIZE_EXCEEDED";
|
|
3033
|
-
readonly DOCUMENT_OCR_FAILED: "DOCUMENT_OCR_FAILED";
|
|
3034
|
-
readonly DOCUMENT_FILE_TOO_LARGE: "DOCUMENT_FILE_TOO_LARGE";
|
|
3035
|
-
readonly DOCUMENT_FILE_NOT_FOUND: "DOCUMENT_FILE_NOT_FOUND";
|
|
3036
|
-
readonly DOCUMENT_RECORD_NOT_FOUND: "DOCUMENT_RECORD_NOT_FOUND";
|
|
3037
|
-
readonly DOCUMENT_RECORD_OBJECT_MISMATCH: "DOCUMENT_RECORD_OBJECT_MISMATCH";
|
|
3038
|
-
readonly DOCUMENT_FOLDER_SERVICE_UNAVAILABLE: "DOCUMENT_FOLDER_SERVICE_UNAVAILABLE";
|
|
3039
|
-
readonly DOCUMENT_FOLDER_PATH_NOT_FOUND: "DOCUMENT_FOLDER_PATH_NOT_FOUND";
|
|
3040
|
-
readonly EMAIL_IMAGE_PROXY_INVALID_TOKEN: "EMAIL_IMAGE_PROXY_INVALID_TOKEN";
|
|
3041
|
-
readonly EMAIL_IMAGE_PROXY_EXPIRED_TOKEN: "EMAIL_IMAGE_PROXY_EXPIRED_TOKEN";
|
|
3042
|
-
readonly EMAIL_IMAGE_PROXY_TOO_LARGE: "EMAIL_IMAGE_PROXY_TOO_LARGE";
|
|
3043
|
-
readonly EMAIL_IMAGE_PROXY_UNSUPPORTED_CONTENT_TYPE: "EMAIL_IMAGE_PROXY_UNSUPPORTED_CONTENT_TYPE";
|
|
3044
|
-
readonly EMAIL_IMAGE_PROXY_UNSAFE_URL: "EMAIL_IMAGE_PROXY_UNSAFE_URL";
|
|
3045
|
-
readonly EMAIL_IMAGE_PROXY_UPSTREAM_FAILED: "EMAIL_IMAGE_PROXY_UPSTREAM_FAILED";
|
|
3046
|
-
readonly EMAIL_PROVIDER_API_FAILED: "EMAIL_PROVIDER_API_FAILED";
|
|
3047
|
-
readonly EMAIL_BATCH_ITEM_FAILED: "EMAIL_BATCH_ITEM_FAILED";
|
|
3048
|
-
};
|
|
3049
|
-
type SchemaErrorCode = (typeof SchemaErrorCode)[keyof typeof SchemaErrorCode];
|
|
3050
|
-
/**
|
|
3051
|
-
* Base error class for all schema-related errors
|
|
3052
|
-
*/
|
|
3053
|
-
declare class SchemaError extends Error {
|
|
3054
|
-
readonly code: SchemaErrorCode;
|
|
3055
|
-
readonly details?: Record<string, unknown>;
|
|
3056
|
-
constructor(message: string, code?: SchemaErrorCode, details?: Record<string, unknown>);
|
|
3057
|
-
toJSON(): {
|
|
3058
|
-
name: string;
|
|
3059
|
-
code: SchemaErrorCode;
|
|
3060
|
-
message: string;
|
|
3061
|
-
details: Record<string, unknown> | undefined;
|
|
3062
|
-
};
|
|
3063
|
-
}
|
|
3064
|
-
/**
|
|
3065
|
-
* Base class for "not found" errors
|
|
3066
|
-
*/
|
|
3067
|
-
declare class NotFoundError extends SchemaError {
|
|
3068
|
-
readonly resourceType: string;
|
|
3069
|
-
readonly resourceId: string;
|
|
3070
|
-
constructor(resourceType: string, resourceId: string, code?: SchemaErrorCode, message?: string);
|
|
3071
|
-
}
|
|
3072
|
-
/**
|
|
3073
|
-
* Object not found error
|
|
3074
|
-
*/
|
|
3075
|
-
declare class ObjectNotFoundError extends NotFoundError {
|
|
3076
|
-
constructor(objectId: string);
|
|
3077
|
-
}
|
|
3078
|
-
/**
|
|
3079
|
-
* Attribute not found error
|
|
3080
|
-
*/
|
|
3081
|
-
declare class AttributeNotFoundError extends NotFoundError {
|
|
3082
|
-
constructor(attributeId: string);
|
|
3083
|
-
}
|
|
3084
|
-
/**
|
|
3085
|
-
* Record not found error
|
|
3086
|
-
*/
|
|
3087
|
-
declare class RecordNotFoundError extends NotFoundError {
|
|
3088
|
-
constructor(recordId: string);
|
|
3089
|
-
}
|
|
3090
|
-
/**
|
|
3091
|
-
* Validation error with field-level details
|
|
3092
|
-
*/
|
|
3093
|
-
interface ValidationErrorDetail {
|
|
3094
|
-
path: string[];
|
|
3095
|
-
message: string;
|
|
3096
|
-
code?: string;
|
|
3097
|
-
}
|
|
3098
|
-
/**
|
|
3099
|
-
* Validation error thrown when data fails schema validation
|
|
3100
|
-
*/
|
|
3101
|
-
declare class ValidationError extends SchemaError {
|
|
3102
|
-
readonly errors: ValidationErrorDetail[];
|
|
3103
|
-
constructor(message: string, errors: ValidationErrorDetail[]);
|
|
3104
|
-
/**
|
|
3105
|
-
* Create a validation error from Zod-style errors
|
|
3106
|
-
*/
|
|
3107
|
-
static fromZodErrors(errors: Array<{
|
|
3108
|
-
path: (string | number)[];
|
|
3109
|
-
message: string;
|
|
3110
|
-
}>): ValidationError;
|
|
3111
|
-
}
|
|
3112
|
-
/**
|
|
3113
|
-
* Error thrown when attempting to modify a protected (system) resource
|
|
3114
|
-
*/
|
|
3115
|
-
declare class ProtectedResourceError extends SchemaError {
|
|
3116
|
-
readonly resourceType: "object" | "attribute" | "view";
|
|
3117
|
-
readonly resourceName: string;
|
|
3118
|
-
readonly operation: "delete" | "modify";
|
|
3119
|
-
constructor(resourceType: "object" | "attribute" | "view", resourceName: string, operation: "delete" | "modify");
|
|
3120
|
-
}
|
|
3121
|
-
/**
|
|
3122
|
-
* Error thrown during native object synchronization
|
|
3123
|
-
*/
|
|
3124
|
-
declare class SyncError extends SchemaError {
|
|
3125
|
-
readonly objectName: string;
|
|
3126
|
-
readonly cause?: Error;
|
|
3127
|
-
constructor(objectName: string, message: string, cause?: Error);
|
|
3128
|
-
}
|
|
3129
|
-
/**
|
|
3130
|
-
* Thrown when code tries to mutate a system entity at runtime.
|
|
3131
|
-
* System entities are declared in code and immutable at runtime.
|
|
3132
|
-
* HTTP status: 403 Forbidden.
|
|
3133
|
-
*/
|
|
3134
|
-
declare class SystemEntityImmutableError extends SchemaError {
|
|
3135
|
-
readonly entityType: string;
|
|
3136
|
-
readonly entityName: string;
|
|
3137
|
-
constructor(entityType: string, entityName: string);
|
|
3138
|
-
}
|
|
3139
|
-
interface SyncConflictParams {
|
|
3140
|
-
objectName: string;
|
|
3141
|
-
attributeName?: string;
|
|
3142
|
-
reason: string;
|
|
3143
|
-
}
|
|
3144
|
-
/**
|
|
3145
|
-
* Thrown at boot when an auto-promote cannot proceed due to incompatible types
|
|
3146
|
-
* or constraints. The dev must resolve manually (relax constraints, migrate
|
|
3147
|
-
* values, or rename).
|
|
3148
|
-
*/
|
|
3149
|
-
declare class SyncConflictError extends SchemaError {
|
|
3150
|
-
readonly objectName: string;
|
|
3151
|
-
readonly attributeName?: string;
|
|
3152
|
-
readonly reason: string;
|
|
3153
|
-
constructor(params: SyncConflictParams);
|
|
3154
|
-
}
|
|
3155
|
-
/**
|
|
3156
|
-
* Thrown at boot when an object is being demoted but still has system attributes
|
|
3157
|
-
* declared in code. The dev forgot to remove those attributes too, or kept the
|
|
3158
|
-
* object inconsistently.
|
|
3159
|
-
*/
|
|
3160
|
-
declare class SyncCascadeError extends SchemaError {
|
|
3161
|
-
readonly objectName: string;
|
|
3162
|
-
readonly conflictingAttributes: string[];
|
|
3163
|
-
constructor(objectName: string, conflictingAttributes: string[]);
|
|
3164
|
-
}
|
|
3165
|
-
/**
|
|
3166
|
-
* Thrown at boot when an attribute is system:true but its object parent is
|
|
3167
|
-
* system:false. This invariant should never be violated — if seen, it's a bug
|
|
3168
|
-
* in the boot reconciliation logic or in a manual DB mutation.
|
|
3169
|
-
*/
|
|
3170
|
-
declare class OrphanSystemAttributeError extends SchemaError {
|
|
3171
|
-
readonly objectName: string;
|
|
3172
|
-
readonly attributeName: string;
|
|
3173
|
-
constructor(objectName: string, attributeName: string);
|
|
3174
|
-
}
|
|
3175
|
-
/**
|
|
3176
|
-
* Thrown at boot when destructive operations (remove_attribute, remove_object)
|
|
3177
|
-
* are detected without the explicit STANDARDS_ALLOW_DESTRUCTIVE_SYNC=1 env var.
|
|
3178
|
-
* HTTP status: 500 (boot fail, should never surface to HTTP).
|
|
3179
|
-
*
|
|
3180
|
-
* NOTE — Wiring status (L2 — 2026-05-17): defined but not thrown by the
|
|
3181
|
-
* current sync.ts. Sync uses STANDARDS_ALLOW_DESTRUCTIVE_SYNC env var to gate
|
|
3182
|
-
* destructive ops; without the flag, attributes/objects are demoted to runtime
|
|
3183
|
-
* (L1 default, data preserved), not deleted. This error class is reserved for
|
|
3184
|
-
* L3a CLI which will throw it when CI detects unauthorized destructive deployments.
|
|
3185
|
-
*/
|
|
3186
|
-
declare class DestructiveSyncNotAllowedError extends SchemaError {
|
|
3187
|
-
readonly operations: SchemaOperation[];
|
|
3188
|
-
constructor(operations: SchemaOperation[]);
|
|
3189
|
-
}
|
|
3190
|
-
/**
|
|
3191
|
-
* Thrown at boot when applying a migration in batches exceeds the maximum
|
|
3192
|
-
* allowed duration (default 5 min, configurable via STANDARDS_MIGRATION_MAX_DURATION_MS).
|
|
3193
|
-
* HTTP status: 500 (boot fail).
|
|
3194
|
-
*/
|
|
3195
|
-
declare class MigrationTimeoutError extends SchemaError {
|
|
3196
|
-
readonly objectName: string;
|
|
3197
|
-
readonly migrated: number;
|
|
3198
|
-
readonly total: number;
|
|
3199
|
-
readonly maxDurationMs: number;
|
|
3200
|
-
constructor(objectName: string, migrated: number, total: number, maxDurationMs: number);
|
|
3201
|
-
}
|
|
3202
|
-
/**
|
|
3203
|
-
* Thrown when the runtime admin API is called to change an attribute's type.
|
|
3204
|
-
* Type changes must be declared in code via `.migration(N, m => m.changeType(...))`.
|
|
3205
|
-
* HTTP status: 400 Bad Request.
|
|
3206
|
-
*/
|
|
3207
|
-
declare class ChangeTypeNotSupportedError extends SchemaError {
|
|
3208
|
-
readonly objectName: string;
|
|
3209
|
-
readonly attributeName: string;
|
|
3210
|
-
constructor(objectName: string, attributeName: string);
|
|
3211
|
-
}
|
|
3212
|
-
/**
|
|
3213
|
-
* Error thrown when attempting to create a duplicate resource.
|
|
3214
|
-
*
|
|
3215
|
-
* `resourceType` is free-form: pass `"object"`/`"attribute"` for schema
|
|
3216
|
-
* resources (a specific code is selected automatically), or any domain label
|
|
3217
|
-
* (`"tool"`, `"background job handler"`, …) for runtime registries, which fall
|
|
3218
|
-
* back to the generic `DUPLICATE` code. The default message is
|
|
3219
|
-
* `'<ResourceType> "<name>" already exists'`; pass a custom message when the
|
|
3220
|
-
* domain reads better with different wording (e.g. "already registered for
|
|
3221
|
-
* type X").
|
|
3222
|
-
*/
|
|
3223
|
-
declare class DuplicateError extends SchemaError {
|
|
3224
|
-
readonly resourceType: string;
|
|
3225
|
-
readonly resourceName: string;
|
|
3226
|
-
constructor(resourceType: string, resourceName: string, message?: string);
|
|
3227
|
-
}
|
|
3228
|
-
/**
|
|
3229
|
-
* Check if an error is a SchemaError
|
|
3230
|
-
*/
|
|
3231
|
-
declare function isSchemaError(error: unknown): error is SchemaError;
|
|
3232
|
-
/**
|
|
3233
|
-
* Check if an error is a NotFoundError
|
|
3234
|
-
*/
|
|
3235
|
-
declare function isNotFoundError(error: unknown): error is NotFoundError;
|
|
3236
|
-
/**
|
|
3237
|
-
* Check if an error is a ValidationError
|
|
3238
|
-
*/
|
|
3239
|
-
declare function isValidationError(error: unknown): error is ValidationError;
|
|
3240
|
-
/**
|
|
3241
|
-
* Check if an error is a ProtectedResourceError
|
|
3242
|
-
*/
|
|
3243
|
-
declare function isProtectedResourceError(error: unknown): error is ProtectedResourceError;
|
|
3244
|
-
/**
|
|
3245
|
-
* Error thrown when a user lacks permission to perform an action
|
|
3246
|
-
*/
|
|
3247
|
-
declare class ForbiddenError extends SchemaError {
|
|
3248
|
-
readonly objectName: string;
|
|
3249
|
-
readonly action: string;
|
|
3250
|
-
readonly userId?: string;
|
|
3251
|
-
constructor(objectName: string, action: string, userId?: string);
|
|
3252
|
-
}
|
|
3253
|
-
/**
|
|
3254
|
-
* Error thrown when trying to modify a protected role
|
|
3255
|
-
*/
|
|
3256
|
-
declare class ProtectedRoleError extends SchemaError {
|
|
3257
|
-
readonly roleName: string;
|
|
3258
|
-
readonly operation: "delete" | "modify";
|
|
3259
|
-
constructor(roleName: string, operation: "delete" | "modify");
|
|
3260
|
-
}
|
|
3261
|
-
/**
|
|
3262
|
-
* Role not found error
|
|
3263
|
-
*/
|
|
3264
|
-
declare class RoleNotFoundError extends NotFoundError {
|
|
3265
|
-
constructor(roleId: string);
|
|
3266
|
-
}
|
|
3267
|
-
/**
|
|
3268
|
-
* Thrown when a record has been modified by another request between read and write.
|
|
3269
|
-
* Clients should retry the operation with fresh data.
|
|
3270
|
-
* Maps to HTTP 409 Conflict.
|
|
3271
|
-
*/
|
|
3272
|
-
declare class ConcurrentModificationError extends SchemaError {
|
|
3273
|
-
constructor(recordId: string);
|
|
3274
|
-
}
|
|
3275
|
-
/**
|
|
3276
|
-
* Storage operation type for error context
|
|
3277
|
-
*/
|
|
3278
|
-
type StorageOperation = "upload" | "download" | "delete" | "signedUrl";
|
|
3279
|
-
/**
|
|
3280
|
-
* Error thrown when a storage operation fails
|
|
3281
|
-
*/
|
|
3282
|
-
declare class StorageError extends SchemaError {
|
|
3283
|
-
readonly operation: StorageOperation;
|
|
3284
|
-
readonly path?: string;
|
|
3285
|
-
readonly cause?: string;
|
|
3286
|
-
constructor(operation: StorageOperation, message: string, path?: string, cause?: string);
|
|
3287
|
-
}
|
|
3288
|
-
/**
|
|
3289
|
-
* Error thrown when access to a resource is denied (e.g., tenant path mismatch)
|
|
3290
|
-
*/
|
|
3291
|
-
declare class AccessDeniedError extends SchemaError {
|
|
3292
|
-
readonly resource: string;
|
|
3293
|
-
readonly reason?: string;
|
|
3294
|
-
constructor(resource: string, reason?: string);
|
|
3295
|
-
}
|
|
3296
|
-
/**
|
|
3297
|
-
* Repository operation type for error context
|
|
3298
|
-
*/
|
|
3299
|
-
type RepositoryOperation = "create" | "update" | "delete" | "query";
|
|
3300
|
-
/**
|
|
3301
|
-
* Error thrown when a repository operation fails
|
|
3302
|
-
*/
|
|
3303
|
-
declare class RepositoryError extends SchemaError {
|
|
3304
|
-
readonly operation: RepositoryOperation;
|
|
3305
|
-
readonly entity: string;
|
|
3306
|
-
readonly cause?: string;
|
|
3307
|
-
constructor(operation: RepositoryOperation, entity: string, message: string, cause?: string);
|
|
3308
|
-
}
|
|
3309
|
-
/**
|
|
3310
|
-
* Error thrown when a search read call fails at the transport level — e.g. the
|
|
3311
|
-
* Meili client received a non-JSON body (`JSON.parse` SyntaxError) or a network
|
|
3312
|
-
* failure. Translates an otherwise un-fingerprintable bare exception into a
|
|
3313
|
-
* typed error with a stable `code` and a user-safe message. The original
|
|
3314
|
-
* failure text is preserved in `cause`/`details`, never in the message.
|
|
3315
|
-
*/
|
|
3316
|
-
declare class SearchBackendError extends SchemaError {
|
|
3317
|
-
readonly scope: string;
|
|
3318
|
-
readonly cause?: string;
|
|
3319
|
-
constructor(scope: string, cause?: string);
|
|
3320
|
-
}
|
|
3321
|
-
/**
|
|
3322
|
-
* Error thrown when a feature or method is not yet implemented
|
|
3323
|
-
*/
|
|
3324
|
-
declare class NotImplementedError extends SchemaError {
|
|
3325
|
-
readonly feature: string;
|
|
3326
|
-
readonly milestone?: string;
|
|
3327
|
-
constructor(feature: string, milestone?: string);
|
|
3328
|
-
}
|
|
3329
|
-
/**
|
|
3330
|
-
* Memory entry not found error
|
|
3331
|
-
*/
|
|
3332
|
-
declare class MemoryNotFoundError extends NotFoundError {
|
|
3333
|
-
constructor(memoryId: string);
|
|
3334
|
-
}
|
|
3335
|
-
/**
|
|
3336
|
-
* Reference information for a record that is blocking deletion.
|
|
3337
|
-
*/
|
|
3338
|
-
interface RecordReference {
|
|
3339
|
-
/** Technical name of the object (e.g., "contacts") */
|
|
3340
|
-
objectName: string;
|
|
3341
|
-
/** Display label of the object (e.g., "Contacts") */
|
|
3342
|
-
objectLabel: string;
|
|
3343
|
-
/** Number of records referencing the target */
|
|
3344
|
-
count: number;
|
|
3345
|
-
}
|
|
3346
|
-
/**
|
|
3347
|
-
* Thrown when attempting to delete a record that is referenced by other records.
|
|
3348
|
-
*
|
|
3349
|
-
* This implements the "Restrict" behavior: deletion is blocked and the user
|
|
3350
|
-
* must first remove or update the referencing records.
|
|
3351
|
-
*/
|
|
3352
|
-
declare class RecordReferencedError extends SchemaError {
|
|
3353
|
-
readonly recordId: string;
|
|
3354
|
-
readonly references: RecordReference[];
|
|
3355
|
-
constructor(recordId: string, references: RecordReference[]);
|
|
3356
|
-
}
|
|
3357
|
-
/**
|
|
3358
|
-
* Usage context where an attribute is being used.
|
|
3359
|
-
*/
|
|
3360
|
-
type AttributeUsage = "labelExpression" | "embeddingExpression" | "view" | "filter";
|
|
3361
|
-
/**
|
|
3362
|
-
* Thrown when attempting to delete an attribute that is in use.
|
|
3363
|
-
*
|
|
3364
|
-
* Attributes cannot be deleted if they are referenced in:
|
|
3365
|
-
* - The object's labelExpression template
|
|
3366
|
-
* - A saved view's column configuration
|
|
3367
|
-
* - A saved filter condition
|
|
3368
|
-
*/
|
|
3369
|
-
declare class AttributeInUseError extends SchemaError {
|
|
3370
|
-
readonly attributeName: string;
|
|
3371
|
-
readonly usage: AttributeUsage;
|
|
3372
|
-
constructor(attributeName: string, usage: AttributeUsage);
|
|
3373
|
-
}
|
|
3374
|
-
/**
|
|
3375
|
-
* Thrown when attempting to delete an object that is a relation target.
|
|
3376
|
-
*
|
|
3377
|
-
* Objects cannot be deleted if other objects have relation attributes
|
|
3378
|
-
* pointing to them as a target.
|
|
3379
|
-
*/
|
|
3380
|
-
declare class ObjectReferencedError extends SchemaError {
|
|
3381
|
-
readonly objectName: string;
|
|
3382
|
-
readonly referencingObjects: string[];
|
|
3383
|
-
constructor(objectName: string, referencingObjects: string[]);
|
|
3384
|
-
}
|
|
3385
|
-
/**
|
|
3386
|
-
* Check if an error is a RecordReferencedError
|
|
3387
|
-
*/
|
|
3388
|
-
declare function isRecordReferencedError(error: unknown): error is RecordReferencedError;
|
|
3389
|
-
/**
|
|
3390
|
-
* Check if an error is an AttributeInUseError
|
|
3391
|
-
*/
|
|
3392
|
-
declare function isAttributeInUseError(error: unknown): error is AttributeInUseError;
|
|
3393
|
-
/**
|
|
3394
|
-
* Check if an error is an ObjectReferencedError
|
|
3395
|
-
*/
|
|
3396
|
-
declare function isObjectReferencedError(error: unknown): error is ObjectReferencedError;
|
|
3397
|
-
|
|
3398
2983
|
/**
|
|
3399
2984
|
* Extracts a safe error message from an unknown error value.
|
|
3400
2985
|
*
|
|
@@ -4116,6 +3701,101 @@ type ExtractRecordUpdateStrict<TBuilder> = TBuilder extends {
|
|
|
4116
3701
|
};
|
|
4117
3702
|
} ? Omit<R, SystemFields> : never;
|
|
4118
3703
|
|
|
3704
|
+
/** Lifecycle of a Reflex. There is no "broken" state: a failing reflex disarms itself. */
|
|
3705
|
+
type ReflexState = "learning" | "armed" | "disarmed";
|
|
3706
|
+
/** A version is proposed, then promoted, then eventually replaced. */
|
|
3707
|
+
type ReflexVersionStatus = "candidate" | "promoted" | "superseded";
|
|
3708
|
+
/** `rehearsal` captures outbound effects instead of performing them. */
|
|
3709
|
+
type RunMode = "live" | "rehearsal";
|
|
3710
|
+
/**
|
|
3711
|
+
* One thing a run did, or would have done. Recorded by the gateway, never by
|
|
3712
|
+
* the Reflex code itself (D19) — code that reports on its own behaviour is
|
|
3713
|
+
* code we would have to trust.
|
|
3714
|
+
*/
|
|
3715
|
+
type RunEffect = {
|
|
3716
|
+
kind: "record.read";
|
|
3717
|
+
object: string;
|
|
3718
|
+
count: number;
|
|
3719
|
+
} | {
|
|
3720
|
+
kind: "record.write";
|
|
3721
|
+
object: string;
|
|
3722
|
+
recordId: Uuid | null;
|
|
3723
|
+
action: "create" | "update" | "delete";
|
|
3724
|
+
} | {
|
|
3725
|
+
kind: "outbound";
|
|
3726
|
+
host: string;
|
|
3727
|
+
method: string;
|
|
3728
|
+
captured: boolean;
|
|
3729
|
+
};
|
|
3730
|
+
interface Reflex {
|
|
3731
|
+
id: Uuid;
|
|
3732
|
+
tenantId: TenantId;
|
|
3733
|
+
name: string;
|
|
3734
|
+
state: ReflexState;
|
|
3735
|
+
/** The actor this Reflex acts as (D20). Never null after creation. */
|
|
3736
|
+
actorId: Uuid;
|
|
3737
|
+
/** Author, kept for the permission ceiling of D23. */
|
|
3738
|
+
createdByActorId: Uuid;
|
|
3739
|
+
promotedVersionId: Uuid | null;
|
|
3740
|
+
createdAt: Date;
|
|
3741
|
+
updatedAt: Date;
|
|
3742
|
+
}
|
|
3743
|
+
interface ReflexVersion {
|
|
3744
|
+
id: Uuid;
|
|
3745
|
+
tenantId: TenantId;
|
|
3746
|
+
reflexId: Uuid;
|
|
3747
|
+
/** Monotonic per reflex, starting at 1. */
|
|
3748
|
+
version: number;
|
|
3749
|
+
status: ReflexVersionStatus;
|
|
3750
|
+
/** Source files, keyed by relative path. `index.ts` is the entry point. */
|
|
3751
|
+
sources: Record<string, string>;
|
|
3752
|
+
/**
|
|
3753
|
+
* The executable artefact: one self-contained ES module produced by esbuild at
|
|
3754
|
+
* build time (D3). Null until the version is built; a `promoted` version can
|
|
3755
|
+
* never have it null, and the database enforces that rather than trusting a
|
|
3756
|
+
* caller.
|
|
3757
|
+
*/
|
|
3758
|
+
bundle: string | null;
|
|
3759
|
+
/** `sha256:<hex>` over `bundle`. Null exactly when `bundle` is. */
|
|
3760
|
+
digest: string | null;
|
|
3761
|
+
/** Tool names this version is allowed to call through the gateway. */
|
|
3762
|
+
capabilities: string[];
|
|
3763
|
+
createdAt: Date;
|
|
3764
|
+
}
|
|
3765
|
+
interface ReflexRun {
|
|
3766
|
+
id: Uuid;
|
|
3767
|
+
tenantId: TenantId;
|
|
3768
|
+
reflexId: Uuid;
|
|
3769
|
+
reflexVersionId: Uuid | null;
|
|
3770
|
+
mode: RunMode;
|
|
3771
|
+
/**
|
|
3772
|
+
* Who caused this run — same delegation chain as the run's own token
|
|
3773
|
+
* (D20(d)). Persisted on the run row, not only on the token: the token is
|
|
3774
|
+
* short-lived (minutes) and expires long before an audit reader looks the
|
|
3775
|
+
* run up, so re-deriving the chain from it is not an option by then.
|
|
3776
|
+
*/
|
|
3777
|
+
triggeredByActorId: Uuid | null;
|
|
3778
|
+
/** The root human actor at the top of the delegation chain, when known. */
|
|
3779
|
+
rootActorId: Uuid | null;
|
|
3780
|
+
startedAt: Date;
|
|
3781
|
+
finishedAt: Date | null;
|
|
3782
|
+
/** Null while running; set once on completion. */
|
|
3783
|
+
ok: boolean | null;
|
|
3784
|
+
effects: RunEffect[];
|
|
3785
|
+
gatewayCalls: number;
|
|
3786
|
+
gatewayMs: number;
|
|
3787
|
+
wallMs: number | null;
|
|
3788
|
+
}
|
|
3789
|
+
interface CreateReflexInput {
|
|
3790
|
+
name: string;
|
|
3791
|
+
createdByActorId: Uuid;
|
|
3792
|
+
}
|
|
3793
|
+
interface CreateReflexVersionInput {
|
|
3794
|
+
reflexId: Uuid;
|
|
3795
|
+
sources: Record<string, string>;
|
|
3796
|
+
capabilities: string[];
|
|
3797
|
+
}
|
|
3798
|
+
|
|
4119
3799
|
/**
|
|
4120
3800
|
* A custom navigation item rendered in the sidebar, alongside the
|
|
4121
3801
|
* developer-defined objects.
|
|
@@ -4357,7 +4037,7 @@ interface InviteUserInput {
|
|
|
4357
4037
|
* Client-safe: no prompts or server logic here.
|
|
4358
4038
|
*/
|
|
4359
4039
|
/** Supported generator types in V1. */
|
|
4360
|
-
type AIGenerationType = "regex" | "formula"
|
|
4040
|
+
type AIGenerationType = "regex" | "formula";
|
|
4361
4041
|
/** Request payload for a regex generation. */
|
|
4362
4042
|
interface RegexGenerationInput {
|
|
4363
4043
|
/** Natural-language description of what to validate. */
|
|
@@ -4380,29 +4060,10 @@ interface FormulaGenerationInput {
|
|
|
4380
4060
|
/** Expected return type of the formula (scalar types only). */
|
|
4381
4061
|
returnType: "text" | "number" | "boolean" | "date";
|
|
4382
4062
|
}
|
|
4383
|
-
/** One field the autofill generator must fill. */
|
|
4384
|
-
interface AutofillTargetSpec {
|
|
4385
|
-
/** Payload key the model must answer under. */
|
|
4386
|
-
key: string;
|
|
4387
|
-
label: string;
|
|
4388
|
-
/** Attribute type, drives the expected value shape. */
|
|
4389
|
-
type: string;
|
|
4390
|
-
/** Allowed values for select/status/multiselect targets. */
|
|
4391
|
-
options?: string[];
|
|
4392
|
-
/** Per-field hint from the schema config. */
|
|
4393
|
-
instructions?: string;
|
|
4394
|
-
}
|
|
4395
|
-
/** Request payload for an autofill generation. */
|
|
4396
|
-
interface AutofillGenerationInput {
|
|
4397
|
-
/** Pre-serialized context: record values + OCR excerpts. */
|
|
4398
|
-
context: string;
|
|
4399
|
-
targets: AutofillTargetSpec[];
|
|
4400
|
-
}
|
|
4401
4063
|
/** Map from generator type to its input payload. */
|
|
4402
4064
|
interface AIGenerationInputMap {
|
|
4403
4065
|
regex: RegexGenerationInput;
|
|
4404
4066
|
formula: FormulaGenerationInput;
|
|
4405
|
-
autofill: AutofillGenerationInput;
|
|
4406
4067
|
}
|
|
4407
4068
|
/** Token usage returned to the caller (mirrors AI SDK usage). */
|
|
4408
4069
|
interface AIGenerationUsage {
|
|
@@ -4872,6 +4533,12 @@ declare const DEFAULT_ROLES: {
|
|
|
4872
4533
|
readonly MEMBER: "member";
|
|
4873
4534
|
/** Default role for agent actors - CRUD on records + documents/files */
|
|
4874
4535
|
readonly AGENT_DEFAULT: "agent_default";
|
|
4536
|
+
/**
|
|
4537
|
+
* Default role for reflex actors — deliberately NO record access (D22).
|
|
4538
|
+
* An agent is interactive, watched, and acts once; a reflex is unattended and
|
|
4539
|
+
* repeats. Real access is a per-reflex role derived from its first rehearsal.
|
|
4540
|
+
*/
|
|
4541
|
+
readonly REFLEX_DEFAULT: "reflex_default";
|
|
4875
4542
|
};
|
|
4876
4543
|
type DefaultRoleName = (typeof DEFAULT_ROLES)[keyof typeof DEFAULT_ROLES];
|
|
4877
4544
|
/**
|
|
@@ -5059,12 +4726,6 @@ declare abstract class BaseAttributeBuilder<TAttr extends Attribute> implements
|
|
|
5059
4726
|
runtime(): this;
|
|
5060
4727
|
hidden(): this;
|
|
5061
4728
|
placeholder(value: string): this;
|
|
5062
|
-
/**
|
|
5063
|
-
* Enable AI autofill for this attribute. `from` is mandatory:
|
|
5064
|
-
* empty array = document-only, non-empty = also triggered when those
|
|
5065
|
-
* source attributes change. Eligibility by type is validated at schema sync.
|
|
5066
|
-
*/
|
|
5067
|
-
autofill(config: AutofillConfig): this;
|
|
5068
4729
|
description(value: string): this;
|
|
5069
4730
|
icon(value: IconName): this;
|
|
5070
4731
|
order(value: number): this;
|
|
@@ -8422,6 +8083,19 @@ interface DynamicValueResolver<K extends DynamicValue["dynamic"]> {
|
|
|
8422
8083
|
}>, ctx: ResolutionContext): FilterValue | undefined;
|
|
8423
8084
|
}
|
|
8424
8085
|
|
|
8086
|
+
/** Extract the numeric amount from a currency filter value.
|
|
8087
|
+
* Accepts a plain number, a canonical CurrencyFilterValue ({ value, code? }),
|
|
8088
|
+
* or the stored currency shape ({ code, value }). Returns null when there is
|
|
8089
|
+
* no numeric amount. */
|
|
8090
|
+
declare function extractCurrencyFilterValue(value: unknown): number | null;
|
|
8091
|
+
/** General filter-value flattener: currency/phone/relative-date value objects
|
|
8092
|
+
* collapse to their comparable scalar; scalars pass through. */
|
|
8093
|
+
declare function extractFilterValue(value: unknown): string | number | boolean | null;
|
|
8094
|
+
|
|
8095
|
+
declare const SYNONYM_ALIASES: Record<string, string>;
|
|
8096
|
+
declare const CROSS_TYPE_CONVERSIONS: Record<string, Record<string, string>>;
|
|
8097
|
+
declare function normalizeOperator(rawOp: string, effectiveType: string): string;
|
|
8098
|
+
|
|
8425
8099
|
/** Built-in external connector providers (v1). */
|
|
8426
8100
|
type ConnectorProviderId = "gmail" | "outlook";
|
|
8427
8101
|
/** Connection lifecycle status, mirrored from `connector_connections.status`. */
|
|
@@ -8591,4 +8265,4 @@ interface ViewSyncPayload {
|
|
|
8591
8265
|
*/
|
|
8592
8266
|
declare function viewSyncPayload(view: ViewDefinition): ViewSyncPayload;
|
|
8593
8267
|
|
|
8594
|
-
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AIChatNotification, type AICompactionSummary, type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AISubagentStatus, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, AccessDeniedError, type AccessLevel, type Action, type ActivityTab, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AddSharedMailboxInput, type AdvancedFilterState, type AgentBlueprint, AgentBuilder, type AgentBuilderConfig, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentMessageAttachment, type AgentMessagePart, type AgentMission, type AgentMissionArtifact, type AgentMissionPage, type AgentMissionPolicy, type AgentMissionRubric, type AgentMissionRubricCriterion, type AgentMissionStatus, type AgentMissionVerification, type AgentMissionView, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentTodoPlan, type AgentTodoPlanStatus, type AgentTodoPlanView, type AgentToolCall, type AgentTriggerBlueprint, type AgentTriggerDefinition, type AgentTriggerType, type AgentUnreadPatchLiveEvent, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, type AttributeGroupField, AttributeInUseError, type AttributeLifecycleCapabilities, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, AutofillConfig, type AutofillGenerationInput, type AutofillTargetSpec, BEHAVIOR_PROPERTIES, BROWSER_PREVIEW_STATUSES, BilateralConfig, type BoundingBox, type BrowserPreviewDescriptor, type BrowserPreviewStatus, type BrowserPreviewUpdatedLiveEvent, type BuilderConfig, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, ChangeTypeNotSupportedError, type ChannelRevokedLiveEvent, CheckboxAttribute, type CompactionStrategy, type CompileComputedFormulaInput, type ComputedCompileAttribute, type ComputedCompileObject, type ComputedCompileSchema, ComputedDependency, type ComputedDependencyGraphNode, ComputedFormulaAstNode, ComputedFormulaCompileError, type ComputedFormulaResult, type ComputedFunctionCategory, type ComputedFunctionMetadata, type ComputedFunctionName, type ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConcurrentModificationError, type ConfigOverrides, type ConnectionStatus, type ConnectionStatusId, type ConnectionView, type ConnectorCallbackStatusValue, type ConnectorProviderId, type ConnectorScope, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateDocument, type CreateDocumentLink, type CreateFile, type CreateMode, type CreateNotificationInput, type CreateNotificationRecipientInput, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomAttributeValue, type CustomTab, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, type DBViewSyncResolution, DB_COLUMN_FIELDS, DEFAULT_AGENT_EXECUTION_CONFIG, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, DateRangeValue, type DefaultRoleName, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, type DetailViewConfig, type DetailViewDefinition, type Document, DocumentAttribute, type DocumentFile, type DocumentKind, DocumentLayout, type DocumentListOptions, type DocumentWithFiles, type DocumentWithSubCount, type DocumentsTab, DocumentsTabConfig, type DomainEvent, DuplicateError, type DynamicValue, type DynamicValueResolver, EMPTY_VALUE_PLACEHOLDER, type Eager, type EdgeQuantifier, type EffectivePermissions, type EmailAttachmentMeta, type EmailDirection, type EmailParticipantRef, type EmailParticipantRole, type EmailProvider, type EmailVisibility, type EmailsTab, EmailsTabConfig, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtendedFilterRule, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, type Field, type FieldGroup, type FieldHistoryEntry, type File, type FileListOptions, type FileOcrStatus, type FilterCombinator, type FilterGroup, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, FlagService, type FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormDensity, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTab, type FormTextRow, type FormsTab, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InverseSource, type InviteUserInput, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, type ListOptions, ListViewBuilder, type ListViewConfig, type ListViewDefinition, type ListViewLayout, type ListViewTab, ListViewTabConfigBuilder, type LiveChannel, type LiveChannelKind, type LiveErrorPayload, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveGapPayload, type LiveNotification, type LiveNotificationRecipient, type LiveNotificationRecipientPatch, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, type MailboxAccount, type MailboxCursor, type MailboxEmail, type MailboxListResponse, type MailboxQuery, type MailboxReadState, type MailboxThread, type MailboxThreadDetail, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, type Notification, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxState, type NotificationKind, type NotificationListParams, type NotificationListResult, type NotificationPriority, type NotificationRecipient, type NotificationRecipientPatchLiveEvent, type NotificationSensitivity, type NotificationSubject, type NotificationType, type NotificationV1Type, type NotificationWithRecipient, type NotificationWorkState, NumberAttribute, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type Permission, type PermissionScope, Phone, PhoneAttribute, type PhoneFilterValue, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, type QueryState, type ReasoningPartData, type RecordAgentEvent, type RecordDeletedLiveEvent, type RecordDocuments, type RecordFieldPatch, type RecordMetadata, RecordNotFoundError, type RecordPatchLiveEvent, type RecordReference, RecordReferencedError, type RegexGenerationInput, RelationAttribute, type RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, type RelationSource, RelationTarget, type RelativeDateValue, RepositoryError, type RepositoryOperation, type ResolutionContext, type ResolvedFlag, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, type RichtextTab, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, SchemaOperation, SearchBackendError, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type StandardSchemaIssue, type StandardSchemaResult, type StartConnectorAuthInput, type StartConnectorAuthResult, type StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, type StreamEventMessageUpdated, type StreamEventMissionUpdate, type StreamEventTodoPlanUpdate, type StreamEventUsage, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, type Tab, TabBuilder, type TabType, type TableSource, type TableTab, TableTabConfig, TenantId, type TenantSettings, TextAttribute, type TextPartData, type ThinkingPartData, TimeFormat, Timestamps, type ToolPartData, type ToolPartErrorCode, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateDocument, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserLike, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, type ValueRef, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewSyncPayload, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, agent, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, canonicalStringify, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, dateValueStart, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, extractValueRefs, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSlotFieldTargets, getSystemAttributeI18nKey, getSystemAttributeList, getUserDisplayName, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isManagedSystemAttribute, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normalizeDateValue, normalizeForEdgeRpc, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toMultiValueOperator, toUndefinedIfEmpty, today, user, validateAttributeName, validateQualifiedRule, viewRegistry, viewSyncPayload };
|
|
8268
|
+
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AIChatNotification, type AICompactionSummary, type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AISubagentStatus, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, type AccessLevel, type Action, type ActivityTab, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AddSharedMailboxInput, type AdvancedFilterState, type AgentBlueprint, AgentBuilder, type AgentBuilderConfig, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentMessageAttachment, type AgentMessagePart, type AgentMission, type AgentMissionArtifact, type AgentMissionPage, type AgentMissionPolicy, type AgentMissionRubric, type AgentMissionRubricCriterion, type AgentMissionStatus, type AgentMissionVerification, type AgentMissionView, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentTodoPlan, type AgentTodoPlanStatus, type AgentTodoPlanView, type AgentToolCall, type AgentTriggerBlueprint, type AgentTriggerDefinition, type AgentTriggerType, type AgentUnreadPatchLiveEvent, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, type AttributeGroupField, type AttributeLifecycleCapabilities, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BROWSER_PREVIEW_STATUSES, BilateralConfig, type BoundingBox, type BrowserPreviewDescriptor, type BrowserPreviewStatus, type BrowserPreviewUpdatedLiveEvent, type BuilderConfig, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, CROSS_TYPE_CONVERSIONS, type ChannelRevokedLiveEvent, CheckboxAttribute, type CollectionPage, type CollectionRequest, type CollectionResponse, type CompactionStrategy, type CompileComputedFormulaInput, type ComputedCompileAttribute, type ComputedCompileObject, type ComputedCompileSchema, ComputedDependency, type ComputedDependencyGraphNode, ComputedFormulaAstNode, ComputedFormulaCompileError, type ComputedFormulaResult, type ComputedFunctionCategory, type ComputedFunctionMetadata, type ComputedFunctionName, type ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, type ConfigOverrides, type ConnectionStatus, type ConnectionStatusId, type ConnectionView, type ConnectorCallbackStatusValue, type ConnectorProviderId, type ConnectorScope, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateDocument, type CreateDocumentLink, type CreateFile, type CreateMode, type CreateNotificationInput, type CreateNotificationRecipientInput, type CreateObjectRecord, type CreatePermissionInput, type CreateReflexInput, type CreateReflexVersionInput, type CreateRoleInput, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomAttributeValue, type CustomTab, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, type DBViewSyncResolution, DB_COLUMN_FIELDS, DEFAULT_AGENT_EXECUTION_CONFIG, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, DateRangeValue, type DefaultRoleName, type DeletedMode, DetailViewBuilder, type DetailViewConfig, type DetailViewDefinition, type Document, DocumentAttribute, type DocumentFile, type DocumentKind, DocumentLayout, type DocumentListOptions, type DocumentWithFiles, type DocumentWithSubCount, type DocumentsTab, DocumentsTabConfig, type DomainEvent, type DynamicValue, type DynamicValueResolver, EMPTY_VALUE_PLACEHOLDER, type Eager, type EdgeQuantifier, type EffectivePermissions, type EmailAttachmentMeta, type EmailDirection, type EmailParticipantRef, type EmailParticipantRole, type EmailProvider, type EmailVisibility, type EmailsTab, EmailsTabConfig, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtendedFilterRule, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, type Field, type FieldGroup, type FieldHistoryEntry, type File, type FileListOptions, type FileOcrStatus, type FilterCombinator, type FilterGroup, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, FlagService, type FlagValueType, FormBuilder, type FormDefinition, type FormDensity, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTab, type FormTextRow, type FormsTab, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InverseSource, type InviteUserInput, LIVE_EVENT_TYPES, LIVE_STREAM_START_CURSOR, type ListOptions, ListViewBuilder, type ListViewConfig, type ListViewDefinition, type ListViewLayout, type ListViewTab, ListViewTabConfigBuilder, type LiveChannel, type LiveChannelKind, type LiveErrorPayload, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveGapPayload, type LiveNotification, type LiveNotificationRecipient, type LiveNotificationRecipientPatch, type LiveReplayCompletePayload, type LiveSubscribePayload, type LiveUnsubscribePayload, Location, LocationAttribute, LocationGranularity, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, type MailboxAccount, type MailboxCursor, type MailboxEmail, type MailboxListResponse, type MailboxQuery, type MailboxReadState, type MailboxThread, type MailboxThreadDetail, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, type Notification, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxState, type NotificationKind, type NotificationListParams, type NotificationListResult, type NotificationPriority, type NotificationRecipient, type NotificationRecipientPatchLiveEvent, type NotificationSensitivity, type NotificationSubject, type NotificationType, type NotificationV1Type, type NotificationWithRecipient, type NotificationWorkState, NumberAttribute, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, type ObjectPermissions, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type Permission, type PermissionScope, Phone, PhoneAttribute, type PhoneFilterValue, PropertySchema, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, type QueryState, type ReasoningPartData, type RecordAgentEvent, type RecordDeletedLiveEvent, type RecordDocuments, type RecordFieldPatch, type RecordMetadata, type RecordPatchLiveEvent, type Reflex, type ReflexRun, type ReflexState, type ReflexVersion, type ReflexVersionStatus, type RegexGenerationInput, RelationAttribute, type RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, type RelationSource, RelationTarget, type RelativeDateValue, type ResolutionContext, type ResolvedFlag, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, type RichtextTab, RichtextTabConfig, type Role, RollupAttribute, RollupFunction, type RunEffect, type RunMode, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYNONYM_ALIASES, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type StandardSchemaIssue, type StandardSchemaResult, type StartConnectorAuthInput, type StartConnectorAuthResult, type StaticFlagDefault, StatusAttribute, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, type StreamEventMessageUpdated, type StreamEventMissionUpdate, type StreamEventTodoPlanUpdate, type StreamEventUsage, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemPermissions, type SystemResource, type Tab, TabBuilder, type TabType, type TableSource, type TableTab, TableTabConfig, TenantId, type TenantSettings, TextAttribute, type TextPartData, type ThinkingPartData, TimeFormat, Timestamps, type ToolPartData, type ToolPartErrorCode, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateDocument, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserLike, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, type ValueRef, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewSyncPayload, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, agent, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, canonicalStringify, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, dateValueStart, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, extractCurrencyFilterValue, extractFilterValue, extractValueRefs, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSlotFieldTargets, getSystemAttributeI18nKey, getSystemAttributeList, getUserDisplayName, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isManagedSystemAttribute, isNoValueOperator, isNotEmpty, isPlainRecord, isRelationGroup, isStandardSchema, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normalizeDateValue, normalizeForEdgeRpc, normalizeOperator, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toMultiValueOperator, toUndefinedIfEmpty, today, user, validateAttributeName, validateQualifiedRule, viewRegistry, viewSyncPayload };
|