@objectstack/service-ai 6.9.0 → 7.1.0

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/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { AIToolDefinition, ToolExecutionContext, ToolCallPart, ToolResultPart, IDataEngine, Logger, IAIService, IAIConversationService, LLMAdapter, ModelMessage, AIRequestOptions, AIResult, GenerateObjectOptions, AIObjectResult, TextStreamPart, ToolSet, ChatWithToolsOptions, ProposePendingActionInput, PendingActionStatus, PendingActionRow, AIConversation, IMetadataService, IKnowledgeService, IAutomationService } from '@objectstack/spec/contracts';
1
+ import { AIToolDefinition, ToolExecutionContext, ToolCallPart, ToolResultPart, IDataEngine, Logger, IAIService, IAIConversationService, LLMAdapter, ModelMessage, AIRequestOptions, AIResult, GenerateObjectOptions, AIObjectResult, TextStreamPart, ToolSet, ChatWithToolsOptions, ProposePendingActionInput, PendingActionStatus, PendingActionRow, AIConversation, MessageObservability, IMetadataService, IKnowledgeService, IAutomationService } from '@objectstack/spec/contracts';
2
2
  export { LLMAdapter } from '@objectstack/spec/contracts';
3
3
  import { z } from 'zod';
4
4
  import * as AI from '@objectstack/spec/ai';
