@gentiq/core 1.0.0-beta.2 → 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/client/api.es.js +65 -43
- package/dist/composer/composerDrafts.es.js +77 -34
- package/dist/composer/runSelection.es.js +142 -0
- package/dist/errors.es.js +5 -0
- package/dist/index.d.ts +1109 -42
- package/dist/index.es.js +45 -42
- package/dist/internal.d.ts +1015 -55
- package/dist/protocol/chatRequest.es.js +47 -38
- package/dist/thread/chatTransport.es.js +28 -17
- package/dist/thread/threadController.es.js +200 -184
- package/package.json +1 -1
package/dist/internal.d.ts
CHANGED
|
@@ -261,6 +261,7 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
|
|
|
261
261
|
app_version: string | null;
|
|
262
262
|
attachments: components["schemas"]["AttachmentLimits"];
|
|
263
263
|
auth_page_enabled?: boolean | null;
|
|
264
|
+
capabilities?: components["schemas"]["CapabilityView"][];
|
|
264
265
|
composer_attachments?: boolean | null;
|
|
265
266
|
composer_voice?: boolean | null;
|
|
266
267
|
connectors_allow_user_mcp?: boolean;
|
|
@@ -285,6 +286,9 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
|
|
|
285
286
|
language_locked?: boolean | null;
|
|
286
287
|
login_fields: ("username" | "email" | "phone")[];
|
|
287
288
|
maintenance: components["schemas"]["MaintenanceNotice"];
|
|
289
|
+
memory_enabled?: boolean;
|
|
290
|
+
memory_include_chat_history?: boolean;
|
|
291
|
+
modes?: components["schemas"]["ChatModeView"][];
|
|
288
292
|
plugins: string[];
|
|
289
293
|
quota_calendar?: ("gregorian" | "persian") | null;
|
|
290
294
|
quota_timezone?: string | null;
|
|
@@ -626,8 +630,93 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
|
|
|
626
630
|
deleteUserMCPConnector: (connectorId: string) => Promise<{
|
|
627
631
|
status: "success";
|
|
628
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
|
+
}>;
|
|
629
715
|
};
|
|
630
716
|
|
|
717
|
+
/** Explicit per-turn capability overrides sent on `POST /chat`. */
|
|
718
|
+
declare type CapabilityOverrides = NonNullable<ChatRequestSchema['capabilities']>;
|
|
719
|
+
|
|
631
720
|
/**
|
|
632
721
|
* A file to send with a message: one uploaded with `uploadAttachment`, as it answered. `file` is
|
|
633
722
|
* the local copy, if there is one, so the message can show the file without downloading it again.
|
|
@@ -1452,6 +1541,10 @@ export declare interface components {
|
|
|
1452
1541
|
AdminThreadItem: {
|
|
1453
1542
|
/** Agent */
|
|
1454
1543
|
agent?: string | null;
|
|
1544
|
+
/** Capabilities */
|
|
1545
|
+
capabilities?: {
|
|
1546
|
+
[key: string]: boolean;
|
|
1547
|
+
} | null;
|
|
1455
1548
|
/**
|
|
1456
1549
|
* Content
|
|
1457
1550
|
* @default
|
|
@@ -1463,6 +1556,8 @@ export declare interface components {
|
|
|
1463
1556
|
feedback?: string | null;
|
|
1464
1557
|
/** Id */
|
|
1465
1558
|
id: string;
|
|
1559
|
+
/** Mode */
|
|
1560
|
+
mode?: string | null;
|
|
1466
1561
|
/**
|
|
1467
1562
|
* Parts
|
|
1468
1563
|
* @default []
|
|
@@ -1572,6 +1667,16 @@ export declare interface components {
|
|
|
1572
1667
|
/** Users */
|
|
1573
1668
|
users: components["schemas"]["AdminUserRow"][];
|
|
1574
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
|
+
};
|
|
1575
1680
|
/** AdminUserRow */
|
|
1576
1681
|
AdminUserRow: {
|
|
1577
1682
|
/** Email */
|
|
@@ -2136,6 +2241,85 @@ export declare interface components {
|
|
|
2136
2241
|
/** At */
|
|
2137
2242
|
at?: string | null;
|
|
2138
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
|
+
};
|
|
2139
2323
|
/**
|
|
2140
2324
|
* ChatFinishedData
|
|
2141
2325
|
* @description The answer is stored. ``title_pending`` says a title is still being written.
|
|
@@ -2194,6 +2378,56 @@ export declare interface components {
|
|
|
2194
2378
|
*/
|
|
2195
2379
|
voice_inputs?: string[] | null;
|
|
2196
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
|
+
};
|
|
2197
2431
|
/**
|
|
2198
2432
|
* ChatRequest
|
|
2199
2433
|
* @description A turn: a new message, or answers to the tool calls the last answer waits on.
|
|
@@ -2204,6 +2438,13 @@ export declare interface components {
|
|
|
2204
2438
|
* @default null
|
|
2205
2439
|
*/
|
|
2206
2440
|
approvals?: components["schemas"]["ToolApprovalInput"][] | null;
|
|
2441
|
+
/**
|
|
2442
|
+
* Capabilities
|
|
2443
|
+
* @default null
|
|
2444
|
+
*/
|
|
2445
|
+
capabilities?: {
|
|
2446
|
+
[key: string]: boolean;
|
|
2447
|
+
} | null;
|
|
2207
2448
|
/**
|
|
2208
2449
|
* External User Id
|
|
2209
2450
|
* @default null
|
|
@@ -2211,6 +2452,11 @@ export declare interface components {
|
|
|
2211
2452
|
external_user_id?: string | null;
|
|
2212
2453
|
/** @default null */
|
|
2213
2454
|
message?: components["schemas"]["ChatMessageInput"] | null;
|
|
2455
|
+
/**
|
|
2456
|
+
* Mode
|
|
2457
|
+
* @default null
|
|
2458
|
+
*/
|
|
2459
|
+
mode?: string | null;
|
|
2214
2460
|
/**
|
|
2215
2461
|
* Options
|
|
2216
2462
|
* @default null
|
|
@@ -3181,6 +3427,135 @@ export declare interface components {
|
|
|
3181
3427
|
/** Title */
|
|
3182
3428
|
title: string | null;
|
|
3183
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
|
+
};
|
|
3184
3559
|
/** MessageFeedbackInput */
|
|
3185
3560
|
MessageFeedbackInput: {
|
|
3186
3561
|
/** Message Id */
|
|
@@ -3526,6 +3901,8 @@ export declare interface components {
|
|
|
3526
3901
|
attachments: components["schemas"]["AttachmentLimits"];
|
|
3527
3902
|
/** Auth Page Enabled */
|
|
3528
3903
|
auth_page_enabled?: boolean | null;
|
|
3904
|
+
/** Capabilities */
|
|
3905
|
+
capabilities?: components["schemas"]["CapabilityView"][];
|
|
3529
3906
|
/** Composer Attachments */
|
|
3530
3907
|
composer_attachments?: boolean | null;
|
|
3531
3908
|
/** Composer Voice */
|
|
@@ -3577,6 +3954,18 @@ export declare interface components {
|
|
|
3577
3954
|
/** Login Fields */
|
|
3578
3955
|
login_fields: ("username" | "email" | "phone")[];
|
|
3579
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"][];
|
|
3580
3969
|
/** Plugins */
|
|
3581
3970
|
plugins: string[];
|
|
3582
3971
|
/** Quota Calendar */
|
|
@@ -4472,6 +4861,10 @@ export declare interface components {
|
|
|
4472
4861
|
* @description A stored message. ``content`` is the plain text it shows; ``parts`` is what it's made of.
|
|
4473
4862
|
*/
|
|
4474
4863
|
ThreadItem: {
|
|
4864
|
+
/** Capabilities */
|
|
4865
|
+
capabilities?: {
|
|
4866
|
+
[key: string]: boolean;
|
|
4867
|
+
} | null;
|
|
4475
4868
|
/**
|
|
4476
4869
|
* Content
|
|
4477
4870
|
* @default
|
|
@@ -4483,6 +4876,8 @@ export declare interface components {
|
|
|
4483
4876
|
feedback?: string | null;
|
|
4484
4877
|
/** Id */
|
|
4485
4878
|
id: string;
|
|
4879
|
+
/** Mode */
|
|
4880
|
+
mode?: string | null;
|
|
4486
4881
|
/**
|
|
4487
4882
|
* Parts
|
|
4488
4883
|
* @default []
|
|
@@ -5205,11 +5600,16 @@ declare interface ComposerDraft {
|
|
|
5205
5600
|
references: readonly ChatReference[];
|
|
5206
5601
|
/** The ids of the transcriptions dictated into `text`, which the message pays for. */
|
|
5207
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>>;
|
|
5208
5607
|
}
|
|
5209
5608
|
|
|
5210
5609
|
/**
|
|
5211
|
-
* The composer's text, quotes and
|
|
5212
|
-
* until its message is sent. Framework-free: React reads it
|
|
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`.
|
|
5213
5613
|
*/
|
|
5214
5614
|
declare interface ComposerDrafts {
|
|
5215
5615
|
/** The scope's draft. The same object until it changes. */
|
|
@@ -5224,8 +5624,12 @@ declare interface ComposerDrafts {
|
|
|
5224
5624
|
removeReference: (scope: string, id: string) => void;
|
|
5225
5625
|
clearReferences: (scope: string) => void;
|
|
5226
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;
|
|
5227
5631
|
/** Empties the scope and returns what it held, as when a message is sent. */
|
|
5228
|
-
take: (scope: string) => ComposerDraft;
|
|
5632
|
+
take: (scope: string, options?: TakeDraftOptions) => ComposerDraft;
|
|
5229
5633
|
/** Clears every scope, as when signing out or disposing the runtime. */
|
|
5230
5634
|
clear: () => void;
|
|
5231
5635
|
}
|
|
@@ -5477,6 +5881,15 @@ declare type LoginField = AppConfigResponse['login_fields'][number];
|
|
|
5477
5881
|
/** Either a synchronous value or a Promise resolving to it. */
|
|
5478
5882
|
declare type MaybePromise<T> = T | Promise<T>;
|
|
5479
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
|
+
|
|
5480
5893
|
/** What the user thought of an answer. */
|
|
5481
5894
|
declare type MessageFeedback = 'like' | 'dislike';
|
|
5482
5895
|
|
|
@@ -8639,9 +9052,13 @@ declare interface operations {
|
|
|
8639
9052
|
};
|
|
8640
9053
|
};
|
|
8641
9054
|
};
|
|
8642
|
-
|
|
9055
|
+
admin_list_user_memories_api_admin_users__user_id__memory_get: {
|
|
8643
9056
|
parameters: {
|
|
8644
|
-
query?:
|
|
9057
|
+
query?: {
|
|
9058
|
+
q?: string | null;
|
|
9059
|
+
limit?: number;
|
|
9060
|
+
cursor?: string | null;
|
|
9061
|
+
};
|
|
8645
9062
|
header?: never;
|
|
8646
9063
|
path: {
|
|
8647
9064
|
user_id: string;
|
|
@@ -8656,7 +9073,7 @@ declare interface operations {
|
|
|
8656
9073
|
[name: string]: unknown;
|
|
8657
9074
|
};
|
|
8658
9075
|
content: {
|
|
8659
|
-
"application/json": components["schemas"]["
|
|
9076
|
+
"application/json": components["schemas"]["AdminUserMemoryResponse"];
|
|
8660
9077
|
};
|
|
8661
9078
|
};
|
|
8662
9079
|
/** @description Client Error */
|
|
@@ -8679,21 +9096,16 @@ declare interface operations {
|
|
|
8679
9096
|
};
|
|
8680
9097
|
};
|
|
8681
9098
|
};
|
|
8682
|
-
|
|
9099
|
+
admin_clear_user_memories_api_admin_users__user_id__memory_delete: {
|
|
8683
9100
|
parameters: {
|
|
8684
9101
|
query?: never;
|
|
8685
9102
|
header?: never;
|
|
8686
9103
|
path: {
|
|
8687
9104
|
user_id: string;
|
|
8688
|
-
external_id: string;
|
|
8689
9105
|
};
|
|
8690
9106
|
cookie?: never;
|
|
8691
9107
|
};
|
|
8692
|
-
requestBody?:
|
|
8693
|
-
content: {
|
|
8694
|
-
"application/json": components["schemas"]["CancelSubscriptionInput"] | null;
|
|
8695
|
-
};
|
|
8696
|
-
};
|
|
9108
|
+
requestBody?: never;
|
|
8697
9109
|
responses: {
|
|
8698
9110
|
/** @description Successful Response */
|
|
8699
9111
|
200: {
|
|
@@ -8701,7 +9113,7 @@ declare interface operations {
|
|
|
8701
9113
|
[name: string]: unknown;
|
|
8702
9114
|
};
|
|
8703
9115
|
content: {
|
|
8704
|
-
"application/json": components["schemas"]["
|
|
9116
|
+
"application/json": components["schemas"]["MemoryClearResponse"];
|
|
8705
9117
|
};
|
|
8706
9118
|
};
|
|
8707
9119
|
/** @description Client Error */
|
|
@@ -8724,20 +9136,17 @@ declare interface operations {
|
|
|
8724
9136
|
};
|
|
8725
9137
|
};
|
|
8726
9138
|
};
|
|
8727
|
-
|
|
9139
|
+
admin_delete_user_memory_api_admin_users__user_id__memory__memory_id__delete: {
|
|
8728
9140
|
parameters: {
|
|
8729
9141
|
query?: never;
|
|
8730
9142
|
header?: never;
|
|
8731
9143
|
path: {
|
|
8732
9144
|
user_id: string;
|
|
9145
|
+
memory_id: string;
|
|
8733
9146
|
};
|
|
8734
9147
|
cookie?: never;
|
|
8735
9148
|
};
|
|
8736
|
-
requestBody
|
|
8737
|
-
content: {
|
|
8738
|
-
"application/json": components["schemas"]["UsageResetInput"];
|
|
8739
|
-
};
|
|
8740
|
-
};
|
|
9149
|
+
requestBody?: never;
|
|
8741
9150
|
responses: {
|
|
8742
9151
|
/** @description Successful Response */
|
|
8743
9152
|
200: {
|
|
@@ -8745,7 +9154,7 @@ declare interface operations {
|
|
|
8745
9154
|
[name: string]: unknown;
|
|
8746
9155
|
};
|
|
8747
9156
|
content: {
|
|
8748
|
-
"application/json": components["schemas"]["
|
|
9157
|
+
"application/json": components["schemas"]["StatusResponse"];
|
|
8749
9158
|
};
|
|
8750
9159
|
};
|
|
8751
9160
|
/** @description Client Error */
|
|
@@ -8768,18 +9177,16 @@ declare interface operations {
|
|
|
8768
9177
|
};
|
|
8769
9178
|
};
|
|
8770
9179
|
};
|
|
8771
|
-
|
|
9180
|
+
refresh_user_token_api_admin_users__user_id__refresh_token_post: {
|
|
8772
9181
|
parameters: {
|
|
8773
9182
|
query?: never;
|
|
8774
9183
|
header?: never;
|
|
8775
|
-
path
|
|
8776
|
-
|
|
8777
|
-
};
|
|
8778
|
-
requestBody: {
|
|
8779
|
-
content: {
|
|
8780
|
-
"application/json": components["schemas"]["LoginCodeExchangeInput"];
|
|
9184
|
+
path: {
|
|
9185
|
+
user_id: string;
|
|
8781
9186
|
};
|
|
9187
|
+
cookie?: never;
|
|
8782
9188
|
};
|
|
9189
|
+
requestBody?: never;
|
|
8783
9190
|
responses: {
|
|
8784
9191
|
/** @description Successful Response */
|
|
8785
9192
|
200: {
|
|
@@ -8787,7 +9194,7 @@ declare interface operations {
|
|
|
8787
9194
|
[name: string]: unknown;
|
|
8788
9195
|
};
|
|
8789
9196
|
content: {
|
|
8790
|
-
"application/json": components["schemas"]["
|
|
9197
|
+
"application/json": components["schemas"]["TokenRefreshResponse"];
|
|
8791
9198
|
};
|
|
8792
9199
|
};
|
|
8793
9200
|
/** @description Client Error */
|
|
@@ -8810,21 +9217,30 @@ declare interface operations {
|
|
|
8810
9217
|
};
|
|
8811
9218
|
};
|
|
8812
9219
|
};
|
|
8813
|
-
|
|
9220
|
+
cancel_user_subscription_api_admin_users__user_id__subscriptions__external_id__cancel_post: {
|
|
8814
9221
|
parameters: {
|
|
8815
9222
|
query?: never;
|
|
8816
9223
|
header?: never;
|
|
8817
|
-
path
|
|
9224
|
+
path: {
|
|
9225
|
+
user_id: string;
|
|
9226
|
+
external_id: string;
|
|
9227
|
+
};
|
|
8818
9228
|
cookie?: never;
|
|
8819
9229
|
};
|
|
8820
|
-
requestBody?:
|
|
9230
|
+
requestBody?: {
|
|
9231
|
+
content: {
|
|
9232
|
+
"application/json": components["schemas"]["CancelSubscriptionInput"] | null;
|
|
9233
|
+
};
|
|
9234
|
+
};
|
|
8821
9235
|
responses: {
|
|
8822
9236
|
/** @description Successful Response */
|
|
8823
|
-
|
|
9237
|
+
200: {
|
|
8824
9238
|
headers: {
|
|
8825
9239
|
[name: string]: unknown;
|
|
8826
9240
|
};
|
|
8827
|
-
content
|
|
9241
|
+
content: {
|
|
9242
|
+
"application/json": components["schemas"]["SubscriptionCancelResponse"];
|
|
9243
|
+
};
|
|
8828
9244
|
};
|
|
8829
9245
|
/** @description Client Error */
|
|
8830
9246
|
"4XX": {
|
|
@@ -8846,26 +9262,28 @@ declare interface operations {
|
|
|
8846
9262
|
};
|
|
8847
9263
|
};
|
|
8848
9264
|
};
|
|
8849
|
-
|
|
9265
|
+
reset_usage_window_api_admin_users__user_id__usage_reset_post: {
|
|
8850
9266
|
parameters: {
|
|
8851
9267
|
query?: never;
|
|
8852
9268
|
header?: never;
|
|
8853
|
-
path
|
|
9269
|
+
path: {
|
|
9270
|
+
user_id: string;
|
|
9271
|
+
};
|
|
8854
9272
|
cookie?: never;
|
|
8855
9273
|
};
|
|
8856
9274
|
requestBody: {
|
|
8857
9275
|
content: {
|
|
8858
|
-
"application/json": components["schemas"]["
|
|
9276
|
+
"application/json": components["schemas"]["UsageResetInput"];
|
|
8859
9277
|
};
|
|
8860
9278
|
};
|
|
8861
9279
|
responses: {
|
|
8862
|
-
/** @description
|
|
9280
|
+
/** @description Successful Response */
|
|
8863
9281
|
200: {
|
|
8864
9282
|
headers: {
|
|
8865
9283
|
[name: string]: unknown;
|
|
8866
9284
|
};
|
|
8867
9285
|
content: {
|
|
8868
|
-
"
|
|
9286
|
+
"application/json": components["schemas"]["AdminEntitlement"];
|
|
8869
9287
|
};
|
|
8870
9288
|
};
|
|
8871
9289
|
/** @description Client Error */
|
|
@@ -8888,19 +9306,16 @@ declare interface operations {
|
|
|
8888
9306
|
};
|
|
8889
9307
|
};
|
|
8890
9308
|
};
|
|
8891
|
-
|
|
9309
|
+
exchange_login_code_api_auth_exchange_post: {
|
|
8892
9310
|
parameters: {
|
|
8893
|
-
query
|
|
8894
|
-
filename: string;
|
|
8895
|
-
};
|
|
9311
|
+
query?: never;
|
|
8896
9312
|
header?: never;
|
|
8897
9313
|
path?: never;
|
|
8898
9314
|
cookie?: never;
|
|
8899
9315
|
};
|
|
8900
|
-
/** @description The file itself, with its media type as the `Content-Type`. */
|
|
8901
9316
|
requestBody: {
|
|
8902
9317
|
content: {
|
|
8903
|
-
"application/
|
|
9318
|
+
"application/json": components["schemas"]["LoginCodeExchangeInput"];
|
|
8904
9319
|
};
|
|
8905
9320
|
};
|
|
8906
9321
|
responses: {
|
|
@@ -8910,7 +9325,7 @@ declare interface operations {
|
|
|
8910
9325
|
[name: string]: unknown;
|
|
8911
9326
|
};
|
|
8912
9327
|
content: {
|
|
8913
|
-
"application/json": components["schemas"]["
|
|
9328
|
+
"application/json": components["schemas"]["LoginCodeExchangeResponse"];
|
|
8914
9329
|
};
|
|
8915
9330
|
};
|
|
8916
9331
|
/** @description Client Error */
|
|
@@ -8933,25 +9348,148 @@ declare interface operations {
|
|
|
8933
9348
|
};
|
|
8934
9349
|
};
|
|
8935
9350
|
};
|
|
8936
|
-
|
|
9351
|
+
logout_api_auth_logout_post: {
|
|
8937
9352
|
parameters: {
|
|
8938
9353
|
query?: never;
|
|
8939
9354
|
header?: never;
|
|
8940
|
-
path
|
|
8941
|
-
attachment_id: string;
|
|
8942
|
-
};
|
|
9355
|
+
path?: never;
|
|
8943
9356
|
cookie?: never;
|
|
8944
9357
|
};
|
|
8945
9358
|
requestBody?: never;
|
|
8946
9359
|
responses: {
|
|
8947
|
-
/** @description
|
|
8948
|
-
|
|
9360
|
+
/** @description Successful Response */
|
|
9361
|
+
204: {
|
|
8949
9362
|
headers: {
|
|
8950
9363
|
[name: string]: unknown;
|
|
8951
9364
|
};
|
|
8952
|
-
content
|
|
8953
|
-
|
|
8954
|
-
|
|
9365
|
+
content?: never;
|
|
9366
|
+
};
|
|
9367
|
+
/** @description Client Error */
|
|
9368
|
+
"4XX": {
|
|
9369
|
+
headers: {
|
|
9370
|
+
[name: string]: unknown;
|
|
9371
|
+
};
|
|
9372
|
+
content: {
|
|
9373
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
9374
|
+
};
|
|
9375
|
+
};
|
|
9376
|
+
/** @description Server Error */
|
|
9377
|
+
"5XX": {
|
|
9378
|
+
headers: {
|
|
9379
|
+
[name: string]: unknown;
|
|
9380
|
+
};
|
|
9381
|
+
content: {
|
|
9382
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
9383
|
+
};
|
|
9384
|
+
};
|
|
9385
|
+
};
|
|
9386
|
+
};
|
|
9387
|
+
chat_api_chat_post: {
|
|
9388
|
+
parameters: {
|
|
9389
|
+
query?: never;
|
|
9390
|
+
header?: never;
|
|
9391
|
+
path?: never;
|
|
9392
|
+
cookie?: never;
|
|
9393
|
+
};
|
|
9394
|
+
requestBody: {
|
|
9395
|
+
content: {
|
|
9396
|
+
"application/json": components["schemas"]["ChatRequest"];
|
|
9397
|
+
};
|
|
9398
|
+
};
|
|
9399
|
+
responses: {
|
|
9400
|
+
/** @description The reply, as a Vercel AI SDK UI message stream. Its `data-*` parts are these. */
|
|
9401
|
+
200: {
|
|
9402
|
+
headers: {
|
|
9403
|
+
[name: string]: unknown;
|
|
9404
|
+
};
|
|
9405
|
+
content: {
|
|
9406
|
+
"text/event-stream": components["schemas"]["ChatStreamData"];
|
|
9407
|
+
};
|
|
9408
|
+
};
|
|
9409
|
+
/** @description Client Error */
|
|
9410
|
+
"4XX": {
|
|
9411
|
+
headers: {
|
|
9412
|
+
[name: string]: unknown;
|
|
9413
|
+
};
|
|
9414
|
+
content: {
|
|
9415
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
9416
|
+
};
|
|
9417
|
+
};
|
|
9418
|
+
/** @description Server Error */
|
|
9419
|
+
"5XX": {
|
|
9420
|
+
headers: {
|
|
9421
|
+
[name: string]: unknown;
|
|
9422
|
+
};
|
|
9423
|
+
content: {
|
|
9424
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
9425
|
+
};
|
|
9426
|
+
};
|
|
9427
|
+
};
|
|
9428
|
+
};
|
|
9429
|
+
upload_attachment_api_chat_attachments_post: {
|
|
9430
|
+
parameters: {
|
|
9431
|
+
query: {
|
|
9432
|
+
filename: string;
|
|
9433
|
+
};
|
|
9434
|
+
header?: never;
|
|
9435
|
+
path?: never;
|
|
9436
|
+
cookie?: never;
|
|
9437
|
+
};
|
|
9438
|
+
/** @description The file itself, with its media type as the `Content-Type`. */
|
|
9439
|
+
requestBody: {
|
|
9440
|
+
content: {
|
|
9441
|
+
"application/octet-stream": string;
|
|
9442
|
+
};
|
|
9443
|
+
};
|
|
9444
|
+
responses: {
|
|
9445
|
+
/** @description Successful Response */
|
|
9446
|
+
200: {
|
|
9447
|
+
headers: {
|
|
9448
|
+
[name: string]: unknown;
|
|
9449
|
+
};
|
|
9450
|
+
content: {
|
|
9451
|
+
"application/json": components["schemas"]["AttachmentUpload"];
|
|
9452
|
+
};
|
|
9453
|
+
};
|
|
9454
|
+
/** @description Client Error */
|
|
9455
|
+
"4XX": {
|
|
9456
|
+
headers: {
|
|
9457
|
+
[name: string]: unknown;
|
|
9458
|
+
};
|
|
9459
|
+
content: {
|
|
9460
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
9461
|
+
};
|
|
9462
|
+
};
|
|
9463
|
+
/** @description Server Error */
|
|
9464
|
+
"5XX": {
|
|
9465
|
+
headers: {
|
|
9466
|
+
[name: string]: unknown;
|
|
9467
|
+
};
|
|
9468
|
+
content: {
|
|
9469
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
9470
|
+
};
|
|
9471
|
+
};
|
|
9472
|
+
};
|
|
9473
|
+
};
|
|
9474
|
+
get_attachment_api_chat_attachments__attachment_id__get: {
|
|
9475
|
+
parameters: {
|
|
9476
|
+
query?: never;
|
|
9477
|
+
header?: never;
|
|
9478
|
+
path: {
|
|
9479
|
+
attachment_id: string;
|
|
9480
|
+
};
|
|
9481
|
+
cookie?: never;
|
|
9482
|
+
};
|
|
9483
|
+
requestBody?: never;
|
|
9484
|
+
responses: {
|
|
9485
|
+
/** @description The file, with the media type it was stored with */
|
|
9486
|
+
200: {
|
|
9487
|
+
headers: {
|
|
9488
|
+
[name: string]: unknown;
|
|
9489
|
+
};
|
|
9490
|
+
content: {
|
|
9491
|
+
"application/octet-stream": unknown;
|
|
9492
|
+
};
|
|
8955
9493
|
};
|
|
8956
9494
|
/** @description Client Error */
|
|
8957
9495
|
"4XX": {
|
|
@@ -10200,6 +10738,297 @@ declare interface operations {
|
|
|
10200
10738
|
};
|
|
10201
10739
|
};
|
|
10202
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 */
|
|
10799
|
+
201: {
|
|
10800
|
+
headers: {
|
|
10801
|
+
[name: string]: unknown;
|
|
10802
|
+
};
|
|
10803
|
+
content: {
|
|
10804
|
+
"application/json": components["schemas"]["MemoryView"];
|
|
10805
|
+
};
|
|
10806
|
+
};
|
|
10807
|
+
/** @description Client Error */
|
|
10808
|
+
"4XX": {
|
|
10809
|
+
headers: {
|
|
10810
|
+
[name: string]: unknown;
|
|
10811
|
+
};
|
|
10812
|
+
content: {
|
|
10813
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
10814
|
+
};
|
|
10815
|
+
};
|
|
10816
|
+
/** @description Server Error */
|
|
10817
|
+
"5XX": {
|
|
10818
|
+
headers: {
|
|
10819
|
+
[name: string]: unknown;
|
|
10820
|
+
};
|
|
10821
|
+
content: {
|
|
10822
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
10823
|
+
};
|
|
10824
|
+
};
|
|
10825
|
+
};
|
|
10826
|
+
};
|
|
10827
|
+
clear_memories_api_memory_delete: {
|
|
10828
|
+
parameters: {
|
|
10829
|
+
query?: {
|
|
10830
|
+
scope_kind?: string | null;
|
|
10831
|
+
scope_id?: string | null;
|
|
10832
|
+
};
|
|
10833
|
+
header?: never;
|
|
10834
|
+
path?: never;
|
|
10835
|
+
cookie?: never;
|
|
10836
|
+
};
|
|
10837
|
+
requestBody?: never;
|
|
10838
|
+
responses: {
|
|
10839
|
+
/** @description Successful Response */
|
|
10840
|
+
200: {
|
|
10841
|
+
headers: {
|
|
10842
|
+
[name: string]: unknown;
|
|
10843
|
+
};
|
|
10844
|
+
content: {
|
|
10845
|
+
"application/json": components["schemas"]["MemoryClearResponse"];
|
|
10846
|
+
};
|
|
10847
|
+
};
|
|
10848
|
+
/** @description Client Error */
|
|
10849
|
+
"4XX": {
|
|
10850
|
+
headers: {
|
|
10851
|
+
[name: string]: unknown;
|
|
10852
|
+
};
|
|
10853
|
+
content: {
|
|
10854
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
10855
|
+
};
|
|
10856
|
+
};
|
|
10857
|
+
/** @description Server Error */
|
|
10858
|
+
"5XX": {
|
|
10859
|
+
headers: {
|
|
10860
|
+
[name: string]: unknown;
|
|
10861
|
+
};
|
|
10862
|
+
content: {
|
|
10863
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
10864
|
+
};
|
|
10865
|
+
};
|
|
10866
|
+
};
|
|
10867
|
+
};
|
|
10868
|
+
get_memory_settings_api_memory_settings_get: {
|
|
10869
|
+
parameters: {
|
|
10870
|
+
query?: never;
|
|
10871
|
+
header?: never;
|
|
10872
|
+
path?: never;
|
|
10873
|
+
cookie?: never;
|
|
10874
|
+
};
|
|
10875
|
+
requestBody?: never;
|
|
10876
|
+
responses: {
|
|
10877
|
+
/** @description Successful Response */
|
|
10878
|
+
200: {
|
|
10879
|
+
headers: {
|
|
10880
|
+
[name: string]: unknown;
|
|
10881
|
+
};
|
|
10882
|
+
content: {
|
|
10883
|
+
"application/json": components["schemas"]["MemorySettingsView"];
|
|
10884
|
+
};
|
|
10885
|
+
};
|
|
10886
|
+
/** @description Client Error */
|
|
10887
|
+
"4XX": {
|
|
10888
|
+
headers: {
|
|
10889
|
+
[name: string]: unknown;
|
|
10890
|
+
};
|
|
10891
|
+
content: {
|
|
10892
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
10893
|
+
};
|
|
10894
|
+
};
|
|
10895
|
+
/** @description Server Error */
|
|
10896
|
+
"5XX": {
|
|
10897
|
+
headers: {
|
|
10898
|
+
[name: string]: unknown;
|
|
10899
|
+
};
|
|
10900
|
+
content: {
|
|
10901
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
10902
|
+
};
|
|
10903
|
+
};
|
|
10904
|
+
};
|
|
10905
|
+
};
|
|
10906
|
+
update_memory_settings_api_memory_settings_patch: {
|
|
10907
|
+
parameters: {
|
|
10908
|
+
query?: never;
|
|
10909
|
+
header?: never;
|
|
10910
|
+
path?: never;
|
|
10911
|
+
cookie?: never;
|
|
10912
|
+
};
|
|
10913
|
+
requestBody: {
|
|
10914
|
+
content: {
|
|
10915
|
+
"application/json": components["schemas"]["MemorySettingsUpdateInput"];
|
|
10916
|
+
};
|
|
10917
|
+
};
|
|
10918
|
+
responses: {
|
|
10919
|
+
/** @description Successful Response */
|
|
10920
|
+
200: {
|
|
10921
|
+
headers: {
|
|
10922
|
+
[name: string]: unknown;
|
|
10923
|
+
};
|
|
10924
|
+
content: {
|
|
10925
|
+
"application/json": components["schemas"]["MemorySettingsView"];
|
|
10926
|
+
};
|
|
10927
|
+
};
|
|
10928
|
+
/** @description Client Error */
|
|
10929
|
+
"4XX": {
|
|
10930
|
+
headers: {
|
|
10931
|
+
[name: string]: unknown;
|
|
10932
|
+
};
|
|
10933
|
+
content: {
|
|
10934
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
10935
|
+
};
|
|
10936
|
+
};
|
|
10937
|
+
/** @description Server Error */
|
|
10938
|
+
"5XX": {
|
|
10939
|
+
headers: {
|
|
10940
|
+
[name: string]: unknown;
|
|
10941
|
+
};
|
|
10942
|
+
content: {
|
|
10943
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
10944
|
+
};
|
|
10945
|
+
};
|
|
10946
|
+
};
|
|
10947
|
+
};
|
|
10948
|
+
delete_memory_api_memory__memory_id__delete: {
|
|
10949
|
+
parameters: {
|
|
10950
|
+
query?: never;
|
|
10951
|
+
header?: never;
|
|
10952
|
+
path: {
|
|
10953
|
+
memory_id: string;
|
|
10954
|
+
};
|
|
10955
|
+
cookie?: never;
|
|
10956
|
+
};
|
|
10957
|
+
requestBody?: never;
|
|
10958
|
+
responses: {
|
|
10959
|
+
/** @description Successful Response */
|
|
10960
|
+
200: {
|
|
10961
|
+
headers: {
|
|
10962
|
+
[name: string]: unknown;
|
|
10963
|
+
};
|
|
10964
|
+
content: {
|
|
10965
|
+
"application/json": components["schemas"]["StatusResponse"];
|
|
10966
|
+
};
|
|
10967
|
+
};
|
|
10968
|
+
/** @description Client Error */
|
|
10969
|
+
"4XX": {
|
|
10970
|
+
headers: {
|
|
10971
|
+
[name: string]: unknown;
|
|
10972
|
+
};
|
|
10973
|
+
content: {
|
|
10974
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
10975
|
+
};
|
|
10976
|
+
};
|
|
10977
|
+
/** @description Server Error */
|
|
10978
|
+
"5XX": {
|
|
10979
|
+
headers: {
|
|
10980
|
+
[name: string]: unknown;
|
|
10981
|
+
};
|
|
10982
|
+
content: {
|
|
10983
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
10984
|
+
};
|
|
10985
|
+
};
|
|
10986
|
+
};
|
|
10987
|
+
};
|
|
10988
|
+
update_memory_api_memory__memory_id__patch: {
|
|
10989
|
+
parameters: {
|
|
10990
|
+
query?: never;
|
|
10991
|
+
header?: never;
|
|
10992
|
+
path: {
|
|
10993
|
+
memory_id: string;
|
|
10994
|
+
};
|
|
10995
|
+
cookie?: never;
|
|
10996
|
+
};
|
|
10997
|
+
requestBody: {
|
|
10998
|
+
content: {
|
|
10999
|
+
"application/json": components["schemas"]["MemoryUpdateInput"];
|
|
11000
|
+
};
|
|
11001
|
+
};
|
|
11002
|
+
responses: {
|
|
11003
|
+
/** @description Successful Response */
|
|
11004
|
+
200: {
|
|
11005
|
+
headers: {
|
|
11006
|
+
[name: string]: unknown;
|
|
11007
|
+
};
|
|
11008
|
+
content: {
|
|
11009
|
+
"application/json": components["schemas"]["MemoryView"];
|
|
11010
|
+
};
|
|
11011
|
+
};
|
|
11012
|
+
/** @description Client Error */
|
|
11013
|
+
"4XX": {
|
|
11014
|
+
headers: {
|
|
11015
|
+
[name: string]: unknown;
|
|
11016
|
+
};
|
|
11017
|
+
content: {
|
|
11018
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
11019
|
+
};
|
|
11020
|
+
};
|
|
11021
|
+
/** @description Server Error */
|
|
11022
|
+
"5XX": {
|
|
11023
|
+
headers: {
|
|
11024
|
+
[name: string]: unknown;
|
|
11025
|
+
};
|
|
11026
|
+
content: {
|
|
11027
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
11028
|
+
};
|
|
11029
|
+
};
|
|
11030
|
+
};
|
|
11031
|
+
};
|
|
10203
11032
|
public_login_api_public_auth_login_post: {
|
|
10204
11033
|
parameters: {
|
|
10205
11034
|
query?: never;
|
|
@@ -12391,6 +13220,50 @@ declare interface paths {
|
|
|
12391
13220
|
patch?: never;
|
|
12392
13221
|
trace?: never;
|
|
12393
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
|
+
};
|
|
12394
13267
|
"/api/admin/users/{user_id}/refresh-token": {
|
|
12395
13268
|
parameters: {
|
|
12396
13269
|
query?: never;
|
|
@@ -13117,6 +13990,82 @@ declare interface paths {
|
|
|
13117
13990
|
patch?: never;
|
|
13118
13991
|
trace?: never;
|
|
13119
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
|
+
};
|
|
13120
14069
|
"/api/public/auth/login": {
|
|
13121
14070
|
parameters: {
|
|
13122
14071
|
query?: never;
|
|
@@ -13578,6 +14527,10 @@ declare interface SendInput {
|
|
|
13578
14527
|
references?: ReferenceData[];
|
|
13579
14528
|
/** The ids of the transcriptions the message was dictated with, which the turn pays for. */
|
|
13580
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;
|
|
13581
14534
|
}
|
|
13582
14535
|
|
|
13583
14536
|
/**
|
|
@@ -13603,6 +14556,13 @@ declare type Success<O> = O extends {
|
|
|
13603
14556
|
responses: infer R;
|
|
13604
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;
|
|
13605
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
|
+
|
|
13606
14566
|
/**
|
|
13607
14567
|
* One thread's transcript, status and turn in flight, without React or a DOM.
|
|
13608
14568
|
*
|