@stndrds/schema 1.0.0-alpha.215 → 1.0.0-alpha.217
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-DNlA-yww.d.mts → attributes-C-V9Lr25.d.mts} +26 -2
- package/dist/{attributes-CwDiLLzP.d.ts → attributes-DZj9iuri.d.ts} +26 -2
- package/dist/{chunk-UXWFFBQO.mjs → chunk-5WYDO3ZB.mjs} +16 -1
- package/dist/{chunk-IH37K3BX.js → chunk-XTPYL6OM.js} +16 -0
- package/dist/{helpers-CyYKowT9.d.mts → helpers-YQiY20E2.d.mts} +2 -2
- package/dist/{helpers-DQ22uMWd.d.ts → helpers-qyvuR_QS.d.ts} +2 -2
- package/dist/index.d.mts +103 -19
- package/dist/index.d.ts +103 -19
- package/dist/index.js +109 -65
- package/dist/index.mjs +38 -3
- package/dist/{types-BlVvybnQ.d.mts → types-BwOWmTvQ.d.mts} +1 -1
- package/dist/{types-Bi3ZZIZJ.d.ts → types-DyJSoFa8.d.ts} +1 -1
- package/dist/validation/all.d.mts +3 -3
- package/dist/validation/all.d.ts +3 -3
- package/dist/validation/all.js +8 -8
- package/dist/validation/all.mjs +1 -1
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/file.d.mts +2 -2
- package/dist/validation/complex/file.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 +3 -3
- package/dist/validation/object/index.d.ts +3 -3
- package/dist/validation/object/index.js +14 -14
- package/dist/validation/object/index.mjs +1 -1
- 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 +2 -2
|
@@ -200,6 +200,12 @@ interface ObjectDefinition {
|
|
|
200
200
|
* Available pipes: UPPER, LOWER, capitalize, trim
|
|
201
201
|
*/
|
|
202
202
|
labelExpression: string;
|
|
203
|
+
/**
|
|
204
|
+
* Optional template expression used to compute the semantic text sent to
|
|
205
|
+
* Meilisearch for vector generation. When absent, records opt out of semantic
|
|
206
|
+
* embedding generation.
|
|
207
|
+
*/
|
|
208
|
+
embeddingExpression?: string;
|
|
203
209
|
attributes: Attribute[];
|
|
204
210
|
system?: boolean;
|
|
205
211
|
/**
|
|
@@ -257,6 +263,11 @@ interface ObjectRecord<TValues extends Record<string, unknown> = Record<string,
|
|
|
257
263
|
* @example "John Doe" (from "{{ firstName }} {{ lastName }}")
|
|
258
264
|
*/
|
|
259
265
|
label: string;
|
|
266
|
+
/**
|
|
267
|
+
* Semantic text computed from the object's embeddingExpression and persisted
|
|
268
|
+
* for Meilisearch documentTemplate-based vector generation.
|
|
269
|
+
*/
|
|
270
|
+
embeddingText?: string;
|
|
260
271
|
/**
|
|
261
272
|
* Completion status of the record.
|
|
262
273
|
* - `draft`: Missing required values, record is incomplete
|
|
@@ -336,11 +347,17 @@ type SystemFieldName = (typeof SYSTEM_FIELD_NAMES)[number];
|
|
|
336
347
|
* }
|
|
337
348
|
* ```
|
|
338
349
|
*/
|
|
339
|
-
declare const RESERVED_ATTRIBUTE_NAMES: readonly ["id", "createdAt", "updatedAt", "createdBy", "lastUpdatedBy", "objectId", "label", "completionStatus", "values", "metadata", "deletedAt", "deletedBy", "schemaVersion"];
|
|
350
|
+
declare const RESERVED_ATTRIBUTE_NAMES: readonly ["id", "createdAt", "updatedAt", "createdBy", "lastUpdatedBy", "objectId", "label", "embeddingText", "completionStatus", "values", "metadata", "deletedAt", "deletedBy", "schemaVersion"];
|
|
340
351
|
/**
|
|
341
352
|
* Type for reserved attribute names
|
|
342
353
|
*/
|
|
343
354
|
type ReservedAttributeName = (typeof RESERVED_ATTRIBUTE_NAMES)[number];
|
|
355
|
+
/**
|
|
356
|
+
* Reserved object names that cannot be used for user-created (runtime) objects.
|
|
357
|
+
* These are owned by the framework as sealed system objects.
|
|
358
|
+
*/
|
|
359
|
+
declare const RESERVED_OBJECT_NAMES: readonly ["skill"];
|
|
360
|
+
type ReservedObjectName = (typeof RESERVED_OBJECT_NAMES)[number];
|
|
344
361
|
|
|
345
362
|
type DocumentKind = "file" | "folder";
|
|
346
363
|
interface Document extends Timestamps {
|
|
@@ -479,6 +496,13 @@ type PropertyAttribute = TextAttribute | NumberAttribute | CheckboxAttribute | D
|
|
|
479
496
|
interface PropertySchema {
|
|
480
497
|
definitions: PropertyAttribute[];
|
|
481
498
|
}
|
|
499
|
+
/**
|
|
500
|
+
* Normalizes an attribute's `properties` field to a flat list of
|
|
501
|
+
* {@link PropertyAttribute}. Handles both the production {@link PropertySchema}
|
|
502
|
+
* shape (`{ definitions: [...] }`) and the raw-array shape used in test
|
|
503
|
+
* fixtures (`PropertyAttribute[]`).
|
|
504
|
+
*/
|
|
505
|
+
declare function resolvePropertyDefinitions(attr: unknown): PropertyAttribute[];
|
|
482
506
|
/**
|
|
483
507
|
* Property attribute types that have an `options` array.
|
|
484
508
|
*/
|
|
@@ -933,4 +957,4 @@ declare function isAttributeSortable(attr: {
|
|
|
933
957
|
type: AttributeType;
|
|
934
958
|
}): boolean;
|
|
935
959
|
|
|
936
|
-
export { type ComputedFormulaBinaryNode as $, type Attribute as A, type Option as B, type CurrencyAttribute as C, type DateAttribute as D, type FormulaReturnType as E, type FileAttribute as F, type BilateralConfig as G, type RelationTarget as H, type RollupFunction as I, type UserReferenceType as J, type MigrationDefinition as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, AUTOFILL_ELIGIBLE_TYPES as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type AttributeGroup as V, type AutofillEligibleType as W, type BaseAttribute as X, type BuiltInTransform as Y, type ComputedAttributeState as Z, type ComputedFieldKind as _, type RichtextAttribute as a, type ComputedFormulaBinaryOperator as a0, type ComputedFormulaCallNode as a1, type ComputedFormulaLiteralNode as a2, ComputedFormulaParseError as a3, type ComputedFormulaPathNode as a4, type ComputedStateStatus as a5, type CreateDocument as a6, type CreateDocumentLink as a7, type CreateDocumentSlot as a8, DEFAULT_DOCUMENT_SLOT as a9, type
|
|
960
|
+
export { type ComputedFormulaBinaryNode as $, type Attribute as A, type Option as B, type CurrencyAttribute as C, type DateAttribute as D, type FormulaReturnType as E, type FileAttribute as F, type BilateralConfig as G, type RelationTarget as H, type RollupFunction as I, type UserReferenceType as J, type MigrationDefinition as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, AUTOFILL_ELIGIBLE_TYPES as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type AttributeGroup as V, type AutofillEligibleType as W, type BaseAttribute as X, type BuiltInTransform as Y, type ComputedAttributeState as Z, type ComputedFieldKind as _, type RichtextAttribute as a, type ComputedFormulaBinaryOperator as a0, type ComputedFormulaCallNode as a1, type ComputedFormulaLiteralNode as a2, ComputedFormulaParseError as a3, type ComputedFormulaPathNode as a4, type ComputedStateStatus as a5, type CreateDocument as a6, type CreateDocumentLink as a7, type CreateDocumentSlot as a8, DEFAULT_DOCUMENT_SLOT as a9, type SlotStatus as aA, type StatusGroup as aB, type SystemFieldName as aC, type UpdateDocument as aD, type UpdateDocumentSlot as aE, hasOptions as aF, inferInverseCardinality as aG, isAttributeSortable as aH, isBilateralRelation as aI, isUniversalRelation as aJ, parseComputedFormula as aK, resolvePropertyDefinitions as aL, type DateFormat as aa, type DateValue as ab, type Document as ac, type DocumentKind as ad, type DocumentLayoutVariant as ae, type DocumentListOptions as af, type DocumentSlot as ag, type DocumentWithSlots as ah, type DocumentWithSubCount as ai, type FolderPreset as aj, MAX_PRESET_DEPTH as ak, type NumberUnit as al, type ObjectAttribute as am, type ObjectRecord as an, type OptionPropertyAttribute as ao, type PresetNode as ap, type PropertyAttribute as aq, type PropertyType as ar, RELATION_TARGET_ANY as as, RESERVED_ATTRIBUTE_NAMES as at, RESERVED_OBJECT_NAMES as au, type RecordDocuments as av, type ReservedAttributeName as aw, type ReservedObjectName as ax, type RichTextAttribute as ay, SYSTEM_FIELD_NAMES as az, type MultiselectAttribute as b, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type CompletionStatus as h, type ComputedValueType as i, type ComputedReturnType as j, type AttributeType as k, type ComputedOptionsSource as l, type ComputedDependency as m, type ComputedPlan as n, type ComputedFormulaAstNode as o, type DocumentLayout as p, type Timestamps as q, type SchemaOperation as r, type LocationGranularity as s, type Location as t, type DocumentAttribute as u, type Phone as v, type Currency as w, type DocumentSlotConfig as x, type PropertySchema as y, type AutofillConfig as z };
|
|
@@ -200,6 +200,12 @@ interface ObjectDefinition {
|
|
|
200
200
|
* Available pipes: UPPER, LOWER, capitalize, trim
|
|
201
201
|
*/
|
|
202
202
|
labelExpression: string;
|
|
203
|
+
/**
|
|
204
|
+
* Optional template expression used to compute the semantic text sent to
|
|
205
|
+
* Meilisearch for vector generation. When absent, records opt out of semantic
|
|
206
|
+
* embedding generation.
|
|
207
|
+
*/
|
|
208
|
+
embeddingExpression?: string;
|
|
203
209
|
attributes: Attribute[];
|
|
204
210
|
system?: boolean;
|
|
205
211
|
/**
|
|
@@ -257,6 +263,11 @@ interface ObjectRecord<TValues extends Record<string, unknown> = Record<string,
|
|
|
257
263
|
* @example "John Doe" (from "{{ firstName }} {{ lastName }}")
|
|
258
264
|
*/
|
|
259
265
|
label: string;
|
|
266
|
+
/**
|
|
267
|
+
* Semantic text computed from the object's embeddingExpression and persisted
|
|
268
|
+
* for Meilisearch documentTemplate-based vector generation.
|
|
269
|
+
*/
|
|
270
|
+
embeddingText?: string;
|
|
260
271
|
/**
|
|
261
272
|
* Completion status of the record.
|
|
262
273
|
* - `draft`: Missing required values, record is incomplete
|
|
@@ -336,11 +347,17 @@ type SystemFieldName = (typeof SYSTEM_FIELD_NAMES)[number];
|
|
|
336
347
|
* }
|
|
337
348
|
* ```
|
|
338
349
|
*/
|
|
339
|
-
declare const RESERVED_ATTRIBUTE_NAMES: readonly ["id", "createdAt", "updatedAt", "createdBy", "lastUpdatedBy", "objectId", "label", "completionStatus", "values", "metadata", "deletedAt", "deletedBy", "schemaVersion"];
|
|
350
|
+
declare const RESERVED_ATTRIBUTE_NAMES: readonly ["id", "createdAt", "updatedAt", "createdBy", "lastUpdatedBy", "objectId", "label", "embeddingText", "completionStatus", "values", "metadata", "deletedAt", "deletedBy", "schemaVersion"];
|
|
340
351
|
/**
|
|
341
352
|
* Type for reserved attribute names
|
|
342
353
|
*/
|
|
343
354
|
type ReservedAttributeName = (typeof RESERVED_ATTRIBUTE_NAMES)[number];
|
|
355
|
+
/**
|
|
356
|
+
* Reserved object names that cannot be used for user-created (runtime) objects.
|
|
357
|
+
* These are owned by the framework as sealed system objects.
|
|
358
|
+
*/
|
|
359
|
+
declare const RESERVED_OBJECT_NAMES: readonly ["skill"];
|
|
360
|
+
type ReservedObjectName = (typeof RESERVED_OBJECT_NAMES)[number];
|
|
344
361
|
|
|
345
362
|
type DocumentKind = "file" | "folder";
|
|
346
363
|
interface Document extends Timestamps {
|
|
@@ -479,6 +496,13 @@ type PropertyAttribute = TextAttribute | NumberAttribute | CheckboxAttribute | D
|
|
|
479
496
|
interface PropertySchema {
|
|
480
497
|
definitions: PropertyAttribute[];
|
|
481
498
|
}
|
|
499
|
+
/**
|
|
500
|
+
* Normalizes an attribute's `properties` field to a flat list of
|
|
501
|
+
* {@link PropertyAttribute}. Handles both the production {@link PropertySchema}
|
|
502
|
+
* shape (`{ definitions: [...] }`) and the raw-array shape used in test
|
|
503
|
+
* fixtures (`PropertyAttribute[]`).
|
|
504
|
+
*/
|
|
505
|
+
declare function resolvePropertyDefinitions(attr: unknown): PropertyAttribute[];
|
|
482
506
|
/**
|
|
483
507
|
* Property attribute types that have an `options` array.
|
|
484
508
|
*/
|
|
@@ -933,4 +957,4 @@ declare function isAttributeSortable(attr: {
|
|
|
933
957
|
type: AttributeType;
|
|
934
958
|
}): boolean;
|
|
935
959
|
|
|
936
|
-
export { type ComputedFormulaBinaryNode as $, type Attribute as A, type Option as B, type CurrencyAttribute as C, type DateAttribute as D, type FormulaReturnType as E, type FileAttribute as F, type BilateralConfig as G, type RelationTarget as H, type RollupFunction as I, type UserReferenceType as J, type MigrationDefinition as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, AUTOFILL_ELIGIBLE_TYPES as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type AttributeGroup as V, type AutofillEligibleType as W, type BaseAttribute as X, type BuiltInTransform as Y, type ComputedAttributeState as Z, type ComputedFieldKind as _, type RichtextAttribute as a, type ComputedFormulaBinaryOperator as a0, type ComputedFormulaCallNode as a1, type ComputedFormulaLiteralNode as a2, ComputedFormulaParseError as a3, type ComputedFormulaPathNode as a4, type ComputedStateStatus as a5, type CreateDocument as a6, type CreateDocumentLink as a7, type CreateDocumentSlot as a8, DEFAULT_DOCUMENT_SLOT as a9, type
|
|
960
|
+
export { type ComputedFormulaBinaryNode as $, type Attribute as A, type Option as B, type CurrencyAttribute as C, type DateAttribute as D, type FormulaReturnType as E, type FileAttribute as F, type BilateralConfig as G, type RelationTarget as H, type RollupFunction as I, type UserReferenceType as J, type MigrationDefinition as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, AUTOFILL_ELIGIBLE_TYPES as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type AttributeGroup as V, type AutofillEligibleType as W, type BaseAttribute as X, type BuiltInTransform as Y, type ComputedAttributeState as Z, type ComputedFieldKind as _, type RichtextAttribute as a, type ComputedFormulaBinaryOperator as a0, type ComputedFormulaCallNode as a1, type ComputedFormulaLiteralNode as a2, ComputedFormulaParseError as a3, type ComputedFormulaPathNode as a4, type ComputedStateStatus as a5, type CreateDocument as a6, type CreateDocumentLink as a7, type CreateDocumentSlot as a8, DEFAULT_DOCUMENT_SLOT as a9, type SlotStatus as aA, type StatusGroup as aB, type SystemFieldName as aC, type UpdateDocument as aD, type UpdateDocumentSlot as aE, hasOptions as aF, inferInverseCardinality as aG, isAttributeSortable as aH, isBilateralRelation as aI, isUniversalRelation as aJ, parseComputedFormula as aK, resolvePropertyDefinitions as aL, type DateFormat as aa, type DateValue as ab, type Document as ac, type DocumentKind as ad, type DocumentLayoutVariant as ae, type DocumentListOptions as af, type DocumentSlot as ag, type DocumentWithSlots as ah, type DocumentWithSubCount as ai, type FolderPreset as aj, MAX_PRESET_DEPTH as ak, type NumberUnit as al, type ObjectAttribute as am, type ObjectRecord as an, type OptionPropertyAttribute as ao, type PresetNode as ap, type PropertyAttribute as aq, type PropertyType as ar, RELATION_TARGET_ANY as as, RESERVED_ATTRIBUTE_NAMES as at, RESERVED_OBJECT_NAMES as au, type RecordDocuments as av, type ReservedAttributeName as aw, type ReservedObjectName as ax, type RichTextAttribute as ay, SYSTEM_FIELD_NAMES as az, type MultiselectAttribute as b, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type CompletionStatus as h, type ComputedValueType as i, type ComputedReturnType as j, type AttributeType as k, type ComputedOptionsSource as l, type ComputedDependency as m, type ComputedPlan as n, type ComputedFormulaAstNode as o, type DocumentLayout as p, type Timestamps as q, type SchemaOperation as r, type LocationGranularity as s, type Location as t, type DocumentAttribute as u, type Phone as v, type Currency as w, type DocumentSlotConfig as x, type PropertySchema as y, type AutofillConfig as z };
|
|
@@ -168,6 +168,9 @@ var SchemaErrorCode = {
|
|
|
168
168
|
// Configuration / wiring — a required runtime dependency is not configured
|
|
169
169
|
CONFIGURATION_REQUIRED: "CONFIGURATION_REQUIRED",
|
|
170
170
|
SEARCH_ADAPTER_REQUIRED: "SEARCH_ADAPTER_REQUIRED",
|
|
171
|
+
// Search backend — a search read call failed at the transport level
|
|
172
|
+
// (non-API transport error: JSON.parse on a non-JSON body, network failure)
|
|
173
|
+
SEARCH_BACKEND_FAILED: "SEARCH_BACKEND_FAILED",
|
|
171
174
|
// Invariants — internal "should never happen" assertions (programmer error)
|
|
172
175
|
INVARIANT_VIOLATION: "INVARIANT_VIOLATION",
|
|
173
176
|
// Tenant / context
|
|
@@ -185,6 +188,7 @@ var SchemaErrorCode = {
|
|
|
185
188
|
AGENT_MISSING_ACTOR: "AGENT_MISSING_ACTOR",
|
|
186
189
|
AGENT_INVALID_STATE: "AGENT_INVALID_STATE",
|
|
187
190
|
AGENT_COMPACTION_IMPOSSIBLE: "AGENT_COMPACTION_IMPOSSIBLE",
|
|
191
|
+
AGENT_COMPACTION_TIMEOUT: "AGENT_COMPACTION_TIMEOUT",
|
|
188
192
|
AGENT_LEASE_HELD: "AGENT_LEASE_HELD",
|
|
189
193
|
// AI / LLM
|
|
190
194
|
AI_UNKNOWN: "AI_UNKNOWN",
|
|
@@ -501,6 +505,17 @@ var RepositoryError = class extends SchemaError {
|
|
|
501
505
|
this.cause = cause;
|
|
502
506
|
}
|
|
503
507
|
};
|
|
508
|
+
var SearchBackendError = class extends SchemaError {
|
|
509
|
+
constructor(scope, cause) {
|
|
510
|
+
super(`Search backend unavailable for ${scope}`, SchemaErrorCode.SEARCH_BACKEND_FAILED, {
|
|
511
|
+
scope,
|
|
512
|
+
cause
|
|
513
|
+
});
|
|
514
|
+
this.name = "SearchBackendError";
|
|
515
|
+
this.scope = scope;
|
|
516
|
+
this.cause = cause;
|
|
517
|
+
}
|
|
518
|
+
};
|
|
504
519
|
var NotImplementedError = class extends SchemaError {
|
|
505
520
|
constructor(feature, milestone) {
|
|
506
521
|
const message = milestone ? `${feature}: not implemented (${milestone})` : `${feature}: not implemented`;
|
|
@@ -681,4 +696,4 @@ function computeRecordStatus(objectDef, data) {
|
|
|
681
696
|
return isRecordComplete(objectDef, data) ? "complete" : "draft";
|
|
682
697
|
}
|
|
683
698
|
|
|
684
|
-
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReferencedError, RepositoryError, RoleNotFoundError, SchemaError, SchemaErrorCode, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, computeRecordStatus, createAttributeValidator, createDraftValidator, createFormAttributeValidator, createObjectValidator, getMissingRequiredAttributes, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordComplete, isRecordReferencedError, isSchemaError, isValidationError, rejectUnknownAttributesOrThrow, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow };
|
|
699
|
+
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReferencedError, RepositoryError, RoleNotFoundError, SchemaError, SchemaErrorCode, SearchBackendError, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, computeRecordStatus, createAttributeValidator, createDraftValidator, createFormAttributeValidator, createObjectValidator, getMissingRequiredAttributes, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordComplete, isRecordReferencedError, isSchemaError, isValidationError, rejectUnknownAttributesOrThrow, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow };
|
|
@@ -170,6 +170,9 @@ var SchemaErrorCode = {
|
|
|
170
170
|
// Configuration / wiring — a required runtime dependency is not configured
|
|
171
171
|
CONFIGURATION_REQUIRED: "CONFIGURATION_REQUIRED",
|
|
172
172
|
SEARCH_ADAPTER_REQUIRED: "SEARCH_ADAPTER_REQUIRED",
|
|
173
|
+
// Search backend — a search read call failed at the transport level
|
|
174
|
+
// (non-API transport error: JSON.parse on a non-JSON body, network failure)
|
|
175
|
+
SEARCH_BACKEND_FAILED: "SEARCH_BACKEND_FAILED",
|
|
173
176
|
// Invariants — internal "should never happen" assertions (programmer error)
|
|
174
177
|
INVARIANT_VIOLATION: "INVARIANT_VIOLATION",
|
|
175
178
|
// Tenant / context
|
|
@@ -187,6 +190,7 @@ var SchemaErrorCode = {
|
|
|
187
190
|
AGENT_MISSING_ACTOR: "AGENT_MISSING_ACTOR",
|
|
188
191
|
AGENT_INVALID_STATE: "AGENT_INVALID_STATE",
|
|
189
192
|
AGENT_COMPACTION_IMPOSSIBLE: "AGENT_COMPACTION_IMPOSSIBLE",
|
|
193
|
+
AGENT_COMPACTION_TIMEOUT: "AGENT_COMPACTION_TIMEOUT",
|
|
190
194
|
AGENT_LEASE_HELD: "AGENT_LEASE_HELD",
|
|
191
195
|
// AI / LLM
|
|
192
196
|
AI_UNKNOWN: "AI_UNKNOWN",
|
|
@@ -503,6 +507,17 @@ var RepositoryError = class extends SchemaError {
|
|
|
503
507
|
this.cause = cause;
|
|
504
508
|
}
|
|
505
509
|
};
|
|
510
|
+
var SearchBackendError = class extends SchemaError {
|
|
511
|
+
constructor(scope, cause) {
|
|
512
|
+
super(`Search backend unavailable for ${scope}`, SchemaErrorCode.SEARCH_BACKEND_FAILED, {
|
|
513
|
+
scope,
|
|
514
|
+
cause
|
|
515
|
+
});
|
|
516
|
+
this.name = "SearchBackendError";
|
|
517
|
+
this.scope = scope;
|
|
518
|
+
this.cause = cause;
|
|
519
|
+
}
|
|
520
|
+
};
|
|
506
521
|
var NotImplementedError = class extends SchemaError {
|
|
507
522
|
constructor(feature, milestone) {
|
|
508
523
|
const message = milestone ? `${feature}: not implemented (${milestone})` : `${feature}: not implemented`;
|
|
@@ -706,6 +721,7 @@ exports.RepositoryError = RepositoryError;
|
|
|
706
721
|
exports.RoleNotFoundError = RoleNotFoundError;
|
|
707
722
|
exports.SchemaError = SchemaError;
|
|
708
723
|
exports.SchemaErrorCode = SchemaErrorCode;
|
|
724
|
+
exports.SearchBackendError = SearchBackendError;
|
|
709
725
|
exports.StorageError = StorageError;
|
|
710
726
|
exports.SyncCascadeError = SyncCascadeError;
|
|
711
727
|
exports.SyncConflictError = SyncConflictError;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-
|
|
2
|
+
import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-C-V9Lr25.mjs';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-BwOWmTvQ.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Create a Zod schema for any attribute type.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-
|
|
2
|
+
import { A as Attribute, O as ObjectDefinition, h as CompletionStatus } from './attributes-DZj9iuri.js';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-DyJSoFa8.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Create a Zod schema for any attribute type.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, o as ComputedFormulaAstNode, A as Attribute, p as DocumentLayout, h as CompletionStatus, q as Timestamps, r as SchemaOperation, s as LocationGranularity, t as Location, e as FormulaAttribute, u as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, v as Phone, w as Currency, D as DateAttribute, U as UserAttribute, x as DocumentSlotConfig, y as PropertySchema, z as AutofillConfig, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, B as Option, L as LocationAttribute, F as FileAttribute, E as FormulaReturnType, R as RelationAttribute, G as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, H as RelationTarget, a as RichtextAttribute, I as RollupFunction, J as UserReferenceType, K as MigrationDefinition, O as ObjectDefinition } from './attributes-
|
|
2
|
-
export { Q as AUTOFILL_ELIGIBLE_TYPES, V as AttributeGroup, W as AutofillEligibleType, X as BaseAttribute, Y as BuiltInTransform, Z as ComputedAttributeState, _ as ComputedFieldKind, $ as ComputedFormulaBinaryNode, a0 as ComputedFormulaBinaryOperator, a1 as ComputedFormulaCallNode, a2 as ComputedFormulaLiteralNode, a3 as ComputedFormulaParseError, a4 as ComputedFormulaPathNode, a5 as ComputedStateStatus, a6 as CreateDocument, a7 as CreateDocumentLink, a8 as CreateDocumentSlot, a9 as DEFAULT_DOCUMENT_SLOT, aa as DateFormat, ab as DateValue, ac as Document, ad as DocumentKind, ae as DocumentLayoutVariant, af as DocumentListOptions, ag as DocumentSlot, ah as DocumentWithSlots, ai as DocumentWithSubCount, aj as FolderPreset, ak as MAX_PRESET_DEPTH, al as NumberUnit, am as ObjectAttribute, an as ObjectRecord, ao as OptionPropertyAttribute, ap as PresetNode, aq as PropertyAttribute, ar as PropertyType, as as RELATION_TARGET_ANY, at as RESERVED_ATTRIBUTE_NAMES, au as
|
|
1
|
+
import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, o as ComputedFormulaAstNode, A as Attribute, p as DocumentLayout, h as CompletionStatus, q as Timestamps, r as SchemaOperation, s as LocationGranularity, t as Location, e as FormulaAttribute, u as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, v as Phone, w as Currency, D as DateAttribute, U as UserAttribute, x as DocumentSlotConfig, y as PropertySchema, z as AutofillConfig, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, B as Option, L as LocationAttribute, F as FileAttribute, E as FormulaReturnType, R as RelationAttribute, G as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, H as RelationTarget, a as RichtextAttribute, I as RollupFunction, J as UserReferenceType, K as MigrationDefinition, O as ObjectDefinition } from './attributes-C-V9Lr25.mjs';
|
|
2
|
+
export { Q as AUTOFILL_ELIGIBLE_TYPES, V as AttributeGroup, W as AutofillEligibleType, X as BaseAttribute, Y as BuiltInTransform, Z as ComputedAttributeState, _ as ComputedFieldKind, $ as ComputedFormulaBinaryNode, a0 as ComputedFormulaBinaryOperator, a1 as ComputedFormulaCallNode, a2 as ComputedFormulaLiteralNode, a3 as ComputedFormulaParseError, a4 as ComputedFormulaPathNode, a5 as ComputedStateStatus, a6 as CreateDocument, a7 as CreateDocumentLink, a8 as CreateDocumentSlot, a9 as DEFAULT_DOCUMENT_SLOT, aa as DateFormat, ab as DateValue, ac as Document, ad as DocumentKind, ae as DocumentLayoutVariant, af as DocumentListOptions, ag as DocumentSlot, ah as DocumentWithSlots, ai as DocumentWithSubCount, aj as FolderPreset, ak as MAX_PRESET_DEPTH, al as NumberUnit, am as ObjectAttribute, an as ObjectRecord, ao as OptionPropertyAttribute, ap as PresetNode, aq as PropertyAttribute, ar as PropertyType, as as RELATION_TARGET_ANY, at as RESERVED_ATTRIBUTE_NAMES, au as RESERVED_OBJECT_NAMES, av as RecordDocuments, aw as ReservedAttributeName, ax as ReservedObjectName, ay as RichTextAttribute, az as SYSTEM_FIELD_NAMES, aA as SlotStatus, aB as StatusGroup, aC as SystemFieldName, aD as UpdateDocument, aE as UpdateDocumentSlot, aF as hasOptions, aG as inferInverseCardinality, aH as isAttributeSortable, aI as isBilateralRelation, aJ as isUniversalRelation, aK as parseComputedFormula, aL as resolvePropertyDefinitions } from './attributes-C-V9Lr25.mjs';
|
|
3
3
|
import { IconName, MimeType, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
|
|
4
4
|
import { Uuid, TenantId } from './utils.mjs';
|
|
5
5
|
export { UserId, asTenantId, asUserId, deepEqual, generateId, indexBy } from './utils.mjs';
|
|
6
6
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
7
7
|
export { StandardSchemaV1 } from '@standard-schema/spec';
|
|
8
8
|
import z from 'zod';
|
|
9
|
-
export { V as ValidationMessages } from './types-
|
|
9
|
+
export { V as ValidationMessages } from './types-BwOWmTvQ.mjs';
|
|
10
10
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.mjs';
|
|
11
11
|
export { parseAttributeConfig } from './validation/config/index.mjs';
|
|
12
|
-
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-
|
|
12
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-YQiY20E2.mjs';
|
|
13
13
|
|
|
14
14
|
declare const COMPUTED_FUNCTION_NAMES: readonly ["if", "concat", "sum", "avg", "count", "min", "max", "earliest", "latest", "unique", "first", "percent_empty", "percent_not_empty", "count_empty", "count_not_empty", "count_unique"];
|
|
15
15
|
type ComputedFunctionName = (typeof COMPUTED_FUNCTION_NAMES)[number];
|
|
@@ -718,6 +718,7 @@ interface DBObject extends Timestamps {
|
|
|
718
718
|
description?: string;
|
|
719
719
|
icon?: IconName;
|
|
720
720
|
labelExpression: string;
|
|
721
|
+
embeddingExpression?: string;
|
|
721
722
|
system: boolean;
|
|
722
723
|
metadata?: Record<string, unknown>;
|
|
723
724
|
/** Smart-folder layout convention for documents attached to records of this object. */
|
|
@@ -734,6 +735,7 @@ interface CreateDBObject {
|
|
|
734
735
|
description?: string;
|
|
735
736
|
icon?: IconName;
|
|
736
737
|
labelExpression: string;
|
|
738
|
+
embeddingExpression?: string;
|
|
737
739
|
system?: boolean;
|
|
738
740
|
metadata?: Record<string, unknown>;
|
|
739
741
|
documentLayout?: DocumentLayout;
|
|
@@ -744,6 +746,7 @@ interface UpdateDBObject {
|
|
|
744
746
|
description?: string;
|
|
745
747
|
icon?: IconName;
|
|
746
748
|
labelExpression?: string;
|
|
749
|
+
embeddingExpression?: string;
|
|
747
750
|
metadata?: Record<string, unknown>;
|
|
748
751
|
documentLayout?: DocumentLayout;
|
|
749
752
|
}
|
|
@@ -762,6 +765,11 @@ interface DBAttribute extends Timestamps {
|
|
|
762
765
|
objectId: Uuid;
|
|
763
766
|
name: string;
|
|
764
767
|
label: string;
|
|
768
|
+
/**
|
|
769
|
+
* Computed semantic text from embeddingExpression.
|
|
770
|
+
* Stored for Meilisearch vector generation; empty string opts the record out.
|
|
771
|
+
*/
|
|
772
|
+
embeddingText?: string;
|
|
765
773
|
type: AttributeType;
|
|
766
774
|
description?: string;
|
|
767
775
|
icon?: IconName;
|
|
@@ -821,6 +829,11 @@ interface CreateObjectRecord {
|
|
|
821
829
|
* Stored for performance - avoids recomputation on every read.
|
|
822
830
|
*/
|
|
823
831
|
label: string;
|
|
832
|
+
/**
|
|
833
|
+
* Computed semantic text from embeddingExpression.
|
|
834
|
+
* Stored for search adapters that generate vectors from persisted text.
|
|
835
|
+
*/
|
|
836
|
+
embeddingText?: string;
|
|
824
837
|
/**
|
|
825
838
|
* Completion status of the record.
|
|
826
839
|
* - `draft`: Record is incomplete (missing required values)
|
|
@@ -1383,6 +1396,8 @@ interface CreateRoleInput {
|
|
|
1383
1396
|
name: string;
|
|
1384
1397
|
label: string;
|
|
1385
1398
|
description?: string;
|
|
1399
|
+
/** Framework-owned default roles are system:true (immutable, auto-assignable). Custom roles default false. */
|
|
1400
|
+
system?: boolean;
|
|
1386
1401
|
}
|
|
1387
1402
|
/**
|
|
1388
1403
|
* Input for updating an existing role.
|
|
@@ -1459,8 +1474,13 @@ interface ApiKeyAuthContext {
|
|
|
1459
1474
|
}
|
|
1460
1475
|
interface CreateApiKeyInput {
|
|
1461
1476
|
name: string;
|
|
1462
|
-
/**
|
|
1463
|
-
permissions
|
|
1477
|
+
/** @deprecated Unused. API keys derive permissions from their actor's RBAC roles. */
|
|
1478
|
+
permissions?: ApiKeyPermission[];
|
|
1479
|
+
/**
|
|
1480
|
+
* Explicit role to bind the key's actor to.
|
|
1481
|
+
* When omitted, the key's actor inherits the creator's roles.
|
|
1482
|
+
*/
|
|
1483
|
+
roleId?: string;
|
|
1464
1484
|
expiresAt?: string;
|
|
1465
1485
|
userProfileId?: string;
|
|
1466
1486
|
actorMetadata?: Record<string, unknown>;
|
|
@@ -1917,6 +1937,13 @@ interface UpdateFile {
|
|
|
1917
1937
|
folderPath?: string;
|
|
1918
1938
|
}
|
|
1919
1939
|
|
|
1940
|
+
/**
|
|
1941
|
+
* Outcome of a compaction pass: a no-op (context already small enough), an LLM
|
|
1942
|
+
* `summary`, or a degraded `truncation` (the summarizer failed/timed out/returned
|
|
1943
|
+
* empty, so older messages were dropped and a notice injected). Canonical home —
|
|
1944
|
+
* `runtime` re-exports this and `react` imports it; never duplicate the literals.
|
|
1945
|
+
*/
|
|
1946
|
+
type CompactionStrategy = "no-op" | "summary" | "truncation";
|
|
1920
1947
|
type AgentRunStatus = "pending" | "running" | "completed" | "failed" | "cancelled" | "paused";
|
|
1921
1948
|
type AgentSessionStatus = "active" | "idle" | "completed" | "failed" | "cancelled" | "waiting_human" | "timeout" | "expired";
|
|
1922
1949
|
type AgentSessionMode = "interactive" | "autonomous";
|
|
@@ -2051,6 +2078,8 @@ interface AgentRun {
|
|
|
2051
2078
|
sessionId?: string;
|
|
2052
2079
|
rootRunId?: string;
|
|
2053
2080
|
triggerId?: string;
|
|
2081
|
+
/** Source domain-event id that launched this run; used for redelivery idempotency. */
|
|
2082
|
+
sourceEventId?: string;
|
|
2054
2083
|
treeCostUsd?: number;
|
|
2055
2084
|
effectiveSystemPrompt?: string;
|
|
2056
2085
|
/** Monotonic fencing token, incremented on each lease acquisition. */
|
|
@@ -2125,7 +2154,7 @@ type AgentMessagePart = {
|
|
|
2125
2154
|
tokensBefore: number;
|
|
2126
2155
|
tokensAfter: number;
|
|
2127
2156
|
tokensSaved: number;
|
|
2128
|
-
strategy:
|
|
2157
|
+
strategy: CompactionStrategy;
|
|
2129
2158
|
durationMs: number;
|
|
2130
2159
|
/**
|
|
2131
2160
|
* Raw summary text produced by the summarizer LLM. Persisted so that
|
|
@@ -2227,15 +2256,23 @@ interface AIAvailableModel {
|
|
|
2227
2256
|
label: string;
|
|
2228
2257
|
/** Whether this is the default model */
|
|
2229
2258
|
isDefault?: boolean;
|
|
2230
|
-
/**
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2259
|
+
/**
|
|
2260
|
+
* Total context window in tokens. Optional — resolved from the vendored
|
|
2261
|
+
* models.dev snapshot when omitted. Set explicitly only for a deliberate cap
|
|
2262
|
+
* (e.g. a QA reduced-window entry).
|
|
2263
|
+
*/
|
|
2264
|
+
contextWindow?: number;
|
|
2265
|
+
/**
|
|
2266
|
+
* Maximum output tokens. Optional — resolved from the models.dev snapshot when
|
|
2267
|
+
* omitted. Set explicitly only for a deliberate cap.
|
|
2268
|
+
*/
|
|
2269
|
+
maxOutputTokens?: number;
|
|
2270
|
+
/**
|
|
2271
|
+
* Set true for a model newer than the models.dev snapshot. When true,
|
|
2272
|
+
* `contextWindow` and `maxOutputTokens` MUST be provided explicitly. Token
|
|
2273
|
+
* cost stays unknown (never developer-specified) until the snapshot lists it.
|
|
2274
|
+
*/
|
|
2275
|
+
unverified?: boolean;
|
|
2239
2276
|
/** If true, this model is used for generating compaction summaries */
|
|
2240
2277
|
isCompactionModel?: boolean;
|
|
2241
2278
|
/** If true, this model is used for fast utility generations (regex, formula, …) */
|
|
@@ -2658,6 +2695,7 @@ declare const SchemaErrorCode: {
|
|
|
2658
2695
|
readonly OBJECT_REFERENCED: "SCHEMA_OBJECT_REFERENCED";
|
|
2659
2696
|
readonly CONFIGURATION_REQUIRED: "CONFIGURATION_REQUIRED";
|
|
2660
2697
|
readonly SEARCH_ADAPTER_REQUIRED: "SEARCH_ADAPTER_REQUIRED";
|
|
2698
|
+
readonly SEARCH_BACKEND_FAILED: "SEARCH_BACKEND_FAILED";
|
|
2661
2699
|
readonly INVARIANT_VIOLATION: "INVARIANT_VIOLATION";
|
|
2662
2700
|
readonly TENANT_CONTEXT_MISSING: "TENANT_CONTEXT_MISSING";
|
|
2663
2701
|
readonly FEATURE_FLAGS_CONTEXT: "FEATURE_FLAGS_CONTEXT";
|
|
@@ -2672,6 +2710,7 @@ declare const SchemaErrorCode: {
|
|
|
2672
2710
|
readonly AGENT_MISSING_ACTOR: "AGENT_MISSING_ACTOR";
|
|
2673
2711
|
readonly AGENT_INVALID_STATE: "AGENT_INVALID_STATE";
|
|
2674
2712
|
readonly AGENT_COMPACTION_IMPOSSIBLE: "AGENT_COMPACTION_IMPOSSIBLE";
|
|
2713
|
+
readonly AGENT_COMPACTION_TIMEOUT: "AGENT_COMPACTION_TIMEOUT";
|
|
2675
2714
|
readonly AGENT_LEASE_HELD: "AGENT_LEASE_HELD";
|
|
2676
2715
|
readonly AI_UNKNOWN: "AI_UNKNOWN";
|
|
2677
2716
|
readonly AI_USAGE_LIMIT_EXCEEDED: "AI_USAGE_LIMIT_EXCEEDED";
|
|
@@ -2948,6 +2987,18 @@ declare class RepositoryError extends SchemaError {
|
|
|
2948
2987
|
readonly cause?: string;
|
|
2949
2988
|
constructor(operation: RepositoryOperation, entity: string, message: string, cause?: string);
|
|
2950
2989
|
}
|
|
2990
|
+
/**
|
|
2991
|
+
* Error thrown when a search read call fails at the transport level — e.g. the
|
|
2992
|
+
* Meili client received a non-JSON body (`JSON.parse` SyntaxError) or a network
|
|
2993
|
+
* failure. Translates an otherwise un-fingerprintable bare exception into a
|
|
2994
|
+
* typed error with a stable `code` and a user-safe message. The original
|
|
2995
|
+
* failure text is preserved in `cause`/`details`, never in the message.
|
|
2996
|
+
*/
|
|
2997
|
+
declare class SearchBackendError extends SchemaError {
|
|
2998
|
+
readonly scope: string;
|
|
2999
|
+
readonly cause?: string;
|
|
3000
|
+
constructor(scope: string, cause?: string);
|
|
3001
|
+
}
|
|
2951
3002
|
/**
|
|
2952
3003
|
* Error thrown when a feature or method is not yet implemented
|
|
2953
3004
|
*/
|
|
@@ -2987,7 +3038,7 @@ declare class RecordReferencedError extends SchemaError {
|
|
|
2987
3038
|
/**
|
|
2988
3039
|
* Usage context where an attribute is being used.
|
|
2989
3040
|
*/
|
|
2990
|
-
type AttributeUsage = "labelExpression" | "view" | "filter";
|
|
3041
|
+
type AttributeUsage = "labelExpression" | "embeddingExpression" | "view" | "filter";
|
|
2991
3042
|
/**
|
|
2992
3043
|
* Thrown when attempting to delete an attribute that is in use.
|
|
2993
3044
|
*
|
|
@@ -4049,6 +4100,7 @@ interface CreateCustomObjectInput {
|
|
|
4049
4100
|
label: string;
|
|
4050
4101
|
pluralLabel?: string;
|
|
4051
4102
|
labelExpression: string;
|
|
4103
|
+
embeddingExpression?: string;
|
|
4052
4104
|
description?: string;
|
|
4053
4105
|
icon?: IconName;
|
|
4054
4106
|
attributes?: (Attribute | {
|
|
@@ -4062,6 +4114,7 @@ interface UpdateObjectInput {
|
|
|
4062
4114
|
description?: string;
|
|
4063
4115
|
icon?: IconName;
|
|
4064
4116
|
labelExpression?: string;
|
|
4117
|
+
embeddingExpression?: string;
|
|
4065
4118
|
metadata?: Record<string, unknown>;
|
|
4066
4119
|
}
|
|
4067
4120
|
interface CreateViewInput {
|
|
@@ -4120,7 +4173,7 @@ interface StreamEventCompactionEnd {
|
|
|
4120
4173
|
tokensBefore: number;
|
|
4121
4174
|
tokensAfter: number;
|
|
4122
4175
|
tokensSaved: number;
|
|
4123
|
-
strategy:
|
|
4176
|
+
strategy: CompactionStrategy;
|
|
4124
4177
|
durationMs: number;
|
|
4125
4178
|
summary?: string;
|
|
4126
4179
|
}
|
|
@@ -4128,6 +4181,25 @@ interface StreamEventCompactionFailed {
|
|
|
4128
4181
|
type: "compaction_failed";
|
|
4129
4182
|
reason: string;
|
|
4130
4183
|
}
|
|
4184
|
+
/**
|
|
4185
|
+
* Emitted once per agent turn, just before `complete`, carrying the exact
|
|
4186
|
+
* provider token usage enriched with context-window utilization and cost.
|
|
4187
|
+
* All fields are computed server-side — consumers display without recalculating.
|
|
4188
|
+
*/
|
|
4189
|
+
interface StreamEventUsage {
|
|
4190
|
+
type: "usage";
|
|
4191
|
+
inputTokens: number;
|
|
4192
|
+
outputTokens: number;
|
|
4193
|
+
totalTokens: number;
|
|
4194
|
+
cacheReadTokens?: number;
|
|
4195
|
+
cacheCreationTokens?: number;
|
|
4196
|
+
/** Context window size of the model (in tokens). */
|
|
4197
|
+
contextWindow: number;
|
|
4198
|
+
/** totalTokens / contextWindow, clamped to [0, 1]. Computed server-side. */
|
|
4199
|
+
utilization: number;
|
|
4200
|
+
/** Estimated cost in USD. Undefined when pricing is unknown — never faked. */
|
|
4201
|
+
costUsd?: number;
|
|
4202
|
+
}
|
|
4131
4203
|
|
|
4132
4204
|
/**
|
|
4133
4205
|
* Utility functions for working with objects.
|
|
@@ -5471,6 +5543,7 @@ type AddAttribute<TRecord extends Record<string, unknown>, TName extends string,
|
|
|
5471
5543
|
declare class ObjectBuilder<TRecord extends Record<string, unknown> = {}> implements StandardSchemaV1<unknown, Record<string, unknown>> {
|
|
5472
5544
|
private obj;
|
|
5473
5545
|
private _labelExpression?;
|
|
5546
|
+
private _embeddingExpression?;
|
|
5474
5547
|
private _pluralLabel?;
|
|
5475
5548
|
private _migrations;
|
|
5476
5549
|
private _sealed;
|
|
@@ -5630,6 +5703,13 @@ declare class ObjectBuilder<TRecord extends Record<string, unknown> = {}> implem
|
|
|
5630
5703
|
* ```
|
|
5631
5704
|
*/
|
|
5632
5705
|
labelExpression(template: string): this;
|
|
5706
|
+
/**
|
|
5707
|
+
* Set the optional semantic expression template for Meilisearch embeddings.
|
|
5708
|
+
*
|
|
5709
|
+
* Records of objects without this expression render an empty embedding text
|
|
5710
|
+
* and explicitly opt out of vector generation.
|
|
5711
|
+
*/
|
|
5712
|
+
embeddingExpression(template: string): this;
|
|
5633
5713
|
/**
|
|
5634
5714
|
* Attach a document layout convention to this object. Defines named variant
|
|
5635
5715
|
* sub-folders and installable preset structures inside a record's drive.
|
|
@@ -7159,6 +7239,10 @@ declare class NativeObjectRegistryClass {
|
|
|
7159
7239
|
*/
|
|
7160
7240
|
declare const registry: NativeObjectRegistryClass;
|
|
7161
7241
|
|
|
7242
|
+
declare const SKILL_OBJECT: ObjectDefinition;
|
|
7243
|
+
declare const SKILL_VIEW: DetailViewDefinition;
|
|
7244
|
+
declare const SKILL_LIST_VIEW: ListViewDefinition;
|
|
7245
|
+
|
|
7162
7246
|
/**
|
|
7163
7247
|
* Registry for developer-defined view definitions
|
|
7164
7248
|
*
|
|
@@ -7793,4 +7877,4 @@ interface DynamicValueResolver<K extends DynamicValue["dynamic"]> {
|
|
|
7793
7877
|
}>, ctx: ResolutionContext): FilterValue | undefined;
|
|
7794
7878
|
}
|
|
7795
7879
|
|
|
7796
|
-
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, 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 AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AccessDeniedError, type AccessLevel, type Action, type ActivityTab, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AdvancedFilterState, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentMessageAttachment, type AgentMessagePart, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentToolCall, 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, BilateralConfig, type BoundingBox, type BuilderConfig, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ChangeTypeNotSupportedError, type ChannelRevokedLiveEvent, CheckboxAttribute, type CompileComputedFormulaInput, CompletionStatus, 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 ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, 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, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, type DefaultRoleName, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, type DetailViewConfig, type DetailViewDefinition, type DetailViewLayout, DocumentAttribute, DocumentLayout, DocumentSlotConfig, DocumentSlotValidationError, type DocumentsTab, DocumentsTabConfig, type DomainEvent, DuplicateError, type DynamicValue, type DynamicValueResolver, EMPTY_VALUE_PLACEHOLDER, type Eager, type EdgeQuantifier, type EffectivePermissions, 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, FileAttribute, type FileListOptions, 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, 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 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, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, SchemaOperation, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type StandardSchemaIssue, type StandardSchemaResult, type StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, type StreamEventMessageUpdated, 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, 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 UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, today, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
|
|
7880
|
+
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, 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 AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AccessDeniedError, type AccessLevel, type Action, type ActivityTab, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AdvancedFilterState, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentMessageAttachment, type AgentMessagePart, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentToolCall, 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, BilateralConfig, type BoundingBox, type BuilderConfig, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, ChangeTypeNotSupportedError, type ChannelRevokedLiveEvent, CheckboxAttribute, type CompactionStrategy, type CompileComputedFormulaInput, CompletionStatus, 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 ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, 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, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, type DefaultRoleName, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, type DetailViewConfig, type DetailViewDefinition, type DetailViewLayout, DocumentAttribute, DocumentLayout, DocumentSlotConfig, DocumentSlotValidationError, type DocumentsTab, DocumentsTabConfig, type DomainEvent, DuplicateError, type DynamicValue, type DynamicValueResolver, EMPTY_VALUE_PLACEHOLDER, type Eager, type EdgeQuantifier, type EffectivePermissions, 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, FileAttribute, type FileListOptions, 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, 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 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 StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, type StreamEventMessageUpdated, 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, 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 UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSystemAttributeI18nKey, getSystemAttributeList, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, now, number, numberFlag, object, parseLiveChannelKey, parseLiveSubscribePayload, parseLiveUnsubscribePayload, parseQualifiedAttribute, phone, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, rollupToFormulaExpression, select, status, stringFlag, text, toUndefinedIfEmpty, today, user, validateAttributeName, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
|