@stndrds/schema 1.0.0-alpha.229 → 1.0.0-alpha.231

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.
Files changed (59) hide show
  1. package/dist/{attributes-DZIol94T.d.ts → attributes-B4847Nul.d.ts} +14 -2
  2. package/dist/{attributes-C6pCxr5P.d.mts → attributes-BpMes5H_.d.mts} +14 -2
  3. package/dist/{chunk-MUGKKCY3.js → chunk-6SPNZSXS.js} +11 -3
  4. package/dist/{chunk-6CTUPVHH.mjs → chunk-FRWPIJDK.mjs} +10 -2
  5. package/dist/chunk-Q44QKLN4.mjs +43 -0
  6. package/dist/chunk-SI34M4IC.js +45 -0
  7. package/dist/{helpers-B3EPtA8t.d.ts → helpers-DsJff5r-.d.ts} +2 -2
  8. package/dist/{helpers-Ca3PIt9O.d.mts → helpers-ow7sORSi.d.mts} +2 -2
  9. package/dist/index.d.mts +147 -12
  10. package/dist/index.d.ts +147 -12
  11. package/dist/index.js +168 -71
  12. package/dist/index.mjs +95 -5
  13. package/dist/{types-CBV2_ikK.d.ts → types-C8nztuFF.d.ts} +1 -1
  14. package/dist/{types-DjGoodOL.d.mts → types-CyxVuV_d.d.mts} +1 -1
  15. package/dist/validation/all.d.mts +3 -3
  16. package/dist/validation/all.d.ts +3 -3
  17. package/dist/validation/all.js +9 -9
  18. package/dist/validation/all.mjs +2 -2
  19. package/dist/validation/complex/currency.d.mts +2 -2
  20. package/dist/validation/complex/currency.d.ts +2 -2
  21. package/dist/validation/complex/file.d.mts +2 -2
  22. package/dist/validation/complex/file.d.ts +2 -2
  23. package/dist/validation/complex/location.d.mts +2 -2
  24. package/dist/validation/complex/location.d.ts +2 -2
  25. package/dist/validation/complex/phone.d.mts +2 -2
  26. package/dist/validation/complex/phone.d.ts +2 -2
  27. package/dist/validation/complex/relation.d.mts +2 -2
  28. package/dist/validation/complex/relation.d.ts +2 -2
  29. package/dist/validation/complex/richtext.d.mts +2 -2
  30. package/dist/validation/complex/richtext.d.ts +2 -2
  31. package/dist/validation/complex/select.d.mts +2 -2
  32. package/dist/validation/complex/select.d.ts +2 -2
  33. package/dist/validation/complex/user.d.mts +2 -2
  34. package/dist/validation/complex/user.d.ts +2 -2
  35. package/dist/validation/computed/formula.d.mts +2 -2
  36. package/dist/validation/computed/formula.d.ts +2 -2
  37. package/dist/validation/computed/rollup.d.mts +2 -2
  38. package/dist/validation/computed/rollup.d.ts +2 -2
  39. package/dist/validation/config/index.d.mts +1 -1
  40. package/dist/validation/config/index.d.ts +1 -1
  41. package/dist/validation/core/index.d.mts +3 -3
  42. package/dist/validation/core/index.d.ts +3 -3
  43. package/dist/validation/object/index.d.mts +3 -3
  44. package/dist/validation/object/index.d.ts +3 -3
  45. package/dist/validation/object/index.js +15 -15
  46. package/dist/validation/object/index.mjs +2 -2
  47. package/dist/validation/primitives/checkbox.d.mts +2 -2
  48. package/dist/validation/primitives/checkbox.d.ts +2 -2
  49. package/dist/validation/primitives/date.d.mts +16 -3
  50. package/dist/validation/primitives/date.d.ts +16 -3
  51. package/dist/validation/primitives/date.js +2 -2
  52. package/dist/validation/primitives/date.mjs +1 -1
  53. package/dist/validation/primitives/number.d.mts +2 -2
  54. package/dist/validation/primitives/number.d.ts +2 -2
  55. package/dist/validation/primitives/text.d.mts +2 -2
  56. package/dist/validation/primitives/text.d.ts +2 -2
  57. package/package.json +2 -2
  58. package/dist/chunk-6I2R22CX.mjs +0 -8
  59. package/dist/chunk-O44XVGHE.js +0 -10
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- import { i as ComputedValueType, j as ComputedReturnType, k as AttributeType, l as ComputedOptionsSource, m as ComputedDependency, n as ComputedPlan, f as RollupAttribute, o as ComputedFormulaAstNode, A as Attribute, p as DocumentLayout, h as CompletionStatus, q as Timestamps, r as SchemaOperation, s as LocationGranularity, t as Location, e as FormulaAttribute, u as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, v as Phone, w as Currency, D as DateAttribute, U as UserAttribute, x as DocumentSlotConfig, y as PropertySchema, z as AutofillConfig, g as CheckboxAttribute, C as CurrencyAttribute, T as TextAttribute, N as NumberAttribute, P as PhoneAttribute, B as Option, L as LocationAttribute, F as FileAttribute, E as FormulaReturnType, R as RelationAttribute, G as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, H as RelationTarget, a as RichtextAttribute, I as RollupFunction, J as UserReferenceType, K as MigrationDefinition, O as ObjectDefinition } from './attributes-DZIol94T.js';
2
- export { Q as AUTOFILL_ELIGIBLE_TYPES, V as AttributeGroup, W as AutofillEligibleType, X as BaseAttribute, Y as BuiltInTransform, Z as ComputedAttributeState, _ as ComputedFieldKind, $ as ComputedFormulaBinaryNode, a0 as ComputedFormulaBinaryOperator, a1 as ComputedFormulaCallNode, a2 as ComputedFormulaLiteralNode, a3 as ComputedFormulaParseError, a4 as ComputedFormulaPathNode, a5 as ComputedStateStatus, a6 as CreateDocument, a7 as CreateDocumentLink, a8 as CreateDocumentSlot, a9 as DEFAULT_DOCUMENT_SLOT, aa as DateFormat, ab as DateValue, ac as Document, ad as DocumentKind, ae as DocumentLayoutVariant, af as DocumentListOptions, ag as DocumentSlot, ah as DocumentWithSlots, ai as DocumentWithSubCount, aj as FolderPreset, ak as MAX_PRESET_DEPTH, al as NumberUnit, am as ObjectAttribute, an as ObjectRecord, ao as OptionPropertyAttribute, ap as PresetNode, aq as PropertyAttribute, ar as PropertyType, as as RELATION_TARGET_ANY, at as RESERVED_ATTRIBUTE_NAMES, au as RESERVED_OBJECT_NAMES, av as RecordDocuments, aw as ReservedAttributeName, ax as ReservedObjectName, ay as RichTextAttribute, az as SYSTEM_FIELD_NAMES, aA as SlotStatus, aB as StatusGroup, aC as SystemFieldName, aD as UpdateDocument, aE as UpdateDocumentSlot, aF as hasOptions, aG as inferInverseCardinality, aH as isAttributeSortable, aI as isBilateralRelation, aJ as isUniversalRelation, aK as parseComputedFormula, aL as resolvePropertyDefinitions } from './attributes-DZIol94T.js';
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-B4847Nul.js';
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-B4847Nul.js';
3
3
  import { IconName, MimeType, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
4
4
  import { Uuid, TenantId } from './utils.js';
5
5
  export { UserId, asTenantId, asUserId, deepEqual, generateId, indexBy } from './utils.js';
6
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-CBV2_ikK.js';
9
+ export { V as ValidationMessages } from './types-C8nztuFF.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, r as rejectUnknownAttributesOrThrow, v as validateDraft, b as validateDraftOrThrow, d as validateObject, e as validateObjectOrThrow } from './helpers-B3EPtA8t.js';
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-DsJff5r-.js';
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
  /**
@@ -3677,7 +3683,9 @@ type InferQualifiedProps<TBuilders extends readonly unknown[]> = {
3677
3683
  * Uses a flat lookup table + 3 special cases for option-based attributes
3678
3684
  * This avoids deep conditional nesting that causes TS2589 on large objects
3679
3685
  */
3680
- type InferAttributeValue<A extends Attribute> = A extends DocumentAttribute & QualifiedDocumentBrand<infer TProps> ? Array<{
3686
+ type InferAttributeValue<A extends Attribute> = A extends DateAttribute & {
3687
+ endDate: true;
3688
+ } ? DateRangeValue : A extends DocumentAttribute & QualifiedDocumentBrand<infer TProps> ? Array<{
3681
3689
  id: string;
3682
3690
  props: TProps;
3683
3691
  }> : 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 +4415,105 @@ declare function isLabelExpression(value: string): boolean;
4407
4415
  */
4408
4416
  declare function extractAttributeNames(template: string): string[];
4409
4417
 
4418
+ /**
4419
+ * Substitute `{{ props.X }}` tokens in a relation label using client-side props.
4420
+ *
4421
+ * The backend preserves `{{ props.X }}` and `{{ props.X | pipe }}` tokens in labels
4422
+ * (sentinel approach). This function resolves them on the client using the props
4423
+ * the client already has, leveraging the existing template engine for pipe support
4424
+ * (prefix, suffix, wrap, UPPER, LOWER, etc.).
4425
+ *
4426
+ * Each prop value is formatted using its attribute definition via `formatAttributeValue`
4427
+ * (e.g., select → label, currency → "1,500 EUR", rating → "4/5") BEFORE pipe processing.
4428
+ *
4429
+ * When props are missing or empty, the tokens and surrounding punctuation are cleaned up
4430
+ * so the label reads naturally (e.g., "Apple ()" → "Apple").
4431
+ *
4432
+ * @param label - The label string potentially containing `{{ props.X }}` tokens
4433
+ * @param props - Property values keyed by property name
4434
+ * @param propertyDefs - Attribute definitions for the properties (used for formatting)
4435
+ * @returns The label with tokens substituted and cleaned up
4436
+ *
4437
+ * @example
4438
+ * ```typescript
4439
+ * applyRelationProps(
4440
+ * "Apple{{ props.role | prefix:' - ' }}{{ props.pct | prefix:' (' | suffix:'%)' }}",
4441
+ * { role: "ceo", pct: 25 },
4442
+ * [{ name: "role", type: "select", options: [{ value: "ceo", label: "CEO" }] },
4443
+ * { name: "pct", type: "number" }]
4444
+ * );
4445
+ * // → "Apple - CEO (25%)"
4446
+ *
4447
+ * applyRelationProps("Apple{{ props.role | prefix:' - ' }}", undefined, []);
4448
+ * // → "Apple"
4449
+ * ```
4450
+ */
4451
+ declare function applyRelationProps(label: string, props: Record<string, unknown> | undefined, propertyDefs: Attribute[] | undefined): string;
4452
+ /**
4453
+ * A reference extracted from a hybrid attribute value.
4454
+ * Covers relation, user, document and file values in every historical shape:
4455
+ * plain id string, `{ id, props }` qualified object, or arrays of either.
4456
+ */
4457
+ interface ValueRef {
4458
+ id: string;
4459
+ props?: Record<string, unknown>;
4460
+ }
4461
+ /**
4462
+ * Normalize any hybrid reference value into a flat list of ValueRef.
4463
+ * Malformed items (objects without a string `id`) are dropped.
4464
+ */
4465
+ declare function extractValueRefs(value: unknown): ValueRef[];
4466
+
4467
+ /**
4468
+ * User display-name helpers shared across packages (ui, react).
4469
+ */
4470
+ /**
4471
+ * Minimal user shape needed to compute a display name.
4472
+ * Structurally compatible with UserProfile and auth provider payloads.
4473
+ */
4474
+ interface UserLike {
4475
+ firstName?: string | null;
4476
+ lastName?: string | null;
4477
+ email?: string;
4478
+ }
4479
+ /**
4480
+ * Get user display name from firstName and lastName, falling back to email prefix.
4481
+ *
4482
+ * @param user - User object with optional firstName, lastName, and email
4483
+ * @returns Display name string
4484
+ *
4485
+ * @example
4486
+ * getUserDisplayName({ firstName: "John", lastName: "Doe" }) // "John Doe"
4487
+ * getUserDisplayName({ email: "admin@example.com" }) // "admin"
4488
+ */
4489
+ declare function getUserDisplayName(user: UserLike): string;
4490
+
4491
+ /**
4492
+ * Type guard for the { start, end } range shape stored on date attributes
4493
+ * configured with `.endDate()`.
4494
+ *
4495
+ * @param value - Any stored attribute value
4496
+ * @returns true when the value is an object whose `start` is a string
4497
+ */
4498
+ declare function isDateRangeValue(value: unknown): value is DateRangeValue;
4499
+ /**
4500
+ * Read any stored date value through the lens of the attribute config.
4501
+ * Legacy plain strings on a range attribute normalize to { start, end: null } —
4502
+ * this is what makes enabling `.endDate()` migration-free.
4503
+ *
4504
+ * @param value - The raw stored value (string, range object, or garbage)
4505
+ * @param attr - The attribute config; only `endDate` is consulted
4506
+ * @returns A range object on range attributes, a plain string otherwise, null when unreadable
4507
+ */
4508
+ declare function normalizeDateValue(value: unknown, attr: Pick<DateAttribute, "endDate">): string | DateRangeValue | null;
4509
+ /**
4510
+ * The start bound of any date value — what filters, sorts, and search index on.
4511
+ *
4512
+ * @param value - The raw stored value (string or range object)
4513
+ * @returns The ISO start bound, or null when the value has none (empty strings included)
4514
+ */
4515
+ declare function dateValueStart(value: unknown): string | null;
4516
+
4410
4517
  /**
4411
4518
  * Attribute fields stored in dedicated database columns (not in config JSONB).
4412
4519
  * Used to determine which properties are extracted into the config column during sync.
@@ -4717,10 +4824,12 @@ declare class CheckboxAttributeBuilder<TName extends string, TRequired extends b
4717
4824
  optional(): CheckboxAttributeBuilder<TName, false>;
4718
4825
  }
4719
4826
  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> {
4827
+ declare class DateAttributeBuilder<TName extends string, TRequired extends boolean = false, TRange extends boolean = false> extends BaseAttributeBuilder<DateAttribute> {
4721
4828
  readonly _types: {
4722
4829
  name: TName;
4723
- attribute: DateAttribute;
4830
+ attribute: TRange extends true ? DateAttribute & {
4831
+ endDate: true;
4832
+ } : DateAttribute;
4724
4833
  required: TRequired;
4725
4834
  };
4726
4835
  /**
@@ -4728,17 +4837,33 @@ declare class DateAttributeBuilder<TName extends string, TRequired extends boole
4728
4837
  * @see TextAttributeBuilder.$infer for documentation
4729
4838
  */
4730
4839
  readonly $infer: {
4731
- /** The runtime value type for this attribute (ISO string or Date) */
4732
- value: string | Date;
4840
+ /** The runtime value type: a range object when endDate() is set, else ISO string or Date */
4841
+ value: TRange extends true ? DateRangeValue : string | Date;
4733
4842
  /** The full attribute definition type */
4734
4843
  definition: DateAttribute;
4735
4844
  };
4736
4845
  constructor(name: TName, label: string);
4846
+ /**
4847
+ * Narrows `.defaultValue()` to a plain ISO string on non-range date attributes,
4848
+ * and to a `DateRangeValue` once `.endDate()` has been called.
4849
+ *
4850
+ * Note: `Date` is intentionally excluded (unlike `$infer.value`) — the default
4851
+ * lives in the serialized attribute definition, whose domain is
4852
+ * `DateAttribute["defaultValue"]` = `string | DateRangeValue`. Widening the
4853
+ * parameter beyond that domain breaks override compatibility with
4854
+ * `BaseAttributeBuilder.defaultValue` (TS2416).
4855
+ */
4856
+ defaultValue: (value: TRange extends true ? DateRangeValue : string) => this;
4737
4857
  format(value: DateAttribute["dateFormat"]): this;
4738
4858
  minDate(value: DateAttribute["minDate"]): this;
4739
4859
  maxDate(value: DateAttribute["maxDate"]): this;
4740
- required(): DateAttributeBuilder<TName, true>;
4741
- optional(): DateAttributeBuilder<TName, false>;
4860
+ /** Values become { start, end } ranges; flips the inferred value type. */
4861
+ endDate(): DateAttributeBuilder<TName, TRequired, true>;
4862
+ /** Values carry a time component (stored as full ISO UTC datetimes). */
4863
+ includeTime(): this;
4864
+ timeFormat(value: TimeFormat): this;
4865
+ required(): DateAttributeBuilder<TName, true, TRange>;
4866
+ optional(): DateAttributeBuilder<TName, false, TRange>;
4742
4867
  }
4743
4868
  declare function date<TName extends string>(config: TypedBuilderConfig<TName>): DateAttributeBuilder<TName, false>;
4744
4869
  declare class PhoneAttributeBuilder<TName extends string, TRequired extends boolean = false> extends BaseAttributeBuilder<PhoneAttribute> {
@@ -7953,11 +8078,21 @@ type ConnectorScope = "actor" | "tenant";
7953
8078
  interface StartConnectorAuthInput {
7954
8079
  provider: ConnectorProviderId;
7955
8080
  scope: ConnectorScope;
8081
+ /** Page the callback 302s back to. Must match a configured allowed origin; otherwise silently ignored. */
8082
+ returnUrl?: string;
7956
8083
  }
7957
8084
  /** Result of starting an OAuth flow — the URL the browser must visit. */
7958
8085
  interface StartConnectorAuthResult {
7959
8086
  authorizeUrl: string;
7960
8087
  }
8088
+ /** Query params the OAuth callback redirect appends to the return URL. */
8089
+ declare const CONNECTOR_CALLBACK_PARAM: {
8090
+ readonly status: "connector_status";
8091
+ readonly error: "connector_error";
8092
+ readonly provider: "connector_provider";
8093
+ };
8094
+ /** Values `CONNECTOR_CALLBACK_PARAM.status` can take on the redirect. */
8095
+ type ConnectorCallbackStatusValue = "connected" | "error";
7961
8096
 
7962
8097
  type EmailProvider = "gmail" | "outlook";
7963
8098
  type EmailVisibility = "shared" | "private";
@@ -8040,4 +8175,4 @@ interface MailboxThreadDetail {
8040
8175
  emails: MailboxEmail[];
8041
8176
  }
8042
8177
 
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 };
8178
+ 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, 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 };