@gentiq/core 1.0.0-beta.1 → 1.0.0-beta.3

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.ts CHANGED
@@ -290,10 +290,13 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
290
290
  }>;
291
291
  getAppConfig: (signal?: AbortSignal) => Promise<{
292
292
  admin_title?: string | null;
293
+ app_favicon?: string | null;
294
+ app_logo?: string | components["schemas"]["AppLogo"] | null;
293
295
  app_name?: string | null;
294
296
  app_version: string | null;
295
297
  attachments: components["schemas"]["AttachmentLimits"];
296
298
  auth_page_enabled?: boolean | null;
299
+ capabilities?: components["schemas"]["CapabilityView"][];
297
300
  composer_attachments?: boolean | null;
298
301
  composer_voice?: boolean | null;
299
302
  connectors_allow_user_mcp?: boolean;
@@ -318,6 +321,9 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
318
321
  language_locked?: boolean | null;
319
322
  login_fields: ("username" | "email" | "phone")[];
320
323
  maintenance: components["schemas"]["MaintenanceNotice"];
324
+ memory_enabled?: boolean;
325
+ memory_include_chat_history?: boolean;
326
+ modes?: components["schemas"]["ChatModeView"][];
321
327
  plugins: string[];
322
328
  quota_calendar?: ("gregorian" | "persian") | null;
323
329
  quota_timezone?: string | null;
@@ -659,8 +665,95 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
659
665
  deleteUserMCPConnector: (connectorId: string) => Promise<{
660
666
  status: "success";
661
667
  }>;
668
+ /** List memories belonging to the current user (or requested authorized scope). */
669
+ listMemories: (params?: {
670
+ q?: string;
671
+ scope_kind?: string;
672
+ scope_id?: string;
673
+ limit?: number;
674
+ cursor?: string;
675
+ }, signal?: AbortSignal) => Promise<{
676
+ max_memories: number;
677
+ memories: components["schemas"]["MemoryView"][];
678
+ next_cursor?: string | null;
679
+ scopes: components["schemas"]["MemoryScopeView"][];
680
+ total: number;
681
+ }>;
682
+ /** Create (or deduplicate) a memory item for the current user. */
683
+ createMemory: (data: MemoryCreateInput) => Promise<{
684
+ content: string;
685
+ created_at: string;
686
+ id: string;
687
+ importance: number;
688
+ last_accessed_at?: string | null;
689
+ metadata?: {
690
+ [key: string]: components["schemas"]["JsonValue"];
691
+ };
692
+ pinned: boolean;
693
+ scope_id: string;
694
+ scope_kind: string;
695
+ source: "user" | "agent" | "extracted" | "system";
696
+ source_thread_id?: string | null;
697
+ updated_at: string;
698
+ }>;
699
+ /** Update an existing memory item owned by the current user. */
700
+ updateMemory: (memoryId: string, data: MemoryUpdateInput) => Promise<{
701
+ content: string;
702
+ created_at: string;
703
+ id: string;
704
+ importance: number;
705
+ last_accessed_at?: string | null;
706
+ metadata?: {
707
+ [key: string]: components["schemas"]["JsonValue"];
708
+ };
709
+ pinned: boolean;
710
+ scope_id: string;
711
+ scope_kind: string;
712
+ source: "user" | "agent" | "extracted" | "system";
713
+ source_thread_id?: string | null;
714
+ updated_at: string;
715
+ }>;
716
+ /** Delete a stored memory item owned by the current user. */
717
+ deleteMemory: (memoryId: string) => Promise<{
718
+ status: "success";
719
+ }>;
720
+ /** Delete all memories in the user's writable scopes (or the named scope). */
721
+ clearMemories: (params?: {
722
+ scope_kind?: string;
723
+ scope_id?: string;
724
+ }) => Promise<{
725
+ deleted: number;
726
+ status?: "success";
727
+ }>;
728
+ /** Fetch the current user's memory preferences and limits. */
729
+ getMemorySettings: (signal?: AbortSignal) => Promise<{
730
+ allow_turn_opt_out: boolean;
731
+ auto_extract: boolean;
732
+ auto_extract_supported: boolean;
733
+ enabled: boolean;
734
+ include_chat_history: boolean;
735
+ max_content_length: number;
736
+ max_memories_per_scope: number;
737
+ scopes: components["schemas"]["MemoryScopeView"][];
738
+ }>;
739
+ /** Update the current user's memory preferences. */
740
+ updateMemorySettings: (data: MemorySettingsUpdateInput) => Promise<{
741
+ allow_turn_opt_out: boolean;
742
+ auto_extract: boolean;
743
+ auto_extract_supported: boolean;
744
+ enabled: boolean;
745
+ include_chat_history: boolean;
746
+ max_content_length: number;
747
+ max_memories_per_scope: number;
748
+ scopes: components["schemas"]["MemoryScopeView"][];
749
+ }>;
662
750
  };
663
751
 
752
+ /**
753
+ * Extracts the validated `POST /chat` payload fields and one-shot clear flags for a send.
754
+ */
755
+ export declare function buildTurnSelection(draft: Pick<ComposerDraft, 'mode' | 'capabilities'>, resolved: ResolvedRunSelection): TurnSelection;
756
+
664
757
  /**
665
758
  * Day arithmetic in the calendars the UI offers for picking dates: Gregorian and the
666
759
  * Solar Hijri (Jalali) calendar Persian readers use.
@@ -694,6 +787,9 @@ export declare interface CalendarSystem {
694
787
  daysInMonth: (year: number, month: number) => number;
695
788
  }
696
789
 
790
+ /** Explicit per-turn capability overrides sent on `POST /chat`. */
791
+ export declare type CapabilityOverrides = NonNullable<ChatRequestSchema['capabilities']>;
792
+
697
793
  /**
698
794
  * A file to send with a message: one uploaded with `uploadAttachment`, as it answered. `file` is
699
795
  * the local copy, if there is one, so the message can show the file without downloading it again.
@@ -702,8 +798,14 @@ export declare type ChatAttachment = AttachmentUpload & {
702
798
  file?: Blob;
703
799
  };
704
800
 
801
+ /** A toggleable run capability declared by the backend (returned by `GET /config`). */
802
+ export declare type ChatCapability = Schemas['CapabilityView'];
803
+
705
804
  /** The answer is stored, and whether a title is still coming (`data-chat-finished`). */
706
- declare type ChatFinishedData = Schemas['ChatFinishedData'];
805
+ export declare type ChatFinishedData = Schemas['ChatFinishedData'];
806
+
807
+ /** A chat mode declared by the backend (returned by `GET /config`). */
808
+ export declare type ChatMode = Schemas['ChatModeView'];
707
809
 
708
810
  /**
709
811
  * Structured reference context selected from an earlier message or explicit UI card.
@@ -1461,6 +1563,10 @@ declare interface components {
1461
1563
  AdminThreadItem: {
1462
1564
  /** Agent */
1463
1565
  agent?: string | null;
1566
+ /** Capabilities */
1567
+ capabilities?: {
1568
+ [key: string]: boolean;
1569
+ } | null;
1464
1570
  /**
1465
1571
  * Content
1466
1572
  * @default
@@ -1472,6 +1578,8 @@ declare interface components {
1472
1578
  feedback?: string | null;
1473
1579
  /** Id */
1474
1580
  id: string;
1581
+ /** Mode */
1582
+ mode?: string | null;
1475
1583
  /**
1476
1584
  * Parts
1477
1585
  * @default []
@@ -1581,6 +1689,16 @@ declare interface components {
1581
1689
  /** Users */
1582
1690
  users: components["schemas"]["AdminUserRow"][];
1583
1691
  };
1692
+ /** AdminUserMemoryResponse */
1693
+ AdminUserMemoryResponse: {
1694
+ /** Memories */
1695
+ memories: components["schemas"]["MemoryView"][];
1696
+ /** Next Cursor */
1697
+ next_cursor?: string | null;
1698
+ settings: components["schemas"]["MemorySettingsView"];
1699
+ /** Total */
1700
+ total: number;
1701
+ };
1584
1702
  /** AdminUserRow */
