@stndrds/schema 1.0.0-alpha.169 → 1.0.0-alpha.170
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/{filters-zzsF0GxK.d.ts → filters-B2cCCbDq.d.ts} +7 -4
- package/dist/{filters-DRXk4dLI.d.mts → filters-B9Pjped4.d.mts} +7 -4
- package/dist/{helpers-DOjqrfWE.d.mts → helpers-YWZowk1B.d.mts} +2 -2
- package/dist/{helpers-64gmAyw0.d.ts → helpers-icxxQQJQ.d.ts} +2 -2
- package/dist/index.d.mts +91 -13
- package/dist/index.d.ts +91 -13
- package/dist/index.js +49 -18
- package/dist/index.mjs +48 -19
- package/dist/{types-Bemfgle3.d.ts → types-DGGecyHV.d.ts} +1 -1
- package/dist/{types-DxEobsMy.d.mts → types-DqpxKOcD.d.mts} +1 -1
- package/dist/validation/all.d.mts +3 -3
- package/dist/validation/all.d.ts +3 -3
- 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/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/rating.d.mts +2 -2
- package/dist/validation/primitives/rating.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
|
@@ -678,7 +678,6 @@ interface Document extends Timestamps {
|
|
|
678
678
|
createdBy?: Uuid;
|
|
679
679
|
updatedBy?: Uuid;
|
|
680
680
|
deletedAt?: Date | null;
|
|
681
|
-
values: Record<string, unknown>;
|
|
682
681
|
}
|
|
683
682
|
/**
|
|
684
683
|
* Configuration for a single named slot on a DocumentAttribute.
|
|
@@ -733,11 +732,9 @@ type ProcessingJobType = "ocr";
|
|
|
733
732
|
type ProcessingJobStatus = "pending" | "processing" | "completed" | "failed" | "cancelled";
|
|
734
733
|
interface CreateDocument {
|
|
735
734
|
title: string;
|
|
736
|
-
values?: Record<string, unknown>;
|
|
737
735
|
}
|
|
738
736
|
interface UpdateDocument {
|
|
739
737
|
title?: string;
|
|
740
|
-
values?: Record<string, unknown>;
|
|
741
738
|
}
|
|
742
739
|
interface CreateDocumentSlot {
|
|
743
740
|
documentId: Uuid;
|
|
@@ -1428,6 +1425,12 @@ interface DocumentAttribute extends BaseAttribute<string | string[]> {
|
|
|
1428
1425
|
* Automatically trigger agent-compatible processing on upload.
|
|
1429
1426
|
*/
|
|
1430
1427
|
autoProcess?: boolean;
|
|
1428
|
+
/**
|
|
1429
|
+
* Schema for typed properties on the record→document edge.
|
|
1430
|
+
* Symmetric with `RelationAttribute.properties`; populated by `.qualifyWith(...)`.
|
|
1431
|
+
* Stored on `record_reference_edges.properties`, not on the document itself.
|
|
1432
|
+
*/
|
|
1433
|
+
properties?: PropertySchema;
|
|
1431
1434
|
/** Child attribute definitions for per-document metadata. */
|
|
1432
1435
|
attributes?: Attribute[];
|
|
1433
1436
|
/**
|
|
@@ -1572,4 +1575,4 @@ declare function isNoValueOperator(operator: FilterOperator): operator is NoValu
|
|
|
1572
1575
|
*/
|
|
1573
1576
|
declare function getRollupFilterOperators(attr: RollupAttribute): readonly FilterOperator[];
|
|
1574
1577
|
|
|
1575
|
-
export { type
|
|
1578
|
+
export { type RelationGroup as $, type Attribute as A, type FormulaReturnType as B, type CurrencyAttribute as C, type DateAttribute as D, type BilateralConfig as E, type FileAttribute as F, type RelationTarget as G, type RichtextFeature as H, type RollupFunction as I, type MigrationDefinition as J, type DetailViewConfig as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type DetailViewDefinition as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAreaAttribute as T, type UserAttribute as U, type ViewType as V, type DetailViewLayout as W, type SidePanelConfig as X, type Field as Y, type AttributeGroupField as Z, type FieldGroup as _, type RichtextAttribute as a, type RelativeDateValue as a$, type Group as a0, type TableTab as a1, type CreateMode as a2, type Tab as a3, type ListViewConfig as a4, type ListViewDefinition as a5, type FlagValueType as a6, type FeatureFlagDefinition as a7, type FlagLevel as a8, type FeatureFlagsRepository as a9, type FilterCombinator as aA, type FilterGroup as aB, type FilterRule as aC, type FlagOverride as aD, type FormDensity as aE, type FormTab as aF, type FormsTab as aG, type InverseSource as aH, type ListViewLayout as aI, type MigrationError as aJ, NO_VALUE_OPERATORS as aK, type NoValueOperator as aL, type NumberUnit as aM, OPERATORS_BY_TYPE as aN, type ObjectAttribute as aO, type OptionPropertyAttribute as aP, type PhoneFilterValue as aQ, type ProcessingJob as aR, type ProcessingJobStatus as aS, type ProcessingJobType as aT, type PropertyAttribute as aU, type PropertyType as aV, type QueryState as aW, RELATION_TARGET_ANY as aX, RESERVED_ATTRIBUTE_NAMES as aY, type RecordDocuments as aZ, type RelationSource as a_, type StaticFlagDefault as aa, type ResolvedFlag as ab, type ViewDefinition as ac, type ListViewTab as ad, type FilterOperator as ae, type FilterValue as af, type ActivityTab as ag, type AdvancedFilterState as ah, type AttributeGroup as ai, type BaseAttribute as aj, type BuiltInTransform as ak, type CreateDocument as al, type CreateDocumentSlot as am, type CreateProcessingJob as an, type CurrencyFilterValue as ao, type CustomTab as ap, DEFAULT_DOCUMENT_SLOT as aq, type DateFormat as ar, type DateValue as as, type Document as at, type DocumentListOptions as au, type DocumentSlot as av, type DocumentWithSlots as aw, type DocumentsTab as ax, type ExtendedFilterRule as ay, type FeatureFlagsConfig as az, type MultiselectAttribute as b, type ReservedAttributeName as b0, type RichtextTab as b1, SYSTEM_FIELD_NAMES as b2, type SchemaOperation as b3, type SchemaTransform as b4, type SlotStatus as b5, type SortDirection as b6, type StatusGroup as b7, type SystemFieldName as b8, type TabType as b9, type TableSource as ba, type TransformSource as bb, type UpdateDocument as bc, type UpdateDocumentSlot as bd, type UpdateProcessingJob as be, type ViewOperation as bf, type ViewOverlay as bg, type ViewTransform as bh, getRollupFilterOperators as bi, hasOptions as bj, inferInverseCardinality as bk, isAttributeSortable as bl, isBilateralRelation as bm, isDetailView as bn, isFieldGroup as bo, isListView as bp, isNoValueOperator as bq, isRelationGroup as br, isUniversalRelation as bs, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type RatingAttribute as h, type TextAttribute as i, type CompletionStatus as j, type SortRule as k, type FilterState as l, type Timestamps as m, type AttributeType as n, type ViewConfig as o, type ConfigOverrides as p, type LocationGranularity as q, type Location as r, type DocumentAttribute as s, type Phone as t, type Currency as u, type ObjectRecord as v, type DocumentSlotConfig as w, type PropertySchema as x, type FeatureGate as y, type Option as z };
|
|
@@ -678,7 +678,6 @@ interface Document extends Timestamps {
|
|
|
678
678
|
createdBy?: Uuid;
|
|
679
679
|
updatedBy?: Uuid;
|
|
680
680
|
deletedAt?: Date | null;
|
|
681
|
-
values: Record<string, unknown>;
|
|
682
681
|
}
|
|
683
682
|
/**
|
|
684
683
|
* Configuration for a single named slot on a DocumentAttribute.
|
|
@@ -733,11 +732,9 @@ type ProcessingJobType = "ocr";
|
|
|
733
732
|
type ProcessingJobStatus = "pending" | "processing" | "completed" | "failed" | "cancelled";
|
|
734
733
|
interface CreateDocument {
|
|
735
734
|
title: string;
|
|
736
|
-
values?: Record<string, unknown>;
|
|
737
735
|
}
|
|
738
736
|
interface UpdateDocument {
|
|
739
737
|
title?: string;
|
|
740
|
-
values?: Record<string, unknown>;
|
|
741
738
|
}
|
|
742
739
|
interface CreateDocumentSlot {
|
|
743
740
|
documentId: Uuid;
|
|
@@ -1428,6 +1425,12 @@ interface DocumentAttribute extends BaseAttribute<string | string[]> {
|
|
|
1428
1425
|
* Automatically trigger agent-compatible processing on upload.
|
|
1429
1426
|
*/
|
|
1430
1427
|
autoProcess?: boolean;
|
|
1428
|
+
/**
|
|
1429
|
+
* Schema for typed properties on the record→document edge.
|
|
1430
|
+
* Symmetric with `RelationAttribute.properties`; populated by `.qualifyWith(...)`.
|
|
1431
|
+
* Stored on `record_reference_edges.properties`, not on the document itself.
|
|
1432
|
+
*/
|
|
1433
|
+
properties?: PropertySchema;
|
|
1431
1434
|
/** Child attribute definitions for per-document metadata. */
|
|
1432
1435
|
attributes?: Attribute[];
|
|
1433
1436
|
/**
|
|
@@ -1572,4 +1575,4 @@ declare function isNoValueOperator(operator: FilterOperator): operator is NoValu
|
|
|
1572
1575
|
*/
|
|
1573
1576
|
declare function getRollupFilterOperators(attr: RollupAttribute): readonly FilterOperator[];
|
|
1574
1577
|
|
|
1575
|
-
export { type
|
|
1578
|
+
export { type RelationGroup as $, type Attribute as A, type FormulaReturnType as B, type CurrencyAttribute as C, type DateAttribute as D, type BilateralConfig as E, type FileAttribute as F, type RelationTarget as G, type RichtextFeature as H, type RollupFunction as I, type MigrationDefinition as J, type DetailViewConfig as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type DetailViewDefinition as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAreaAttribute as T, type UserAttribute as U, type ViewType as V, type DetailViewLayout as W, type SidePanelConfig as X, type Field as Y, type AttributeGroupField as Z, type FieldGroup as _, type RichtextAttribute as a, type RelativeDateValue as a$, type Group as a0, type TableTab as a1, type CreateMode as a2, type Tab as a3, type ListViewConfig as a4, type ListViewDefinition as a5, type FlagValueType as a6, type FeatureFlagDefinition as a7, type FlagLevel as a8, type FeatureFlagsRepository as a9, type FilterCombinator as aA, type FilterGroup as aB, type FilterRule as aC, type FlagOverride as aD, type FormDensity as aE, type FormTab as aF, type FormsTab as aG, type InverseSource as aH, type ListViewLayout as aI, type MigrationError as aJ, NO_VALUE_OPERATORS as aK, type NoValueOperator as aL, type NumberUnit as aM, OPERATORS_BY_TYPE as aN, type ObjectAttribute as aO, type OptionPropertyAttribute as aP, type PhoneFilterValue as aQ, type ProcessingJob as aR, type ProcessingJobStatus as aS, type ProcessingJobType as aT, type PropertyAttribute as aU, type PropertyType as aV, type QueryState as aW, RELATION_TARGET_ANY as aX, RESERVED_ATTRIBUTE_NAMES as aY, type RecordDocuments as aZ, type RelationSource as a_, type StaticFlagDefault as aa, type ResolvedFlag as ab, type ViewDefinition as ac, type ListViewTab as ad, type FilterOperator as ae, type FilterValue as af, type ActivityTab as ag, type AdvancedFilterState as ah, type AttributeGroup as ai, type BaseAttribute as aj, type BuiltInTransform as ak, type CreateDocument as al, type CreateDocumentSlot as am, type CreateProcessingJob as an, type CurrencyFilterValue as ao, type CustomTab as ap, DEFAULT_DOCUMENT_SLOT as aq, type DateFormat as ar, type DateValue as as, type Document as at, type DocumentListOptions as au, type DocumentSlot as av, type DocumentWithSlots as aw, type DocumentsTab as ax, type ExtendedFilterRule as ay, type FeatureFlagsConfig as az, type MultiselectAttribute as b, type ReservedAttributeName as b0, type RichtextTab as b1, SYSTEM_FIELD_NAMES as b2, type SchemaOperation as b3, type SchemaTransform as b4, type SlotStatus as b5, type SortDirection as b6, type StatusGroup as b7, type SystemFieldName as b8, type TabType as b9, type TableSource as ba, type TransformSource as bb, type UpdateDocument as bc, type UpdateDocumentSlot as bd, type UpdateProcessingJob as be, type ViewOperation as bf, type ViewOverlay as bg, type ViewTransform as bh, getRollupFilterOperators as bi, hasOptions as bj, inferInverseCardinality as bk, isAttributeSortable as bl, isBilateralRelation as bm, isDetailView as bn, isFieldGroup as bo, isListView as bp, isNoValueOperator as bq, isRelationGroup as br, isUniversalRelation as bs, type SelectAttribute as c, type StatusAttribute as d, type FormulaAttribute as e, type RollupAttribute as f, type CheckboxAttribute as g, type RatingAttribute as h, type TextAttribute as i, type CompletionStatus as j, type SortRule as k, type FilterState as l, type Timestamps as m, type AttributeType as n, type ViewConfig as o, type ConfigOverrides as p, type LocationGranularity as q, type Location as r, type DocumentAttribute as s, type Phone as t, type Currency as u, type ObjectRecord as v, type DocumentSlotConfig as w, type PropertySchema as x, type FeatureGate as y, type Option as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute, O as ObjectDefinition, j as CompletionStatus } from './filters-
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-
|
|
2
|
+
import { A as Attribute, O as ObjectDefinition, j as CompletionStatus } from './filters-B9Pjped4.mjs';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-DqpxKOcD.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, j as CompletionStatus } from './filters-
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-
|
|
2
|
+
import { A as Attribute, O as ObjectDefinition, j as CompletionStatus } from './filters-B2cCCbDq.js';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-DGGecyHV.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 { k as SortRule, l as FilterState, m as Timestamps, n as AttributeType, V as ViewType, o as ViewConfig, p as ConfigOverrides, j as CompletionStatus, A as Attribute, q as LocationGranularity, r as Location, e as FormulaAttribute, f as RollupAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute,
|
|
2
|
-
export {
|
|
1
|
+
import { k as SortRule, l as FilterState, m as Timestamps, n as AttributeType, V as ViewType, o as ViewConfig, p as ConfigOverrides, j as CompletionStatus, A as Attribute, q as LocationGranularity, r as Location, e as FormulaAttribute, f as RollupAttribute, s as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, t as Phone, u as Currency, v as ObjectRecord, D as DateAttribute, U as UserAttribute, w as DocumentSlotConfig, x as PropertySchema, y as FeatureGate, g as CheckboxAttribute, C as CurrencyAttribute, i as TextAttribute, T as TextAreaAttribute, N as NumberAttribute, P as PhoneAttribute, z as Option, h as RatingAttribute, L as LocationAttribute, F as FileAttribute, B as FormulaReturnType, R as RelationAttribute, E as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, G as RelationTarget, a as RichtextAttribute, H as RichtextFeature, I as RollupFunction, J as MigrationDefinition, O as ObjectDefinition, K as DetailViewConfig, Q as DetailViewDefinition, W as DetailViewLayout, X as SidePanelConfig, Y as Field, Z as AttributeGroupField, _ as FieldGroup, $ as RelationGroup, a0 as Group, a1 as TableTab, a2 as CreateMode, a3 as Tab, a4 as ListViewConfig, a5 as ListViewDefinition, a6 as FlagValueType, a7 as FeatureFlagDefinition, a8 as FlagLevel, a9 as FeatureFlagsRepository, aa as StaticFlagDefault, ab as ResolvedFlag, ac as ViewDefinition, ad as ListViewTab, ae as FilterOperator, af as FilterValue } from './filters-B9Pjped4.mjs';
|
|
2
|
+
export { ag as ActivityTab, ah as AdvancedFilterState, ai as AttributeGroup, aj as BaseAttribute, ak as BuiltInTransform, al as CreateDocument, am as CreateDocumentSlot, an as CreateProcessingJob, ao as CurrencyFilterValue, ap as CustomTab, aq as DEFAULT_DOCUMENT_SLOT, ar as DateFormat, as as DateValue, at as Document, au as DocumentListOptions, av as DocumentSlot, aw as DocumentWithSlots, ax as DocumentsTab, ay as ExtendedFilterRule, az as FeatureFlagsConfig, aA as FilterCombinator, aB as FilterGroup, aC as FilterRule, aD as FlagOverride, aE as FormDensity, aF as FormTab, aG as FormsTab, aH as InverseSource, aI as ListViewLayout, aJ as MigrationError, aK as NO_VALUE_OPERATORS, aL as NoValueOperator, aM as NumberUnit, aN as OPERATORS_BY_TYPE, aO as ObjectAttribute, aP as OptionPropertyAttribute, aQ as PhoneFilterValue, aR as ProcessingJob, aS as ProcessingJobStatus, aT as ProcessingJobType, aU as PropertyAttribute, aV as PropertyType, aW as QueryState, aX as RELATION_TARGET_ANY, aY as RESERVED_ATTRIBUTE_NAMES, aZ as RecordDocuments, a_ as RelationSource, a$ as RelativeDateValue, b0 as ReservedAttributeName, b1 as RichtextTab, b2 as SYSTEM_FIELD_NAMES, b3 as SchemaOperation, b4 as SchemaTransform, b5 as SlotStatus, b6 as SortDirection, b7 as StatusGroup, b8 as SystemFieldName, b9 as TabType, ba as TableSource, bb as TransformSource, bc as UpdateDocument, bd as UpdateDocumentSlot, be as UpdateProcessingJob, bf as ViewOperation, bg as ViewOverlay, bh as ViewTransform, bi as getRollupFilterOperators, bj as hasOptions, bk as inferInverseCardinality, bl as isAttributeSortable, bm as isBilateralRelation, bn as isDetailView, bo as isFieldGroup, bp as isListView, bq as isNoValueOperator, br as isRelationGroup, bs as isUniversalRelation } from './filters-B9Pjped4.mjs';
|
|
3
3
|
import { MimeType, IconName, 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-DqpxKOcD.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, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-
|
|
12
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-YWZowk1B.mjs';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Generic list options for pagination and sorting
|
|
@@ -2467,12 +2467,51 @@ type InferSelectValue<A extends SelectAttribute> = A["options"] extends readonly
|
|
|
2467
2467
|
type InferMultiselectValue<A extends MultiselectAttribute> = A["options"] extends readonly {
|
|
2468
2468
|
value: infer V;
|
|
2469
2469
|
}[] ? V[] : string[];
|
|
2470
|
+
/**
|
|
2471
|
+
* @internal — implementation detail of DocumentAttributeBuilder.qualifyWith().
|
|
2472
|
+
*
|
|
2473
|
+
* Phantom brand carrying typed props into the type system without changing
|
|
2474
|
+
* the runtime attribute shape. `TProps` is `{ [propName]?: value | null }`
|
|
2475
|
+
* inferred from the builders passed to .qualifyWith(). `TMultiple` tracks
|
|
2476
|
+
* whether .multiple() was called.
|
|
2477
|
+
*/
|
|
2478
|
+
interface QualifiedDocumentBrand<TProps extends Record<string, unknown>, TMultiple extends boolean> {
|
|
2479
|
+
readonly __qualifiedDocumentProps: TProps;
|
|
2480
|
+
readonly __qualifiedDocumentMultiple: TMultiple;
|
|
2481
|
+
}
|
|
2482
|
+
/**
|
|
2483
|
+
* @internal — used by DocumentAttributeBuilder.qualifyWith().
|
|
2484
|
+
*
|
|
2485
|
+
* Infers the props shape from a tuple of PropertyAttributeBuilders.
|
|
2486
|
+
* Each builder contributes `{ [name]?: value | null }` to the result.
|
|
2487
|
+
*/
|
|
2488
|
+
type InferQualifiedProps<TBuilders extends readonly unknown[]> = {
|
|
2489
|
+
[B in TBuilders[number] as B extends {
|
|
2490
|
+
$infer: {
|
|
2491
|
+
value: unknown;
|
|
2492
|
+
};
|
|
2493
|
+
} & {
|
|
2494
|
+
_types: {
|
|
2495
|
+
name: infer N extends string;
|
|
2496
|
+
};
|
|
2497
|
+
} ? N : never]?: (B extends {
|
|
2498
|
+
$infer: {
|
|
2499
|
+
value: infer V;
|
|
2500
|
+
};
|
|
2501
|
+
} ? V : never) | null;
|
|
2502
|
+
};
|
|
2470
2503
|
/**
|
|
2471
2504
|
* Maps an Attribute type to its runtime value type
|
|
2472
2505
|
* Uses a flat lookup table + 3 special cases for option-based attributes
|
|
2473
2506
|
* This avoids deep conditional nesting that causes TS2589 on large objects
|
|
2474
2507
|
*/
|
|
2475
|
-
type InferAttributeValue<A extends Attribute> = A extends
|
|
2508
|
+
type InferAttributeValue<A extends Attribute> = A extends DocumentAttribute & QualifiedDocumentBrand<infer TProps, infer TMultiple> ? TMultiple extends true ? Array<{
|
|
2509
|
+
id: string;
|
|
2510
|
+
props: TProps;
|
|
2511
|
+
}> : {
|
|
2512
|
+
id: string;
|
|
2513
|
+
props: TProps;
|
|
2514
|
+
} : A extends StatusAttribute ? InferStatusValue<A> : A extends SelectAttribute ? InferSelectValue<A> : A extends MultiselectAttribute ? InferMultiselectValue<A> : A["type"] extends keyof AttributeValueMap ? AttributeValueMap[A["type"]] : unknown;
|
|
2476
2515
|
/**
|
|
2477
2516
|
* Base type for custom attribute values added via UI
|
|
2478
2517
|
* Supports all possible attribute value types
|
|
@@ -3150,6 +3189,26 @@ declare class DocumentSlotValidationError extends Error {
|
|
|
3150
3189
|
}
|
|
3151
3190
|
declare function validateSlotAgainstConfig(slotName: string, mimeType: string, slots: DocumentSlotConfig[]): DocumentSlotConfig;
|
|
3152
3191
|
|
|
3192
|
+
/**
|
|
3193
|
+
* The set of attribute types allowed as relation/document properties.
|
|
3194
|
+
* This is the complement of the internal FORBIDDEN_PROPERTY_TYPES list.
|
|
3195
|
+
*/
|
|
3196
|
+
declare const ALLOWED_PROPERTY_TYPES: readonly ["text", "textarea", "number", "checkbox", "date", "phone", "currency", "status", "select", "multiselect", "rating", "location"];
|
|
3197
|
+
interface BuilderLike {
|
|
3198
|
+
build(): {
|
|
3199
|
+
type: string;
|
|
3200
|
+
name: string;
|
|
3201
|
+
};
|
|
3202
|
+
}
|
|
3203
|
+
/**
|
|
3204
|
+
* Validates and builds a PropertySchema from an array of attribute builders.
|
|
3205
|
+
* Throws if any builder produces a forbidden attribute type.
|
|
3206
|
+
*
|
|
3207
|
+
* Preserved error message (byte-equivalent with RelationAttributeBuilder.qualifyWith):
|
|
3208
|
+
* `Property type "<type>" is not supported in .qualifyWith()`
|
|
3209
|
+
*/
|
|
3210
|
+
declare function buildPropertySchema(builders: BuilderLike[]): PropertySchema;
|
|
3211
|
+
|
|
3153
3212
|
/**
|
|
3154
3213
|
* Default empty value placeholder
|
|
3155
3214
|
*/
|
|
@@ -4175,10 +4234,10 @@ declare function rollup<TName extends string>(config: TypedBuilderConfig<TName>)
|
|
|
4175
4234
|
* .maxDocuments(10)
|
|
4176
4235
|
* ```
|
|
4177
4236
|
*/
|
|
4178
|
-
declare class DocumentAttributeBuilder<TName extends string, TRequired extends boolean = false> extends BaseAttributeBuilder<DocumentAttribute> {
|
|
4237
|
+
declare class DocumentAttributeBuilder<TName extends string, TRequired extends boolean = false, TProps extends Record<string, unknown> = never, TMultiple extends boolean = false> extends BaseAttributeBuilder<DocumentAttribute> {
|
|
4179
4238
|
readonly _types: {
|
|
4180
4239
|
name: TName;
|
|
4181
|
-
attribute: DocumentAttribute
|
|
4240
|
+
attribute: [TProps] extends [never] ? DocumentAttribute : DocumentAttribute & QualifiedDocumentBrand<TProps, TMultiple>;
|
|
4182
4241
|
required: TRequired;
|
|
4183
4242
|
};
|
|
4184
4243
|
/**
|
|
@@ -4187,16 +4246,22 @@ declare class DocumentAttributeBuilder<TName extends string, TRequired extends b
|
|
|
4187
4246
|
*/
|
|
4188
4247
|
readonly $infer: {
|
|
4189
4248
|
/** The runtime value type for this attribute (document ID or array of IDs) */
|
|
4190
|
-
value: string | string[]
|
|
4249
|
+
value: [TProps] extends [never] ? string | string[] : TMultiple extends true ? Array<{
|
|
4250
|
+
id: string;
|
|
4251
|
+
props: TProps;
|
|
4252
|
+
}> : {
|
|
4253
|
+
id: string;
|
|
4254
|
+
props: TProps;
|
|
4255
|
+
};
|
|
4191
4256
|
/** The full attribute definition type */
|
|
4192
4257
|
definition: DocumentAttribute;
|
|
4193
4258
|
};
|
|
4194
4259
|
constructor(name: TName, label: string);
|
|
4195
4260
|
/**
|
|
4196
4261
|
* Allow multiple documents.
|
|
4197
|
-
* Value becomes string[] instead of string.
|
|
4262
|
+
* Value becomes string[] instead of string (or Array<{ id; props }> when qualified).
|
|
4198
4263
|
*/
|
|
4199
|
-
multiple():
|
|
4264
|
+
multiple(): DocumentAttributeBuilder<TName, TRequired, TProps, true>;
|
|
4200
4265
|
/**
|
|
4201
4266
|
* Maximum number of documents (only applies when multiple: true).
|
|
4202
4267
|
*/
|
|
@@ -4222,14 +4287,27 @@ declare class DocumentAttributeBuilder<TName extends string, TRequired extends b
|
|
|
4222
4287
|
attribute<TAttr extends Attribute>(builder: {
|
|
4223
4288
|
build(): TAttr;
|
|
4224
4289
|
}): this;
|
|
4290
|
+
/**
|
|
4291
|
+
* Add properties to qualify each document using existing attribute builders.
|
|
4292
|
+
* Returns a new builder type that carries the inferred props shape for $infer.
|
|
4293
|
+
*
|
|
4294
|
+
* @example
|
|
4295
|
+
* document({ name: "contracts", label: "Contracts" })
|
|
4296
|
+
* .multiple()
|
|
4297
|
+
* .qualifyWith(
|
|
4298
|
+
* select({ name: "kind", label: "Kind" }).options([...]),
|
|
4299
|
+
* number({ name: "amount", label: "Amount" }).min(0),
|
|
4300
|
+
* )
|
|
4301
|
+
*/
|
|
4302
|
+
qualifyWith<const TBuilders extends readonly PropertyAttributeBuilder[]>(...builders: TBuilders): DocumentAttributeBuilder<TName, TRequired, InferQualifiedProps<TBuilders>, TMultiple>;
|
|
4225
4303
|
/**
|
|
4226
4304
|
* Mark this attribute as required.
|
|
4227
4305
|
*/
|
|
4228
|
-
required(): DocumentAttributeBuilder<TName, true>;
|
|
4306
|
+
required(): DocumentAttributeBuilder<TName, true, TProps, TMultiple>;
|
|
4229
4307
|
/**
|
|
4230
4308
|
* Mark this attribute as optional (undo required).
|
|
4231
4309
|
*/
|
|
4232
|
-
optional(): DocumentAttributeBuilder<TName, false>;
|
|
4310
|
+
optional(): DocumentAttributeBuilder<TName, false, TProps, TMultiple>;
|
|
4233
4311
|
}
|
|
4234
4312
|
/**
|
|
4235
4313
|
* Create a document attribute.
|
|
@@ -6475,4 +6553,4 @@ declare const OPERATOR_SPECS: Record<FilterOperator, OperatorSpec>;
|
|
|
6475
6553
|
*/
|
|
6476
6554
|
declare function evaluateFilterState(state: FilterState, values: Record<string, unknown>, attributes: Attribute[]): boolean;
|
|
6477
6555
|
|
|
6478
|
-
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, 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, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AgentConfig, type AgentContextEntry, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentQuestion, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, CheckboxAttribute, CompletionStatus, ConcurrentModificationError, ConfigOverrides, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, 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, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentSlotConfig, DocumentSlotValidationError, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type EffectivePermissions, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, type File, FileAttribute, type FileListOptions, type FileVisibility, FilterOperator, FilterState, FilterValue, FlagLevel, FlagRegistry, FlagService, FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, 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 FormTextRow, FormulaAttribute, type FormulaResult, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, InvalidPathError, type InviteUserInput, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, Location, LocationAttribute, LocationGranularity, MaxDepthExceededError, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectRecord, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type PathCardinality, type PathSegment, type PathSegmentType, type Permission, type PermissionScope, Phone, PhoneAttribute, type PolicyContext, PolicyViolationError, type PrincipalType, ProtectedResourceError, ProtectedRoleError, type ProviderName, type QuestionResponse, type QuestionStatus, RatingAttribute, type ReasoningPartData, type RecordAgentEvent, type RecordMetadata, RecordNotFoundError, type RecordPolicy, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, RelationTarget, RepositoryError, type RepositoryOperation, ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextFeature, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, type SchemaResolver, type SearchOptions, SelectAttribute, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncError, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemPermissions, type SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, TextAreaAttribute, TextAttribute, type TextPartData, type ThinkingPartData, type TimeoutPolicy, Timestamps, type ToolPartData, 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 UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, ViewConfig, ViewDefinition, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getPathDepth, getRelationPath, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasRelationReferences, isAttributeInUseError, isDefaultRole, isDocumentAttribute, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, number, numberFlag, object, parsePath, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateSlotAgainstConfig, viewRegistry };
|
|
6556
|
+
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, 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, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AgentConfig, type AgentContextEntry, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentQuestion, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, CheckboxAttribute, CompletionStatus, ConcurrentModificationError, ConfigOverrides, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, 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, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentSlotConfig, DocumentSlotValidationError, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type EffectivePermissions, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, type File, FileAttribute, type FileListOptions, type FileVisibility, FilterOperator, FilterState, FilterValue, FlagLevel, FlagRegistry, FlagService, FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, 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 FormTextRow, FormulaAttribute, type FormulaResult, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, InvalidPathError, type InviteUserInput, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, Location, LocationAttribute, LocationGranularity, MaxDepthExceededError, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectRecord, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type PathCardinality, type PathSegment, type PathSegmentType, type Permission, type PermissionScope, Phone, PhoneAttribute, type PolicyContext, PolicyViolationError, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, type QualifiedDocumentBrand, type QuestionResponse, type QuestionStatus, RatingAttribute, type ReasoningPartData, type RecordAgentEvent, type RecordMetadata, RecordNotFoundError, type RecordPolicy, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, RelationTarget, RepositoryError, type RepositoryOperation, ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextFeature, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, type SchemaResolver, type SearchOptions, SelectAttribute, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncError, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemPermissions, type SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, TextAreaAttribute, TextAttribute, type TextPartData, type ThinkingPartData, type TimeoutPolicy, Timestamps, type ToolPartData, 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 UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, ViewConfig, ViewDefinition, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getPathDepth, getRelationPath, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasRelationReferences, isAttributeInUseError, isDefaultRole, isDocumentAttribute, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, number, numberFlag, object, parsePath, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateSlotAgainstConfig, viewRegistry };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { k as SortRule, l as FilterState, m as Timestamps, n as AttributeType, V as ViewType, o as ViewConfig, p as ConfigOverrides, j as CompletionStatus, A as Attribute, q as LocationGranularity, r as Location, e as FormulaAttribute, f as RollupAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute,
|
|
2
|
-
export {
|
|
1
|
+
import { k as SortRule, l as FilterState, m as Timestamps, n as AttributeType, V as ViewType, o as ViewConfig, p as ConfigOverrides, j as CompletionStatus, A as Attribute, q as LocationGranularity, r as Location, e as FormulaAttribute, f as RollupAttribute, s as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, t as Phone, u as Currency, v as ObjectRecord, D as DateAttribute, U as UserAttribute, w as DocumentSlotConfig, x as PropertySchema, y as FeatureGate, g as CheckboxAttribute, C as CurrencyAttribute, i as TextAttribute, T as TextAreaAttribute, N as NumberAttribute, P as PhoneAttribute, z as Option, h as RatingAttribute, L as LocationAttribute, F as FileAttribute, B as FormulaReturnType, R as RelationAttribute, E as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, G as RelationTarget, a as RichtextAttribute, H as RichtextFeature, I as RollupFunction, J as MigrationDefinition, O as ObjectDefinition, K as DetailViewConfig, Q as DetailViewDefinition, W as DetailViewLayout, X as SidePanelConfig, Y as Field, Z as AttributeGroupField, _ as FieldGroup, $ as RelationGroup, a0 as Group, a1 as TableTab, a2 as CreateMode, a3 as Tab, a4 as ListViewConfig, a5 as ListViewDefinition, a6 as FlagValueType, a7 as FeatureFlagDefinition, a8 as FlagLevel, a9 as FeatureFlagsRepository, aa as StaticFlagDefault, ab as ResolvedFlag, ac as ViewDefinition, ad as ListViewTab, ae as FilterOperator, af as FilterValue } from './filters-B2cCCbDq.js';
|
|
2
|
+
export { ag as ActivityTab, ah as AdvancedFilterState, ai as AttributeGroup, aj as BaseAttribute, ak as BuiltInTransform, al as CreateDocument, am as CreateDocumentSlot, an as CreateProcessingJob, ao as CurrencyFilterValue, ap as CustomTab, aq as DEFAULT_DOCUMENT_SLOT, ar as DateFormat, as as DateValue, at as Document, au as DocumentListOptions, av as DocumentSlot, aw as DocumentWithSlots, ax as DocumentsTab, ay as ExtendedFilterRule, az as FeatureFlagsConfig, aA as FilterCombinator, aB as FilterGroup, aC as FilterRule, aD as FlagOverride, aE as FormDensity, aF as FormTab, aG as FormsTab, aH as InverseSource, aI as ListViewLayout, aJ as MigrationError, aK as NO_VALUE_OPERATORS, aL as NoValueOperator, aM as NumberUnit, aN as OPERATORS_BY_TYPE, aO as ObjectAttribute, aP as OptionPropertyAttribute, aQ as PhoneFilterValue, aR as ProcessingJob, aS as ProcessingJobStatus, aT as ProcessingJobType, aU as PropertyAttribute, aV as PropertyType, aW as QueryState, aX as RELATION_TARGET_ANY, aY as RESERVED_ATTRIBUTE_NAMES, aZ as RecordDocuments, a_ as RelationSource, a$ as RelativeDateValue, b0 as ReservedAttributeName, b1 as RichtextTab, b2 as SYSTEM_FIELD_NAMES, b3 as SchemaOperation, b4 as SchemaTransform, b5 as SlotStatus, b6 as SortDirection, b7 as StatusGroup, b8 as SystemFieldName, b9 as TabType, ba as TableSource, bb as TransformSource, bc as UpdateDocument, bd as UpdateDocumentSlot, be as UpdateProcessingJob, bf as ViewOperation, bg as ViewOverlay, bh as ViewTransform, bi as getRollupFilterOperators, bj as hasOptions, bk as inferInverseCardinality, bl as isAttributeSortable, bm as isBilateralRelation, bn as isDetailView, bo as isFieldGroup, bp as isListView, bq as isNoValueOperator, br as isRelationGroup, bs as isUniversalRelation } from './filters-B2cCCbDq.js';
|
|
3
3
|
import { MimeType, IconName, 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
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-DGGecyHV.js';
|
|
10
10
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.js';
|
|
11
11
|
export { parseAttributeConfig } from './validation/config/index.js';
|
|
12
|
-
export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-
|
|
12
|
+
export { c as computeRecordStatus, a as createFormAttributeValidator, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-icxxQQJQ.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Generic list options for pagination and sorting
|
|
@@ -2467,12 +2467,51 @@ type InferSelectValue<A extends SelectAttribute> = A["options"] extends readonly
|
|
|
2467
2467
|
type InferMultiselectValue<A extends MultiselectAttribute> = A["options"] extends readonly {
|
|
2468
2468
|
value: infer V;
|
|
2469
2469
|
}[] ? V[] : string[];
|
|
2470
|
+
/**
|
|
2471
|
+
* @internal — implementation detail of DocumentAttributeBuilder.qualifyWith().
|
|
2472
|
+
*
|
|
2473
|
+
* Phantom brand carrying typed props into the type system without changing
|
|
2474
|
+
* the runtime attribute shape. `TProps` is `{ [propName]?: value | null }`
|
|
2475
|
+
* inferred from the builders passed to .qualifyWith(). `TMultiple` tracks
|
|
2476
|
+
* whether .multiple() was called.
|
|
2477
|
+
*/
|
|
2478
|
+
interface QualifiedDocumentBrand<TProps extends Record<string, unknown>, TMultiple extends boolean> {
|
|
2479
|
+
readonly __qualifiedDocumentProps: TProps;
|
|
2480
|
+
readonly __qualifiedDocumentMultiple: TMultiple;
|
|
2481
|
+
}
|
|
2482
|
+
/**
|
|
2483
|
+
* @internal — used by DocumentAttributeBuilder.qualifyWith().
|
|
2484
|
+
*
|
|
2485
|
+
* Infers the props shape from a tuple of PropertyAttributeBuilders.
|
|
2486
|
+
* Each builder contributes `{ [name]?: value | null }` to the result.
|
|
2487
|
+
*/
|
|
2488
|
+
type InferQualifiedProps<TBuilders extends readonly unknown[]> = {
|
|
2489
|
+
[B in TBuilders[number] as B extends {
|
|
2490
|
+
$infer: {
|
|
2491
|
+
value: unknown;
|
|
2492
|
+
};
|
|
2493
|
+
} & {
|
|
2494
|
+
_types: {
|
|
2495
|
+
name: infer N extends string;
|
|
2496
|
+
};
|
|
2497
|
+
} ? N : never]?: (B extends {
|
|
2498
|
+
$infer: {
|
|
2499
|
+
value: infer V;
|
|
2500
|
+
};
|
|
2501
|
+
} ? V : never) | null;
|
|
2502
|
+
};
|
|
2470
2503
|
/**
|
|
2471
2504
|
* Maps an Attribute type to its runtime value type
|
|
2472
2505
|
* Uses a flat lookup table + 3 special cases for option-based attributes
|
|
2473
2506
|
* This avoids deep conditional nesting that causes TS2589 on large objects
|
|
2474
2507
|
*/
|
|
2475
|
-
type InferAttributeValue<A extends Attribute> = A extends
|
|
2508
|
+
type InferAttributeValue<A extends Attribute> = A extends DocumentAttribute & QualifiedDocumentBrand<infer TProps, infer TMultiple> ? TMultiple extends true ? Array<{
|
|
2509
|
+
id: string;
|
|
2510
|
+
props: TProps;
|
|
2511
|
+
}> : {
|
|
2512
|
+
id: string;
|
|
2513
|
+
props: TProps;
|
|
2514
|
+
} : A extends StatusAttribute ? InferStatusValue<A> : A extends SelectAttribute ? InferSelectValue<A> : A extends MultiselectAttribute ? InferMultiselectValue<A> : A["type"] extends keyof AttributeValueMap ? AttributeValueMap[A["type"]] : unknown;
|
|
2476
2515
|
/**
|
|
2477
2516
|
* Base type for custom attribute values added via UI
|
|
2478
2517
|
* Supports all possible attribute value types
|
|
@@ -3150,6 +3189,26 @@ declare class DocumentSlotValidationError extends Error {
|
|
|
3150
3189
|
}
|
|
3151
3190
|
declare function validateSlotAgainstConfig(slotName: string, mimeType: string, slots: DocumentSlotConfig[]): DocumentSlotConfig;
|
|
3152
3191
|
|
|
3192
|
+
/**
|
|
3193
|
+
* The set of attribute types allowed as relation/document properties.
|
|
3194
|
+
* This is the complement of the internal FORBIDDEN_PROPERTY_TYPES list.
|
|
3195
|
+
*/
|
|
3196
|
+
declare const ALLOWED_PROPERTY_TYPES: readonly ["text", "textarea", "number", "checkbox", "date", "phone", "currency", "status", "select", "multiselect", "rating", "location"];
|
|
3197
|
+
interface BuilderLike {
|
|
3198
|
+
build(): {
|
|
3199
|
+
type: string;
|
|
3200
|
+
name: string;
|
|
3201
|
+
};
|
|
3202
|
+
}
|
|
3203
|
+
/**
|
|
3204
|
+
* Validates and builds a PropertySchema from an array of attribute builders.
|
|
3205
|
+
* Throws if any builder produces a forbidden attribute type.
|
|
3206
|
+
*
|
|
3207
|
+
* Preserved error message (byte-equivalent with RelationAttributeBuilder.qualifyWith):
|
|
3208
|
+
* `Property type "<type>" is not supported in .qualifyWith()`
|
|
3209
|
+
*/
|
|
3210
|
+
declare function buildPropertySchema(builders: BuilderLike[]): PropertySchema;
|
|
3211
|
+
|
|
3153
3212
|
/**
|
|
3154
3213
|
* Default empty value placeholder
|
|
3155
3214
|
*/
|
|
@@ -4175,10 +4234,10 @@ declare function rollup<TName extends string>(config: TypedBuilderConfig<TName>)
|
|
|
4175
4234
|
* .maxDocuments(10)
|
|
4176
4235
|
* ```
|
|
4177
4236
|
*/
|
|
4178
|
-
declare class DocumentAttributeBuilder<TName extends string, TRequired extends boolean = false> extends BaseAttributeBuilder<DocumentAttribute> {
|
|
4237
|
+
declare class DocumentAttributeBuilder<TName extends string, TRequired extends boolean = false, TProps extends Record<string, unknown> = never, TMultiple extends boolean = false> extends BaseAttributeBuilder<DocumentAttribute> {
|
|
4179
4238
|
readonly _types: {
|
|
4180
4239
|
name: TName;
|
|
4181
|
-
attribute: DocumentAttribute
|
|
4240
|
+
attribute: [TProps] extends [never] ? DocumentAttribute : DocumentAttribute & QualifiedDocumentBrand<TProps, TMultiple>;
|
|
4182
4241
|
required: TRequired;
|
|
4183
4242
|
};
|
|
4184
4243
|
/**
|
|
@@ -4187,16 +4246,22 @@ declare class DocumentAttributeBuilder<TName extends string, TRequired extends b
|
|
|
4187
4246
|
*/
|
|
4188
4247
|
readonly $infer: {
|
|
4189
4248
|
/** The runtime value type for this attribute (document ID or array of IDs) */
|
|
4190
|
-
value: string | string[]
|
|
4249
|
+
value: [TProps] extends [never] ? string | string[] : TMultiple extends true ? Array<{
|
|
4250
|
+
id: string;
|
|
4251
|
+
props: TProps;
|
|
4252
|
+
}> : {
|
|
4253
|
+
id: string;
|
|
4254
|
+
props: TProps;
|
|
4255
|
+
};
|
|
4191
4256
|
/** The full attribute definition type */
|
|
4192
4257
|
definition: DocumentAttribute;
|
|
4193
4258
|
};
|
|
4194
4259
|
constructor(name: TName, label: string);
|
|
4195
4260
|
/**
|
|
4196
4261
|
* Allow multiple documents.
|
|
4197
|
-
* Value becomes string[] instead of string.
|
|
4262
|
+
* Value becomes string[] instead of string (or Array<{ id; props }> when qualified).
|
|
4198
4263
|
*/
|
|
4199
|
-
multiple():
|
|
4264
|
+
multiple(): DocumentAttributeBuilder<TName, TRequired, TProps, true>;
|
|
4200
4265
|
/**
|
|
4201
4266
|
* Maximum number of documents (only applies when multiple: true).
|
|
4202
4267
|
*/
|
|
@@ -4222,14 +4287,27 @@ declare class DocumentAttributeBuilder<TName extends string, TRequired extends b
|
|
|
4222
4287
|
attribute<TAttr extends Attribute>(builder: {
|
|
4223
4288
|
build(): TAttr;
|
|
4224
4289
|
}): this;
|
|
4290
|
+
/**
|
|
4291
|
+
* Add properties to qualify each document using existing attribute builders.
|
|
4292
|
+
* Returns a new builder type that carries the inferred props shape for $infer.
|
|
4293
|
+
*
|
|
4294
|
+
* @example
|
|
4295
|
+
* document({ name: "contracts", label: "Contracts" })
|
|
4296
|
+
* .multiple()
|
|
4297
|
+
* .qualifyWith(
|
|
4298
|
+
* select({ name: "kind", label: "Kind" }).options([...]),
|
|
4299
|
+
* number({ name: "amount", label: "Amount" }).min(0),
|
|
4300
|
+
* )
|
|
4301
|
+
*/
|
|
4302
|
+
qualifyWith<const TBuilders extends readonly PropertyAttributeBuilder[]>(...builders: TBuilders): DocumentAttributeBuilder<TName, TRequired, InferQualifiedProps<TBuilders>, TMultiple>;
|
|
4225
4303
|
/**
|
|
4226
4304
|
* Mark this attribute as required.
|
|
4227
4305
|
*/
|
|
4228
|
-
required(): DocumentAttributeBuilder<TName, true>;
|
|
4306
|
+
required(): DocumentAttributeBuilder<TName, true, TProps, TMultiple>;
|
|
4229
4307
|
/**
|
|
4230
4308
|
* Mark this attribute as optional (undo required).
|
|
4231
4309
|
*/
|
|
4232
|
-
optional(): DocumentAttributeBuilder<TName, false>;
|
|
4310
|
+
optional(): DocumentAttributeBuilder<TName, false, TProps, TMultiple>;
|
|
4233
4311
|
}
|
|
4234
4312
|
/**
|
|
4235
4313
|
* Create a document attribute.
|
|
@@ -6475,4 +6553,4 @@ declare const OPERATOR_SPECS: Record<FilterOperator, OperatorSpec>;
|
|
|
6475
6553
|
*/
|
|
6476
6554
|
declare function evaluateFilterState(state: FilterState, values: Record<string, unknown>, attributes: Attribute[]): boolean;
|
|
6477
6555
|
|
|
6478
|
-
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, 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, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AgentConfig, type AgentContextEntry, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentQuestion, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, CheckboxAttribute, CompletionStatus, ConcurrentModificationError, ConfigOverrides, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, 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, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentSlotConfig, DocumentSlotValidationError, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type EffectivePermissions, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, type File, FileAttribute, type FileListOptions, type FileVisibility, FilterOperator, FilterState, FilterValue, FlagLevel, FlagRegistry, FlagService, FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, 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 FormTextRow, FormulaAttribute, type FormulaResult, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, InvalidPathError, type InviteUserInput, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, Location, LocationAttribute, LocationGranularity, MaxDepthExceededError, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectRecord, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type PathCardinality, type PathSegment, type PathSegmentType, type Permission, type PermissionScope, Phone, PhoneAttribute, type PolicyContext, PolicyViolationError, type PrincipalType, ProtectedResourceError, ProtectedRoleError, type ProviderName, type QuestionResponse, type QuestionStatus, RatingAttribute, type ReasoningPartData, type RecordAgentEvent, type RecordMetadata, RecordNotFoundError, type RecordPolicy, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, RelationTarget, RepositoryError, type RepositoryOperation, ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextFeature, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, type SchemaResolver, type SearchOptions, SelectAttribute, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncError, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemPermissions, type SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, TextAreaAttribute, TextAttribute, type TextPartData, type ThinkingPartData, type TimeoutPolicy, Timestamps, type ToolPartData, 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 UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, ViewConfig, ViewDefinition, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getPathDepth, getRelationPath, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasRelationReferences, isAttributeInUseError, isDefaultRole, isDocumentAttribute, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, number, numberFlag, object, parsePath, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateSlotAgainstConfig, viewRegistry };
|
|
6556
|
+
export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, 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, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AgentConfig, type AgentContextEntry, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentQuestion, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, CheckboxAttribute, CompletionStatus, ConcurrentModificationError, ConfigOverrides, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, 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, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentSlotConfig, DocumentSlotValidationError, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type EffectivePermissions, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, type File, FileAttribute, type FileListOptions, type FileVisibility, FilterOperator, FilterState, FilterValue, FlagLevel, FlagRegistry, FlagService, FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, 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 FormTextRow, FormulaAttribute, type FormulaResult, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, InvalidPathError, type InviteUserInput, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, Location, LocationAttribute, LocationGranularity, MaxDepthExceededError, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectRecord, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type PathCardinality, type PathSegment, type PathSegmentType, type Permission, type PermissionScope, Phone, PhoneAttribute, type PolicyContext, PolicyViolationError, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, type QualifiedDocumentBrand, type QuestionResponse, type QuestionStatus, RatingAttribute, type ReasoningPartData, type RecordAgentEvent, type RecordMetadata, RecordNotFoundError, type RecordPolicy, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, RelationTarget, RepositoryError, type RepositoryOperation, ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextFeature, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, type SchemaResolver, type SearchOptions, SelectAttribute, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncError, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemPermissions, type SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, TextAreaAttribute, TextAttribute, type TextPartData, type ThinkingPartData, type TimeoutPolicy, Timestamps, type ToolPartData, 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 UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, ViewConfig, ViewDefinition, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getPathDepth, getRelationPath, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasRelationReferences, isAttributeInUseError, isDefaultRole, isDocumentAttribute, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, number, numberFlag, object, parsePath, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateSlotAgainstConfig, viewRegistry };
|