@stndrds/schema 1.0.0-alpha.292 → 1.0.0-alpha.293
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/{all-FGIrc6mI.d.ts → all-CDJSpI46.d.ts} +105 -6
- package/dist/{all-DaucFjyz.d.mts → all-Cru_CaSY.d.mts} +105 -6
- package/dist/{chunk-5JMQNH2A.js → chunk-5N7OSHVX.js} +4 -4
- package/dist/{chunk-KLDZHAGX.mjs → chunk-APRL56F4.mjs} +1 -1
- package/dist/{chunk-RDYTVHNN.js → chunk-C32UUQ6D.js} +4 -4
- package/dist/{chunk-UW3BOSB6.mjs → chunk-GRUSTQK3.mjs} +1 -1
- package/dist/{chunk-D4A6FL67.js → chunk-OASIPLEB.js} +96 -59
- package/dist/{chunk-ZHB4VBCX.js → chunk-P4VCAPJT.js} +3 -3
- package/dist/{chunk-QYJ532XI.mjs → chunk-ULM2BA5A.mjs} +60 -27
- package/dist/{chunk-JSQCTLV5.mjs → chunk-VGGGLTYJ.mjs} +1 -1
- package/dist/{chunk-3YCZ5H3H.js → chunk-Y3UPKP2B.js} +4 -0
- package/dist/{chunk-7WEOBXXA.mjs → chunk-Z5OPSBMQ.mjs} +4 -0
- package/dist/exceptions.d.mts +3 -0
- package/dist/exceptions.d.ts +3 -0
- package/dist/exceptions.js +39 -39
- package/dist/exceptions.mjs +1 -1
- package/dist/{index-Eh1tYq3i.d.mts → index-BdVnHL3F.d.mts} +27 -7
- package/dist/{index-0VG9u1XW.d.ts → index-CFhPHQaI.d.ts} +27 -7
- package/dist/index.d.mts +877 -429
- package/dist/index.d.ts +877 -429
- package/dist/index.js +654 -334
- package/dist/index.mjs +332 -61
- package/dist/utils.js +8 -8
- package/dist/utils.mjs +2 -2
- package/dist/validation/all.d.mts +2 -2
- package/dist/validation/all.d.ts +2 -2
- package/dist/validation/all.js +29 -29
- package/dist/validation/all.mjs +4 -4
- package/dist/validation/config/index.d.mts +1 -1
- package/dist/validation/config/index.d.ts +1 -1
- package/dist/validation/config/index.js +12 -12
- package/dist/validation/config/index.mjs +2 -2
- package/dist/validation/object/index.js +14 -14
- package/dist/validation/object/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SortRule, F as FilterState, V as ViewType, a as ViewConfig, C as ConfigOverrides, b as FilterOperator, D as DetailViewConfig, c as DetailViewDefinition, d as SidePanelConfig, e as Field, A as AttributeGroupField, f as FieldGroup, G as Group, T as TableTab, g as CreateMode, E as EmailsTab, M as MeetingsTab, h as Tab,
|
|
2
|
-
export {
|
|
1
|
+
import { S as SortRule, F as FilterState, V as ViewType, a as ViewConfig, C as ConfigOverrides, b as FilterOperator, L as ListViewTab, D as DetailViewConfig, c as DetailViewDefinition, d as SidePanelConfig, e as Field, A as AttributeGroupField, f as FieldGroup, G as Group, T as TableTab, g as CreateMode, E as EmailsTab, M as MeetingsTab, h as Tab, i as ListViewConfig, j as ListViewDefinition, k as ListViewLayout, l as ViewDefinition, m as FilterValue, n as FilterRule, o as DynamicValue, R as RelativeDateValue } from './index-BdVnHL3F.mjs';
|
|
2
|
+
export { p as ActivityTab, q as AddAttributeInput, r as AdvancedFilterState, s as CreateCustomObjectInput, t as CreateViewInput, u as CurrencyFilterValue, v as CustomTab, w as DayMonthValue, x as DocumentsTab, y as EdgeQuantifier, z as ExtendedFilterRule, B as FilterCombinator, H as FilterGroup, I as FormDensity, J as FormTab, K as FormsTab, N as InverseSource, O as ListViewPresentationOverrides, P as ListViewPresentationTabOverrides, Q as NO_VALUE_OPERATORS, U as NoValueOperator, W as OPERATORS_BY_TYPE, X as PhoneFilterValue, Y as QueryState, Z as RelationOption, _ as RelationOptionsResponse, $ as RelationSource, a0 as RichtextTab, a1 as SidePanelPane, a2 as SortDirection, a3 as TabType, a4 as TableSource, a5 as UpdateObjectInput, a6 as UpdateViewInput, a7 as ViewOverlay, a8 as getRollupFilterOperators, a9 as isDetailView, aa as isFieldGroup, ab as isListView, ac as isNoValueOperator, ad as multiselectOptionWriteSchema, ae as parseAttributeConfig, af as parseAttributeConfigForCreate, ag as parseAttributeConfigForUpdate, ah as selectOptionWriteSchema, ai as statusGroupSchema, aj as statusOptionWriteSchema } from './index-BdVnHL3F.mjs';
|
|
3
3
|
import { h as ComputedValueType, i as ComputedReturnType, f as AttributeType, j as ComputedOptionsSource, k as ComputedDependency, l as ComputedPlan, e as RollupAttribute, m as ComputedFormulaAstNode, A as Attribute, n as LocationGranularity, o as Location, F as FormulaAttribute, D as DateAttribute, p as DateRangeValue, q as DocumentAttribute, d as StatusAttribute, c as SelectAttribute, b as MultiselectAttribute, r as Phone, s as Currency, U as UserAttribute, T as TextAttribute, t as PropertySchema, g as CheckboxAttribute, C as CurrencyAttribute, u as TimeFormat, v as PropertyAttribute, w as FormulaReturnType, L as LocationAttribute, O as Option, N as NumberAttribute, P as PhoneAttribute, R as RelationAttribute, B as BilateralConfig, S as SingleRelationAttribute, M as MultiRelationAttribute, x as RelationTarget, a as RichtextAttribute, y as RollupFunction, z as UserReferenceType } from './attributes-CWPLbp7c.mjs';
|
|
4
4
|
export { E as ATTRIBUTE_TYPES, G as AttributeGroup, H as BaseAttribute, I as ComputedFieldKind, J as ComputedFormulaBinaryNode, K as ComputedFormulaBinaryOperator, Q as ComputedFormulaCallNode, V as ComputedFormulaLiteralNode, W as ComputedFormulaParseError, X as ComputedFormulaPathNode, Y as DateFormat, Z as DateValue, _ as NumberUnit, $ as OptionPropertyAttribute, a0 as PropertyType, a1 as RELATION_TARGET_ANY, a2 as RichTextAttribute, a3 as StatusGroup, a4 as hasOptions, a5 as inferInverseCardinality, a6 as isAttributeSortable, a7 as isBilateralRelation, a8 as isUniversalRelation, a9 as parseComputedFormula, aa as resolvePropertyDefinitions } from './attributes-CWPLbp7c.mjs';
|
|
5
5
|
import { IconName, MimeType, ColorId, CountryIso3, CurrencyCode } from '@stndrds/constants';
|
|
@@ -16,7 +16,7 @@ export { StandardSchemaV1 } from '@standard-schema/spec';
|
|
|
16
16
|
import z, { z as z$1 } from 'zod';
|
|
17
17
|
export { V as ValidationMessages } from './types-CVYiFc69.mjs';
|
|
18
18
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './validation/core/index.mjs';
|
|
19
|
-
export { L as LIST_TAB_KANBAN_KEYS, a as LIST_TAB_TABLE_KEYS, S as SCHEMA_LIMITS, c as colorIdSchema, b as columnsSchema, d as detailTabDraftSchema, e as detailTabSchema, f as detailViewConfigSchema, g as
|
|
19
|
+
export { L as LIST_TAB_KANBAN_KEYS, a as LIST_TAB_TABLE_KEYS, S as SCHEMA_LIMITS, c as colorIdSchema, b as columnsSchema, d as detailTabDraftSchema, e as detailTabSchema, f as detailViewConfigSchema, g as displayAttributesSchema, h as fieldSchema, i as fieldShape, j as fieldSlotSchema, k as filterGroupSchema, l as filterStateSchema, m as groupWriteSchema, n as iconNameSchema, o as inverseSourceSchema, p as listViewConfigSchema, q as listViewTabSchema, r as parseViewConfig, s as relationSourceSchema, t as sortsSchema, u as tableSourceSchema, v as viewConfigByTypeSchema, w as viewTypeSchema } from './all-Cru_CaSY.mjs';
|
|
20
20
|
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from './helpers-Dul_r9rJ.mjs';
|
|
21
21
|
export { createCheckboxValidator } from './validation/primitives/checkbox.mjs';
|
|
22
22
|
export { createDateValidator } from './validation/primitives/date.mjs';
|
|
@@ -376,6 +376,8 @@ interface GlobalSearchOptions {
|
|
|
376
376
|
* Limit results to specific object names
|
|
377
377
|
*/
|
|
378
378
|
objectNames?: string[];
|
|
379
|
+
/** Narrow visibility before ranking; never widens the viewer's readable scope. */
|
|
380
|
+
visibility?: ResourceVisibility;
|
|
379
381
|
/** See {@link SearchOptions.semanticRatio}. */
|
|
380
382
|
semanticRatio?: number;
|
|
381
383
|
/** Soft-delete visibility mode. Default: "liveOnly" */
|
|
@@ -1485,10 +1487,33 @@ declare const TODO_PLAN_STATUSES: readonly ["active", "completed", "abandoned"];
|
|
|
1485
1487
|
type AgentTodoPlanStatus = (typeof TODO_PLAN_STATUSES)[number];
|
|
1486
1488
|
type TriggerEventType = "record.created" | "record.updated" | "record.deleted" | "form.submitted" | "agent.completed" | "webhook" | "schedule";
|
|
1487
1489
|
type AgentTriggerType = Extract<TriggerEventType, "record.created" | "record.updated" | "record.deleted">;
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
+
declare const PROVIDER_NAMES: readonly ["openai", "anthropic", "google", "spacexai", "deepseek", "moonshotai", "alibaba", "mistral", "minimax", "meta", "zai"];
|
|
1491
|
+
type ProviderName = (typeof PROVIDER_NAMES)[number];
|
|
1492
|
+
declare const INFERENCE_SPEEDS: readonly ["standard", "fast"];
|
|
1493
|
+
type InferenceSpeed = (typeof INFERENCE_SPEEDS)[number];
|
|
1494
|
+
declare const INFERENCE_REASONING_OPTIONS: readonly ["none", "minimal", "low", "medium", "high", "xhigh"];
|
|
1495
|
+
type InferenceReasoning = (typeof INFERENCE_REASONING_OPTIONS)[number];
|
|
1496
|
+
/** The only model identity clients may persist. Capabilities always come from the catalogue. */
|
|
1497
|
+
interface ModelReference {
|
|
1490
1498
|
provider: ProviderName;
|
|
1491
1499
|
model: string;
|
|
1500
|
+
}
|
|
1501
|
+
/** Provider-neutral defaults. An absent dimension inherits the next source in the precedence chain. */
|
|
1502
|
+
interface AgentInferencePreferences {
|
|
1503
|
+
speed?: InferenceSpeed;
|
|
1504
|
+
reasoning?: InferenceReasoning;
|
|
1505
|
+
}
|
|
1506
|
+
/** Durable per-conversation dimensions layered over an agent's inference defaults. */
|
|
1507
|
+
interface AgentSessionInferenceOverrides extends AgentInferencePreferences {
|
|
1508
|
+
model?: ModelReference;
|
|
1509
|
+
}
|
|
1510
|
+
/** Strict session patch: omitted inherits, explicit null clears that dimension. */
|
|
1511
|
+
type SessionInferencePatch = {
|
|
1512
|
+
model?: ModelReference | null;
|
|
1513
|
+
speed?: InferenceSpeed | null;
|
|
1514
|
+
reasoning?: InferenceReasoning | null;
|
|
1515
|
+
};
|
|
1516
|
+
interface ModelDefinition extends ModelReference {
|
|
1492
1517
|
maxTokens?: number;
|
|
1493
1518
|
/**
|
|
1494
1519
|
* Total context window in tokens (e.g. 200000 for Claude Sonnet).
|
|
@@ -1507,6 +1532,7 @@ interface AgentExecutionConfig {
|
|
|
1507
1532
|
retryPolicy: RetryPolicy;
|
|
1508
1533
|
timeoutMs: number;
|
|
1509
1534
|
costLimitUsd?: number;
|
|
1535
|
+
inference?: AgentInferencePreferences;
|
|
1510
1536
|
}
|
|
1511
1537
|
/**
|
|
1512
1538
|
* Shared base config used by AgentDefinition, inline runs, and AgentSession.
|
|
@@ -1514,6 +1540,7 @@ interface AgentExecutionConfig {
|
|
|
1514
1540
|
interface AgentConfig {
|
|
1515
1541
|
systemPrompt: string;
|
|
1516
1542
|
model: ModelDefinition;
|
|
1543
|
+
inference?: AgentInferencePreferences;
|
|
1517
1544
|
tools?: string[];
|
|
1518
1545
|
/**
|
|
1519
1546
|
* MCP servers whose tools mount into this agent's toolchain. Ids opt in
|
|
@@ -1777,6 +1804,8 @@ interface AgentSession {
|
|
|
1777
1804
|
workModeVersion: number;
|
|
1778
1805
|
/** On-demand tool groups already loaded for this session; stored truth, never inferred from history. */
|
|
1779
1806
|
loadedToolsets: string[];
|
|
1807
|
+
/** Durable per-conversation model preferences. Always a concrete object on reads. */
|
|
1808
|
+
inferenceOverrides: AgentSessionInferenceOverrides;
|
|
1780
1809
|
definitionId?: string;
|
|
1781
1810
|
inlineConfig?: AgentConfig;
|
|
1782
1811
|
parentSessionId?: string;
|
|
@@ -2047,6 +2076,31 @@ interface AgentDashboard {
|
|
|
2047
2076
|
* Message role in a conversation
|
|
2048
2077
|
*/
|
|
2049
2078
|
type AIMessageRole = "user" | "assistant";
|
|
2079
|
+
interface AIModelPriceTier {
|
|
2080
|
+
readonly cost: string;
|
|
2081
|
+
readonly min: number;
|
|
2082
|
+
readonly max?: number;
|
|
2083
|
+
}
|
|
2084
|
+
interface AIModelPriceDimension {
|
|
2085
|
+
readonly perToken?: string;
|
|
2086
|
+
readonly tiers?: readonly AIModelPriceTier[];
|
|
2087
|
+
}
|
|
2088
|
+
interface AIModelPricing {
|
|
2089
|
+
readonly input: AIModelPriceDimension;
|
|
2090
|
+
readonly output: AIModelPriceDimension;
|
|
2091
|
+
readonly cacheRead?: AIModelPriceDimension;
|
|
2092
|
+
readonly cacheWrite?: AIModelPriceDimension;
|
|
2093
|
+
readonly fast?: Omit<AIModelPricing, "fast">;
|
|
2094
|
+
}
|
|
2095
|
+
type AIModelProfileLabel = "Very economical" | "Balanced" | "Powerful" | "Very powerful";
|
|
2096
|
+
interface AIModelProfile {
|
|
2097
|
+
readonly position: number;
|
|
2098
|
+
readonly label: AIModelProfileLabel;
|
|
2099
|
+
readonly guidance: string;
|
|
2100
|
+
}
|
|
2101
|
+
type AIModelInputModality = "text" | "image" | "audio" | "video" | "pdf";
|
|
2102
|
+
/** Provider-neutral reasoning control exposed by the Gateway catalogue. */
|
|
2103
|
+
type AIModelReasoningMode = "unsupported" | "effort" | "toggle" | "budget" | "model-controlled";
|
|
2050
2104
|
/**
|
|
2051
2105
|
* An AI model available for selection by the user.
|
|
2052
2106
|
* Configured on the backend and exposed via GET /agent/models.
|
|
@@ -2062,9 +2116,31 @@ interface AIAvailableModel {
|
|
|
2062
2116
|
*/
|
|
2063
2117
|
apiModelId?: string;
|
|
2064
2118
|
/** Provider name (e.g. "anthropic", "google") */
|
|
2065
|
-
provider:
|
|
2119
|
+
provider: ProviderName;
|
|
2066
2120
|
/** Display label (e.g. "Claude 4.6 Sonnet") */
|
|
2067
2121
|
label: string;
|
|
2122
|
+
/** Short product guidance shown in model-selection detail. */
|
|
2123
|
+
readonly description?: string;
|
|
2124
|
+
/** Whether the authored product layer promotes this model. */
|
|
2125
|
+
readonly recommended?: boolean;
|
|
2126
|
+
/** Stable authored order within the recommended group. */
|
|
2127
|
+
readonly recommendationRank?: number;
|
|
2128
|
+
/** Editorial economical-to-powerful position; never treated as a benchmark. */
|
|
2129
|
+
readonly profile?: AIModelProfile;
|
|
2130
|
+
/** Canonical per-token decimal strings copied from Vercel AI Gateway. */
|
|
2131
|
+
readonly pricing?: AIModelPricing;
|
|
2132
|
+
/** Normalized provider-neutral reasoning choices supported by this model. */
|
|
2133
|
+
readonly reasoningOptions?: readonly InferenceReasoning[];
|
|
2134
|
+
/** Shape of the model's normalized reasoning control. */
|
|
2135
|
+
readonly reasoningMode?: AIModelReasoningMode;
|
|
2136
|
+
/** Input modalities accepted by this exact model. */
|
|
2137
|
+
readonly inputModalities?: readonly AIModelInputModality[];
|
|
2138
|
+
/** Exact Vercel parameter names, retained for capability inspection. */
|
|
2139
|
+
readonly supportedParameters?: readonly string[];
|
|
2140
|
+
/** Explicit Gateway tool-call capability. */
|
|
2141
|
+
readonly supportsTools?: boolean;
|
|
2142
|
+
/** Explicit Gateway structured-output capability. */
|
|
2143
|
+
readonly supportsStructuredOutput?: boolean;
|
|
2068
2144
|
/** Whether this is the default model */
|
|
2069
2145
|
isDefault?: boolean;
|
|
2070
2146
|
/**
|
|
@@ -2630,116 +2706,106 @@ interface AgentUIDataTypes {
|
|
|
2630
2706
|
"session-state": SessionStateChunkData;
|
|
2631
2707
|
}
|
|
2632
2708
|
|
|
2633
|
-
/**
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
}
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
type
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
readOnly: boolean;
|
|
2665
|
-
directEdit: boolean;
|
|
2666
|
-
required: AttributeRequiredCapability;
|
|
2667
|
-
defaultValue: AttributeDefaultValueCapability;
|
|
2668
|
-
placeholder: boolean;
|
|
2669
|
-
maxItems: boolean;
|
|
2670
|
-
};
|
|
2671
|
-
type AttributePresentationCapabilities = {
|
|
2672
|
-
formField: boolean;
|
|
2673
|
-
tableCell: boolean;
|
|
2674
|
-
defaultColumn: boolean;
|
|
2675
|
-
compactDisplay: boolean;
|
|
2676
|
-
popoverEditor: boolean;
|
|
2677
|
-
placeholder: boolean;
|
|
2678
|
-
warningWhenDeprecated: boolean;
|
|
2679
|
-
};
|
|
2680
|
-
type AttributeQueryCapabilities = {
|
|
2681
|
-
filterable: boolean;
|
|
2682
|
-
searchable: boolean;
|
|
2683
|
-
sortable: boolean;
|
|
2684
|
-
groupable: boolean;
|
|
2685
|
-
kanbanGroupable: boolean;
|
|
2686
|
-
operators: readonly FilterOperator[];
|
|
2687
|
-
};
|
|
2688
|
-
type AttributeAgentCapabilities = {
|
|
2689
|
-
readable: boolean;
|
|
2690
|
-
writable: boolean;
|
|
2691
|
-
compactReadable: boolean;
|
|
2692
|
-
contentReadable: boolean;
|
|
2693
|
-
requiresDedicatedTool: boolean;
|
|
2694
|
-
};
|
|
2695
|
-
type AttributeExchangeCapabilities = {
|
|
2696
|
-
importable: boolean;
|
|
2697
|
-
exportable: boolean;
|
|
2698
|
-
schemaExportable: boolean;
|
|
2699
|
-
metadataExportable: boolean;
|
|
2709
|
+
/** The browser and relay use mono signed 16-bit little-endian PCM. */
|
|
2710
|
+
declare const DICTATION_SAMPLE_RATE: 16000;
|
|
2711
|
+
declare const DICTATION_FRAME_BYTES = 3200;
|
|
2712
|
+
declare const DICTATION_MAX_FRAME_BYTES = 6400;
|
|
2713
|
+
declare const DICTATION_MAX_BUFFER_BYTES = 16000;
|
|
2714
|
+
declare const DICTATION_MAX_TRANSCRIPT_BYTES = 65536;
|
|
2715
|
+
declare const DICTATION_TICKET_TTL_MS = 15000;
|
|
2716
|
+
declare const DICTATION_PREPARATION_TIMEOUT_MS = 10000;
|
|
2717
|
+
declare const DICTATION_FINALIZATION_TIMEOUT_MS = 5000;
|
|
2718
|
+
declare const DICTATION_MODEL_ID = "google/gemini-3.5-transcribe-live";
|
|
2719
|
+
interface DictationCapabilities {
|
|
2720
|
+
enabled: boolean;
|
|
2721
|
+
sampleRate: typeof DICTATION_SAMPLE_RATE;
|
|
2722
|
+
maxDurationMs: number;
|
|
2723
|
+
}
|
|
2724
|
+
interface DictationAdmission {
|
|
2725
|
+
sessionId: string;
|
|
2726
|
+
ticket: string;
|
|
2727
|
+
expiresAt: string;
|
|
2728
|
+
maxDurationMs: number;
|
|
2729
|
+
sampleRate: typeof DICTATION_SAMPLE_RATE;
|
|
2730
|
+
}
|
|
2731
|
+
/** Sent as text frames; audio is sent separately as binary PCM frames. */
|
|
2732
|
+
type DictationControl = {
|
|
2733
|
+
type: "authenticate";
|
|
2734
|
+
sessionId: string;
|
|
2735
|
+
ticket: string;
|
|
2736
|
+
} | {
|
|
2737
|
+
type: "stop";
|
|
2738
|
+
} | {
|
|
2739
|
+
type: "cancel";
|
|
2700
2740
|
};
|
|
2701
|
-
type
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2741
|
+
type DictationErrorReason = "quota" | "unavailable" | "invalid_audio" | "connection";
|
|
2742
|
+
/** Transcript updates replace only the session-owned draft insertion. */
|
|
2743
|
+
type DictationServerEvent = {
|
|
2744
|
+
type: "ready";
|
|
2745
|
+
sessionId: string;
|
|
2746
|
+
maxDurationMs: number;
|
|
2747
|
+
} | {
|
|
2748
|
+
type: "transcript";
|
|
2749
|
+
text: string;
|
|
2750
|
+
} | {
|
|
2751
|
+
type: "stopping";
|
|
2752
|
+
reason: "limit";
|
|
2753
|
+
} | {
|
|
2754
|
+
type: "done";
|
|
2755
|
+
text: string;
|
|
2756
|
+
} | {
|
|
2757
|
+
type: "error";
|
|
2758
|
+
code: string;
|
|
2759
|
+
reason: DictationErrorReason;
|
|
2760
|
+
resetAt?: string;
|
|
2709
2761
|
};
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
*/
|
|
2732
|
-
interface
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2762
|
+
/** Current UTC month, for the authenticated account across this deployment. */
|
|
2763
|
+
interface DictationUsageSummary {
|
|
2764
|
+
audioDurationMs: number;
|
|
2765
|
+
/** Null when any included usage has an unknown count; zero for empty usage. */
|
|
2766
|
+
inputTokens: number | null;
|
|
2767
|
+
outputTokens: number | null;
|
|
2768
|
+
estimatedCostUsd: string;
|
|
2769
|
+
reportedCostUsd: string | null;
|
|
2770
|
+
reservedCostUsd: string;
|
|
2771
|
+
dayRemainingMs: number;
|
|
2772
|
+
monthRemainingMs: number;
|
|
2773
|
+
dayResetAt: string;
|
|
2774
|
+
monthResetAt: string;
|
|
2775
|
+
}
|
|
2776
|
+
interface DictationIdentity {
|
|
2777
|
+
/** Verified authentication subject, stable across tenant memberships. */
|
|
2778
|
+
accountId: string;
|
|
2779
|
+
/** Authenticated member identifier; may be a tenant-specific profile ID. */
|
|
2780
|
+
userId: string;
|
|
2781
|
+
tenantId: string;
|
|
2782
|
+
}
|
|
2783
|
+
/** Server configuration. Never accepted as client session parameters. */
|
|
2784
|
+
interface DictationLimits {
|
|
2785
|
+
maxDurationMs: number;
|
|
2786
|
+
dailyDurationMs: number;
|
|
2787
|
+
monthlyDurationMs: number;
|
|
2788
|
+
tenantMonthlyBudgetMicrousd: number;
|
|
2789
|
+
globalMonthlyBudgetMicrousd: number;
|
|
2790
|
+
estimatedMicrousdPerSecond: number;
|
|
2791
|
+
reservationMultiplier: number;
|
|
2792
|
+
}
|
|
2793
|
+
declare const DEFAULT_DICTATION_LIMITS: Readonly<DictationLimits>;
|
|
2794
|
+
/** Native consumption units remain independent from execution duration and money. */
|
|
2795
|
+
interface AIUsageMeasurementsV1 {
|
|
2796
|
+
schemaVersion: 1;
|
|
2797
|
+
operation: "transcription" | "text_generation" | "video_generation";
|
|
2798
|
+
measurements: {
|
|
2799
|
+
inputAudioDurationMs?: number;
|
|
2800
|
+
outputVideoDurationMs?: number;
|
|
2801
|
+
outputCount?: number;
|
|
2802
|
+
inputTokens?: number | null;
|
|
2803
|
+
outputTokens?: number | null;
|
|
2804
|
+
};
|
|
2805
|
+
execution: {
|
|
2806
|
+
elapsedMs: number;
|
|
2807
|
+
};
|
|
2808
|
+
source: "server" | "provider" | "mixed";
|
|
2743
2809
|
}
|
|
2744
2810
|
|
|
2745
2811
|
type DocumentKind = "file" | "folder";
|
|
@@ -2844,213 +2910,45 @@ interface DocumentRecordOwnerPage {
|
|
|
2844
2910
|
}
|
|
2845
2911
|
|
|
2846
2912
|
/**
|
|
2847
|
-
*
|
|
2913
|
+
* Storage provider type
|
|
2914
|
+
*/
|
|
2915
|
+
type StorageProvider = "s3" | "gcs" | "azure" | "local" | "cloudflare-r2" | string;
|
|
2916
|
+
/**
|
|
2917
|
+
* File - Represents uploaded file metadata and storage info
|
|
2848
2918
|
*
|
|
2849
|
-
*
|
|
2850
|
-
*
|
|
2919
|
+
* ARCHITECTURE:
|
|
2920
|
+
* - Fixed table (no custom attributes)
|
|
2921
|
+
* - Manages file storage metadata
|
|
2922
|
+
* - uploadedBy links to user_profiles table
|
|
2923
|
+
* - Supports soft delete via deletedAt
|
|
2851
2924
|
*
|
|
2852
2925
|
* @example
|
|
2853
2926
|
* ```typescript
|
|
2854
|
-
*
|
|
2855
|
-
*
|
|
2856
|
-
*
|
|
2857
|
-
*
|
|
2858
|
-
*
|
|
2859
|
-
*
|
|
2927
|
+
* const file: File = {
|
|
2928
|
+
* id: "file-123",
|
|
2929
|
+
* tenantId: "tenant-456",
|
|
2930
|
+
* name: "contract-2025.pdf",
|
|
2931
|
+
* originalName: "Contract Acme Corp 2025.pdf",
|
|
2932
|
+
* mimeType: "application/pdf",
|
|
2933
|
+
* size: 2458624,
|
|
2934
|
+
* storageProvider: "s3",
|
|
2935
|
+
* storagePath: "tenants/456/files/2025/11/contract-2025.pdf",
|
|
2936
|
+
* storageBucket: "my-app-files",
|
|
2937
|
+
* url: "https://cdn.example.com/files/file-123",
|
|
2938
|
+
* uploadedBy: "profile-789",
|
|
2939
|
+
* folderPath: "/contracts/2025",
|
|
2940
|
+
* createdAt: new Date(),
|
|
2941
|
+
* updatedAt: new Date(),
|
|
2942
|
+
* };
|
|
2860
2943
|
* ```
|
|
2861
2944
|
*/
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
* Feature flag levels (resolution priority: user > tenant > global).
|
|
2866
|
-
*
|
|
2867
|
-
* - `global`: Applies to all tenants and users
|
|
2868
|
-
* - `tenant`: Applies to a specific tenant
|
|
2869
|
-
* - `user`: Applies to a specific user within a tenant
|
|
2870
|
-
*/
|
|
2871
|
-
type FlagLevel = "global" | "tenant" | "user";
|
|
2872
|
-
/**
|
|
2873
|
-
* Flag value types supported by the system.
|
|
2874
|
-
*/
|
|
2875
|
-
type FlagValueType = "boolean" | "string" | "number" | "json";
|
|
2876
|
-
/**
|
|
2877
|
-
* Definition of a feature flag.
|
|
2878
|
-
* Created using the flag builders (booleanFlag, stringFlag, etc.)
|
|
2879
|
-
*/
|
|
2880
|
-
interface FeatureFlagDefinition<T = unknown> {
|
|
2881
|
-
/** Unique identifier for the flag (kebab-case) */
|
|
2882
|
-
name: string;
|
|
2883
|
-
/** Human-readable label */
|
|
2884
|
-
label: string;
|
|
2885
|
-
/** Optional description */
|
|
2886
|
-
description?: string;
|
|
2887
|
-
/** Type of the flag value */
|
|
2888
|
-
valueType: FlagValueType;
|
|
2889
|
-
/** Default value when no override exists */
|
|
2890
|
-
defaultValue: T;
|
|
2891
|
-
/** Levels at which this flag can be overridden */
|
|
2892
|
-
allowedLevels: FlagLevel[];
|
|
2893
|
-
/** Grouping category for UI */
|
|
2894
|
-
category?: string;
|
|
2895
|
-
/** System flag - cannot be modified via API */
|
|
2896
|
-
system?: boolean;
|
|
2897
|
-
}
|
|
2898
|
-
/**
|
|
2899
|
-
* Stored override for a feature flag.
|
|
2900
|
-
* Represents a row in the feature_flag_overrides table.
|
|
2901
|
-
*/
|
|
2902
|
-
interface FlagOverride<T = unknown> {
|
|
2903
|
-
/** Name of the flag being overridden */
|
|
2904
|
-
flagName: string;
|
|
2905
|
-
/** Level of the override */
|
|
2906
|
-
level: FlagLevel;
|
|
2907
|
-
/** Target ID (tenantId for tenant-level, userId for user-level) */
|
|
2908
|
-
targetId?: string;
|
|
2909
|
-
/** Override value */
|
|
2910
|
-
value: T;
|
|
2911
|
-
/** Optional expiration date */
|
|
2912
|
-
expiresAt?: Date;
|
|
2913
|
-
/** Who created this override */
|
|
2914
|
-
createdBy?: string;
|
|
2915
|
-
/** When the override was created */
|
|
2916
|
-
createdAt: Date;
|
|
2917
|
-
/** When the override was last updated */
|
|
2918
|
-
updatedAt: Date;
|
|
2919
|
-
}
|
|
2920
|
-
/**
|
|
2921
|
-
* Resolved flag value with source information.
|
|
2922
|
-
* Result of flag resolution including where the value came from.
|
|
2923
|
-
*/
|
|
2924
|
-
interface ResolvedFlag<T = unknown> {
|
|
2925
|
-
/** Flag name */
|
|
2926
|
-
name: string;
|
|
2927
|
-
/** Resolved value */
|
|
2928
|
-
value: T;
|
|
2929
|
-
/** Where the value came from */
|
|
2930
|
-
source: FlagLevel | "default";
|
|
2931
|
-
/** ID of the source (tenantId or userId) if not default */
|
|
2932
|
-
sourceId?: string;
|
|
2933
|
-
}
|
|
2934
|
-
/**
|
|
2935
|
-
* Feature gate configuration for conditional feature visibility.
|
|
2936
|
-
*/
|
|
2937
|
-
interface FeatureGate {
|
|
2938
|
-
/** Name of the flag to check */
|
|
2939
|
-
flag: string;
|
|
2945
|
+
interface File extends Timestamps {
|
|
2946
|
+
id: Uuid;
|
|
2947
|
+
tenantId: Uuid;
|
|
2940
2948
|
/**
|
|
2941
|
-
*
|
|
2942
|
-
* For boolean flags, defaults to `true`.
|
|
2943
|
-
* For other types, compares with strict equality.
|
|
2949
|
+
* File name (sanitized for storage)
|
|
2944
2950
|
*/
|
|
2945
|
-
|
|
2946
|
-
/**
|
|
2947
|
-
* Behavior when the gate fails.
|
|
2948
|
-
* - `hide`: The gated feature is completely hidden (default)
|
|
2949
|
-
* - `show`: The gated feature is shown regardless (no gating)
|
|
2950
|
-
* - `disable`: The gated feature is visible but read-only
|
|
2951
|
-
*/
|
|
2952
|
-
fallback?: "hide" | "show" | "disable";
|
|
2953
|
-
}
|
|
2954
|
-
/**
|
|
2955
|
-
* Repository interface for feature flag overrides storage.
|
|
2956
|
-
* Added to DatabaseAdapter as an optional repository.
|
|
2957
|
-
*
|
|
2958
|
-
* If not provided, only static defaults from module config are used.
|
|
2959
|
-
*/
|
|
2960
|
-
interface FeatureFlagsRepository {
|
|
2961
|
-
/**
|
|
2962
|
-
* Get all overrides matching the criteria.
|
|
2963
|
-
* Returns overrides from the database (global, tenant, or user level).
|
|
2964
|
-
*/
|
|
2965
|
-
getOverrides(options: {
|
|
2966
|
-
/** Filter by level */
|
|
2967
|
-
level?: FlagLevel;
|
|
2968
|
-
/** Filter by target ID (tenantId or userId) */
|
|
2969
|
-
targetId?: string;
|
|
2970
|
-
/** Filter by flag names (for efficient single/batch lookups) */
|
|
2971
|
-
flagNames?: string[];
|
|
2972
|
-
}): Promise<FlagOverride[]>;
|
|
2973
|
-
/**
|
|
2974
|
-
* Create or update an override.
|
|
2975
|
-
* Uses upsert semantics based on (flagName, level, targetId).
|
|
2976
|
-
*/
|
|
2977
|
-
setOverride(override: Omit<FlagOverride, "createdAt" | "updatedAt">): Promise<FlagOverride>;
|
|
2978
|
-
/**
|
|
2979
|
-
* Delete an override.
|
|
2980
|
-
*/
|
|
2981
|
-
deleteOverride(flagName: string, level: FlagLevel, targetId?: string): Promise<void>;
|
|
2982
|
-
}
|
|
2983
|
-
/**
|
|
2984
|
-
* Static flag default value for module configuration.
|
|
2985
|
-
*/
|
|
2986
|
-
interface StaticFlagDefault {
|
|
2987
|
-
/** Flag name */
|
|
2988
|
-
name: string;
|
|
2989
|
-
/** Default value */
|
|
2990
|
-
value: unknown;
|
|
2991
|
-
}
|
|
2992
|
-
/**
|
|
2993
|
-
* Feature flags configuration for SchemaModule.
|
|
2994
|
-
*/
|
|
2995
|
-
interface FeatureFlagsConfig {
|
|
2996
|
-
/**
|
|
2997
|
-
* Static default values for flags.
|
|
2998
|
-
* These are always applied and used when no database override exists.
|
|
2999
|
-
*
|
|
3000
|
-
* @example
|
|
3001
|
-
* ```typescript
|
|
3002
|
-
* featureFlags: {
|
|
3003
|
-
* defaults: [
|
|
3004
|
-
* { name: "architect-mode", value: false },
|
|
3005
|
-
* { name: "ai-chat", value: false },
|
|
3006
|
-
* { name: "tier", value: "free" },
|
|
3007
|
-
* ],
|
|
3008
|
-
* }
|
|
3009
|
-
* ```
|
|
3010
|
-
*/
|
|
3011
|
-
defaults?: StaticFlagDefault[];
|
|
3012
|
-
}
|
|
3013
|
-
|
|
3014
|
-
/**
|
|
3015
|
-
* Storage provider type
|
|
3016
|
-
*/
|
|
3017
|
-
type StorageProvider = "s3" | "gcs" | "azure" | "local" | "cloudflare-r2" | string;
|
|
3018
|
-
/**
|
|
3019
|
-
* File - Represents uploaded file metadata and storage info
|
|
3020
|
-
*
|
|
3021
|
-
* ARCHITECTURE:
|
|
3022
|
-
* - Fixed table (no custom attributes)
|
|
3023
|
-
* - Manages file storage metadata
|
|
3024
|
-
* - uploadedBy links to user_profiles table
|
|
3025
|
-
* - Supports soft delete via deletedAt
|
|
3026
|
-
*
|
|
3027
|
-
* @example
|
|
3028
|
-
* ```typescript
|
|
3029
|
-
* const file: File = {
|
|
3030
|
-
* id: "file-123",
|
|
3031
|
-
* tenantId: "tenant-456",
|
|
3032
|
-
* name: "contract-2025.pdf",
|
|
3033
|
-
* originalName: "Contract Acme Corp 2025.pdf",
|
|
3034
|
-
* mimeType: "application/pdf",
|
|
3035
|
-
* size: 2458624,
|
|
3036
|
-
* storageProvider: "s3",
|
|
3037
|
-
* storagePath: "tenants/456/files/2025/11/contract-2025.pdf",
|
|
3038
|
-
* storageBucket: "my-app-files",
|
|
3039
|
-
* url: "https://cdn.example.com/files/file-123",
|
|
3040
|
-
* uploadedBy: "profile-789",
|
|
3041
|
-
* folderPath: "/contracts/2025",
|
|
3042
|
-
* createdAt: new Date(),
|
|
3043
|
-
* updatedAt: new Date(),
|
|
3044
|
-
* };
|
|
3045
|
-
* ```
|
|
3046
|
-
*/
|
|
3047
|
-
interface File extends Timestamps {
|
|
3048
|
-
id: Uuid;
|
|
3049
|
-
tenantId: Uuid;
|
|
3050
|
-
/**
|
|
3051
|
-
* File name (sanitized for storage)
|
|
3052
|
-
*/
|
|
3053
|
-
name: string;
|
|
2951
|
+
name: string;
|
|
3054
2952
|
/**
|
|
3055
2953
|
* Original file name (as uploaded by user)
|
|
3056
2954
|
*/
|
|
@@ -3106,57 +3004,396 @@ interface File extends Timestamps {
|
|
|
3106
3004
|
/**
|
|
3107
3005
|
* OCR processing status for this file, when applicable.
|
|
3108
3006
|
*/
|
|
3109
|
-
ocrStatus?: FileOcrStatus | null;
|
|
3007
|
+
ocrStatus?: FileOcrStatus | null;
|
|
3008
|
+
/**
|
|
3009
|
+
* Extracted OCR text, when processing has completed.
|
|
3010
|
+
*/
|
|
3011
|
+
ocrText?: string | null;
|
|
3012
|
+
/**
|
|
3013
|
+
* OCR confidence score, when processing has completed.
|
|
3014
|
+
*/
|
|
3015
|
+
ocrConfidence?: number | null;
|
|
3016
|
+
/**
|
|
3017
|
+
* Timestamp of the last OCR processing attempt.
|
|
3018
|
+
*/
|
|
3019
|
+
processedAt?: Date | null;
|
|
3020
|
+
}
|
|
3021
|
+
/**
|
|
3022
|
+
* Data required to create a new file record
|
|
3023
|
+
*/
|
|
3024
|
+
/**
|
|
3025
|
+
* Data for creating a new file.
|
|
3026
|
+
* Tenant ID is automatically set from execution context.
|
|
3027
|
+
*/
|
|
3028
|
+
interface CreateFile {
|
|
3029
|
+
name: string;
|
|
3030
|
+
originalName: string;
|
|
3031
|
+
mimeType: MimeType | string;
|
|
3032
|
+
size: number;
|
|
3033
|
+
storageProvider: StorageProvider;
|
|
3034
|
+
storagePath: string;
|
|
3035
|
+
storageBucket?: string;
|
|
3036
|
+
url: string;
|
|
3037
|
+
uploadedBy?: Uuid;
|
|
3038
|
+
folderPath?: string;
|
|
3039
|
+
documentId?: Uuid | null;
|
|
3040
|
+
position?: number | null;
|
|
3041
|
+
ocrStatus?: FileOcrStatus | null;
|
|
3042
|
+
ocrText?: string | null;
|
|
3043
|
+
ocrConfidence?: number | null;
|
|
3044
|
+
processedAt?: Date | null;
|
|
3045
|
+
}
|
|
3046
|
+
/**
|
|
3047
|
+
* Data for updating an existing file record
|
|
3048
|
+
*/
|
|
3049
|
+
interface UpdateFile {
|
|
3050
|
+
name?: string;
|
|
3051
|
+
folderPath?: string;
|
|
3052
|
+
documentId?: Uuid | null;
|
|
3053
|
+
position?: number | null;
|
|
3054
|
+
ocrStatus?: FileOcrStatus | null;
|
|
3055
|
+
ocrText?: string | null;
|
|
3056
|
+
ocrConfidence?: number | null;
|
|
3057
|
+
processedAt?: Date | null;
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
declare const ARTIFACT_KINDS: readonly ["web", "presentation", "document", "spreadsheet", "image", "code", "other"];
|
|
3061
|
+
type ArtifactKind = (typeof ARTIFACT_KINDS)[number];
|
|
3062
|
+
declare const ARTIFACT_RETENTIONS: readonly ["ephemeral", "conversation", "persistent"];
|
|
3063
|
+
type ArtifactRetention = (typeof ARTIFACT_RETENTIONS)[number];
|
|
3064
|
+
declare const ARTIFACT_FILE_ROLES: readonly ["source", "preview", "entrypoint", "asset"];
|
|
3065
|
+
type ArtifactFileRole = (typeof ARTIFACT_FILE_ROLES)[number];
|
|
3066
|
+
interface ArtifactDisplayRequest {
|
|
3067
|
+
mode?: "auto" | "inline" | "window";
|
|
3068
|
+
interaction?: "static" | "interactive";
|
|
3069
|
+
size?: "compact" | "regular";
|
|
3070
|
+
aspectRatio?: number;
|
|
3071
|
+
}
|
|
3072
|
+
interface ResolvedArtifactDisplay {
|
|
3073
|
+
mode: "inline" | "window";
|
|
3074
|
+
interaction: "static" | "interactive";
|
|
3075
|
+
size: "compact" | "regular";
|
|
3076
|
+
aspectRatio?: number;
|
|
3077
|
+
}
|
|
3078
|
+
interface PublishArtifactInput {
|
|
3079
|
+
artifactId?: string;
|
|
3080
|
+
baseRevision?: number;
|
|
3081
|
+
name: string;
|
|
3082
|
+
description?: string;
|
|
3083
|
+
kind: ArtifactKind;
|
|
3084
|
+
retention?: ArtifactRetention;
|
|
3085
|
+
files: Array<{
|
|
3086
|
+
path: string;
|
|
3087
|
+
role: ArtifactFileRole;
|
|
3088
|
+
}>;
|
|
3089
|
+
display?: ArtifactDisplayRequest;
|
|
3090
|
+
}
|
|
3091
|
+
interface PublishArtifactResult {
|
|
3092
|
+
artifactId: string;
|
|
3093
|
+
revision: number;
|
|
3094
|
+
name: string;
|
|
3095
|
+
kind: ArtifactKind;
|
|
3096
|
+
retention: ArtifactRetention;
|
|
3097
|
+
display: ResolvedArtifactDisplay;
|
|
3098
|
+
}
|
|
3099
|
+
interface ArtifactRevisionView extends PublishArtifactResult {
|
|
3100
|
+
description?: string;
|
|
3101
|
+
documentId: string;
|
|
3102
|
+
previewFile: File | null;
|
|
3103
|
+
sourceFile: File | null;
|
|
3104
|
+
files: File[];
|
|
3105
|
+
entrypoint?: string;
|
|
3106
|
+
archived: boolean;
|
|
3107
|
+
}
|
|
3108
|
+
|
|
3109
|
+
/**
|
|
3110
|
+
* The minimum every capability predicate in this file reads: the type, plus
|
|
3111
|
+
* whatever else of a full `Attribute` the caller happens to hold. Exported so
|
|
3112
|
+
* callers that only have a partial attribute — a plan's proposed attribute, a
|
|
3113
|
+
* schema snapshot row — can ask the same questions as callers holding the real
|
|
3114
|
+
* thing, instead of restating the rules.
|
|
3115
|
+
*/
|
|
3116
|
+
type AttributeLike = Pick<Attribute, "type"> & Partial<Attribute>;
|
|
3117
|
+
type AttributeLifecycleCapabilities = {
|
|
3118
|
+
active: boolean;
|
|
3119
|
+
deprecated: boolean;
|
|
3120
|
+
visibleInArchitect: boolean;
|
|
3121
|
+
visibleInRuntime: boolean;
|
|
3122
|
+
warningWhenDeprecated: boolean;
|
|
3123
|
+
};
|
|
3124
|
+
type AttributeStorageMode = "value" | "edge" | "computed";
|
|
3125
|
+
type AttributeCardinality = "one" | "many";
|
|
3126
|
+
type AttributePolymorphicCapability = "none" | "code-only" | "internal";
|
|
3127
|
+
type AttributeStorageCapabilities = {
|
|
3128
|
+
mode: AttributeStorageMode;
|
|
3129
|
+
cardinality: AttributeCardinality;
|
|
3130
|
+
edgeBacked: boolean;
|
|
3131
|
+
preservesExistingValues: boolean;
|
|
3132
|
+
qualifiedProperties: boolean;
|
|
3133
|
+
polymorphic: AttributePolymorphicCapability;
|
|
3134
|
+
maxItems: boolean;
|
|
3135
|
+
};
|
|
3136
|
+
type AttributeRequiredCapability = "allowed" | "forbidden";
|
|
3137
|
+
type AttributeDefaultValueCapability = "static" | "automatic" | "forbidden";
|
|
3138
|
+
type AttributeAuthoringCapabilities = {
|
|
3139
|
+
editable: boolean;
|
|
3140
|
+
readOnly: boolean;
|
|
3141
|
+
directEdit: boolean;
|
|
3142
|
+
required: AttributeRequiredCapability;
|
|
3143
|
+
defaultValue: AttributeDefaultValueCapability;
|
|
3144
|
+
placeholder: boolean;
|
|
3145
|
+
maxItems: boolean;
|
|
3146
|
+
};
|
|
3147
|
+
type AttributePresentationCapabilities = {
|
|
3148
|
+
formField: boolean;
|
|
3149
|
+
tableCell: boolean;
|
|
3150
|
+
defaultColumn: boolean;
|
|
3151
|
+
compactDisplay: boolean;
|
|
3152
|
+
popoverEditor: boolean;
|
|
3153
|
+
placeholder: boolean;
|
|
3154
|
+
warningWhenDeprecated: boolean;
|
|
3155
|
+
};
|
|
3156
|
+
type AttributeQueryCapabilities = {
|
|
3157
|
+
filterable: boolean;
|
|
3158
|
+
searchable: boolean;
|
|
3159
|
+
sortable: boolean;
|
|
3160
|
+
groupable: boolean;
|
|
3161
|
+
kanbanGroupable: boolean;
|
|
3162
|
+
operators: readonly FilterOperator[];
|
|
3163
|
+
};
|
|
3164
|
+
type AttributeAgentCapabilities = {
|
|
3165
|
+
readable: boolean;
|
|
3166
|
+
writable: boolean;
|
|
3167
|
+
compactReadable: boolean;
|
|
3168
|
+
contentReadable: boolean;
|
|
3169
|
+
requiresDedicatedTool: boolean;
|
|
3170
|
+
};
|
|
3171
|
+
type AttributeExchangeCapabilities = {
|
|
3172
|
+
importable: boolean;
|
|
3173
|
+
exportable: boolean;
|
|
3174
|
+
schemaExportable: boolean;
|
|
3175
|
+
metadataExportable: boolean;
|
|
3176
|
+
};
|
|
3177
|
+
type AttributeCapabilities = {
|
|
3178
|
+
lifecycle: AttributeLifecycleCapabilities;
|
|
3179
|
+
storage: AttributeStorageCapabilities;
|
|
3180
|
+
authoring: AttributeAuthoringCapabilities;
|
|
3181
|
+
presentation: AttributePresentationCapabilities;
|
|
3182
|
+
query: AttributeQueryCapabilities;
|
|
3183
|
+
agent: AttributeAgentCapabilities;
|
|
3184
|
+
exchange: AttributeExchangeCapabilities;
|
|
3185
|
+
};
|
|
3186
|
+
/**
|
|
3187
|
+
* The parts of a location a filter may address (#3118). A location is a
|
|
3188
|
+
* JSONB object with no operators of its own; a rule names one of these parts
|
|
3189
|
+
* through `property` and compares it as text — `country` holds the ISO3 code.
|
|
3190
|
+
*/
|
|
3191
|
+
declare const LOCATION_FILTER_PROPERTIES: readonly ["city", "postalCode", "country"];
|
|
3192
|
+
type LocationFilterProperty = (typeof LOCATION_FILTER_PROPERTIES)[number];
|
|
3193
|
+
declare function isLocationFilterProperty(name: string): name is LocationFilterProperty;
|
|
3194
|
+
/** A location part is text, so it takes exactly the text operators. */
|
|
3195
|
+
declare function isLocationPartOperator(operator: string): operator is FilterOperator;
|
|
3196
|
+
declare const ATTRIBUTE_FILTER_OPERATORS: Readonly<Record<Exclude<AttributeType, "rollup">, readonly FilterOperator[]>>;
|
|
3197
|
+
declare function getAttributeCapabilities(attribute: AttributeLike): AttributeCapabilities;
|
|
3198
|
+
declare function getAttributeFilterOperators(attribute: AttributeLike): readonly FilterOperator[];
|
|
3199
|
+
declare function isAttributeFilterable(attribute: AttributeLike): boolean;
|
|
3200
|
+
declare function isAttributeSearchable(attribute: AttributeLike): boolean;
|
|
3201
|
+
declare function isAttributeGroupable(attribute: AttributeLike): boolean;
|
|
3202
|
+
declare function isAttributeKanbanGroupable(attribute: AttributeLike): boolean;
|
|
3203
|
+
/**
|
|
3204
|
+
* The type a filter on this attribute actually compares against. Identity for
|
|
3205
|
+
* every ordinary attribute; for a rollup it unfolds the aggregation:
|
|
3206
|
+
* `earliest`/`latest` compare dates, `original` compares the target attribute's
|
|
3207
|
+
* own type, and every other function (count/sum/avg/min/max/…) compares numbers.
|
|
3208
|
+
*
|
|
3209
|
+
* This is the single place that knowledge lives: operator resolution and value
|
|
3210
|
+
* canonicalization both read it, so a rollup can never be offered numeric
|
|
3211
|
+
* operators while its value is canonicalized as something else.
|
|
3212
|
+
*/
|
|
3213
|
+
declare function resolveEffectiveFilterType(attribute: AttributeLike): AttributeType;
|
|
3214
|
+
|
|
3215
|
+
/**
|
|
3216
|
+
* Common configuration for all builders (Objects & Attributes)
|
|
3217
|
+
*/
|
|
3218
|
+
interface BuilderConfig {
|
|
3219
|
+
/**
|
|
3220
|
+
* Technical name (snake_case, kebab-case, camelCase)
|
|
3221
|
+
* Used as identifier in database and API
|
|
3222
|
+
*/
|
|
3223
|
+
name: string;
|
|
3224
|
+
/**
|
|
3225
|
+
* Human-readable label
|
|
3226
|
+
* Used in UI
|
|
3227
|
+
*/
|
|
3228
|
+
label: string;
|
|
3229
|
+
}
|
|
3230
|
+
|
|
3231
|
+
/**
|
|
3232
|
+
* Extracts a safe error message from an unknown error value.
|
|
3233
|
+
*
|
|
3234
|
+
* @param error - The error value (can be Error, string, unknown)
|
|
3235
|
+
* @returns A string message suitable for logging or display
|
|
3236
|
+
*
|
|
3237
|
+
* @example
|
|
3238
|
+
* ```typescript
|
|
3239
|
+
* try {
|
|
3240
|
+
* await riskyOperation();
|
|
3241
|
+
* } catch (error) {
|
|
3242
|
+
* const message = getErrorMessage(error);
|
|
3243
|
+
* console.error(`Failed: ${message}`);
|
|
3244
|
+
* }
|
|
3245
|
+
* ```
|
|
3246
|
+
*/
|
|
3247
|
+
declare function getErrorMessage(error: unknown): string;
|
|
3248
|
+
|
|
3249
|
+
/**
|
|
3250
|
+
* Feature flag levels (resolution priority: user > tenant > global).
|
|
3251
|
+
*
|
|
3252
|
+
* - `global`: Applies to all tenants and users
|
|
3253
|
+
* - `tenant`: Applies to a specific tenant
|
|
3254
|
+
* - `user`: Applies to a specific user within a tenant
|
|
3255
|
+
*/
|
|
3256
|
+
type FlagLevel = "global" | "tenant" | "user";
|
|
3257
|
+
/**
|
|
3258
|
+
* Flag value types supported by the system.
|
|
3259
|
+
*/
|
|
3260
|
+
type FlagValueType = "boolean" | "string" | "number" | "json";
|
|
3261
|
+
/**
|
|
3262
|
+
* Definition of a feature flag.
|
|
3263
|
+
* Created using the flag builders (booleanFlag, stringFlag, etc.)
|
|
3264
|
+
*/
|
|
3265
|
+
interface FeatureFlagDefinition<T = unknown> {
|
|
3266
|
+
/** Unique identifier for the flag (kebab-case) */
|
|
3267
|
+
name: string;
|
|
3268
|
+
/** Human-readable label */
|
|
3269
|
+
label: string;
|
|
3270
|
+
/** Optional description */
|
|
3271
|
+
description?: string;
|
|
3272
|
+
/** Type of the flag value */
|
|
3273
|
+
valueType: FlagValueType;
|
|
3274
|
+
/** Default value when no override exists */
|
|
3275
|
+
defaultValue: T;
|
|
3276
|
+
/** Levels at which this flag can be overridden */
|
|
3277
|
+
allowedLevels: FlagLevel[];
|
|
3278
|
+
/** Grouping category for UI */
|
|
3279
|
+
category?: string;
|
|
3280
|
+
/** System flag - cannot be modified via API */
|
|
3281
|
+
system?: boolean;
|
|
3282
|
+
}
|
|
3283
|
+
/**
|
|
3284
|
+
* Stored override for a feature flag.
|
|
3285
|
+
* Represents a row in the feature_flag_overrides table.
|
|
3286
|
+
*/
|
|
3287
|
+
interface FlagOverride<T = unknown> {
|
|
3288
|
+
/** Name of the flag being overridden */
|
|
3289
|
+
flagName: string;
|
|
3290
|
+
/** Level of the override */
|
|
3291
|
+
level: FlagLevel;
|
|
3292
|
+
/** Target ID (tenantId for tenant-level, userId for user-level) */
|
|
3293
|
+
targetId?: string;
|
|
3294
|
+
/** Override value */
|
|
3295
|
+
value: T;
|
|
3296
|
+
/** Optional expiration date */
|
|
3297
|
+
expiresAt?: Date;
|
|
3298
|
+
/** Who created this override */
|
|
3299
|
+
createdBy?: string;
|
|
3300
|
+
/** When the override was created */
|
|
3301
|
+
createdAt: Date;
|
|
3302
|
+
/** When the override was last updated */
|
|
3303
|
+
updatedAt: Date;
|
|
3304
|
+
}
|
|
3305
|
+
/**
|
|
3306
|
+
* Resolved flag value with source information.
|
|
3307
|
+
* Result of flag resolution including where the value came from.
|
|
3308
|
+
*/
|
|
3309
|
+
interface ResolvedFlag<T = unknown> {
|
|
3310
|
+
/** Flag name */
|
|
3311
|
+
name: string;
|
|
3312
|
+
/** Resolved value */
|
|
3313
|
+
value: T;
|
|
3314
|
+
/** Where the value came from */
|
|
3315
|
+
source: FlagLevel | "default";
|
|
3316
|
+
/** ID of the source (tenantId or userId) if not default */
|
|
3317
|
+
sourceId?: string;
|
|
3318
|
+
}
|
|
3319
|
+
/**
|
|
3320
|
+
* Feature gate configuration for conditional feature visibility.
|
|
3321
|
+
*/
|
|
3322
|
+
interface FeatureGate {
|
|
3323
|
+
/** Name of the flag to check */
|
|
3324
|
+
flag: string;
|
|
3325
|
+
/**
|
|
3326
|
+
* Expected value for the gate to pass.
|
|
3327
|
+
* For boolean flags, defaults to `true`.
|
|
3328
|
+
* For other types, compares with strict equality.
|
|
3329
|
+
*/
|
|
3330
|
+
expectedValue?: unknown;
|
|
3331
|
+
/**
|
|
3332
|
+
* Behavior when the gate fails.
|
|
3333
|
+
* - `hide`: The gated feature is completely hidden (default)
|
|
3334
|
+
* - `show`: The gated feature is shown regardless (no gating)
|
|
3335
|
+
* - `disable`: The gated feature is visible but read-only
|
|
3336
|
+
*/
|
|
3337
|
+
fallback?: "hide" | "show" | "disable";
|
|
3338
|
+
}
|
|
3339
|
+
/**
|
|
3340
|
+
* Repository interface for feature flag overrides storage.
|
|
3341
|
+
* Added to DatabaseAdapter as an optional repository.
|
|
3342
|
+
*
|
|
3343
|
+
* If not provided, only static defaults from module config are used.
|
|
3344
|
+
*/
|
|
3345
|
+
interface FeatureFlagsRepository {
|
|
3110
3346
|
/**
|
|
3111
|
-
*
|
|
3347
|
+
* Get all overrides matching the criteria.
|
|
3348
|
+
* Returns overrides from the database (global, tenant, or user level).
|
|
3112
3349
|
*/
|
|
3113
|
-
|
|
3350
|
+
getOverrides(options: {
|
|
3351
|
+
/** Filter by level */
|
|
3352
|
+
level?: FlagLevel;
|
|
3353
|
+
/** Filter by target ID (tenantId or userId) */
|
|
3354
|
+
targetId?: string;
|
|
3355
|
+
/** Filter by flag names (for efficient single/batch lookups) */
|
|
3356
|
+
flagNames?: string[];
|
|
3357
|
+
}): Promise<FlagOverride[]>;
|
|
3114
3358
|
/**
|
|
3115
|
-
*
|
|
3359
|
+
* Create or update an override.
|
|
3360
|
+
* Uses upsert semantics based on (flagName, level, targetId).
|
|
3116
3361
|
*/
|
|
3117
|
-
|
|
3362
|
+
setOverride(override: Omit<FlagOverride, "createdAt" | "updatedAt">): Promise<FlagOverride>;
|
|
3118
3363
|
/**
|
|
3119
|
-
*
|
|
3364
|
+
* Delete an override.
|
|
3120
3365
|
*/
|
|
3121
|
-
|
|
3366
|
+
deleteOverride(flagName: string, level: FlagLevel, targetId?: string): Promise<void>;
|
|
3122
3367
|
}
|
|
3123
3368
|
/**
|
|
3124
|
-
*
|
|
3125
|
-
*/
|
|
3126
|
-
/**
|
|
3127
|
-
* Data for creating a new file.
|
|
3128
|
-
* Tenant ID is automatically set from execution context.
|
|
3369
|
+
* Static flag default value for module configuration.
|
|
3129
3370
|
*/
|
|
3130
|
-
interface
|
|
3371
|
+
interface StaticFlagDefault {
|
|
3372
|
+
/** Flag name */
|
|
3131
3373
|
name: string;
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
size: number;
|
|
3135
|
-
storageProvider: StorageProvider;
|
|
3136
|
-
storagePath: string;
|
|
3137
|
-
storageBucket?: string;
|
|
3138
|
-
url: string;
|
|
3139
|
-
uploadedBy?: Uuid;
|
|
3140
|
-
folderPath?: string;
|
|
3141
|
-
documentId?: Uuid | null;
|
|
3142
|
-
position?: number | null;
|
|
3143
|
-
ocrStatus?: FileOcrStatus | null;
|
|
3144
|
-
ocrText?: string | null;
|
|
3145
|
-
ocrConfidence?: number | null;
|
|
3146
|
-
processedAt?: Date | null;
|
|
3374
|
+
/** Default value */
|
|
3375
|
+
value: unknown;
|
|
3147
3376
|
}
|
|
3148
3377
|
/**
|
|
3149
|
-
*
|
|
3378
|
+
* Feature flags configuration for SchemaModule.
|
|
3150
3379
|
*/
|
|
3151
|
-
interface
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3380
|
+
interface FeatureFlagsConfig {
|
|
3381
|
+
/**
|
|
3382
|
+
* Static default values for flags.
|
|
3383
|
+
* These are always applied and used when no database override exists.
|
|
3384
|
+
*
|
|
3385
|
+
* @example
|
|
3386
|
+
* ```typescript
|
|
3387
|
+
* featureFlags: {
|
|
3388
|
+
* defaults: [
|
|
3389
|
+
* { name: "architect-mode", value: false },
|
|
3390
|
+
* { name: "ai-chat", value: false },
|
|
3391
|
+
* { name: "tier", value: "free" },
|
|
3392
|
+
* ],
|
|
3393
|
+
* }
|
|
3394
|
+
* ```
|
|
3395
|
+
*/
|
|
3396
|
+
defaults?: StaticFlagDefault[];
|
|
3160
3397
|
}
|
|
3161
3398
|
|
|
3162
3399
|
declare const FORM_FORBIDDEN_ATTRIBUTE_TYPES: readonly ["relation", "multiRelation", "formula", "rollup", "document", "richtext", "user"];
|
|
@@ -4161,6 +4398,111 @@ declare function isManagedSystemAttribute(attribute: {
|
|
|
4161
4398
|
id?: string;
|
|
4162
4399
|
}): boolean;
|
|
4163
4400
|
|
|
4401
|
+
/** Wire types for the meetings surface. Mirrors `types/emails.ts`: these are the
|
|
4402
|
+
* shapes the API returns and the UI renders, deliberately narrower than the
|
|
4403
|
+
* runtime's persisted `CalendarEvent`. */
|
|
4404
|
+
type MeetingStatus = "confirmed" | "tentative" | "cancelled";
|
|
4405
|
+
type MeetingParticipantRole = "organizer" | "required" | "optional";
|
|
4406
|
+
type MeetingResponseStatus = "accepted" | "declined" | "tentative" | "needs_action";
|
|
4407
|
+
/** Lifecycle of the recording bot's transcript for one meeting. */
|
|
4408
|
+
type TranscriptStatus = "scheduled" | "recording" | "completed" | "failed";
|
|
4409
|
+
/** An explicit per-meeting choice that beats the workspace policy. */
|
|
4410
|
+
declare const RECORDING_OVERRIDES: readonly ["force", "skip"];
|
|
4411
|
+
type RecordingOverride = (typeof RECORDING_OVERRIDES)[number];
|
|
4412
|
+
/** Workspace-wide rule deciding which meetings get a bot. */
|
|
4413
|
+
declare const RECORDING_POLICIES: readonly ["none", "all", "external_only"];
|
|
4414
|
+
type RecordingPolicy = (typeof RECORDING_POLICIES)[number];
|
|
4415
|
+
/** `none` when no transcript row exists for the meeting. */
|
|
4416
|
+
type MeetingRecordingStatus = "none" | TranscriptStatus;
|
|
4417
|
+
interface MeetingRecording {
|
|
4418
|
+
/** null = follows the workspace policy; an explicit choice on this meeting otherwise. */
|
|
4419
|
+
override: RecordingOverride | null;
|
|
4420
|
+
status: MeetingRecordingStatus;
|
|
4421
|
+
/** Set when status is "failed"; null otherwise. */
|
|
4422
|
+
failureReason: string | null;
|
|
4423
|
+
/** The vendor's bot handle once dispatched; what a simulator or an operator
|
|
4424
|
+
* uses to correlate a vendor call with this meeting. Null otherwise. */
|
|
4425
|
+
botId: string | null;
|
|
4426
|
+
}
|
|
4427
|
+
/** Header carrying the hex hmac-sha256 of the raw body on the fake bot's
|
|
4428
|
+
* webhook — shared by the provider that verifies it and the CLI that signs it. */
|
|
4429
|
+
declare const FAKE_MEETING_BOT_SIGNATURE_HEADER = "x-fake-signature";
|
|
4430
|
+
declare const NO_RECORDING: MeetingRecording;
|
|
4431
|
+
interface MeetingTranscriptSegment {
|
|
4432
|
+
speaker: string | null;
|
|
4433
|
+
startsAtMs: number;
|
|
4434
|
+
endsAtMs: number;
|
|
4435
|
+
text: string;
|
|
4436
|
+
}
|
|
4437
|
+
/** `GET /meetings/:id/transcript` — only a `completed` transcript answers. */
|
|
4438
|
+
interface MeetingTranscriptResponse {
|
|
4439
|
+
fullText: string;
|
|
4440
|
+
segments: MeetingTranscriptSegment[];
|
|
4441
|
+
speakers: string[];
|
|
4442
|
+
language: string | null;
|
|
4443
|
+
startedAt: string | null;
|
|
4444
|
+
endedAt: string | null;
|
|
4445
|
+
}
|
|
4446
|
+
/** `PUT /meetings/:id/recording` body. */
|
|
4447
|
+
interface SetMeetingRecordingBody {
|
|
4448
|
+
override: RecordingOverride | null;
|
|
4449
|
+
}
|
|
4450
|
+
interface MeetingParticipantRef {
|
|
4451
|
+
address: string;
|
|
4452
|
+
name?: string;
|
|
4453
|
+
role: MeetingParticipantRole;
|
|
4454
|
+
responseStatus?: MeetingResponseStatus;
|
|
4455
|
+
}
|
|
4456
|
+
/** A record a meeting was associated to at read time, by participant address.
|
|
4457
|
+
* There is no stored link — see the calendar design note. */
|
|
4458
|
+
interface MeetingLinkedRecord {
|
|
4459
|
+
recordId: string;
|
|
4460
|
+
objectId: string;
|
|
4461
|
+
objectName: string;
|
|
4462
|
+
/** Display label resolved from the record, when the API could resolve one. */
|
|
4463
|
+
label?: string;
|
|
4464
|
+
}
|
|
4465
|
+
interface Meeting {
|
|
4466
|
+
id: string;
|
|
4467
|
+
title: string | null;
|
|
4468
|
+
description: string | null;
|
|
4469
|
+
location: string | null;
|
|
4470
|
+
startsAt: string | null;
|
|
4471
|
+
endsAt: string | null;
|
|
4472
|
+
isAllDay: boolean;
|
|
4473
|
+
status: MeetingStatus;
|
|
4474
|
+
organizer: MeetingParticipantRef | null;
|
|
4475
|
+
conferenceProvider: string | null;
|
|
4476
|
+
conferenceJoinUrl: string | null;
|
|
4477
|
+
htmlLink: string | null;
|
|
4478
|
+
participants: MeetingParticipantRef[];
|
|
4479
|
+
linkedRecords: MeetingLinkedRecord[];
|
|
4480
|
+
recording: MeetingRecording;
|
|
4481
|
+
}
|
|
4482
|
+
interface MeetingsQuery {
|
|
4483
|
+
/** Text match over title, description and location. */
|
|
4484
|
+
search?: string;
|
|
4485
|
+
/** Inclusive ISO lower bound on the start. */
|
|
4486
|
+
since?: string;
|
|
4487
|
+
/** Exclusive ISO upper bound on the start. */
|
|
4488
|
+
before?: string;
|
|
4489
|
+
/** Restrict to meetings involving one of these addresses. */
|
|
4490
|
+
addresses?: string[];
|
|
4491
|
+
/** Restrict to meetings linked to this record. */
|
|
4492
|
+
recordId?: string;
|
|
4493
|
+
/** Email attribute IDs to match on when filtering by recordId. */
|
|
4494
|
+
emailAttributeIds?: string[];
|
|
4495
|
+
/** `asc` lists what is coming next (the default view), `desc` reads history. */
|
|
4496
|
+
order?: "asc" | "desc";
|
|
4497
|
+
limit?: number;
|
|
4498
|
+
offset?: number;
|
|
4499
|
+
}
|
|
4500
|
+
interface MeetingsListResponse {
|
|
4501
|
+
meetings: Meeting[];
|
|
4502
|
+
/** Offset to request next, absent when the page was the last one. */
|
|
4503
|
+
nextOffset?: number;
|
|
4504
|
+
}
|
|
4505
|
+
|
|
4164
4506
|
/**
|
|
4165
4507
|
* Tenant-level settings.
|
|
4166
4508
|
*
|
|
@@ -4174,7 +4516,18 @@ interface TenantSettings {
|
|
|
4174
4516
|
* `null` means no tenant prefix is applied.
|
|
4175
4517
|
*/
|
|
4176
4518
|
systemPrompt: string | null;
|
|
4177
|
-
|
|
4519
|
+
/** Which meetings the recording bot joins when no per-meeting override says otherwise. */
|
|
4520
|
+
meetingRecordingPolicy: RecordingPolicy;
|
|
4521
|
+
/** Name the bot shows in the participant list — the recording notice. */
|
|
4522
|
+
meetingBotDisplayName: string;
|
|
4523
|
+
}
|
|
4524
|
+
/** `GET /tenant/settings`: the settings plus what the deployment can do. */
|
|
4525
|
+
interface TenantSettingsResponse extends TenantSettings {
|
|
4526
|
+
/** True when the server has a meeting bot provider configured. */
|
|
4527
|
+
meetingBotConfigured: boolean;
|
|
4528
|
+
}
|
|
4529
|
+
declare const DEFAULT_MEETING_BOT_DISPLAY_NAME = "Notetaker";
|
|
4530
|
+
declare const DEFAULT_TENANT_SETTINGS: TenantSettings;
|
|
4178
4531
|
|
|
4179
4532
|
/**
|
|
4180
4533
|
* User status for account management
|
|
@@ -4251,6 +4604,8 @@ interface UserProfile extends Timestamps {
|
|
|
4251
4604
|
status: UserStatus;
|
|
4252
4605
|
/** Explicit posture used to initialize each new conversation draft. */
|
|
4253
4606
|
defaultWorkPosture: UserWorkPosture;
|
|
4607
|
+
/** Personal model used to initialize new manual conversation drafts only. */
|
|
4608
|
+
defaultChatModel?: ModelReference;
|
|
4254
4609
|
/**
|
|
4255
4610
|
* Last login timestamp (updated on each successful auth)
|
|
4256
4611
|
*/
|
|
@@ -4284,6 +4639,8 @@ interface UpdateUserProfile {
|
|
|
4284
4639
|
status?: UserStatus;
|
|
4285
4640
|
lastLoginAt?: Date;
|
|
4286
4641
|
defaultWorkPosture?: UserWorkPosture;
|
|
4642
|
+
/** Omit to preserve the preference; null clears it. */
|
|
4643
|
+
defaultChatModel?: ModelReference | null;
|
|
4287
4644
|
}
|
|
4288
4645
|
/**
|
|
4289
4646
|
* Data for inviting a new user by email.
|
|
@@ -4550,6 +4907,9 @@ declare const BYTE_UNIT_LABELS: readonly ["B", "KB", "MB", "GB", "TB"];
|
|
|
4550
4907
|
*/
|
|
4551
4908
|
declare function formatByteSize(bytes: number): string;
|
|
4552
4909
|
|
|
4910
|
+
/** Explicit settings, including [], take precedence over the legacy Kanban slots. */
|
|
4911
|
+
declare function getListViewDisplayAttributeNames(tab: Pick<ListViewTab, "displayAttributes" | "cardUserAttribute" | "cardDateAttribute">): string[];
|
|
4912
|
+
|
|
4553
4913
|
/**
|
|
4554
4914
|
* Four emptiness predicates live in this codebase, and each answers a different
|
|
4555
4915
|
* question. None of them is interchangeable with another, and every shape where
|
|
@@ -5160,7 +5520,9 @@ declare class AgentBuilder {
|
|
|
5160
5520
|
* Partial execution config, shallow-merged over the current config
|
|
5161
5521
|
* (defaulting to {@link DEFAULT_AGENT_EXECUTION_CONFIG} on the first call).
|
|
5162
5522
|
*
|
|
5163
|
-
* The merge is shallow at the top level
|
|
5523
|
+
* The merge is shallow at the top level except for provider-neutral
|
|
5524
|
+
* `inference` preferences, whose independent dimensions compose across
|
|
5525
|
+
* calls. Passing a partial
|
|
5164
5526
|
* `retryPolicy` REPLACES the whole `retryPolicy` object rather than
|
|
5165
5527
|
* merging its individual fields. Pass a complete `retryPolicy` if you
|
|
5166
5528
|
* only want to override one of its fields.
|
|
@@ -6597,14 +6959,15 @@ declare class ObjectBuilder<TRecord extends Record<string, unknown> = {}> implem
|
|
|
6597
6959
|
*/
|
|
6598
6960
|
declare function object(config: ObjectConfig): ObjectBuilder<{}>;
|
|
6599
6961
|
|
|
6962
|
+
type GroupFieldOptions = Omit<Field, "attribute" | "attributeGroup" | "span">;
|
|
6600
6963
|
/**
|
|
6601
6964
|
* Builder for creating form groups
|
|
6602
6965
|
*
|
|
6603
6966
|
* @example
|
|
6604
6967
|
* ```typescript
|
|
6605
6968
|
* group("identity", "Identity")
|
|
6606
|
-
* .field("name", {
|
|
6607
|
-
* .field("status", {
|
|
6969
|
+
* .field("name", { readOnly: true })
|
|
6970
|
+
* .field("status", { label: "Current status" })
|
|
6608
6971
|
* .fields("description", "website")
|
|
6609
6972
|
* .collapsible()
|
|
6610
6973
|
* ```
|
|
@@ -6632,15 +6995,15 @@ declare class GroupBuilder {
|
|
|
6632
6995
|
fields(...names: string[]): this;
|
|
6633
6996
|
/**
|
|
6634
6997
|
* Add a single field with options
|
|
6635
|
-
* @example .field("name", {
|
|
6998
|
+
* @example .field("name", { label: "Full name", readOnly: true })
|
|
6636
6999
|
*/
|
|
6637
|
-
field(attribute: string, options?:
|
|
7000
|
+
field(attribute: string, options?: GroupFieldOptions): this;
|
|
6638
7001
|
/**
|
|
6639
7002
|
* Add an inline attribute group (composite field with dropdown)
|
|
6640
7003
|
* Groups multiple attributes into a single field
|
|
6641
7004
|
* @example .attributeGroup({ id: "address", label: "Address", attributes: ["street", "city", "postal_code"], displayTemplate: "{street}, {city}" })
|
|
6642
7005
|
*/
|
|
6643
|
-
attributeGroup(config: AttributeGroupField, options?:
|
|
7006
|
+
attributeGroup(config: AttributeGroupField, options?: GroupFieldOptions): this;
|
|
6644
7007
|
/**
|
|
6645
7008
|
* Build the group definition
|
|
6646
7009
|
*/
|
|
@@ -7128,9 +7491,11 @@ interface ListViewTabData {
|
|
|
7128
7491
|
icon?: IconName;
|
|
7129
7492
|
default?: boolean;
|
|
7130
7493
|
visibility: ListViewTabVisibility;
|
|
7131
|
-
layout:
|
|
7494
|
+
layout: ListViewLayout;
|
|
7132
7495
|
columns: string[];
|
|
7133
7496
|
columnSizing?: Record<string, number>;
|
|
7497
|
+
descriptionAttribute?: string;
|
|
7498
|
+
displayAttributes?: string[];
|
|
7134
7499
|
filters?: FilterState;
|
|
7135
7500
|
sorts?: SortRule[];
|
|
7136
7501
|
groupByAttribute?: string;
|
|
@@ -7226,6 +7591,8 @@ declare class ListViewBuilder {
|
|
|
7226
7591
|
* @example .baseFilter({ combinator: "and", rules: [{ attribute: "tenant", operator: "is", value: "acme" }] })
|
|
7227
7592
|
*/
|
|
7228
7593
|
baseFilter(filters: FilterState): this;
|
|
7594
|
+
/** Allow Architect to customize only the presentation of a system list view. */
|
|
7595
|
+
allowPresentationCustomization(): this;
|
|
7229
7596
|
/**
|
|
7230
7597
|
* Add a tab with its own full configuration (layout, columns, filters, sorts, groupBy)
|
|
7231
7598
|
* Returns a ListViewTabConfigBuilder for chaining tab configuration
|
|
@@ -7283,18 +7650,26 @@ declare class ListViewTabConfigBuilder {
|
|
|
7283
7650
|
* Set the layout to table (default)
|
|
7284
7651
|
*/
|
|
7285
7652
|
table(): this;
|
|
7653
|
+
/** Show records as rows with a description and ordered attribute strip. */
|
|
7654
|
+
list(): this;
|
|
7655
|
+
/** Choose the text/richtext attribute below each List or Kanban record label. */
|
|
7656
|
+
descriptionAttribute(attributeName: string): this;
|
|
7657
|
+
/** Choose ordered List/Kanban footer attributes; an empty call hides all. */
|
|
7658
|
+
displayAttributes(...names: string[]): this;
|
|
7286
7659
|
/**
|
|
7287
7660
|
* Set the layout to kanban and specify the grouping attribute
|
|
7288
|
-
* @param groupByAttribute -
|
|
7661
|
+
* @param groupByAttribute - Status attribute to group by
|
|
7289
7662
|
*/
|
|
7290
7663
|
kanban(groupByAttribute: string): this;
|
|
7291
7664
|
/**
|
|
7292
7665
|
* Set the user attribute to display on kanban cards (bottom-left)
|
|
7666
|
+
* @deprecated Use displayAttributes.
|
|
7293
7667
|
* @param attributeName - Name of a user-type attribute
|
|
7294
7668
|
*/
|
|
7295
7669
|
cardUserAttribute(attributeName: string): this;
|
|
7296
7670
|
/**
|
|
7297
7671
|
* Set the date attribute to display on kanban cards (bottom-right)
|
|
7672
|
+
* @deprecated Use displayAttributes.
|
|
7298
7673
|
* @param attributeName - Name of a date-type attribute
|
|
7299
7674
|
*/
|
|
7300
7675
|
cardDateAttribute(attributeName: string): this;
|
|
@@ -7413,8 +7788,8 @@ declare function listView(name: string, label: string): ListViewBuilder;
|
|
|
7413
7788
|
* @example
|
|
7414
7789
|
* ```typescript
|
|
7415
7790
|
* group("identity", "Identity")
|
|
7416
|
-
* .field("name", {
|
|
7417
|
-
* .field("status", {
|
|
7791
|
+
* .field("name", { readOnly: true })
|
|
7792
|
+
* .field("status", { label: "Current status" })
|
|
7418
7793
|
* .collapsible()
|
|
7419
7794
|
* ```
|
|
7420
7795
|
*/
|
|
@@ -8054,6 +8429,11 @@ declare const DRIVE_OBJECT: ObjectDefinition;
|
|
|
8054
8429
|
declare const DRIVE_VIEW: DetailViewDefinition;
|
|
8055
8430
|
declare const DRIVE_LIST_VIEW: ListViewDefinition;
|
|
8056
8431
|
|
|
8432
|
+
declare const ARTIFACT_OBJECT_NAME = "artifact";
|
|
8433
|
+
declare const ARTIFACT_OBJECT: ObjectDefinition;
|
|
8434
|
+
/** Generic presentation for hosts that explicitly surface their artifacts. */
|
|
8435
|
+
declare const ARTIFACT_LIST_VIEW: ListViewDefinition;
|
|
8436
|
+
|
|
8057
8437
|
/**
|
|
8058
8438
|
* Registry for developer-defined view definitions
|
|
8059
8439
|
*
|
|
@@ -8617,6 +8997,14 @@ declare const ALL_OPERATION_TYPES: readonly string[];
|
|
|
8617
8997
|
*/
|
|
8618
8998
|
declare function toDraftableObject(object: ObjectDefinition): DraftableObject;
|
|
8619
8999
|
declare function toDraftableAttributes(object: ObjectDefinition): DraftableAttribute[];
|
|
9000
|
+
/**
|
|
9001
|
+
* The inverse of {@link toDraftableAttribute}: the attribute publish will
|
|
9002
|
+
* write, rebuilt from a drafted one with its config spread last. The overlay
|
|
9003
|
+
* and the append-time validator both read this, so a drafted select carries
|
|
9004
|
+
* its options and a drafted relation its target before the draft lands —
|
|
9005
|
+
* never more, never less than publish creates (#3028).
|
|
9006
|
+
*/
|
|
9007
|
+
declare function toAttribute(attribute: DraftableAttribute): Attribute;
|
|
8620
9008
|
|
|
8621
9009
|
/**
|
|
8622
9010
|
* Projects a stored view into the shape operations act on, and back.
|
|
@@ -8844,12 +9232,20 @@ type ArchitectDraftUpdatedLiveEvent = {
|
|
|
8844
9232
|
type: "architect.draft.updated";
|
|
8845
9233
|
draft: ArchitectDraftSnapshot;
|
|
8846
9234
|
};
|
|
9235
|
+
/** A meeting's recording moved along its lifecycle (bot dispatched, transcript landed, failure). */
|
|
9236
|
+
type MeetingRecordingPatchLiveEvent = {
|
|
9237
|
+
type: "meeting.recording.patch";
|
|
9238
|
+
meetingId: string;
|
|
9239
|
+
status: MeetingRecordingStatus;
|
|
9240
|
+
failureReason: string | null;
|
|
9241
|
+
updatedAt: string;
|
|
9242
|
+
};
|
|
8847
9243
|
type ChannelRevokedLiveEvent = {
|
|
8848
9244
|
type: "channel.revoked";
|
|
8849
9245
|
channel: string;
|
|
8850
9246
|
reason: "permission-revoked" | "workspace-left" | "object-deleted";
|
|
8851
9247
|
};
|
|
8852
|
-
type LiveEventPayload = RecordPatchLiveEvent | RecordDeletedLiveEvent | RecordRemovedLiveEvent | RecordCreatedLiveEvent | ViewProjectionStaleLiveEvent | AgentSessionPatchLiveEvent | NotificationCreatedLiveEvent | NotificationRecipientPatchLiveEvent | NotificationCountPatchLiveEvent | NotificationInboxArchivedLiveEvent | ReflexStateChangedLiveEvent | ReflexRunCompletedLiveEvent | ReflexAuthoringProgressLiveEvent | ArchitectDraftUpdatedLiveEvent | ChannelRevokedLiveEvent;
|
|
9248
|
+
type LiveEventPayload = RecordPatchLiveEvent | RecordDeletedLiveEvent | RecordRemovedLiveEvent | RecordCreatedLiveEvent | ViewProjectionStaleLiveEvent | AgentSessionPatchLiveEvent | NotificationCreatedLiveEvent | NotificationRecipientPatchLiveEvent | NotificationCountPatchLiveEvent | NotificationInboxArchivedLiveEvent | ReflexStateChangedLiveEvent | ReflexRunCompletedLiveEvent | ReflexAuthoringProgressLiveEvent | ArchitectDraftUpdatedLiveEvent | MeetingRecordingPatchLiveEvent | ChannelRevokedLiveEvent;
|
|
8853
9249
|
type LiveEventType = LiveEventPayload["type"];
|
|
8854
9250
|
declare const LIVE_EVENT_TYPES: readonly LiveEventType[];
|
|
8855
9251
|
declare function isLiveEventType(value: unknown): value is LiveEventType;
|
|
@@ -9587,67 +9983,6 @@ interface MailboxThreadDetail {
|
|
|
9587
9983
|
emails: MailboxEmail[];
|
|
9588
9984
|
}
|
|
9589
9985
|
|
|
9590
|
-
/** Wire types for the meetings surface. Mirrors `types/emails.ts`: these are the
|
|
9591
|
-
* shapes the API returns and the UI renders, deliberately narrower than the
|
|
9592
|
-
* runtime's persisted `CalendarEvent`. */
|
|
9593
|
-
type MeetingStatus = "confirmed" | "tentative" | "cancelled";
|
|
9594
|
-
type MeetingParticipantRole = "organizer" | "required" | "optional";
|
|
9595
|
-
type MeetingResponseStatus = "accepted" | "declined" | "tentative" | "needs_action";
|
|
9596
|
-
interface MeetingParticipantRef {
|
|
9597
|
-
address: string;
|
|
9598
|
-
name?: string;
|
|
9599
|
-
role: MeetingParticipantRole;
|
|
9600
|
-
responseStatus?: MeetingResponseStatus;
|
|
9601
|
-
}
|
|
9602
|
-
/** A record a meeting was associated to at read time, by participant address.
|
|
9603
|
-
* There is no stored link — see the calendar design note. */
|
|
9604
|
-
interface MeetingLinkedRecord {
|
|
9605
|
-
recordId: string;
|
|
9606
|
-
objectId: string;
|
|
9607
|
-
objectName: string;
|
|
9608
|
-
/** Display label resolved from the record, when the API could resolve one. */
|
|
9609
|
-
label?: string;
|
|
9610
|
-
}
|
|
9611
|
-
interface Meeting {
|
|
9612
|
-
id: string;
|
|
9613
|
-
title: string | null;
|
|
9614
|
-
description: string | null;
|
|
9615
|
-
location: string | null;
|
|
9616
|
-
startsAt: string | null;
|
|
9617
|
-
endsAt: string | null;
|
|
9618
|
-
isAllDay: boolean;
|
|
9619
|
-
status: MeetingStatus;
|
|
9620
|
-
organizer: MeetingParticipantRef | null;
|
|
9621
|
-
conferenceProvider: string | null;
|
|
9622
|
-
conferenceJoinUrl: string | null;
|
|
9623
|
-
htmlLink: string | null;
|
|
9624
|
-
participants: MeetingParticipantRef[];
|
|
9625
|
-
linkedRecords: MeetingLinkedRecord[];
|
|
9626
|
-
}
|
|
9627
|
-
interface MeetingsQuery {
|
|
9628
|
-
/** Text match over title, description and location. */
|
|
9629
|
-
search?: string;
|
|
9630
|
-
/** Inclusive ISO lower bound on the start. */
|
|
9631
|
-
since?: string;
|
|
9632
|
-
/** Exclusive ISO upper bound on the start. */
|
|
9633
|
-
before?: string;
|
|
9634
|
-
/** Restrict to meetings involving one of these addresses. */
|
|
9635
|
-
addresses?: string[];
|
|
9636
|
-
/** Restrict to meetings linked to this record. */
|
|
9637
|
-
recordId?: string;
|
|
9638
|
-
/** Email attribute IDs to match on when filtering by recordId. */
|
|
9639
|
-
emailAttributeIds?: string[];
|
|
9640
|
-
/** `asc` lists what is coming next (the default view), `desc` reads history. */
|
|
9641
|
-
order?: "asc" | "desc";
|
|
9642
|
-
limit?: number;
|
|
9643
|
-
offset?: number;
|
|
9644
|
-
}
|
|
9645
|
-
interface MeetingsListResponse {
|
|
9646
|
-
meetings: Meeting[];
|
|
9647
|
-
/** Offset to request next, absent when the page was the last one. */
|
|
9648
|
-
nextOffset?: number;
|
|
9649
|
-
}
|
|
9650
|
-
|
|
9651
9986
|
/**
|
|
9652
9987
|
* The one dynamic default a date attribute can carry.
|
|
9653
9988
|
*
|
|
@@ -10571,6 +10906,91 @@ type AgentDataChunkOptions = {
|
|
|
10571
10906
|
id?: string;
|
|
10572
10907
|
transient?: boolean;
|
|
10573
10908
|
};
|
|
10909
|
+
declare const providerNameSchema: z$1.ZodEnum<{
|
|
10910
|
+
openai: "openai";
|
|
10911
|
+
anthropic: "anthropic";
|
|
10912
|
+
google: "google";
|
|
10913
|
+
spacexai: "spacexai";
|
|
10914
|
+
deepseek: "deepseek";
|
|
10915
|
+
moonshotai: "moonshotai";
|
|
10916
|
+
alibaba: "alibaba";
|
|
10917
|
+
mistral: "mistral";
|
|
10918
|
+
minimax: "minimax";
|
|
10919
|
+
meta: "meta";
|
|
10920
|
+
zai: "zai";
|
|
10921
|
+
}>;
|
|
10922
|
+
declare const inferenceSpeedSchema: z$1.ZodEnum<{
|
|
10923
|
+
standard: "standard";
|
|
10924
|
+
fast: "fast";
|
|
10925
|
+
}>;
|
|
10926
|
+
declare const inferenceReasoningSchema: z$1.ZodEnum<{
|
|
10927
|
+
none: "none";
|
|
10928
|
+
low: "low";
|
|
10929
|
+
high: "high";
|
|
10930
|
+
minimal: "minimal";
|
|
10931
|
+
medium: "medium";
|
|
10932
|
+
xhigh: "xhigh";
|
|
10933
|
+
}>;
|
|
10934
|
+
declare const modelReferenceSchema: z$1.ZodObject<{
|
|
10935
|
+
provider: z$1.ZodEnum<{
|
|
10936
|
+
openai: "openai";
|
|
10937
|
+
anthropic: "anthropic";
|
|
10938
|
+
google: "google";
|
|
10939
|
+
spacexai: "spacexai";
|
|
10940
|
+
deepseek: "deepseek";
|
|
10941
|
+
moonshotai: "moonshotai";
|
|
10942
|
+
alibaba: "alibaba";
|
|
10943
|
+
mistral: "mistral";
|
|
10944
|
+
minimax: "minimax";
|
|
10945
|
+
meta: "meta";
|
|
10946
|
+
zai: "zai";
|
|
10947
|
+
}>;
|
|
10948
|
+
model: z$1.ZodString;
|
|
10949
|
+
}, z$1.core.$strict>;
|
|
10950
|
+
declare const agentInferencePreferencesSchema: z$1.ZodObject<{
|
|
10951
|
+
speed: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10952
|
+
standard: "standard";
|
|
10953
|
+
fast: "fast";
|
|
10954
|
+
}>>;
|
|
10955
|
+
reasoning: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10956
|
+
none: "none";
|
|
10957
|
+
low: "low";
|
|
10958
|
+
high: "high";
|
|
10959
|
+
minimal: "minimal";
|
|
10960
|
+
medium: "medium";
|
|
10961
|
+
xhigh: "xhigh";
|
|
10962
|
+
}>>;
|
|
10963
|
+
}, z$1.core.$strict>;
|
|
10964
|
+
declare const agentSessionInferenceOverridesSchema: z$1.ZodObject<{
|
|
10965
|
+
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
10966
|
+
provider: z$1.ZodEnum<{
|
|
10967
|
+
openai: "openai";
|
|
10968
|
+
anthropic: "anthropic";
|
|
10969
|
+
google: "google";
|
|
10970
|
+
spacexai: "spacexai";
|
|
10971
|
+
deepseek: "deepseek";
|
|
10972
|
+
moonshotai: "moonshotai";
|
|
10973
|
+
alibaba: "alibaba";
|
|
10974
|
+
mistral: "mistral";
|
|
10975
|
+
minimax: "minimax";
|
|
10976
|
+
meta: "meta";
|
|
10977
|
+
zai: "zai";
|
|
10978
|
+
}>;
|
|
10979
|
+
model: z$1.ZodString;
|
|
10980
|
+
}, z$1.core.$strict>>;
|
|
10981
|
+
speed: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10982
|
+
standard: "standard";
|
|
10983
|
+
fast: "fast";
|
|
10984
|
+
}>>;
|
|
10985
|
+
reasoning: z$1.ZodOptional<z$1.ZodEnum<{
|
|
10986
|
+
none: "none";
|
|
10987
|
+
low: "low";
|
|
10988
|
+
high: "high";
|
|
10989
|
+
minimal: "minimal";
|
|
10990
|
+
medium: "medium";
|
|
10991
|
+
xhigh: "xhigh";
|
|
10992
|
+
}>>;
|
|
10993
|
+
}, z$1.core.$strict>;
|
|
10574
10994
|
declare const toolImpactSchema: z$1.ZodObject<{
|
|
10575
10995
|
label: z$1.ZodString;
|
|
10576
10996
|
denied: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
@@ -10678,10 +11098,17 @@ declare const mentionReferenceSchema: z$1.ZodObject<{
|
|
|
10678
11098
|
}, z$1.core.$strict>;
|
|
10679
11099
|
declare const modelDefinitionSchema: z$1.ZodObject<{
|
|
10680
11100
|
provider: z$1.ZodEnum<{
|
|
10681
|
-
anthropic: "anthropic";
|
|
10682
11101
|
openai: "openai";
|
|
11102
|
+
anthropic: "anthropic";
|
|
10683
11103
|
google: "google";
|
|
11104
|
+
spacexai: "spacexai";
|
|
11105
|
+
deepseek: "deepseek";
|
|
11106
|
+
moonshotai: "moonshotai";
|
|
11107
|
+
alibaba: "alibaba";
|
|
10684
11108
|
mistral: "mistral";
|
|
11109
|
+
minimax: "minimax";
|
|
11110
|
+
meta: "meta";
|
|
11111
|
+
zai: "zai";
|
|
10685
11112
|
}>;
|
|
10686
11113
|
model: z$1.ZodString;
|
|
10687
11114
|
maxTokens: z$1.ZodOptional<z$1.ZodNumber>;
|
|
@@ -10795,10 +11222,17 @@ declare const agentSessionMessageSchema: z$1.ZodObject<{
|
|
|
10795
11222
|
}, z$1.core.$strict>>>;
|
|
10796
11223
|
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
10797
11224
|
provider: z$1.ZodEnum<{
|
|
10798
|
-
anthropic: "anthropic";
|
|
10799
11225
|
openai: "openai";
|
|
11226
|
+
anthropic: "anthropic";
|
|
10800
11227
|
google: "google";
|
|
11228
|
+
spacexai: "spacexai";
|
|
11229
|
+
deepseek: "deepseek";
|
|
11230
|
+
moonshotai: "moonshotai";
|
|
11231
|
+
alibaba: "alibaba";
|
|
10801
11232
|
mistral: "mistral";
|
|
11233
|
+
minimax: "minimax";
|
|
11234
|
+
meta: "meta";
|
|
11235
|
+
zai: "zai";
|
|
10802
11236
|
}>;
|
|
10803
11237
|
model: z$1.ZodString;
|
|
10804
11238
|
maxTokens: z$1.ZodOptional<z$1.ZodNumber>;
|
|
@@ -10994,10 +11428,17 @@ declare const customDataChunkSchemas: {
|
|
|
10994
11428
|
}, z$1.core.$strict>>>;
|
|
10995
11429
|
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
10996
11430
|
provider: z$1.ZodEnum<{
|
|
10997
|
-
anthropic: "anthropic";
|
|
10998
11431
|
openai: "openai";
|
|
11432
|
+
anthropic: "anthropic";
|
|
10999
11433
|
google: "google";
|
|
11434
|
+
spacexai: "spacexai";
|
|
11435
|
+
deepseek: "deepseek";
|
|
11436
|
+
moonshotai: "moonshotai";
|
|
11437
|
+
alibaba: "alibaba";
|
|
11000
11438
|
mistral: "mistral";
|
|
11439
|
+
minimax: "minimax";
|
|
11440
|
+
meta: "meta";
|
|
11441
|
+
zai: "zai";
|
|
11001
11442
|
}>;
|
|
11002
11443
|
model: z$1.ZodString;
|
|
11003
11444
|
maxTokens: z$1.ZodOptional<z$1.ZodNumber>;
|
|
@@ -11119,10 +11560,17 @@ declare const customDataChunkSchemas: {
|
|
|
11119
11560
|
}, z$1.core.$strict>>>;
|
|
11120
11561
|
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
11121
11562
|
provider: z$1.ZodEnum<{
|
|
11122
|
-
anthropic: "anthropic";
|
|
11123
11563
|
openai: "openai";
|
|
11564
|
+
anthropic: "anthropic";
|
|
11124
11565
|
google: "google";
|
|
11566
|
+
spacexai: "spacexai";
|
|
11567
|
+
deepseek: "deepseek";
|
|
11568
|
+
moonshotai: "moonshotai";
|
|
11569
|
+
alibaba: "alibaba";
|
|
11125
11570
|
mistral: "mistral";
|
|
11571
|
+
minimax: "minimax";
|
|
11572
|
+
meta: "meta";
|
|
11573
|
+
zai: "zai";
|
|
11126
11574
|
}>;
|
|
11127
11575
|
model: z$1.ZodString;
|
|
11128
11576
|
maxTokens: z$1.ZodOptional<z$1.ZodNumber>;
|
|
@@ -11226,4 +11674,4 @@ type AgentUIDataChunk = {
|
|
|
11226
11674
|
declare function assertCustomAgentUIMessageChunk(value: unknown): AgentUIDataChunk;
|
|
11227
11675
|
declare function agentDataChunk<K extends keyof AgentUIDataTypes & string>(name: K, data: AgentUIDataTypes[K], options?: AgentDataChunkOptions): AgentUIDataChunk;
|
|
11228
11676
|
|
|
11229
|
-
export { AGENT_UI_BATCH_MAX_BYTES, AGENT_UI_BATCH_MAX_ITEMS, type AIAvailableModel, type AIBatchAnswerValue, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIBatchQuestionType, type AIChatMessage, type AIChatMessagePart, type AIChatNotification, type AICompactionSummary, type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AISubagentStatus, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_OPERATION_TYPES, ALL_SYSTEM_RESOURCES, ATTRIBUTE_FILTER_OPERATORS, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, type AcceptsCandidate, type AccessLevel, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddSharedMailboxInput, type AgentApprovalPolicy, type AgentBlueprint, AgentBuilder, type AgentBuilderConfig, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentMessageAttachment, type AgentMessagePart, type AgentRequiredPermission, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentTodoPlan, type AgentTodoPlanStatus, type AgentTodoPlanView, type AgentToolCall, type AgentTriggerBlueprint, type AgentTriggerDefinition, type AgentTriggerType, type AgentUIDataChunk, type AgentUIDataName, type AgentUIDataTypes, type AgentUIMessageBatch, type AgentUIMessageBatchItem, type AgentUsageView, type AgentWorkMode, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type ApprovalMode, type ArchitectChange, type ArchitectDraftSnapshot, type ArchitectDraftUpdatedLiveEvent, type ArchitectImpact, type ArchitectNavigation, type ArchitectPresentation, type AssignActorRoleInput, type AssignRoleInput, type AttachmentPartData, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, AttributeGroupField, type AttributeLifecycleCapabilities, type AttributeLike, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, type AuthorizedGlobalSearchResult, type AuthorizedRecordSearchResult, type AuthorizedSearchPage, BEHAVIOR_PROPERTIES, BYTE_UNIT_LABELS, type BaseOperation, BilateralConfig, type BoundingBox, type BuilderConfig, type ByteMagnitude, CLAIMABLE_SESSION_STATUSES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, COUNT_MODES, type CalendarConnectorProviderId, type CalendarMeetingEndedData, type CalendarMeetingTranscriptCreatedData, type ChannelRevokedLiveEvent, CheckboxAttribute, type ClaimableSessionStatus, type CollectionPage, type CollectionRequest, type CollectionResponse, type CompactionPartData, type CompactionStrategy, type CompileComputedFormulaInput, type ComputedCompileAttribute, type ComputedCompileObject, type ComputedCompileSchema, ComputedDependency, type ComputedDependencyGraphNode, ComputedFormulaAstNode, ComputedFormulaCompileError, type ComputedFormulaResult, type ComputedFunctionCategory, type ComputedFunctionMetadata, type ComputedFunctionName, type ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConfigOverrides, type ConnectMcpServerInput, type ConnectionStatus, type ConnectionStatusId, type ConnectionView, type ConnectorCallbackStatusValue, type ConnectorProviderId, type ConnectorProvidersResult, type ConnectorScope, type ContinuationPage, type ConversationDisplayTitleInput, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateDefaultsContext, type CreateDocument, type CreateDocumentLink, type CreateFile, CreateMode, type CreateNotificationInput, type CreateNotificationRecipientInput, type CreateObjectRecord, type CreatePermissionInput, type CreateReflexInput, type CreateReflexVersionInput, type CreateRoleInput, type CreateUserProfile, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, type CustomObjectInfo, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, type DBViewSyncResolution, DB_COLUMN_FIELDS, DEFAULT_AGENT_EXECUTION_CONFIG, DEFAULT_APPROVAL_POLICY, DEFAULT_LABEL_FALLBACK, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DRAFTABLE_ATTRIBUTE_TYPES, DRIVE_LIST_VIEW, DRIVE_OBJECT, DRIVE_OBJECT_NAME, DRIVE_VIEW, DateAttribute, DateRangeValue, type DefaultResolutionContext, type DefaultRoleName, type DeletedMode, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, type Document, DocumentAttribute, type DocumentFile, type DocumentKind, DocumentLayout, type DocumentListOptions, type DocumentRecordOwner, type DocumentRecordOwnerPage, type DocumentWithFiles, type DocumentWithSubCount, DocumentsTabConfig, type DomainEvent, type DraftFocus, type DraftableAttribute, type DraftableObject, type DraftableSampleRecord, type DraftableState, type DraftableView, type DriftAttributeInfo, DynamicValue, type DynamicValueResolver, EMPTY_VALUE_PLACEHOLDER, ESTIMATED_COUNT_CAP, type Eager, type EffectivePermissions, type EmailAttachmentMeta, type EmailConnectorProviderId, type EmailDirection, type EmailParticipantRef, type EmailParticipantRole, type EmailProvider, EmailsTab, EmailsTabConfig, type EnvVarEntry, type EnvVarScope, type ErrorPartData, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, Field, FieldGroup, type FieldHistoryEntry, type File, type FileListOptions, type FileOcrStatus, FilterOperator, FilterRule, FilterState, FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, type FlagResolutionContext, FlagService, type FlagValueType, FormBuilder, type FormDefinition, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTextRow, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, type InterruptionPartData, type InviteUserInput, type IsWithinBounds, LIVE_EVENT_TYPES, type LabelContext, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, ListViewTabVisibility, type LiveChannel, type LiveChannelKind, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveNotification, type LiveNotificationRecipient, type LiveNotificationRecipientPatch, Location, LocationAttribute, LocationGranularity, MAX_TODOS, MAX_TODO_DESCRIPTION_CHARS, MAX_TODO_ID_CHARS, MAX_TODO_RESULT_CHARS, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, type MailboxAccount, type MailboxAccountVisibility, type MailboxCursor, type MailboxEmail, type MailboxListResponse, type MailboxQuery, type MailboxReadState, type MailboxThread, type MailboxThreadDetail, type McpCatalogEntry, type McpServerAuthInput, type McpServerAuthType, type McpServerStatus, type McpServerView, type Meeting, type MeetingLinkedRecord, type MeetingParticipantRef, type MeetingParticipantRole, type MeetingResponseStatus, type MeetingStatus, type MeetingsListResponse, type MeetingsQuery, MeetingsTab, MeetingsTabConfig, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, type ModuleRunMode, MultiRelationAttribute, MultiselectAttribute, NATIVE_AGENT_UI_PART_IDS_METADATA_KEY, NATIVE_AGENT_UI_PART_IDS_METADATA_SCHEMA_VERSION, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, type NativeAgentUIPartIds, type NativeAgentUIPartIdsMetadata, NoopGeocodingAdapter, type Notification, type NotificationArchiveAllResult, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxArchivedLiveEvent, 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, OBJECT_NAME_SCHEMA, OPEN_TOOL_PART_STATES, OPERATION_REGISTRY, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, type ObjectPermissions, ObjectRecord, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperationDef, type OperatorSpec, Option, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type ParsedPersistedSchemaPlan, type ParsedSchemaPlanProposal, type Permission, type PermissionScope, type PersistedDefaultViewTarget, type PersistedSchemaPlan, type PersistedSchemaPlanAdditive, Phone, PhoneAttribute, type PlannedAttribute, type PlannedAttributeRemoval, type PlannedObject, type PlannedObjectRemoval, type PlannedRename, PropertyAttribute, PropertySchema, type ProposedDefaultViewTarget, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, RECORD_CREATOR_ROOT_ACTOR_METADATA_KEY, REMOVED_OPERATOR_REPLACEMENTS, type ReasoningPartData, type RecordAgentEvent, type RecordCreatedLiveEvent, type RecordDeletedLiveEvent, type RecordDocuments, type RecordFieldPatch, type RecordLiveSnapshot, type RecordMetadata, type RecordPatchLiveEvent, type RecordRemovedLiveEvent, type Reflex, type ReflexAuthoringProgressLiveEvent, type ReflexAuthoringStatus, type ReflexCorpusEntrySummary, type ReflexCorpusPage, type ReflexDetail, type ReflexEngineState, type ReflexGateVerdict, type ReflexListItem, type ReflexListRow, type ReflexRun, type ReflexRunClassification, type ReflexRunCompletedLiveEvent, type ReflexRunOutcome, type ReflexRunResultWire, type ReflexRunSummary, type ReflexRunToolCall, type ReflexSeedExample, type ReflexState, type ReflexStateChangedLiveEvent, type ReflexStats, type ReflexVersion, type ReflexVersionStages, type ReflexVersionStatus, type ReflexVersionSummary, type ReflexWire, type RegexGenerationInput, RelationAttribute, RelationTarget, RelativeDateValue, type ResolutionContext, type ResolvedFlag, ResourceVisibility, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextTabConfig, type Role, RollupAttribute, RollupFunction, type RunEffect, type RunMode, SCHEMA_PLAN_LIMITS, SESSION_STATE_STREAM_ID, SESSION_TERMINAL_STATUSES, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYNONYM_ALIASES, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FILTER_ATTRIBUTE_TYPES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SchemaDriftResult, type SchemaPlan, type SchemaPlanAdditive, type SchemaPlanAdditiveBase, type SchemaPlanChangeSet, type SchemaPlanDestructive, type SchemaPlanImpact, type SchemaPlanImpactEntry, type SchemaPlanOutcome, type SchemaPlanProposalInput, type SchemaPlanStatus, type SchemaPlanViewChanges, type SchemaState, type SearchOptions, SelectAttribute, type SessionApprovalMode, type SessionOutcome, type SessionParkedOn, type SessionPhase, type SessionState, type SessionStateChunkData, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type StandardSchemaIssue, type StandardSchemaResult, type StartConnectorAuthInput, type StartConnectorAuthResult, type StaticFlagDefault, StatusAttribute, type StorageProvider, type StoredSchemaPlan, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemObjectDriftInfo, type SystemPermissions, type SystemResource, TEXT_FORMAT_PATTERNS, TODAY_DEFAULT, TODO_PLAN_STATUSES, TODO_STATUSES, TOOL_APPROVAL_STATES, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, type TenantSettings, type TerminalSessionStatus, TextAttribute, type TextPartData, type ThinkingPartData, TimeFormat, Timestamps, type ToolImpact, type ToolPartData, type ToolPartErrorCode, type ToolPartState, type TriggerEventType, UPDATE_TABLE_TAB_CHANGE_KEYS, UPDATE_TAB_CHANGE_KEYS, UPDATE_TAB_CONFIG_CHANGE_KEYS, USER_STATUSES, USER_WORK_POSTURES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateDocument, type UpdateFile, type UpdateRoleInput, type UpdateUserProfile, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserLike, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, type UserWorkPosture, Uuid, ValidationError, type ValueRef, type ViewBaselineOrigin, type ViewChange, ViewConfig, type ViewConfigDelta, ViewDefinition, type ViewOperation, type ViewOrigin, type ViewProjectionStaleLiveEvent, type ViewStateEntry, type ViewStateResolution, type ViewSyncPayload, ViewType, type WithCustomAttributes, type WithCustomRecordAttributes, type WithoutSystemFields, accessLevelToActions, actionsToAccessLevel, agent, agentDataChunk, agentDisplayName, agentMessageAttachmentSchema, agentMessagePartSchema, agentSessionMessageSchema, agentUIValidationError, applyOperations, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertCustomAgentUIMessageChunk, booleanFlag, buildAgentFallbackTitle, buildPermissionFlags, buildPropertySchema, buildQualifiedAttribute, canonicalizeFilterValue, checkbox, collectQualifiedRuleIssues, compareAgentSessionMessages, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, conversationDisplayTitle, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, customDataChunkSchemas, date, dateInTimezone, dateValueStart, defineOperation, definePresentation, deriveArchitectChanges, deriveCreateDefaultsFromFilters, deriveInitials, describeAttributeConfig, describeOperationInput, describeOperations, destructiveSchema, detailView, document, durableDateSchema, ensureFieldIds, episodeImpactOf, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, evaluateRecordFilterState, extractAttributeNames, extractCurrencyFilterValue, extractFilterValue, extractValueRefs, flagRegistry, focusOf, form, formFieldFlatKey, formFieldKey, formRegistry, formatAgentStreamFrameId, formatAttributeValue, formatByteSize, formatComputedResult, formatLocationValue, formula, fromDraftableView, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getEditableLabelAttribute, getErrorMessage, getLiveProtocolPayloadChannel, getOperatorPolarity, getRecordCreatorPrincipalId, getSingleAttributeFromExpression, getSlotFieldTargets, getSystemAttributeI18nKey, getSystemAttributeList, getUserDisplayName, group, hasDestructiveEntries, includesAction, inferRollupReturnType, isAgentUIDataName, isAgentUIMessageBatch, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isCheckboxEquality, isClaimableSessionStatus, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDocumentAttribute, isDynamicValue, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isManagedSystemAttribute, isNotEmpty, isNullishOrEmptyString, isOpenToolPartState, isPlainRecord, isRelativeDateValue, isSetMembershipOperator, isStandardSchema, isTerminalSessionStatus, isTerminalState, isToolApprovalState, isValuePresent, jsonFlag, legacyStatusToSessionState, listDescribableNames, listView, liveChannelKey, location, makeFieldId, matchesAccepts, mentionReferenceSchema, modelDefinitionSchema, multiselect, nativeAgentUIPartIdMetadataKey, normalizeDateValue, normalizeFilterRule, normalizeForEdgeRpc, normalizeOperator, now, number, numberFlag, object, orderAgentSessionMessages, parseAgentStreamFrameId, parseCountMode, parseLiveChannelKey, parseNativeAgentUIPartIdsMetadata, parseOperation, parseOptionalCountMode, parseQualifiedAttribute, persistedDefaultViewTargetSchema, persistedSchemaPlanSchema, phone, plannedAttributeSchema, plannedInlineAttributeSchema, plannedObjectSchema, presentationOf, proposedDefaultViewTargetSchema, qualifiedPropertyDefs, readFormFieldValue, registry, relation, relationPropertyDefs, renderLabelExpression, resetViewToDefault, resolveAttributeDefaultValue, resolveEffectiveFilterType, resolveFieldRequired, resolveIsWithinBounds, resolveTextPattern, resolveUtcDayBounds, richtext, rollup, rollupToFormulaExpression, schemaPlanSchema, select, sessionStateToLegacyStatus, status, stringFlag, text, toDraftableAttributes, toDraftableObject, toDraftableView, toMultiValueOperator, toUndefinedIfEmpty, toUtcDayString, today, todoItemSchema, todoPlanSchema, toolImpactSchema, user, validateAttributeName, validateLabelExpression, validateObjectName, validateQualifiedRule, validateViewName, viewRegistry, viewStateKey, viewSyncPayload };
|
|
11677
|
+
export { AGENT_UI_BATCH_MAX_BYTES, AGENT_UI_BATCH_MAX_ITEMS, type AIAvailableModel, type AIBatchAnswerValue, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIBatchQuestionType, type AIChatMessage, type AIChatMessagePart, type AIChatNotification, type AICompactionSummary, type AIGenerationInputMap, type AIGenerationResult, type AIGenerationType, type AIGenerationUsage, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIModelInputModality, type AIModelPriceDimension, type AIModelPriceTier, type AIModelPricing, type AIModelProfile, type AIModelProfileLabel, type AIModelReasoningMode, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AISubagentStatus, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMeasurementsV1, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_OPERATION_TYPES, ALL_SYSTEM_RESOURCES, ARTIFACT_FILE_ROLES, ARTIFACT_KINDS, ARTIFACT_LIST_VIEW, ARTIFACT_OBJECT, ARTIFACT_OBJECT_NAME, ARTIFACT_RETENTIONS, ATTRIBUTE_FILTER_OPERATORS, AUDIT_ACTIONS, AUDIT_RESOURCE_TYPES, type AcceptsCandidate, type AccessLevel, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddSharedMailboxInput, type AgentApprovalPolicy, type AgentBlueprint, AgentBuilder, type AgentBuilderConfig, type AgentConfig, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentInferencePreferences, type AgentMessageAttachment, type AgentMessagePart, type AgentRequiredPermission, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionInferenceOverrides, type AgentSessionMessage, type AgentSessionMode, type AgentSessionPatchLiveEvent, type AgentSessionStatus, type AgentTodoPlan, type AgentTodoPlanStatus, type AgentTodoPlanView, type AgentToolCall, type AgentTriggerBlueprint, type AgentTriggerDefinition, type AgentTriggerType, type AgentUIDataChunk, type AgentUIDataName, type AgentUIDataTypes, type AgentUIMessageBatch, type AgentUIMessageBatchItem, type AgentUsageView, type AgentWorkMode, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type ApprovalMode, type ArchitectChange, type ArchitectDraftSnapshot, type ArchitectDraftUpdatedLiveEvent, type ArchitectImpact, type ArchitectNavigation, type ArchitectPresentation, type ArtifactDisplayRequest, type ArtifactFileRole, type ArtifactKind, type ArtifactRetention, type ArtifactRevisionView, type AssignActorRoleInput, type AssignRoleInput, type AttachmentPartData, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, AttributeGroupField, type AttributeLifecycleCapabilities, type AttributeLike, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, type AuthorizedGlobalSearchResult, type AuthorizedRecordSearchResult, type AuthorizedSearchPage, BEHAVIOR_PROPERTIES, BYTE_UNIT_LABELS, type BaseOperation, BilateralConfig, type BoundingBox, type BuilderConfig, type ByteMagnitude, CLAIMABLE_SESSION_STATUSES, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, CONNECTOR_CALLBACK_PARAM, COUNT_MODES, type CalendarConnectorProviderId, type CalendarMeetingEndedData, type CalendarMeetingTranscriptCreatedData, type ChannelRevokedLiveEvent, CheckboxAttribute, type ClaimableSessionStatus, type CollectionPage, type CollectionRequest, type CollectionResponse, type CompactionPartData, type CompactionStrategy, type CompileComputedFormulaInput, type ComputedCompileAttribute, type ComputedCompileObject, type ComputedCompileSchema, ComputedDependency, type ComputedDependencyGraphNode, ComputedFormulaAstNode, ComputedFormulaCompileError, type ComputedFormulaResult, type ComputedFunctionCategory, type ComputedFunctionMetadata, type ComputedFunctionName, type ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConfigOverrides, type ConnectMcpServerInput, type ConnectionStatus, type ConnectionStatusId, type ConnectionView, type ConnectorCallbackStatusValue, type ConnectorProviderId, type ConnectorProvidersResult, type ConnectorScope, type ContinuationPage, type ConversationDisplayTitleInput, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateDefaultsContext, type CreateDocument, type CreateDocumentLink, type CreateFile, CreateMode, type CreateNotificationInput, type CreateNotificationRecipientInput, type CreateObjectRecord, type CreatePermissionInput, type CreateReflexInput, type CreateReflexVersionInput, type CreateRoleInput, type CreateUserProfile, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, type CustomObjectInfo, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, type DBViewSyncResolution, DB_COLUMN_FIELDS, DEFAULT_AGENT_EXECUTION_CONFIG, DEFAULT_APPROVAL_POLICY, DEFAULT_DICTATION_LIMITS, DEFAULT_LABEL_FALLBACK, DEFAULT_MEETING_BOT_DISPLAY_NAME, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DEFAULT_TENANT_SETTINGS, DICTATION_FINALIZATION_TIMEOUT_MS, DICTATION_FRAME_BYTES, DICTATION_MAX_BUFFER_BYTES, DICTATION_MAX_FRAME_BYTES, DICTATION_MAX_TRANSCRIPT_BYTES, DICTATION_MODEL_ID, DICTATION_PREPARATION_TIMEOUT_MS, DICTATION_SAMPLE_RATE, DICTATION_TICKET_TTL_MS, DOCUMENT_SYSTEM_ATTRIBUTES, DRAFTABLE_ATTRIBUTE_TYPES, DRIVE_LIST_VIEW, DRIVE_OBJECT, DRIVE_OBJECT_NAME, DRIVE_VIEW, DateAttribute, DateRangeValue, type DefaultResolutionContext, type DefaultRoleName, type DeletedMode, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, type DictationAdmission, type DictationCapabilities, type DictationControl, type DictationErrorReason, type DictationIdentity, type DictationLimits, type DictationServerEvent, type DictationUsageSummary, type Document, DocumentAttribute, type DocumentFile, type DocumentKind, DocumentLayout, type DocumentListOptions, type DocumentRecordOwner, type DocumentRecordOwnerPage, type DocumentWithFiles, type DocumentWithSubCount, DocumentsTabConfig, type DomainEvent, type DraftFocus, type DraftableAttribute, type DraftableObject, type DraftableSampleRecord, type DraftableState, type DraftableView, type DriftAttributeInfo, DynamicValue, type DynamicValueResolver, EMPTY_VALUE_PLACEHOLDER, ESTIMATED_COUNT_CAP, type Eager, type EffectivePermissions, type EmailAttachmentMeta, type EmailConnectorProviderId, type EmailDirection, type EmailParticipantRef, type EmailParticipantRole, type EmailProvider, EmailsTab, EmailsTabConfig, type EnvVarEntry, type EnvVarScope, type ErrorPartData, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FAKE_MEETING_BOT_SIGNATURE_HEADER, FORM_FORBIDDEN_ATTRIBUTE_TYPES, type FeatureFlagDefinition, type FeatureFlagsConfig, type FeatureFlagsRepository, type FeatureGate, Field, FieldGroup, type FieldHistoryEntry, type File, type FileListOptions, type FileOcrStatus, FilterOperator, FilterRule, FilterState, FilterValue, type FlagLevel, type FlagOverride, FlagRegistry, type FlagResolutionContext, FlagService, type FlagValueType, FormBuilder, type FormDefinition, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTextRow, FormulaAttribute, type FormulaGenerationAttribute, type FormulaGenerationInput, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, Group, GroupBuilder, IDENTITY_PROPERTIES, INFERENCE_REASONING_OPTIONS, INFERENCE_SPEEDS, type InferAttributeValue, type InferQualifiedProps, type InferenceReasoning, type InferenceSpeed, type InterruptionPartData, type InviteUserInput, type IsWithinBounds, LIVE_EVENT_TYPES, LOCATION_FILTER_PROPERTIES, type LabelContext, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewLayout, ListViewTab, ListViewTabConfigBuilder, ListViewTabVisibility, type LiveChannel, type LiveChannelKind, type LiveEventEnvelope, type LiveEventPayload, type LiveEventType, type LiveNotification, type LiveNotificationRecipient, type LiveNotificationRecipientPatch, Location, LocationAttribute, type LocationFilterProperty, LocationGranularity, MAX_TODOS, MAX_TODO_DESCRIPTION_CHARS, MAX_TODO_ID_CHARS, MAX_TODO_RESULT_CHARS, MEMORY_LIST_VIEW, MEMORY_OBJECT, MEMORY_VIEW, type MailboxAccount, type MailboxAccountVisibility, type MailboxCursor, type MailboxEmail, type MailboxListResponse, type MailboxQuery, type MailboxReadState, type MailboxThread, type MailboxThreadDetail, type McpCatalogEntry, type McpServerAuthInput, type McpServerAuthType, type McpServerStatus, type McpServerView, type Meeting, type MeetingLinkedRecord, type MeetingParticipantRef, type MeetingParticipantRole, type MeetingRecording, type MeetingRecordingPatchLiveEvent, type MeetingRecordingStatus, type MeetingResponseStatus, type MeetingStatus, type MeetingTranscriptResponse, type MeetingTranscriptSegment, type MeetingsListResponse, type MeetingsQuery, MeetingsTab, MeetingsTabConfig, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, type ModelDefinition, type ModelReference, type ModuleRunMode, MultiRelationAttribute, MultiselectAttribute, NATIVE_AGENT_UI_PART_IDS_METADATA_KEY, NATIVE_AGENT_UI_PART_IDS_METADATA_SCHEMA_VERSION, NOTIFICATION_INBOX_STATES, NOTIFICATION_KINDS, NOTIFICATION_PRIORITIES, NOTIFICATION_SENSITIVITIES, NOTIFICATION_TYPES_V1, NOTIFICATION_TYPE_AGENT_QUESTION_REQUESTED, NOTIFICATION_TYPE_AGENT_SESSION_WAITING_HUMAN, NOTIFICATION_TYPE_AGENT_TASK_ASSIGNED, NOTIFICATION_WORK_STATES, NO_RECORDING, type NativeAgentUIPartIds, type NativeAgentUIPartIdsMetadata, NoopGeocodingAdapter, type Notification, type NotificationArchiveAllResult, type NotificationCountPatchLiveEvent, type NotificationCounts, type NotificationCreatedLiveEvent, type NotificationInboxArchivedLiveEvent, 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, OBJECT_NAME_SCHEMA, OPEN_TOOL_PART_STATES, OPERATION_REGISTRY, OPERATOR_SPECS, ObjectBuilder, type ObjectConfig, ObjectDefinition, type ObjectPermissions, ObjectRecord, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperationDef, type OperatorSpec, Option, PRESENTATION_PROPERTIES, PROVIDER_NAMES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type ParsedPersistedSchemaPlan, type ParsedSchemaPlanProposal, type Permission, type PermissionScope, type PersistedDefaultViewTarget, type PersistedSchemaPlan, type PersistedSchemaPlanAdditive, Phone, PhoneAttribute, type PlannedAttribute, type PlannedAttributeRemoval, type PlannedObject, type PlannedObjectRemoval, type PlannedRename, PropertyAttribute, PropertySchema, type ProposedDefaultViewTarget, type ProviderName, type PublishArtifactInput, type PublishArtifactResult, QUALIFIED_SEPARATOR, type QualifiedDocumentAttributeBuilder, type QualifiedDocumentBrand, RECORDING_OVERRIDES, RECORDING_POLICIES, RECORD_CREATOR_ROOT_ACTOR_METADATA_KEY, REMOVED_OPERATOR_REPLACEMENTS, type ReasoningPartData, type RecordAgentEvent, type RecordCreatedLiveEvent, type RecordDeletedLiveEvent, type RecordDocuments, type RecordFieldPatch, type RecordLiveSnapshot, type RecordMetadata, type RecordPatchLiveEvent, type RecordRemovedLiveEvent, type RecordingOverride, type RecordingPolicy, type Reflex, type ReflexAuthoringProgressLiveEvent, type ReflexAuthoringStatus, type ReflexCorpusEntrySummary, type ReflexCorpusPage, type ReflexDetail, type ReflexEngineState, type ReflexGateVerdict, type ReflexListItem, type ReflexListRow, type ReflexRun, type ReflexRunClassification, type ReflexRunCompletedLiveEvent, type ReflexRunOutcome, type ReflexRunResultWire, type ReflexRunSummary, type ReflexRunToolCall, type ReflexSeedExample, type ReflexState, type ReflexStateChangedLiveEvent, type ReflexStats, type ReflexVersion, type ReflexVersionStages, type ReflexVersionStatus, type ReflexVersionSummary, type ReflexWire, type RegexGenerationInput, RelationAttribute, RelationTarget, RelativeDateValue, type ResolutionContext, type ResolvedArtifactDisplay, type ResolvedFlag, ResourceVisibility, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextTabConfig, type Role, RollupAttribute, RollupFunction, type RunEffect, type RunMode, SCHEMA_PLAN_LIMITS, SESSION_STATE_STREAM_ID, SESSION_TERMINAL_STATUSES, SKILL_LIST_VIEW, SKILL_OBJECT, SKILL_VIEW, STANDARD_SCHEMA_VENDOR, SYNONYM_ALIASES, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_FILTER_ATTRIBUTE_TYPES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SchemaDriftResult, type SchemaPlan, type SchemaPlanAdditive, type SchemaPlanAdditiveBase, type SchemaPlanChangeSet, type SchemaPlanDestructive, type SchemaPlanImpact, type SchemaPlanImpactEntry, type SchemaPlanOutcome, type SchemaPlanProposalInput, type SchemaPlanStatus, type SchemaPlanViewChanges, type SchemaState, type SearchOptions, SelectAttribute, type SessionApprovalMode, type SessionInferencePatch, type SessionOutcome, type SessionParkedOn, type SessionPhase, type SessionState, type SessionStateChunkData, type SetMeetingRecordingBody, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type StandardSchemaIssue, type StandardSchemaResult, type StartConnectorAuthInput, type StartConnectorAuthResult, type StaticFlagDefault, StatusAttribute, type StorageProvider, type StoredSchemaPlan, type SystemAttribute, type SystemAttributeI18nKey, type SystemFields, type SystemObjectDriftInfo, type SystemPermissions, type SystemResource, TEXT_FORMAT_PATTERNS, TODAY_DEFAULT, TODO_PLAN_STATUSES, TODO_STATUSES, TOOL_APPROVAL_STATES, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, type TenantSettings, type TenantSettingsResponse, type TerminalSessionStatus, TextAttribute, type TextPartData, type ThinkingPartData, TimeFormat, Timestamps, type ToolImpact, type ToolPartData, type ToolPartErrorCode, type ToolPartState, type TranscriptStatus, type TriggerEventType, UPDATE_TABLE_TAB_CHANGE_KEYS, UPDATE_TAB_CHANGE_KEYS, UPDATE_TAB_CONFIG_CHANGE_KEYS, USER_STATUSES, USER_WORK_POSTURES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateDocument, type UpdateFile, type UpdateRoleInput, type UpdateUserProfile, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserLike, type UserProfile, UserReferenceType, type UserRoleAssignment, type UserStatus, type UserWorkPosture, Uuid, ValidationError, type ValueRef, type ViewBaselineOrigin, type ViewChange, ViewConfig, type ViewConfigDelta, ViewDefinition, type ViewOperation, type ViewOrigin, type ViewProjectionStaleLiveEvent, type ViewStateEntry, type ViewStateResolution, type ViewSyncPayload, ViewType, type WithCustomAttributes, type WithCustomRecordAttributes, type WithoutSystemFields, accessLevelToActions, actionsToAccessLevel, agent, agentDataChunk, agentDisplayName, agentInferencePreferencesSchema, agentMessageAttachmentSchema, agentMessagePartSchema, agentSessionInferenceOverridesSchema, agentSessionMessageSchema, agentUIValidationError, applyOperations, applyPipes, applyRelationProps, assertAcyclicComputedDependencies, assertCustomAgentUIMessageChunk, booleanFlag, buildAgentFallbackTitle, buildPermissionFlags, buildPropertySchema, buildQualifiedAttribute, canonicalizeFilterValue, checkbox, collectQualifiedRuleIssues, compareAgentSessionMessages, compileComputedFormula, compileRollupAttribute, computeByteMagnitude, conversationDisplayTitle, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, currentActor, customDataChunkSchemas, date, dateInTimezone, dateValueStart, defineOperation, definePresentation, deriveArchitectChanges, deriveCreateDefaultsFromFilters, deriveInitials, describeAttributeConfig, describeOperationInput, describeOperations, destructiveSchema, detailView, document, durableDateSchema, ensureFieldIds, episodeImpactOf, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, evaluateFilterState, evaluateRecordFilterState, extractAttributeNames, extractCurrencyFilterValue, extractFilterValue, extractValueRefs, flagRegistry, focusOf, form, formFieldFlatKey, formFieldKey, formRegistry, formatAgentStreamFrameId, formatAttributeValue, formatByteSize, formatComputedResult, formatLocationValue, formula, fromDraftableView, generateDefaultDetailView, generateDefaultListView, getActiveTab, getAttributeCapabilities, getAttributeFilterOperators, getEditableLabelAttribute, getErrorMessage, getListViewDisplayAttributeNames, getLiveProtocolPayloadChannel, getOperatorPolarity, getRecordCreatorPrincipalId, getSingleAttributeFromExpression, getSlotFieldTargets, getSystemAttributeI18nKey, getSystemAttributeList, getUserDisplayName, group, hasDestructiveEntries, includesAction, inferRollupReturnType, inferenceReasoningSchema, inferenceSpeedSchema, isAgentUIDataName, isAgentUIMessageBatch, isAttributeFilterable, isAttributeGroupable, isAttributeKanbanGroupable, isAttributeSearchable, isCheckboxEquality, isClaimableSessionStatus, isComputedFunctionName, isDateRangeValue, isDefaultRole, isDocumentAttribute, isDynamicValue, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isLiveEventEnvelope, isLiveEventPayload, isLiveEventPayloadForType, isLiveEventType, isLocationFilterProperty, isLocationPartOperator, isManagedSystemAttribute, isNotEmpty, isNullishOrEmptyString, isOpenToolPartState, isPlainRecord, isRelativeDateValue, isSetMembershipOperator, isStandardSchema, isTerminalSessionStatus, isTerminalState, isToolApprovalState, isValuePresent, jsonFlag, legacyStatusToSessionState, listDescribableNames, listView, liveChannelKey, location, makeFieldId, matchesAccepts, mentionReferenceSchema, modelDefinitionSchema, modelReferenceSchema, multiselect, nativeAgentUIPartIdMetadataKey, normalizeDateValue, normalizeFilterRule, normalizeForEdgeRpc, normalizeOperator, now, number, numberFlag, object, orderAgentSessionMessages, parseAgentStreamFrameId, parseCountMode, parseLiveChannelKey, parseNativeAgentUIPartIdsMetadata, parseOperation, parseOptionalCountMode, parseQualifiedAttribute, persistedDefaultViewTargetSchema, persistedSchemaPlanSchema, phone, plannedAttributeSchema, plannedInlineAttributeSchema, plannedObjectSchema, presentationOf, proposedDefaultViewTargetSchema, providerNameSchema, qualifiedPropertyDefs, readFormFieldValue, registry, relation, relationPropertyDefs, renderLabelExpression, resetViewToDefault, resolveAttributeDefaultValue, resolveEffectiveFilterType, resolveFieldRequired, resolveIsWithinBounds, resolveTextPattern, resolveUtcDayBounds, richtext, rollup, rollupToFormulaExpression, schemaPlanSchema, select, sessionStateToLegacyStatus, status, stringFlag, text, toAttribute, toDraftableAttributes, toDraftableObject, toDraftableView, toMultiValueOperator, toUndefinedIfEmpty, toUtcDayString, today, todoItemSchema, todoPlanSchema, toolImpactSchema, user, validateAttributeName, validateLabelExpression, validateObjectName, validateQualifiedRule, validateViewName, viewRegistry, viewStateKey, viewSyncPayload };
|