@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.
@@ -61,6 +61,9 @@ declare interface AuthAdapter {
61
61
  credentials?: RequestCredentials;
62
62
  }
63
63
 
64
+ /** Prefix for branding icons uploaded through `POST /admin/settings/icon`. */
65
+ export declare const BRANDING_URL_PREFIX = "/api/public/branding/";
66
+
64
67
  declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options: GentiqApiOptions): {
65
68
  /**
66
69
  * Call `listener` whenever a request is refused with a 401, which may mean the session has
@@ -252,10 +255,13 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
252
255
  }>;
253
256
  getAppConfig: (signal?: AbortSignal) => Promise<{
254
257
  admin_title?: string | null;
258
+ app_favicon?: string | null;
259
+ app_logo?: string | components["schemas"]["AppLogo"] | null;
255
260
  app_name?: string | null;
256
261
  app_version: string | null;
257
262
  attachments: components["schemas"]["AttachmentLimits"];
258
263
  auth_page_enabled?: boolean | null;
264
+ capabilities?: components["schemas"]["CapabilityView"][];
259
265
  composer_attachments?: boolean | null;
260
266
  composer_voice?: boolean | null;
261
267
  connectors_allow_user_mcp?: boolean;
@@ -280,6 +286,9 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
280
286
  language_locked?: boolean | null;
281
287
  login_fields: ("username" | "email" | "phone")[];
282
288
  maintenance: components["schemas"]["MaintenanceNotice"];
289
+ memory_enabled?: boolean;
290
+ memory_include_chat_history?: boolean;
291
+ modes?: components["schemas"]["ChatModeView"][];
283
292
  plugins: string[];
284
293
  quota_calendar?: ("gregorian" | "persian") | null;
285
294
  quota_timezone?: string | null;
@@ -621,8 +630,93 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
621
630
  deleteUserMCPConnector: (connectorId: string) => Promise<{
622
631
  status: "success";
623
632
  }>;
633
+ /** List memories belonging to the current user (or requested authorized scope). */
634
+ listMemories: (params?: {
635
+ q?: string;
636
+ scope_kind?: string;
637
+ scope_id?: string;
638
+ limit?: number;
639
+ cursor?: string;
640
+ }, signal?: AbortSignal) => Promise<{
641
+ max_memories: number;
642
+ memories: components["schemas"]["MemoryView"][];
643
+ next_cursor?: string | null;
644
+ scopes: components["schemas"]["MemoryScopeView"][];
645
+ total: number;
646
+ }>;
647
+ /** Create (or deduplicate) a memory item for the current user. */
648
+ createMemory: (data: MemoryCreateInput) => Promise<{
649
+ content: string;
650
+ created_at: string;
651
+ id: string;
652
+ importance: number;
653
+ last_accessed_at?: string | null;
654
+ metadata?: {
655
+ [key: string]: components["schemas"]["JsonValue"];
656
+ };
657
+ pinned: boolean;
658
+ scope_id: string;
659
+ scope_kind: string;
660
+ source: "user" | "agent" | "extracted" | "system";
661
+ source_thread_id?: string | null;
662
+ updated_at: string;
663
+ }>;
664
+ /** Update an existing memory item owned by the current user. */
665
+ updateMemory: (memoryId: string, data: MemoryUpdateInput) => Promise<{
666
+ content: string;
667
+ created_at: string;
668
+ id: string;
669
+ importance: number;
670
+ last_accessed_at?: string | null;
671
+ metadata?: {
672
+ [key: string]: components["schemas"]["JsonValue"];
673
+ };
674
+ pinned: boolean;
675
+ scope_id: string;
676
+ scope_kind: string;
677
+ source: "user" | "agent" | "extracted" | "system";
678
+ source_thread_id?: string | null;
679
+ updated_at: string;
680
+ }>;
681
+ /** Delete a stored memory item owned by the current user. */
682
+ deleteMemory: (memoryId: string) => Promise<{
683
+ status: "success";
684
+ }>;
685
+ /** Delete all memories in the user's writable scopes (or the named scope). */
686
+ clearMemories: (params?: {
687
+ scope_kind?: string;
688
+ scope_id?: string;
689
+ }) => Promise<{
690
+ deleted: number;
691
+ status?: "success";
692
+ }>;
693
+ /** Fetch the current user's memory preferences and limits. */
694
+ getMemorySettings: (signal?: AbortSignal) => Promise<{
695
+ allow_turn_opt_out: boolean;
696
+ auto_extract: boolean;
697
+ auto_extract_supported: boolean;
698
+ enabled: boolean;
699
+ include_chat_history: boolean;
700
+ max_content_length: number;
701
+ max_memories_per_scope: number;
702
+ scopes: components["schemas"]["MemoryScopeView"][];
703
+ }>;
704
+ /** Update the current user's memory preferences. */
705
+ updateMemorySettings: (data: MemorySettingsUpdateInput) => Promise<{
706
+ allow_turn_opt_out: boolean;
707
+ auto_extract: boolean;
708
+ auto_extract_supported: boolean;
709
+ enabled: boolean;
710
+ include_chat_history: boolean;
711
+ max_content_length: number;
712
+ max_memories_per_scope: number;
713
+ scopes: components["schemas"]["MemoryScopeView"][];
714
+ }>;
624
715
  };
625
716
 
717
+ /** Explicit per-turn capability overrides sent on `POST /chat`. */
718
+ declare type CapabilityOverrides = NonNullable<ChatRequestSchema['capabilities']>;
719
+
626
720
  /**
627
721
  * A file to send with a message: one uploaded with `uploadAttachment`, as it answered. `file` is
628
722
  * the local copy, if there is one, so the message can show the file without downloading it again.
@@ -1447,6 +1541,10 @@ export declare interface components {
1447
1541
  AdminThreadItem: {
1448
1542
  /** Agent */
1449
1543
  agent?: string | null;
1544
+ /** Capabilities */
1545
+ capabilities?: {
1546
+ [key: string]: boolean;
1547
+ } | null;
1450
1548
  /**
1451
1549
  * Content
1452
1550
  * @default
@@ -1458,6 +1556,8 @@ export declare interface components {
1458
1556
  feedback?: string | null;
1459
1557
  /** Id */
1460
1558
  id: string;
1559
+ /** Mode */
1560
+ mode?: string | null;
1461
1561
  /**
1462
1562
  * Parts
1463
1563
  * @default []
@@ -1567,6 +1667,16 @@ export declare interface components {
1567
1667
  /** Users */
1568
1668
  users: components["schemas"]["AdminUserRow"][];
1569
1669
  };
1670
+ /** AdminUserMemoryResponse */
1671
+ AdminUserMemoryResponse: {
1672
+ /** Memories */
1673
+ memories: components["schemas"]["MemoryView"][];
1674
+ /** Next Cursor */
1675
+ next_cursor?: string | null;
1676
+ settings: components["schemas"]["MemorySettingsView"];
1677
+ /** Total */
1678
+ total: number;
1679
+ };
1570
1680
  /** AdminUserRow */
