@stndrds/schema 1.0.0-alpha.230 → 1.0.0-alpha.232
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-DZIol94T.d.ts → attributes-B4847Nul.d.ts} +14 -2
- package/dist/{attributes-C6pCxr5P.d.mts → attributes-BpMes5H_.d.mts} +14 -2
- package/dist/{chunk-MUGKKCY3.js → chunk-6SPNZSXS.js} +11 -3
- package/dist/{chunk-6CTUPVHH.mjs → chunk-FRWPIJDK.mjs} +10 -2
- package/dist/chunk-Q44QKLN4.mjs +43 -0
- package/dist/chunk-SI34M4IC.js +45 -0
- package/dist/{helpers-B3EPtA8t.d.ts → helpers-DsJff5r-.d.ts} +2 -2
- package/dist/{helpers-Ca3PIt9O.d.mts → helpers-ow7sORSi.d.mts} +2 -2
- package/dist/index.d.mts +153 -14
- package/dist/index.d.ts +153 -14
- package/dist/index.js +203 -95
- package/dist/index.mjs +129 -29
- package/dist/{types-CBV2_ikK.d.ts → types-C8nztuFF.d.ts} +1 -1
- package/dist/{types-DjGoodOL.d.mts → types-CyxVuV_d.d.mts} +1 -1
- package/dist/validation/all.d.mts +3 -3
- package/dist/validation/all.d.ts +3 -3
- package/dist/validation/all.js +9 -9
- package/dist/validation/all.mjs +2 -2
- 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 +15 -15
- package/dist/validation/object/index.mjs +2 -2
- 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 +16 -3
- package/dist/validation/primitives/date.d.ts +16 -3
- package/dist/validation/primitives/date.js +2 -2
- package/dist/validation/primitives/date.mjs +1 -1
- 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
- package/dist/chunk-6I2R22CX.mjs +0 -8
- package/dist/chunk-O44XVGHE.js +0 -10
|
@@ -600,11 +600,23 @@ interface CheckboxAttribute extends BaseAttribute<boolean> {
|
|
|
600
600
|
}
|
|
601
601
|
type DateFormat = "short" | "long" | "full" | "relative";
|
|
602
602
|
type DateValue = string | "today";
|
|
603
|
-
|
|
603
|
+
type TimeFormat = "12h" | "24h";
|
|
604
|
+
/** Stored value of a date attribute configured with `.endDate()`. */
|
|
605
|
+
interface DateRangeValue {
|
|
606
|
+
start: string;
|
|
607
|
+
end: string | null;
|
|
608
|
+
}
|
|
609
|
+
interface DateAttribute extends BaseAttribute<string | DateRangeValue> {
|
|
604
610
|
type: "date";
|
|
605
611
|
dateFormat?: DateFormat;
|
|
606
612
|
minDate?: DateValue;
|
|
607
613
|
maxDate?: DateValue;
|
|
614
|
+
/** Values carry a time component; stored as full ISO UTC datetimes. */
|
|
615
|
+
includeTime?: boolean;
|
|
616
|
+
/** Values are ranges stored as { start, end } objects. */
|
|
617
|
+
endDate?: boolean;
|
|
618
|
+
/** Display format for the time component. Defaults to "24h". */
|
|
619
|
+
timeFormat?: TimeFormat;
|
|
608
620
|
}
|
|
609
621
|
interface Phone {
|
|
610
622
|
countryCode: CountryIso3;
|
|
@@ -963,4 +975,4 @@ declare function isAttributeSortable(attr: {
|
|
|
963
975
|
type: AttributeType;
|
|
964
976
|
}): boolean;
|
|
965
977
|
|
|
966
|
-
export { type
|
|
978
|
+
export { type ComputedAttributeState as $, type Attribute as A, type AutofillConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type TimeFormat as E, type FileAttribute as F, type Option as G, type FormulaReturnType as H, type BilateralConfig as I, type RelationTarget as J, type RollupFunction as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type UserReferenceType as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type MigrationDefinition as V, AUTOFILL_ELIGIBLE_TYPES as W, type AttributeGroup as X, type AutofillEligibleType as Y, type BaseAttribute as Z, type BuiltInTransform as _, type RichtextAttribute as a, type ComputedFieldKind as a0, type ComputedFormulaBinaryNode as a1, type ComputedFormulaBinaryOperator as a2, type ComputedFormulaCallNode as a3, type ComputedFormulaLiteralNode as a4, ComputedFormulaParseError as a5, type ComputedFormulaPathNode as a6, type ComputedStateStatus as a7, type CreateDocument as a8, type CreateDocumentLink as a9, type RichTextAttribute as aA, SYSTEM_FIELD_NAMES as aB, type SlotStatus as aC, type StatusGroup as aD, type SystemFieldName as aE, type UpdateDocument as aF, type UpdateDocumentSlot as aG, hasOptions as aH, inferInverseCardinality as aI, isAttributeSortable as aJ, isBilateralRelation as aK, isUniversalRelation as aL, parseComputedFormula as aM, resolvePropertyDefinitions as aN, type CreateDocumentSlot as aa, DEFAULT_DOCUMENT_SLOT as ab, type DateFormat as ac, type DateValue as ad, type Document as ae, type DocumentKind as af, type DocumentLayoutVariant as ag, type DocumentListOptions as ah, type DocumentSlot as ai, type DocumentWithSlots as aj, type DocumentWithSubCount as ak, type FolderPreset as al, MAX_PRESET_DEPTH as am, type NumberUnit as an, type ObjectAttribute as ao, type ObjectRecord as ap, type OptionPropertyAttribute as aq, type PresetNode as ar, type PropertyAttribute as as, type PropertyType as at, RELATION_TARGET_ANY as au, RESERVED_ATTRIBUTE_NAMES as av, RESERVED_OBJECT_NAMES as aw, type RecordDocuments as ax, type ReservedAttributeName as ay, type ReservedObjectName 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 DateRangeValue as u, type DocumentAttribute as v, type Phone as w, type Currency as x, type DocumentSlotConfig as y, type PropertySchema as z };
|
|
@@ -600,11 +600,23 @@ interface CheckboxAttribute extends BaseAttribute<boolean> {
|
|
|
600
600
|
}
|
|
601
601
|
type DateFormat = "short" | "long" | "full" | "relative";
|
|
602
602
|
type DateValue = string | "today";
|
|
603
|
-
|
|
603
|
+
type TimeFormat = "12h" | "24h";
|
|
604
|
+
/** Stored value of a date attribute configured with `.endDate()`. */
|
|
605
|
+
interface DateRangeValue {
|
|
606
|
+
start: string;
|
|
607
|
+
end: string | null;
|
|
608
|
+
}
|
|
609
|
+
interface DateAttribute extends BaseAttribute<string | DateRangeValue> {
|
|
604
610
|
type: "date";
|
|
605
611
|
dateFormat?: DateFormat;
|
|
606
612
|
minDate?: DateValue;
|
|
607
613
|
maxDate?: DateValue;
|
|
614
|
+
/** Values carry a time component; stored as full ISO UTC datetimes. */
|
|
615
|
+
includeTime?: boolean;
|
|
616
|
+
/** Values are ranges stored as { start, end } objects. */
|
|
617
|
+
endDate?: boolean;
|
|
618
|
+
/** Display format for the time component. Defaults to "24h". */
|
|
619
|
+
timeFormat?: TimeFormat;
|
|
608
620
|
}
|
|
609
621
|
interface Phone {
|
|
610
622
|
countryCode: CountryIso3;
|
|
@@ -963,4 +975,4 @@ declare function isAttributeSortable(attr: {
|
|
|
963
975
|
type: AttributeType;
|
|
964
976
|
}): boolean;
|
|
965
977
|
|
|
966
|
-
export { type
|
|
978
|
+
export { type ComputedAttributeState as $, type Attribute as A, type AutofillConfig as B, type CurrencyAttribute as C, type DateAttribute as D, type TimeFormat as E, type FileAttribute as F, type Option as G, type FormulaReturnType as H, type BilateralConfig as I, type RelationTarget as J, type RollupFunction as K, type LocationAttribute as L, type MultiRelationAttribute as M, type NumberAttribute as N, type ObjectDefinition as O, type PhoneAttribute as P, type UserReferenceType as Q, type RelationAttribute as R, type SingleRelationAttribute as S, type TextAttribute as T, type UserAttribute as U, type MigrationDefinition as V, AUTOFILL_ELIGIBLE_TYPES as W, type AttributeGroup as X, type AutofillEligibleType as Y, type BaseAttribute as Z, type BuiltInTransform as _, type RichtextAttribute as a, type ComputedFieldKind as a0, type ComputedFormulaBinaryNode as a1, type ComputedFormulaBinaryOperator as a2, type ComputedFormulaCallNode as a3, type ComputedFormulaLiteralNode as a4, ComputedFormulaParseError as a5, type ComputedFormulaPathNode as a6, type ComputedStateStatus as a7, type CreateDocument as a8, type CreateDocumentLink as a9, type RichTextAttribute as aA, SYSTEM_FIELD_NAMES as aB, type SlotStatus as aC, type StatusGroup as aD, type SystemFieldName as aE, type UpdateDocument as aF, type UpdateDocumentSlot as aG, hasOptions as aH, inferInverseCardinality as aI, isAttributeSortable as aJ, isBilateralRelation as aK, isUniversalRelation as aL, parseComputedFormula as aM, resolvePropertyDefinitions as aN, type CreateDocumentSlot as aa, DEFAULT_DOCUMENT_SLOT as ab, type DateFormat as ac, type DateValue as ad, type Document as ae, type DocumentKind as af, type DocumentLayoutVariant as ag, type DocumentListOptions as ah, type DocumentSlot as ai, type DocumentWithSlots as aj, type DocumentWithSubCount as ak, type FolderPreset as al, MAX_PRESET_DEPTH as am, type NumberUnit as an, type ObjectAttribute as ao, type ObjectRecord as ap, type OptionPropertyAttribute as aq, type PresetNode as ar, type PropertyAttribute as as, type PropertyType as at, RELATION_TARGET_ANY as au, RESERVED_ATTRIBUTE_NAMES as av, RESERVED_OBJECT_NAMES as aw, type RecordDocuments as ax, type ReservedAttributeName as ay, type ReservedObjectName 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 DateRangeValue as u, type DocumentAttribute as v, type Phone as w, type Currency as x, type DocumentSlotConfig as y, type PropertySchema as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk5WATIVCA_js = require('./chunk-5WATIVCA.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkSI34M4IC_js = require('./chunk-SI34M4IC.js');
|
|
5
5
|
var chunkYIP5FJ5H_js = require('./chunk-YIP5FJ5H.js');
|
|
6
6
|
var chunkSGSGREPG_js = require('./chunk-SGSGREPG.js');
|
|
7
7
|
var chunkEW5XR2X3_js = require('./chunk-EW5XR2X3.js');
|
|
@@ -44,7 +44,7 @@ function createAttributeValidator(attr, messages = chunkYKWSHBT5_js.DEFAULT_VALI
|
|
|
44
44
|
case "checkbox":
|
|
45
45
|
return chunk5WATIVCA_js.createCheckboxValidator(attr, messages);
|
|
46
46
|
case "date":
|
|
47
|
-
return
|
|
47
|
+
return chunkSI34M4IC_js.createDateValidator(attr, messages);
|
|
48
48
|
case "phone":
|
|
49
49
|
return chunkEBGRZUIH_js.createPhoneValidator(attr, messages);
|
|
50
50
|
case "currency":
|
|
@@ -211,13 +211,21 @@ var SchemaErrorCode = {
|
|
|
211
211
|
DOCUMENT_STORAGE_FAILED: "DOCUMENT_STORAGE_FAILED",
|
|
212
212
|
DOCUMENT_SIZE_EXCEEDED: "DOCUMENT_SIZE_EXCEEDED",
|
|
213
213
|
DOCUMENT_OCR_FAILED: "DOCUMENT_OCR_FAILED",
|
|
214
|
+
// Documents — agent placement guards (record/drive targeting from tools)
|
|
215
|
+
DOCUMENT_RECORD_NOT_FOUND: "DOCUMENT_RECORD_NOT_FOUND",
|
|
216
|
+
DOCUMENT_RECORD_OBJECT_MISMATCH: "DOCUMENT_RECORD_OBJECT_MISMATCH",
|
|
217
|
+
DOCUMENT_FOLDER_SERVICE_UNAVAILABLE: "DOCUMENT_FOLDER_SERVICE_UNAVAILABLE",
|
|
218
|
+
DOCUMENT_FOLDER_PATH_NOT_FOUND: "DOCUMENT_FOLDER_PATH_NOT_FOUND",
|
|
214
219
|
// Email image proxy — token/fetch failures surfaced through the proxy route
|
|
215
220
|
EMAIL_IMAGE_PROXY_INVALID_TOKEN: "EMAIL_IMAGE_PROXY_INVALID_TOKEN",
|
|
216
221
|
EMAIL_IMAGE_PROXY_EXPIRED_TOKEN: "EMAIL_IMAGE_PROXY_EXPIRED_TOKEN",
|
|
217
222
|
EMAIL_IMAGE_PROXY_TOO_LARGE: "EMAIL_IMAGE_PROXY_TOO_LARGE",
|
|
218
223
|
EMAIL_IMAGE_PROXY_UNSUPPORTED_CONTENT_TYPE: "EMAIL_IMAGE_PROXY_UNSUPPORTED_CONTENT_TYPE",
|
|
219
224
|
EMAIL_IMAGE_PROXY_UNSAFE_URL: "EMAIL_IMAGE_PROXY_UNSAFE_URL",
|
|
220
|
-
EMAIL_IMAGE_PROXY_UPSTREAM_FAILED: "EMAIL_IMAGE_PROXY_UPSTREAM_FAILED"
|
|
225
|
+
EMAIL_IMAGE_PROXY_UPSTREAM_FAILED: "EMAIL_IMAGE_PROXY_UPSTREAM_FAILED",
|
|
226
|
+
// Email provider sync — transport failures from Gmail / Microsoft Graph
|
|
227
|
+
EMAIL_PROVIDER_API_FAILED: "EMAIL_PROVIDER_API_FAILED",
|
|
228
|
+
EMAIL_BATCH_ITEM_FAILED: "EMAIL_BATCH_ITEM_FAILED"
|
|
221
229
|
};
|
|
222
230
|
var SchemaError = class extends Error {
|
|
223
231
|
constructor(message, code = SchemaErrorCode.UNKNOWN, details) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createCheckboxValidator } from './chunk-OSSGN43B.mjs';
|
|
2
|
-
import { createDateValidator } from './chunk-
|
|
2
|
+
import { createDateValidator } from './chunk-Q44QKLN4.mjs';
|
|
3
3
|
import { createNumberValidator } from './chunk-UANQJ2GH.mjs';
|
|
4
4
|
import { createTextValidator } from './chunk-NOMHDOVE.mjs';
|
|
5
5
|
import { createRichtextValidator } from './chunk-QVLQPW3O.mjs';
|
|
@@ -209,13 +209,21 @@ var SchemaErrorCode = {
|
|
|
209
209
|
DOCUMENT_STORAGE_FAILED: "DOCUMENT_STORAGE_FAILED",
|
|
210
210
|
DOCUMENT_SIZE_EXCEEDED: "DOCUMENT_SIZE_EXCEEDED",
|
|
211
211
|
DOCUMENT_OCR_FAILED: "DOCUMENT_OCR_FAILED",
|
|
212
|
+
// Documents — agent placement guards (record/drive targeting from tools)
|
|
213
|
+
DOCUMENT_RECORD_NOT_FOUND: "DOCUMENT_RECORD_NOT_FOUND",
|
|
214
|
+
DOCUMENT_RECORD_OBJECT_MISMATCH: "DOCUMENT_RECORD_OBJECT_MISMATCH",
|
|
215
|
+
DOCUMENT_FOLDER_SERVICE_UNAVAILABLE: "DOCUMENT_FOLDER_SERVICE_UNAVAILABLE",
|
|
216
|
+
DOCUMENT_FOLDER_PATH_NOT_FOUND: "DOCUMENT_FOLDER_PATH_NOT_FOUND",
|
|
212
217
|
// Email image proxy — token/fetch failures surfaced through the proxy route
|
|
213
218
|
EMAIL_IMAGE_PROXY_INVALID_TOKEN: "EMAIL_IMAGE_PROXY_INVALID_TOKEN",
|
|
214
219
|
EMAIL_IMAGE_PROXY_EXPIRED_TOKEN: "EMAIL_IMAGE_PROXY_EXPIRED_TOKEN",
|
|
215
220
|
EMAIL_IMAGE_PROXY_TOO_LARGE: "EMAIL_IMAGE_PROXY_TOO_LARGE",
|
|
216
221
|
EMAIL_IMAGE_PROXY_UNSUPPORTED_CONTENT_TYPE: "EMAIL_IMAGE_PROXY_UNSUPPORTED_CONTENT_TYPE",
|
|
217
222
|
EMAIL_IMAGE_PROXY_UNSAFE_URL: "EMAIL_IMAGE_PROXY_UNSAFE_URL",
|
|
218
|
-
EMAIL_IMAGE_PROXY_UPSTREAM_FAILED: "EMAIL_IMAGE_PROXY_UPSTREAM_FAILED"
|
|
223
|
+
EMAIL_IMAGE_PROXY_UPSTREAM_FAILED: "EMAIL_IMAGE_PROXY_UPSTREAM_FAILED",
|
|
224
|
+
// Email provider sync — transport failures from Gmail / Microsoft Graph
|
|
225
|
+
EMAIL_PROVIDER_API_FAILED: "EMAIL_PROVIDER_API_FAILED",
|
|
226
|
+
EMAIL_BATCH_ITEM_FAILED: "EMAIL_BATCH_ITEM_FAILED"
|
|
219
227
|
};
|
|
220
228
|
var SchemaError = class extends Error {
|
|
221
229
|
constructor(message, code = SchemaErrorCode.UNKNOWN, details) {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DEFAULT_VALIDATION_MESSAGES } from './chunk-HRQEZUAA.mjs';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
function resolveBound(bound) {
|
|
5
|
+
if (!bound) return null;
|
|
6
|
+
const raw = bound === "today" ? (/* @__PURE__ */ new Date()).toISOString().slice(0, 10) : bound;
|
|
7
|
+
const parsed = new Date(raw);
|
|
8
|
+
return Number.isNaN(parsed.getTime()) ? null : parsed;
|
|
9
|
+
}
|
|
10
|
+
function createDateValidator(attr, messages = DEFAULT_VALIDATION_MESSAGES) {
|
|
11
|
+
const message = messages.invalidDate(attr);
|
|
12
|
+
const min = resolveBound(attr.minDate);
|
|
13
|
+
const max = resolveBound(attr.maxDate);
|
|
14
|
+
const bound = z.any().superRefine((raw, ctx) => {
|
|
15
|
+
const coerced = new Date(raw);
|
|
16
|
+
if (Number.isNaN(coerced.getTime())) {
|
|
17
|
+
ctx.addIssue({ code: "custom", message });
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (min && coerced < min) {
|
|
21
|
+
ctx.addIssue({ code: "custom", message });
|
|
22
|
+
}
|
|
23
|
+
if (max && coerced > max) {
|
|
24
|
+
ctx.addIssue({ code: "custom", message });
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
if (!attr.endDate) return bound;
|
|
28
|
+
const range = z.object({ start: bound, end: bound.nullable() }).superRefine((value, ctx) => {
|
|
29
|
+
if (value.end === null) return;
|
|
30
|
+
const start = new Date(value.start);
|
|
31
|
+
const end = new Date(value.end);
|
|
32
|
+
const bothValid = !(Number.isNaN(start.getTime()) || Number.isNaN(end.getTime()));
|
|
33
|
+
if (bothValid && end < start) {
|
|
34
|
+
ctx.addIssue({ code: "custom", message, path: ["end"] });
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
return z.preprocess(
|
|
38
|
+
(value) => typeof value === "string" ? { start: value, end: null } : value,
|
|
39
|
+
range
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { createDateValidator };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkYKWSHBT5_js = require('./chunk-YKWSHBT5.js');
|
|
4
|
+
var zod = require('zod');
|
|
5
|
+
|
|
6
|
+
function resolveBound(bound) {
|
|
7
|
+
if (!bound) return null;
|
|
8
|
+
const raw = bound === "today" ? (/* @__PURE__ */ new Date()).toISOString().slice(0, 10) : bound;
|
|
9
|
+
const parsed = new Date(raw);
|
|
10
|
+
return Number.isNaN(parsed.getTime()) ? null : parsed;
|
|
11
|
+
}
|
|
12
|
+
function createDateValidator(attr, messages = chunkYKWSHBT5_js.DEFAULT_VALIDATION_MESSAGES) {
|
|
13
|
+
const message = messages.invalidDate(attr);
|
|
14
|
+
const min = resolveBound(attr.minDate);
|
|
15
|
+
const max = resolveBound(attr.maxDate);
|
|
16
|
+
const bound = zod.z.any().superRefine((raw, ctx) => {
|
|
17
|
+
const coerced = new Date(raw);
|
|
18
|
+
if (Number.isNaN(coerced.getTime())) {
|
|
19
|
+
ctx.addIssue({ code: "custom", message });
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (min && coerced < min) {
|
|
23
|
+
ctx.addIssue({ code: "custom", message });
|
|
24
|
+
}
|
|
25
|
+
if (max && coerced > max) {
|
|
26
|
+
ctx.addIssue({ code: "custom", message });
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
if (!attr.endDate) return bound;
|
|
30
|
+
const range = zod.z.object({ start: bound, end: bound.nullable() }).superRefine((value, ctx) => {
|
|
31
|
+
if (value.end === null) return;
|
|
32
|
+
const start = new Date(value.start);
|
|
33
|
+
const end = new Date(value.end);
|
|
34
|
+
const bothValid = !(Number.isNaN(start.getTime()) || Number.isNaN(end.getTime()));
|
|
35
|
+
if (bothValid && end < start) {
|
|
36
|
+
ctx.addIssue({ code: "custom", message, path: ["end"] });
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return zod.z.preprocess(
|
|
40
|
+
(value) => typeof value === "string" ? { start: value, end: null } : value,
|
|
41
|
+
range
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports.createDateValidator = createDateValidator;
|
|
@@ -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-B4847Nul.js';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-C8nztuFF.js';
|
|
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-BpMes5H_.mjs';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-CyxVuV_d.mjs';
|
|
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,
|
|
2
|
-
export {
|
|
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, D as DateAttribute, u as DateRangeValue, v as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, w as Phone, x as Currency, U as UserAttribute, y as DocumentSlotConfig, z as PropertySchema, B as AutofillConfig, g as CheckboxAttribute, C as CurrencyAttribute, E as TimeFormat, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, G as Option, L as LocationAttribute, F as FileAttribute, H as FormulaReturnType, R as RelationAttribute, I as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, J as RelationTarget, a as RichtextAttribute, K as RollupFunction, Q as UserReferenceType, V as MigrationDefinition, O as ObjectDefinition } from './attributes-BpMes5H_.mjs';
|
|
2
|
+
export { W as AUTOFILL_ELIGIBLE_TYPES, X as AttributeGroup, Y as AutofillEligibleType, Z as BaseAttribute, _ as BuiltInTransform, $ as ComputedAttributeState, a0 as ComputedFieldKind, a1 as ComputedFormulaBinaryNode, a2 as ComputedFormulaBinaryOperator, a3 as ComputedFormulaCallNode, a4 as ComputedFormulaLiteralNode, a5 as ComputedFormulaParseError, a6 as ComputedFormulaPathNode, a7 as ComputedStateStatus, a8 as CreateDocument, a9 as CreateDocumentLink, aa as CreateDocumentSlot, ab as DEFAULT_DOCUMENT_SLOT, ac as DateFormat, ad as DateValue, ae as Document, af as DocumentKind, ag as DocumentLayoutVariant, ah as DocumentListOptions, ai as DocumentSlot, aj as DocumentWithSlots, ak as DocumentWithSubCount, al as FolderPreset, am as MAX_PRESET_DEPTH, an as NumberUnit, ao as ObjectAttribute, ap as ObjectRecord, aq as OptionPropertyAttribute, ar as PresetNode, as as PropertyAttribute, at as PropertyType, au as RELATION_TARGET_ANY, av as RESERVED_ATTRIBUTE_NAMES, aw as RESERVED_OBJECT_NAMES, ax as RecordDocuments, ay as ReservedAttributeName, az as ReservedObjectName, aA as RichTextAttribute, aB as SYSTEM_FIELD_NAMES, aC as SlotStatus, aD as StatusGroup, aE as SystemFieldName, aF as UpdateDocument, aG as UpdateDocumentSlot, aH as hasOptions, aI as inferInverseCardinality, aJ as isAttributeSortable, aK as isBilateralRelation, aL as isUniversalRelation, aM as parseComputedFormula, aN as resolvePropertyDefinitions } from './attributes-BpMes5H_.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-CyxVuV_d.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-ow7sORSi.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];
|
|
@@ -2739,12 +2739,18 @@ declare const SchemaErrorCode: {
|
|
|
2739
2739
|
readonly DOCUMENT_STORAGE_FAILED: "DOCUMENT_STORAGE_FAILED";
|
|
2740
2740
|
readonly DOCUMENT_SIZE_EXCEEDED: "DOCUMENT_SIZE_EXCEEDED";
|
|
2741
2741
|
readonly DOCUMENT_OCR_FAILED: "DOCUMENT_OCR_FAILED";
|
|
2742
|
+
readonly DOCUMENT_RECORD_NOT_FOUND: "DOCUMENT_RECORD_NOT_FOUND";
|
|
2743
|
+
readonly DOCUMENT_RECORD_OBJECT_MISMATCH: "DOCUMENT_RECORD_OBJECT_MISMATCH";
|
|
2744
|
+
readonly DOCUMENT_FOLDER_SERVICE_UNAVAILABLE: "DOCUMENT_FOLDER_SERVICE_UNAVAILABLE";
|
|
2745
|
+
readonly DOCUMENT_FOLDER_PATH_NOT_FOUND: "DOCUMENT_FOLDER_PATH_NOT_FOUND";
|
|
2742
2746
|
readonly EMAIL_IMAGE_PROXY_INVALID_TOKEN: "EMAIL_IMAGE_PROXY_INVALID_TOKEN";
|
|
2743
2747
|
readonly EMAIL_IMAGE_PROXY_EXPIRED_TOKEN: "EMAIL_IMAGE_PROXY_EXPIRED_TOKEN";
|
|
2744
2748
|
readonly EMAIL_IMAGE_PROXY_TOO_LARGE: "EMAIL_IMAGE_PROXY_TOO_LARGE";
|
|
2745
2749
|
readonly EMAIL_IMAGE_PROXY_UNSUPPORTED_CONTENT_TYPE: "EMAIL_IMAGE_PROXY_UNSUPPORTED_CONTENT_TYPE";
|
|
2746
2750
|
readonly EMAIL_IMAGE_PROXY_UNSAFE_URL: "EMAIL_IMAGE_PROXY_UNSAFE_URL";
|
|
2747
2751
|
readonly EMAIL_IMAGE_PROXY_UPSTREAM_FAILED: "EMAIL_IMAGE_PROXY_UPSTREAM_FAILED";
|
|
2752
|
+
readonly EMAIL_PROVIDER_API_FAILED: "EMAIL_PROVIDER_API_FAILED";
|
|
2753
|
+
readonly EMAIL_BATCH_ITEM_FAILED: "EMAIL_BATCH_ITEM_FAILED";
|
|
2748
2754
|
};
|
|
2749
2755
|
type SchemaErrorCode = (typeof SchemaErrorCode)[keyof typeof SchemaErrorCode];
|
|
2750
2756
|
/**
|
|
@@ -3267,6 +3273,8 @@ declare const FORM_FORBIDDEN_ATTRIBUTE_TYPES: readonly ["relation", "multiRelati
|
|
|
3267
3273
|
interface FormSlotFieldRef {
|
|
3268
3274
|
type: "slot";
|
|
3269
3275
|
slotId: string;
|
|
3276
|
+
/** Additional slots (same object as `slotId`) that receive the same value. */
|
|
3277
|
+
additionalSlotIds?: string[];
|
|
3270
3278
|
attribute: string;
|
|
3271
3279
|
label?: string;
|
|
3272
3280
|
tooltip?: string;
|
|
@@ -3283,6 +3291,8 @@ interface FormFreeFieldRef {
|
|
|
3283
3291
|
type FormFieldRef = FormSlotFieldRef | FormFreeFieldRef;
|
|
3284
3292
|
declare function isFormSlotFieldRef(f: FormFieldRef): f is FormSlotFieldRef;
|
|
3285
3293
|
declare function isFormFreeFieldRef(f: FormFieldRef): f is FormFreeFieldRef;
|
|
3294
|
+
/** All slot ids a slot field writes to: the primary followed by any additional slots. */
|
|
3295
|
+
declare function getSlotFieldTargets(field: FormSlotFieldRef): string[];
|
|
3286
3296
|
|
|
3287
3297
|
interface FormFieldsRow {
|
|
3288
3298
|
id: string;
|
|
@@ -3677,7 +3687,9 @@ type InferQualifiedProps<TBuilders extends readonly unknown[]> = {
|
|
|
3677
3687
|
* Uses a flat lookup table + 3 special cases for option-based attributes
|
|
3678
3688
|
* This avoids deep conditional nesting that causes TS2589 on large objects
|
|
3679
3689
|
*/
|
|
3680
|
-
type InferAttributeValue<A extends Attribute> = A extends
|
|
3690
|
+
type InferAttributeValue<A extends Attribute> = A extends DateAttribute & {
|
|
3691
|
+
endDate: true;
|
|
3692
|
+
} ? DateRangeValue : A extends DocumentAttribute & QualifiedDocumentBrand<infer TProps> ? Array<{
|
|
3681
3693
|
id: string;
|
|
3682
3694
|
props: TProps;
|
|
3683
3695
|
}> : A extends StatusAttribute ? InferStatusValue<A> : A extends SelectAttribute ? InferSelectValue<A> : A extends MultiselectAttribute ? InferMultiselectValue<A> : A["type"] extends keyof AttributeValueMap ? AttributeValueMap[A["type"]] : unknown;
|
|
@@ -4407,6 +4419,105 @@ declare function isLabelExpression(value: string): boolean;
|
|
|
4407
4419
|
*/
|
|
4408
4420
|
declare function extractAttributeNames(template: string): string[];
|
|
4409
4421
|
|
|
4422
|
+
/**
|
|
4423
|
+
* Substitute `{{ props.X }}` tokens in a relation label using client-side props.
|
|
4424
|
+
*
|
|
4425
|
+
* The backend preserves `{{ props.X }}` and `{{ props.X | pipe }}` tokens in labels
|
|
4426
|
+
* (sentinel approach). This function resolves them on the client using the props
|
|
4427
|
+
* the client already has, leveraging the existing template engine for pipe support
|
|
4428
|
+
* (prefix, suffix, wrap, UPPER, LOWER, etc.).
|
|
4429
|
+
*
|
|
4430
|
+
* Each prop value is formatted using its attribute definition via `formatAttributeValue`
|
|
4431
|
+
* (e.g., select → label, currency → "1,500 EUR", rating → "4/5") BEFORE pipe processing.
|
|
4432
|
+
*
|
|
4433
|
+
* When props are missing or empty, the tokens and surrounding punctuation are cleaned up
|
|
4434
|
+
* so the label reads naturally (e.g., "Apple ()" → "Apple").
|
|
4435
|
+
*
|
|
4436
|
+
* @param label - The label string potentially containing `{{ props.X }}` tokens
|
|
4437
|
+
* @param props - Property values keyed by property name
|
|
4438
|
+
* @param propertyDefs - Attribute definitions for the properties (used for formatting)
|
|
4439
|
+
* @returns The label with tokens substituted and cleaned up
|
|
4440
|
+
*
|
|
4441
|
+
* @example
|
|
4442
|
+
* ```typescript
|
|
4443
|
+
* applyRelationProps(
|
|
4444
|
+
* "Apple{{ props.role | prefix:' - ' }}{{ props.pct | prefix:' (' | suffix:'%)' }}",
|
|
4445
|
+
* { role: "ceo", pct: 25 },
|
|
4446
|
+
* [{ name: "role", type: "select", options: [{ value: "ceo", label: "CEO" }] },
|
|
4447
|
+
* { name: "pct", type: "number" }]
|
|
4448
|
+
* );
|
|
4449
|
+
* // → "Apple - CEO (25%)"
|
|
4450
|
+
*
|
|
4451
|
+
* applyRelationProps("Apple{{ props.role | prefix:' - ' }}", undefined, []);
|
|
4452
|
+
* // → "Apple"
|
|
4453
|
+
* ```
|
|
4454
|
+
*/
|
|
4455
|
+
declare function applyRelationProps(label: string, props: Record<string, unknown> | undefined, propertyDefs: Attribute[] | undefined): string;
|
|
4456
|
+
/**
|
|
4457
|
+
* A reference extracted from a hybrid attribute value.
|
|
4458
|
+
* Covers relation, user, document and file values in every historical shape:
|
|
4459
|
+
* plain id string, `{ id, props }` qualified object, or arrays of either.
|
|
4460
|
+
*/
|
|
4461
|
+
interface ValueRef {
|
|
4462
|
+
id: string;
|
|
4463
|
+
props?: Record<string, unknown>;
|
|
4464
|
+
}
|
|
4465
|
+
/**
|
|
4466
|
+
* Normalize any hybrid reference value into a flat list of ValueRef.
|
|
4467
|
+
* Malformed items (objects without a string `id`) are dropped.
|
|
4468
|
+
*/
|
|
4469
|
+
declare function extractValueRefs(value: unknown): ValueRef[];
|
|
4470
|
+
|
|
4471
|
+
/**
|
|
4472
|
+
* User display-name helpers shared across packages (ui, react).
|
|
4473
|
+
*/
|
|
4474
|
+
/**
|
|
4475
|
+
* Minimal user shape needed to compute a display name.
|
|
4476
|
+
* Structurally compatible with UserProfile and auth provider payloads.
|
|
4477
|
+
*/
|
|
4478
|
+
interface UserLike {
|
|
4479
|
+
firstName?: string | null;
|
|
4480
|
+
lastName?: string | null;
|
|
4481
|
+
email?: string;
|
|
4482
|
+
}
|
|
4483
|
+
/**
|
|
4484
|
+
* Get user display name from firstName and lastName, falling back to email prefix.
|
|
4485
|
+
*
|
|
4486
|
+
* @param user - User object with optional firstName, lastName, and email
|
|
4487
|
+
* @returns Display name string
|
|
4488
|
+
*
|
|
4489
|
+
* @example
|
|
4490
|
+
* getUserDisplayName({ firstName: "John", lastName: "Doe" }) // "John Doe"
|
|
4491
|
+
* getUserDisplayName({ email: "admin@example.com" }) // "admin"
|
|
4492
|
+
*/
|
|
4493
|
+
declare function getUserDisplayName(user: UserLike): string;
|
|
4494
|
+
|
|
4495
|
+
/**
|
|
4496
|
+
* Type guard for the { start, end } range shape stored on date attributes
|
|
4497
|
+
* configured with `.endDate()`.
|
|
4498
|
+
*
|
|
4499
|
+
* @param value - Any stored attribute value
|
|
4500
|
+
* @returns true when the value is an object whose `start` is a string
|
|
4501
|
+
*/
|
|
4502
|
+
declare function isDateRangeValue(value: unknown): value is DateRangeValue;
|
|
4503
|
+
/**
|
|
4504
|
+
* Read any stored date value through the lens of the attribute config.
|
|
4505
|
+
* Legacy plain strings on a range attribute normalize to { start, end: null } —
|
|
4506
|
+
* this is what makes enabling `.endDate()` migration-free.
|
|
4507
|
+
*
|
|
4508
|
+
* @param value - The raw stored value (string, range object, or garbage)
|
|
4509
|
+
* @param attr - The attribute config; only `endDate` is consulted
|
|
4510
|
+
* @returns A range object on range attributes, a plain string otherwise, null when unreadable
|
|
4511
|
+
*/
|
|
4512
|
+
declare function normalizeDateValue(value: unknown, attr: Pick<DateAttribute, "endDate">): string | DateRangeValue | null;
|
|
4513
|
+
/**
|
|
4514
|
+
* The start bound of any date value — what filters, sorts, and search index on.
|
|
4515
|
+
*
|
|
4516
|
+
* @param value - The raw stored value (string or range object)
|
|
4517
|
+
* @returns The ISO start bound, or null when the value has none (empty strings included)
|
|
4518
|
+
*/
|
|
4519
|
+
declare function dateValueStart(value: unknown): string | null;
|
|
4520
|
+
|
|
4410
4521
|
/**
|
|
4411
4522
|
* Attribute fields stored in dedicated database columns (not in config JSONB).
|
|
4412
4523
|
* Used to determine which properties are extracted into the config column during sync.
|
|
@@ -4717,10 +4828,12 @@ declare class CheckboxAttributeBuilder<TName extends string, TRequired extends b
|
|
|
4717
4828
|
optional(): CheckboxAttributeBuilder<TName, false>;
|
|
4718
4829
|
}
|
|
4719
4830
|
declare function checkbox<TName extends string>(config: TypedBuilderConfig<TName>): CheckboxAttributeBuilder<TName, false>;
|
|
4720
|
-
declare class DateAttributeBuilder<TName extends string, TRequired extends boolean = false> extends BaseAttributeBuilder<DateAttribute> {
|
|
4831
|
+
declare class DateAttributeBuilder<TName extends string, TRequired extends boolean = false, TRange extends boolean = false> extends BaseAttributeBuilder<DateAttribute> {
|
|
4721
4832
|
readonly _types: {
|
|
4722
4833
|
name: TName;
|
|
4723
|
-
attribute: DateAttribute
|
|
4834
|
+
attribute: TRange extends true ? DateAttribute & {
|
|
4835
|
+
endDate: true;
|
|
4836
|
+
} : DateAttribute;
|
|
4724
4837
|
required: TRequired;
|
|
4725
4838
|
};
|
|
4726
4839
|
/**
|
|
@@ -4728,17 +4841,33 @@ declare class DateAttributeBuilder<TName extends string, TRequired extends boole
|
|
|
4728
4841
|
* @see TextAttributeBuilder.$infer for documentation
|
|
4729
4842
|
*/
|
|
4730
4843
|
readonly $infer: {
|
|
4731
|
-
/** The runtime value type
|
|
4732
|
-
value: string | Date;
|
|
4844
|
+
/** The runtime value type: a range object when endDate() is set, else ISO string or Date */
|
|
4845
|
+
value: TRange extends true ? DateRangeValue : string | Date;
|
|
4733
4846
|
/** The full attribute definition type */
|
|
4734
4847
|
definition: DateAttribute;
|
|
4735
4848
|
};
|
|
4736
4849
|
constructor(name: TName, label: string);
|
|
4850
|
+
/**
|
|
4851
|
+
* Narrows `.defaultValue()` to a plain ISO string on non-range date attributes,
|
|
4852
|
+
* and to a `DateRangeValue` once `.endDate()` has been called.
|
|
4853
|
+
*
|
|
4854
|
+
* Note: `Date` is intentionally excluded (unlike `$infer.value`) — the default
|
|
4855
|
+
* lives in the serialized attribute definition, whose domain is
|
|
4856
|
+
* `DateAttribute["defaultValue"]` = `string | DateRangeValue`. Widening the
|
|
4857
|
+
* parameter beyond that domain breaks override compatibility with
|
|
4858
|
+
* `BaseAttributeBuilder.defaultValue` (TS2416).
|
|
4859
|
+
*/
|
|
4860
|
+
defaultValue: (value: TRange extends true ? DateRangeValue : string) => this;
|
|
4737
4861
|
format(value: DateAttribute["dateFormat"]): this;
|
|
4738
4862
|
minDate(value: DateAttribute["minDate"]): this;
|
|
4739
4863
|
maxDate(value: DateAttribute["maxDate"]): this;
|
|
4740
|
-
|
|
4741
|
-
|
|
4864
|
+
/** Values become { start, end } ranges; flips the inferred value type. */
|
|
4865
|
+
endDate(): DateAttributeBuilder<TName, TRequired, true>;
|
|
4866
|
+
/** Values carry a time component (stored as full ISO UTC datetimes). */
|
|
4867
|
+
includeTime(): this;
|
|
4868
|
+
timeFormat(value: TimeFormat): this;
|
|
4869
|
+
required(): DateAttributeBuilder<TName, true, TRange>;
|
|
4870
|
+
optional(): DateAttributeBuilder<TName, false, TRange>;
|
|
4742
4871
|
}
|
|
4743
4872
|
declare function date<TName extends string>(config: TypedBuilderConfig<TName>): DateAttributeBuilder<TName, false>;
|
|
4744
4873
|
declare class PhoneAttributeBuilder<TName extends string, TRequired extends boolean = false> extends BaseAttributeBuilder<PhoneAttribute> {
|
|
@@ -5340,7 +5469,7 @@ declare class FormRowBuilder {
|
|
|
5340
5469
|
private rowData;
|
|
5341
5470
|
private _finalized;
|
|
5342
5471
|
constructor(stepBuilder: FormStepBuilder, rowId: string, order: number);
|
|
5343
|
-
field(
|
|
5472
|
+
field(slotIdOrIds: string | string[], attribute: string, options?: {
|
|
5344
5473
|
label?: string;
|
|
5345
5474
|
required?: boolean;
|
|
5346
5475
|
tooltip?: string;
|
|
@@ -5362,7 +5491,7 @@ declare class FormStepBuilder {
|
|
|
5362
5491
|
private rowOrder;
|
|
5363
5492
|
constructor(formBuilder: FormBuilder, id: string, label: string);
|
|
5364
5493
|
description(text: string): this;
|
|
5365
|
-
field(
|
|
5494
|
+
field(slotIdOrIds: string | string[], attribute: string, options?: {
|
|
5366
5495
|
label?: string;
|
|
5367
5496
|
required?: boolean;
|
|
5368
5497
|
tooltip?: string;
|
|
@@ -7953,11 +8082,21 @@ type ConnectorScope = "actor" | "tenant";
|
|
|
7953
8082
|
interface StartConnectorAuthInput {
|
|
7954
8083
|
provider: ConnectorProviderId;
|
|
7955
8084
|
scope: ConnectorScope;
|
|
8085
|
+
/** Page the callback 302s back to. Must match a configured allowed origin; otherwise silently ignored. */
|
|
8086
|
+
returnUrl?: string;
|
|
7956
8087
|
}
|
|
7957
8088
|
/** Result of starting an OAuth flow — the URL the browser must visit. */
|
|
7958
8089
|
interface StartConnectorAuthResult {
|
|
7959
8090
|
authorizeUrl: string;
|
|
7960
8091
|
}
|
|
8092
|
+
/** Query params the OAuth callback redirect appends to the return URL. */
|
|
8093
|
+
declare const CONNECTOR_CALLBACK_PARAM: {
|
|
8094
|
+
readonly status: "connector_status";
|
|
8095
|
+
readonly error: "connector_error";
|
|
8096
|
+
readonly provider: "connector_provider";
|
|
8097
|
+
};
|
|
8098
|
+
/** Values `CONNECTOR_CALLBACK_PARAM.status` can take on the redirect. */
|
|
8099
|
+
type ConnectorCallbackStatusValue = "connected" | "error";
|
|
7961
8100
|
|
|
7962
8101
|
type EmailProvider = "gmail" | "outlook";
|
|
7963
8102
|
type EmailVisibility = "shared" | "private";
|
|
@@ -8040,4 +8179,4 @@ interface MailboxThreadDetail {
|
|
|
8040
8179
|
emails: MailboxEmail[];
|
|
8041
8180
|
}
|
|
8042
8181
|
|
|
8043
|
-
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, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, 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 ConnectionStatus, type ConnectionStatusId, type ConnectionView, type ConnectorProviderId, type ConnectorScope, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type 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 EmailAttachmentMeta, type EmailDirection, type EmailParticipantRef, type EmailParticipantRole, type EmailProvider, type EmailVisibility, type EmailsTab, EmailsTabConfig, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtendedFilterRule, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, type Field, type FieldGroup, type FieldHistoryEntry, type File, 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, type MailboxAccount, type MailboxCursor, type MailboxEmail, type MailboxListResponse, type MailboxQuery, type MailboxReadState, type MailboxThread, type MailboxThreadDetail, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, type Notification, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxState, type NotificationKind, type NotificationListParams, type NotificationListResult, type NotificationPriority, type NotificationRecipient, type NotificationRecipientPatchLiveEvent, type NotificationSensitivity, type NotificationSubject, type NotificationType, type NotificationV1Type, type NotificationWithRecipient, type NotificationWorkState, NumberAttribute, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type Permission, type PermissionScope, Phone, PhoneAttribute, type PhoneFilterValue, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, type QueryState, type ReasoningPartData, type RecordAgentEvent, type RecordDeletedLiveEvent, type RecordFieldPatch, type RecordMetadata, RecordNotFoundError, type RecordPatchLiveEvent, type RecordReference, RecordReferencedError, type RegexGenerationInput, RelationAttribute, type RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, type RelationSource, RelationTarget, type RelativeDateValue, RepositoryError, type RepositoryOperation, type ResolutionContext, type ResolvedFlag, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, type RichtextTab, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, SchemaOperation, SearchBackendError, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type StandardSchemaIssue, type StandardSchemaResult, type StartConnectorAuthInput, type StartConnectorAuthResult, type StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, type StreamEventMessageUpdated, type 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 };
|
|
8182
|
+
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, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, 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, CONNECTOR_CALLBACK_PARAM, 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 ConnectionStatus, type ConnectionStatusId, type ConnectionView, type ConnectorCallbackStatusValue, type ConnectorProviderId, type ConnectorScope, type ConversationRenamedLiveEvent, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type 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, DateRangeValue, 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 EmailAttachmentMeta, type EmailDirection, type EmailParticipantRef, type EmailParticipantRole, type EmailProvider, type EmailVisibility, type EmailsTab, EmailsTabConfig, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtendedFilterRule, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, type Field, type FieldGroup, type FieldHistoryEntry, type File, 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, type MailboxAccount, type MailboxCursor, type MailboxEmail, type MailboxListResponse, type MailboxQuery, type MailboxReadState, type MailboxThread, type MailboxThreadDetail, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_COMPLETED, NOTIFICATION_TYPE_AGENT_SESSION_FAILED, NOTIFICATION_TYPE_AGENT_SESSION_TIMEOUT, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_VALUE_OPERATORS, type NoValueOperator, NoopGeocodingAdapter, NotFoundError, NotImplementedError, type Notification, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxState, type NotificationKind, type NotificationListParams, type NotificationListResult, type NotificationPriority, type NotificationRecipient, type NotificationRecipientPatchLiveEvent, type NotificationSensitivity, type NotificationSubject, type NotificationType, type NotificationV1Type, type NotificationWithRecipient, type NotificationWorkState, NumberAttribute, OPERATORS_BY_TYPE, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type Permission, type PermissionScope, Phone, PhoneAttribute, type PhoneFilterValue, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, type QueryState, type ReasoningPartData, type RecordAgentEvent, type RecordDeletedLiveEvent, type RecordFieldPatch, type RecordMetadata, RecordNotFoundError, type RecordPatchLiveEvent, type RecordReference, RecordReferencedError, type RegexGenerationInput, RelationAttribute, type RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, type RelationSource, RelationTarget, type RelativeDateValue, RepositoryError, type RepositoryOperation, type ResolutionContext, type ResolvedFlag, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, type RichtextTab, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, SchemaOperation, SearchBackendError, type SearchOptions, SelectAttribute, type SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, type SortDirection, type SortRule, type StandardSchemaIssue, type StandardSchemaResult, type StartConnectorAuthInput, type StartConnectorAuthResult, type StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, type StreamEventMessageUpdated, type StreamEventUsage, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, type Tab, TabBuilder, type TabType, type TableSource, type TableTab, TableTabConfig, TenantId, type TenantSettings, TextAttribute, type TextPartData, type ThinkingPartData, TimeFormat, Timestamps, type ToolPartData, type ToolPartErrorCode, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserLike, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, type ValueRef, type ViewConfig, type ViewDefinition, type ViewOverlay, type ViewProjectionStaleLiveEvent, type ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertLiveStreamCursor, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, compareLiveStreamCursors, compileComputedFormula, compileRollupAttribute, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, date, dateValueStart, detailView, document, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, extractAttributeNames, extractValueRefs, file, flagRegistry, form, formRegistry, formatAttributeValue, formatComputedResult, formatLocationValue, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRollupFilterOperators, getSlotFieldTargets, getSystemAttributeI18nKey, getSystemAttributeList, getUserDisplayName, group, inferRollupReturnType, isAttributeFilterable, isAttributeGroupable, isAttributeInUseError, isAttributeKanbanGroupable, isAttributeSearchable, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDetailView, isDocumentAttribute, isDynamicValue, isEmptyObject, isFieldGroup, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isListView, isLiveErrorPayload, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLiveGapPayload, isLiveReplayCompletePayload, isLiveStreamCursor, isNoValueOperator, isNotEmpty, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isRelationGroup, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, liveChannelKey, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeDateValue, 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 };
|