@stndrds/schema 1.0.0-alpha.344 → 1.0.0-alpha.346
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-BjBPrd9V.d.ts → all-72y_keWh.d.mts} +11 -16
- package/dist/{all-BrEKv8xR.d.mts → all-DCBPCw9F.d.ts} +11 -16
- package/dist/{checkbox-D8nK0oIO.d.ts → checkbox-CMNq2fkL.d.ts} +2 -2
- package/dist/{checkbox-DSzn5epa.d.mts → checkbox-CpPTW4Qn.d.mts} +2 -2
- package/dist/{config-6uO9OYWQ.mjs → config-BiQGgy7f.mjs} +1 -1
- package/dist/{config-DIBMi8S_.js → config-WUWITOeW.js} +1 -1
- package/dist/{date-CteDw_88.d.mts → date-B8W-uBOd.d.mts} +2 -2
- package/dist/{date-BGULTVlX.d.ts → date-Bn1QYgWY.d.ts} +2 -2
- package/dist/{exceptions-BCfkN2ct.d.mts → exceptions-B3WE8Upv.d.mts} +9 -0
- package/dist/{exceptions-BCfkN2ct.d.ts → exceptions-B3WE8Upv.d.ts} +9 -0
- package/dist/exceptions.d.mts +1 -1
- package/dist/exceptions.d.ts +1 -1
- package/dist/{index-_gdqRN1W.d.mts → index-BKMp1wdz.d.mts} +1 -1
- package/dist/{index-CLEwI8GE.d.ts → index-CL87KvMy.d.ts} +2 -2
- package/dist/{index-DyeLYnEc.d.ts → index-D4Fo465g.d.ts} +1 -1
- package/dist/{index-BKv7a08I.d.ts → index-Dh21B6e4.d.ts} +1 -1
- package/dist/{index-Ds0DxPHk.d.mts → index-Dib0TdMy.d.mts} +2 -2
- package/dist/{index-DzEWbzP-.d.mts → index-nzT7sEBR.d.mts} +1 -1
- package/dist/index.d.mts +446 -16
- package/dist/index.d.ts +446 -16
- package/dist/index.js +9 -9
- package/dist/index.mjs +9 -9
- package/dist/{number-U7UMAXKt.d.mts → number-B52ufFXh.d.mts} +2 -2
- package/dist/{number-BcMYyg8j.d.ts → number-DwKAGHUq.d.ts} +2 -2
- package/dist/{text-CjhjkBXJ.d.mts → text-CjNrbnmS.d.mts} +2 -2
- package/dist/{text-C4EAE9Ap.d.ts → text-LRdjjxmn.d.ts} +2 -2
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/validation/all.d.mts +4 -4
- package/dist/validation/all.d.ts +4 -4
- package/dist/validation/all.js +1 -1
- package/dist/validation/all.mjs +1 -1
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/location.d.mts +2 -2
- package/dist/validation/complex/location.d.ts +2 -2
- package/dist/validation/complex/phone.d.mts +2 -2
- package/dist/validation/complex/phone.d.ts +2 -2
- package/dist/validation/complex/relation.d.mts +2 -2
- package/dist/validation/complex/relation.d.ts +2 -2
- package/dist/validation/complex/richtext.d.mts +2 -2
- package/dist/validation/complex/richtext.d.ts +2 -2
- package/dist/validation/complex/select.d.mts +2 -2
- package/dist/validation/complex/select.d.ts +2 -2
- package/dist/validation/complex/user.d.mts +2 -2
- package/dist/validation/complex/user.d.ts +2 -2
- package/dist/validation/computed/formula.d.mts +2 -2
- package/dist/validation/computed/formula.d.ts +2 -2
- package/dist/validation/computed/rollup.d.mts +2 -2
- package/dist/validation/computed/rollup.d.ts +2 -2
- package/dist/validation/config/index.d.mts +1 -1
- package/dist/validation/config/index.d.ts +1 -1
- package/dist/validation/config/index.js +1 -1
- package/dist/validation/config/index.mjs +1 -1
- package/dist/validation/core/index.d.mts +1 -1
- package/dist/validation/core/index.d.ts +1 -1
- package/dist/validation/object/index.d.mts +1 -1
- package/dist/validation/object/index.d.ts +1 -1
- package/dist/validation/primitives/checkbox.d.mts +1 -1
- package/dist/validation/primitives/checkbox.d.ts +1 -1
- package/dist/validation/primitives/date.d.mts +1 -1
- package/dist/validation/primitives/date.d.ts +1 -1
- package/dist/validation/primitives/number.d.mts +1 -1
- package/dist/validation/primitives/number.d.ts +1 -1
- package/dist/validation/primitives/text.d.mts +1 -1
- package/dist/validation/primitives/text.d.ts +1 -1
- package/dist/{view-config.schema-D6b67GQM.js → view-config.schema-BDQ3S3IE.js} +1 -1
- package/dist/{view-config.schema-CupkOK1m.mjs → view-config.schema-xYyZKn9M.mjs} +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
import { $ as BilateralConfig, $t as indexBy, A as StorageError, An as ComputedDependency, At as StatusGroup, B as isObjectReferencedError, Bn as ComputedFormulaLiteralNode, Bt as OptionPropertyAttribute, C as RepositoryOperation, Cn as assertAcyclicComputedDependencies, Ct as RichTextAttribute, D as SchemaErrorCode, Dn as ComputedFunctionName, Dt as SelectAttribute, E as SchemaError, En as COMPUTED_FUNCTION_NAMES, Et as RollupFunction, F as SystemEntityImmutableError, Fn as ComputedValueType, Ft as inferInverseCardinality, G as BuiltInTransform, Gt as resolvePropertyDefinitions, H as isRecordReferencedError, Hn as ComputedFormulaPathNode, Ht as PropertySchema, I as ValidationError, In as ComputedFormulaAstNode, It as isAttributeSortable, J as ATTRIBUTE_TYPES, Jt as Uuid, K as MigrationDefinition, Kt as TenantId, L as ValidationErrorDetail, Ln as ComputedFormulaBinaryNode, Lt as isBilateralRelation, M as SyncCascadeError, Mn as ComputedOptionsSource, Mt as TimeFormat, N as SyncConflictError, Nn as ComputedPlan, Nt as UserAttribute, O as SchemaPlanNotFoundError, On as ComputedFunctionSignature, Ot as SingleRelationAttribute, P as SyncError, Pn as ComputedReturnType, Pt as UserReferenceType, Q as BaseAttribute, Qt as generateId, R as isAttributeInUseError, Rn as ComputedFormulaBinaryOperator, Rt as isUniversalRelation, S as RepositoryError, Sn as ComputedFormulaCompileError, St as RelationTarget, T as RoleNotFoundError, Tn as COMPUTED_FUNCTIONS, Tt as RollupAttribute, U as isSchemaError, Un as parseComputedFormula, Ut as PropertyType, V as isProtectedResourceError, Vn as ComputedFormulaParseError, Vt as PropertyAttribute, W as isValidationError, Wt as hasOptions, X as AttributeGroup, Xt as asUserId, Y as Attribute, Yt as asTenantId, Z as AttributeType, Zt as deepEqual, _ as ProtectedResourceError, _n as CompileComputedFormulaInput, _t as Option, a as ChangeTypeNotSupportedError, an as COMPUTED_FUNCTION_METADATA, at as DateRangeValue, b as RecordReference, bn as ComputedCompileSchema, bt as RELATION_TARGET_ANY, c as DuplicateError, cn as ComputedFormulaResult, ct as FormulaAttribute, d as MigrationTimeoutError, dn as evaluateComputedFormulaWithResult, dt as LocationAttribute, en as NonJsonValueError, et as CheckboxAttribute, f as NotFoundError, fn as formatComputedResult, ft as LocationGranularity, g as OrphanSystemAttributeError, gn as rollupToFormulaExpression, gt as NumberUnit, h as ObjectReferencedError, hn as inferRollupReturnType, ht as NumberAttribute, i as AttributeUsage, in as serializeStableJson, it as DateFormat, j as StorageOperation, jn as ComputedFieldKind, jt as TextAttribute, k as SearchBackendError, kn as isComputedFunctionName, kt as StatusAttribute, l as ForbiddenError, ln as evaluateComputedAst, lt as FormulaReturnType, m as ObjectNotFoundError, mn as compileRollupAttribute, mt as MultiselectAttribute, n as AttributeInUseError, nn as sameStableValue, nt as CurrencyAttribute, o as ConcurrentModificationError, on as ComputedFunctionCategory, ot as DateValue, p as NotImplementedError, pn as isPlainRecord, pt as MultiRelationAttribute, q as SchemaOperation, qt as UserId, r as AttributeNotFoundError, rn as serializeCanonicalJson, rt as DateAttribute, s as DestructiveSyncNotAllowedError, sn as ComputedFunctionMetadata, st as DocumentAttribute, t as AccessDeniedError, tn as canonicalStringify, tt as Currency, u as MemoryNotFoundError, un as evaluateComputedFormula, ut as Location, v as ProtectedRoleError, vn as ComputedCompileAttribute, vt as Phone, w as ReservedObjectNameError, wn as compileComputedFormula, wt as RichtextAttribute, x as RecordReferencedError, xn as ComputedDependencyGraphNode, xt as RelationAttribute, y as RecordNotFoundError, yn as ComputedCompileObject, yt as PhoneAttribute, z as isNotFoundError, zn as ComputedFormulaCallNode, zt as relationTargetsOf } from "./exceptions-
|
|
3
|
-
import { $ as
|
|
4
|
-
import { A as FolderPreset, C as ResourceVisibility, D as parseResourceVisibility, E as Timestamps, M as PresetNode, O as DocumentLayout, S as ReservedObjectName, T as SystemFieldName, _ as ObjectRecord, a as validateDraft, b as RESOURCE_VISIBILITIES, c as validateObjectOrThrow, f as createFormAttributeValidator, g as ObjectDefinition, h as ObjectAttribute, j as MAX_PRESET_DEPTH, k as DocumentLayoutVariant, m as ListViewTabVisibility, o as validateDraftOrThrow, p as LIST_VIEW_TAB_VISIBILITIES, r as rejectUnknownAttributesOrThrow, s as validateObject, v as RESERVED_ATTRIBUTE_NAMES, w as SYSTEM_FIELD_NAMES, x as ReservedAttributeName, y as RESERVED_OBJECT_NAMES } from "./index-
|
|
5
|
-
import { S as UpdateObjectInput, _ as statusOptionWriteSchema, b as RelationOption, c as parseAttributeConfigForCreate, d as propertyAttributeWireSchema, f as propertySchemaSchema, g as statusGroupSchema, h as selectOptionWriteSchema, l as parseAttributeConfigForUpdate, m as refuseForeignKeys, n as WIRE_OMITTED_CONFIG_KEYS, o as multiselectOptionWriteSchema, p as propertySchemaWireSchema, r as attributeConfigSchemas, s as parseAttributeConfig, t as SIMPLE_PROPERTY_TYPES, u as propertyAttributeSchema, v as AddAttributeInput, x as RelationOptionsResponse, y as CreateCustomObjectInput } from "./index-
|
|
6
|
-
import { n as DEFAULT_VALIDATION_MESSAGES, r as ValidationMessages, t as formatZodErrors } from "./index-
|
|
7
|
-
import { t as createTextValidator } from "./text-
|
|
8
|
-
import { t as createNumberValidator } from "./number-
|
|
9
|
-
import { t as createCheckboxValidator } from "./checkbox-
|
|
10
|
-
import { t as createDateValidator } from "./date-
|
|
2
|
+
import { $ as BilateralConfig, $t as indexBy, A as StorageError, An as ComputedDependency, At as StatusGroup, B as isObjectReferencedError, Bn as ComputedFormulaLiteralNode, Bt as OptionPropertyAttribute, C as RepositoryOperation, Cn as assertAcyclicComputedDependencies, Ct as RichTextAttribute, D as SchemaErrorCode, Dn as ComputedFunctionName, Dt as SelectAttribute, E as SchemaError, En as COMPUTED_FUNCTION_NAMES, Et as RollupFunction, F as SystemEntityImmutableError, Fn as ComputedValueType, Ft as inferInverseCardinality, G as BuiltInTransform, Gt as resolvePropertyDefinitions, H as isRecordReferencedError, Hn as ComputedFormulaPathNode, Ht as PropertySchema, I as ValidationError, In as ComputedFormulaAstNode, It as isAttributeSortable, J as ATTRIBUTE_TYPES, Jt as Uuid, K as MigrationDefinition, Kt as TenantId, L as ValidationErrorDetail, Ln as ComputedFormulaBinaryNode, Lt as isBilateralRelation, M as SyncCascadeError, Mn as ComputedOptionsSource, Mt as TimeFormat, N as SyncConflictError, Nn as ComputedPlan, Nt as UserAttribute, O as SchemaPlanNotFoundError, On as ComputedFunctionSignature, Ot as SingleRelationAttribute, P as SyncError, Pn as ComputedReturnType, Pt as UserReferenceType, Q as BaseAttribute, Qt as generateId, R as isAttributeInUseError, Rn as ComputedFormulaBinaryOperator, Rt as isUniversalRelation, S as RepositoryError, Sn as ComputedFormulaCompileError, St as RelationTarget, T as RoleNotFoundError, Tn as COMPUTED_FUNCTIONS, Tt as RollupAttribute, U as isSchemaError, Un as parseComputedFormula, Ut as PropertyType, V as isProtectedResourceError, Vn as ComputedFormulaParseError, Vt as PropertyAttribute, W as isValidationError, Wt as hasOptions, X as AttributeGroup, Xt as asUserId, Y as Attribute, Yt as asTenantId, Z as AttributeType, Zt as deepEqual, _ as ProtectedResourceError, _n as CompileComputedFormulaInput, _t as Option, a as ChangeTypeNotSupportedError, an as COMPUTED_FUNCTION_METADATA, at as DateRangeValue, b as RecordReference, bn as ComputedCompileSchema, bt as RELATION_TARGET_ANY, c as DuplicateError, cn as ComputedFormulaResult, ct as FormulaAttribute, d as MigrationTimeoutError, dn as evaluateComputedFormulaWithResult, dt as LocationAttribute, en as NonJsonValueError, et as CheckboxAttribute, f as NotFoundError, fn as formatComputedResult, ft as LocationGranularity, g as OrphanSystemAttributeError, gn as rollupToFormulaExpression, gt as NumberUnit, h as ObjectReferencedError, hn as inferRollupReturnType, ht as NumberAttribute, i as AttributeUsage, in as serializeStableJson, it as DateFormat, j as StorageOperation, jn as ComputedFieldKind, jt as TextAttribute, k as SearchBackendError, kn as isComputedFunctionName, kt as StatusAttribute, l as ForbiddenError, ln as evaluateComputedAst, lt as FormulaReturnType, m as ObjectNotFoundError, mn as compileRollupAttribute, mt as MultiselectAttribute, n as AttributeInUseError, nn as sameStableValue, nt as CurrencyAttribute, o as ConcurrentModificationError, on as ComputedFunctionCategory, ot as DateValue, p as NotImplementedError, pn as isPlainRecord, pt as MultiRelationAttribute, q as SchemaOperation, qt as UserId, r as AttributeNotFoundError, rn as serializeCanonicalJson, rt as DateAttribute, s as DestructiveSyncNotAllowedError, sn as ComputedFunctionMetadata, st as DocumentAttribute, t as AccessDeniedError, tn as canonicalStringify, tt as Currency, u as MemoryNotFoundError, un as evaluateComputedFormula, ut as Location, v as ProtectedRoleError, vn as ComputedCompileAttribute, vt as Phone, w as ReservedObjectNameError, wn as compileComputedFormula, wt as RichtextAttribute, x as RecordReferencedError, xn as ComputedDependencyGraphNode, xt as RelationAttribute, y as RecordNotFoundError, yn as ComputedCompileObject, yt as PhoneAttribute, z as isNotFoundError, zn as ComputedFormulaCallNode, zt as relationTargetsOf } from "./exceptions-B3WE8Upv.mjs";
|
|
3
|
+
import { $ as RelativeDateValue, A as FormDensity, B as DynamicValue, C as ContentPlacement, D as DocumentsContentDefinition, E as CustomContentDefinition, F as RichtextContentDefinition, G as FilterRule, H as ExtendedFilterRule, I as ViewContentDefinition, J as NO_VALUE_OPERATORS, K as FilterState, L as ViewRead, M as KanbanCollectionContentDefinition, N as ListViewLayout, O as EmailsContentDefinition, P as MeetingsContentDefinition, Q as QueryState, R as CurrencyFilterValue, S as ContentOpenMode, T as ContentViewDefinition, U as FilterCombinator, V as EdgeQuantifier, W as FilterOperator, X as OPERATORS_BY_TYPE, Y as NoValueOperator, Z as PhoneFilterValue, _ as CollectionContentSource, a as displayAttributesSchema, b as ContentField, c as filterStateSchema, d as colorIdSchema, et as SortDirection, f as iconNameSchema, g as CollectionContentDefinition, h as CollectionAction, i as contentViewDefinitionSchemaFor, it as isNoValueOperator, j as FormsContentDefinition, k as FormContentDefinition, l as publishedViewContentDefinitionSchema, m as ActivityContentDefinition, n as columnsSchema, nt as filterOperatorsByTypeForGeneration, o as draftContentViewDefinitionSchema, p as SCHEMA_LIMITS, q as FilterValue, r as contentViewDefinitionSchema, rt as getRollupFilterOperators, s as draftContentViewDefinitionSchemaFor, t as collectionContentSourceSchema, tt as SortRule, u as sortsSchema, v as ColumnReference, w as ContentViewContext, x as ContentFieldGroup, y as ContentCreateMode, z as DayMonthValue } from "./all-72y_keWh.mjs";
|
|
4
|
+
import { A as FolderPreset, C as ResourceVisibility, D as parseResourceVisibility, E as Timestamps, M as PresetNode, O as DocumentLayout, S as ReservedObjectName, T as SystemFieldName, _ as ObjectRecord, a as validateDraft, b as RESOURCE_VISIBILITIES, c as validateObjectOrThrow, f as createFormAttributeValidator, g as ObjectDefinition, h as ObjectAttribute, j as MAX_PRESET_DEPTH, k as DocumentLayoutVariant, m as ListViewTabVisibility, o as validateDraftOrThrow, p as LIST_VIEW_TAB_VISIBILITIES, r as rejectUnknownAttributesOrThrow, s as validateObject, v as RESERVED_ATTRIBUTE_NAMES, w as SYSTEM_FIELD_NAMES, x as ReservedAttributeName, y as RESERVED_OBJECT_NAMES } from "./index-Dib0TdMy.mjs";
|
|
5
|
+
import { S as UpdateObjectInput, _ as statusOptionWriteSchema, b as RelationOption, c as parseAttributeConfigForCreate, d as propertyAttributeWireSchema, f as propertySchemaSchema, g as statusGroupSchema, h as selectOptionWriteSchema, l as parseAttributeConfigForUpdate, m as refuseForeignKeys, n as WIRE_OMITTED_CONFIG_KEYS, o as multiselectOptionWriteSchema, p as propertySchemaWireSchema, r as attributeConfigSchemas, s as parseAttributeConfig, t as SIMPLE_PROPERTY_TYPES, u as propertyAttributeSchema, v as AddAttributeInput, x as RelationOptionsResponse, y as CreateCustomObjectInput } from "./index-BKMp1wdz.mjs";
|
|
6
|
+
import { n as DEFAULT_VALIDATION_MESSAGES, r as ValidationMessages, t as formatZodErrors } from "./index-nzT7sEBR.mjs";
|
|
7
|
+
import { t as createTextValidator } from "./text-CjNrbnmS.mjs";
|
|
8
|
+
import { t as createNumberValidator } from "./number-B52ufFXh.mjs";
|
|
9
|
+
import { t as createCheckboxValidator } from "./checkbox-CpPTW4Qn.mjs";
|
|
10
|
+
import { t as createDateValidator } from "./date-B8W-uBOd.mjs";
|
|
11
11
|
import z, { z as z$1 } from "zod";
|
|
12
12
|
import { ColorId, CountryIso3, CurrencyCode, IconName, MimeType } from "@stndrds/constants";
|
|
13
13
|
import { StandardSchemaV1, StandardSchemaV1 as StandardSchemaV1$1 } from "@standard-schema/spec";
|
|
@@ -1113,6 +1113,19 @@ export interface AuditChange {
|
|
|
1113
1113
|
/** Resolved labels for newValue array, aligned by index. */
|
|
1114
1114
|
newLabels?: string[];
|
|
1115
1115
|
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Metadata key of the conversation an entry was written in, stamped by the
|
|
1118
|
+
* runtime on every write that happens during an agent turn. A definition-less
|
|
1119
|
+
* general chat writes as the human — it pins no agent actor — so `actorType`
|
|
1120
|
+
* alone cannot tell such a write from a manual edit (#3782); this key can.
|
|
1121
|
+
*/
|
|
1122
|
+
export declare const AUDIT_AGENT_SESSION_METADATA_KEY = "agentSessionId";
|
|
1123
|
+
/**
|
|
1124
|
+
* Whether an AI wrote this entry: an agent actor did, or a human's own
|
|
1125
|
+
* conversation did on their behalf. The feed wears the AI cue on both; the
|
|
1126
|
+
* human stays the author of the second.
|
|
1127
|
+
*/
|
|
1128
|
+
export declare function isAgentWrittenAuditEntry(entry: Pick<AuditLogEntry, "actorType" | "metadata">): boolean;
|
|
1116
1129
|
/**
|
|
1117
1130
|
* Audit log entry - immutable record of an action
|
|
1118
1131
|
*/
|
|
@@ -1423,6 +1436,43 @@ export declare const INFERENCE_SPEEDS: readonly ["standard", "fast"];
|
|
|
1423
1436
|
export type InferenceSpeed = (typeof INFERENCE_SPEEDS)[number];
|
|
1424
1437
|
export declare const INFERENCE_REASONING_OPTIONS: readonly ["none", "minimal", "low", "medium", "high", "xhigh"];
|
|
1425
1438
|
export type InferenceReasoning = (typeof INFERENCE_REASONING_OPTIONS)[number];
|
|
1439
|
+
/** The kinds of work Auto routing classifies a turn into. */
|
|
1440
|
+
export declare const AGENT_TASK_KINDS: readonly ["conversation", "writing", "coding", "analysis", "extraction"];
|
|
1441
|
+
export type AgentTaskKind = (typeof AGENT_TASK_KINDS)[number];
|
|
1442
|
+
/**
|
|
1443
|
+
* How demanding a classified turn is, least to most. A model's authored level
|
|
1444
|
+
* is a ceiling, not a band: qualified for heavy serves light too.
|
|
1445
|
+
*/
|
|
1446
|
+
export declare const TASK_DEMAND_LEVELS: readonly ["light", "standard", "heavy"];
|
|
1447
|
+
export type TaskDemandLevel = (typeof TASK_DEMAND_LEVELS)[number];
|
|
1448
|
+
/**
|
|
1449
|
+
* Who picks the model for a turn. `manual` is the default everywhere except a
|
|
1450
|
+
* spawned agent session, which is created in `auto`. Branch on the union
|
|
1451
|
+
* exhaustively; never add an `isAuto` boolean.
|
|
1452
|
+
*/
|
|
1453
|
+
export declare const INFERENCE_ROUTING_MODES: readonly ["manual", "auto"];
|
|
1454
|
+
export type InferenceRouting = (typeof INFERENCE_ROUTING_MODES)[number];
|
|
1455
|
+
/**
|
|
1456
|
+
* Which ceiling a routed turn is held to. `interactive` is a root session in
|
|
1457
|
+
* interactive mode — a person is at it, sees the routed model on every reply
|
|
1458
|
+
* and can take the wheel. Everything else is `delegated`: a spawned session,
|
|
1459
|
+
* an inline run, an autonomous root nobody watches.
|
|
1460
|
+
*/
|
|
1461
|
+
export type RoutingContext = "interactive" | "delegated";
|
|
1462
|
+
/** USD per million tokens, one figure per dimension. */
|
|
1463
|
+
export interface RoutingPrice {
|
|
1464
|
+
readonly inputPerMillionUsd: number;
|
|
1465
|
+
readonly outputPerMillionUsd: number;
|
|
1466
|
+
}
|
|
1467
|
+
/**
|
|
1468
|
+
* A bill the client did not choose is a defect, so price gates admission rather
|
|
1469
|
+
* than merely breaking ties. Above these, Auto never routes at all; the model
|
|
1470
|
+
* stays selectable by hand, which returns the decision to the person.
|
|
1471
|
+
*
|
|
1472
|
+
* Declared here, not in the runtime, because `packages/ui` shows which models
|
|
1473
|
+
* Auto may route to with the same numbers. One home, no drift.
|
|
1474
|
+
*/
|
|
1475
|
+
export declare const ROUTING_PRICE_CEILINGS: Record<RoutingContext, RoutingPrice>;
|
|
1426
1476
|
/** The only model identity clients may persist. Capabilities always come from the catalogue. */
|
|
1427
1477
|
export interface ModelReference {
|
|
1428
1478
|
provider: ProviderName;
|
|
@@ -1432,6 +1482,8 @@ export interface ModelReference {
|
|
|
1432
1482
|
export interface AgentInferencePreferences {
|
|
1433
1483
|
speed?: InferenceSpeed;
|
|
1434
1484
|
reasoning?: InferenceReasoning;
|
|
1485
|
+
/** `auto` lets the router pick the model per turn. Absent means `manual`. */
|
|
1486
|
+
routing?: InferenceRouting;
|
|
1435
1487
|
}
|
|
1436
1488
|
/** Durable per-conversation dimensions layered over an agent's inference defaults. */
|
|
1437
1489
|
export interface AgentSessionInferenceOverrides extends AgentInferencePreferences {
|
|
@@ -1445,7 +1497,10 @@ export type SessionInferencePatch = {
|
|
|
1445
1497
|
speed?: InferenceSpeed | null;
|
|
1446
1498
|
reasoning?: InferenceReasoning | null;
|
|
1447
1499
|
imageModel?: string | null;
|
|
1500
|
+
routing?: InferenceRouting | null;
|
|
1448
1501
|
};
|
|
1502
|
+
/** Every dimension a session patch may carry — the one list the server and the client both apply. */
|
|
1503
|
+
export declare const SESSION_INFERENCE_PATCH_KEYS: readonly ["model", "speed", "reasoning", "imageModel", "routing"];
|
|
1449
1504
|
export interface ModelDefinition extends ModelReference {
|
|
1450
1505
|
maxTokens?: number;
|
|
1451
1506
|
/**
|
|
@@ -2077,6 +2132,19 @@ export interface AIAvailableModel {
|
|
|
2077
2132
|
readonly recommendationRank?: number;
|
|
2078
2133
|
/** Editorial economical-to-powerful position; never treated as a benchmark. */
|
|
2079
2134
|
readonly profile?: AIModelProfile;
|
|
2135
|
+
/**
|
|
2136
|
+
* Per task, the highest demand this model is qualified to serve. An absent
|
|
2137
|
+
* entry means Auto never routes that task here; an absent map means Auto
|
|
2138
|
+
* never routes here at all. Routability IS this map — there is no separate
|
|
2139
|
+
* flag that could contradict it.
|
|
2140
|
+
*/
|
|
2141
|
+
readonly tasks?: Partial<Record<AgentTaskKind, TaskDemandLevel>>;
|
|
2142
|
+
/**
|
|
2143
|
+
* The non-promotional price, authored when the snapshot's rate is an
|
|
2144
|
+
* introductory one. Routing judges at `max(snapshot, listPricing)` per
|
|
2145
|
+
* dimension, so a stale figure here can only ever be too low.
|
|
2146
|
+
*/
|
|
2147
|
+
readonly listPricing?: RoutingPrice;
|
|
2080
2148
|
/** Canonical per-token decimal strings copied from Vercel AI Gateway. */
|
|
2081
2149
|
readonly pricing?: AIModelPricing;
|
|
2082
2150
|
/**
|
|
@@ -2349,6 +2417,15 @@ export interface AIChatNotification {
|
|
|
2349
2417
|
/** Child's report, unwrapped from the `<subagent_result>` envelope; rendered as markdown. */
|
|
2350
2418
|
body: string;
|
|
2351
2419
|
}
|
|
2420
|
+
/** How an assistant message's model was chosen, when its turn ran under Auto. */
|
|
2421
|
+
export interface AIChatMessageRouting {
|
|
2422
|
+
/** `provider/model` as persisted on the message; the UI resolves the label. */
|
|
2423
|
+
model: string;
|
|
2424
|
+
/** Absent together with `demand` when the router declined and the default ran. */
|
|
2425
|
+
tasks?: readonly AgentTaskKind[];
|
|
2426
|
+
demand?: TaskDemandLevel;
|
|
2427
|
+
reason?: "selected" | "retained" | "fallback";
|
|
2428
|
+
}
|
|
2352
2429
|
/**
|
|
2353
2430
|
* Chat message for runtime/streaming.
|
|
2354
2431
|
*
|
|
@@ -2391,6 +2468,8 @@ export interface AIChatMessage {
|
|
|
2391
2468
|
input: number;
|
|
2392
2469
|
output: number;
|
|
2393
2470
|
};
|
|
2471
|
+
/** Present only on an assistant message whose turn ran under Auto. */
|
|
2472
|
+
routing?: AIChatMessageRouting;
|
|
2394
2473
|
}
|
|
2395
2474
|
/**
|
|
2396
2475
|
* Question types supported by the agent
|
|
@@ -5471,6 +5550,52 @@ export interface SessionImageUsage {
|
|
|
5471
5550
|
}[];
|
|
5472
5551
|
}
|
|
5473
5552
|
//#endregion
|
|
5553
|
+
//#region src/types/model-catalog.d.ts
|
|
5554
|
+
/**
|
|
5555
|
+
* An `AIAvailableModel` whose caps are guaranteed present.
|
|
5556
|
+
*
|
|
5557
|
+
* They are optional on `AIAvailableModel` because the runtime resolves them
|
|
5558
|
+
* from the vendored Gateway snapshot. A model published remotely but absent
|
|
5559
|
+
* from that snapshot would fail the boot, so the payload carries them: this
|
|
5560
|
+
* is what lets a model released yesterday work with no snapshot refresh.
|
|
5561
|
+
*/
|
|
5562
|
+
export type CatalogTextModel = AIAvailableModel & {
|
|
5563
|
+
readonly contextWindow: number;
|
|
5564
|
+
readonly maxOutputTokens: number;
|
|
5565
|
+
};
|
|
5566
|
+
/** Exact Gateway request per format; `size` where the provider wants pixels, `aspectRatio` otherwise. */
|
|
5567
|
+
export type ImageFormatRequest = {
|
|
5568
|
+
readonly size: `${number}x${number}`;
|
|
5569
|
+
} | {
|
|
5570
|
+
readonly aspectRatio: `${number}:${number}`;
|
|
5571
|
+
};
|
|
5572
|
+
export interface CatalogImageModel extends ImageModelOption {
|
|
5573
|
+
readonly requests: Readonly<Record<ImageFormat, ImageFormatRequest>>;
|
|
5574
|
+
readonly isDefault?: boolean;
|
|
5575
|
+
}
|
|
5576
|
+
export interface CatalogEmbeddingModel {
|
|
5577
|
+
readonly model: string;
|
|
5578
|
+
readonly dimensions: number;
|
|
5579
|
+
}
|
|
5580
|
+
/**
|
|
5581
|
+
* What `models.standards.new/catalog.json` serves and what a Standards
|
|
5582
|
+
* deployment reads at boot. Unknown fields are preserved, not merely
|
|
5583
|
+
* tolerated: that is the forward-compatibility mechanism replacing a version
|
|
5584
|
+
* prefix, and it only works if nothing on the read path rebuilds these objects.
|
|
5585
|
+
*/
|
|
5586
|
+
export interface ModelCatalogPayload {
|
|
5587
|
+
/** ISO 8601 publication time. Informational; nothing decides on it. */
|
|
5588
|
+
readonly publishedAt: string;
|
|
5589
|
+
readonly text: readonly CatalogTextModel[];
|
|
5590
|
+
readonly image: readonly CatalogImageModel[];
|
|
5591
|
+
/**
|
|
5592
|
+
* Optional: nothing on the read path consumes it (`grep` is empty across
|
|
5593
|
+
* `runtime/src` and `adapter-nestjs/src`), so requiring it would let a typo
|
|
5594
|
+
* in an unread field degrade a whole fleet to its compiled manifest.
|
|
5595
|
+
*/
|
|
5596
|
+
readonly embedding?: CatalogEmbeddingModel;
|
|
5597
|
+
}
|
|
5598
|
+
//#endregion
|
|
5474
5599
|
//#region src/types/quota.d.ts
|
|
5475
5600
|
/**
|
|
5476
5601
|
* Capacity quotas. The union stays finite so
|
|
@@ -6888,6 +7013,13 @@ declare class FormulaAttributeBuilder<TName extends string> extends BaseAttribut
|
|
|
6888
7013
|
* Set decimal places for number results
|
|
6889
7014
|
*/
|
|
6890
7015
|
decimals(value: number): this;
|
|
7016
|
+
/**
|
|
7017
|
+
* Set the ISO 4217 code a `number` result renders with (#3419). The value
|
|
7018
|
+
* stays a number and `returnType` stays `"number"`; this only carries the
|
|
7019
|
+
* symbol to the screen — the rollup's `.targetCurrency()` for a formula.
|
|
7020
|
+
* @param code - ISO 4217 code (e.g. "EUR")
|
|
7021
|
+
*/
|
|
7022
|
+
currency(code: CurrencyCode): this;
|
|
6891
7023
|
required(): any;
|
|
6892
7024
|
optional(): any;
|
|
6893
7025
|
}
|
|
@@ -7699,7 +7831,6 @@ interface CatalogueViolation {
|
|
|
7699
7831
|
* aside rule is the one a read of stored data must be able to set aside
|
|
7700
7832
|
* without matching on message text. Identity stays `key`.
|
|
7701
7833
|
*/
|
|
7702
|
-
readonly rule: "aside" | "catalogue";
|
|
7703
7834
|
/** The content at fault, or null for a rule about the view as a whole. */
|
|
7704
7835
|
readonly contentName: string | null;
|
|
7705
7836
|
readonly path: readonly string[];
|
|
@@ -7729,12 +7860,12 @@ export declare function attributeInventory(objectName: string, names: readonly s
|
|
|
7729
7860
|
*/
|
|
7730
7861
|
export declare function collectContentViewCatalogue(input: ContentViewCatalogueInput): ContentViewCatalogueCollection;
|
|
7731
7862
|
/**
|
|
7732
|
-
* Refuses what a reader of STORED views must
|
|
7863
|
+
* Refuses what a reader of STORED views must refuse.
|
|
7733
7864
|
*
|
|
7734
|
-
*
|
|
7735
|
-
* a
|
|
7736
|
-
*
|
|
7737
|
-
*
|
|
7865
|
+
* It once set one body of rules aside — the aside rule was write-time only, so
|
|
7866
|
+
* a stored view could predate it. That rule is gone (a view's aside now takes
|
|
7867
|
+
* any number of contents, of any type), and with it the exemption and the
|
|
7868
|
+
* `rule` discriminator that carried it. A reader refuses every violation.
|
|
7738
7869
|
*/
|
|
7739
7870
|
export declare function validateStoredViews(input: ContentViewCatalogueInput): void;
|
|
7740
7871
|
/** Resolves names against a collected snapshot; it performs no writes or adoption. */
|
|
@@ -12348,6 +12479,43 @@ export declare function conversationDisplayTitle(input: ConversationDisplayTitle
|
|
|
12348
12479
|
export declare const SCHEMA_SOURCE_ID_PATTERN: RegExp;
|
|
12349
12480
|
export declare function assertSchemaSourceId(sourceId: string): void;
|
|
12350
12481
|
//#endregion
|
|
12482
|
+
//#region src/utils/routing-price.d.ts
|
|
12483
|
+
/**
|
|
12484
|
+
* USD per million tokens for one dimension, judged at the HIGHEST figure the
|
|
12485
|
+
* dimension can cost: the greater of the flat rate and every tier's cost.
|
|
12486
|
+
*
|
|
12487
|
+
* A tiered dimension charges more past a prompt-length threshold, and the
|
|
12488
|
+
* snapshot carries both the flat rate and the tiers side by side. Reading the
|
|
12489
|
+
* flat rate alone would judge a model at its cheapest tier and then bill the
|
|
12490
|
+
* dearer one on a long prompt — a model sitting exactly on the delegated
|
|
12491
|
+
* ceiling at its first tier crosses it by half at its second. The routing
|
|
12492
|
+
* price exists to protect the bill, so it errs high on purpose (D4).
|
|
12493
|
+
*
|
|
12494
|
+
* The result is rounded to the nearest micro-dollar because scaling a per-token
|
|
12495
|
+
* decimal by a million is a binary-float operation: `0.0000004 * 1e6` is
|
|
12496
|
+
* `0.39999999999999997`, which no catalogue ever charges. Rounding below the
|
|
12497
|
+
* smallest figure any provider publishes keeps the arithmetic exact where it is
|
|
12498
|
+
* read — comparisons, ordering and the displayed price — without inventing
|
|
12499
|
+
* precision.
|
|
12500
|
+
*/
|
|
12501
|
+
export declare function pricePerMillion(dimension: AIModelPriceDimension | undefined): number | undefined;
|
|
12502
|
+
/**
|
|
12503
|
+
* The price routing judges a model at: per dimension, the greater of the rate
|
|
12504
|
+
* the turn will be billed at (`pricing.fast` when Fast is asked for and
|
|
12505
|
+
* priced, else the base) and the authored list price.
|
|
12506
|
+
*
|
|
12507
|
+
* Taking the maximum makes the rule self-correcting. While a promotion runs,
|
|
12508
|
+
* the authored figure wins and the model is judged at what it will cost
|
|
12509
|
+
* later. Once a snapshot refresh raises the base, the snapshot wins and the
|
|
12510
|
+
* authored figure becomes inert rather than wrong. `undefined` when the
|
|
12511
|
+
* snapshot has no price at all: an unknown price is not a low price.
|
|
12512
|
+
*/
|
|
12513
|
+
export declare function routingPrice(model: Pick<AIAvailableModel, "pricing" | "listPricing">, speed: InferenceSpeed): RoutingPrice | undefined;
|
|
12514
|
+
/** Both dimensions at or under the ceiling. An unknown price never passes. */
|
|
12515
|
+
export declare function isUnderRoutingCeiling(price: RoutingPrice | undefined, ceiling: RoutingPrice): boolean;
|
|
12516
|
+
/** Routability is the presence of at least one task entry, nothing else. */
|
|
12517
|
+
export declare function isRoutableModel(model: Pick<AIAvailableModel, "tasks">): boolean;
|
|
12518
|
+
//#endregion
|
|
12351
12519
|
//#region src/types/schema-plan.d.ts
|
|
12352
12520
|
/** An attribute to add to an object that already exists, or is created in the same plan. */
|
|
12353
12521
|
export interface PlannedAttribute {
|
|
@@ -12980,6 +13148,10 @@ export declare const inferenceReasoningSchema: z$1.ZodEnum<{
|
|
|
12980
13148
|
high: "high";
|
|
12981
13149
|
xhigh: "xhigh";
|
|
12982
13150
|
}>;
|
|
13151
|
+
export declare const inferenceRoutingSchema: z$1.ZodEnum<{
|
|
13152
|
+
manual: "manual";
|
|
13153
|
+
auto: "auto";
|
|
13154
|
+
}>;
|
|
12983
13155
|
export declare const modelReferenceSchema: z$1.ZodObject<{
|
|
12984
13156
|
provider: z$1.ZodEnum<{
|
|
12985
13157
|
openai: "openai";
|
|
@@ -13009,6 +13181,10 @@ export declare const agentInferencePreferencesSchema: z$1.ZodObject<{
|
|
|
13009
13181
|
high: "high";
|
|
13010
13182
|
xhigh: "xhigh";
|
|
13011
13183
|
}>>;
|
|
13184
|
+
routing: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13185
|
+
manual: "manual";
|
|
13186
|
+
auto: "auto";
|
|
13187
|
+
}>>;
|
|
13012
13188
|
}, z$1.core.$strict>;
|
|
13013
13189
|
/** Syntax only; availability is checked by the dedicated server catalogue. */
|
|
13014
13190
|
export declare const imageModelIdSchema: z$1.ZodString;
|
|
@@ -13042,6 +13218,10 @@ export declare const agentSessionInferenceOverridesInputSchema: z$1.ZodObject<{
|
|
|
13042
13218
|
xhigh: "xhigh";
|
|
13043
13219
|
}>>;
|
|
13044
13220
|
imageModel: z$1.ZodOptional<z$1.ZodString>;
|
|
13221
|
+
routing: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13222
|
+
manual: "manual";
|
|
13223
|
+
auto: "auto";
|
|
13224
|
+
}>>;
|
|
13045
13225
|
}, z$1.core.$strict>;
|
|
13046
13226
|
export declare const agentSessionInferenceOverridesSchema: z$1.ZodObject<{
|
|
13047
13227
|
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -13073,6 +13253,10 @@ export declare const agentSessionInferenceOverridesSchema: z$1.ZodObject<{
|
|
|
13073
13253
|
xhigh: "xhigh";
|
|
13074
13254
|
}>>;
|
|
13075
13255
|
imageModel: z$1.ZodOptional<z$1.ZodString>;
|
|
13256
|
+
routing: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13257
|
+
manual: "manual";
|
|
13258
|
+
auto: "auto";
|
|
13259
|
+
}>>;
|
|
13076
13260
|
}, z$1.core.$strict>;
|
|
13077
13261
|
export declare const sessionInferencePatchSchema: z$1.ZodObject<{
|
|
13078
13262
|
model: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -13104,7 +13288,47 @@ export declare const sessionInferencePatchSchema: z$1.ZodObject<{
|
|
|
13104
13288
|
xhigh: "xhigh";
|
|
13105
13289
|
}>>>;
|
|
13106
13290
|
imageModel: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
13291
|
+
routing: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodEnum<{
|
|
13292
|
+
manual: "manual";
|
|
13293
|
+
auto: "auto";
|
|
13294
|
+
}>>>;
|
|
13107
13295
|
}, z$1.core.$strict>;
|
|
13296
|
+
/**
|
|
13297
|
+
* The slice of an assistant message's `metadata.inference` the chat reads to
|
|
13298
|
+
* say what answered. Non-strict on purpose: `speed` and `warnings` ride along
|
|
13299
|
+
* and are dropped, and only a turn that ran under Auto carries `routing`.
|
|
13300
|
+
*/
|
|
13301
|
+
export declare const routedMessageInferenceSchema: z$1.ZodObject<{
|
|
13302
|
+
model: z$1.ZodString;
|
|
13303
|
+
routing: z$1.ZodObject<{
|
|
13304
|
+
mode: z$1.ZodLiteral<"auto">;
|
|
13305
|
+
tasks: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
13306
|
+
conversation: "conversation";
|
|
13307
|
+
writing: "writing";
|
|
13308
|
+
coding: "coding";
|
|
13309
|
+
analysis: "analysis";
|
|
13310
|
+
extraction: "extraction";
|
|
13311
|
+
}>>>;
|
|
13312
|
+
demand: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13313
|
+
standard: "standard";
|
|
13314
|
+
light: "light";
|
|
13315
|
+
heavy: "heavy";
|
|
13316
|
+
}>>;
|
|
13317
|
+
reason: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13318
|
+
selected: "selected";
|
|
13319
|
+
retained: "retained";
|
|
13320
|
+
fallback: "fallback";
|
|
13321
|
+
}>>;
|
|
13322
|
+
relation: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13323
|
+
unknown: "unknown";
|
|
13324
|
+
continue: "continue";
|
|
13325
|
+
aside: "aside";
|
|
13326
|
+
new: "new";
|
|
13327
|
+
modify: "modify";
|
|
13328
|
+
}>>;
|
|
13329
|
+
anchorMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
13330
|
+
}, z$1.core.$strip>;
|
|
13331
|
+
}, z$1.core.$strip>;
|
|
13108
13332
|
export declare const toolImpactSchema: z$1.ZodObject<{
|
|
13109
13333
|
label: z$1.ZodString;
|
|
13110
13334
|
denied: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
@@ -13815,6 +14039,212 @@ export type AgentUIDataChunk = { [Name in keyof AgentUIDataTypes & string]: {
|
|
|
13815
14039
|
export declare function assertCustomAgentUIMessageChunk(value: unknown): AgentUIDataChunk;
|
|
13816
14040
|
export declare function agentDataChunk<K extends keyof AgentUIDataTypes & string>(name: K, data: AgentUIDataTypes[K], options?: AgentDataChunkOptions): AgentUIDataChunk;
|
|
13817
14041
|
//#endregion
|
|
14042
|
+
//#region src/validators/model-catalog.schema.d.ts
|
|
14043
|
+
/**
|
|
14044
|
+
* Built per model so every refusal can name the id the reader is looking at,
|
|
14045
|
+
* and `free` can decide whether a zero price is a declaration or a typo.
|
|
14046
|
+
* `looseObject`, never `object`: an unknown field a newer publisher added must
|
|
14047
|
+
* reach the reader, or the "no versioning" decision is a fiction.
|
|
14048
|
+
*/
|
|
14049
|
+
export declare function catalogTextModelSchema(id: string, free: boolean): z$1.ZodObject<{
|
|
14050
|
+
id: z$1.ZodString;
|
|
14051
|
+
apiModelId: z$1.ZodOptional<z$1.ZodString>;
|
|
14052
|
+
provider: z$1.ZodEnum<{
|
|
14053
|
+
openai: "openai";
|
|
14054
|
+
anthropic: "anthropic";
|
|
14055
|
+
google: "google";
|
|
14056
|
+
spacexai: "spacexai";
|
|
14057
|
+
deepseek: "deepseek";
|
|
14058
|
+
moonshotai: "moonshotai";
|
|
14059
|
+
alibaba: "alibaba";
|
|
14060
|
+
mistral: "mistral";
|
|
14061
|
+
minimax: "minimax";
|
|
14062
|
+
meta: "meta";
|
|
14063
|
+
zai: "zai";
|
|
14064
|
+
}>;
|
|
14065
|
+
label: z$1.ZodString;
|
|
14066
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
14067
|
+
recommended: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
14068
|
+
recommendationRank: z$1.ZodOptional<z$1.ZodNumber>;
|
|
14069
|
+
profile: z$1.ZodOptional<z$1.ZodObject<{
|
|
14070
|
+
position: z$1.ZodNumber;
|
|
14071
|
+
label: z$1.ZodEnum<{
|
|
14072
|
+
"Very economical": "Very economical";
|
|
14073
|
+
Balanced: "Balanced";
|
|
14074
|
+
Powerful: "Powerful";
|
|
14075
|
+
"Very powerful": "Very powerful";
|
|
14076
|
+
}>;
|
|
14077
|
+
guidance: z$1.ZodString;
|
|
14078
|
+
}, z$1.core.$loose>>;
|
|
14079
|
+
pricing: z$1.ZodObject<{
|
|
14080
|
+
fast: z$1.ZodOptional<z$1.ZodObject<{
|
|
14081
|
+
input: z$1.ZodObject<{
|
|
14082
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
14083
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
14084
|
+
cost: z$1.ZodString;
|
|
14085
|
+
min: z$1.ZodNumber;
|
|
14086
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
14087
|
+
}, z$1.core.$loose>>>;
|
|
14088
|
+
}, z$1.core.$loose>;
|
|
14089
|
+
output: z$1.ZodObject<{
|
|
14090
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
14091
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
14092
|
+
cost: z$1.ZodString;
|
|
14093
|
+
min: z$1.ZodNumber;
|
|
14094
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
14095
|
+
}, z$1.core.$loose>>>;
|
|
14096
|
+
}, z$1.core.$loose>;
|
|
14097
|
+
cacheRead: z$1.ZodOptional<z$1.ZodObject<{
|
|
14098
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
14099
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
14100
|
+
cost: z$1.ZodString;
|
|
14101
|
+
min: z$1.ZodNumber;
|
|
14102
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
14103
|
+
}, z$1.core.$loose>>>;
|
|
14104
|
+
}, z$1.core.$loose>>;
|
|
14105
|
+
cacheWrite: z$1.ZodOptional<z$1.ZodObject<{
|
|
14106
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
14107
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
14108
|
+
cost: z$1.ZodString;
|
|
14109
|
+
min: z$1.ZodNumber;
|
|
14110
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
14111
|
+
}, z$1.core.$loose>>>;
|
|
14112
|
+
}, z$1.core.$loose>>;
|
|
14113
|
+
}, z$1.core.$loose>>;
|
|
14114
|
+
input: z$1.ZodObject<{
|
|
14115
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
14116
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
14117
|
+
cost: z$1.ZodString;
|
|
14118
|
+
min: z$1.ZodNumber;
|
|
14119
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
14120
|
+
}, z$1.core.$loose>>>;
|
|
14121
|
+
}, z$1.core.$loose>;
|
|
14122
|
+
output: z$1.ZodObject<{
|
|
14123
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
14124
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
14125
|
+
cost: z$1.ZodString;
|
|
14126
|
+
min: z$1.ZodNumber;
|
|
14127
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
14128
|
+
}, z$1.core.$loose>>>;
|
|
14129
|
+
}, z$1.core.$loose>;
|
|
14130
|
+
cacheRead: z$1.ZodOptional<z$1.ZodObject<{
|
|
14131
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
14132
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
14133
|
+
cost: z$1.ZodString;
|
|
14134
|
+
min: z$1.ZodNumber;
|
|
14135
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
14136
|
+
}, z$1.core.$loose>>>;
|
|
14137
|
+
}, z$1.core.$loose>>;
|
|
14138
|
+
cacheWrite: z$1.ZodOptional<z$1.ZodObject<{
|
|
14139
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
14140
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
14141
|
+
cost: z$1.ZodString;
|
|
14142
|
+
min: z$1.ZodNumber;
|
|
14143
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
14144
|
+
}, z$1.core.$loose>>>;
|
|
14145
|
+
}, z$1.core.$loose>>;
|
|
14146
|
+
}, z$1.core.$loose>;
|
|
14147
|
+
free: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
14148
|
+
reasoningOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
14149
|
+
none: "none";
|
|
14150
|
+
minimal: "minimal";
|
|
14151
|
+
low: "low";
|
|
14152
|
+
medium: "medium";
|
|
14153
|
+
high: "high";
|
|
14154
|
+
xhigh: "xhigh";
|
|
14155
|
+
}>>>;
|
|
14156
|
+
reasoningMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
14157
|
+
unsupported: "unsupported";
|
|
14158
|
+
effort: "effort";
|
|
14159
|
+
toggle: "toggle";
|
|
14160
|
+
budget: "budget";
|
|
14161
|
+
"model-controlled": "model-controlled";
|
|
14162
|
+
}>>;
|
|
14163
|
+
inputModalities: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
14164
|
+
text: "text";
|
|
14165
|
+
image: "image";
|
|
14166
|
+
video: "video";
|
|
14167
|
+
audio: "audio";
|
|
14168
|
+
pdf: "pdf";
|
|
14169
|
+
}>>>;
|
|
14170
|
+
supportedParameters: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
14171
|
+
supportsTools: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
14172
|
+
supportsStructuredOutput: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
14173
|
+
isDefault: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
14174
|
+
contextWindow: z$1.ZodNumber;
|
|
14175
|
+
maxOutputTokens: z$1.ZodNumber;
|
|
14176
|
+
unverified: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
14177
|
+
isCompactionModel: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
14178
|
+
isUtilityModel: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
14179
|
+
revealStyle: z$1.ZodOptional<z$1.ZodEnum<{
|
|
14180
|
+
character: "character";
|
|
14181
|
+
word: "word";
|
|
14182
|
+
}>>;
|
|
14183
|
+
tasks: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodEnum<{
|
|
14184
|
+
conversation: "conversation";
|
|
14185
|
+
writing: "writing";
|
|
14186
|
+
coding: "coding";
|
|
14187
|
+
analysis: "analysis";
|
|
14188
|
+
extraction: "extraction";
|
|
14189
|
+
}> & z$1.core.$partial, z$1.ZodEnum<{
|
|
14190
|
+
standard: "standard";
|
|
14191
|
+
light: "light";
|
|
14192
|
+
heavy: "heavy";
|
|
14193
|
+
}>>>;
|
|
14194
|
+
listPricing: z$1.ZodOptional<z$1.ZodObject<{
|
|
14195
|
+
inputPerMillionUsd: z$1.ZodNumber;
|
|
14196
|
+
outputPerMillionUsd: z$1.ZodNumber;
|
|
14197
|
+
}, z$1.core.$strip>>;
|
|
14198
|
+
}, z$1.core.$loose>;
|
|
14199
|
+
/**
|
|
14200
|
+
* `id` is handed whole to `gateway.imageModel(...)`, so it is bounded twice:
|
|
14201
|
+
* by the same syntax the session override obeys (`imageModelIdSchema`) and by
|
|
14202
|
+
* the invariant the compiled manifest already holds — the id starts with its
|
|
14203
|
+
* own provider. `provider` is NOT bounded by `PROVIDER_NAMES`: that tuple names
|
|
14204
|
+
* text providers, and the shipped manifest's `bfl` and `recraft` image models
|
|
14205
|
+
* are absent from it, so the check the text door applies would refuse a valid
|
|
14206
|
+
* catalogue outright.
|
|
14207
|
+
*/
|
|
14208
|
+
export declare function catalogImageModelSchema(id: string): z$1.ZodObject<{
|
|
14209
|
+
id: z$1.ZodString;
|
|
14210
|
+
name: z$1.ZodString;
|
|
14211
|
+
provider: z$1.ZodString;
|
|
14212
|
+
formats: z$1.ZodArray<z$1.ZodEnum<{
|
|
14213
|
+
square: "square";
|
|
14214
|
+
landscape: "landscape";
|
|
14215
|
+
portrait: "portrait";
|
|
14216
|
+
}>>;
|
|
14217
|
+
requests: z$1.ZodObject<{
|
|
14218
|
+
square: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
14219
|
+
size: z$1.ZodCustom<`${number}x${number}`, `${number}x${number}`>;
|
|
14220
|
+
}, z$1.core.$loose>, z$1.ZodObject<{
|
|
14221
|
+
aspectRatio: z$1.ZodCustom<`${number}:${number}`, `${number}:${number}`>;
|
|
14222
|
+
}, z$1.core.$loose>]>;
|
|
14223
|
+
landscape: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
14224
|
+
size: z$1.ZodCustom<`${number}x${number}`, `${number}x${number}`>;
|
|
14225
|
+
}, z$1.core.$loose>, z$1.ZodObject<{
|
|
14226
|
+
aspectRatio: z$1.ZodCustom<`${number}:${number}`, `${number}:${number}`>;
|
|
14227
|
+
}, z$1.core.$loose>]>;
|
|
14228
|
+
portrait: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
14229
|
+
size: z$1.ZodCustom<`${number}x${number}`, `${number}x${number}`>;
|
|
14230
|
+
}, z$1.core.$loose>, z$1.ZodObject<{
|
|
14231
|
+
aspectRatio: z$1.ZodCustom<`${number}:${number}`, `${number}:${number}`>;
|
|
14232
|
+
}, z$1.core.$loose>]>;
|
|
14233
|
+
}, z$1.core.$loose>;
|
|
14234
|
+
isDefault: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
14235
|
+
}, z$1.core.$loose>;
|
|
14236
|
+
export declare const catalogEmbeddingSchema: z$1.ZodObject<{
|
|
14237
|
+
model: z$1.ZodString;
|
|
14238
|
+
dimensions: z$1.ZodNumber;
|
|
14239
|
+
}, z$1.core.$loose>;
|
|
14240
|
+
/**
|
|
14241
|
+
* Turn an untrusted catalogue document into a `ModelCatalogPayload`, or refuse
|
|
14242
|
+
* it with the exact cause. What is refused is a catalogue a deployment could
|
|
14243
|
+
* not run on — including one that is well-formed but incoherent, such as two
|
|
14244
|
+
* models claiming to be the default. Unknown fields survive.
|
|
14245
|
+
*/
|
|
14246
|
+
export declare function parseModelCatalog(input: unknown): ModelCatalogPayload;
|
|
14247
|
+
//#endregion
|
|
13818
14248
|
//#region src/validators/schema-state.schema.d.ts
|
|
13819
14249
|
export declare function compareSchemaStateEntries(a: SchemaStateEntry, b: SchemaStateEntry): number;
|
|
13820
14250
|
export declare function schemaStateSourcePayload(entries: readonly SchemaStateEntry[]): {
|
|
@@ -13828,4 +14258,4 @@ export declare function schemaStateSourcePayload(entries: readonly SchemaStateEn
|
|
|
13828
14258
|
export declare function parseSchemaState(input: unknown): SchemaState;
|
|
13829
14259
|
export declare function diffSchemaState(state: SchemaState): SchemaStateDiff;
|
|
13830
14260
|
//#endregion
|
|
13831
|
-
export { ATTRIBUTE_TYPES, AccessDeniedError, type ActivityContentDefinition, AddAttributeInput, type ArchitectChange, type ArchitectFocus, type ArchitectImpact, type ArchitectNavigation, type ArchitectPresentation, type ArchitectProjection,
|
|
14261
|
+
export { ATTRIBUTE_TYPES, AccessDeniedError, type ActivityContentDefinition, AddAttributeInput, type ArchitectChange, type ArchitectFocus, type ArchitectImpact, type ArchitectNavigation, type ArchitectPresentation, type ArchitectProjection, Attribute, type AttributeAgentCapabilities, type AttributeAuthoringCapabilities, type AttributeCapabilities, type AttributeCardinality, type AttributeDefaultValueCapability, type AttributeExchangeCapabilities, AttributeGroup, AttributeInUseError, type AttributeLifecycleCapabilities, type AttributeLike, AttributeNotFoundError, type AttributePolymorphicCapability, type AttributePresentationCapabilities, type AttributeQueryCapabilities, type AttributeRequiredCapability, type AttributeStorageCapabilities, type AttributeStorageMode, AttributeType, AttributeUsage, BaseAttribute, type BaseOperation, type BatchGuidance, BilateralConfig, BuiltInTransform, COMPUTED_FUNCTIONS, COMPUTED_FUNCTION_METADATA, COMPUTED_FUNCTION_NAMES, type CanonicalViewOperationInput, type CatalogueViolation, ChangeTypeNotSupportedError, CheckboxAttribute, type CollectionAction, type CollectionContentDefinition, type CollectionContentSource, type CollectionSourceAddress, type ColumnReference, type ColumnsNeeded, CompileComputedFormulaInput, ComputedCompileAttribute, ComputedCompileObject, ComputedCompileSchema, ComputedDependency, ComputedDependencyGraphNode, ComputedFieldKind, ComputedFormulaAstNode, ComputedFormulaBinaryNode, ComputedFormulaBinaryOperator, ComputedFormulaCallNode, ComputedFormulaCompileError, ComputedFormulaLiteralNode, ComputedFormulaParseError, ComputedFormulaPathNode, ComputedFormulaResult, ComputedFunctionCategory, ComputedFunctionMetadata, ComputedFunctionName, ComputedFunctionSignature, ComputedOptionsSource, ComputedPlan, ComputedReturnType, ComputedValueType, ConcurrentModificationError, type ContentCreateMode, type ContentExtensionDefinition, type ContentField, type ContentFieldGroup, type ContentNavigation, type ContentOpenMode, type ContentPlacement, type ContentViewCatalogueCollection, type ContentViewCatalogueInput, type ContentViewCatalogueResult, type ContentViewContext, type ContentViewDefinition, type ConversationDisplayTitleInput, CreateCustomObjectInput, type CreateDBForm, type CreateDBFormSubmission, Currency, CurrencyAttribute, type CurrencyFilterValue, type CustomContentDefinition, type DBForm, type DBFormSubmission, DEFAULT_VALIDATION_MESSAGES, DateAttribute, DateFormat, DateRangeValue, DateValue, type DayMonthValue, type DefaultResolutionContext, type DefaultViewType, DestructiveSyncNotAllowedError, DocumentAttribute, DocumentLayout, DocumentLayoutVariant, type DocumentsContentDefinition, type DraftAppendCommand, type DraftAppendReceipt, type DraftCommandGuard, type DraftContentState, type DraftFocus, type DraftObjectSettings, type DraftOperationContext, type DraftPublishCommand, type DraftRefusal, type DraftSummary, type DraftViewAuthoring, type DraftableAttribute, type DraftableObject, type DraftableSampleRecord, type DraftableState, type DraftableView, DuplicateError, type DwellMode, type DynamicValue, type EdgeQuantifier, type EditingCapability, type EditingScope, type EmailsContentDefinition, type ExhaustiveDraftObjectSettings, type ExtendedFilterRule, type FilterCombinator, type FilterOperator, type FilterRule, type FilterState, type FilterValue, type FlagResolutionContext, FolderPreset, ForbiddenError, type FormContentDefinition, type FormDensity, FormRegistry, type FormsContentDefinition, FormulaAttribute, FormulaReturnType, type KanbanCollectionContentDefinition, LIST_VIEW_TAB_VISIBILITIES, type LabelContext, type ListViewLayout, ListViewTabVisibility, Location, LocationAttribute, type LocationFilterProperty, LocationGranularity, MAX_PRESET_DEPTH, type MeetingsContentDefinition, MemoryNotFoundError, MigrationDefinition, MigrationTimeoutError, MultiRelationAttribute, MultiselectAttribute, type MutationReceipt, NO_VALUE_OPERATORS, type NamedTarget, type NextStep, type NoValueOperator, NonJsonValueError, NotFoundError, NotImplementedError, NumberAttribute, NumberUnit, OPERATORS_BY_TYPE, ObjectAttribute, ObjectDefinition, ObjectNotFoundError, ObjectRecord, ObjectReferencedError, type OperationDef, type OperationFamily, type OperationPace, Option, OptionPropertyAttribute, OrphanSystemAttributeError, Phone, PhoneAttribute, type PhoneFilterValue, PresetNode, PropertyAttribute, PropertySchema, PropertyType, type ProposalRevision, type ProposalTarget, ProtectedResourceError, ProtectedRoleError, type QueryState, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RESERVED_OBJECT_NAMES, RESOURCE_VISIBILITIES, type ReconcileRelationAttributesInput, type ReconciledRelationAttributes, RecordNotFoundError, RecordReference, RecordReferencedError, RelationAttribute, RelationOption, RelationOptionsResponse, type RelationPair, RelationTarget, type RelativeDateValue, RepositoryError, RepositoryOperation, ReservedAttributeName, ReservedObjectName, ReservedObjectNameError, ResourceVisibility, RichTextAttribute, RichtextAttribute, type RichtextContentDefinition, RoleNotFoundError, RollupAttribute, RollupFunction, SCHEMA_LIMITS, SIMPLE_PROPERTY_TYPES, SYSTEM_FIELD_NAMES, type SamplePublication, SchemaError, SchemaErrorCode, SchemaOperation, SchemaPlanNotFoundError, SearchBackendError, SelectAttribute, SingleRelationAttribute, type SortDirection, type SortRule, type StandardSchemaV1, StatusAttribute, StatusGroup, StorageError, StorageOperation, type StoredContentDefinition, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, SystemFieldName, type TenantId, TextAttribute, TimeFormat, Timestamps, type UpdateDBForm, type UpdateDBFormSubmission, UpdateObjectInput, UserAttribute, type UserId, type UserLike, UserReferenceType, type Uuid, ValidationError, ValidationErrorDetail, type ValidationMessages, type ValueRef, type ViewContentDefinition, type ViewOperation, type ViewRead, WIRE_OMITTED_CONFIG_KEYS, asTenantId, asUserId, assertAcyclicComputedDependencies, attributeConfigSchemas, canonicalStringify, collectionContentSourceSchema, colorIdSchema, columnsSchema, compileComputedFormula, compileRollupAttribute, contentViewDefinitionSchema, contentViewDefinitionSchemaFor, createCheckboxValidator, createDateValidator, createFormAttributeValidator, createNumberValidator, createTextValidator, deepEqual, displayAttributesSchema, draftContentViewDefinitionSchema, draftContentViewDefinitionSchemaFor, evaluateComputedAst, evaluateComputedFormula, evaluateComputedFormulaWithResult, filterOperatorsByTypeForGeneration, filterStateSchema, formatComputedResult, formatZodErrors, generateId, getRollupFilterOperators, hasOptions, iconNameSchema, indexBy, inferInverseCardinality, inferRollupReturnType, isAttributeInUseError, isAttributeSortable, isBilateralRelation, isComputedFunctionName, isNoValueOperator, isNotFoundError, isObjectReferencedError, isPlainRecord, isProtectedResourceError, isRecordReferencedError, isSchemaError, isUniversalRelation, isValidationError, multiselectOptionWriteSchema, parseAttributeConfig, parseAttributeConfigForCreate, parseAttributeConfigForUpdate, parseComputedFormula, parseResourceVisibility, propertyAttributeSchema, propertyAttributeWireSchema, propertySchemaSchema, propertySchemaWireSchema, publishedViewContentDefinitionSchema, refuseForeignKeys, rejectUnknownAttributesOrThrow, relationTargetsOf, resolvePropertyDefinitions, rollupToFormulaExpression, sameStableValue, selectOptionWriteSchema, serializeCanonicalJson, serializeStableJson, sortsSchema, statusGroupSchema, statusOptionWriteSchema, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow };
|