1571
1681
  AdminUserRow: {
1572
1682
  /** Email */
@@ -1792,6 +1902,16 @@ export declare interface components {
1792
1902
  /** Scopes */
1793
1903
  scopes: string[];
1794
1904
  };
1905
+ /**
1906
+ * AppLogo
1907
+ * @description Light and dark theme URLs for the application logo.
1908
+ */
1909
+ AppLogo: {
1910
+ /** Dark */
1911
+ dark: string;
1912
+ /** Light */
1913
+ light: string;
1914
+ };
1795
1915
  /**
1796
1916
  * AppSettings
1797
1917
  * @description What an admin changed in the app's configuration, from the settings page.
@@ -1802,6 +1922,10 @@ export declare interface components {
1802
1922
  AppSettings: {
1803
1923
  /** Admin Title */
1804
1924
  admin_title?: string | null;
1925
+ /** App Favicon */
1926
+ app_favicon?: string | null;
1927
+ /** App Logo */
1928
+ app_logo?: string | components["schemas"]["AppLogo"] | null;
1805
1929
  /** App Name */
1806
1930
  app_name?: string | null;
1807
1931
  /** Auth Page Enabled */
@@ -1911,6 +2035,10 @@ export declare interface components {
1911
2035
  AppSettingsUpdateInput: {
1912
2036
  /** Admin Title */
1913
2037
  admin_title?: string | null;
2038
+ /** App Favicon */
2039
+ app_favicon?: string | null;
2040
+ /** App Logo */
2041
+ app_logo?: string | components["schemas"]["AppLogo"] | null;
1914
2042
  /** App Name */
1915
2043
  app_name?: string | null;
1916
2044
  /** Auth Page Enabled */
@@ -2078,45 +2206,21 @@ export declare interface components {
2078
2206
  /** Username */
2079
2207
  username: string | null;
2080
2208
  };
2081
- /** BackgroundJob */
2082
- BackgroundJob: {
2083
- /**
2084
- * Created At
2085
- * Format: date-time
2086
- */
2087
- created_at: string;
2088
- /** Error */
2089
- error: string | null;
2209
+ /**
2210
+ * BrandingIconUpload
2211
+ * @description Metadata and public path of an uploaded app logo or favicon.
2212
+ */
2213
+ BrandingIconUpload: {
2214
+ /** Filename */
2215
+ filename: string;
2090
2216
  /** Id */
2091
2217
  id: string;
2092
- /** Message */
2093
- message: string | null;
2094
- /** Metadata */
2095
- metadata: {
2096
- [key: string]: unknown;
2097
- };
2098
- /** Progress */
2099
- progress: number | null;
2100
- /** Result */
2101
- result: unknown;
2102
- /** Status */
2103
- status: string;
2104
- /** Type */
2105
- type: string;
2106
- /**
2107
- * Updated At
2108
- * Format: date-time
2109
- */
2110
- updated_at: string;
2111
- /** User Id */
2112
- user_id: string | null;
2113
- };
2114
- /** BackgroundJobList */
2115
- BackgroundJobList: {
2116
- /** Count */
2117
- count: number;
2118
- /** Jobs */
2119
- jobs: components["schemas"]["BackgroundJob"][];
2218
+ /** Media Type */
2219
+ media_type: string;
2220
+ /** Size */
2221
+ size: number;
2222
+ /** Url */
2223
+ url: string;
2120
2224
  };
2121
2225
  /** BulkAccessResponse */
2122
2226
  BulkAccessResponse: {
@@ -2137,6 +2241,85 @@ export declare interface components {
2137
2241
  /** At */
2138
2242
  at?: string | null;
2139
2243
  };
2244
+ /**
2245
+ * CapabilityView
2246
+ * @description Public metadata for one run capability, returned by ``GET /api/config``.
2247
+ */
2248
+ CapabilityView: {
2249
+ /** Active Label */
2250
+ active_label?: string | null;
2251
+ /** Attachment Types */
2252
+ attachment_types?: string[] | null;
2253
+ /**
2254
+ * Chip
2255
+ * @default when_changed
2256
+ * @enum {string}
2257
+ */
2258
+ chip?: "when_active" | "when_changed" | "always" | "never";
2259
+ /**
2260
+ * Chip Display
2261
+ * @default pill
2262
+ * @enum {string}
2263
+ */
2264
+ chip_display?: "pill" | "icon";
2265
+ /**
2266
+ * Default
2267
+ * @default false
2268
+ */
2269
+ default?: boolean;
2270
+ /** Description */
2271
+ description?: string | null;
2272
+ /** Exclusive Group */
2273
+ exclusive_group?: string | null;
2274
+ /** Feature */
2275
+ feature?: string | null;
2276
+ /** Group */
2277
+ group?: string | null;
2278
+ /** Icon */
2279
+ icon?: string | null;
2280
+ /** Implies */
2281
+ implies?: string[];
2282
+ /** Inactive Label */
2283
+ inactive_label?: string | null;
2284
+ /**
2285
+ * Inverted Toggle
2286
+ * @default false
2287
+ */
2288
+ inverted_toggle?: boolean;
2289
+ /** Key */
2290
+ key: string;
2291
+ /**
2292
+ * Menu
2293
+ * @default tools
2294
+ * @enum {string}
2295
+ */
2296
+ menu?: "tools" | "mode";
2297
+ /** Name */
2298
+ name: string;
2299
+ /**
2300
+ * Order
2301
+ * @default 0
2302
+ */
2303
+ order?: number;
2304
+ /** Placeholder */
2305
+ placeholder?: string | null;
2306
+ /** Settings Section */
2307
+ settings_section?: string | null;
2308
+ /**
2309
+ * Source
2310
+ * @default app
2311
+ * @enum {string}
2312
+ */
2313
+ source?: "gentiq" | "app";
2314
+ /**
2315
+ * Sticky
2316
+ * @default thread
2317
+ * @enum {string}
2318
+ */
2319
+ sticky?: "thread" | "turn";
2320
+ /** Toggle Label */
2321
+ toggle_label?: string | null;
2322
+ };
2140
2323
  /**
2141
2324
  * ChatFinishedData
2142
2325
  * @description The answer is stored. ``title_pending`` says a title is still being written.
@@ -2195,6 +2378,56 @@ export declare interface components {
2195
2378
  */
2196
2379
  voice_inputs?: string[] | null;
2197
2380
  };
2381
+ /**
2382
+ * ChatModeView
2383
+ * @description Public metadata for one chat mode, returned by ``GET /api/config``.
2384
+ */
2385
+ ChatModeView: {
2386
+ /** Allowed Capabilities */
2387
+ allowed_capabilities?: string[] | null;
2388
+ /** Attachment Types */
2389
+ attachment_types?: string[] | null;
2390
+ /**
2391
+ * Default
2392
+ * @default false
2393
+ */
2394
+ default?: boolean;
2395
+ /** Description */
2396
+ description?: string | null;
2397
+ /** Disabled Capabilities */
2398
+ disabled_capabilities?: string[];
2399
+ /** Feature */
2400
+ feature?: string | null;
2401
+ /** Forced Capabilities */
2402
+ forced_capabilities?: string[];
2403
+ /** Group */
2404
+ group?: string | null;
2405
+ /** Icon */
2406
+ icon?: string | null;
2407
+ /** Key */
2408
+ key: string;
2409
+ /** Name */
2410
+ name: string;
2411
+ /**
2412
+ * Order
2413
+ * @default 0
2414
+ */
2415
+ order?: number;
2416
+ /** Placeholder */
2417
+ placeholder?: string | null;
2418
+ /**
2419
+ * Source
2420
+ * @default app
2421
+ * @enum {string}
2422
+ */
2423
+ source?: "gentiq" | "app";
2424
+ /**
2425
+ * Sticky
2426
+ * @default thread
2427
+ * @enum {string}
2428
+ */
2429
+ sticky?: "thread" | "turn";
2430
+ };
2198
2431
  /**
2199
2432
  * ChatRequest
2200
2433
  * @description A turn: a new message, or answers to the tool calls the last answer waits on.
@@ -2205,6 +2438,13 @@ export declare interface components {
2205
2438
  * @default null
2206
2439
  */
2207
2440
  approvals?: components["schemas"]["ToolApprovalInput"][] | null;
2441
+ /**
2442
+ * Capabilities
2443
+ * @default null
2444
+ */
2445
+ capabilities?: {
2446
+ [key: string]: boolean;
2447
+ } | null;
2208
2448
  /**
2209
2449
  * External User Id
2210
2450
  * @default null
@@ -2212,6 +2452,11 @@ export declare interface components {
2212
2452
  external_user_id?: string | null;
2213
2453
  /** @default null */
2214
2454
  message?: components["schemas"]["ChatMessageInput"] | null;
2455
+ /**
2456
+ * Mode
2457
+ * @default null
2458
+ */
2459
+ mode?: string | null;
2215
2460
  /**
2216
2461
  * Options
2217
2462
  * @default null
@@ -3182,6 +3427,135 @@ export declare interface components {
3182
3427
  /** Title */
3183
3428
  title: string | null;
3184
3429
  };
3430
+ /** MemoryClearResponse */
3431
+ MemoryClearResponse: {
3432
+ /** Deleted */
3433
+ deleted: number;
3434
+ /**
3435
+ * Status
3436
+ * @default success
3437
+ * @constant
3438
+ */
3439
+ status?: "success";
3440
+ };
3441
+ /** MemoryCreateInput */
3442
+ MemoryCreateInput: {
3443
+ /** Content */
3444
+ content: string;
3445
+ /**
3446
+ * Importance
3447
+ * @default 0.6
3448
+ */
3449
+ importance?: number;
3450
+ /**
3451
+ * Pinned
3452
+ * @default false
3453
+ */
3454
+ pinned?: boolean;
3455
+ /** Scope Id */
3456
+ scope_id?: string | null;
3457
+ /** Scope Kind */
3458
+ scope_kind?: string | null;
3459
+ };
3460
+ /** MemoryListResponse */
3461
+ MemoryListResponse: {
3462
+ /** Max Memories */
3463
+ max_memories: number;
3464
+ /** Memories */
3465
+ memories: components["schemas"]["MemoryView"][];
3466
+ /** Next Cursor */
3467
+ next_cursor?: string | null;
3468
+ /** Scopes */
3469
+ scopes: components["schemas"]["MemoryScopeView"][];
3470
+ /** Total */
3471
+ total: number;
3472
+ };
3473
+ /** MemoryScopeView */
3474
+ MemoryScopeView: {
3475
+ /** Id */
3476
+ id: string;
3477
+ /** Kind */
3478
+ kind: string;
3479
+ /** Label */
3480
+ label?: string | null;
3481
+ /**
3482
+ * Readable
3483
+ * @default true
3484
+ */
3485
+ readable?: boolean;
3486
+ /**
3487
+ * Writable
3488
+ * @default true
3489
+ */
3490
+ writable?: boolean;
3491
+ };
3492
+ /** MemorySettingsUpdateInput */
3493
+ MemorySettingsUpdateInput: {
3494
+ /** Auto Extract */
3495
+ auto_extract?: boolean | null;
3496
+ /** Enabled */
3497
+ enabled?: boolean | null;
3498
+ };
3499
+ /** MemorySettingsView */
3500
+ MemorySettingsView: {
3501
+ /** Allow Turn Opt Out */
3502
+ allow_turn_opt_out: boolean;
3503
+ /** Auto Extract */
3504
+ auto_extract: boolean;
3505
+ /** Auto Extract Supported */
3506
+ auto_extract_supported: boolean;
3507
+ /** Enabled */
3508
+ enabled: boolean;
3509
+ /** Include Chat History */
3510
+ include_chat_history: boolean;
3511
+ /** Max Content Length */
3512
+ max_content_length: number;
3513
+ /** Max Memories Per Scope */
3514
+ max_memories_per_scope: number;
3515
+ /** Scopes */
3516
+ scopes: components["schemas"]["MemoryScopeView"][];
3517
+ };
3518
+ /** MemoryUpdateInput */
3519
+ MemoryUpdateInput: {
3520
+ /** Content */
3521
+ content?: string | null;
3522
+ /** Importance */
3523
+ importance?: number | null;
3524
+ /** Pinned */
3525
+ pinned?: boolean | null;
3526
+ };
3527
+ /** MemoryView */
3528
+ MemoryView: {
3529
+ /** Content */
3530
+ content: string;
3531
+ /** Created At */
3532
+ created_at: string;
3533
+ /** Id */
3534
+ id: string;
3535
+ /** Importance */
3536
+ importance: number;
3537
+ /** Last Accessed At */
3538
+ last_accessed_at?: string | null;
3539
+ /** Metadata */
3540
+ metadata?: {
3541
+ [key: string]: components["schemas"]["JsonValue"];
3542
+ };
3543
+ /** Pinned */
3544
+ pinned: boolean;
3545
+ /** Scope Id */
3546
+ scope_id: string;
3547
+ /** Scope Kind */
3548
+ scope_kind: string;
3549
+ /**
3550
+ * Source
3551
+ * @enum {string}
3552
+ */
3553
+ source: "user" | "agent" | "extracted" | "system";
3554
+ /** Source Thread Id */
3555
+ source_thread_id?: string | null;
3556
+ /** Updated At */
3557
+ updated_at: string;
3558
+ };
3185
3559
  /** MessageFeedbackInput */
3186
3560
  MessageFeedbackInput: {
3187
3561
  /** Message Id */
@@ -3516,6 +3890,10 @@ export declare interface components {
3516
3890
  PublicConfig: {
3517
3891
  /** Admin Title */
3518
3892
  admin_title?: string | null;
3893
+ /** App Favicon */
3894
+ app_favicon?: string | null;
3895
+ /** App Logo */
3896
+ app_logo?: string | components["schemas"]["AppLogo"] | null;
3519
3897
  /** App Name */
3520
3898
  app_name?: string | null;
3521
3899
  /** App Version */
@@ -3523,6 +3901,8 @@ export declare interface components {
3523
3901
  attachments: components["schemas"]["AttachmentLimits"];
3524
3902
  /** Auth Page Enabled */
3525
3903
  auth_page_enabled?: boolean | null;
3904
+ /** Capabilities */
3905
+ capabilities?: components["schemas"]["CapabilityView"][];
3526
3906
  /** Composer Attachments */
3527
3907
  composer_attachments?: boolean | null;
3528
3908
  /** Composer Voice */
@@ -3574,6 +3954,18 @@ export declare interface components {
3574
3954
  /** Login Fields */
3575
3955
  login_fields: ("username" | "email" | "phone")[];
3576
3956
  maintenance: components["schemas"]["MaintenanceNotice"];
3957
+ /**
3958
+ * Memory Enabled
3959
+ * @default false
3960
+ */
3961
+ memory_enabled?: boolean;
3962
+ /**
3963
+ * Memory Include Chat History
3964
+ * @default false
3965
+ */
3966
+ memory_include_chat_history?: boolean;
3967
+ /** Modes */
3968
+ modes?: components["schemas"]["ChatModeView"][];
3577
3969
  /** Plugins */
3578
3970
  plugins: string[];
3579
3971
  /** Quota Calendar */
@@ -4469,6 +4861,10 @@ export declare interface components {
4469
4861
  * @description A stored message. ``content`` is the plain text it shows; ``parts`` is what it's made of.
4470
4862
  */
4471
4863
  ThreadItem: {
4864
+ /** Capabilities */
4865
+ capabilities?: {
4866
+ [key: string]: boolean;
4867
+ } | null;
4472
4868
  /**
4473
4869
  * Content
4474
4870
  * @default
@@ -4480,6 +4876,8 @@ export declare interface components {
4480
4876
  feedback?: string | null;
4481
4877
  /** Id */
4482
4878
  id: string;
4879
+ /** Mode */
4880
+ mode?: string | null;
4483
4881
  /**
4484
4882
  * Parts
4485
4883
  * @default []
@@ -5202,11 +5600,16 @@ declare interface ComposerDraft {
5202
5600
  references: readonly ChatReference[];
5203
5601
  /** The ids of the transcriptions dictated into `text`, which the message pays for. */
5204
5602
  voiceInputs: readonly string[];
5603
+ /** Per-thread draft chat mode override (`null` explicitly resets to default; `undefined` inherits). */
5604
+ mode?: string | null;
5605
+ /** Explicit per-capability toggles in the composer draft. */
5606
+ capabilities?: Readonly<Record<string, boolean>>;
5205
5607
  }
5206
5608
 
5207
5609
  /**
5208
- * The composer's text, quotes and dictations, per scope (a thread), so each thread keeps its own
5209
- * until its message is sent. Framework-free: React reads it through `useSyncExternalStore`.
5610
+ * The composer's text, quotes, dictations, and run control overrides, per scope (a thread),
5611
+ * so each thread keeps its own until its message is sent. Framework-free: React reads it
5612
+ * through `useSyncExternalStore`.
5210
5613
  */
5211
5614
  declare interface ComposerDrafts {
5212
5615
  /** The scope's draft. The same object until it changes. */
@@ -5221,8 +5624,12 @@ declare interface ComposerDrafts {
5221
5624
  removeReference: (scope: string, id: string) => void;
5222
5625
  clearReferences: (scope: string) => void;
5223
5626
  addVoiceInput: (scope: string, id: string) => void;
5627
+ setMode: (scope: string, mode: string | null | undefined) => void;
5628
+ setCapability: (scope: string, key: string, enabled: boolean | undefined) => void;
5629
+ clearRunSelection: (scope: string) => void;
5630
+ moveRunSelection: (fromScope: string, toScope: string) => void;
5224
5631
  /** Empties the scope and returns what it held, as when a message is sent. */
5225
- take: (scope: string) => ComposerDraft;
5632
+ take: (scope: string, options?: TakeDraftOptions) => ComposerDraft;
5226
5633
  /** Clears every scope, as when signing out or disposing the runtime. */
5227
5634
  clear: () => void;
5228
5635
  }
@@ -5450,6 +5857,12 @@ export declare function isStoredPart<T extends FixedPartType>(part: StoredMessag
5450
5857
  /** Whether a stored part is a tool call. */
5451
5858
  export declare function isStoredToolPart(part: StoredMessagePart): part is StoredToolPart;
5452
5859
 
5860
+ /**
5861
+ * Checks whether a string is a safe icon URL (`http(s)://...`) or relative path (`/...`).
5862
+ * Rejects protocol-relative URLs (`//...`), whitespace, control characters, and `javascript:`/`data:` schemes.
5863
+ */
5864
+ export declare function isValidIconUrl(value: string): boolean;
5865
+
5453
5866
  /** Whether this browser can record: it needs a secure origin and `MediaRecorder`. */
5454
5867
  export declare function isVoiceRecordingSupported(): boolean;
5455
5868
 
@@ -5465,8 +5878,18 @@ declare type LoginCodeExchangeResponse = Schemas['LoginCodeExchangeResponse'];
5465
5878
  /** A user field that can be used as a login handle. */
5466
5879
  declare type LoginField = AppConfigResponse['login_fields'][number];
5467
5880
 
5881
+ /** Either a synchronous value or a Promise resolving to it. */
5468
5882
  declare type MaybePromise<T> = T | Promise<T>;
5469
5883
 
5884
+ /** Request body to create a memory item. */
5885
+ declare type MemoryCreateInput = Schemas['MemoryCreateInput'];
5886
+
5887
+ /** Request body to update user memory settings. */
5888
+ declare type MemorySettingsUpdateInput = Schemas['MemorySettingsUpdateInput'];
5889
+
5890
+ /** Request body to update a memory item. */
5891
+ declare type MemoryUpdateInput = Schemas['MemoryUpdateInput'];
5892
+
5470
5893
  /** What the user thought of an answer. */
5471
5894
  declare type MessageFeedback = 'like' | 'dislike';
5472
5895
 
@@ -6741,47 +7164,6 @@ declare interface operations {
6741
7164
  };
6742
7165
  };
6743
7166
  };
6744
- list_jobs_api_admin_jobs_get: {
6745
- parameters: {
6746
- query?: {
6747
- limit?: number;
6748
- type?: string | null;
6749
- };
6750
- header?: never;
6751
- path?: never;
6752
- cookie?: never;
6753
- };
6754
- requestBody?: never;
6755
- responses: {
6756
- /** @description Successful Response */
6757
- 200: {
6758
- headers: {
6759
- [name: string]: unknown;
6760
- };
6761
- content: {
6762
- "application/json": components["schemas"]["BackgroundJobList"];
6763
- };
6764
- };
6765
- /** @description Client Error */
6766
- "4XX": {
6767
- headers: {
6768
- [name: string]: unknown;
6769
- };
6770
- content: {
6771
- "application/json": components["schemas"]["ErrorResponse"];
6772
- };
6773
- };
6774
- /** @description Server Error */
6775
- "5XX": {
6776
- headers: {
6777
- [name: string]: unknown;
6778
- };
6779
- content: {
6780
- "application/json": components["schemas"]["ErrorResponse"];
6781
- };
6782
- };
6783
- };
6784
- };
6785
7167
  run_raw_job_api_admin_jobs_raw_post: {
6786
7168
  parameters: {
6787
7169
  query?: never;
@@ -7108,16 +7490,18 @@ declare interface operations {
7108
7490
  };
7109
7491
  };
7110
7492
  };
7111
- cancel_job_api_admin_jobs__job_id__cancel_post: {
7493
+ login_admin_api_admin_login_post: {
7112
7494
  parameters: {
7113
7495
  query?: never;
7114
7496
  header?: never;
7115
- path: {
7116
- job_id: string;
7117
- };
7497
+ path?: never;
7118
7498
  cookie?: never;
7119
7499
  };
7120
- requestBody?: never;
7500
+ requestBody: {
7501
+ content: {
7502
+ "application/json": components["schemas"]["AdminLoginInput"];
7503
+ };
7504
+ };
7121
7505
  responses: {
7122
7506
  /** @description Successful Response */
7123
7507
  200: {
@@ -7125,7 +7509,7 @@ declare interface operations {
7125
7509
  [name: string]: unknown;
7126
7510
  };
7127
7511
  content: {
7128
- "application/json": components["schemas"]["StatusMessageResponse"];
7512
+ "application/json": components["schemas"]["AdminLoginResponse"];
7129
7513
  };
7130
7514
  };
7131
7515
  /** @description Client Error */
@@ -7148,49 +7532,7 @@ declare interface operations {
7148
7532
  };
7149
7533
  };
7150
7534
  };
7151
- login_admin_api_admin_login_post: {
7152
- parameters: {
7153
- query?: never;
7154
- header?: never;
7155
- path?: never;
7156
- cookie?: never;
7157
- };
7158
- requestBody: {
7159
- content: {
7160
- "application/json": components["schemas"]["AdminLoginInput"];
7161
- };
7162
- };
7163
- responses: {
7164
- /** @description Successful Response */
7165
- 200: {
7166
- headers: {
7167
- [name: string]: unknown;
7168
- };
7169
- content: {
7170
- "application/json": components["schemas"]["AdminLoginResponse"];
7171
- };
7172
- };
7173
- /** @description Client Error */
7174
- "4XX": {
7175
- headers: {
7176
- [name: string]: unknown;
7177
- };
7178
- content: {
7179
- "application/json": components["schemas"]["ErrorResponse"];
7180
- };
7181
- };
7182
- /** @description Server Error */
7183
- "5XX": {
7184
- headers: {
7185
- [name: string]: unknown;
7186
- };
7187
- content: {
7188
- "application/json": components["schemas"]["ErrorResponse"];
7189
- };
7190
- };
7191
- };
7192
- };
7193
- logout_admin_api_admin_logout_post: {
7535
+ logout_admin_api_admin_logout_post: {
7194
7536
  parameters: {
7195
7537
  query?: never;
7196
7538
  header?: never;
@@ -8004,6 +8346,51 @@ declare interface operations {
8004
8346
  };
8005
8347
  };
8006
8348
  };
8349
+ upload_branding_icon_api_admin_settings_icon_post: {
8350
+ parameters: {
8351
+ query?: {
8352
+ filename?: string;
8353
+ };
8354
+ header?: never;
8355
+ path?: never;
8356
+ cookie?: never;
8357
+ };
8358
+ /** @description The raster icon file itself, with its image media type as the `Content-Type`. */
8359
+ requestBody: {
8360
+ content: {
8361
+ "application/octet-stream": string;
8362
+ };
8363
+ };
8364
+ responses: {
8365
+ /** @description Successful Response */
8366
+ 200: {
8367
+ headers: {
8368
+ [name: string]: unknown;
8369
+ };
8370
+ content: {
8371
+ "application/json": components["schemas"]["BrandingIconUpload"];
8372
+ };
8373
+ };
8374
+ /** @description Client Error */
8375
+ "4XX": {
8376
+ headers: {
8377
+ [name: string]: unknown;
8378
+ };
8379
+ content: {
8380
+ "application/json": components["schemas"]["ErrorResponse"];
8381
+ };
8382
+ };
8383
+ /** @description Server Error */
8384
+ "5XX": {
8385
+ headers: {
8386
+ [name: string]: unknown;
8387
+ };
8388
+ content: {
8389
+ "application/json": components["schemas"]["ErrorResponse"];
8390
+ };
8391
+ };
8392
+ };
8393
+ };
8007
8394
  get_setup_status_api_admin_setup_status_get: {
8008
8395
  parameters: {
8009
8396
  query?: never;
@@ -8665,6 +9052,131 @@ declare interface operations {
8665
9052
  };
8666
9053
  };
8667
9054
  };
9055
+ admin_list_user_memories_api_admin_users__user_id__memory_get: {
9056
+ parameters: {
9057
+ query?: {
9058
+ q?: string | null;
9059
+ limit?: number;
9060
+ cursor?: string | null;
9061
+ };
9062
+ header?: never;
9063
+ path: {
9064
+ user_id: string;
9065
+ };
9066
+ cookie?: never;
9067
+ };
9068
+ requestBody?: never;
9069
+ responses: {
9070
+ /** @description Successful Response */
9071
+ 200: {
9072
+ headers: {
9073
+ [name: string]: unknown;
9074
+ };
9075
+ content: {
9076
+ "application/json": components["schemas"]["AdminUserMemoryResponse"];
9077
+ };
9078
+ };
9079
+ /** @description Client Error */
9080
+ "4XX": {
9081
+ headers: {
9082
+ [name: string]: unknown;
9083
+ };
9084
+ content: {
9085
+ "application/json": components["schemas"]["ErrorResponse"];
9086
+ };
9087
+ };
9088
+ /** @description Server Error */
9089
+ "5XX": {
9090
+ headers: {
9091
+ [name: string]: unknown;
9092
+ };
9093
+ content: {
9094
+ "application/json": components["schemas"]["ErrorResponse"];
9095
+ };
9096
+ };
9097
+ };
9098
+ };
9099
+ admin_clear_user_memories_api_admin_users__user_id__memory_delete: {
9100
+ parameters: {
9101
+ query?: never;
9102
+ header?: never;
9103
+ path: {
9104
+ user_id: string;
9105
+ };
9106
+ cookie?: never;
9107
+ };
9108
+ requestBody?: never;
9109
+ responses: {
9110
+ /** @description Successful Response */
9111
+ 200: {
9112
+ headers: {
9113
+ [name: string]: unknown;
9114
+ };
9115
+ content: {
9116
+ "application/json": components["schemas"]["MemoryClearResponse"];
9117
+ };
9118
+ };
9119
+ /** @description Client Error */
9120
+ "4XX": {
9121
+ headers: {
9122
+ [name: string]: unknown;
9123
+ };
9124
+ content: {
9125
+ "application/json": components["schemas"]["ErrorResponse"];
9126
+ };
9127
+ };
9128
+ /** @description Server Error */
9129
+ "5XX": {
9130
+ headers: {
9131
+ [name: string]: unknown;
9132
+ };
9133
+ content: {
9134
+ "application/json": components["schemas"]["ErrorResponse"];
9135
+ };
9136
+ };
9137
+ };
9138
+ };
9139
+ admin_delete_user_memory_api_admin_users__user_id__memory__memory_id__delete: {
9140
+ parameters: {
9141
+ query?: never;
9142
+ header?: never;
9143
+ path: {
9144
+ user_id: string;
9145
+ memory_id: string;
9146
+ };
9147
+ cookie?: never;
9148
+ };
9149
+ requestBody?: never;
9150
+ responses: {
9151
+ /** @description Successful Response */
9152
+ 200: {
9153
+ headers: {
9154
+ [name: string]: unknown;
9155
+ };
9156
+ content: {
9157
+ "application/json": components["schemas"]["StatusResponse"];
9158
+ };
9159
+ };
9160
+ /** @description Client Error */
9161
+ "4XX": {
9162
+ headers: {
9163
+ [name: string]: unknown;
9164
+ };
9165
+ content: {
9166
+ "application/json": components["schemas"]["ErrorResponse"];
9167
+ };
9168
+ };
9169
+ /** @description Server Error */
9170
+ "5XX": {
9171
+ headers: {
9172
+ [name: string]: unknown;
9173
+ };
9174
+ content: {
9175
+ "application/json": components["schemas"]["ErrorResponse"];
9176
+ };
9177
+ };
9178
+ };
9179
+ };
8668
9180
  refresh_user_token_api_admin_users__user_id__refresh_token_post: {
8669
9181
  parameters: {
8670
9182
  query?: never;
@@ -9972,13 +10484,324 @@ declare interface operations {
9972
10484
  "application/json": components["schemas"]["IntegrationUserResponse"];
9973
10485
  };
9974
10486
  };
9975
- /** @description A new user */
10487
+ /** @description A new user */
10488
+ 201: {
10489
+ headers: {
10490
+ [name: string]: unknown;
10491
+ };
10492
+ content: {
10493
+ "application/json": components["schemas"]["IntegrationUserResponse"];
10494
+ };
10495
+ };
10496
+ /** @description Client Error */
10497
+ "4XX": {
10498
+ headers: {
10499
+ [name: string]: unknown;
10500
+ };
10501
+ content: {
10502
+ "application/json": components["schemas"]["ErrorResponse"];
10503
+ };
10504
+ };
10505
+ /** @description Server Error */
10506
+ "5XX": {
10507
+ headers: {
10508
+ [name: string]: unknown;
10509
+ };
10510
+ content: {
10511
+ "application/json": components["schemas"]["ErrorResponse"];
10512
+ };
10513
+ };
10514
+ };
10515
+ };
10516
+ grant_credits_api_integration_v1_users__external_id__credits_post: {
10517
+ parameters: {
10518
+ query?: never;
10519
+ header?: {
10520
+ "Idempotency-Key"?: string | null;
10521
+ };
10522
+ path: {
10523
+ external_id: string;
10524
+ };
10525
+ cookie?: never;
10526
+ };
10527
+ requestBody: {
10528
+ content: {
10529
+ "application/json": components["schemas"]["CreditsGrantInput"];
10530
+ };
10531
+ };
10532
+ responses: {
10533
+ /** @description Successful Response */
10534
+ 200: {
10535
+ headers: {
10536
+ [name: string]: unknown;
10537
+ };
10538
+ content: {
10539
+ "application/json": components["schemas"]["CreditsGrantResponse"];
10540
+ };
10541
+ };
10542
+ /** @description Client Error */
10543
+ "4XX": {
10544
+ headers: {
10545
+ [name: string]: unknown;
10546
+ };
10547
+ content: {
10548
+ "application/json": components["schemas"]["ErrorResponse"];
10549
+ };
10550
+ };
10551
+ /** @description Server Error */
10552
+ "5XX": {
10553
+ headers: {
10554
+ [name: string]: unknown;
10555
+ };
10556
+ content: {
10557
+ "application/json": components["schemas"]["ErrorResponse"];
10558
+ };
10559
+ };
10560
+ };
10561
+ };
10562
+ list_subscriptions_api_integration_v1_users__external_id__subscriptions_get: {
10563
+ parameters: {
10564
+ query?: never;
10565
+ header?: never;
10566
+ path: {
10567
+ external_id: string;
10568
+ };
10569
+ cookie?: never;
10570
+ };
10571
+ requestBody?: never;
10572
+ responses: {
10573
+ /** @description Successful Response */
10574
+ 200: {
10575
+ headers: {
10576
+ [name: string]: unknown;
10577
+ };
10578
+ content: {
10579
+ "application/json": components["schemas"]["SubscriptionList"];
10580
+ };
10581
+ };
10582
+ /** @description Client Error */
10583
+ "4XX": {
10584
+ headers: {
10585
+ [name: string]: unknown;
10586
+ };
10587
+ content: {
10588
+ "application/json": components["schemas"]["ErrorResponse"];
10589
+ };
10590
+ };
10591
+ /** @description Server Error */
10592
+ "5XX": {
10593
+ headers: {
10594
+ [name: string]: unknown;
10595
+ };
10596
+ content: {
10597
+ "application/json": components["schemas"]["ErrorResponse"];
10598
+ };
10599
+ };
10600
+ };
10601
+ };
10602
+ put_subscription_api_integration_v1_users__external_id__subscriptions__subscription_external_id__put: {
10603
+ parameters: {
10604
+ query?: never;
10605
+ header?: never;
10606
+ path: {
10607
+ external_id: string;
10608
+ subscription_external_id: string;
10609
+ };
10610
+ cookie?: never;
10611
+ };
10612
+ requestBody: {
10613
+ content: {
10614
+ "application/json": components["schemas"]["SubscriptionInput"];
10615
+ };
10616
+ };
10617
+ responses: {
10618
+ /** @description Successful Response */
10619
+ 200: {
10620
+ headers: {
10621
+ [name: string]: unknown;
10622
+ };
10623
+ content: {
10624
+ "application/json": components["schemas"]["SubscriptionPutResponse"];
10625
+ };
10626
+ };
10627
+ /** @description A new subscription */
10628
+ 201: {
10629
+ headers: {
10630
+ [name: string]: unknown;
10631
+ };
10632
+ content: {
10633
+ "application/json": components["schemas"]["SubscriptionPutResponse"];
10634
+ };
10635
+ };
10636
+ /** @description Client Error */
10637
+ "4XX": {
10638
+ headers: {
10639
+ [name: string]: unknown;
10640
+ };
10641
+ content: {
10642
+ "application/json": components["schemas"]["ErrorResponse"];
10643
+ };
10644
+ };
10645
+ /** @description Server Error */
10646
+ "5XX": {
10647
+ headers: {
10648
+ [name: string]: unknown;
10649
+ };
10650
+ content: {
10651
+ "application/json": components["schemas"]["ErrorResponse"];
10652
+ };
10653
+ };
10654
+ };
10655
+ };
10656
+ cancel_subscription_api_integration_v1_users__external_id__subscriptions__subscription_external_id__cancel_post: {
10657
+ parameters: {
10658
+ query?: never;
10659
+ header?: never;
10660
+ path: {
10661
+ external_id: string;
10662
+ subscription_external_id: string;
10663
+ };
10664
+ cookie?: never;
10665
+ };
10666
+ requestBody?: {
10667
+ content: {
10668
+ "application/json": components["schemas"]["CancelSubscriptionInput"] | null;
10669
+ };
10670
+ };
10671
+ responses: {
10672
+ /** @description Successful Response */
10673
+ 200: {
10674
+ headers: {
10675
+ [name: string]: unknown;
10676
+ };
10677
+ content: {
10678
+ "application/json": components["schemas"]["SubscriptionCancelResponse"];
10679
+ };
10680
+ };
10681
+ /** @description Client Error */
10682
+ "4XX": {
10683
+ headers: {
10684
+ [name: string]: unknown;
10685
+ };
10686
+ content: {
10687
+ "application/json": components["schemas"]["ErrorResponse"];
10688
+ };
10689
+ };
10690
+ /** @description Server Error */
10691
+ "5XX": {
10692
+ headers: {
10693
+ [name: string]: unknown;
10694
+ };
10695
+ content: {
10696
+ "application/json": components["schemas"]["ErrorResponse"];
10697
+ };
10698
+ };
10699
+ };
10700
+ };
10701
+ get_usage_api_integration_v1_users__external_id__usage_get: {
10702
+ parameters: {
10703
+ query?: never;
10704
+ header?: never;
10705
+ path: {
10706
+ external_id: string;
10707
+ };
10708
+ cookie?: never;
10709
+ };
10710
+ requestBody?: never;
10711
+ responses: {
10712
+ /** @description Successful Response */
10713
+ 200: {
10714
+ headers: {
10715
+ [name: string]: unknown;
10716
+ };
10717
+ content: {
10718
+ "application/json": components["schemas"]["EntitlementStatus"];
10719
+ };
10720
+ };
10721
+ /** @description Client Error */
10722
+ "4XX": {
10723
+ headers: {
10724
+ [name: string]: unknown;
10725
+ };
10726
+ content: {
10727
+ "application/json": components["schemas"]["ErrorResponse"];
10728
+ };
10729
+ };
10730
+ /** @description Server Error */
10731
+ "5XX": {
10732
+ headers: {
10733
+ [name: string]: unknown;
10734
+ };
10735
+ content: {
10736
+ "application/json": components["schemas"]["ErrorResponse"];
10737
+ };
10738
+ };
10739
+ };
10740
+ };
10741
+ list_memories_api_memory_get: {
10742
+ parameters: {
10743
+ query?: {
10744
+ q?: string | null;
10745
+ scope_kind?: string | null;
10746
+ scope_id?: string | null;
10747
+ limit?: number;
10748
+ cursor?: string | null;
10749
+ };
10750
+ header?: never;
10751
+ path?: never;
10752
+ cookie?: never;
10753
+ };
10754
+ requestBody?: never;
10755
+ responses: {
10756
+ /** @description Successful Response */
10757
+ 200: {
10758
+ headers: {
10759
+ [name: string]: unknown;
10760
+ };
10761
+ content: {
10762
+ "application/json": components["schemas"]["MemoryListResponse"];
10763
+ };
10764
+ };
10765
+ /** @description Client Error */
10766
+ "4XX": {
10767
+ headers: {
10768
+ [name: string]: unknown;
10769
+ };
10770
+ content: {
10771
+ "application/json": components["schemas"]["ErrorResponse"];
10772
+ };
10773
+ };
10774
+ /** @description Server Error */
10775
+ "5XX": {
10776
+ headers: {
10777
+ [name: string]: unknown;
10778
+ };
10779
+ content: {
10780
+ "application/json": components["schemas"]["ErrorResponse"];
10781
+ };
10782
+ };
10783
+ };
10784
+ };
10785
+ create_memory_api_memory_post: {
10786
+ parameters: {
10787
+ query?: never;
10788
+ header?: never;
10789
+ path?: never;
10790
+ cookie?: never;
10791
+ };
10792
+ requestBody: {
10793
+ content: {
10794
+ "application/json": components["schemas"]["MemoryCreateInput"];
10795
+ };
10796
+ };
10797
+ responses: {
10798
+ /** @description Successful Response */
9976
10799
  201: {
9977
10800
  headers: {
9978
10801
  [name: string]: unknown;
9979
10802
  };
9980
10803
  content: {
9981
- "application/json": components["schemas"]["IntegrationUserResponse"];
10804
+ "application/json": components["schemas"]["MemoryView"];
9982
10805
  };
9983
10806
  };
9984
10807
  /** @description Client Error */
@@ -10001,22 +10824,17 @@ declare interface operations {
10001
10824
  };
10002
10825
  };
10003
10826
  };
10004
- grant_credits_api_integration_v1_users__external_id__credits_post: {
10827
+ clear_memories_api_memory_delete: {
10005
10828
  parameters: {
10006
- query?: never;
10007
- header?: {
10008
- "Idempotency-Key"?: string | null;
10009
- };
10010
- path: {
10011
- external_id: string;
10829
+ query?: {
10830
+ scope_kind?: string | null;
10831
+ scope_id?: string | null;
10012
10832
  };
10833
+ header?: never;
10834
+ path?: never;
10013
10835
  cookie?: never;
10014
10836
  };
10015
- requestBody: {
10016
- content: {
10017
- "application/json": components["schemas"]["CreditsGrantInput"];
10018
- };
10019
- };
10837
+ requestBody?: never;
10020
10838
  responses: {
10021
10839
  /** @description Successful Response */
10022
10840
  200: {
@@ -10024,7 +10842,7 @@ declare interface operations {
10024
10842
  [name: string]: unknown;
10025
10843
  };
10026
10844
  content: {
10027
- "application/json": components["schemas"]["CreditsGrantResponse"];
10845
+ "application/json": components["schemas"]["MemoryClearResponse"];
10028
10846
  };
10029
10847
  };
10030
10848
  /** @description Client Error */
@@ -10047,13 +10865,11 @@ declare interface operations {
10047
10865
  };
10048
10866
  };
10049
10867
  };
10050
- list_subscriptions_api_integration_v1_users__external_id__subscriptions_get: {
10868
+ get_memory_settings_api_memory_settings_get: {
10051
10869
  parameters: {
10052
10870
  query?: never;
10053
10871
  header?: never;
10054
- path: {
10055
- external_id: string;
10056
- };
10872
+ path?: never;
10057
10873
  cookie?: never;
10058
10874
  };
10059
10875
  requestBody?: never;
@@ -10064,7 +10880,7 @@ declare interface operations {
10064
10880
  [name: string]: unknown;
10065
10881
  };
10066
10882
  content: {
10067
- "application/json": components["schemas"]["SubscriptionList"];
10883
+ "application/json": components["schemas"]["MemorySettingsView"];
10068
10884
  };
10069
10885
  };
10070
10886
  /** @description Client Error */
@@ -10087,19 +10903,16 @@ declare interface operations {
10087
10903
  };
10088
10904
  };
10089
10905
  };
10090
- put_subscription_api_integration_v1_users__external_id__subscriptions__subscription_external_id__put: {
10906
+ update_memory_settings_api_memory_settings_patch: {
10091
10907
  parameters: {
10092
10908
  query?: never;
10093
10909
  header?: never;
10094
- path: {
10095
- external_id: string;
10096
- subscription_external_id: string;
10097
- };
10910
+ path?: never;
10098
10911
  cookie?: never;
10099
10912
  };
10100
10913
  requestBody: {
10101
10914
  content: {
10102
- "application/json": components["schemas"]["SubscriptionInput"];
10915
+ "application/json": components["schemas"]["MemorySettingsUpdateInput"];
10103
10916
  };
10104
10917
  };
10105
10918
  responses: {
@@ -10109,16 +10922,7 @@ declare interface operations {
10109
10922
  [name: string]: unknown;
10110
10923
  };
10111
10924
  content: {
10112
- "application/json": components["schemas"]["SubscriptionPutResponse"];
10113
- };
10114
- };
10115
- /** @description A new subscription */
10116
- 201: {
10117
- headers: {
10118
- [name: string]: unknown;
10119
- };
10120
- content: {
10121
- "application/json": components["schemas"]["SubscriptionPutResponse"];
10925
+ "application/json": components["schemas"]["MemorySettingsView"];
10122
10926
  };
10123
10927
  };
10124
10928
  /** @description Client Error */
@@ -10141,21 +10945,16 @@ declare interface operations {
10141
10945
  };
10142
10946
  };
10143
10947
  };
10144
- cancel_subscription_api_integration_v1_users__external_id__subscriptions__subscription_external_id__cancel_post: {
10948
+ delete_memory_api_memory__memory_id__delete: {
10145
10949
  parameters: {
10146
10950
  query?: never;
10147
10951
  header?: never;
10148
10952
  path: {
10149
- external_id: string;
10150
- subscription_external_id: string;
10953
+ memory_id: string;
10151
10954
  };
10152
10955
  cookie?: never;
10153
10956
  };
10154
- requestBody?: {
10155
- content: {
10156
- "application/json": components["schemas"]["CancelSubscriptionInput"] | null;
10157
- };
10158
- };
10957
+ requestBody?: never;
10159
10958
  responses: {
10160
10959
  /** @description Successful Response */
10161
10960
  200: {
@@ -10163,7 +10962,7 @@ declare interface operations {
10163
10962
  [name: string]: unknown;
10164
10963
  };
10165
10964
  content: {
10166
- "application/json": components["schemas"]["SubscriptionCancelResponse"];
10965
+ "application/json": components["schemas"]["StatusResponse"];
10167
10966
  };
10168
10967
  };
10169
10968
  /** @description Client Error */
@@ -10186,16 +10985,20 @@ declare interface operations {
10186
10985
  };
10187
10986
  };
10188
10987
  };
10189
- get_usage_api_integration_v1_users__external_id__usage_get: {
10988
+ update_memory_api_memory__memory_id__patch: {
10190
10989
  parameters: {
10191
10990
  query?: never;
10192
10991
  header?: never;
10193
10992
  path: {
10194
- external_id: string;
10993
+ memory_id: string;
10195
10994
  };
10196
10995
  cookie?: never;
10197
10996
  };
10198
- requestBody?: never;
10997
+ requestBody: {
10998
+ content: {
10999
+ "application/json": components["schemas"]["MemoryUpdateInput"];
11000
+ };
11001
+ };
10199
11002
  responses: {
10200
11003
  /** @description Successful Response */
10201
11004
  200: {
@@ -10203,7 +11006,7 @@ declare interface operations {
10203
11006
  [name: string]: unknown;
10204
11007
  };
10205
11008
  content: {
10206
- "application/json": components["schemas"]["EntitlementStatus"];
11009
+ "application/json": components["schemas"]["MemoryView"];
10207
11010
  };
10208
11011
  };
10209
11012
  /** @description Client Error */
@@ -10310,6 +11113,46 @@ declare interface operations {
10310
11113
  };
10311
11114
  };
10312
11115
  };
11116
+ get_branding_icon_api_public_branding__asset_id__get: {
11117
+ parameters: {
11118
+ query?: never;
11119
+ header?: never;
11120
+ path: {
11121
+ asset_id: string;
11122
+ };
11123
+ cookie?: never;
11124
+ };
11125
+ requestBody?: never;
11126
+ responses: {
11127
+ /** @description The uploaded branding icon, with the media type recorded at upload */
11128
+ 200: {
11129
+ headers: {
11130
+ [name: string]: unknown;
11131
+ };
11132
+ content: {
11133
+ "application/octet-stream": unknown;
11134
+ };
11135
+ };
11136
+ /** @description Client Error */
11137
+ "4XX": {
11138
+ headers: {
11139
+ [name: string]: unknown;
11140
+ };
11141
+ content: {
11142
+ "application/json": components["schemas"]["ErrorResponse"];
11143
+ };
11144
+ };
11145
+ /** @description Server Error */
11146
+ "5XX": {
11147
+ headers: {
11148
+ [name: string]: unknown;
11149
+ };
11150
+ content: {
11151
+ "application/json": components["schemas"]["ErrorResponse"];
11152
+ };
11153
+ };
11154
+ };
11155
+ };
10313
11156
  get_shared_thread_api_public_shared__share_id__get: {
10314
11157
  parameters: {
10315
11158
  query?: never;
@@ -11557,26 +12400,6 @@ declare interface paths {
11557
12400
  patch?: never;
11558
12401
  trace?: never;
11559
12402
  };
11560
- "/api/admin/jobs": {
11561
- parameters: {
11562
- query?: never;
11563
- header?: never;
11564
- path?: never;
11565
- cookie?: never;
11566
- };
11567
- /**
11568
- * List Jobs
11569
- * @description List recent background jobs.
11570
- */
11571
- get: operations["list_jobs_api_admin_jobs_get"];
11572
- put?: never;
11573
- post?: never;
11574
- delete?: never;
11575
- options?: never;
11576
- head?: never;
11577
- patch?: never;
11578
- trace?: never;
11579
- };
11580
12403
  "/api/admin/jobs/raw": {
11581
12404
  parameters: {
11582
12405
  query?: never;
@@ -11754,26 +12577,6 @@ declare interface paths {
11754
12577
  patch?: never;
11755
12578
  trace?: never;
11756
12579
  };
11757
- "/api/admin/jobs/{job_id}/cancel": {
11758
- parameters: {
11759
- query?: never;
11760
- header?: never;
11761
- path?: never;
11762
- cookie?: never;
11763
- };
11764
- get?: never;
11765
- put?: never;
11766
- /**
11767
- * Cancel Job
11768
- * @description Cancel a background job.
11769
- */
11770
- post: operations["cancel_job_api_admin_jobs__job_id__cancel_post"];
11771
- delete?: never;
11772
- options?: never;
11773
- head?: never;
11774
- patch?: never;
11775
- trace?: never;
11776
- };
11777
12580
  "/api/admin/login": {
11778
12581
  parameters: {
11779
12582
  query?: never;
@@ -12113,6 +12916,26 @@ declare interface paths {
12113
12916
  patch: operations["update_app_settings_api_admin_settings_patch"];
12114
12917
  trace?: never;
12115
12918
  };
12919
+ "/api/admin/settings/icon": {
12920
+ parameters: {
12921
+ query?: never;
12922
+ header?: never;
12923
+ path?: never;
12924
+ cookie?: never;
12925
+ };
12926
+ get?: never;
12927
+ put?: never;
12928
+ /**
12929
+ * Upload Branding Icon
12930
+ * @description Upload a raster image (PNG, JPEG, GIF, WebP or ICO) for the app logo or favicon.
12931
+ */
12932
+ post: operations["upload_branding_icon_api_admin_settings_icon_post"];
12933
+ delete?: never;
12934
+ options?: never;
12935
+ head?: never;
12936
+ patch?: never;
12937
+ trace?: never;
12938
+ };
12116
12939
  "/api/admin/setup-status": {
12117
12940
  parameters: {
12118
12941
  query?: never;
@@ -12397,6 +13220,50 @@ declare interface paths {
12397
13220
  patch?: never;
12398
13221
  trace?: never;
12399
13222
  };
13223
+ "/api/admin/users/{user_id}/memory": {
13224
+ parameters: {
13225
+ query?: never;
13226
+ header?: never;
13227
+ path?: never;
13228
+ cookie?: never;
13229
+ };
13230
+ /**
13231
+ * Admin List User Memories
13232
+ * @description Inspect a user's stored memories and memory settings (Admin).
13233
+ */
13234
+ get: operations["admin_list_user_memories_api_admin_users__user_id__memory_get"];
13235
+ put?: never;
13236
+ post?: never;
13237
+ /**
13238
+ * Admin Clear User Memories
13239
+ * @description Clear all stored memories belonging to ``user_id`` (Admin).
13240
+ */
13241
+ delete: operations["admin_clear_user_memories_api_admin_users__user_id__memory_delete"];
13242
+ options?: never;
13243
+ head?: never;
13244
+ patch?: never;
13245
+ trace?: never;
13246
+ };
13247
+ "/api/admin/users/{user_id}/memory/{memory_id}": {
13248
+ parameters: {
13249
+ query?: never;
13250
+ header?: never;
13251
+ path?: never;
13252
+ cookie?: never;
13253
+ };
13254
+ get?: never;
13255
+ put?: never;
13256
+ post?: never;
13257
+ /**
13258
+ * Admin Delete User Memory
13259
+ * @description Delete one stored memory belonging to ``user_id`` (Admin).
13260
+ */
13261
+ delete: operations["admin_delete_user_memory_api_admin_users__user_id__memory__memory_id__delete"];
13262
+ options?: never;
13263
+ head?: never;
13264
+ patch?: never;
13265
+ trace?: never;
13266
+ };
12400
13267
  "/api/admin/users/{user_id}/refresh-token": {
12401
13268
  parameters: {
12402
13269
  query?: never;
@@ -13123,6 +13990,82 @@ declare interface paths {
13123
13990
  patch?: never;
13124
13991
  trace?: never;
13125
13992
  };
13993
+ "/api/memory": {
13994
+ parameters: {
13995
+ query?: never;
13996
+ header?: never;
13997
+ path?: never;
13998
+ cookie?: never;
13999
+ };
14000
+ /**
14001
+ * List Memories
14002
+ * @description List memories belonging to the current user (or requested authorized scope).
14003
+ */
14004
+ get: operations["list_memories_api_memory_get"];
14005
+ put?: never;
14006
+ /**
14007
+ * Create Memory
14008
+ * @description Create (or deduplicate) a memory for the current user.
14009
+ */
14010
+ post: operations["create_memory_api_memory_post"];
14011
+ /**
14012
+ * Clear Memories
14013
+ * @description Delete all memories in the user's writable scopes (or specified scope).
14014
+ */
14015
+ delete: operations["clear_memories_api_memory_delete"];
14016
+ options?: never;
14017
+ head?: never;
14018
+ patch?: never;
14019
+ trace?: never;
14020
+ };
14021
+ "/api/memory/settings": {
14022
+ parameters: {
14023
+ query?: never;
14024
+ header?: never;
14025
+ path?: never;
14026
+ cookie?: never;
14027
+ };
14028
+ /**
14029
+ * Get Memory Settings
14030
+ * @description Fetch the current user's memory preferences and limits.
14031
+ */
14032
+ get: operations["get_memory_settings_api_memory_settings_get"];
14033
+ put?: never;
14034
+ post?: never;
14035
+ delete?: never;
14036
+ options?: never;
14037
+ head?: never;
14038
+ /**
14039
+ * Update Memory Settings
14040
+ * @description Update the current user's memory preferences.
14041
+ */
14042
+ patch: operations["update_memory_settings_api_memory_settings_patch"];
14043
+ trace?: never;
14044
+ };
14045
+ "/api/memory/{memory_id}": {
14046
+ parameters: {
14047
+ query?: never;
14048
+ header?: never;
14049
+ path?: never;
14050
+ cookie?: never;
14051
+ };
14052
+ get?: never;
14053
+ put?: never;
14054
+ post?: never;
14055
+ /**
14056
+ * Delete Memory
14057
+ * @description Delete a stored memory owned by the current user.
14058
+ */
14059
+ delete: operations["delete_memory_api_memory__memory_id__delete"];
14060
+ options?: never;
14061
+ head?: never;
14062
+ /**
14063
+ * Update Memory
14064
+ * @description Update a stored memory owned by the current user.
14065
+ */
14066
+ patch: operations["update_memory_api_memory__memory_id__patch"];
14067
+ trace?: never;
14068
+ };
13126
14069
  "/api/public/auth/login": {
13127
14070
  parameters: {
13128
14071
  query?: never;
@@ -13163,6 +14106,26 @@ declare interface paths {
13163
14106
  patch?: never;
13164
14107
  trace?: never;
13165
14108
  };
14109
+ "/api/public/branding/{asset_id}": {
14110
+ parameters: {
14111
+ query?: never;
14112
+ header?: never;
14113
+ path?: never;
14114
+ cookie?: never;
14115
+ };
14116
+ /**
14117
+ * Get Branding Icon
14118
+ * @description Serves an uploaded app logo or favicon as a sandboxed raster image.
14119
+ */
14120
+ get: operations["get_branding_icon_api_public_branding__asset_id__get"];
14121
+ put?: never;
14122
+ post?: never;
14123
+ delete?: never;
14124
+ options?: never;
14125
+ head?: never;
14126
+ patch?: never;
14127
+ trace?: never;
14128
+ };
13166
14129
  "/api/public/shared/{share_id}": {
13167
14130
  parameters: {
13168
14131
  query?: never;
@@ -13504,6 +14467,15 @@ declare type RequestOptions<M extends HttpMethod, P extends RoutePath<M>> = {
13504
14467
  /** Fill in what `adapter` leaves out. */
13505
14468
  export declare function resolveAuthAdapter(adapter: AuthAdapter): ResolvedAuthAdapter;
13506
14469
 
14470
+ /**
14471
+ * Resolves an app icon or favicon URL against the API's `basePath`.
14472
+ *
14473
+ * Uploaded branding icons are stored as `/api/public/branding/<id>`, so an app
14474
+ * whose API lives on another origin or subpath (e.g. `https://api.example.com/api`)
14475
+ * resolves them under `basePath` while external URLs and app-origin paths stay intact.
14476
+ */
14477
+ export declare function resolveBrandingUrl(value: string, basePath?: string): string;
14478
+
13507
14479
  /** An {@link AuthAdapter} with every member the client calls filled in. */
13508
14480
  declare interface ResolvedAuthAdapter {
13509
14481
  getHeaders: () => Promise<Record<string, string>>;
@@ -13555,6 +14527,10 @@ declare interface SendInput {
13555
14527
  references?: ReferenceData[];
13556
14528
  /** The ids of the transcriptions the message was dictated with, which the turn pays for. */
13557
14529
  voiceInputs?: string[];
14530
+ /** Optional chat mode override for this turn (`null` resets sticky mode to default). */
14531
+ mode?: string | null;
14532
+ /** Optional capability overrides for this turn. */
14533
+ capabilities?: CapabilityOverrides;
13558
14534
  }
13559
14535
 
13560
14536
  /**
@@ -13580,6 +14556,13 @@ declare type Success<O> = O extends {
13580
14556
  responses: infer R;
13581
14557
  } ? 200 extends keyof R ? R[200] : 201 extends keyof R ? R[201] : 202 extends keyof R ? R[202] : 204 extends keyof R ? R[204] : never : never;
13582
14558
 
14559
+ declare interface TakeDraftOptions {
14560
+ /** Clear the draft mode override after taking (used for one-shot `sticky="turn"` modes). */
14561
+ clearMode?: boolean;
14562
+ /** Clear these capability keys after taking (used for one-shot `sticky="turn"` capabilities). */
14563
+ clearCapabilities?: readonly string[];
14564
+ }
14565
+
13583
14566
  /**
13584
14567
  * One thread's transcript, status and turn in flight, without React or a DOM.
13585
14568
  *