@stndrds/schema 1.0.0-alpha.344 → 1.0.0-alpha.345
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-BfNS2KEx.d.ts} +3 -8
- package/dist/{all-BrEKv8xR.d.mts → all-DdTEiYEh.d.mts} +3 -8
- package/dist/index.d.mts +249 -13
- package/dist/index.d.ts +249 -13
- package/dist/index.js +9 -9
- package/dist/index.mjs +9 -9
- package/dist/validation/all.d.mts +1 -1
- package/dist/validation/all.d.ts +1 -1
- package/dist/validation/all.js +1 -1
- package/dist/validation/all.mjs +1 -1
- package/dist/{view-config.schema-CupkOK1m.mjs → view-config.schema-DbO6eQgP.mjs} +1 -1
- package/dist/{view-config.schema-D6b67GQM.js → view-config.schema-Omtzavho.js} +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
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-BCfkN2ct.js";
|
|
3
|
-
import { $ as
|
|
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-BfNS2KEx.js";
|
|
4
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-CLEwI8GE.js";
|
|
5
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-BKv7a08I.js";
|
|
6
6
|
import { n as DEFAULT_VALIDATION_MESSAGES, r as ValidationMessages, t as formatZodErrors } from "./index-DyeLYnEc.js";
|
|
@@ -5471,6 +5471,52 @@ export interface SessionImageUsage {
|
|
|
5471
5471
|
}[];
|
|
5472
5472
|
}
|
|
5473
5473
|
//#endregion
|
|
5474
|
+
//#region src/types/model-catalog.d.ts
|
|
5475
|
+
/**
|
|
5476
|
+
* An `AIAvailableModel` whose caps are guaranteed present.
|
|
5477
|
+
*
|
|
5478
|
+
* They are optional on `AIAvailableModel` because the runtime resolves them
|
|
5479
|
+
* from the vendored Gateway snapshot. A model published remotely but absent
|
|
5480
|
+
* from that snapshot would fail the boot, so the payload carries them: this
|
|
5481
|
+
* is what lets a model released yesterday work with no snapshot refresh.
|
|
5482
|
+
*/
|
|
5483
|
+
export type CatalogTextModel = AIAvailableModel & {
|
|
5484
|
+
readonly contextWindow: number;
|
|
5485
|
+
readonly maxOutputTokens: number;
|
|
5486
|
+
};
|
|
5487
|
+
/** Exact Gateway request per format; `size` where the provider wants pixels, `aspectRatio` otherwise. */
|
|
5488
|
+
export type ImageFormatRequest = {
|
|
5489
|
+
readonly size: `${number}x${number}`;
|
|
5490
|
+
} | {
|
|
5491
|
+
readonly aspectRatio: `${number}:${number}`;
|
|
5492
|
+
};
|
|
5493
|
+
export interface CatalogImageModel extends ImageModelOption {
|
|
5494
|
+
readonly requests: Readonly<Record<ImageFormat, ImageFormatRequest>>;
|
|
5495
|
+
readonly isDefault?: boolean;
|
|
5496
|
+
}
|
|
5497
|
+
export interface CatalogEmbeddingModel {
|
|
5498
|
+
readonly model: string;
|
|
5499
|
+
readonly dimensions: number;
|
|
5500
|
+
}
|
|
5501
|
+
/**
|
|
5502
|
+
* What `models.standards.new/catalog.json` serves and what a Standards
|
|
5503
|
+
* deployment reads at boot. Unknown fields are preserved, not merely
|
|
5504
|
+
* tolerated: that is the forward-compatibility mechanism replacing a version
|
|
5505
|
+
* prefix, and it only works if nothing on the read path rebuilds these objects.
|
|
5506
|
+
*/
|
|
5507
|
+
export interface ModelCatalogPayload {
|
|
5508
|
+
/** ISO 8601 publication time. Informational; nothing decides on it. */
|
|
5509
|
+
readonly publishedAt: string;
|
|
5510
|
+
readonly text: readonly CatalogTextModel[];
|
|
5511
|
+
readonly image: readonly CatalogImageModel[];
|
|
5512
|
+
/**
|
|
5513
|
+
* Optional: nothing on the read path consumes it (`grep` is empty across
|
|
5514
|
+
* `runtime/src` and `adapter-nestjs/src`), so requiring it would let a typo
|
|
5515
|
+
* in an unread field degrade a whole fleet to its compiled manifest.
|
|
5516
|
+
*/
|
|
5517
|
+
readonly embedding?: CatalogEmbeddingModel;
|
|
5518
|
+
}
|
|
5519
|
+
//#endregion
|
|
5474
5520
|
//#region src/types/quota.d.ts
|
|
5475
5521
|
/**
|
|
5476
5522
|
* Capacity quotas. The union stays finite so
|
|
@@ -7699,7 +7745,6 @@ interface CatalogueViolation {
|
|
|
7699
7745
|
* aside rule is the one a read of stored data must be able to set aside
|
|
7700
7746
|
* without matching on message text. Identity stays `key`.
|
|
7701
7747
|
*/
|
|
7702
|
-
readonly rule: "aside" | "catalogue";
|
|
7703
7748
|
/** The content at fault, or null for a rule about the view as a whole. */
|
|
7704
7749
|
readonly contentName: string | null;
|
|
7705
7750
|
readonly path: readonly string[];
|
|
@@ -7729,12 +7774,12 @@ export declare function attributeInventory(objectName: string, names: readonly s
|
|
|
7729
7774
|
*/
|
|
7730
7775
|
export declare function collectContentViewCatalogue(input: ContentViewCatalogueInput): ContentViewCatalogueCollection;
|
|
7731
7776
|
/**
|
|
7732
|
-
* Refuses what a reader of STORED views must
|
|
7777
|
+
* Refuses what a reader of STORED views must refuse.
|
|
7733
7778
|
*
|
|
7734
|
-
*
|
|
7735
|
-
* a
|
|
7736
|
-
*
|
|
7737
|
-
*
|
|
7779
|
+
* It once set one body of rules aside — the aside rule was write-time only, so
|
|
7780
|
+
* a stored view could predate it. That rule is gone (a view's aside now takes
|
|
7781
|
+
* any number of contents, of any type), and with it the exemption and the
|
|
7782
|
+
* `rule` discriminator that carried it. A reader refuses every violation.
|
|
7738
7783
|
*/
|
|
7739
7784
|
export declare function validateStoredViews(input: ContentViewCatalogueInput): void;
|
|
7740
7785
|
/** Resolves names against a collected snapshot; it performs no writes or adoption. */
|
|
@@ -12969,8 +13014,8 @@ export declare const providerNameSchema: z$1.ZodEnum<{
|
|
|
12969
13014
|
zai: "zai";
|
|
12970
13015
|
}>;
|
|
12971
13016
|
export declare const inferenceSpeedSchema: z$1.ZodEnum<{
|
|
12972
|
-
standard: "standard";
|
|
12973
13017
|
fast: "fast";
|
|
13018
|
+
standard: "standard";
|
|
12974
13019
|
}>;
|
|
12975
13020
|
export declare const inferenceReasoningSchema: z$1.ZodEnum<{
|
|
12976
13021
|
none: "none";
|
|
@@ -12998,8 +13043,8 @@ export declare const modelReferenceSchema: z$1.ZodObject<{
|
|
|
12998
13043
|
}, z$1.core.$strict>;
|
|
12999
13044
|
export declare const agentInferencePreferencesSchema: z$1.ZodObject<{
|
|
13000
13045
|
speed: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13001
|
-
standard: "standard";
|
|
13002
13046
|
fast: "fast";
|
|
13047
|
+
standard: "standard";
|
|
13003
13048
|
}>>;
|
|
13004
13049
|
reasoning: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13005
13050
|
none: "none";
|
|
@@ -13030,8 +13075,8 @@ export declare const agentSessionInferenceOverridesInputSchema: z$1.ZodObject<{
|
|
|
13030
13075
|
model: z$1.ZodString;
|
|
13031
13076
|
}, z$1.core.$strict>>;
|
|
13032
13077
|
speed: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13033
|
-
standard: "standard";
|
|
13034
13078
|
fast: "fast";
|
|
13079
|
+
standard: "standard";
|
|
13035
13080
|
}>>;
|
|
13036
13081
|
reasoning: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13037
13082
|
none: "none";
|
|
@@ -13061,8 +13106,8 @@ export declare const agentSessionInferenceOverridesSchema: z$1.ZodObject<{
|
|
|
13061
13106
|
model: z$1.ZodString;
|
|
13062
13107
|
}, z$1.core.$strict>>;
|
|
13063
13108
|
speed: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13064
|
-
standard: "standard";
|
|
13065
13109
|
fast: "fast";
|
|
13110
|
+
standard: "standard";
|
|
13066
13111
|
}>>;
|
|
13067
13112
|
reasoning: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13068
13113
|
none: "none";
|
|
@@ -13092,8 +13137,8 @@ export declare const sessionInferencePatchSchema: z$1.ZodObject<{
|
|
|
13092
13137
|
model: z$1.ZodString;
|
|
13093
13138
|
}, z$1.core.$strict>>>;
|
|
13094
13139
|
speed: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodEnum<{
|
|
13095
|
-
standard: "standard";
|
|
13096
13140
|
fast: "fast";
|
|
13141
|
+
standard: "standard";
|
|
13097
13142
|
}>>>;
|
|
13098
13143
|
reasoning: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodEnum<{
|
|
13099
13144
|
none: "none";
|
|
@@ -13815,6 +13860,197 @@ export type AgentUIDataChunk = { [Name in keyof AgentUIDataTypes & string]: {
|
|
|
13815
13860
|
export declare function assertCustomAgentUIMessageChunk(value: unknown): AgentUIDataChunk;
|
|
13816
13861
|
export declare function agentDataChunk<K extends keyof AgentUIDataTypes & string>(name: K, data: AgentUIDataTypes[K], options?: AgentDataChunkOptions): AgentUIDataChunk;
|
|
13817
13862
|
//#endregion
|
|
13863
|
+
//#region src/validators/model-catalog.schema.d.ts
|
|
13864
|
+
/**
|
|
13865
|
+
* Built per model so every refusal can name the id the reader is looking at,
|
|
13866
|
+
* and `free` can decide whether a zero price is a declaration or a typo.
|
|
13867
|
+
* `looseObject`, never `object`: an unknown field a newer publisher added must
|
|
13868
|
+
* reach the reader, or the "no versioning" decision is a fiction.
|
|
13869
|
+
*/
|
|
13870
|
+
export declare function catalogTextModelSchema(id: string, free: boolean): z$1.ZodObject<{
|
|
13871
|
+
id: z$1.ZodString;
|
|
13872
|
+
apiModelId: z$1.ZodOptional<z$1.ZodString>;
|
|
13873
|
+
provider: z$1.ZodEnum<{
|
|
13874
|
+
openai: "openai";
|
|
13875
|
+
anthropic: "anthropic";
|
|
13876
|
+
google: "google";
|
|
13877
|
+
spacexai: "spacexai";
|
|
13878
|
+
deepseek: "deepseek";
|
|
13879
|
+
moonshotai: "moonshotai";
|
|
13880
|
+
alibaba: "alibaba";
|
|
13881
|
+
mistral: "mistral";
|
|
13882
|
+
minimax: "minimax";
|
|
13883
|
+
meta: "meta";
|
|
13884
|
+
zai: "zai";
|
|
13885
|
+
}>;
|
|
13886
|
+
label: z$1.ZodString;
|
|
13887
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
13888
|
+
recommended: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
13889
|
+
recommendationRank: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13890
|
+
profile: z$1.ZodOptional<z$1.ZodObject<{
|
|
13891
|
+
position: z$1.ZodNumber;
|
|
13892
|
+
label: z$1.ZodEnum<{
|
|
13893
|
+
"Very economical": "Very economical";
|
|
13894
|
+
Balanced: "Balanced";
|
|
13895
|
+
Powerful: "Powerful";
|
|
13896
|
+
"Very powerful": "Very powerful";
|
|
13897
|
+
}>;
|
|
13898
|
+
guidance: z$1.ZodString;
|
|
13899
|
+
}, z$1.core.$loose>>;
|
|
13900
|
+
pricing: z$1.ZodObject<{
|
|
13901
|
+
fast: z$1.ZodOptional<z$1.ZodObject<{
|
|
13902
|
+
input: z$1.ZodObject<{
|
|
13903
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
13904
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
13905
|
+
cost: z$1.ZodString;
|
|
13906
|
+
min: z$1.ZodNumber;
|
|
13907
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13908
|
+
}, z$1.core.$loose>>>;
|
|
13909
|
+
}, z$1.core.$loose>;
|
|
13910
|
+
output: z$1.ZodObject<{
|
|
13911
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
13912
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
13913
|
+
cost: z$1.ZodString;
|
|
13914
|
+
min: z$1.ZodNumber;
|
|
13915
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13916
|
+
}, z$1.core.$loose>>>;
|
|
13917
|
+
}, z$1.core.$loose>;
|
|
13918
|
+
cacheRead: z$1.ZodOptional<z$1.ZodObject<{
|
|
13919
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
13920
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
13921
|
+
cost: z$1.ZodString;
|
|
13922
|
+
min: z$1.ZodNumber;
|
|
13923
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13924
|
+
}, z$1.core.$loose>>>;
|
|
13925
|
+
}, z$1.core.$loose>>;
|
|
13926
|
+
cacheWrite: z$1.ZodOptional<z$1.ZodObject<{
|
|
13927
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
13928
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
13929
|
+
cost: z$1.ZodString;
|
|
13930
|
+
min: z$1.ZodNumber;
|
|
13931
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13932
|
+
}, z$1.core.$loose>>>;
|
|
13933
|
+
}, z$1.core.$loose>>;
|
|
13934
|
+
}, z$1.core.$loose>>;
|
|
13935
|
+
input: z$1.ZodObject<{
|
|
13936
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
13937
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
13938
|
+
cost: z$1.ZodString;
|
|
13939
|
+
min: z$1.ZodNumber;
|
|
13940
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13941
|
+
}, z$1.core.$loose>>>;
|
|
13942
|
+
}, z$1.core.$loose>;
|
|
13943
|
+
output: z$1.ZodObject<{
|
|
13944
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
13945
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
13946
|
+
cost: z$1.ZodString;
|
|
13947
|
+
min: z$1.ZodNumber;
|
|
13948
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13949
|
+
}, z$1.core.$loose>>>;
|
|
13950
|
+
}, z$1.core.$loose>;
|
|
13951
|
+
cacheRead: z$1.ZodOptional<z$1.ZodObject<{
|
|
13952
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
13953
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
13954
|
+
cost: z$1.ZodString;
|
|
13955
|
+
min: z$1.ZodNumber;
|
|
13956
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13957
|
+
}, z$1.core.$loose>>>;
|
|
13958
|
+
}, z$1.core.$loose>>;
|
|
13959
|
+
cacheWrite: z$1.ZodOptional<z$1.ZodObject<{
|
|
13960
|
+
perToken: z$1.ZodOptional<z$1.ZodString>;
|
|
13961
|
+
tiers: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
13962
|
+
cost: z$1.ZodString;
|
|
13963
|
+
min: z$1.ZodNumber;
|
|
13964
|
+
max: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13965
|
+
}, z$1.core.$loose>>>;
|
|
13966
|
+
}, z$1.core.$loose>>;
|
|
13967
|
+
}, z$1.core.$loose>;
|
|
13968
|
+
free: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
13969
|
+
reasoningOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
13970
|
+
none: "none";
|
|
13971
|
+
minimal: "minimal";
|
|
13972
|
+
low: "low";
|
|
13973
|
+
medium: "medium";
|
|
13974
|
+
high: "high";
|
|
13975
|
+
xhigh: "xhigh";
|
|
13976
|
+
}>>>;
|
|
13977
|
+
reasoningMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13978
|
+
unsupported: "unsupported";
|
|
13979
|
+
effort: "effort";
|
|
13980
|
+
toggle: "toggle";
|
|
13981
|
+
budget: "budget";
|
|
13982
|
+
"model-controlled": "model-controlled";
|
|
13983
|
+
}>>;
|
|
13984
|
+
inputModalities: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
|
|
13985
|
+
text: "text";
|
|
13986
|
+
image: "image";
|
|
13987
|
+
video: "video";
|
|
13988
|
+
audio: "audio";
|
|
13989
|
+
pdf: "pdf";
|
|
13990
|
+
}>>>;
|
|
13991
|
+
supportedParameters: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
13992
|
+
supportsTools: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
13993
|
+
supportsStructuredOutput: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
13994
|
+
isDefault: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
13995
|
+
contextWindow: z$1.ZodNumber;
|
|
13996
|
+
maxOutputTokens: z$1.ZodNumber;
|
|
13997
|
+
unverified: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
13998
|
+
isCompactionModel: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
13999
|
+
isUtilityModel: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
14000
|
+
revealStyle: z$1.ZodOptional<z$1.ZodEnum<{
|
|
14001
|
+
character: "character";
|
|
14002
|
+
word: "word";
|
|
14003
|
+
}>>;
|
|
14004
|
+
}, z$1.core.$loose>;
|
|
14005
|
+
/**
|
|
14006
|
+
* `id` is handed whole to `gateway.imageModel(...)`, so it is bounded twice:
|
|
14007
|
+
* by the same syntax the session override obeys (`imageModelIdSchema`) and by
|
|
14008
|
+
* the invariant the compiled manifest already holds — the id starts with its
|
|
14009
|
+
* own provider. `provider` is NOT bounded by `PROVIDER_NAMES`: that tuple names
|
|
14010
|
+
* text providers, and the shipped manifest's `bfl` and `recraft` image models
|
|
14011
|
+
* are absent from it, so the check the text door applies would refuse a valid
|
|
14012
|
+
* catalogue outright.
|
|
14013
|
+
*/
|
|
14014
|
+
export declare function catalogImageModelSchema(id: string): z$1.ZodObject<{
|
|
14015
|
+
id: z$1.ZodString;
|
|
14016
|
+
name: z$1.ZodString;
|
|
14017
|
+
provider: z$1.ZodString;
|
|
14018
|
+
formats: z$1.ZodArray<z$1.ZodEnum<{
|
|
14019
|
+
square: "square";
|
|
14020
|
+
landscape: "landscape";
|
|
14021
|
+
portrait: "portrait";
|
|
14022
|
+
}>>;
|
|
14023
|
+
requests: z$1.ZodObject<{
|
|
14024
|
+
square: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
14025
|
+
size: z$1.ZodCustom<`${number}x${number}`, `${number}x${number}`>;
|
|
14026
|
+
}, z$1.core.$loose>, z$1.ZodObject<{
|
|
14027
|
+
aspectRatio: z$1.ZodCustom<`${number}:${number}`, `${number}:${number}`>;
|
|
14028
|
+
}, z$1.core.$loose>]>;
|
|
14029
|
+
landscape: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
14030
|
+
size: z$1.ZodCustom<`${number}x${number}`, `${number}x${number}`>;
|
|
14031
|
+
}, z$1.core.$loose>, z$1.ZodObject<{
|
|
14032
|
+
aspectRatio: z$1.ZodCustom<`${number}:${number}`, `${number}:${number}`>;
|
|
14033
|
+
}, z$1.core.$loose>]>;
|
|
14034
|
+
portrait: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
14035
|
+
size: z$1.ZodCustom<`${number}x${number}`, `${number}x${number}`>;
|
|
14036
|
+
}, z$1.core.$loose>, z$1.ZodObject<{
|
|
14037
|
+
aspectRatio: z$1.ZodCustom<`${number}:${number}`, `${number}:${number}`>;
|
|
14038
|
+
}, z$1.core.$loose>]>;
|
|
14039
|
+
}, z$1.core.$loose>;
|
|
14040
|
+
isDefault: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
14041
|
+
}, z$1.core.$loose>;
|
|
14042
|
+
export declare const catalogEmbeddingSchema: z$1.ZodObject<{
|
|
14043
|
+
model: z$1.ZodString;
|
|
14044
|
+
dimensions: z$1.ZodNumber;
|
|
14045
|
+
}, z$1.core.$loose>;
|
|
14046
|
+
/**
|
|
14047
|
+
* Turn an untrusted catalogue document into a `ModelCatalogPayload`, or refuse
|
|
14048
|
+
* it with the exact cause. What is refused is a catalogue a deployment could
|
|
14049
|
+
* not run on — including one that is well-formed but incoherent, such as two
|
|
14050
|
+
* models claiming to be the default. Unknown fields survive.
|
|
14051
|
+
*/
|
|
14052
|
+
export declare function parseModelCatalog(input: unknown): ModelCatalogPayload;
|
|
14053
|
+
//#endregion
|
|
13818
14054
|
//#region src/validators/schema-state.schema.d.ts
|
|
13819
14055
|
export declare function compareSchemaStateEntries(a: SchemaStateEntry, b: SchemaStateEntry): number;
|
|
13820
14056
|
export declare function schemaStateSourcePayload(entries: readonly SchemaStateEntry[]): {
|
|
@@ -13828,4 +14064,4 @@ export declare function schemaStateSourcePayload(entries: readonly SchemaStateEn
|
|
|
13828
14064
|
export declare function parseSchemaState(input: unknown): SchemaState;
|
|
13829
14065
|
export declare function diffSchemaState(state: SchemaState): SchemaStateDiff;
|
|
13830
14066
|
//#endregion
|
|
13831
|
-
export { ATTRIBUTE_TYPES, AccessDeniedError, type ActivityContentDefinition, AddAttributeInput, type ArchitectChange, type ArchitectFocus, type ArchitectImpact, type ArchitectNavigation, type ArchitectPresentation, type ArchitectProjection,
|
|
14067
|
+
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 };
|