@@ -376,6 +376,13 @@ declare class AIService implements IAIService {
376
376
  * precedent set by `ObjectQLTraceRecorder.record`.
377
377
  */
378
378
  private persistMessage;
379
+ /**
380
+ * Build a {@link MessageObservability} payload from an LLM-call result
381
+ * and the wall-clock time it took. Returns `undefined` when there's
382
+ * nothing useful to persist (no usage and no latency) so callers don't
383
+ * need to special-case empty results.
384
+ */
385
+ private static buildObservability;
379
386
  /**
380
387
  * Run an adapter call and emit a trace event.
381
388
  *
@@ -549,6 +556,21 @@ declare class AIServicePlugin implements Plugin {
549
556
  private service?;
550
557
  private readonly options;
551
558
  constructor(options?: AIServicePluginOptions);
559
+ /**
560
+ * OpenAI-compatible preset providers — these all expose `/v1/chat/completions`
561
+ * in OpenAI shape, so we re-use the `@ai-sdk/openai` SDK with a preset
562
+ * base URL. Centralising the mapping here keeps the settings UI ergonomic
563
+ * (operators pick "DeepSeek", not "openai" + a base URL they have to look up)
564
+ * without bloating buildAdapterFromValues with a switch per provider.
565
+ */
566
+ private static readonly OPENAI_COMPATIBLE_PRESETS;
567
+ /**
568
+ * Normalise OpenAI-compatible preset providers (DeepSeek / DashScope /
569
+ * Cloudflare / SiliconFlow / OpenRouter) into the `provider=openai` shape
570
+ * with the appropriate base URL pre-filled. Returns the rewritten values
571
+ * map; non-preset providers pass through unchanged.
572
+ */
573
+ private normalisePresetProvider;
552
574
  /**
553
575
  * Build an LLM adapter from a provider/key/model triple. Used both
554
576
  * by the boot-time auto-detect path and by the live `settings:changed`
@@ -715,7 +737,7 @@ declare class InMemoryConversationService implements IAIConversationService {
715
737
  limit?: number;
716
738
  cursor?: string;
717
739
  }): Promise<AIConversation[]>;
718
- addMessage(conversationId: string, message: ModelMessage): Promise<AIConversation>;
740
+ addMessage(conversationId: string, message: ModelMessage, _extras?: MessageObservability): Promise<AIConversation>;
719
741
  update(conversationId: string, patch: {
720
742
  title?: string;
721
743
  metadata?: Record<string, unknown>;
@@ -753,7 +775,7 @@ declare class ObjectQLConversationService implements IAIConversationService {
753
775
  limit?: number;
754
776
  cursor?: string;
755
777
  }): Promise<AIConversation[]>;
756
- addMessage(conversationId: string, message: ModelMessage): Promise<AIConversation>;
778
+ addMessage(conversationId: string, message: ModelMessage, extras?: MessageObservability): Promise<AIConversation>;
757
779
  update(conversationId: string, patch: {
758
780
  title?: string;
759
781
  metadata?: Record<string, unknown>;
@@ -778,10 +800,34 @@ declare class ObjectQLConversationService implements IAIConversationService {
778
800
  *
779
801
  * These are provided by the kernel at `ai:ready` time and closed over
780
802
  * by the handler functions so they stay framework-agnostic.
803
+ *
804
+ * `metadataService` and `protocol` are optional — when present they
805
+ * enable runtime field-existence validation on `where` / `fields` /
806
+ * `orderBy` / `groupBy` / `aggregations`, so the agent gets a structured
807
+ * error pointing to `describe_object` instead of silently returning an
808
+ * empty result set when it hallucinates a field name. When neither is
809
+ * wired (legacy callers, edge runtimes without metadata), validation is
810
+ * skipped and the tools behave as before.
781
811
  */
782
812
  interface DataToolContext {
783
813
  /** ObjectQL data engine for record-level operations. */
784
814
  dataEngine: IDataEngine;
815
+ /** Optional metadata service for object schema lookup. */
816
+ metadataService?: IMetadataService;
817
+ /**
818
+ * Optional protocol service for cross-source metadata enumeration —
819
+ * needed to validate fields on system objects that live in
820
+ * ObjectQL's SchemaRegistry rather than the MetadataManager
821
+ * (e.g. `sys_user` from plugin-auth). Mirrors the fallback used by
822
+ * `describe_object` / `list_objects` in metadata-tools.
823
+ */
824
+ protocol?: {
825
+ getMetaItems(request: {
826
+ type: string;
827
+ packageId?: string;
828
+ organizationId?: string;
829
+ }): Promise<unknown[]>;
830
+ };
785
831
  }
786
832
  /** All built-in data tools definitions. */
787
833
  declare const DATA_TOOL_DEFINITIONS: AIToolDefinition[];
@@ -1722,7 +1768,7 @@ declare const AiConversationObject: Omit<{
1722
1768
  abstract: boolean;
1723
1769
  datasource: string;
1724
1770
  fields: Record<string, {
1725
- type: "number" | "boolean" | "file" | "text" | "json" | "tags" | "currency" | "code" | "date" | "avatar" | "vector" | "datetime" | "signature" | "progress" | "url" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "video" | "audio" | "formula" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "color" | "rating" | "slider" | "qrcode";
1771
+ type: "number" | "boolean" | "file" | "text" | "json" | "tags" | "currency" | "code" | "date" | "record" | "avatar" | "vector" | "datetime" | "signature" | "progress" | "url" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "video" | "audio" | "formula" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "color" | "rating" | "slider" | "qrcode";
1726
1772
  required: boolean;
1727
1773
  searchable: boolean;
1728
1774
  multiple: boolean;
@@ -2324,7 +2370,7 @@ declare const AiConversationObject: Omit<{
2324
2370
  refreshAfter: boolean;
2325
2371
  objectName?: string | undefined;
2326
2372
  icon?: string | undefined;
2327
- locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "global_nav")[] | undefined;
2373
+ locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "record_section" | "global_nav")[] | undefined;
2328
2374
  component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined;
2329
2375
  target?: string | undefined;
2330
2376
  body?: {
@@ -2344,7 +2390,7 @@ declare const AiConversationObject: Omit<{
2344
2390
  field?: string | undefined;
2345
2391
  objectOverride?: string | undefined;
2346
2392
  label?: string | undefined;
2347
- type?: "number" | "boolean" | "date" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "text" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
2393
+ type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "text" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
2348
2394
  options?: {
2349
2395
  label: string;
2350
2396
  value: string;
@@ -2357,6 +2403,17 @@ declare const AiConversationObject: Omit<{
2357
2403
  variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
2358
2404
  confirmText?: string | undefined;
2359
2405
  successMessage?: string | undefined;
2406
+ resultDialog?: {
2407
+ title?: string | undefined;
2408
+ description?: string | undefined;
2409
+ acknowledge?: string | undefined;
2410
+ format?: "secret" | "text" | "json" | "qrcode" | "code-list" | undefined;
2411
+ fields?: {
2412
+ path: string;
2413
+ label?: string | undefined;
2414
+ format?: "secret" | "text" | "json" | "qrcode" | "code-list" | undefined;
2415
+ }[] | undefined;
2416
+ } | undefined;
2360
2417
  visible?: {
2361
2418
  dialect: "cel" | "js" | "cron" | "template";
2362
2419
  source?: string | undefined;
@@ -3666,7 +3723,7 @@ declare const AiMessageObject: Omit<{
3666
3723
  abstract: boolean;
3667
3724
  datasource: string;
3668
3725
  fields: Record<string, {
3669
- type: "number" | "boolean" | "file" | "text" | "json" | "tags" | "currency" | "code" | "date" | "avatar" | "vector" | "datetime" | "signature" | "progress" | "url" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "video" | "audio" | "formula" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "color" | "rating" | "slider" | "qrcode";
3726
+ type: "number" | "boolean" | "file" | "text" | "json" | "tags" | "currency" | "code" | "date" | "record" | "avatar" | "vector" | "datetime" | "signature" | "progress" | "url" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "video" | "audio" | "formula" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "color" | "rating" | "slider" | "qrcode";
3670
3727
  required: boolean;
3671
3728
  searchable: boolean;
3672
3729
  multiple: boolean;
@@ -4135,7 +4192,1085 @@ declare const AiMessageObject: Omit<{
4135
4192
  rationale?: string | undefined;
4136
4193
  generatedBy?: string | undefined;
4137
4194
  } | undefined;
4138
- } | {
4195
+ } | {
4196
+ dialect: "cel" | "js" | "cron" | "template";
4197
+ source?: string | undefined;
4198
+ ast?: unknown;
4199
+ meta?: {
4200
+ rationale?: string | undefined;
4201
+ generatedBy?: string | undefined;
4202
+ } | undefined;
4203
+ };
4204
+ style: Record<string, string>;
4205
+ }[] | undefined;
4206
+ inlineEdit?: boolean | undefined;
4207
+ exportOptions?: ("json" | "csv" | "xlsx" | "pdf")[] | undefined;
4208
+ userActions?: {
4209
+ sort: boolean;
4210
+ search: boolean;
4211
+ filter: boolean;
4212
+ rowHeight: boolean;
4213
+ addRecordForm: boolean;
4214
+ buttons?: string[] | undefined;
4215
+ } | undefined;
4216
+ appearance?: {
4217
+ showDescription: boolean;
4218
+ allowedVisualizations?: ("map" | "kanban" | "calendar" | "gantt" | "gallery" | "timeline" | "grid")[] | undefined;
4219
+ } | undefined;
4220
+ tabs?: {
4221
+ name: string;
4222
+ pinned: boolean;
4223
+ isDefault: boolean;
4224
+ visible: boolean;
4225
+ label?: string | undefined;
4226
+ icon?: string | undefined;
4227
+ view?: string | undefined;
4228
+ filter?: {
4229
+ field: string;
4230
+ operator: string;
4231
+ value?: string | number | boolean | (string | number)[] | null | undefined;
4232
+ }[] | undefined;
4233
+ order?: number | undefined;
4234
+ }[] | undefined;
4235
+ addRecord?: {
4236
+ enabled: boolean;
4237
+ position: "top" | "bottom" | "both";
4238
+ mode: "modal" | "form" | "inline";
4239
+ formView?: string | undefined;
4240
+ } | undefined;
4241
+ showRecordCount?: boolean | undefined;
4242
+ allowPrinting?: boolean | undefined;
4243
+ emptyState?: {
4244
+ title?: string | undefined;
4245
+ message?: string | undefined;
4246
+ icon?: string | undefined;
4247
+ } | undefined;
4248
+ aria?: {
4249
+ ariaLabel?: string | undefined;
4250
+ ariaDescribedBy?: string | undefined;
4251
+ role?: string | undefined;
4252
+ } | undefined;
4253
+ responsive?: {
4254
+ breakpoint?: "md" | "xs" | "sm" | "lg" | "xl" | "2xl" | undefined;
4255
+ hiddenOn?: ("md" | "xs" | "sm" | "lg" | "xl" | "2xl")[] | undefined;
4256
+ columns?: {
4257
+ xs?: number | undefined;
4258
+ sm?: number | undefined;
4259
+ md?: number | undefined;
4260
+ lg?: number | undefined;
4261
+ xl?: number | undefined;
4262
+ '2xl'?: number | undefined;
4263
+ } | undefined;
4264
+ order?: {
4265
+ xs?: number | undefined;
4266
+ sm?: number | undefined;
4267
+ md?: number | undefined;
4268
+ lg?: number | undefined;
4269
+ xl?: number | undefined;
4270
+ '2xl'?: number | undefined;
4271
+ } | undefined;
4272
+ } | undefined;
4273
+ performance?: {
4274
+ lazyLoad?: boolean | undefined;
4275
+ virtualScroll?: {
4276
+ enabled: boolean;
4277
+ itemHeight?: number | undefined;
4278
+ overscan?: number | undefined;
4279
+ } | undefined;
4280
+ cacheStrategy?: "none" | "cache-first" | "network-first" | "stale-while-revalidate" | undefined;
4281
+ prefetch?: boolean | undefined;
4282
+ pageSize?: number | undefined;
4283
+ debounceMs?: number | undefined;
4284
+ } | undefined;
4285
+ }> | undefined;
4286
+ defaultDetailForm?: string | undefined;
4287
+ search?: {
4288
+ fields: string[];
4289
+ displayFields?: string[] | undefined;
4290
+ filters?: string[] | undefined;
4291
+ } | undefined;
4292
+ enable?: {
4293
+ trackHistory: boolean;
4294
+ searchable: boolean;
4295
+ apiEnabled: boolean;
4296
+ files: boolean;
4297
+ feeds: boolean;
4298
+ activities: boolean;
4299
+ trash: boolean;
4300
+ mru: boolean;
4301
+ clone: boolean;
4302
+ apiMethods?: ("restore" | "export" | "import" | "delete" | "purge" | "upsert" | "search" | "create" | "list" | "get" | "update" | "history" | "bulk" | "aggregate")[] | undefined;
4303
+ } | undefined;
4304
+ recordTypes?: string[] | undefined;
4305
+ sharingModel?: "private" | "read" | "full" | "read_write" | undefined;
4306
+ publicSharing?: {
4307
+ enabled: boolean;
4308
+ allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
4309
+ allowedPermissions?: ("edit" | "view" | "comment")[] | undefined;
4310
+ maxExpiryDays?: number | undefined;
4311
+ redactFields?: string[] | undefined;
4312
+ eligibility?: string | undefined;
4313
+ } | undefined;
4314
+ keyPrefix?: string | undefined;
4315
+ detail?: {
4316
+ [x: string]: unknown;
4317
+ renderViaSchema?: boolean | undefined;
4318
+ hideReferenceRail?: boolean | undefined;
4319
+ hideRelatedTab?: boolean | undefined;
4320
+ } | undefined;
4321
+ actions?: {
4322
+ name: string;
4323
+ label: string;
4324
+ type: "url" | "flow" | "api" | "script" | "modal" | "form";
4325
+ refreshAfter: boolean;
4326
+ objectName?: string | undefined;
4327
+ icon?: string | undefined;
4328
+ locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "record_section" | "global_nav")[] | undefined;
4329
+ component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined;
4330
+ target?: string | undefined;
4331
+ body?: {
4332
+ language: "expression";
4333
+ source: string;
4334
+ } | {
4335
+ language: "js";
4336
+ source: string;
4337
+ capabilities: ("api.read" | "api.write" | "crypto.uuid" | "crypto.hash" | "log")[];
4338
+ timeoutMs?: number | undefined;
4339
+ memoryMb?: number | undefined;
4340
+ } | undefined;
4341
+ execute?: string | undefined;
4342
+ params?: {
4343
+ required: boolean;
4344
+ name?: string | undefined;
4345
+ field?: string | undefined;
4346
+ objectOverride?: string | undefined;
4347
+ label?: string | undefined;
4348
+ type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "text" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
4349
+ options?: {
4350
+ label: string;
4351
+ value: string;
4352
+ }[] | undefined;
4353
+ placeholder?: string | undefined;
4354
+ helpText?: string | undefined;
4355
+ defaultValue?: unknown;
4356
+ defaultFromRow?: boolean | undefined;
4357
+ }[] | undefined;
4358
+ variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
4359
+ confirmText?: string | undefined;
4360
+ successMessage?: string | undefined;
4361
+ resultDialog?: {
4362
+ title?: string | undefined;
4363
+ description?: string | undefined;
4364
+ acknowledge?: string | undefined;
4365
+ format?: "secret" | "text" | "json" | "qrcode" | "code-list" | undefined;
4366
+ fields?: {
4367
+ path: string;
4368
+ label?: string | undefined;
4369
+ format?: "secret" | "text" | "json" | "qrcode" | "code-list" | undefined;
4370
+ }[] | undefined;
4371
+ } | undefined;
4372
+ visible?: {
4373
+ dialect: "cel" | "js" | "cron" | "template";
4374
+ source?: string | undefined;
4375
+ ast?: unknown;
4376
+ meta?: {
4377
+ rationale?: string | undefined;
4378
+ generatedBy?: string | undefined;
4379
+ } | undefined;
4380
+ } | undefined;
4381
+ disabled?: boolean | {
4382
+ dialect: "cel" | "js" | "cron" | "template";
4383
+ source?: string | undefined;
4384
+ ast?: unknown;
4385
+ meta?: {
4386
+ rationale?: string | undefined;
4387
+ generatedBy?: string | undefined;
4388
+ } | undefined;
4389
+ } | undefined;
4390
+ shortcut?: string | undefined;
4391
+ bulkEnabled?: boolean | undefined;
4392
+ aiExposed?: boolean | undefined;
4393
+ recordIdParam?: string | undefined;
4394
+ recordIdField?: string | undefined;
4395
+ bodyShape?: "flat" | {
4396
+ wrap: string;
4397
+ } | undefined;
4398
+ method?: "POST" | "PATCH" | "PUT" | "DELETE" | undefined;
4399
+ bodyExtra?: Record<string, unknown> | undefined;
4400
+ mode?: "custom" | "delete" | "create" | "edit" | undefined;
4401
+ timeout?: number | undefined;
4402
+ aria?: {
4403
+ ariaLabel?: string | undefined;
4404
+ ariaDescribedBy?: string | undefined;
4405
+ role?: string | undefined;
4406
+ } | undefined;
4407
+ }[] | undefined;
4408
+ }, "fields"> & Pick<{
4409
+ readonly name: "ai_messages";
4410
+ readonly label: "AI Message";
4411
+ readonly pluralLabel: "AI Messages";
4412
+ readonly icon: "message-circle";
4413
+ readonly isSystem: true;
4414
+ readonly description: "Individual messages within AI conversations";
4415
+ readonly fields: {
4416
+ readonly id: {
4417
+ readonly readonly?: boolean | undefined;
4418
+ readonly format?: string | undefined;
4419
+ readonly options?: {
4420
+ label: string;
4421
+ value: string;
4422
+ color?: string | undefined;
4423
+ default?: boolean | undefined;
4424
+ }[] | undefined;
4425
+ readonly description?: string | undefined;
4426
+ readonly label?: string | undefined;
4427
+ readonly name?: string | undefined;
4428
+ readonly precision?: number | undefined;
4429
+ readonly required?: boolean | undefined;
4430
+ readonly multiple?: boolean | undefined;
4431
+ readonly dependencies?: string[] | undefined;
4432
+ readonly theme?: string | undefined;
4433
+ readonly externalId?: boolean | undefined;
4434
+ readonly system?: boolean | undefined;
4435
+ readonly min?: number | undefined;
4436
+ readonly max?: number | undefined;
4437
+ readonly group?: string | undefined;
4438
+ readonly encryptionConfig?: {
4439
+ enabled: boolean;
4440
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
4441
+ keyManagement: {
4442
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
4443
+ keyId?: string | undefined;
4444
+ rotationPolicy?: {
4445
+ enabled: boolean;
4446
+ frequencyDays: number;
4447
+ retainOldVersions: number;
4448
+ autoRotate: boolean;
4449
+ } | undefined;
4450
+ };
4451
+ scope: "record" | "field" | "table" | "database";
4452
+ deterministicEncryption: boolean;
4453
+ searchableEncryption: boolean;
4454
+ } | undefined;
4455
+ readonly columnName?: string | undefined;
4456
+ readonly searchable?: boolean | undefined;
4457
+ readonly unique?: boolean | undefined;
4458
+ readonly defaultValue?: unknown;
4459
+ readonly maxLength?: number | undefined;
4460
+ readonly minLength?: number | undefined;
4461
+ readonly scale?: number | undefined;
4462
+ readonly reference?: string | undefined;
4463
+ readonly referenceFilters?: string[] | undefined;
4464
+ readonly writeRequiresMasterRead?: boolean | undefined;
4465
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4466
+ readonly expression?: {
4467
+ dialect: "cel" | "js" | "cron" | "template";
4468
+ source?: string | undefined;
4469
+ ast?: unknown;
4470
+ meta?: {
4471
+ rationale?: string | undefined;
4472
+ generatedBy?: string | undefined;
4473
+ } | undefined;
4474
+ } | undefined;
4475
+ readonly summaryOperations?: {
4476
+ object: string;
4477
+ field: string;
4478
+ function: "min" | "max" | "count" | "sum" | "avg";
4479
+ } | undefined;
4480
+ readonly language?: string | undefined;
4481
+ readonly lineNumbers?: boolean | undefined;
4482
+ readonly maxRating?: number | undefined;
4483
+ readonly allowHalf?: boolean | undefined;
4484
+ readonly displayMap?: boolean | undefined;
4485
+ readonly allowGeocoding?: boolean | undefined;
4486
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
4487
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
4488
+ readonly allowAlpha?: boolean | undefined;
4489
+ readonly presetColors?: string[] | undefined;
4490
+ readonly step?: number | undefined;
4491
+ readonly showValue?: boolean | undefined;
4492
+ readonly marks?: Record<string, string> | undefined;
4493
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
4494
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
4495
+ readonly displayValue?: boolean | undefined;
4496
+ readonly allowScanning?: boolean | undefined;
4497
+ readonly currencyConfig?: {
4498
+ precision: number;
4499
+ currencyMode: "fixed" | "dynamic";
4500
+ defaultCurrency: string;
4501
+ } | undefined;
4502
+ readonly vectorConfig?: {
4503
+ dimensions: number;
4504
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
4505
+ normalized: boolean;
4506
+ indexed: boolean;
4507
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
4508
+ } | undefined;
4509
+ readonly fileAttachmentConfig?: {
4510
+ virusScan: boolean;
4511
+ virusScanOnUpload: boolean;
4512
+ quarantineOnThreat: boolean;
4513
+ allowMultiple: boolean;
4514
+ allowReplace: boolean;
4515
+ allowDelete: boolean;
4516
+ requireUpload: boolean;
4517
+ extractMetadata: boolean;
4518
+ extractText: boolean;
4519
+ versioningEnabled: boolean;
4520
+ publicRead: boolean;
4521
+ presignedUrlExpiry: number;
4522
+ minSize?: number | undefined;
4523
+ maxSize?: number | undefined;
4524
+ allowedTypes?: string[] | undefined;
4525
+ blockedTypes?: string[] | undefined;
4526
+ allowedMimeTypes?: string[] | undefined;
4527
+ blockedMimeTypes?: string[] | undefined;
4528
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
4529
+ storageProvider?: string | undefined;
4530
+ storageBucket?: string | undefined;
4531
+ storagePrefix?: string | undefined;
4532
+ imageValidation?: {
4533
+ generateThumbnails: boolean;
4534
+ preserveMetadata: boolean;
4535
+ autoRotate: boolean;
4536
+ minWidth?: number | undefined;
4537
+ maxWidth?: number | undefined;
4538
+ minHeight?: number | undefined;
4539
+ maxHeight?: number | undefined;
4540
+ aspectRatio?: string | undefined;
4541
+ thumbnailSizes?: {
4542
+ name: string;
4543
+ width: number;
4544
+ height: number;
4545
+ crop: boolean;
4546
+ }[] | undefined;
4547
+ } | undefined;
4548
+ maxVersions?: number | undefined;
4549
+ } | undefined;
4550
+ readonly maskingRule?: {
4551
+ field: string;
4552
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
4553
+ preserveFormat: boolean;
4554
+ preserveLength: boolean;
4555
+ pattern?: string | undefined;
4556
+ roles?: string[] | undefined;
4557
+ exemptRoles?: string[] | undefined;
4558
+ } | undefined;
4559
+ readonly auditTrail?: boolean | undefined;
4560
+ readonly cached?: {
4561
+ enabled: boolean;
4562
+ ttl: number;
4563
+ invalidateOn: string[];
4564
+ } | undefined;
4565
+ readonly dataQuality?: {
4566
+ uniqueness: boolean;
4567
+ completeness: number;
4568
+ accuracy?: {
4569
+ source: string;
4570
+ threshold: number;
4571
+ } | undefined;
4572
+ } | undefined;
4573
+ readonly conditionalRequired?: {
4574
+ dialect: "cel" | "js" | "cron" | "template";
4575
+ source?: string | undefined;
4576
+ ast?: unknown;
4577
+ meta?: {
4578
+ rationale?: string | undefined;
4579
+ generatedBy?: string | undefined;
4580
+ } | undefined;
4581
+ } | undefined;
4582
+ readonly hidden?: boolean | undefined;
4583
+ readonly sortable?: boolean | undefined;
4584
+ readonly inlineHelpText?: string | undefined;
4585
+ readonly trackFeedHistory?: boolean | undefined;
4586
+ readonly caseSensitive?: boolean | undefined;
4587
+ readonly autonumberFormat?: string | undefined;
4588
+ readonly index?: boolean | undefined;
4589
+ readonly type: "text";
4590
+ };
4591
+ readonly conversation_id: {
4592
+ readonly readonly?: boolean | undefined;
4593
+ readonly format?: string | undefined;
4594
+ readonly options?: {
4595
+ label: string;
4596
+ value: string;
4597
+ color?: string | undefined;
4598
+ default?: boolean | undefined;
4599
+ }[] | undefined;
4600
+ readonly description?: string | undefined;
4601
+ readonly label?: string | undefined;
4602
+ readonly name?: string | undefined;
4603
+ readonly precision?: number | undefined;
4604
+ readonly required?: boolean | undefined;
4605
+ readonly multiple?: boolean | undefined;
4606
+ readonly dependencies?: string[] | undefined;
4607
+ readonly theme?: string | undefined;
4608
+ readonly externalId?: boolean | undefined;
4609
+ readonly system?: boolean | undefined;
4610
+ readonly min?: number | undefined;
4611
+ readonly max?: number | undefined;
4612
+ readonly group?: string | undefined;
4613
+ readonly encryptionConfig?: {
4614
+ enabled: boolean;
4615
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
4616
+ keyManagement: {
4617
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
4618
+ keyId?: string | undefined;
4619
+ rotationPolicy?: {
4620
+ enabled: boolean;
4621
+ frequencyDays: number;
4622
+ retainOldVersions: number;
4623
+ autoRotate: boolean;
4624
+ } | undefined;
4625
+ };
4626
+ scope: "record" | "field" | "table" | "database";
4627
+ deterministicEncryption: boolean;
4628
+ searchableEncryption: boolean;
4629
+ } | undefined;
4630
+ readonly columnName?: string | undefined;
4631
+ readonly searchable?: boolean | undefined;
4632
+ readonly unique?: boolean | undefined;
4633
+ readonly defaultValue?: unknown;
4634
+ readonly maxLength?: number | undefined;
4635
+ readonly minLength?: number | undefined;
4636
+ readonly scale?: number | undefined;
4637
+ reference: string;
4638
+ readonly referenceFilters?: string[] | undefined;
4639
+ readonly writeRequiresMasterRead?: boolean | undefined;
4640
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4641
+ readonly expression?: {
4642
+ dialect: "cel" | "js" | "cron" | "template";
4643
+ source?: string | undefined;
4644
+ ast?: unknown;
4645
+ meta?: {
4646
+ rationale?: string | undefined;
4647
+ generatedBy?: string | undefined;
4648
+ } | undefined;
4649
+ } | undefined;
4650
+ readonly summaryOperations?: {
4651
+ object: string;
4652
+ field: string;
4653
+ function: "min" | "max" | "count" | "sum" | "avg";
4654
+ } | undefined;
4655
+ readonly language?: string | undefined;
4656
+ readonly lineNumbers?: boolean | undefined;
4657
+ readonly maxRating?: number | undefined;
4658
+ readonly allowHalf?: boolean | undefined;
4659
+ readonly displayMap?: boolean | undefined;
4660
+ readonly allowGeocoding?: boolean | undefined;
4661
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
4662
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
4663
+ readonly allowAlpha?: boolean | undefined;
4664
+ readonly presetColors?: string[] | undefined;
4665
+ readonly step?: number | undefined;
4666
+ readonly showValue?: boolean | undefined;
4667
+ readonly marks?: Record<string, string> | undefined;
4668
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
4669
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
4670
+ readonly displayValue?: boolean | undefined;
4671
+ readonly allowScanning?: boolean | undefined;
4672
+ readonly currencyConfig?: {
4673
+ precision: number;
4674
+ currencyMode: "fixed" | "dynamic";
4675
+ defaultCurrency: string;
4676
+ } | undefined;
4677
+ readonly vectorConfig?: {
4678
+ dimensions: number;
4679
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
4680
+ normalized: boolean;
4681
+ indexed: boolean;
4682
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
4683
+ } | undefined;
4684
+ readonly fileAttachmentConfig?: {
4685
+ virusScan: boolean;
4686
+ virusScanOnUpload: boolean;
4687
+ quarantineOnThreat: boolean;
4688
+ allowMultiple: boolean;
4689
+ allowReplace: boolean;
4690
+ allowDelete: boolean;
4691
+ requireUpload: boolean;
4692
+ extractMetadata: boolean;
4693
+ extractText: boolean;
4694
+ versioningEnabled: boolean;
4695
+ publicRead: boolean;
4696
+ presignedUrlExpiry: number;
4697
+ minSize?: number | undefined;
4698
+ maxSize?: number | undefined;
4699
+ allowedTypes?: string[] | undefined;
4700
+ blockedTypes?: string[] | undefined;
4701
+ allowedMimeTypes?: string[] | undefined;
4702
+ blockedMimeTypes?: string[] | undefined;
4703
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
4704
+ storageProvider?: string | undefined;
4705
+ storageBucket?: string | undefined;
4706
+ storagePrefix?: string | undefined;
4707
+ imageValidation?: {
4708
+ generateThumbnails: boolean;
4709
+ preserveMetadata: boolean;
4710
+ autoRotate: boolean;
4711
+ minWidth?: number | undefined;
4712
+ maxWidth?: number | undefined;
4713
+ minHeight?: number | undefined;
4714
+ maxHeight?: number | undefined;
4715
+ aspectRatio?: string | undefined;
4716
+ thumbnailSizes?: {
4717
+ name: string;
4718
+ width: number;
4719
+ height: number;
4720
+ crop: boolean;
4721
+ }[] | undefined;
4722
+ } | undefined;
4723
+ maxVersions?: number | undefined;
4724
+ } | undefined;
4725
+ readonly maskingRule?: {
4726
+ field: string;
4727
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
4728
+ preserveFormat: boolean;
4729
+ preserveLength: boolean;
4730
+ pattern?: string | undefined;
4731
+ roles?: string[] | undefined;
4732
+ exemptRoles?: string[] | undefined;
4733
+ } | undefined;
4734
+ readonly auditTrail?: boolean | undefined;
4735
+ readonly cached?: {
4736
+ enabled: boolean;
4737
+ ttl: number;
4738
+ invalidateOn: string[];
4739
+ } | undefined;
4740
+ readonly dataQuality?: {
4741
+ uniqueness: boolean;
4742
+ completeness: number;
4743
+ accuracy?: {
4744
+ source: string;
4745
+ threshold: number;
4746
+ } | undefined;
4747
+ } | undefined;
4748
+ readonly conditionalRequired?: {
4749
+ dialect: "cel" | "js" | "cron" | "template";
4750
+ source?: string | undefined;
4751
+ ast?: unknown;
4752
+ meta?: {
4753
+ rationale?: string | undefined;
4754
+ generatedBy?: string | undefined;
4755
+ } | undefined;
4756
+ } | undefined;
4757
+ readonly hidden?: boolean | undefined;
4758
+ readonly sortable?: boolean | undefined;
4759
+ readonly inlineHelpText?: string | undefined;
4760
+ readonly trackFeedHistory?: boolean | undefined;
4761
+ readonly caseSensitive?: boolean | undefined;
4762
+ readonly autonumberFormat?: string | undefined;
4763
+ readonly index?: boolean | undefined;
4764
+ readonly type: "lookup";
4765
+ };
4766
+ readonly role: {
4767
+ readonly readonly?: boolean | undefined;
4768
+ readonly format?: string | undefined;
4769
+ options: {
4770
+ label: string;
4771
+ value: string;
4772
+ color?: string | undefined;
4773
+ default?: boolean | undefined;
4774
+ }[];
4775
+ readonly description?: string | undefined;
4776
+ readonly label?: string | undefined;
4777
+ readonly name?: string | undefined;
4778
+ readonly precision?: number | undefined;
4779
+ readonly required?: boolean | undefined;
4780
+ readonly multiple?: boolean | undefined;
4781
+ readonly dependencies?: string[] | undefined;
4782
+ readonly theme?: string | undefined;
4783
+ readonly externalId?: boolean | undefined;
4784
+ readonly system?: boolean | undefined;
4785
+ readonly min?: number | undefined;
4786
+ readonly max?: number | undefined;
4787
+ readonly group?: string | undefined;
4788
+ readonly encryptionConfig?: {
4789
+ enabled: boolean;
4790
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
4791
+ keyManagement: {
4792
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
4793
+ keyId?: string | undefined;
4794
+ rotationPolicy?: {
4795
+ enabled: boolean;
4796
+ frequencyDays: number;
4797
+ retainOldVersions: number;
4798
+ autoRotate: boolean;
4799
+ } | undefined;
4800
+ };
4801
+ scope: "record" | "field" | "table" | "database";
4802
+ deterministicEncryption: boolean;
4803
+ searchableEncryption: boolean;
4804
+ } | undefined;
4805
+ readonly columnName?: string | undefined;
4806
+ readonly searchable?: boolean | undefined;
4807
+ readonly unique?: boolean | undefined;
4808
+ readonly defaultValue?: unknown;
4809
+ readonly maxLength?: number | undefined;
4810
+ readonly minLength?: number | undefined;
4811
+ readonly scale?: number | undefined;
4812
+ readonly reference?: string | undefined;
4813
+ readonly referenceFilters?: string[] | undefined;
4814
+ readonly writeRequiresMasterRead?: boolean | undefined;
4815
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4816
+ readonly expression?: {
4817
+ dialect: "cel" | "js" | "cron" | "template";
4818
+ source?: string | undefined;
4819
+ ast?: unknown;
4820
+ meta?: {
4821
+ rationale?: string | undefined;
4822
+ generatedBy?: string | undefined;
4823
+ } | undefined;
4824
+ } | undefined;
4825
+ readonly summaryOperations?: {
4826
+ object: string;
4827
+ field: string;
4828
+ function: "min" | "max" | "count" | "sum" | "avg";
4829
+ } | undefined;
4830
+ readonly language?: string | undefined;
4831
+ readonly lineNumbers?: boolean | undefined;
4832
+ readonly maxRating?: number | undefined;
4833
+ readonly allowHalf?: boolean | undefined;
4834
+ readonly displayMap?: boolean | undefined;
4835
+ readonly allowGeocoding?: boolean | undefined;
4836
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
4837
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
4838
+ readonly allowAlpha?: boolean | undefined;
4839
+ readonly presetColors?: string[] | undefined;
4840
+ readonly step?: number | undefined;
4841
+ readonly showValue?: boolean | undefined;
4842
+ readonly marks?: Record<string, string> | undefined;
4843
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
4844
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
4845
+ readonly displayValue?: boolean | undefined;
4846
+ readonly allowScanning?: boolean | undefined;
4847
+ readonly currencyConfig?: {
4848
+ precision: number;
4849
+ currencyMode: "fixed" | "dynamic";
4850
+ defaultCurrency: string;
4851
+ } | undefined;
4852
+ readonly vectorConfig?: {
4853
+ dimensions: number;
4854
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
4855
+ normalized: boolean;
4856
+ indexed: boolean;
4857
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
4858
+ } | undefined;
4859
+ readonly fileAttachmentConfig?: {
4860
+ virusScan: boolean;
4861
+ virusScanOnUpload: boolean;
4862
+ quarantineOnThreat: boolean;
4863
+ allowMultiple: boolean;
4864
+ allowReplace: boolean;
4865
+ allowDelete: boolean;
4866
+ requireUpload: boolean;
4867
+ extractMetadata: boolean;
4868
+ extractText: boolean;
4869
+ versioningEnabled: boolean;
4870
+ publicRead: boolean;
4871
+ presignedUrlExpiry: number;
4872
+ minSize?: number | undefined;
4873
+ maxSize?: number | undefined;
4874
+ allowedTypes?: string[] | undefined;
4875
+ blockedTypes?: string[] | undefined;
4876
+ allowedMimeTypes?: string[] | undefined;
4877
+ blockedMimeTypes?: string[] | undefined;
4878
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
4879
+ storageProvider?: string | undefined;
4880
+ storageBucket?: string | undefined;
4881
+ storagePrefix?: string | undefined;
4882
+ imageValidation?: {
4883
+ generateThumbnails: boolean;
4884
+ preserveMetadata: boolean;
4885
+ autoRotate: boolean;
4886
+ minWidth?: number | undefined;
4887
+ maxWidth?: number | undefined;
4888
+ minHeight?: number | undefined;
4889
+ maxHeight?: number | undefined;
4890
+ aspectRatio?: string | undefined;
4891
+ thumbnailSizes?: {
4892
+ name: string;
4893
+ width: number;
4894
+ height: number;
4895
+ crop: boolean;
4896
+ }[] | undefined;
4897
+ } | undefined;
4898
+ maxVersions?: number | undefined;
4899
+ } | undefined;
4900
+ readonly maskingRule?: {
4901
+ field: string;
4902
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
4903
+ preserveFormat: boolean;
4904
+ preserveLength: boolean;
4905
+ pattern?: string | undefined;
4906
+ roles?: string[] | undefined;
4907
+ exemptRoles?: string[] | undefined;
4908
+ } | undefined;
4909
+ readonly auditTrail?: boolean | undefined;
4910
+ readonly cached?: {
4911
+ enabled: boolean;
4912
+ ttl: number;
4913
+ invalidateOn: string[];
4914
+ } | undefined;
4915
+ readonly dataQuality?: {
4916
+ uniqueness: boolean;
4917
+ completeness: number;
4918
+ accuracy?: {
4919
+ source: string;
4920
+ threshold: number;
4921
+ } | undefined;
4922
+ } | undefined;
4923
+ readonly conditionalRequired?: {
4924
+ dialect: "cel" | "js" | "cron" | "template";
4925
+ source?: string | undefined;
4926
+ ast?: unknown;
4927
+ meta?: {
4928
+ rationale?: string | undefined;
4929
+ generatedBy?: string | undefined;
4930
+ } | undefined;
4931
+ } | undefined;
4932
+ readonly hidden?: boolean | undefined;
4933
+ readonly sortable?: boolean | undefined;
4934
+ readonly inlineHelpText?: string | undefined;
4935
+ readonly trackFeedHistory?: boolean | undefined;
4936
+ readonly caseSensitive?: boolean | undefined;
4937
+ readonly autonumberFormat?: string | undefined;
4938
+ readonly index?: boolean | undefined;
4939
+ readonly type: "select";
4940
+ };
4941
+ readonly content: {
4942
+ readonly readonly?: boolean | undefined;
4943
+ readonly format?: string | undefined;
4944
+ readonly options?: {
4945
+ label: string;
4946
+ value: string;
4947
+ color?: string | undefined;
4948
+ default?: boolean | undefined;
4949
+ }[] | undefined;
4950
+ readonly description?: string | undefined;
4951
+ readonly label?: string | undefined;
4952
+ readonly name?: string | undefined;
4953
+ readonly precision?: number | undefined;
4954
+ readonly required?: boolean | undefined;
4955
+ readonly multiple?: boolean | undefined;
4956
+ readonly dependencies?: string[] | undefined;
4957
+ readonly theme?: string | undefined;
4958
+ readonly externalId?: boolean | undefined;
4959
+ readonly system?: boolean | undefined;
4960
+ readonly min?: number | undefined;
4961
+ readonly max?: number | undefined;
4962
+ readonly group?: string | undefined;
4963
+ readonly encryptionConfig?: {
4964
+ enabled: boolean;
4965
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
4966
+ keyManagement: {
4967
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
4968
+ keyId?: string | undefined;
4969
+ rotationPolicy?: {
4970
+ enabled: boolean;
4971
+ frequencyDays: number;
4972
+ retainOldVersions: number;
4973
+ autoRotate: boolean;
4974
+ } | undefined;
4975
+ };
4976
+ scope: "record" | "field" | "table" | "database";
4977
+ deterministicEncryption: boolean;
4978
+ searchableEncryption: boolean;
4979
+ } | undefined;
4980
+ readonly columnName?: string | undefined;
4981
+ readonly searchable?: boolean | undefined;
4982
+ readonly unique?: boolean | undefined;
4983
+ readonly defaultValue?: unknown;
4984
+ readonly maxLength?: number | undefined;
4985
+ readonly minLength?: number | undefined;
4986
+ readonly scale?: number | undefined;
4987
+ readonly reference?: string | undefined;
4988
+ readonly referenceFilters?: string[] | undefined;
4989
+ readonly writeRequiresMasterRead?: boolean | undefined;
4990
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4991
+ readonly expression?: {
4992
+ dialect: "cel" | "js" | "cron" | "template";
4993
+ source?: string | undefined;
4994
+ ast?: unknown;
4995
+ meta?: {
4996
+ rationale?: string | undefined;
4997
+ generatedBy?: string | undefined;
4998
+ } | undefined;
4999
+ } | undefined;
5000
+ readonly summaryOperations?: {
5001
+ object: string;
5002
+ field: string;
5003
+ function: "min" | "max" | "count" | "sum" | "avg";
5004
+ } | undefined;
5005
+ readonly language?: string | undefined;
5006
+ readonly lineNumbers?: boolean | undefined;
5007
+ readonly maxRating?: number | undefined;
5008
+ readonly allowHalf?: boolean | undefined;
5009
+ readonly displayMap?: boolean | undefined;
5010
+ readonly allowGeocoding?: boolean | undefined;
5011
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
5012
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
5013
+ readonly allowAlpha?: boolean | undefined;
5014
+ readonly presetColors?: string[] | undefined;
5015
+ readonly step?: number | undefined;
5016
+ readonly showValue?: boolean | undefined;
5017
+ readonly marks?: Record<string, string> | undefined;
5018
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
5019
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
5020
+ readonly displayValue?: boolean | undefined;
5021
+ readonly allowScanning?: boolean | undefined;
5022
+ readonly currencyConfig?: {
5023
+ precision: number;
5024
+ currencyMode: "fixed" | "dynamic";
5025
+ defaultCurrency: string;
5026
+ } | undefined;
5027
+ readonly vectorConfig?: {
5028
+ dimensions: number;
5029
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
5030
+ normalized: boolean;
5031
+ indexed: boolean;
5032
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
5033
+ } | undefined;
5034
+ readonly fileAttachmentConfig?: {
5035
+ virusScan: boolean;
5036
+ virusScanOnUpload: boolean;
5037
+ quarantineOnThreat: boolean;
5038
+ allowMultiple: boolean;
5039
+ allowReplace: boolean;
5040
+ allowDelete: boolean;
5041
+ requireUpload: boolean;
5042
+ extractMetadata: boolean;
5043
+ extractText: boolean;
5044
+ versioningEnabled: boolean;
5045
+ publicRead: boolean;
5046
+ presignedUrlExpiry: number;
5047
+ minSize?: number | undefined;
5048
+ maxSize?: number | undefined;
5049
+ allowedTypes?: string[] | undefined;
5050
+ blockedTypes?: string[] | undefined;
5051
+ allowedMimeTypes?: string[] | undefined;
5052
+ blockedMimeTypes?: string[] | undefined;
5053
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
5054
+ storageProvider?: string | undefined;
5055
+ storageBucket?: string | undefined;
5056
+ storagePrefix?: string | undefined;
5057
+ imageValidation?: {
5058
+ generateThumbnails: boolean;
5059
+ preserveMetadata: boolean;
5060
+ autoRotate: boolean;
5061
+ minWidth?: number | undefined;
5062
+ maxWidth?: number | undefined;
5063
+ minHeight?: number | undefined;
5064
+ maxHeight?: number | undefined;
5065
+ aspectRatio?: string | undefined;
5066
+ thumbnailSizes?: {
5067
+ name: string;
5068
+ width: number;
5069
+ height: number;
5070
+ crop: boolean;
5071
+ }[] | undefined;
5072
+ } | undefined;
5073
+ maxVersions?: number | undefined;
5074
+ } | undefined;
5075
+ readonly maskingRule?: {
5076
+ field: string;
5077
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
5078
+ preserveFormat: boolean;
5079
+ preserveLength: boolean;
5080
+ pattern?: string | undefined;
5081
+ roles?: string[] | undefined;
5082
+ exemptRoles?: string[] | undefined;
5083
+ } | undefined;
5084
+ readonly auditTrail?: boolean | undefined;
5085
+ readonly cached?: {
5086
+ enabled: boolean;
5087
+ ttl: number;
5088
+ invalidateOn: string[];
5089
+ } | undefined;
5090
+ readonly dataQuality?: {
5091
+ uniqueness: boolean;
5092
+ completeness: number;
5093
+ accuracy?: {
5094
+ source: string;
5095
+ threshold: number;
5096
+ } | undefined;
5097
+ } | undefined;
5098
+ readonly conditionalRequired?: {
5099
+ dialect: "cel" | "js" | "cron" | "template";
5100
+ source?: string | undefined;
5101
+ ast?: unknown;
5102
+ meta?: {
5103
+ rationale?: string | undefined;
5104
+ generatedBy?: string | undefined;
5105
+ } | undefined;
5106
+ } | undefined;
5107
+ readonly hidden?: boolean | undefined;
5108
+ readonly sortable?: boolean | undefined;
5109
+ readonly inlineHelpText?: string | undefined;
5110
+ readonly trackFeedHistory?: boolean | undefined;
5111
+ readonly caseSensitive?: boolean | undefined;
5112
+ readonly autonumberFormat?: string | undefined;
5113
+ readonly index?: boolean | undefined;
5114
+ readonly type: "textarea";
5115
+ };
5116
+ readonly tool_calls: {
5117
+ readonly readonly?: boolean | undefined;
5118
+ readonly format?: string | undefined;
5119
+ readonly options?: {
5120
+ label: string;
5121
+ value: string;
5122
+ color?: string | undefined;
5123
+ default?: boolean | undefined;
5124
+ }[] | undefined;
5125
+ readonly description?: string | undefined;
5126
+ readonly label?: string | undefined;
5127
+ readonly name?: string | undefined;
5128
+ readonly precision?: number | undefined;
5129
+ readonly required?: boolean | undefined;
5130
+ readonly multiple?: boolean | undefined;
5131
+ readonly dependencies?: string[] | undefined;
5132
+ readonly theme?: string | undefined;
5133
+ readonly externalId?: boolean | undefined;
5134
+ readonly system?: boolean | undefined;
5135
+ readonly min?: number | undefined;
5136
+ readonly max?: number | undefined;
5137
+ readonly group?: string | undefined;
5138
+ readonly encryptionConfig?: {
5139
+ enabled: boolean;
5140
+ algorithm: "aes-256-gcm" | "aes-256-cbc" | "chacha20-poly1305";
5141
+ keyManagement: {
5142
+ provider: "local" | "aws-kms" | "azure-key-vault" | "gcp-kms" | "hashicorp-vault";
5143
+ keyId?: string | undefined;
5144
+ rotationPolicy?: {
5145
+ enabled: boolean;
5146
+ frequencyDays: number;
5147
+ retainOldVersions: number;
5148
+ autoRotate: boolean;
5149
+ } | undefined;
5150
+ };
5151
+ scope: "record" | "field" | "table" | "database";
5152
+ deterministicEncryption: boolean;
5153
+ searchableEncryption: boolean;
5154
+ } | undefined;
5155
+ readonly columnName?: string | undefined;
5156
+ readonly searchable?: boolean | undefined;
5157
+ readonly unique?: boolean | undefined;
5158
+ readonly defaultValue?: unknown;
5159
+ readonly maxLength?: number | undefined;
5160
+ readonly minLength?: number | undefined;
5161
+ readonly scale?: number | undefined;
5162
+ readonly reference?: string | undefined;
5163
+ readonly referenceFilters?: string[] | undefined;
5164
+ readonly writeRequiresMasterRead?: boolean | undefined;
5165
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
5166
+ readonly expression?: {
5167
+ dialect: "cel" | "js" | "cron" | "template";
5168
+ source?: string | undefined;
5169
+ ast?: unknown;
5170
+ meta?: {
5171
+ rationale?: string | undefined;
5172
+ generatedBy?: string | undefined;
5173
+ } | undefined;
5174
+ } | undefined;
5175
+ readonly summaryOperations?: {
5176
+ object: string;
5177
+ field: string;
5178
+ function: "min" | "max" | "count" | "sum" | "avg";
5179
+ } | undefined;
5180
+ readonly language?: string | undefined;
5181
+ readonly lineNumbers?: boolean | undefined;
5182
+ readonly maxRating?: number | undefined;
5183
+ readonly allowHalf?: boolean | undefined;
5184
+ readonly displayMap?: boolean | undefined;
5185
+ readonly allowGeocoding?: boolean | undefined;
5186
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
5187
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
5188
+ readonly allowAlpha?: boolean | undefined;
5189
+ readonly presetColors?: string[] | undefined;
5190
+ readonly step?: number | undefined;
5191
+ readonly showValue?: boolean | undefined;
5192
+ readonly marks?: Record<string, string> | undefined;
5193
+ readonly barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
5194
+ readonly qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
5195
+ readonly displayValue?: boolean | undefined;
5196
+ readonly allowScanning?: boolean | undefined;
5197
+ readonly currencyConfig?: {
5198
+ precision: number;
5199
+ currencyMode: "fixed" | "dynamic";
5200
+ defaultCurrency: string;
5201
+ } | undefined;
5202
+ readonly vectorConfig?: {
5203
+ dimensions: number;
5204
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
5205
+ normalized: boolean;
5206
+ indexed: boolean;
5207
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
5208
+ } | undefined;
5209
+ readonly fileAttachmentConfig?: {
5210
+ virusScan: boolean;
5211
+ virusScanOnUpload: boolean;
5212
+ quarantineOnThreat: boolean;
5213
+ allowMultiple: boolean;
5214
+ allowReplace: boolean;
5215
+ allowDelete: boolean;
5216
+ requireUpload: boolean;
5217
+ extractMetadata: boolean;
5218
+ extractText: boolean;
5219
+ versioningEnabled: boolean;
5220
+ publicRead: boolean;
5221
+ presignedUrlExpiry: number;
5222
+ minSize?: number | undefined;
5223
+ maxSize?: number | undefined;
5224
+ allowedTypes?: string[] | undefined;
5225
+ blockedTypes?: string[] | undefined;
5226
+ allowedMimeTypes?: string[] | undefined;
5227
+ blockedMimeTypes?: string[] | undefined;
5228
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
5229
+ storageProvider?: string | undefined;
5230
+ storageBucket?: string | undefined;
5231
+ storagePrefix?: string | undefined;
5232
+ imageValidation?: {
5233
+ generateThumbnails: boolean;
5234
+ preserveMetadata: boolean;
5235
+ autoRotate: boolean;
5236
+ minWidth?: number | undefined;
5237
+ maxWidth?: number | undefined;
5238
+ minHeight?: number | undefined;
5239
+ maxHeight?: number | undefined;
5240
+ aspectRatio?: string | undefined;
5241
+ thumbnailSizes?: {
5242
+ name: string;
5243
+ width: number;
5244
+ height: number;
5245
+ crop: boolean;
5246
+ }[] | undefined;
5247
+ } | undefined;
5248
+ maxVersions?: number | undefined;
5249
+ } | undefined;
5250
+ readonly maskingRule?: {
5251
+ field: string;
5252
+ strategy: "partial" | "hash" | "redact" | "tokenize" | "randomize" | "nullify" | "substitute";
5253
+ preserveFormat: boolean;
5254
+ preserveLength: boolean;
5255
+ pattern?: string | undefined;
5256
+ roles?: string[] | undefined;
5257
+ exemptRoles?: string[] | undefined;
5258
+ } | undefined;
5259
+ readonly auditTrail?: boolean | undefined;
5260
+ readonly cached?: {
5261
+ enabled: boolean;
5262
+ ttl: number;
5263
+ invalidateOn: string[];
5264
+ } | undefined;
5265
+ readonly dataQuality?: {
5266
+ uniqueness: boolean;
5267
+ completeness: number;
5268
+ accuracy?: {
5269
+ source: string;
5270
+ threshold: number;
5271
+ } | undefined;
5272
+ } | undefined;
5273
+ readonly conditionalRequired?: {
4139
5274
  dialect: "cel" | "js" | "cron" | "template";
4140
5275
  source?: string | undefined;
4141
5276
  ast?: unknown;
@@ -4143,209 +5278,17 @@ declare const AiMessageObject: Omit<{
4143
5278
  rationale?: string | undefined;
4144
5279
  generatedBy?: string | undefined;
4145
5280
  } | undefined;
4146
- };
4147
- style: Record<string, string>;
4148
- }[] | undefined;
4149
- inlineEdit?: boolean | undefined;
4150
- exportOptions?: ("json" | "csv" | "xlsx" | "pdf")[] | undefined;
4151
- userActions?: {
4152
- sort: boolean;
4153
- search: boolean;
4154
- filter: boolean;
4155
- rowHeight: boolean;
4156
- addRecordForm: boolean;
4157
- buttons?: string[] | undefined;
4158
- } | undefined;
4159
- appearance?: {
4160
- showDescription: boolean;
4161
- allowedVisualizations?: ("map" | "kanban" | "calendar" | "gantt" | "gallery" | "timeline" | "grid")[] | undefined;
4162
- } | undefined;
4163
- tabs?: {
4164
- name: string;
4165
- pinned: boolean;
4166
- isDefault: boolean;
4167
- visible: boolean;
4168
- label?: string | undefined;
4169
- icon?: string | undefined;
4170
- view?: string | undefined;
4171
- filter?: {
4172
- field: string;
4173
- operator: string;
4174
- value?: string | number | boolean | (string | number)[] | null | undefined;
4175
- }[] | undefined;
4176
- order?: number | undefined;
4177
- }[] | undefined;
4178
- addRecord?: {
4179
- enabled: boolean;
4180
- position: "top" | "bottom" | "both";
4181
- mode: "modal" | "form" | "inline";
4182
- formView?: string | undefined;
4183
- } | undefined;
4184
- showRecordCount?: boolean | undefined;
4185
- allowPrinting?: boolean | undefined;
4186
- emptyState?: {
4187
- title?: string | undefined;
4188
- message?: string | undefined;
4189
- icon?: string | undefined;
4190
- } | undefined;
4191
- aria?: {
4192
- ariaLabel?: string | undefined;
4193
- ariaDescribedBy?: string | undefined;
4194
- role?: string | undefined;
4195
- } | undefined;
4196
- responsive?: {
4197
- breakpoint?: "md" | "xs" | "sm" | "lg" | "xl" | "2xl" | undefined;
4198
- hiddenOn?: ("md" | "xs" | "sm" | "lg" | "xl" | "2xl")[] | undefined;
4199
- columns?: {
4200
- xs?: number | undefined;
4201
- sm?: number | undefined;
4202
- md?: number | undefined;
4203
- lg?: number | undefined;
4204
- xl?: number | undefined;
4205
- '2xl'?: number | undefined;
4206
- } | undefined;
4207
- order?: {
4208
- xs?: number | undefined;
4209
- sm?: number | undefined;
4210
- md?: number | undefined;
4211
- lg?: number | undefined;
4212
- xl?: number | undefined;
4213
- '2xl'?: number | undefined;
4214
- } | undefined;
4215
- } | undefined;
4216
- performance?: {
4217
- lazyLoad?: boolean | undefined;
4218
- virtualScroll?: {
4219
- enabled: boolean;
4220
- itemHeight?: number | undefined;
4221
- overscan?: number | undefined;
4222
- } | undefined;
4223
- cacheStrategy?: "none" | "cache-first" | "network-first" | "stale-while-revalidate" | undefined;
4224
- prefetch?: boolean | undefined;
4225
- pageSize?: number | undefined;
4226
- debounceMs?: number | undefined;
4227
- } | undefined;
4228
- }> | undefined;
4229
- defaultDetailForm?: string | undefined;
4230
- search?: {
4231
- fields: string[];
4232
- displayFields?: string[] | undefined;
4233
- filters?: string[] | undefined;
4234
- } | undefined;
4235
- enable?: {
4236
- trackHistory: boolean;
4237
- searchable: boolean;
4238
- apiEnabled: boolean;
4239
- files: boolean;
4240
- feeds: boolean;
4241
- activities: boolean;
4242
- trash: boolean;
4243
- mru: boolean;
4244
- clone: boolean;
4245
- apiMethods?: ("restore" | "export" | "import" | "delete" | "purge" | "upsert" | "search" | "create" | "list" | "get" | "update" | "history" | "bulk" | "aggregate")[] | undefined;
4246
- } | undefined;
4247
- recordTypes?: string[] | undefined;
4248
- sharingModel?: "private" | "read" | "full" | "read_write" | undefined;
4249
- publicSharing?: {
4250
- enabled: boolean;
4251
- allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
4252
- allowedPermissions?: ("edit" | "view" | "comment")[] | undefined;
4253
- maxExpiryDays?: number | undefined;
4254
- redactFields?: string[] | undefined;
4255
- eligibility?: string | undefined;
4256
- } | undefined;
4257
- keyPrefix?: string | undefined;
4258
- detail?: {
4259
- [x: string]: unknown;
4260
- renderViaSchema?: boolean | undefined;
4261
- hideReferenceRail?: boolean | undefined;
4262
- hideRelatedTab?: boolean | undefined;
4263
- } | undefined;
4264
- actions?: {
4265
- name: string;
4266
- label: string;
4267
- type: "url" | "flow" | "api" | "script" | "modal" | "form";
4268
- refreshAfter: boolean;
4269
- objectName?: string | undefined;
4270
- icon?: string | undefined;
4271
- locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "global_nav")[] | undefined;
4272
- component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined;
4273
- target?: string | undefined;
4274
- body?: {
4275
- language: "expression";
4276
- source: string;
4277
- } | {
4278
- language: "js";
4279
- source: string;
4280
- capabilities: ("api.read" | "api.write" | "crypto.uuid" | "crypto.hash" | "log")[];
4281
- timeoutMs?: number | undefined;
4282
- memoryMb?: number | undefined;
4283
- } | undefined;
4284
- execute?: string | undefined;
4285
- params?: {
4286
- required: boolean;
4287
- name?: string | undefined;
4288
- field?: string | undefined;
4289
- objectOverride?: string | undefined;
4290
- label?: string | undefined;
4291
- type?: "number" | "boolean" | "date" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "text" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
4292
- options?: {
4293
- label: string;
4294
- value: string;
4295
- }[] | undefined;
4296
- placeholder?: string | undefined;
4297
- helpText?: string | undefined;
4298
- defaultValue?: unknown;
4299
- defaultFromRow?: boolean | undefined;
4300
- }[] | undefined;
4301
- variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
4302
- confirmText?: string | undefined;
4303
- successMessage?: string | undefined;
4304
- visible?: {
4305
- dialect: "cel" | "js" | "cron" | "template";
4306
- source?: string | undefined;
4307
- ast?: unknown;
4308
- meta?: {
4309
- rationale?: string | undefined;
4310
- generatedBy?: string | undefined;
4311
- } | undefined;
4312
- } | undefined;
4313
- disabled?: boolean | {
4314
- dialect: "cel" | "js" | "cron" | "template";
4315
- source?: string | undefined;
4316
- ast?: unknown;
4317
- meta?: {
4318
- rationale?: string | undefined;
4319
- generatedBy?: string | undefined;
4320
5281
  } | undefined;
4321
- } | undefined;
4322
- shortcut?: string | undefined;
4323
- bulkEnabled?: boolean | undefined;
4324
- aiExposed?: boolean | undefined;
4325
- recordIdParam?: string | undefined;
4326
- recordIdField?: string | undefined;
4327
- bodyShape?: "flat" | {
4328
- wrap: string;
4329
- } | undefined;
4330
- method?: "POST" | "PATCH" | "PUT" | "DELETE" | undefined;
4331
- bodyExtra?: Record<string, unknown> | undefined;
4332
- mode?: "custom" | "delete" | "create" | "edit" | undefined;
4333
- timeout?: number | undefined;
4334
- aria?: {
4335
- ariaLabel?: string | undefined;
4336
- ariaDescribedBy?: string | undefined;
4337
- role?: string | undefined;
4338
- } | undefined;
4339
- }[] | undefined;
4340
- }, "fields"> & Pick<{
4341
- readonly name: "ai_messages";
4342
- readonly label: "AI Message";
4343
- readonly pluralLabel: "AI Messages";
4344
- readonly icon: "message-circle";
4345
- readonly isSystem: true;
4346
- readonly description: "Individual messages within AI conversations";
4347
- readonly fields: {
4348
- readonly id: {
5282
+ readonly hidden?: boolean | undefined;
5283
+ readonly sortable?: boolean | undefined;
5284
+ readonly inlineHelpText?: string | undefined;
5285
+ readonly trackFeedHistory?: boolean | undefined;
5286
+ readonly caseSensitive?: boolean | undefined;
5287
+ readonly autonumberFormat?: string | undefined;
5288
+ readonly index?: boolean | undefined;
5289
+ readonly type: "textarea";
5290
+ };
5291
+ readonly tool_call_id: {
4349
5292
  readonly readonly?: boolean | undefined;
4350
5293
  readonly format?: string | undefined;
4351
5294
  readonly options?: {
@@ -4520,7 +5463,7 @@ declare const AiMessageObject: Omit<{
4520
5463
  readonly index?: boolean | undefined;
4521
5464
  readonly type: "text";
4522
5465
  };
4523
- readonly conversation_id: {
5466
+ readonly model: {
4524
5467
  readonly readonly?: boolean | undefined;
4525
5468
  readonly format?: string | undefined;
4526
5469
  readonly options?: {
@@ -4566,7 +5509,7 @@ declare const AiMessageObject: Omit<{
4566
5509
  readonly maxLength?: number | undefined;
4567
5510
  readonly minLength?: number | undefined;
4568
5511
  readonly scale?: number | undefined;
4569
- reference: string;
5512
+ readonly reference?: string | undefined;
4570
5513
  readonly referenceFilters?: string[] | undefined;
4571
5514
  readonly writeRequiresMasterRead?: boolean | undefined;
4572
5515
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
@@ -4693,17 +5636,17 @@ declare const AiMessageObject: Omit<{
4693
5636
  readonly caseSensitive?: boolean | undefined;
4694
5637
  readonly autonumberFormat?: string | undefined;
4695
5638
  readonly index?: boolean | undefined;
4696
- readonly type: "lookup";
5639
+ readonly type: "text";
4697
5640
  };
4698
- readonly role: {
5641
+ readonly prompt_tokens: {
4699
5642
  readonly readonly?: boolean | undefined;
4700
5643
  readonly format?: string | undefined;
4701
- options: {
5644
+ readonly options?: {
4702
5645
  label: string;
4703
5646
  value: string;
4704
5647
  color?: string | undefined;
4705
5648
  default?: boolean | undefined;
4706
- }[];
5649
+ }[] | undefined;
4707
5650
  readonly description?: string | undefined;
4708
5651
  readonly label?: string | undefined;
4709
5652
  readonly name?: string | undefined;
@@ -4868,9 +5811,9 @@ declare const AiMessageObject: Omit<{
4868
5811
  readonly caseSensitive?: boolean | undefined;
4869
5812
  readonly autonumberFormat?: string | undefined;
4870
5813
  readonly index?: boolean | undefined;
4871
- readonly type: "select";
5814
+ readonly type: "number";
4872
5815
  };
4873
- readonly content: {
5816
+ readonly completion_tokens: {
4874
5817
  readonly readonly?: boolean | undefined;
4875
5818
  readonly format?: string | undefined;
4876
5819
  readonly options?: {
@@ -5043,9 +5986,9 @@ declare const AiMessageObject: Omit<{
5043
5986
  readonly caseSensitive?: boolean | undefined;
5044
5987
  readonly autonumberFormat?: string | undefined;
5045
5988
  readonly index?: boolean | undefined;
5046
- readonly type: "textarea";
5989
+ readonly type: "number";
5047
5990
  };
5048
- readonly tool_calls: {
5991
+ readonly total_tokens: {
5049
5992
  readonly readonly?: boolean | undefined;
5050
5993
  readonly format?: string | undefined;
5051
5994
  readonly options?: {
@@ -5218,9 +6161,9 @@ declare const AiMessageObject: Omit<{
5218
6161
  readonly caseSensitive?: boolean | undefined;
5219
6162
  readonly autonumberFormat?: string | undefined;
5220
6163
  readonly index?: boolean | undefined;
5221
- readonly type: "textarea";
6164
+ readonly type: "number";
5222
6165
  };
5223
- readonly tool_call_id: {
6166
+ readonly latency_ms: {
5224
6167
  readonly readonly?: boolean | undefined;
5225
6168
  readonly format?: string | undefined;
5226
6169
  readonly options?: {
@@ -5393,7 +6336,7 @@ declare const AiMessageObject: Omit<{
5393
6336
  readonly caseSensitive?: boolean | undefined;
5394
6337
  readonly autonumberFormat?: string | undefined;
5395
6338
  readonly index?: boolean | undefined;
5396
- readonly type: "text";
6339
+ readonly type: "number";
5397
6340
  };
5398
6341
  readonly created_at: {
5399
6342
  readonly readonly?: boolean | undefined;
@@ -5575,6 +6518,8 @@ declare const AiMessageObject: Omit<{
5575
6518
  readonly fields: ["conversation_id"];
5576
6519
  }, {
5577
6520
  readonly fields: ["conversation_id", "created_at"];
6521
+ }, {
6522
+ readonly fields: ["model"];
5578
6523
  }];
5579
6524
  readonly enable: {
5580
6525
  readonly trackHistory: false;
@@ -5605,7 +6550,7 @@ declare const AiTraceObject: Omit<{
5605
6550
  abstract: boolean;
5606
6551
  datasource: string;
5607
6552
  fields: Record<string, {
5608
- type: "number" | "boolean" | "file" | "text" | "json" | "tags" | "currency" | "code" | "date" | "avatar" | "vector" | "datetime" | "signature" | "progress" | "url" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "video" | "audio" | "formula" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "color" | "rating" | "slider" | "qrcode";
6553
+ type: "number" | "boolean" | "file" | "text" | "json" | "tags" | "currency" | "code" | "date" | "record" | "avatar" | "vector" | "datetime" | "signature" | "progress" | "url" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "video" | "audio" | "formula" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "color" | "rating" | "slider" | "qrcode";
5609
6554
  required: boolean;
5610
6555
  searchable: boolean;
5611
6556
  multiple: boolean;
@@ -6207,7 +7152,7 @@ declare const AiTraceObject: Omit<{
6207
7152
  refreshAfter: boolean;
6208
7153
  objectName?: string | undefined;
6209
7154
  icon?: string | undefined;
6210
- locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "global_nav")[] | undefined;
7155
+ locations?: ("list_toolbar" | "list_item" | "record_header" | "record_more" | "record_related" | "record_section" | "global_nav")[] | undefined;
6211
7156
  component?: "action:button" | "action:icon" | "action:menu" | "action:group" | undefined;
6212
7157
  target?: string | undefined;
6213
7158
  body?: {
@@ -6227,7 +7172,7 @@ declare const AiTraceObject: Omit<{
6227
7172
  field?: string | undefined;
6228
7173
  objectOverride?: string | undefined;
6229
7174
  label?: string | undefined;
6230
- type?: "number" | "boolean" | "date" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "text" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
7175
+ type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "text" | "textarea" | "email" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
6231
7176
  options?: {
6232
7177
  label: string;
6233
7178
  value: string;
@@ -6240,6 +7185,17 @@ declare const AiTraceObject: Omit<{
6240
7185
  variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
6241
7186
  confirmText?: string | undefined;
6242
7187
  successMessage?: string | undefined;
7188
+ resultDialog?: {
7189
+ title?: string | undefined;
7190
+ description?: string | undefined;
7191
+ acknowledge?: string | undefined;
7192
+ format?: "secret" | "text" | "json" | "qrcode" | "code-list" | undefined;
7193
+ fields?: {
7194
+ path: string;
7195
+ label?: string | undefined;
7196
+ format?: "secret" | "text" | "json" | "qrcode" | "code-list" | undefined;
7197
+ }[] | undefined;
7198
+ } | undefined;
6243
7199
  visible?: {
6244
7200
  dialect: "cel" | "js" | "cron" | "template";
6245
7201
  source?: string | undefined;
@@ -9745,6 +10701,7 @@ declare const AiTraceView: {
9745
10701
  collapsed: boolean;
9746
10702
  columns: 1 | 2 | 3 | 4;
9747
10703
  fields: any[];
10704
+ name?: string | undefined;
9748
10705
  label?: string | undefined;
9749
10706
  description?: string | undefined;
9750
10707
  visibleOn?: {
@@ -9770,6 +10727,7 @@ declare const AiTraceView: {
9770
10727
  collapsed: boolean;
9771
10728
  columns: 1 | 2 | 3 | 4;
9772
10729
  fields: any[];
10730
+ name?: string | undefined;
9773
10731
  label?: string | undefined;
9774
10732
  description?: string | undefined;
9775
10733
  visibleOn?: {
@@ -10093,6 +11051,7 @@ declare const AiTraceView: {
10093
11051
  collapsed: boolean;
10094
11052
  columns: 1 | 2 | 3 | 4;
10095
11053
  fields: any[];
11054
+ name?: string | undefined;
10096
11055
  label?: string | undefined;
10097
11056
  description?: string | undefined;
10098
11057
  visibleOn?: {
@@ -10118,6 +11077,7 @@ declare const AiTraceView: {
10118
11077
  collapsed: boolean;
10119
11078
  columns: 1 | 2 | 3 | 4;
10120
11079
  fields: any[];
11080
+ name?: string | undefined;
10121
11081
  label?: string | undefined;
10122
11082
  description?: string | undefined;
10123
11083
  visibleOn?: {