1585
1703
  AdminUserRow: {
1586
1704
  /** Email */
@@ -1806,6 +1924,16 @@ declare interface components {
1806
1924
  /** Scopes */
1807
1925
  scopes: string[];
1808
1926
  };
1927
+ /**
1928
+ * AppLogo
1929
+ * @description Light and dark theme URLs for the application logo.
1930
+ */
1931
+ AppLogo: {
1932
+ /** Dark */
1933
+ dark: string;
1934
+ /** Light */
1935
+ light: string;
1936
+ };
1809
1937
  /**
1810
1938
  * AppSettings
1811
1939
  * @description What an admin changed in the app's configuration, from the settings page.
@@ -1816,6 +1944,10 @@ declare interface components {
1816
1944
  AppSettings: {
1817
1945
  /** Admin Title */
1818
1946
  admin_title?: string | null;
1947
+ /** App Favicon */
1948
+ app_favicon?: string | null;
1949
+ /** App Logo */
1950
+ app_logo?: string | components["schemas"]["AppLogo"] | null;
1819
1951
  /** App Name */
1820
1952
  app_name?: string | null;
1821
1953
  /** Auth Page Enabled */
@@ -1925,6 +2057,10 @@ declare interface components {
1925
2057
  AppSettingsUpdateInput: {
1926
2058
  /** Admin Title */
1927
2059
  admin_title?: string | null;
2060
+ /** App Favicon */
2061
+ app_favicon?: string | null;
2062
+ /** App Logo */
2063
+ app_logo?: string | components["schemas"]["AppLogo"] | null;
1928
2064
  /** App Name */
1929
2065
  app_name?: string | null;
1930
2066
  /** Auth Page Enabled */
@@ -2092,45 +2228,21 @@ declare interface components {
2092
2228
  /** Username */
2093
2229
  username: string | null;
2094
2230
  };
2095
- /** BackgroundJob */
2096
- BackgroundJob: {
2097
- /**
2098
- * Created At
2099
- * Format: date-time
2100
- */
2101
- created_at: string;
2102
- /** Error */
2103
- error: string | null;
2231
+ /**
2232
+ * BrandingIconUpload
2233
+ * @description Metadata and public path of an uploaded app logo or favicon.
2234
+ */
2235
+ BrandingIconUpload: {
2236
+ /** Filename */
2237
+ filename: string;
2104
2238
  /** Id */
2105
2239
  id: string;
2106
- /** Message */
2107
- message: string | null;
2108
- /** Metadata */
2109
- metadata: {
2110
- [key: string]: unknown;
2111
- };
2112
- /** Progress */
2113
- progress: number | null;
2114
- /** Result */
2115
- result: unknown;
2116
- /** Status */
2117
- status: string;
2118
- /** Type */
2119
- type: string;
2120
- /**
2121
- * Updated At
2122
- * Format: date-time
2123
- */
2124
- updated_at: string;
2125
- /** User Id */
2126
- user_id: string | null;
2127
- };
2128
- /** BackgroundJobList */
2129
- BackgroundJobList: {
2130
- /** Count */
2131
- count: number;
2132
- /** Jobs */
2133
- jobs: components["schemas"]["BackgroundJob"][];
2240
+ /** Media Type */
2241
+ media_type: string;
2242
+ /** Size */
2243
+ size: number;
2244
+ /** Url */
2245
+ url: string;
2134
2246
  };
2135
2247
  /** BulkAccessResponse */
2136
2248
  BulkAccessResponse: {
@@ -2151,6 +2263,85 @@ declare interface components {
2151
2263
  /** At */
2152
2264
  at?: string | null;
2153
2265
  };
2266
+ /**
2267
+ * CapabilityView
2268
+ * @description Public metadata for one run capability, returned by ``GET /api/config``.
2269
+ */
2270
+ CapabilityView: {
2271
+ /** Active Label */
2272
+ active_label?: string | null;
2273
+ /** Attachment Types */
2274
+ attachment_types?: string[] | null;
2275
+ /**
2276
+ * Chip
2277
+ * @default when_changed
2278
+ * @enum {string}
2279
+ */
2280
+ chip?: "when_active" | "when_changed" | "always" | "never";
2281
+ /**
2282
+ * Chip Display
2283
+ * @default pill
2284
+ * @enum {string}
2285
+ */
2286
+ chip_display?: "pill" | "icon";
2287
+ /**
2288
+ * Default
2289
+ * @default false
2290
+ */
2291
+ default?: boolean;
2292
+ /** Description */
2293
+ description?: string | null;
2294
+ /** Exclusive Group */
2295
+ exclusive_group?: string | null;
2296
+ /** Feature */
2297
+ feature?: string | null;
2298
+ /** Group */
2299
+ group?: string | null;
2300
+ /** Icon */
2301
+ icon?: string | null;
2302
+ /** Implies */
2303
+ implies?: string[];
2304
+ /** Inactive Label */
2305
+ inactive_label?: string | null;
2306
+ /**
2307
+ * Inverted Toggle
2308
+ * @default false
2309
+ */
2310
+ inverted_toggle?: boolean;
2311
+ /** Key */
2312
+ key: string;
2313
+ /**
2314
+ * Menu
2315
+ * @default tools
2316
+ * @enum {string}
2317
+ */
2318
+ menu?: "tools" | "mode";
2319
+ /** Name */
2320
+ name: string;
2321
+ /**
2322
+ * Order
2323
+ * @default 0
2324
+ */
2325
+ order?: number;
2326
+ /** Placeholder */
2327
+ placeholder?: string | null;
2328
+ /** Settings Section */
2329
+ settings_section?: string | null;
2330
+ /**
2331
+ * Source
2332
+ * @default app
2333
+ * @enum {string}
2334
+ */
2335
+ source?: "gentiq" | "app";
2336
+ /**
2337
+ * Sticky
2338
+ * @default thread
2339
+ * @enum {string}
2340
+ */
2341
+ sticky?: "thread" | "turn";
2342
+ /** Toggle Label */
2343
+ toggle_label?: string | null;
2344
+ };
2154
2345
  /**
2155
2346
  * ChatFinishedData
2156
2347
  * @description The answer is stored. ``title_pending`` says a title is still being written.
@@ -2209,6 +2400,56 @@ declare interface components {
2209
2400
  */
2210
2401
  voice_inputs?: string[] | null;
2211
2402
  };
2403
+ /**
2404
+ * ChatModeView
2405
+ * @description Public metadata for one chat mode, returned by ``GET /api/config``.
2406
+ */
2407
+ ChatModeView: {
2408
+ /** Allowed Capabilities */
2409
+ allowed_capabilities?: string[] | null;
2410
+ /** Attachment Types */
2411
+ attachment_types?: string[] | null;
2412
+ /**
2413
+ * Default
2414
+ * @default false
2415
+ */
2416
+ default?: boolean;
2417
+ /** Description */
2418
+ description?: string | null;
2419
+ /** Disabled Capabilities */
2420
+ disabled_capabilities?: string[];
2421
+ /** Feature */
2422
+ feature?: string | null;
2423
+ /** Forced Capabilities */
2424
+ forced_capabilities?: string[];
2425
+ /** Group */
2426
+ group?: string | null;
2427
+ /** Icon */
2428
+ icon?: string | null;
2429
+ /** Key */
2430
+ key: string;
2431
+ /** Name */
2432
+ name: string;
2433
+ /**
2434
+ * Order
2435
+ * @default 0
2436
+ */
2437
+ order?: number;
2438
+ /** Placeholder */
2439
+ placeholder?: string | null;
2440
+ /**
2441
+ * Source
2442
+ * @default app
2443
+ * @enum {string}
2444
+ */
2445
+ source?: "gentiq" | "app";
2446
+ /**
2447
+ * Sticky
2448
+ * @default thread
2449
+ * @enum {string}
2450
+ */
2451
+ sticky?: "thread" | "turn";
2452
+ };
2212
2453
  /**
2213
2454
  * ChatRequest
2214
2455
  * @description A turn: a new message, or answers to the tool calls the last answer waits on.
@@ -2219,6 +2460,13 @@ declare interface components {
2219
2460
  * @default null
2220
2461
  */
2221
2462
  approvals?: components["schemas"]["ToolApprovalInput"][] | null;
2463
+ /**
2464
+ * Capabilities
2465
+ * @default null
2466
+ */
2467
+ capabilities?: {
2468
+ [key: string]: boolean;
2469
+ } | null;
2222
2470
  /**
2223
2471
  * External User Id
2224
2472
  * @default null
@@ -2226,6 +2474,11 @@ declare interface components {
2226
2474
  external_user_id?: string | null;
2227
2475
  /** @default null */
2228
2476
  message?: components["schemas"]["ChatMessageInput"] | null;
2477
+ /**
2478
+ * Mode
2479
+ * @default null
2480
+ */
2481
+ mode?: string | null;
2229
2482
  /**
2230
2483
  * Options
2231
2484
  * @default null
@@ -3196,6 +3449,135 @@ declare interface components {
3196
3449
  /** Title */
3197
3450
  title: string | null;
3198
3451
  };
3452
+ /** MemoryClearResponse */
3453
+ MemoryClearResponse: {
3454
+ /** Deleted */
3455
+ deleted: number;
3456
+ /**
3457
+ * Status
3458
+ * @default success
3459
+ * @constant
3460
+ */
3461
+ status?: "success";
3462
+ };
3463
+ /** MemoryCreateInput */
3464
+ MemoryCreateInput: {
3465
+ /** Content */
3466
+ content: string;
3467
+ /**
3468
+ * Importance
3469
+ * @default 0.6
3470
+ */
3471
+ importance?: number;
3472
+ /**
3473
+ * Pinned
3474
+ * @default false
3475
+ */
3476
+ pinned?: boolean;
3477
+ /** Scope Id */
3478
+ scope_id?: string | null;
3479
+ /** Scope Kind */
3480
+ scope_kind?: string | null;
3481
+ };
3482
+ /** MemoryListResponse */
3483
+ MemoryListResponse: {
3484
+ /** Max Memories */
3485
+ max_memories: number;
3486
+ /** Memories */
3487
+ memories: components["schemas"]["MemoryView"][];
3488
+ /** Next Cursor */
3489
+ next_cursor?: string | null;
3490
+ /** Scopes */
3491
+ scopes: components["schemas"]["MemoryScopeView"][];
3492
+ /** Total */
3493
+ total: number;
3494
+ };
3495
+ /** MemoryScopeView */
3496
+ MemoryScopeView: {
3497
+ /** Id */
3498
+ id: string;
3499
+ /** Kind */
3500
+ kind: string;
3501
+ /** Label */
3502
+ label?: string | null;
3503
+ /**
3504
+ * Readable
3505
+ * @default true
3506
+ */
3507
+ readable?: boolean;
3508
+ /**
3509
+ * Writable
3510
+ * @default true
3511
+ */
3512
+ writable?: boolean;
3513
+ };
3514
+ /** MemorySettingsUpdateInput */
3515
+ MemorySettingsUpdateInput: {
3516
+ /** Auto Extract */
3517
+ auto_extract?: boolean | null;
3518
+ /** Enabled */
3519
+ enabled?: boolean | null;
3520
+ };
3521
+ /** MemorySettingsView */
3522
+ MemorySettingsView: {
3523
+ /** Allow Turn Opt Out */
3524
+ allow_turn_opt_out: boolean;
3525
+ /** Auto Extract */
3526
+ auto_extract: boolean;
3527
+ /** Auto Extract Supported */
3528
+ auto_extract_supported: boolean;
3529
+ /** Enabled */
3530
+ enabled: boolean;
3531
+ /** Include Chat History */
3532
+ include_chat_history: boolean;
3533
+ /** Max Content Length */
3534
+ max_content_length: number;
3535
+ /** Max Memories Per Scope */
3536
+ max_memories_per_scope: number;
3537
+ /** Scopes */
3538
+ scopes: components["schemas"]["MemoryScopeView"][];
3539
+ };
3540
+ /** MemoryUpdateInput */
3541
+ MemoryUpdateInput: {
3542
+ /** Content */
3543
+ content?: string | null;
3544
+ /** Importance */
3545
+ importance?: number | null;
3546
+ /** Pinned */
3547
+ pinned?: boolean | null;
3548
+ };
3549
+ /** MemoryView */
3550
+ MemoryView: {
3551
+ /** Content */
3552
+ content: string;
3553
+ /** Created At */
3554
+ created_at: string;
3555
+ /** Id */
3556
+ id: string;
3557
+ /** Importance */
3558
+ importance: number;
3559
+ /** Last Accessed At */
3560
+ last_accessed_at?: string | null;
3561
+ /** Metadata */
3562
+ metadata?: {
3563
+ [key: string]: components["schemas"]["JsonValue"];
3564
+ };
3565
+ /** Pinned */
3566
+ pinned: boolean;
3567
+ /** Scope Id */
3568
+ scope_id: string;
3569
+ /** Scope Kind */
3570
+ scope_kind: string;
3571
+ /**
3572
+ * Source
3573
+ * @enum {string}
3574
+ */
3575
+ source: "user" | "agent" | "extracted" | "system";
3576
+ /** Source Thread Id */
3577
+ source_thread_id?: string | null;
3578
+ /** Updated At */
3579
+ updated_at: string;
3580
+ };
3199
3581
  /** MessageFeedbackInput */
3200
3582
  MessageFeedbackInput: {
3201
3583
  /** Message Id */
@@ -3530,6 +3912,10 @@ declare interface components {
3530
3912
  PublicConfig: {
3531
3913
  /** Admin Title */
3532
3914
  admin_title?: string | null;
3915
+ /** App Favicon */
3916
+ app_favicon?: string | null;
3917
+ /** App Logo */
3918
+ app_logo?: string | components["schemas"]["AppLogo"] | null;
3533
3919
  /** App Name */
3534
3920
  app_name?: string | null;
3535
3921
  /** App Version */
@@ -3537,6 +3923,8 @@ declare interface components {
3537
3923
  attachments: components["schemas"]["AttachmentLimits"];
3538
3924
  /** Auth Page Enabled */
3539
3925
  auth_page_enabled?: boolean | null;
3926
+ /** Capabilities */
3927
+ capabilities?: components["schemas"]["CapabilityView"][];
3540
3928
  /** Composer Attachments */
3541
3929
  composer_attachments?: boolean | null;
3542
3930
  /** Composer Voice */
@@ -3588,6 +3976,18 @@ declare interface components {
3588
3976
  /** Login Fields */
3589
3977
  login_fields: ("username" | "email" | "phone")[];
3590
3978
  maintenance: components["schemas"]["MaintenanceNotice"];
3979
+ /**
3980
+ * Memory Enabled
3981
+ * @default false
3982
+ */
3983
+ memory_enabled?: boolean;
3984
+ /**
3985
+ * Memory Include Chat History
3986
+ * @default false
3987
+ */
3988
+ memory_include_chat_history?: boolean;
3989
+ /** Modes */
3990
+ modes?: components["schemas"]["ChatModeView"][];
3591
3991
  /** Plugins */
3592
3992
  plugins: string[];
3593
3993
  /** Quota Calendar */
@@ -4483,6 +4883,10 @@ declare interface components {
4483
4883
  * @description A stored message. ``content`` is the plain text it shows; ``parts`` is what it's made of.
4484
4884
  */
4485
4885
  ThreadItem: {
4886
+ /** Capabilities */
4887
+ capabilities?: {
4888
+ [key: string]: boolean;
4889
+ } | null;
4486
4890
  /**
4487
4891
  * Content
4488
4892
  * @default
@@ -4494,6 +4898,8 @@ declare interface components {
4494
4898
  feedback?: string | null;
4495
4899
  /** Id */
4496
4900
  id: string;
4901
+ /** Mode */
4902
+ mode?: string | null;
4497
4903
  /**
4498
4904
  * Parts
4499
4905
  * @default []
@@ -5208,6 +5614,30 @@ declare interface components {
5208
5614
  pathItems: never;
5209
5615
  }
5210
5616
 
5617
+ /** One active or overridden capability chip to display in the composer. */
5618
+ export declare interface ComposerChipDescriptor {
5619
+ kind: 'mode' | 'capability';
5620
+ key: string;
5621
+ mode?: ChatMode;
5622
+ capability?: ChatCapability;
5623
+ active: boolean;
5624
+ forced: boolean;
5625
+ }
5626
+
5627
+ /** What a thread's composer holds besides its files. */
5628
+ declare interface ComposerDraft {
5629
+ /** The text typed so far. */
5630
+ text: string;
5631
+ /** What the message quotes, newest first. */
5632
+ references: readonly ChatReference[];
5633
+ /** The ids of the transcriptions dictated into `text`, which the message pays for. */
5634
+ voiceInputs: readonly string[];
5635
+ /** Per-thread draft chat mode override (`null` explicitly resets to default; `undefined` inherits). */
5636
+ mode?: string | null;
5637
+ /** Explicit per-capability toggles in the composer draft. */
5638
+ capabilities?: Readonly<Record<string, boolean>>;
5639
+ }
5640
+
5211
5641
  /** A file attached to the message being drafted. */
5212
5642
  export declare interface ComposerFile {
5213
5643
  /** Tells apart files with the same name. */
@@ -5427,6 +5857,10 @@ export declare const GentiqErrorCode: {
5427
5857
  readonly CONNECTOR_OAUTH_INVALID_STATE: "connector_oauth_invalid_state";
5428
5858
  readonly CONNECTOR_URL_BLOCKED: "connector_url_blocked";
5429
5859
  readonly USER_MCP_DISABLED: "user_mcp_disabled";
5860
+ readonly MEMORY_NOT_FOUND: "memory_not_found";
5861
+ readonly MEMORY_LIMIT_REACHED: "memory_limit_reached";
5862
+ readonly MEMORY_DISABLED: "memory_disabled";
5863
+ readonly MEMORY_SCOPE_FORBIDDEN: "memory_scope_forbidden";
5430
5864
  readonly INTERNAL_ERROR: "internal_error";
5431
5865
  readonly VALIDATION_ERROR: "validation_error";
5432
5866
  readonly NOT_FOUND: "not_found";
@@ -5580,13 +6014,41 @@ export declare type MaintenanceDisplay = MaintenanceStatus['display'];
5580
6014
  /** The maintenance notice, as the public `/status` and `/config` report it. */
5581
6015
  export declare type MaintenanceStatus = Schemas['MaintenanceNotice'];
5582
6016
 
5583
- declare type MaybePromise<T> = T | Promise<T>;
6017
+ /** Either a synchronous value or a Promise resolving to it. */
6018
+ export declare type MaybePromise<T> = T | Promise<T>;
6019
+
6020
+ /** Response from `DELETE /memory`. */
6021
+ export declare type MemoryClearResponse = Schemas['MemoryClearResponse'];
6022
+
6023
+ /** Request body to create a memory item. */
6024
+ export declare type MemoryCreateInput = Schemas['MemoryCreateInput'];
6025
+
6026
+ /** A stored user memory item. */
6027
+ export declare type MemoryItem = Schemas['MemoryView'];
6028
+
6029
+ /** Response from `GET /memory`. */
6030
+ export declare type MemoryListResponse = Schemas['MemoryListResponse'];
6031
+
6032
+ /** An authorized memory scope. */
6033
+ export declare type MemoryScope = Schemas['MemoryScopeView'];
6034
+
6035
+ /** User memory settings and limits (`GET /memory/settings`). */
6036
+ export declare type MemorySettings = Schemas['MemorySettingsView'];
6037
+
6038
+ /** Request body to update user memory settings. */
6039
+ export declare type MemorySettingsUpdateInput = Schemas['MemorySettingsUpdateInput'];
6040
+
6041
+ /** Origin of a stored memory item (`'user' | 'agent' | 'extracted' | 'system'`). */
6042
+ export declare type MemorySource = MemoryItem['source'];
6043
+
6044
+ /** Request body to update a memory item. */
6045
+ export declare type MemoryUpdateInput = Schemas['MemoryUpdateInput'];
5584
6046
 
5585
6047
  /** What the user thought of an answer. */
5586
6048
  export declare type MessageFeedback = 'like' | 'dislike';
5587
6049
 
5588
6050
  /** The id the answer being streamed is stored under (`data-message-id`). */
5589
- declare type MessageIdData = Schemas['MessageIdData'];
6051
+ export declare type MessageIdData = Schemas['MessageIdData'];
5590
6052
 
5591
6053
  /** A message's text as one string: every text part, in order, separated by a blank line. */
5592
6054
  export declare function messageText(message: Pick<UIMessage, 'parts'>): string;
@@ -6852,47 +7314,6 @@ declare interface operations {
6852
7314
  };
6853
7315
  };
6854
7316
  };
6855
- list_jobs_api_admin_jobs_get: {
6856
- parameters: {
6857
- query?: {
6858
- limit?: number;
6859
- type?: string | null;
6860
- };
6861
- header?: never;
6862
- path?: never;
6863
- cookie?: never;
6864
- };
6865
- requestBody?: never;
6866
- responses: {
6867
- /** @description Successful Response */
6868
- 200: {
6869
- headers: {
6870
- [name: string]: unknown;
6871
- };
6872
- content: {
6873
- "application/json": components["schemas"]["BackgroundJobList"];
6874
- };
6875
- };
6876
- /** @description Client Error */
6877
- "4XX": {
6878
- headers: {
6879
- [name: string]: unknown;
6880
- };
6881
- content: {
6882
- "application/json": components["schemas"]["ErrorResponse"];
6883
- };
6884
- };
6885
- /** @description Server Error */
6886
- "5XX": {
6887
- headers: {
6888
- [name: string]: unknown;
6889
- };
6890
- content: {
6891
- "application/json": components["schemas"]["ErrorResponse"];
6892
- };
6893
- };
6894
- };
6895
- };
6896
7317
  run_raw_job_api_admin_jobs_raw_post: {
6897
7318
  parameters: {
6898
7319
  query?: never;
@@ -7219,47 +7640,7 @@ declare interface operations {
7219
7640
  };
7220
7641
  };
7221
7642
  };
7222
- cancel_job_api_admin_jobs__job_id__cancel_post: {
7223
- parameters: {
7224
- query?: never;
7225
- header?: never;
7226
- path: {
7227
- job_id: string;
7228
- };
7229
- cookie?: never;
7230
- };
7231
- requestBody?: never;
7232
- responses: {
7233
- /** @description Successful Response */
7234
- 200: {
7235
- headers: {
7236
- [name: string]: unknown;
7237
- };
7238
- content: {
7239
- "application/json": components["schemas"]["StatusMessageResponse"];
7240
- };
7241
- };
7242
- /** @description Client Error */
7243
- "4XX": {
7244
- headers: {
7245
- [name: string]: unknown;
7246
- };
7247
- content: {
7248
- "application/json": components["schemas"]["ErrorResponse"];
7249
- };
7250
- };
7251
- /** @description Server Error */
7252
- "5XX": {
7253
- headers: {
7254
- [name: string]: unknown;
7255
- };
7256
- content: {
7257
- "application/json": components["schemas"]["ErrorResponse"];
7258
- };
7259
- };
7260
- };
7261
- };
7262
- login_admin_api_admin_login_post: {
7643
+ login_admin_api_admin_login_post: {
7263
7644
  parameters: {
7264
7645
  query?: never;
7265
7646
  header?: never;
@@ -8115,6 +8496,51 @@ declare interface operations {
8115
8496
  };
8116
8497
  };
8117
8498
  };
8499
+ upload_branding_icon_api_admin_settings_icon_post: {
8500
+ parameters: {
8501
+ query?: {
8502
+ filename?: string;
8503
+ };
8504
+ header?: never;
8505
+ path?: never;
8506
+ cookie?: never;
8507
+ };
8508
+ /** @description The raster icon file itself, with its image media type as the `Content-Type`. */
8509
+ requestBody: {
8510
+ content: {
8511
+ "application/octet-stream": string;
8512
+ };
8513
+ };
8514
+ responses: {
8515
+ /** @description Successful Response */
8516
+ 200: {
8517
+ headers: {
8518
+ [name: string]: unknown;
8519
+ };
8520
+ content: {
8521
+ "application/json": components["schemas"]["BrandingIconUpload"];
8522
+ };
8523
+ };
8524
+ /** @description Client Error */
8525
+ "4XX": {
8526
+ headers: {
8527
+ [name: string]: unknown;
8528
+ };
8529
+ content: {
8530
+ "application/json": components["schemas"]["ErrorResponse"];
8531
+ };
8532
+ };
8533
+ /** @description Server Error */
8534
+ "5XX": {
8535
+ headers: {
8536
+ [name: string]: unknown;
8537
+ };
8538
+ content: {
8539
+ "application/json": components["schemas"]["ErrorResponse"];
8540
+ };
8541
+ };
8542
+ };
8543
+ };
8118
8544
  get_setup_status_api_admin_setup_status_get: {
8119
8545
  parameters: {
8120
8546
  query?: never;
@@ -8776,6 +9202,131 @@ declare interface operations {
8776
9202
  };
8777
9203
  };
8778
9204
  };
9205
+ admin_list_user_memories_api_admin_users__user_id__memory_get: {
9206
+ parameters: {
9207
+ query?: {
9208
+ q?: string | null;
9209
+ limit?: number;
9210
+ cursor?: string | null;
9211
+ };
9212
+ header?: never;
9213
+ path: {
9214
+ user_id: string;
9215
+ };
9216
+ cookie?: never;
9217
+ };
9218
+ requestBody?: never;
9219
+ responses: {
9220
+ /** @description Successful Response */
9221
+ 200: {
9222
+ headers: {
9223
+ [name: string]: unknown;
9224
+ };
9225
+ content: {
9226
+ "application/json": components["schemas"]["AdminUserMemoryResponse"];
9227
+ };
9228
+ };
9229
+ /** @description Client Error */
9230
+ "4XX": {
9231
+ headers: {
9232
+ [name: string]: unknown;
9233
+ };
9234
+ content: {
9235
+ "application/json": components["schemas"]["ErrorResponse"];
9236
+ };
9237
+ };
9238
+ /** @description Server Error */
9239
+ "5XX": {
9240
+ headers: {
9241
+ [name: string]: unknown;
9242
+ };
9243
+ content: {
9244
+ "application/json": components["schemas"]["ErrorResponse"];
9245
+ };
9246
+ };
9247
+ };
9248
+ };
9249
+ admin_clear_user_memories_api_admin_users__user_id__memory_delete: {
9250
+ parameters: {
9251
+ query?: never;
9252
+ header?: never;
9253
+ path: {
9254
+ user_id: string;
9255
+ };
9256
+ cookie?: never;
9257
+ };
9258
+ requestBody?: never;
9259
+ responses: {
9260
+ /** @description Successful Response */
9261
+ 200: {
9262
+ headers: {
9263
+ [name: string]: unknown;
9264
+ };
9265
+ content: {
9266
+ "application/json": components["schemas"]["MemoryClearResponse"];
9267
+ };
9268
+ };
9269
+ /** @description Client Error */
9270
+ "4XX": {
9271
+ headers: {
9272
+ [name: string]: unknown;
9273
+ };
9274
+ content: {
9275
+ "application/json": components["schemas"]["ErrorResponse"];
9276
+ };
9277
+ };
9278
+ /** @description Server Error */
9279
+ "5XX": {
9280
+ headers: {
9281
+ [name: string]: unknown;
9282
+ };
9283
+ content: {
9284
+ "application/json": components["schemas"]["ErrorResponse"];
9285
+ };
9286
+ };
9287
+ };
9288
+ };
9289
+ admin_delete_user_memory_api_admin_users__user_id__memory__memory_id__delete: {
9290
+ parameters: {
9291
+ query?: never;
9292
+ header?: never;
9293
+ path: {
9294
+ user_id: string;
9295
+ memory_id: string;
9296
+ };
9297
+ cookie?: never;
9298
+ };
9299
+ requestBody?: never;
9300
+ responses: {
9301
+ /** @description Successful Response */
9302
+ 200: {
9303
+ headers: {
9304
+ [name: string]: unknown;
9305
+ };
9306
+ content: {
9307
+ "application/json": components["schemas"]["StatusResponse"];
9308
+ };
9309
+ };
9310
+ /** @description Client Error */
9311
+ "4XX": {
9312
+ headers: {
9313
+ [name: string]: unknown;
9314
+ };
9315
+ content: {
9316
+ "application/json": components["schemas"]["ErrorResponse"];
9317
+ };
9318
+ };
9319
+ /** @description Server Error */
9320
+ "5XX": {
9321
+ headers: {
9322
+ [name: string]: unknown;
9323
+ };
9324
+ content: {
9325
+ "application/json": components["schemas"]["ErrorResponse"];
9326
+ };
9327
+ };
9328
+ };
9329
+ };
8779
9330
  refresh_user_token_api_admin_users__user_id__refresh_token_post: {
8780
9331
  parameters: {
8781
9332
  query?: never;
@@ -10089,7 +10640,359 @@ declare interface operations {
10089
10640
  [name: string]: unknown;
10090
10641
  };
10091
10642
  content: {
10092
- "application/json": components["schemas"]["IntegrationUserResponse"];
10643
+ "application/json": components["schemas"]["IntegrationUserResponse"];
10644
+ };
10645
+ };
10646
+ /** @description Client Error */
10647
+ "4XX": {
10648
+ headers: {
10649
+ [name: string]: unknown;
10650
+ };
10651
+ content: {
10652
+ "application/json": components["schemas"]["ErrorResponse"];
10653
+ };
10654
+ };
10655
+ /** @description Server Error */
10656
+ "5XX": {
10657
+ headers: {
10658
+ [name: string]: unknown;
10659
+ };
10660
+ content: {
10661
+ "application/json": components["schemas"]["ErrorResponse"];
10662
+ };
10663
+ };
10664
+ };
10665
+ };
10666
+ grant_credits_api_integration_v1_users__external_id__credits_post: {
10667
+ parameters: {
10668
+ query?: never;
10669
+ header?: {
10670
+ "Idempotency-Key"?: string | null;
10671
+ };
10672
+ path: {
10673
+ external_id: string;
10674
+ };
10675
+ cookie?: never;
10676
+ };
10677
+ requestBody: {
10678
+ content: {
10679
+ "application/json": components["schemas"]["CreditsGrantInput"];
10680
+ };
10681
+ };
10682
+ responses: {
10683
+ /** @description Successful Response */
10684
+ 200: {
10685
+ headers: {
10686
+ [name: string]: unknown;
10687
+ };
10688
+ content: {
10689
+ "application/json": components["schemas"]["CreditsGrantResponse"];
10690
+ };
10691
+ };
10692
+ /** @description Client Error */
10693
+ "4XX": {
10694
+ headers: {
10695
+ [name: string]: unknown;
10696
+ };
10697
+ content: {
10698
+ "application/json": components["schemas"]["ErrorResponse"];
10699
+ };
10700
+ };
10701
+ /** @description Server Error */
10702
+ "5XX": {
10703
+ headers: {
10704
+ [name: string]: unknown;
10705
+ };
10706
+ content: {
10707
+ "application/json": components["schemas"]["ErrorResponse"];
10708
+ };
10709
+ };
10710
+ };
10711
+ };
10712
+ list_subscriptions_api_integration_v1_users__external_id__subscriptions_get: {
10713
+ parameters: {
10714
+ query?: never;
10715
+ header?: never;
10716
+ path: {
10717
+ external_id: string;
10718
+ };
10719
+ cookie?: never;
10720
+ };
10721
+ requestBody?: never;
10722
+ responses: {
10723
+ /** @description Successful Response */
10724
+ 200: {
10725
+ headers: {
10726
+ [name: string]: unknown;
10727
+ };
10728
+ content: {
10729
+ "application/json": components["schemas"]["SubscriptionList"];
10730
+ };
10731
+ };
10732
+ /** @description Client Error */
10733
+ "4XX": {
10734
+ headers: {
10735
+ [name: string]: unknown;
10736
+ };
10737
+ content: {
10738
+ "application/json": components["schemas"]["ErrorResponse"];
10739
+ };
10740
+ };
10741
+ /** @description Server Error */
10742
+ "5XX": {
10743
+ headers: {
10744
+ [name: string]: unknown;
10745
+ };
10746
+ content: {
10747
+ "application/json": components["schemas"]["ErrorResponse"];
10748
+ };
10749
+ };
10750
+ };
10751
+ };
10752
+ put_subscription_api_integration_v1_users__external_id__subscriptions__subscription_external_id__put: {
10753
+ parameters: {
10754
+ query?: never;
10755
+ header?: never;
10756
+ path: {
10757
+ external_id: string;
10758
+ subscription_external_id: string;
10759
+ };
10760
+ cookie?: never;
10761
+ };
10762
+ requestBody: {
10763
+ content: {
10764
+ "application/json": components["schemas"]["SubscriptionInput"];
10765
+ };
10766
+ };
10767
+ responses: {
10768
+ /** @description Successful Response */
10769
+ 200: {
10770
+ headers: {
10771
+ [name: string]: unknown;
10772
+ };
10773
+ content: {
10774
+ "application/json": components["schemas"]["SubscriptionPutResponse"];
10775
+ };
10776
+ };
10777
+ /** @description A new subscription */
10778
+ 201: {
10779
+ headers: {
10780
+ [name: string]: unknown;
10781
+ };
10782
+ content: {
10783
+ "application/json": components["schemas"]["SubscriptionPutResponse"];
10784
+ };
10785
+ };
10786
+ /** @description Client Error */
10787
+ "4XX": {
10788
+ headers: {
10789
+ [name: string]: unknown;
10790
+ };
10791
+ content: {
10792
+ "application/json": components["schemas"]["ErrorResponse"];
10793
+ };
10794
+ };
10795
+ /** @description Server Error */
10796
+ "5XX": {
10797
+ headers: {
10798
+ [name: string]: unknown;
10799
+ };
10800
+ content: {
10801
+ "application/json": components["schemas"]["ErrorResponse"];
10802
+ };
10803
+ };
10804
+ };
10805
+ };
10806
+ cancel_subscription_api_integration_v1_users__external_id__subscriptions__subscription_external_id__cancel_post: {
10807
+ parameters: {
10808
+ query?: never;
10809
+ header?: never;
10810
+ path: {
10811
+ external_id: string;
10812
+ subscription_external_id: string;
10813
+ };
10814
+ cookie?: never;
10815
+ };
10816
+ requestBody?: {
10817
+ content: {
10818
+ "application/json": components["schemas"]["CancelSubscriptionInput"] | null;
10819
+ };
10820
+ };
10821
+ responses: {
10822
+ /** @description Successful Response */
10823
+ 200: {
10824
+ headers: {
10825
+ [name: string]: unknown;
10826
+ };
10827
+ content: {
10828
+ "application/json": components["schemas"]["SubscriptionCancelResponse"];
10829
+ };
10830
+ };
10831
+ /** @description Client Error */
10832
+ "4XX": {
10833
+ headers: {
10834
+ [name: string]: unknown;
10835
+ };
10836
+ content: {
10837
+ "application/json": components["schemas"]["ErrorResponse"];
10838
+ };
10839
+ };
10840
+ /** @description Server Error */
10841
+ "5XX": {
10842
+ headers: {
10843
+ [name: string]: unknown;
10844
+ };
10845
+ content: {
10846
+ "application/json": components["schemas"]["ErrorResponse"];
10847
+ };
10848
+ };
10849
+ };
10850
+ };
10851
+ get_usage_api_integration_v1_users__external_id__usage_get: {
10852
+ parameters: {
10853
+ query?: never;
10854
+ header?: never;
10855
+ path: {
10856
+ external_id: string;
10857
+ };
10858
+ cookie?: never;
10859
+ };
10860
+ requestBody?: never;
10861
+ responses: {
10862
+ /** @description Successful Response */
10863
+ 200: {
10864
+ headers: {
10865
+ [name: string]: unknown;
10866
+ };
10867
+ content: {
10868
+ "application/json": components["schemas"]["EntitlementStatus"];
10869
+ };
10870
+ };
10871
+ /** @description Client Error */
10872
+ "4XX": {
10873
+ headers: {
10874
+ [name: string]: unknown;
10875
+ };
10876
+ content: {
10877
+ "application/json": components["schemas"]["ErrorResponse"];
10878
+ };
10879
+ };
10880
+ /** @description Server Error */
10881
+ "5XX": {
10882
+ headers: {
10883
+ [name: string]: unknown;
10884
+ };
10885
+ content: {
10886
+ "application/json": components["schemas"]["ErrorResponse"];
10887
+ };
10888
+ };
10889
+ };
10890
+ };
10891
+ list_memories_api_memory_get: {
10892
+ parameters: {
10893
+ query?: {
10894
+ q?: string | null;
10895
+ scope_kind?: string | null;
10896
+ scope_id?: string | null;
10897
+ limit?: number;
10898
+ cursor?: string | null;
10899
+ };
10900
+ header?: never;
10901
+ path?: never;
10902
+ cookie?: never;
10903
+ };
10904
+ requestBody?: never;
10905
+ responses: {
10906
+ /** @description Successful Response */
10907
+ 200: {
10908
+ headers: {
10909
+ [name: string]: unknown;
10910
+ };
10911
+ content: {
10912
+ "application/json": components["schemas"]["MemoryListResponse"];
10913
+ };
10914
+ };
10915
+ /** @description Client Error */
10916
+ "4XX": {
10917
+ headers: {
10918
+ [name: string]: unknown;
10919
+ };
10920
+ content: {
10921
+ "application/json": components["schemas"]["ErrorResponse"];
10922
+ };
10923
+ };
10924
+ /** @description Server Error */
10925
+ "5XX": {
10926
+ headers: {
10927
+ [name: string]: unknown;
10928
+ };
10929
+ content: {
10930
+ "application/json": components["schemas"]["ErrorResponse"];
10931
+ };
10932
+ };
10933
+ };
10934
+ };
10935
+ create_memory_api_memory_post: {
10936
+ parameters: {
10937
+ query?: never;
10938
+ header?: never;
10939
+ path?: never;
10940
+ cookie?: never;
10941
+ };
10942
+ requestBody: {
10943
+ content: {
10944
+ "application/json": components["schemas"]["MemoryCreateInput"];
10945
+ };
10946
+ };
10947
+ responses: {
10948
+ /** @description Successful Response */
10949
+ 201: {
10950
+ headers: {
10951
+ [name: string]: unknown;
10952
+ };
10953
+ content: {
10954
+ "application/json": components["schemas"]["MemoryView"];
10955
+ };
10956
+ };
10957
+ /** @description Client Error */
10958
+ "4XX": {
10959
+ headers: {
10960
+ [name: string]: unknown;
10961
+ };
10962
+ content: {
10963
+ "application/json": components["schemas"]["ErrorResponse"];
10964
+ };
10965
+ };
10966
+ /** @description Server Error */
10967
+ "5XX": {
10968
+ headers: {
10969
+ [name: string]: unknown;
10970
+ };
10971
+ content: {
10972
+ "application/json": components["schemas"]["ErrorResponse"];
10973
+ };
10974
+ };
10975
+ };
10976
+ };
10977
+ clear_memories_api_memory_delete: {
10978
+ parameters: {
10979
+ query?: {
10980
+ scope_kind?: string | null;
10981
+ scope_id?: string | null;
10982
+ };
10983
+ header?: never;
10984
+ path?: never;
10985
+ cookie?: never;
10986
+ };
10987
+ requestBody?: never;
10988
+ responses: {
10989
+ /** @description Successful Response */
10990
+ 200: {
10991
+ headers: {
10992
+ [name: string]: unknown;
10993
+ };
10994
+ content: {
10995
+ "application/json": components["schemas"]["MemoryClearResponse"];
10093
10996
  };
10094
10997
  };
10095
10998
  /** @description Client Error */
@@ -10112,22 +11015,14 @@ declare interface operations {
10112
11015
  };
10113
11016
  };
10114
11017
  };
10115
- grant_credits_api_integration_v1_users__external_id__credits_post: {
11018
+ get_memory_settings_api_memory_settings_get: {
10116
11019
  parameters: {
10117
11020
  query?: never;
10118
- header?: {
10119
- "Idempotency-Key"?: string | null;
10120
- };
10121
- path: {
10122
- external_id: string;
10123
- };
11021
+ header?: never;
11022
+ path?: never;
10124
11023
  cookie?: never;
10125
11024
  };
10126
- requestBody: {
10127
- content: {
10128
- "application/json": components["schemas"]["CreditsGrantInput"];
10129
- };
10130
- };
11025
+ requestBody?: never;
10131
11026
  responses: {
10132
11027
  /** @description Successful Response */
10133
11028
  200: {
@@ -10135,7 +11030,7 @@ declare interface operations {
10135
11030
  [name: string]: unknown;
10136
11031
  };
10137
11032
  content: {
10138
- "application/json": components["schemas"]["CreditsGrantResponse"];
11033
+ "application/json": components["schemas"]["MemorySettingsView"];
10139
11034
  };
10140
11035
  };
10141
11036
  /** @description Client Error */
@@ -10158,16 +11053,18 @@ declare interface operations {
10158
11053
  };
10159
11054
  };
10160
11055
  };
10161
- list_subscriptions_api_integration_v1_users__external_id__subscriptions_get: {
11056
+ update_memory_settings_api_memory_settings_patch: {
10162
11057
  parameters: {
10163
11058
  query?: never;
10164
11059
  header?: never;
10165
- path: {
10166
- external_id: string;
10167
- };
11060
+ path?: never;
10168
11061
  cookie?: never;
10169
11062
  };
10170
- requestBody?: never;
11063
+ requestBody: {
11064
+ content: {
11065
+ "application/json": components["schemas"]["MemorySettingsUpdateInput"];
11066
+ };
11067
+ };
10171
11068
  responses: {
10172
11069
  /** @description Successful Response */
10173
11070
  200: {
@@ -10175,7 +11072,7 @@ declare interface operations {
10175
11072
  [name: string]: unknown;
10176
11073
  };
10177
11074
  content: {
10178
- "application/json": components["schemas"]["SubscriptionList"];
11075
+ "application/json": components["schemas"]["MemorySettingsView"];
10179
11076
  };
10180
11077
  };
10181
11078
  /** @description Client Error */
@@ -10198,21 +11095,16 @@ declare interface operations {
10198
11095
  };
10199
11096
  };
10200
11097
  };
10201
- put_subscription_api_integration_v1_users__external_id__subscriptions__subscription_external_id__put: {
11098
+ delete_memory_api_memory__memory_id__delete: {
10202
11099
  parameters: {
10203
11100
  query?: never;
10204
11101
  header?: never;
10205
11102
  path: {
10206
- external_id: string;
10207
- subscription_external_id: string;
11103
+ memory_id: string;
10208
11104
  };
10209
11105
  cookie?: never;
10210
11106
  };
10211
- requestBody: {
10212
- content: {
10213
- "application/json": components["schemas"]["SubscriptionInput"];
10214
- };
10215
- };
11107
+ requestBody?: never;
10216
11108
  responses: {
10217
11109
  /** @description Successful Response */
10218
11110
  200: {
@@ -10220,16 +11112,7 @@ declare interface operations {
10220
11112
  [name: string]: unknown;
10221
11113
  };
10222
11114
  content: {
10223
- "application/json": components["schemas"]["SubscriptionPutResponse"];
10224
- };
10225
- };
10226
- /** @description A new subscription */
10227
- 201: {
10228
- headers: {
10229
- [name: string]: unknown;
10230
- };
10231
- content: {
10232
- "application/json": components["schemas"]["SubscriptionPutResponse"];
11115
+ "application/json": components["schemas"]["StatusResponse"];
10233
11116
  };
10234
11117
  };
10235
11118
  /** @description Client Error */
@@ -10252,19 +11135,18 @@ declare interface operations {
10252
11135
  };
10253
11136
  };
10254
11137
  };
10255
- cancel_subscription_api_integration_v1_users__external_id__subscriptions__subscription_external_id__cancel_post: {
11138
+ update_memory_api_memory__memory_id__patch: {
10256
11139
  parameters: {
10257
11140
  query?: never;
10258
11141
  header?: never;
10259
11142
  path: {
10260
- external_id: string;
10261
- subscription_external_id: string;
11143
+ memory_id: string;
10262
11144
  };
10263
11145
  cookie?: never;
10264
11146
  };
10265
- requestBody?: {
11147
+ requestBody: {
10266
11148
  content: {
10267
- "application/json": components["schemas"]["CancelSubscriptionInput"] | null;
11149
+ "application/json": components["schemas"]["MemoryUpdateInput"];
10268
11150
  };
10269
11151
  };
10270
11152
  responses: {
@@ -10274,7 +11156,7 @@ declare interface operations {
10274
11156
  [name: string]: unknown;
10275
11157
  };
10276
11158
  content: {
10277
- "application/json": components["schemas"]["SubscriptionCancelResponse"];
11159
+ "application/json": components["schemas"]["MemoryView"];
10278
11160
  };
10279
11161
  };
10280
11162
  /** @description Client Error */
@@ -10297,16 +11179,18 @@ declare interface operations {
10297
11179
  };
10298
11180
  };
10299
11181
  };
10300
- get_usage_api_integration_v1_users__external_id__usage_get: {
11182
+ public_login_api_public_auth_login_post: {
10301
11183
  parameters: {
10302
11184
  query?: never;
10303
11185
  header?: never;
10304
- path: {
10305
- external_id: string;
10306
- };
11186
+ path?: never;
10307
11187
  cookie?: never;
10308
11188
  };
10309
- requestBody?: never;
11189
+ requestBody: {
11190
+ content: {
11191
+ "application/json": components["schemas"]["LoginInput"];
11192
+ };
11193
+ };
10310
11194
  responses: {
10311
11195
  /** @description Successful Response */
10312
11196
  200: {
@@ -10314,7 +11198,7 @@ declare interface operations {
10314
11198
  [name: string]: unknown;
10315
11199
  };
10316
11200
  content: {
10317
- "application/json": components["schemas"]["EntitlementStatus"];
11201
+ "application/json": components["schemas"]["AuthTokenResponse"];
10318
11202
  };
10319
11203
  };
10320
11204
  /** @description Client Error */
@@ -10337,7 +11221,7 @@ declare interface operations {
10337
11221
  };
10338
11222
  };
10339
11223
  };
10340
- public_login_api_public_auth_login_post: {
11224
+ public_register_api_public_auth_register_post: {
10341
11225
  parameters: {
10342
11226
  query?: never;
10343
11227
  header?: never;
@@ -10346,12 +11230,12 @@ declare interface operations {
10346
11230
  };
10347
11231
  requestBody: {
10348
11232
  content: {
10349
- "application/json": components["schemas"]["LoginInput"];
11233
+ "application/json": components["schemas"]["RegisterUserInput"];
10350
11234
  };
10351
11235
  };
10352
11236
  responses: {
10353
11237
  /** @description Successful Response */
10354
- 200: {
11238
+ 201: {
10355
11239
  headers: {
10356
11240
  [name: string]: unknown;
10357
11241
  };
@@ -10379,26 +11263,24 @@ declare interface operations {
10379
11263
  };
10380
11264
  };
10381
11265
  };
10382
- public_register_api_public_auth_register_post: {
11266
+ get_branding_icon_api_public_branding__asset_id__get: {
10383
11267
  parameters: {
10384
11268
  query?: never;
10385
11269
  header?: never;
10386
- path?: never;
10387
- cookie?: never;
10388
- };
10389
- requestBody: {
10390
- content: {
10391
- "application/json": components["schemas"]["RegisterUserInput"];
11270
+ path: {
11271
+ asset_id: string;
10392
11272
  };
11273
+ cookie?: never;
10393
11274
  };
11275
+ requestBody?: never;
10394
11276
  responses: {
10395
- /** @description Successful Response */
10396
- 201: {
11277
+ /** @description The uploaded branding icon, with the media type recorded at upload */
11278
+ 200: {
10397
11279
  headers: {
10398
11280
  [name: string]: unknown;
10399
11281
  };
10400
11282
  content: {
10401
- "application/json": components["schemas"]["AuthTokenResponse"];
11283
+ "application/octet-stream": unknown;
10402
11284
  };
10403
11285
  };
10404
11286
  /** @description Client Error */
@@ -11668,26 +12550,6 @@ declare interface paths {
11668
12550
  patch?: never;
11669
12551
  trace?: never;
11670
12552
  };
11671
- "/api/admin/jobs": {
11672
- parameters: {
11673
- query?: never;
11674
- header?: never;
11675
- path?: never;
11676
- cookie?: never;
11677
- };
11678
- /**
11679
- * List Jobs
11680
- * @description List recent background jobs.
11681
- */
11682
- get: operations["list_jobs_api_admin_jobs_get"];
11683
- put?: never;
11684
- post?: never;
11685
- delete?: never;
11686
- options?: never;
11687
- head?: never;
11688
- patch?: never;
11689
- trace?: never;
11690
- };
11691
12553
  "/api/admin/jobs/raw": {
11692
12554
  parameters: {
11693
12555
  query?: never;
@@ -11865,26 +12727,6 @@ declare interface paths {
11865
12727
  patch?: never;
11866
12728
  trace?: never;
11867
12729
  };
11868
- "/api/admin/jobs/{job_id}/cancel": {
11869
- parameters: {
11870
- query?: never;
11871
- header?: never;
11872
- path?: never;
11873
- cookie?: never;
11874
- };
11875
- get?: never;
11876
- put?: never;
11877
- /**
11878
- * Cancel Job
11879
- * @description Cancel a background job.
11880
- */
11881
- post: operations["cancel_job_api_admin_jobs__job_id__cancel_post"];
11882
- delete?: never;
11883
- options?: never;
11884
- head?: never;
11885
- patch?: never;
11886
- trace?: never;
11887
- };
11888
12730
  "/api/admin/login": {
11889
12731
  parameters: {
11890
12732
  query?: never;
@@ -12224,6 +13066,26 @@ declare interface paths {
12224
13066
  patch: operations["update_app_settings_api_admin_settings_patch"];
12225
13067
  trace?: never;
12226
13068
  };
13069
+ "/api/admin/settings/icon": {
13070
+ parameters: {
13071
+ query?: never;
13072
+ header?: never;
13073
+ path?: never;
13074
+ cookie?: never;
13075
+ };
13076
+ get?: never;
13077
+ put?: never;
13078
+ /**
13079
+ * Upload Branding Icon
13080
+ * @description Upload a raster image (PNG, JPEG, GIF, WebP or ICO) for the app logo or favicon.
13081
+ */
13082
+ post: operations["upload_branding_icon_api_admin_settings_icon_post"];
13083
+ delete?: never;
13084
+ options?: never;
13085
+ head?: never;
13086
+ patch?: never;
13087
+ trace?: never;
13088
+ };
12227
13089
  "/api/admin/setup-status": {
12228
13090
  parameters: {
12229
13091
  query?: never;
@@ -12508,6 +13370,50 @@ declare interface paths {
12508
13370
  patch?: never;
12509
13371
  trace?: never;
12510
13372
  };
13373
+ "/api/admin/users/{user_id}/memory": {
13374
+ parameters: {
13375
+ query?: never;
13376
+ header?: never;
13377
+ path?: never;
13378
+ cookie?: never;
13379
+ };
13380
+ /**
13381
+ * Admin List User Memories
13382
+ * @description Inspect a user's stored memories and memory settings (Admin).
13383
+ */
13384
+ get: operations["admin_list_user_memories_api_admin_users__user_id__memory_get"];
13385
+ put?: never;
13386
+ post?: never;
13387
+ /**
13388
+ * Admin Clear User Memories
13389
+ * @description Clear all stored memories belonging to ``user_id`` (Admin).
13390
+ */
13391
+ delete: operations["admin_clear_user_memories_api_admin_users__user_id__memory_delete"];
13392
+ options?: never;
13393
+ head?: never;
13394
+ patch?: never;
13395
+ trace?: never;
13396
+ };
13397
+ "/api/admin/users/{user_id}/memory/{memory_id}": {
13398
+ parameters: {
13399
+ query?: never;
13400
+ header?: never;
13401
+ path?: never;
13402
+ cookie?: never;
13403
+ };
13404
+ get?: never;
13405
+ put?: never;
13406
+ post?: never;
13407
+ /**
13408
+ * Admin Delete User Memory
13409
+ * @description Delete one stored memory belonging to ``user_id`` (Admin).
13410
+ */
13411
+ delete: operations["admin_delete_user_memory_api_admin_users__user_id__memory__memory_id__delete"];
13412
+ options?: never;
13413
+ head?: never;
13414
+ patch?: never;
13415
+ trace?: never;
13416
+ };
12511
13417
  "/api/admin/users/{user_id}/refresh-token": {
12512
13418
  parameters: {
12513
13419
  query?: never;
@@ -13234,6 +14140,82 @@ declare interface paths {
13234
14140
  patch?: never;
13235
14141
  trace?: never;
13236
14142
  };
14143
+ "/api/memory": {
14144
+ parameters: {
14145
+ query?: never;
14146
+ header?: never;
14147
+ path?: never;
14148
+ cookie?: never;
14149
+ };
14150
+ /**
14151
+ * List Memories
14152
+ * @description List memories belonging to the current user (or requested authorized scope).
14153
+ */
14154
+ get: operations["list_memories_api_memory_get"];
14155
+ put?: never;
14156
+ /**
14157
+ * Create Memory
14158
+ * @description Create (or deduplicate) a memory for the current user.
14159
+ */
14160
+ post: operations["create_memory_api_memory_post"];
14161
+ /**
14162
+ * Clear Memories
14163
+ * @description Delete all memories in the user's writable scopes (or specified scope).
14164
+ */
14165
+ delete: operations["clear_memories_api_memory_delete"];
14166
+ options?: never;
14167
+ head?: never;
14168
+ patch?: never;
14169
+ trace?: never;
14170
+ };
14171
+ "/api/memory/settings": {
14172
+ parameters: {
14173
+ query?: never;
14174
+ header?: never;
14175
+ path?: never;
14176
+ cookie?: never;
14177
+ };
14178
+ /**
14179
+ * Get Memory Settings
14180
+ * @description Fetch the current user's memory preferences and limits.
14181
+ */
14182
+ get: operations["get_memory_settings_api_memory_settings_get"];
14183
+ put?: never;
14184
+ post?: never;
14185
+ delete?: never;
14186
+ options?: never;
14187
+ head?: never;
14188
+ /**
14189
+ * Update Memory Settings
14190
+ * @description Update the current user's memory preferences.
14191
+ */
14192
+ patch: operations["update_memory_settings_api_memory_settings_patch"];
14193
+ trace?: never;
14194
+ };
14195
+ "/api/memory/{memory_id}": {
14196
+ parameters: {
14197
+ query?: never;
14198
+ header?: never;
14199
+ path?: never;
14200
+ cookie?: never;
14201
+ };
14202
+ get?: never;
14203
+ put?: never;
14204
+ post?: never;
14205
+ /**
14206
+ * Delete Memory
14207
+ * @description Delete a stored memory owned by the current user.
14208
+ */
14209
+ delete: operations["delete_memory_api_memory__memory_id__delete"];
14210
+ options?: never;
14211
+ head?: never;
14212
+ /**
14213
+ * Update Memory
14214
+ * @description Update a stored memory owned by the current user.
14215
+ */
14216
+ patch: operations["update_memory_api_memory__memory_id__patch"];
14217
+ trace?: never;
14218
+ };
13237
14219
  "/api/public/auth/login": {
13238
14220
  parameters: {
13239
14221
  query?: never;
@@ -13274,6 +14256,26 @@ declare interface paths {
13274
14256
  patch?: never;
13275
14257
  trace?: never;
13276
14258
  };
14259
+ "/api/public/branding/{asset_id}": {
14260
+ parameters: {
14261
+ query?: never;
14262
+ header?: never;
14263
+ path?: never;
14264
+ cookie?: never;
14265
+ };
14266
+ /**
14267
+ * Get Branding Icon
14268
+ * @description Serves an uploaded app logo or favicon as a sandboxed raster image.
14269
+ */
14270
+ get: operations["get_branding_icon_api_public_branding__asset_id__get"];
14271
+ put?: never;
14272
+ post?: never;
14273
+ delete?: never;
14274
+ options?: never;
14275
+ head?: never;
14276
+ patch?: never;
14277
+ trace?: never;
14278
+ };
13277
14279
  "/api/public/shared/{share_id}": {
13278
14280
  parameters: {
13279
14281
  query?: never;
@@ -13588,7 +14590,7 @@ export declare type PlanDuration = Schemas['PlanDuration'];
13588
14590
  export declare function presetToCron(preset: SchedulePreset): string;
13589
14591
 
13590
14592
  /** A running tool's progress (`data-progress-update`). */
13591
- declare type ProgressUpdateData = Schemas['ProgressUpdateEvent'];
14593
+ export declare type ProgressUpdateData = Schemas['ProgressUpdateEvent'];
13592
14594
 
13593
14595
  declare type QueryParams<O> = ParametersOf<O> extends {
13594
14596
  query?: infer Q;
@@ -13623,7 +14625,7 @@ export declare interface ReferenceAdapterContext {
13623
14625
  }
13624
14626
 
13625
14627
  /** Context the user attached to a message, as a `data-reference` part carries it. */
13626
- declare type ReferenceData = Schemas['ReferenceData'];
14628
+ export declare type ReferenceData = Schemas['ReferenceData'];
13627
14629
 
13628
14630
  /** Response from registering. */
13629
14631
  export declare type RegisterResponse = Schemas['AuthTokenResponse'];
@@ -13671,6 +14673,46 @@ declare interface ResolvedAuthAdapter {
13671
14673
  hasToken: () => Promise<boolean | null>;
13672
14674
  }
13673
14675
 
14676
+ /** A backend-declared capability resolved against the active mode, entitlement, and draft/thread state. */
14677
+ export declare interface ResolvedCapability {
14678
+ capability: ChatCapability;
14679
+ /** Effective boolean state for the next turn. */
14680
+ active: boolean;
14681
+ /** Whether `active` differs from the capability's declared `default`. */
14682
+ isChanged: boolean;
14683
+ /** Forced ON by the active mode or another active capability's `implies` list. */
14684
+ forced: boolean;
14685
+ /** Which active mode or capability forces this capability ON when `forced` is true. */
14686
+ forcedBy?: {
14687
+ kind: 'mode' | 'capability';
14688
+ key: string;
14689
+ };
14690
+ /** Disabled by active mode incompatibility, missing plan feature, or blocked implication. */
14691
+ disabled: boolean;
14692
+ disabledReason?: 'mode' | 'feature';
14693
+ /** Whether the composer should display a status chip for this capability. */
14694
+ showChip: boolean;
14695
+ }
14696
+
14697
+ /** A backend-declared chat mode resolved against the user's entitlement and active selection. */
14698
+ export declare interface ResolvedMode {
14699
+ mode: ChatMode;
14700
+ active: boolean;
14701
+ isDefault: boolean;
14702
+ disabled: boolean;
14703
+ disabledReason?: 'feature';
14704
+ }
14705
+
14706
+ export declare interface ResolvedRunSelection {
14707
+ modes: readonly ResolvedMode[];
14708
+ capabilities: readonly ResolvedCapability[];
14709
+ activeMode: ChatMode | null;
14710
+ defaultMode: ChatMode | null;
14711
+ chips: readonly ComposerChipDescriptor[];
14712
+ effectivePlaceholder: string | undefined;
14713
+ effectiveAttachmentTypes: readonly string[] | undefined;
14714
+ }
14715
+
13674
14716
  /**
13675
14717
  * The backend's id for a message — the one that survives a reload.
13676
14718
  *
@@ -13684,6 +14726,11 @@ declare interface ResolvedAuthAdapter {
13684
14726
  */
13685
14727
  export declare function resolveMessageId(message: GentiqUIMessage): string;
13686
14728
 
14729
+ /**
14730
+ * Pure resolution of modes and capabilities for the composer, mirroring backend `resolve_run`.
14731
+ */
14732
+ export declare function resolveRunSelection({ modes, capabilities, entitlementFeatures, threadMode, threadCapabilities, draftMode, draftCapabilities, hiddenModes, hiddenCapabilities, }: RunSelectionInput): ResolvedRunSelection;
14733
+
13687
14734
  /** The paths that answer `method`. */
13688
14735
  declare type RoutePath<M extends HttpMethod> = {
13689
14736
  [P in keyof Routes]: [NonNullable<Routes[P][M]>] extends [never] ? never : P;
@@ -13707,6 +14754,24 @@ declare type Routes = {
13707
14754
  */
13708
14755
  export declare type RunOptions = NonNullable<ChatRequestSchema['options']>;
13709
14756
 
14757
+ export declare interface RunSelectionInput {
14758
+ modes: readonly ChatMode[];
14759
+ capabilities: readonly ChatCapability[];
14760
+ /** User's plan feature flags from `/users/me/entitlement`, or `undefined` while loading. */
14761
+ entitlementFeatures?: Readonly<Record<string, boolean>>;
14762
+ /** Sticky mode persisted on the current thread. */
14763
+ threadMode?: string | null;
14764
+ /** Sticky capabilities persisted on the current thread. */
14765
+ threadCapabilities?: Readonly<Record<string, boolean>>;
14766
+ /** Draft mode override: `undefined` = inherit, `null` = explicitly cleared to default, `string` = chosen key. */
14767
+ draftMode?: string | null;
14768
+ /** Explicit draft capability overrides. */
14769
+ draftCapabilities?: Readonly<Record<string, boolean>>;
14770
+ /** Keys hidden by runtime conditions or UI config. */
14771
+ hiddenModes?: ReadonlySet<string>;
14772
+ hiddenCapabilities?: ReadonlySet<string>;
14773
+ }
14774
+
13710
14775
  /** A user's scheduled routine. */
13711
14776
  export declare type Schedule = Schemas['ScheduleView'];
13712
14777
 
@@ -13805,7 +14870,7 @@ export declare type ThreadSummary = Schemas['ThreadSummary'];
13805
14870
  declare type Timeout = number | false;
13806
14871
 
13807
14872
  /** The thread's new title (`data-title`). */
13808
- declare type TitleData = Schemas['TitleData'];
14873
+ export declare type TitleData = Schemas['TitleData'];
13809
14874
 
13810
14875
  /**
13811
14876
  * A thread's stored messages as the chat renders them, the same parts a streamed reply has.
@@ -13868,7 +14933,14 @@ export declare interface ToolOutputResponse {
13868
14933
  export declare type TranscriptionResponse = Schemas['TranscriptionResponse'];
13869
14934
 
13870
14935
  /** The turn being streamed, which its stream can be read again by (`data-turn`, transient). */
13871
- declare type TurnData = Schemas['TurnData'];
14936
+ export declare type TurnData = Schemas['TurnData'];
14937
+
14938
+ export declare interface TurnSelection {
14939
+ requestMode?: string | null;
14940
+ requestCapabilities?: CapabilityOverrides;
14941
+ clearModeAfterSend: boolean;
14942
+ clearCapabilitiesAfterSend: readonly string[];
14943
+ }
13872
14944
 
13873
14945
  /** Options for {@link GentiqApi.uploadAttachment}. */
13874
14946
  export declare interface UploadAttachmentOptions {