@gentiq/core 1.0.0-alpha.9 → 1.0.0-beta.1

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.
@@ -1,9 +1,6 @@
1
1
  import { FileUIPart } from 'ai';
2
2
  import { UIMessage } from 'ai';
3
3
 
4
- /** `day` moved by `delta` months, clamped to the target month's length. */
5
- export declare function addMonths(calendar: CalendarSystem, { year, month, day }: CalendarDay, delta: number): CalendarDay;
6
-
7
4
  /** How a {@link GentiqApi} reaches the backend. */
8
5
  declare interface ApiConfig {
9
6
  /** Where the backend's API is mounted. Defaults to `/api`. */
@@ -28,12 +25,6 @@ declare interface ApiConfig {
28
25
  /** The public `/config`: the admin's overrides plus what the server decides. */
29
26
  declare type AppConfigResponse = Schemas['PublicConfig'];
30
27
 
31
- /** Which files users may attach: media types (`type/*` for a whole type) and the largest size in bytes. */
32
- declare type AttachmentLimits = Schemas['AttachmentLimits'];
33
-
34
- /** Why a file can't be attached, before it's uploaded. */
35
- declare type AttachmentRejection = 'unsupported_type' | 'too_large';
36
-
37
28
  /** Turns an attachment id into a URL the browser can load. */
38
29
  declare type AttachmentResolver = (attachmentId: string) => Promise<string>;
39
30
 
@@ -267,6 +258,8 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
267
258
  auth_page_enabled?: boolean | null;
268
259
  composer_attachments?: boolean | null;
269
260
  composer_voice?: boolean | null;
261
+ connectors_allow_user_mcp?: boolean;
262
+ connectors_enabled?: boolean;
270
263
  credits_meter?: ("messages" | "tokens" | "cost") | null;
271
264
  default_accent?: string | null;
272
265
  default_access?: ("unlimited" | "plan" | "credits") | null;
@@ -290,6 +283,7 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
290
283
  plugins: string[];
291
284
  quota_calendar?: ("gregorian" | "persian") | null;
292
285
  quota_timezone?: string | null;
286
+ schedules_enabled?: boolean;
293
287
  settings_account_fields?: {
294
288
  [key: string]: string;
295
289
  };
@@ -309,6 +303,8 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
309
303
  show_usage_details?: boolean | null;
310
304
  show_version_in_settings?: boolean | null;
311
305
  show_welcome_glow?: boolean | null;
306
+ sidebar_show_connectors?: boolean | null;
307
+ sidebar_show_schedules?: boolean | null;
312
308
  signup_enabled?: boolean | null;
313
309
  thread_actions_edit?: boolean | null;
314
310
  thread_actions_feedback?: boolean | null;
@@ -323,6 +319,8 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
323
319
  week_start?: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday") | null;
324
320
  welcome_greeting?: string | null;
325
321
  welcome_subtitle?: string | null;
322
+ } & {
323
+ [key: string]: unknown;
326
324
  }>;
327
325
  /** Whether the service is under maintenance. Public; polled by `useGentiqStatus`. */
328
326
  getStatus: (signal?: AbortSignal) => Promise<{
@@ -340,34 +338,291 @@ declare function buildApi(http: HttpClient, auth: ResolvedAuthAdapter, options:
340
338
  status: "open" | "resolved";
341
339
  subject: string;
342
340
  }>;
341
+ /** List all scheduled tasks belonging to the current user. */
342
+ listSchedules: (signal?: AbortSignal) => Promise<{
343
+ max_schedules: number;
344
+ schedules: components["schemas"]["ScheduleView"][];
345
+ }>;
346
+ /** Create a new scheduled task for the current user. */
347
+ createSchedule: (data: ScheduleCreateInput) => Promise<{
348
+ consecutive_failures?: number;
349
+ created_at: string;
350
+ cron?: string | null;
351
+ enabled: boolean;
352
+ expires_at?: string | null;
353
+ id: string;
354
+ interval_minutes?: number | null;
355
+ kind: "once" | "cron" | "interval";
356
+ last_run_at?: string | null;
357
+ last_run_status?: ("running" | "completed" | "skipped_quiet" | "failed" | "timeout") | null;
358
+ last_run_thread_id?: string | null;
359
+ max_runs?: number | null;
360
+ name: string;
361
+ next_run_at?: string | null;
362
+ pause_reason?: ("user" | "completed" | "quota_exceeded" | "consecutive_failures" | "admin") | null;
363
+ prompt: string;
364
+ run_at?: string | null;
365
+ run_count?: number;
366
+ silent_if_empty: boolean;
367
+ thread_id?: string | null;
368
+ thread_mode: "shared" | "new";
369
+ timezone: string;
370
+ updated_at: string;
371
+ user_id: string;
372
+ }>;
373
+ /** Fetch a single scheduled task by id. */
374
+ getSchedule: (scheduleId: string, signal?: AbortSignal) => Promise<{
375
+ consecutive_failures?: number;
376
+ created_at: string;
377
+ cron?: string | null;
378
+ enabled: boolean;
379
+ expires_at?: string | null;
380
+ id: string;
381
+ interval_minutes?: number | null;
382
+ kind: "once" | "cron" | "interval";
383
+ last_run_at?: string | null;
384
+ last_run_status?: ("running" | "completed" | "skipped_quiet" | "failed" | "timeout") | null;
385
+ last_run_thread_id?: string | null;
386
+ max_runs?: number | null;
387
+ name: string;
388
+ next_run_at?: string | null;
389
+ pause_reason?: ("user" | "completed" | "quota_exceeded" | "consecutive_failures" | "admin") | null;
390
+ prompt: string;
391
+ run_at?: string | null;
392
+ run_count?: number;
393
+ silent_if_empty: boolean;
394
+ thread_id?: string | null;
395
+ thread_mode: "shared" | "new";
396
+ timezone: string;
397
+ updated_at: string;
398
+ user_id: string;
399
+ }>;
400
+ /** Update an existing scheduled task. */
401
+ updateSchedule: (scheduleId: string, data: ScheduleUpdateInput) => Promise<{
402
+ consecutive_failures?: number;
403
+ created_at: string;
404
+ cron?: string | null;
405
+ enabled: boolean;
406
+ expires_at?: string | null;
407
+ id: string;
408
+ interval_minutes?: number | null;
409
+ kind: "once" | "cron" | "interval";
410
+ last_run_at?: string | null;
411
+ last_run_status?: ("running" | "completed" | "skipped_quiet" | "failed" | "timeout") | null;
412
+ last_run_thread_id?: string | null;
413
+ max_runs?: number | null;
414
+ name: string;
415
+ next_run_at?: string | null;
416
+ pause_reason?: ("user" | "completed" | "quota_exceeded" | "consecutive_failures" | "admin") | null;
417
+ prompt: string;
418
+ run_at?: string | null;
419
+ run_count?: number;
420
+ silent_if_empty: boolean;
421
+ thread_id?: string | null;
422
+ thread_mode: "shared" | "new";
423
+ timezone: string;
424
+ updated_at: string;
425
+ user_id: string;
426
+ }>;
427
+ /** Delete a scheduled task and its run history. */
428
+ deleteSchedule: (scheduleId: string) => Promise<{
429
+ status: "success";
430
+ }>;
431
+ /** Pause an active scheduled task. */
432
+ pauseSchedule: (scheduleId: string) => Promise<{
433
+ consecutive_failures?: number;
434
+ created_at: string;
435
+ cron?: string | null;
436
+ enabled: boolean;
437
+ expires_at?: string | null;
438
+ id: string;
439
+ interval_minutes?: number | null;
440
+ kind: "once" | "cron" | "interval";
441
+ last_run_at?: string | null;
442
+ last_run_status?: ("running" | "completed" | "skipped_quiet" | "failed" | "timeout") | null;
443
+ last_run_thread_id?: string | null;
444
+ max_runs?: number | null;
445
+ name: string;
446
+ next_run_at?: string | null;
447
+ pause_reason?: ("user" | "completed" | "quota_exceeded" | "consecutive_failures" | "admin") | null;
448
+ prompt: string;
449
+ run_at?: string | null;
450
+ run_count?: number;
451
+ silent_if_empty: boolean;
452
+ thread_id?: string | null;
453
+ thread_mode: "shared" | "new";
454
+ timezone: string;
455
+ updated_at: string;
456
+ user_id: string;
457
+ }>;
458
+ /** Resume a paused scheduled task. */
459
+ resumeSchedule: (scheduleId: string) => Promise<{
460
+ consecutive_failures?: number;
461
+ created_at: string;
462
+ cron?: string | null;
463
+ enabled: boolean;
464
+ expires_at?: string | null;
465
+ id: string;
466
+ interval_minutes?: number | null;
467
+ kind: "once" | "cron" | "interval";
468
+ last_run_at?: string | null;
469
+ last_run_status?: ("running" | "completed" | "skipped_quiet" | "failed" | "timeout") | null;
470
+ last_run_thread_id?: string | null;
471
+ max_runs?: number | null;
472
+ name: string;
473
+ next_run_at?: string | null;
474
+ pause_reason?: ("user" | "completed" | "quota_exceeded" | "consecutive_failures" | "admin") | null;
475
+ prompt: string;
476
+ run_at?: string | null;
477
+ run_count?: number;
478
+ silent_if_empty: boolean;
479
+ thread_id?: string | null;
480
+ thread_mode: "shared" | "new";
481
+ timezone: string;
482
+ updated_at: string;
483
+ user_id: string;
484
+ }>;
485
+ /** Trigger an immediate run of a scheduled task. */
486
+ runScheduleNow: (scheduleId: string) => Promise<{
487
+ assistant_message_id?: string | null;
488
+ error?: string | null;
489
+ finished_at?: string | null;
490
+ id: string;
491
+ schedule_id: string;
492
+ scheduled_for: string;
493
+ started_at: string;
494
+ status: "running" | "completed" | "skipped_quiet" | "failed" | "timeout";
495
+ summary?: string | null;
496
+ thread_id?: string | null;
497
+ trigger: "scheduled" | "manual";
498
+ turn_id?: string | null;
499
+ user_id: string;
500
+ }>;
501
+ /** List recent runs for a scheduled task. */
502
+ listScheduleRuns: (scheduleId: string, limit?: number, signal?: AbortSignal) => Promise<{
503
+ runs: components["schemas"]["ScheduleRunView"][];
504
+ }>;
505
+ /** List external connectors available to the current user. */
506
+ listConnectors: (signal?: AbortSignal) => Promise<{
507
+ allow_user_mcp: boolean;
508
+ connectors: components["schemas"]["ConnectorView"][];
509
+ max_user_mcp: number;
510
+ }>;
511
+ /** Store an API key for a connector. */
512
+ connectConnector: (connectorId: string, data: ConnectorConnectInput) => Promise<{
513
+ account_label?: string | null;
514
+ allow_unattended: boolean;
515
+ api_key_instructions?: string | null;
516
+ approval: "never" | "writes" | "always";
517
+ auth_kind: "none" | "api_key" | "oauth2";
518
+ connected: boolean;
519
+ description: string;
520
+ enabled: boolean;
521
+ icon?: string | null;
522
+ id: string;
523
+ key: string;
524
+ kind: "python" | "mcp";
525
+ last_error?: string | null;
526
+ last_used_at?: string | null;
527
+ name: string;
528
+ requires_user_credentials: boolean;
529
+ source: "code" | "admin" | "user";
530
+ status: "connected" | "disconnected" | "expired" | "error";
531
+ tool_overrides?: {
532
+ [key: string]: "allow" | "ask" | "deny";
533
+ };
534
+ url?: string | null;
535
+ }>;
536
+ /** Start an OAuth2 authorization flow for a connector. */
537
+ startConnectorOAuth: (connectorId: string, returnPath?: string) => Promise<{
538
+ authorization_url: string;
539
+ }>;
540
+ /** Wipe credentials and disable a connector. */
541
+ disconnectConnector: (connectorId: string) => Promise<{
542
+ account_label?: string | null;
543
+ allow_unattended: boolean;
544
+ api_key_instructions?: string | null;
545
+ approval: "never" | "writes" | "always";
546
+ auth_kind: "none" | "api_key" | "oauth2";
547
+ connected: boolean;
548
+ description: string;
549
+ enabled: boolean;
550
+ icon?: string | null;
551
+ id: string;
552
+ key: string;
553
+ kind: "python" | "mcp";
554
+ last_error?: string | null;
555
+ last_used_at?: string | null;
556
+ name: string;
557
+ requires_user_credentials: boolean;
558
+ source: "code" | "admin" | "user";
559
+ status: "connected" | "disconnected" | "expired" | "error";
560
+ tool_overrides?: {
561
+ [key: string]: "allow" | "ask" | "deny";
562
+ };
563
+ url?: string | null;
564
+ }>;
565
+ /** Enable/disable a connector or update per-tool approval overrides. */
566
+ updateConnector: (connectorId: string, data: ConnectorToggleInput) => Promise<{
567
+ account_label?: string | null;
568
+ allow_unattended: boolean;
569
+ api_key_instructions?: string | null;
570
+ approval: "never" | "writes" | "always";
571
+ auth_kind: "none" | "api_key" | "oauth2";
572
+ connected: boolean;
573
+ description: string;
574
+ enabled: boolean;
575
+ icon?: string | null;
576
+ id: string;
577
+ key: string;
578
+ kind: "python" | "mcp";
579
+ last_error?: string | null;
580
+ last_used_at?: string | null;
581
+ name: string;
582
+ requires_user_credentials: boolean;
583
+ source: "code" | "admin" | "user";
584
+ status: "connected" | "disconnected" | "expired" | "error";
585
+ tool_overrides?: {
586
+ [key: string]: "allow" | "ask" | "deny";
587
+ };
588
+ url?: string | null;
589
+ }>;
590
+ /** List tools discovered from a connected connector. */
591
+ listConnectorTools: (connectorId: string, signal?: AbortSignal) => Promise<{
592
+ connector_id: string;
593
+ tools: components["schemas"]["ConnectorToolView"][];
594
+ }>;
595
+ /** Register a custom remote MCP server for the current user. */
596
+ createUserMCPConnector: (data: UserMCPCreateInput) => Promise<{
597
+ account_label?: string | null;
598
+ allow_unattended: boolean;
599
+ api_key_instructions?: string | null;
600
+ approval: "never" | "writes" | "always";
601
+ auth_kind: "none" | "api_key" | "oauth2";
602
+ connected: boolean;
603
+ description: string;
604
+ enabled: boolean;
605
+ icon?: string | null;
606
+ id: string;
607
+ key: string;
608
+ kind: "python" | "mcp";
609
+ last_error?: string | null;
610
+ last_used_at?: string | null;
611
+ name: string;
612
+ requires_user_credentials: boolean;
613
+ source: "code" | "admin" | "user";
614
+ status: "connected" | "disconnected" | "expired" | "error";
615
+ tool_overrides?: {
616
+ [key: string]: "allow" | "ask" | "deny";
617
+ };
618
+ url?: string | null;
619
+ }>;
620
+ /** Delete a user-owned custom remote MCP server. */
621
+ deleteUserMCPConnector: (connectorId: string) => Promise<{
622
+ status: "success";
623
+ }>;
343
624
  };
344
625
 
345
- /**
346
- * Day arithmetic in the calendars the UI offers for picking dates: Gregorian and the
347
- * Solar Hijri (Jalali) calendar Persian readers use.
348
- *
349
- * `Intl` can *display* a date in the Persian calendar but cannot turn a Persian date back
350
- * into an instant, which a date picker has to. The Jalali conversion below is the
351
- * Borkowski algorithm as published in jalaali-js (MIT), valid for Jalali years -61 to 3177.
352
- */
353
- /** A day in some calendar. `month` is 1-based. */
354
- export declare interface CalendarDay {
355
- year: number;
356
- month: number;
357
- day: number;
358
- }
359
-
360
- export declare type CalendarKind = 'gregory' | 'persian';
361
-
362
- declare interface CalendarSystem {
363
- kind: CalendarKind;
364
- /** The day `date` falls on, in the browser's own timezone. */
365
- fromDate: (date: Date) => CalendarDay;
366
- /** That day at `hours`:`minutes`, in the browser's own timezone. */
367
- toDate: (day: CalendarDay, hours?: number, minutes?: number) => Date;
368
- daysInMonth: (year: number, month: number) => number;
369
- }
370
-
371
626
  /**
372
627
  * A file to send with a message: one uploaded with `uploadAttachment`, as it answered. `file` is
373
628
  * the local copy, if there is one, so the message can show the file without downloading it again.
@@ -386,7 +641,7 @@ declare interface ChatReference {
386
641
  /** Unique ID for this reference instance. */
387
642
  id: string;
388
643
  /** Reference source type. */
389
- kind: 'text' | 'card' | 'tool' | 'file' | string;
644
+ kind: 'text' | 'card' | 'tool' | 'file' | (string & {});
390
645
  /** Source message ID, when the source belongs to a chat message. */
391
646
  messageId?: string;
392
647
  /** Source part index, when the source belongs to a message part. */
@@ -405,6 +660,7 @@ declare interface ChatReference {
405
660
  metadata?: Record<string, unknown>;
406
661
  }
407
662
 
663
+ /** Input passed when adding a reference to the composer; `id` is generated when omitted. */
408
664
  declare type ChatReferenceInput = Omit<ChatReference, 'id'> & {
409
665
  id?: string;
410
666
  };
@@ -443,6 +699,8 @@ export declare interface ChatRuntime {
443
699
  subscribeThreads: (listener: () => void) => () => void;
444
700
  /** Call `listener` on each of the runtime's events. Returns a function that stops listening. */
445
701
  onEvent: (listener: (event: ChatRuntimeEvent) => void) => () => void;
702
+ /** Stops every turn and lets go of every controller and attachment URL while keeping subscribers. */
703
+ reset: () => void;
446
704
  /** Stops every turn and lets go of every controller and attachment URL. */
447
705
  dispose: () => void;
448
706
  }
@@ -531,6 +789,207 @@ export declare interface components {
531
789
  */
532
790
  via: "resolver" | "subscription" | "credits" | "default";
533
791
  };
792
+ /**
793
+ * AdminConnectorCreateInput
794
+ * @description Admin-created remote MCP connector.
795
+ */
796
+ AdminConnectorCreateInput: {
797
+ /**
798
+ * Allow Unattended
799
+ * @default false
800
+ */
801
+ allow_unattended?: boolean;
802
+ /** Api Key Instructions */
803
+ api_key_instructions?: string | null;
804
+ /**
805
+ * Approval
806
+ * @default writes
807
+ * @enum {string}
808
+ */
809
+ approval?: "never" | "writes" | "always";
810
+ /**
811
+ * Auth Kind
812
+ * @default none
813
+ * @enum {string}
814
+ */
815
+ auth_kind?: "none" | "api_key" | "oauth2";
816
+ /** Authorize Url */
817
+ authorize_url?: string | null;
818
+ /** Client Id */
819
+ client_id?: string | null;
820
+ /** Client Secret */
821
+ client_secret?: string | null;
822
+ /**
823
+ * Description
824
+ * @default
825
+ */
826
+ description?: string;
827
+ /**
828
+ * Global Enabled
829
+ * @default true
830
+ */
831
+ global_enabled?: boolean;
832
+ /**
833
+ * Header Name
834
+ * @default Authorization
835
+ */
836
+ header_name?: string;
837
+ /**
838
+ * Header Prefix
839
+ * @default Bearer
840
+ */
841
+ header_prefix?: string;
842
+ /** Key */
843
+ key: string;
844
+ /** Name */
845
+ name: string;
846
+ /**
847
+ * Pkce
848
+ * @default true
849
+ */
850
+ pkce?: boolean;
851
+ /** Scopes */
852
+ scopes?: string[];
853
+ /** Shared Secret */
854
+ shared_secret?: string | null;
855
+ /** Token Url */
856
+ token_url?: string | null;
857
+ /**
858
+ * Transport
859
+ * @default streamable-http
860
+ * @enum {string}
861
+ */
862
+ transport?: "streamable-http" | "sse";
863
+ /** Url */
864
+ url: string;
865
+ };
866
+ /**
867
+ * AdminConnectorListResponse
868
+ * @description All code-defined and admin-defined connectors.
869
+ */
870
+ AdminConnectorListResponse: {
871
+ /** Connectors */
872
+ connectors: components["schemas"]["AdminConnectorView"][];
873
+ };
874
+ /**
875
+ * AdminConnectorTestResponse
876
+ * @description Result of testing connectivity and tool discovery for an admin connector.
877
+ */
878
+ AdminConnectorTestResponse: {
879
+ /** Error */
880
+ error?: string | null;
881
+ /** Ok */
882
+ ok: boolean;
883
+ /** Tool Names */
884
+ tool_names?: string[];
885
+ /**
886
+ * Tools Count
887
+ * @default 0
888
+ */
889
+ tools_count?: number;
890
+ };
891
+ /**
892
+ * AdminConnectorUpdateInput
893
+ * @description Partial update to a connector from the Admin Panel.
894
+ */
895
+ AdminConnectorUpdateInput: {
896
+ /** Allow Unattended */
897
+ allow_unattended?: boolean | null;
898
+ /** Api Key Instructions */
899
+ api_key_instructions?: string | null;
900
+ /** Approval */
901
+ approval?: ("never" | "writes" | "always") | null;
902
+ /** Auth Kind */
903
+ auth_kind?: ("none" | "api_key" | "oauth2") | null;
904
+ /** Authorize Url */
905
+ authorize_url?: string | null;
906
+ /** Client Id */
907
+ client_id?: string | null;
908
+ /** Client Secret */
909
+ client_secret?: string | null;
910
+ /** Description */
911
+ description?: string | null;
912
+ /** Global Enabled */
913
+ global_enabled?: boolean | null;
914
+ /** Header Name */
915
+ header_name?: string | null;
916
+ /** Header Prefix */
917
+ header_prefix?: string | null;
918
+ /** Name */
919
+ name?: string | null;
920
+ /** Pkce */
921
+ pkce?: boolean | null;
922
+ /** Scopes */
923
+ scopes?: string[] | null;
924
+ /** Shared Secret */
925
+ shared_secret?: string | null;
926
+ /** Token Url */
927
+ token_url?: string | null;
928
+ /** Transport */
929
+ transport?: ("streamable-http" | "sse") | null;
930
+ /** Url */
931
+ url?: string | null;
932
+ };
933
+ /**
934
+ * AdminConnectorView
935
+ * @description Admin view of a connector catalog entry (secrets are always redacted).
936
+ */
937
+ AdminConnectorView: {
938
+ /** Allow Unattended */
939
+ allow_unattended: boolean;
940
+ /**
941
+ * Approval
942
+ * @enum {string}
943
+ */
944
+ approval: "never" | "writes" | "always";
945
+ /**
946
+ * Auth Kind
947
+ * @enum {string}
948
+ */
949
+ auth_kind: "none" | "api_key" | "oauth2";
950
+ /** Connected Users Count */
951
+ connected_users_count: number;
952
+ /**
953
+ * Created At
954
+ * Format: date-time
955
+ */
956
+ created_at: string;
957
+ /** Description */
958
+ description: string;
959
+ /** Global Enabled */
960
+ global_enabled: boolean;
961
+ /** Has Client Secret */
962
+ has_client_secret: boolean;
963
+ /** Has Shared Secret */
964
+ has_shared_secret: boolean;
965
+ /** Id */
966
+ id: string;
967
+ /** Key */
968
+ key: string;
969
+ /**
970
+ * Kind
971
+ * @enum {string}
972
+ */
973
+ kind: "python" | "mcp";
974
+ /** Name */
975
+ name: string;
976
+ /** Read Only */
977
+ read_only: boolean;
978
+ /**
979
+ * Source
980
+ * @enum {string}
981
+ */
982
+ source: "code" | "admin";
983
+ /** Transport */
984
+ transport?: ("streamable-http" | "sse") | null;
985
+ /**
986
+ * Updated At
987
+ * Format: date-time
988
+ */
989
+ updated_at: string;
990
+ /** Url */
991
+ url?: string | null;
992
+ };
534
993
  /** AdminCreated */
535
994
  AdminCreated: {
536
995
  /** Admin Id */
@@ -819,6 +1278,90 @@ export declare interface components {
819
1278
  /** Username */
820
1279
  username?: string | null;
821
1280
  };
1281
+ /**
1282
+ * AdminScheduleListResponse
1283
+ * @description Paginated list of schedules for admins.
1284
+ */
1285
+ AdminScheduleListResponse: {
1286
+ /** Schedules */
1287
+ schedules: components["schemas"]["AdminScheduleView"][];
1288
+ /** Total */
1289
+ total: number;
1290
+ };
1291
+ /**
1292
+ * AdminScheduleView
1293
+ * @description Admin view of a schedule, including a display label for its owner.
1294
+ */
1295
+ AdminScheduleView: {
1296
+ /**
1297
+ * Consecutive Failures
1298
+ * @default 0
1299
+ */
1300
+ consecutive_failures?: number;
1301
+ /**
1302
+ * Created At
1303
+ * Format: date-time
1304
+ */
1305
+ created_at: string;
1306
+ /** Cron */
1307
+ cron?: string | null;
1308
+ /** Enabled */
1309
+ enabled: boolean;
1310
+ /** Expires At */
1311
+ expires_at?: string | null;
1312
+ /** Id */
1313
+ id: string;
1314
+ /** Interval Minutes */
1315
+ interval_minutes?: number | null;
1316
+ /**
1317
+ * Kind
1318
+ * @enum {string}
1319
+ */
1320
+ kind: "once" | "cron" | "interval";
1321
+ /** Last Run At */
1322
+ last_run_at?: string | null;
1323
+ /** Last Run Status */
1324
+ last_run_status?: ("running" | "completed" | "skipped_quiet" | "failed" | "timeout") | null;
1325
+ /** Last Run Thread Id */
1326
+ last_run_thread_id?: string | null;
1327
+ /** Max Runs */
1328
+ max_runs?: number | null;
1329
+ /** Name */
1330
+ name: string;
1331
+ /** Next Run At */
1332
+ next_run_at?: string | null;
1333
+ /** Pause Reason */
1334
+ pause_reason?: ("user" | "completed" | "quota_exceeded" | "consecutive_failures" | "admin") | null;
1335
+ /** Prompt */
1336
+ prompt: string;
1337
+ /** Run At */
1338
+ run_at?: string | null;
1339
+ /**
1340
+ * Run Count
1341
+ * @default 0
1342
+ */
1343
+ run_count?: number;
1344
+ /** Silent If Empty */
1345
+ silent_if_empty: boolean;
1346
+ /** Thread Id */
1347
+ thread_id?: string | null;
1348
+ /**
1349
+ * Thread Mode
1350
+ * @enum {string}
1351
+ */
1352
+ thread_mode: "shared" | "new";
1353
+ /** Timezone */
1354
+ timezone: string;
1355
+ /**
1356
+ * Updated At
1357
+ * Format: date-time
1358
+ */
1359
+ updated_at: string;
1360
+ /** User Id */
1361
+ user_id: string;
1362
+ /** User Label */
1363
+ user_label?: string | null;
1364
+ };
822
1365
  /**
823
1366
  * AdminSession
824
1367
  * @description The signed-in admin as the store holds it now, not as the token described it.
@@ -1004,7 +1547,7 @@ export declare interface components {
1004
1547
  /** Surname */
1005
1548
  surname: string | null;
1006
1549
  /** Token */
1007
- token: string;
1550
+ token?: string | null;
1008
1551
  /** Username */
1009
1552
  username: string | null;
1010
1553
  };
@@ -1046,7 +1589,7 @@ export declare interface components {
1046
1589
  /** Surname */
1047
1590
  surname: string | null;
1048
1591
  /** Token */
1049
- token: string;
1592
+ token?: string | null;
1050
1593
  /**
1051
1594
  * Type
1052
1595
  * @enum {string}
@@ -1060,6 +1603,8 @@ export declare interface components {
1060
1603
  * @description An admin's edit of a user. Unlike a user's edit of themselves, it can set the user's group.
1061
1604
  */
1062
1605
  AdminUserUpdateInput: {
1606
+ /** Current Password */
1607
+ current_password?: string | null;
1063
1608
  /** Email */
1064
1609
  email?: string | null;
1065
1610
  /** Metadata */
@@ -1161,6 +1706,7 @@ export declare interface components {
1161
1706
  };
1162
1707
  /** AnalyticsTrendsDetail */
1163
1708
  AnalyticsTrendsDetail: {
1709
+ clients: components["schemas"]["ClientBreakdown"];
1164
1710
  /** Currency */
1165
1711
  currency: string;
1166
1712
  /** Daily */
@@ -1334,6 +1880,10 @@ export declare interface components {
1334
1880
  show_version_in_settings?: boolean | null;
1335
1881
  /** Show Welcome Glow */
1336
1882
  show_welcome_glow?: boolean | null;
1883
+ /** Sidebar Show Connectors */
1884
+ sidebar_show_connectors?: boolean | null;
1885
+ /** Sidebar Show Schedules */
1886
+ sidebar_show_schedules?: boolean | null;
1337
1887
  /** Signup Enabled */
1338
1888
  signup_enabled?: boolean | null;
1339
1889
  /** Thread Actions Edit */
@@ -1439,6 +1989,10 @@ export declare interface components {
1439
1989
  show_version_in_settings?: boolean | null;
1440
1990
  /** Show Welcome Glow */
1441
1991
  show_welcome_glow?: boolean | null;
1992
+ /** Sidebar Show Connectors */
1993
+ sidebar_show_connectors?: boolean | null;
1994
+ /** Sidebar Show Schedules */
1995
+ sidebar_show_schedules?: boolean | null;
1442
1996
  /** Signup Enabled */
1443
1997
  signup_enabled?: boolean | null;
1444
1998
  /** Thread Actions Edit */
@@ -1524,72 +2078,19 @@ export declare interface components {
1524
2078
  /** Username */
1525
2079
  username: string | null;
1526
2080
  };
1527
- /** AuthorizeUserInput */
1528
- AuthorizeUserInput: {
1529
- /** Email */
1530
- email?: string | null;
1531
- /** External Id */
1532
- external_id?: string | null;
1533
- /** Metadata */
1534
- metadata?: {
1535
- [key: string]: unknown;
1536
- } | null;
1537
- /** Name */
1538
- name: string;
1539
- /** Password */
1540
- password?: string | null;
1541
- /** Phone */
1542
- phone?: string | null;
1543
- subscription?: components["schemas"]["SessionSubscriptionInput"] | null;
1544
- /** Surname */
1545
- surname: string;
1546
- /** Username */
1547
- username?: string | null;
1548
- };
1549
- /** AuthorizeUserResponse */
1550
- AuthorizeUserResponse: {
1551
- /** Created At */
1552
- created_at: string | null;
1553
- /** Email */
1554
- email: string | null;
1555
- entitlement: components["schemas"]["EntitlementStatus"];
1556
- /** External Id */
1557
- external_id: string | null;
1558
- /** Metadata */
1559
- metadata: {
1560
- [key: string]: unknown;
1561
- };
1562
- /** Name */
1563
- name: string;
1564
- /** Phone */
1565
- phone: string | null;
1566
- /** Surname */
1567
- surname: string | null;
1568
- /** Token */
1569
- token: string;
1570
- /**
1571
- * Type
1572
- * @enum {string}
1573
- */
1574
- type: "human" | "service";
1575
- /** User Id */
1576
- user_id: string;
1577
- /** Username */
1578
- username: string | null;
1579
- };
1580
- /** BackgroundJob */
1581
- BackgroundJob: {
1582
- /**
1583
- * Created At
1584
- * Format: date-time
1585
- */
1586
- created_at: string;
1587
- /** Error */
1588
- error: string | null;
1589
- /** Id */
1590
- id: string;
1591
- /** Message */
1592
- message: string | null;
2081
+ /** BackgroundJob */
2082
+ BackgroundJob: {
2083
+ /**
2084
+ * Created At
2085
+ * Format: date-time
2086
+ */
2087
+ created_at: string;
2088
+ /** Error */
2089
+ error: string | null;
2090
+ /** Id */
2091
+ id: string;
2092
+ /** Message */
2093
+ message: string | null;
1593
2094
  /** Metadata */
1594
2095
  metadata: {
1595
2096
  [key: string]: unknown;
@@ -1766,6 +2267,150 @@ export declare interface components {
1766
2267
  */
1767
2268
  type: "data-choice-question";
1768
2269
  };
2270
+ /** ClientBreakdown */
2271
+ ClientBreakdown: {
2272
+ /** Browsers */
2273
+ browsers: components["schemas"]["ClientCount"][];
2274
+ /** Devices */
2275
+ devices: components["schemas"]["ClientCount"][];
2276
+ /** Os */
2277
+ os: components["schemas"]["ClientCount"][];
2278
+ };
2279
+ /** ClientCount */
2280
+ ClientCount: {
2281
+ /** Count */
2282
+ count: number;
2283
+ /** Key */
2284
+ key: string;
2285
+ };
2286
+ /**
2287
+ * ConnectorConnectInput
2288
+ * @description API-key credentials submitted by an end user for a connector.
2289
+ */
2290
+ ConnectorConnectInput: {
2291
+ /** Account Label */
2292
+ account_label?: string | null;
2293
+ /** Api Key */
2294
+ api_key: string;
2295
+ };
2296
+ /**
2297
+ * ConnectorListResponse
2298
+ * @description Connectors visible to the current user.
2299
+ */
2300
+ ConnectorListResponse: {
2301
+ /** Allow User Mcp */
2302
+ allow_user_mcp: boolean;
2303
+ /** Connectors */
2304
+ connectors: components["schemas"]["ConnectorView"][];
2305
+ /** Max User Mcp */
2306
+ max_user_mcp: number;
2307
+ };
2308
+ /**
2309
+ * ConnectorToggleInput
2310
+ * @description Enable/disable a connector for the current user or customize per-tool approvals.
2311
+ */
2312
+ ConnectorToggleInput: {
2313
+ /** Enabled */
2314
+ enabled: boolean;
2315
+ /** Tool Overrides */
2316
+ tool_overrides?: {
2317
+ [key: string]: "allow" | "ask" | "deny";
2318
+ } | null;
2319
+ };
2320
+ /**
2321
+ * ConnectorToolView
2322
+ * @description One tool advertised by a connector.
2323
+ */
2324
+ ConnectorToolView: {
2325
+ /**
2326
+ * Approval
2327
+ * @enum {string}
2328
+ */
2329
+ approval: "allow" | "ask" | "deny";
2330
+ /** Description */
2331
+ description?: string | null;
2332
+ /** Destructive */
2333
+ destructive?: boolean | null;
2334
+ /** Full Name */
2335
+ full_name: string;
2336
+ /** Name */
2337
+ name: string;
2338
+ /** Read Only */
2339
+ read_only?: boolean | null;
2340
+ };
2341
+ /**
2342
+ * ConnectorToolsResponse
2343
+ * @description Tools discovered for a connected connector.
2344
+ */
2345
+ ConnectorToolsResponse: {
2346
+ /** Connector Id */
2347
+ connector_id: string;
2348
+ /** Tools */
2349
+ tools: components["schemas"]["ConnectorToolView"][];
2350
+ };
2351
+ /**
2352
+ * ConnectorView
2353
+ * @description End-user view of an available connector and their connection state.
2354
+ */
2355
+ ConnectorView: {
2356
+ /** Account Label */
2357
+ account_label?: string | null;
2358
+ /** Allow Unattended */
2359
+ allow_unattended: boolean;
2360
+ /** Api Key Instructions */
2361
+ api_key_instructions?: string | null;
2362
+ /**
2363
+ * Approval
2364
+ * @enum {string}
2365
+ */
2366
+ approval: "never" | "writes" | "always";
2367
+ /**
2368
+ * Auth Kind
2369
+ * @enum {string}
2370
+ */
2371
+ auth_kind: "none" | "api_key" | "oauth2";
2372
+ /** Connected */
2373
+ connected: boolean;
2374
+ /** Description */
2375
+ description: string;
2376
+ /** Enabled */
2377
+ enabled: boolean;
2378
+ /** Icon */
2379
+ icon?: string | null;
2380
+ /** Id */
2381
+ id: string;
2382
+ /** Key */
2383
+ key: string;
2384
+ /**
2385
+ * Kind
2386
+ * @enum {string}
2387
+ */
2388
+ kind: "python" | "mcp";
2389
+ /** Last Error */
2390
+ last_error?: string | null;
2391
+ /** Last Used At */
2392
+ last_used_at?: string | null;
2393
+ /** Name */
2394
+ name: string;
2395
+ /** Requires User Credentials */
2396
+ requires_user_credentials: boolean;
2397
+ /**
2398
+ * Source
2399
+ * @enum {string}
2400
+ */
2401
+ source: "code" | "admin" | "user";
2402
+ /**
2403
+ * Status
2404
+ * @enum {string}
2405
+ */
2406
+ status: "connected" | "disconnected" | "expired" | "error";
2407
+ /** Tool Overrides */
2408
+ tool_overrides?: {
2409
+ [key: string]: "allow" | "ask" | "deny";
2410
+ };
2411
+ /** Url */
2412
+ url?: string | null;
2413
+ };
1769
2414
  /** CountBin */
1770
2415
  CountBin: {
1771
2416
  /** Count */
@@ -2583,6 +3228,25 @@ export declare interface components {
2583
3228
  /** Total Cost Microunits */
2584
3229
  total_cost_microunits?: number | null;
2585
3230
  };
3231
+ /**
3232
+ * OAuthStartInput
3233
+ * @description Request to start an OAuth2 authorization flow for a connector.
3234
+ */
3235
+ OAuthStartInput: {
3236
+ /**
3237
+ * Return Path
3238
+ * @default /
3239
+ */
3240
+ return_path?: string;
3241
+ };
3242
+ /**
3243
+ * OAuthStartResponse
3244
+ * @description Authorization URL the browser redirects the user to.
3245
+ */
3246
+ OAuthStartResponse: {
3247
+ /** Authorization Url */
3248
+ authorization_url: string;
3249
+ };
2586
3250
  /** Percentiles */
2587
3251
  Percentiles: {
2588
3252
  /** P50 */
@@ -2863,6 +3527,16 @@ export declare interface components {
2863
3527
  composer_attachments?: boolean | null;
2864
3528
  /** Composer Voice */
2865
3529
  composer_voice?: boolean | null;
3530
+ /**
3531
+ * Connectors Allow User Mcp
3532
+ * @default false
3533
+ */
3534
+ connectors_allow_user_mcp?: boolean;
3535
+ /**
3536
+ * Connectors Enabled
3537
+ * @default false
3538
+ */
3539
+ connectors_enabled?: boolean;
2866
3540
  /** Credits Meter */
2867
3541
  credits_meter?: ("messages" | "tokens" | "cost") | null;
2868
3542
  /** Default Accent */
@@ -2906,6 +3580,11 @@ export declare interface components {
2906
3580
  quota_calendar?: ("gregorian" | "persian") | null;
2907
3581
  /** Quota Timezone */
2908
3582
  quota_timezone?: string | null;
3583
+ /**
3584
+ * Schedules Enabled
3585
+ * @default false
3586
+ */
3587
+ schedules_enabled?: boolean;
2909
3588
  /** Settings Account Fields */
2910
3589
  settings_account_fields?: {
2911
3590
  [key: string]: string;
@@ -2938,6 +3617,10 @@ export declare interface components {
2938
3617
  show_version_in_settings?: boolean | null;
2939
3618
  /** Show Welcome Glow */
2940
3619
  show_welcome_glow?: boolean | null;
3620
+ /** Sidebar Show Connectors */
3621
+ sidebar_show_connectors?: boolean | null;
3622
+ /** Sidebar Show Schedules */
3623
+ sidebar_show_schedules?: boolean | null;
2941
3624
  /** Signup Enabled */
2942
3625
  signup_enabled?: boolean | null;
2943
3626
  /** Thread Actions Edit */
@@ -2967,6 +3650,8 @@ export declare interface components {
2967
3650
  welcome_greeting?: string | null;
2968
3651
  /** Welcome Subtitle */
2969
3652
  welcome_subtitle?: string | null;
3653
+ } & {
3654
+ [key: string]: unknown;
2970
3655
  };
2971
3656
  /** PublicStatus */
2972
3657
  PublicStatus: {
@@ -3154,6 +3839,219 @@ export declare interface components {
3154
3839
  [key: string]: unknown;
3155
3840
  };
3156
3841
  };
3842
+ /**
3843
+ * ScheduleCreateInput
3844
+ * @description Payload to create a new scheduled task.
3845
+ */
3846
+ ScheduleCreateInput: {
3847
+ /** Cron */
3848
+ cron?: string | null;
3849
+ /** Expires At */
3850
+ expires_at?: string | null;
3851
+ /** Interval Minutes */
3852
+ interval_minutes?: number | null;
3853
+ /**
3854
+ * Kind
3855
+ * @enum {string}
3856
+ */
3857
+ kind: "once" | "cron" | "interval";
3858
+ /** Max Runs */
3859
+ max_runs?: number | null;
3860
+ /** Name */
3861
+ name: string;
3862
+ /** Prompt */
3863
+ prompt: string;
3864
+ /** Run At */
3865
+ run_at?: string | null;
3866
+ /** Run Options */
3867
+ run_options?: {
3868
+ [key: string]: components["schemas"]["JsonValue"];
3869
+ } | null;
3870
+ /**
3871
+ * Silent If Empty
3872
+ * @default false
3873
+ */
3874
+ silent_if_empty?: boolean;
3875
+ /**
3876
+ * Thread Mode
3877
+ * @default shared
3878
+ * @enum {string}
3879
+ */
3880
+ thread_mode?: "shared" | "new";
3881
+ /**
3882
+ * Timezone
3883
+ * @default UTC
3884
+ */
3885
+ timezone?: string;
3886
+ };
3887
+ /**
3888
+ * ScheduleListResponse
3889
+ * @description All schedules owned by the current user, plus their cap.
3890
+ */
3891
+ ScheduleListResponse: {
3892
+ /** Max Schedules */
3893
+ max_schedules: number;
3894
+ /** Schedules */
3895
+ schedules: components["schemas"]["ScheduleView"][];
3896
+ };
3897
+ /**
3898
+ * ScheduleRunListResponse
3899
+ * @description Recent runs of a schedule.
3900
+ */
3901
+ ScheduleRunListResponse: {
3902
+ /** Runs */
3903
+ runs: components["schemas"]["ScheduleRunView"][];
3904
+ };
3905
+ /**
3906
+ * ScheduleRunView
3907
+ * @description One execution of a schedule.
3908
+ */
3909
+ ScheduleRunView: {
3910
+ /** Assistant Message Id */
3911
+ assistant_message_id?: string | null;
3912
+ /** Error */
3913
+ error?: string | null;
3914
+ /** Finished At */
3915
+ finished_at?: string | null;
3916
+ /** Id */
3917
+ id: string;
3918
+ /** Schedule Id */
3919
+ schedule_id: string;
3920
+ /**
3921
+ * Scheduled For
3922
+ * Format: date-time
3923
+ */
3924
+ scheduled_for: string;
3925
+ /**
3926
+ * Started At
3927
+ * Format: date-time
3928
+ */
3929
+ started_at: string;
3930
+ /**
3931
+ * Status
3932
+ * @enum {string}
3933
+ */
3934
+ status: "running" | "completed" | "skipped_quiet" | "failed" | "timeout";
3935
+ /** Summary */
3936
+ summary?: string | null;
3937
+ /** Thread Id */
3938
+ thread_id?: string | null;
3939
+ /**
3940
+ * Trigger
3941
+ * @enum {string}
3942
+ */
3943
+ trigger: "scheduled" | "manual";
3944
+ /** Turn Id */
3945
+ turn_id?: string | null;
3946
+ /** User Id */
3947
+ user_id: string;
3948
+ };
3949
+ /**
3950
+ * ScheduleUpdateInput
3951
+ * @description Partial update payload for an existing schedule.
3952
+ */
3953
+ ScheduleUpdateInput: {
3954
+ /** Cron */
3955
+ cron?: string | null;
3956
+ /** Enabled */
3957
+ enabled?: boolean | null;
3958
+ /** Expires At */
3959
+ expires_at?: string | null;
3960
+ /** Interval Minutes */
3961
+ interval_minutes?: number | null;
3962
+ /** Kind */
3963
+ kind?: ("once" | "cron" | "interval") | null;
3964
+ /** Max Runs */
3965
+ max_runs?: number | null;
3966
+ /** Name */
3967
+ name?: string | null;
3968
+ /** Prompt */
3969
+ prompt?: string | null;
3970
+ /** Run At */
3971
+ run_at?: string | null;
3972
+ /** Run Options */
3973
+ run_options?: {
3974
+ [key: string]: components["schemas"]["JsonValue"];
3975
+ } | null;
3976
+ /** Silent If Empty */
3977
+ silent_if_empty?: boolean | null;
3978
+ /** Thread Mode */
3979
+ thread_mode?: ("shared" | "new") | null;
3980
+ /** Timezone */
3981
+ timezone?: string | null;
3982
+ };
3983
+ /**
3984
+ * ScheduleView
3985
+ * @description A user's scheduled routine.
3986
+ */
3987
+ ScheduleView: {
3988
+ /**
3989
+ * Consecutive Failures
3990
+ * @default 0
3991
+ */
3992
+ consecutive_failures?: number;
3993
+ /**
3994
+ * Created At
3995
+ * Format: date-time
3996
+ */
3997
+ created_at: string;
3998
+ /** Cron */
3999
+ cron?: string | null;
4000
+ /** Enabled */
4001
+ enabled: boolean;
4002
+ /** Expires At */
4003
+ expires_at?: string | null;
4004
+ /** Id */
4005
+ id: string;
4006
+ /** Interval Minutes */
4007
+ interval_minutes?: number | null;
4008
+ /**
4009
+ * Kind
4010
+ * @enum {string}
4011
+ */
4012
+ kind: "once" | "cron" | "interval";
4013
+ /** Last Run At */
4014
+ last_run_at?: string | null;
4015
+ /** Last Run Status */
4016
+ last_run_status?: ("running" | "completed" | "skipped_quiet" | "failed" | "timeout") | null;
4017
+ /** Last Run Thread Id */
4018
+ last_run_thread_id?: string | null;
4019
+ /** Max Runs */
4020
+ max_runs?: number | null;
4021
+ /** Name */
4022
+ name: string;
4023
+ /** Next Run At */
4024
+ next_run_at?: string | null;
4025
+ /** Pause Reason */
4026
+ pause_reason?: ("user" | "completed" | "quota_exceeded" | "consecutive_failures" | "admin") | null;
4027
+ /** Prompt */
4028
+ prompt: string;
4029
+ /** Run At */
4030
+ run_at?: string | null;
4031
+ /**
4032
+ * Run Count
4033
+ * @default 0
4034
+ */
4035
+ run_count?: number;
4036
+ /** Silent If Empty */
4037
+ silent_if_empty: boolean;
4038
+ /** Thread Id */
4039
+ thread_id?: string | null;
4040
+ /**
4041
+ * Thread Mode
4042
+ * @enum {string}
4043
+ */
4044
+ thread_mode: "shared" | "new";
4045
+ /** Timezone */
4046
+ timezone: string;
4047
+ /**
4048
+ * Updated At
4049
+ * Format: date-time
4050
+ */
4051
+ updated_at: string;
4052
+ /** User Id */
4053
+ user_id: string;
4054
+ };
3157
4055
  /** SessionInput */
3158
4056
  SessionInput: {
3159
4057
  /** Redirect Path */
@@ -3962,6 +4860,51 @@ export declare interface components {
3962
4860
  /** User Ids */
3963
4861
  user_ids?: string[] | null;
3964
4862
  };
4863
+ /**
4864
+ * UserMCPCreateInput
4865
+ * @description User-submitted custom remote MCP server.
4866
+ */
4867
+ UserMCPCreateInput: {
4868
+ /** Api Key */
4869
+ api_key?: string | null;
4870
+ /**
4871
+ * Approval
4872
+ * @default writes
4873
+ * @enum {string}
4874
+ */
4875
+ approval?: "never" | "writes" | "always";
4876
+ /**
4877
+ * Auth Kind
4878
+ * @default none
4879
+ * @enum {string}
4880
+ */
4881
+ auth_kind?: "none" | "api_key";
4882
+ /**
4883
+ * Description
4884
+ * @default
4885
+ */
4886
+ description?: string;
4887
+ /**
4888
+ * Header Name
4889
+ * @default Authorization
4890
+ */
4891
+ header_name?: string;
4892
+ /**
4893
+ * Header Prefix
4894
+ * @default Bearer
4895
+ */
4896
+ header_prefix?: string;
4897
+ /** Name */
4898
+ name: string;
4899
+ /**
4900
+ * Transport
4901
+ * @default streamable-http
4902
+ * @enum {string}
4903
+ */
4904
+ transport?: "streamable-http" | "sse";
4905
+ /** Url */
4906
+ url: string;
4907
+ };
3965
4908
  /** UserOption */
3966
4909
  UserOption: {
3967
4910
  /** Email */
@@ -4070,6 +5013,8 @@ export declare interface components {
4070
5013
  };
4071
5014
  /** UserUpdateInput */
4072
5015
  UserUpdateInput: {
5016
+ /** Current Password */
5017
+ current_password?: string | null;
4073
5018
  /** Email */
4074
5019
  email?: string | null;
4075
5020
  /** Metadata */
@@ -4278,13 +5223,17 @@ declare interface ComposerDrafts {
4278
5223
  addVoiceInput: (scope: string, id: string) => void;
4279
5224
  /** Empties the scope and returns what it held, as when a message is sent. */
4280
5225
  take: (scope: string) => ComposerDraft;
5226
+ /** Clears every scope, as when signing out or disposing the runtime. */
5227
+ clear: () => void;
4281
5228
  }
4282
5229
 
4283
5230
  /** A file attached to the message being drafted. */
4284
5231
  declare interface ComposerFile {
4285
5232
  /** Tells apart files with the same name. */
4286
5233
  key: string;
5234
+ /** Original browser `File` selected by the user. */
4287
5235
  file: File;
5236
+ /** Current upload lifecycle state. */
4288
5237
  status: ComposerFileStatus;
4289
5238
  /** The fraction uploaded, from 0 to 1, or `null` while that isn't known. */
4290
5239
  progress: number | null;
@@ -4311,6 +5260,8 @@ declare interface ComposerFiles {
4311
5260
  retry: (scope: string, key: string) => void;
4312
5261
  /** Takes every file out of the scope and returns what was there, as when a message is sent. */
4313
5262
  take: (scope: string) => readonly ComposerFile[];
5263
+ /** Cancels every in-flight upload and clears all scopes. */
5264
+ clear: () => void;
4314
5265
  }
4315
5266
 
4316
5267
  /** Where a file attached in the composer is on its way to the server. */
@@ -4319,6 +5270,12 @@ declare type ComposerFileStatus = 'uploading' | 'uploaded' | 'failed';
4319
5270
  /** The scope a thread's composer keeps its message under: a new thread's is `''`. */
4320
5271
  export declare function composerScope(threadId: string | null): string;
4321
5272
 
5273
+ /** Request body to store an API key for a connector. */
5274
+ declare type ConnectorConnectInput = Schemas['ConnectorConnectInput'];
5275
+
5276
+ /** Request body to toggle a connector or customize tool approvals. */
5277
+ declare type ConnectorToggleInput = Schemas['ConnectorToggleInput'];
5278
+
4322
5279
  /**
4323
5280
  * Build the user-facing API client and the HTTP client under it. `GentiqProvider` keeps the
4324
5281
  * whole runtime, because the chat stream and the admin panel send through the same client.
@@ -4418,11 +5375,6 @@ export declare interface GentiqRuntime {
4418
5375
  /** A chat message, with Gentiq's `data-*` parts typed. */
4419
5376
  declare type GentiqUIMessage = UIMessage<unknown, GentiqDataTypes>;
4420
5377
 
4421
- /** The calendar to render dates in for a language tag. */
4422
- export declare function getCalendar(language: string | undefined | null): string;
4423
-
4424
- export declare function getCalendarSystem(kind: CalendarKind): CalendarSystem;
4425
-
4426
5378
  /**
4427
5379
  * The locale tag to format *dates* in, carrying the language's calendar as a
4428
5380
  * Unicode extension (`fa` → `fa-u-ca-persian`).
@@ -4489,7 +5441,7 @@ declare type HttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';
4489
5441
 
4490
5442
  /**
4491
5443
  * Whether a stored part is of the given type. Narrowing on `part.type` alone can't do it, since
4492
- * tool and app data parts type theirs as any string.
5444
+ * tool and app data parts type theirs as an arbitrary string.
4493
5445
  */
4494
5446
  export declare function isStoredPart<T extends FixedPartType>(part: StoredMessagePart, type: T): part is Extract<StoredMessagePart, {
4495
5447
  type: T;
@@ -5585,12 +6537,9 @@ declare interface operations {
5585
6537
  };
5586
6538
  };
5587
6539
  };
5588
- list_jobs_api_admin_jobs_get: {
6540
+ admin_list_connectors_api_admin_connectors_get: {
5589
6541
  parameters: {
5590
- query?: {
5591
- limit?: number;
5592
- type?: string | null;
5593
- };
6542
+ query?: never;
5594
6543
  header?: never;
5595
6544
  path?: never;
5596
6545
  cookie?: never;
@@ -5603,7 +6552,7 @@ declare interface operations {
5603
6552
  [name: string]: unknown;
5604
6553
  };
5605
6554
  content: {
5606
- "application/json": components["schemas"]["BackgroundJobList"];
6555
+ "application/json": components["schemas"]["AdminConnectorListResponse"];
5607
6556
  };
5608
6557
  };
5609
6558
  /** @description Client Error */
@@ -5626,7 +6575,7 @@ declare interface operations {
5626
6575
  };
5627
6576
  };
5628
6577
  };
5629
- run_raw_job_api_admin_jobs_raw_post: {
6578
+ admin_create_connector_api_admin_connectors_post: {
5630
6579
  parameters: {
5631
6580
  query?: never;
5632
6581
  header?: never;
@@ -5635,12 +6584,219 @@ declare interface operations {
5635
6584
  };
5636
6585
  requestBody: {
5637
6586
  content: {
5638
- "application/json": components["schemas"]["RunRawJobInput"];
6587
+ "application/json": components["schemas"]["AdminConnectorCreateInput"];
5639
6588
  };
5640
6589
  };
5641
6590
  responses: {
5642
6591
  /** @description Successful Response */
5643
- 202: {
6592
+ 201: {
6593
+ headers: {
6594
+ [name: string]: unknown;
6595
+ };
6596
+ content: {
6597
+ "application/json": components["schemas"]["AdminConnectorView"];
6598
+ };
6599
+ };
6600
+ /** @description Client Error */
6601
+ "4XX": {
6602
+ headers: {
6603
+ [name: string]: unknown;
6604
+ };
6605
+ content: {
6606
+ "application/json": components["schemas"]["ErrorResponse"];
6607
+ };
6608
+ };
6609
+ /** @description Server Error */
6610
+ "5XX": {
6611
+ headers: {
6612
+ [name: string]: unknown;
6613
+ };
6614
+ content: {
6615
+ "application/json": components["schemas"]["ErrorResponse"];
6616
+ };
6617
+ };
6618
+ };
6619
+ };
6620
+ admin_delete_connector_api_admin_connectors__connector_id__delete: {
6621
+ parameters: {
6622
+ query?: never;
6623
+ header?: never;
6624
+ path: {
6625
+ connector_id: string;
6626
+ };
6627
+ cookie?: never;
6628
+ };
6629
+ requestBody?: never;
6630
+ responses: {
6631
+ /** @description Successful Response */
6632
+ 200: {
6633
+ headers: {
6634
+ [name: string]: unknown;
6635
+ };
6636
+ content: {
6637
+ "application/json": components["schemas"]["StatusResponse"];
6638
+ };
6639
+ };
6640
+ /** @description Client Error */
6641
+ "4XX": {
6642
+ headers: {
6643
+ [name: string]: unknown;
6644
+ };
6645
+ content: {
6646
+ "application/json": components["schemas"]["ErrorResponse"];
6647
+ };
6648
+ };
6649
+ /** @description Server Error */
6650
+ "5XX": {
6651
+ headers: {
6652
+ [name: string]: unknown;
6653
+ };
6654
+ content: {
6655
+ "application/json": components["schemas"]["ErrorResponse"];
6656
+ };
6657
+ };
6658
+ };
6659
+ };
6660
+ admin_update_connector_api_admin_connectors__connector_id__patch: {
6661
+ parameters: {
6662
+ query?: never;
6663
+ header?: never;
6664
+ path: {
6665
+ connector_id: string;
6666
+ };
6667
+ cookie?: never;
6668
+ };
6669
+ requestBody: {
6670
+ content: {
6671
+ "application/json": components["schemas"]["AdminConnectorUpdateInput"];
6672
+ };
6673
+ };
6674
+ responses: {
6675
+ /** @description Successful Response */
6676
+ 200: {
6677
+ headers: {
6678
+ [name: string]: unknown;
6679
+ };
6680
+ content: {
6681
+ "application/json": components["schemas"]["AdminConnectorView"];
6682
+ };
6683
+ };
6684
+ /** @description Client Error */
6685
+ "4XX": {
6686
+ headers: {
6687
+ [name: string]: unknown;
6688
+ };
6689
+ content: {
6690
+ "application/json": components["schemas"]["ErrorResponse"];
6691
+ };
6692
+ };
6693
+ /** @description Server Error */
6694
+ "5XX": {
6695
+ headers: {
6696
+ [name: string]: unknown;
6697
+ };
6698
+ content: {
6699
+ "application/json": components["schemas"]["ErrorResponse"];
6700
+ };
6701
+ };
6702
+ };
6703
+ };
6704
+ admin_test_connector_api_admin_connectors__connector_id__test_post: {
6705
+ parameters: {
6706
+ query?: never;
6707
+ header?: never;
6708
+ path: {
6709
+ connector_id: string;
6710
+ };
6711
+ cookie?: never;
6712
+ };
6713
+ requestBody?: never;
6714
+ responses: {
6715
+ /** @description Successful Response */
6716
+ 200: {
6717
+ headers: {
6718
+ [name: string]: unknown;
6719
+ };
6720
+ content: {
6721
+ "application/json": components["schemas"]["AdminConnectorTestResponse"];
6722
+ };
6723
+ };
6724
+ /** @description Client Error */
6725
+ "4XX": {
6726
+ headers: {
6727
+ [name: string]: unknown;
6728
+ };
6729
+ content: {
6730
+ "application/json": components["schemas"]["ErrorResponse"];
6731
+ };
6732
+ };
6733
+ /** @description Server Error */
6734
+ "5XX": {
6735
+ headers: {
6736
+ [name: string]: unknown;
6737
+ };
6738
+ content: {
6739
+ "application/json": components["schemas"]["ErrorResponse"];
6740
+ };
6741
+ };
6742
+ };
6743
+ };
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
+ run_raw_job_api_admin_jobs_raw_post: {
6786
+ parameters: {
6787
+ query?: never;
6788
+ header?: never;
6789
+ path?: never;
6790
+ cookie?: never;
6791
+ };
6792
+ requestBody: {
6793
+ content: {
6794
+ "application/json": components["schemas"]["RunRawJobInput"];
6795
+ };
6796
+ };
6797
+ responses: {
6798
+ /** @description Successful Response */
6799
+ 202: {
5644
6800
  headers: {
5645
6801
  [name: string]: unknown;
5646
6802
  };
@@ -6525,9 +7681,14 @@ declare interface operations {
6525
7681
  };
6526
7682
  };
6527
7683
  };
6528
- get_app_settings_api_admin_settings_get: {
7684
+ admin_list_schedules_api_admin_schedules_get: {
6529
7685
  parameters: {
6530
- query?: never;
7686
+ query?: {
7687
+ status?: string | null;
7688
+ user_id?: string | null;
7689
+ limit?: number;
7690
+ skip?: number;
7691
+ };
6531
7692
  header?: never;
6532
7693
  path?: never;
6533
7694
  cookie?: never;
@@ -6540,7 +7701,7 @@ declare interface operations {
6540
7701
  [name: string]: unknown;
6541
7702
  };
6542
7703
  content: {
6543
- "application/json": components["schemas"]["AdminSettingsResponse"];
7704
+ "application/json": components["schemas"]["AdminScheduleListResponse"];
6544
7705
  };
6545
7706
  };
6546
7707
  /** @description Client Error */
@@ -6563,11 +7724,13 @@ declare interface operations {
6563
7724
  };
6564
7725
  };
6565
7726
  };
6566
- delete_app_settings_api_admin_settings_delete: {
7727
+ admin_delete_schedule_api_admin_schedules__schedule_id__delete: {
6567
7728
  parameters: {
6568
7729
  query?: never;
6569
7730
  header?: never;
6570
- path?: never;
7731
+ path: {
7732
+ schedule_id: string;
7733
+ };
6571
7734
  cookie?: never;
6572
7735
  };
6573
7736
  requestBody?: never;
@@ -6578,7 +7741,7 @@ declare interface operations {
6578
7741
  [name: string]: unknown;
6579
7742
  };
6580
7743
  content: {
6581
- "application/json": components["schemas"]["StatusMessageResponse"];
7744
+ "application/json": components["schemas"]["StatusResponse"];
6582
7745
  };
6583
7746
  };
6584
7747
  /** @description Client Error */
@@ -6601,18 +7764,16 @@ declare interface operations {
6601
7764
  };
6602
7765
  };
6603
7766
  };
6604
- update_app_settings_api_admin_settings_patch: {
7767
+ admin_pause_schedule_api_admin_schedules__schedule_id__pause_post: {
6605
7768
  parameters: {
6606
7769
  query?: never;
6607
7770
  header?: never;
6608
- path?: never;
6609
- cookie?: never;
6610
- };
6611
- requestBody: {
6612
- content: {
6613
- "application/json": components["schemas"]["AppSettingsUpdateInput"];
7771
+ path: {
7772
+ schedule_id: string;
6614
7773
  };
7774
+ cookie?: never;
6615
7775
  };
7776
+ requestBody?: never;
6616
7777
  responses: {
6617
7778
  /** @description Successful Response */
6618
7779
  200: {
@@ -6620,7 +7781,7 @@ declare interface operations {
6620
7781
  [name: string]: unknown;
6621
7782
  };
6622
7783
  content: {
6623
- "application/json": components["schemas"]["AdminSettingsResponse"];
7784
+ "application/json": components["schemas"]["ScheduleView"];
6624
7785
  };
6625
7786
  };
6626
7787
  /** @description Client Error */
@@ -6643,11 +7804,13 @@ declare interface operations {
6643
7804
  };
6644
7805
  };
6645
7806
  };
6646
- get_setup_status_api_admin_setup_status_get: {
7807
+ admin_resume_schedule_api_admin_schedules__schedule_id__resume_post: {
6647
7808
  parameters: {
6648
7809
  query?: never;
6649
7810
  header?: never;
6650
- path?: never;
7811
+ path: {
7812
+ schedule_id: string;
7813
+ };
6651
7814
  cookie?: never;
6652
7815
  };
6653
7816
  requestBody?: never;
@@ -6658,7 +7821,7 @@ declare interface operations {
6658
7821
  [name: string]: unknown;
6659
7822
  };
6660
7823
  content: {
6661
- "application/json": components["schemas"]["AdminSetupStatus"];
7824
+ "application/json": components["schemas"]["ScheduleView"];
6662
7825
  };
6663
7826
  };
6664
7827
  /** @description Client Error */
@@ -6681,11 +7844,15 @@ declare interface operations {
6681
7844
  };
6682
7845
  };
6683
7846
  };
6684
- get_status_api_admin_status_get: {
7847
+ admin_list_schedule_runs_api_admin_schedules__schedule_id__runs_get: {
6685
7848
  parameters: {
6686
- query?: never;
7849
+ query?: {
7850
+ limit?: number;
7851
+ };
6687
7852
  header?: never;
6688
- path?: never;
7853
+ path: {
7854
+ schedule_id: string;
7855
+ };
6689
7856
  cookie?: never;
6690
7857
  };
6691
7858
  requestBody?: never;
@@ -6696,7 +7863,7 @@ declare interface operations {
6696
7863
  [name: string]: unknown;
6697
7864
  };
6698
7865
  content: {
6699
- "application/json": components["schemas"]["AdminStatus"];
7866
+ "application/json": components["schemas"]["ScheduleRunListResponse"];
6700
7867
  };
6701
7868
  };
6702
7869
  /** @description Client Error */
@@ -6719,11 +7886,9 @@ declare interface operations {
6719
7886
  };
6720
7887
  };
6721
7888
  };
6722
- list_incidents_api_admin_status_incidents_get: {
7889
+ get_app_settings_api_admin_settings_get: {
6723
7890
  parameters: {
6724
- query?: {
6725
- limit?: number;
6726
- };
7891
+ query?: never;
6727
7892
  header?: never;
6728
7893
  path?: never;
6729
7894
  cookie?: never;
@@ -6736,7 +7901,7 @@ declare interface operations {
6736
7901
  [name: string]: unknown;
6737
7902
  };
6738
7903
  content: {
6739
- "application/json": components["schemas"]["Incident"][];
7904
+ "application/json": components["schemas"]["AdminSettingsResponse"];
6740
7905
  };
6741
7906
  };
6742
7907
  /** @description Client Error */
@@ -6759,18 +7924,14 @@ declare interface operations {
6759
7924
  };
6760
7925
  };
6761
7926
  };
6762
- enter_maintenance_api_admin_status_maintenance_post: {
7927
+ delete_app_settings_api_admin_settings_delete: {
6763
7928
  parameters: {
6764
7929
  query?: never;
6765
7930
  header?: never;
6766
7931
  path?: never;
6767
7932
  cookie?: never;
6768
7933
  };
6769
- requestBody: {
6770
- content: {
6771
- "application/json": components["schemas"]["MaintenanceEnterInput"];
6772
- };
6773
- };
7934
+ requestBody?: never;
6774
7935
  responses: {
6775
7936
  /** @description Successful Response */
6776
7937
  200: {
@@ -6778,7 +7939,207 @@ declare interface operations {
6778
7939
  [name: string]: unknown;
6779
7940
  };
6780
7941
  content: {
6781
- "application/json": components["schemas"]["AdminStatus"];
7942
+ "application/json": components["schemas"]["StatusMessageResponse"];
7943
+ };
7944
+ };
7945
+ /** @description Client Error */
7946
+ "4XX": {
7947
+ headers: {
7948
+ [name: string]: unknown;
7949
+ };
7950
+ content: {
7951
+ "application/json": components["schemas"]["ErrorResponse"];
7952
+ };
7953
+ };
7954
+ /** @description Server Error */
7955
+ "5XX": {
7956
+ headers: {
7957
+ [name: string]: unknown;
7958
+ };
7959
+ content: {
7960
+ "application/json": components["schemas"]["ErrorResponse"];
7961
+ };
7962
+ };
7963
+ };
7964
+ };
7965
+ update_app_settings_api_admin_settings_patch: {
7966
+ parameters: {
7967
+ query?: never;
7968
+ header?: never;
7969
+ path?: never;
7970
+ cookie?: never;
7971
+ };
7972
+ requestBody: {
7973
+ content: {
7974
+ "application/json": components["schemas"]["AppSettingsUpdateInput"];
7975
+ };
7976
+ };
7977
+ responses: {
7978
+ /** @description Successful Response */
7979
+ 200: {
7980
+ headers: {
7981
+ [name: string]: unknown;
7982
+ };
7983
+ content: {
7984
+ "application/json": components["schemas"]["AdminSettingsResponse"];
7985
+ };
7986
+ };
7987
+ /** @description Client Error */
7988
+ "4XX": {
7989
+ headers: {
7990
+ [name: string]: unknown;
7991
+ };
7992
+ content: {
7993
+ "application/json": components["schemas"]["ErrorResponse"];
7994
+ };
7995
+ };
7996
+ /** @description Server Error */
7997
+ "5XX": {
7998
+ headers: {
7999
+ [name: string]: unknown;
8000
+ };
8001
+ content: {
8002
+ "application/json": components["schemas"]["ErrorResponse"];
8003
+ };
8004
+ };
8005
+ };
8006
+ };
8007
+ get_setup_status_api_admin_setup_status_get: {
8008
+ parameters: {
8009
+ query?: never;
8010
+ header?: never;
8011
+ path?: never;
8012
+ cookie?: never;
8013
+ };
8014
+ requestBody?: never;
8015
+ responses: {
8016
+ /** @description Successful Response */
8017
+ 200: {
8018
+ headers: {
8019
+ [name: string]: unknown;
8020
+ };
8021
+ content: {
8022
+ "application/json": components["schemas"]["AdminSetupStatus"];
8023
+ };
8024
+ };
8025
+ /** @description Client Error */
8026
+ "4XX": {
8027
+ headers: {
8028
+ [name: string]: unknown;
8029
+ };
8030
+ content: {
8031
+ "application/json": components["schemas"]["ErrorResponse"];
8032
+ };
8033
+ };
8034
+ /** @description Server Error */
8035
+ "5XX": {
8036
+ headers: {
8037
+ [name: string]: unknown;
8038
+ };
8039
+ content: {
8040
+ "application/json": components["schemas"]["ErrorResponse"];
8041
+ };
8042
+ };
8043
+ };
8044
+ };
8045
+ get_status_api_admin_status_get: {
8046
+ parameters: {
8047
+ query?: never;
8048
+ header?: never;
8049
+ path?: never;
8050
+ cookie?: never;
8051
+ };
8052
+ requestBody?: never;
8053
+ responses: {
8054
+ /** @description Successful Response */
8055
+ 200: {
8056
+ headers: {
8057
+ [name: string]: unknown;
8058
+ };
8059
+ content: {
8060
+ "application/json": components["schemas"]["AdminStatus"];
8061
+ };
8062
+ };
8063
+ /** @description Client Error */
8064
+ "4XX": {
8065
+ headers: {
8066
+ [name: string]: unknown;
8067
+ };
8068
+ content: {
8069
+ "application/json": components["schemas"]["ErrorResponse"];
8070
+ };
8071
+ };
8072
+ /** @description Server Error */
8073
+ "5XX": {
8074
+ headers: {
8075
+ [name: string]: unknown;
8076
+ };
8077
+ content: {
8078
+ "application/json": components["schemas"]["ErrorResponse"];
8079
+ };
8080
+ };
8081
+ };
8082
+ };
8083
+ list_incidents_api_admin_status_incidents_get: {
8084
+ parameters: {
8085
+ query?: {
8086
+ limit?: number;
8087
+ };
8088
+ header?: never;
8089
+ path?: never;
8090
+ cookie?: never;
8091
+ };
8092
+ requestBody?: never;
8093
+ responses: {
8094
+ /** @description Successful Response */
8095
+ 200: {
8096
+ headers: {
8097
+ [name: string]: unknown;
8098
+ };
8099
+ content: {
8100
+ "application/json": components["schemas"]["Incident"][];
8101
+ };
8102
+ };
8103
+ /** @description Client Error */
8104
+ "4XX": {
8105
+ headers: {
8106
+ [name: string]: unknown;
8107
+ };
8108
+ content: {
8109
+ "application/json": components["schemas"]["ErrorResponse"];
8110
+ };
8111
+ };
8112
+ /** @description Server Error */
8113
+ "5XX": {
8114
+ headers: {
8115
+ [name: string]: unknown;
8116
+ };
8117
+ content: {
8118
+ "application/json": components["schemas"]["ErrorResponse"];
8119
+ };
8120
+ };
8121
+ };
8122
+ };
8123
+ enter_maintenance_api_admin_status_maintenance_post: {
8124
+ parameters: {
8125
+ query?: never;
8126
+ header?: never;
8127
+ path?: never;
8128
+ cookie?: never;
8129
+ };
8130
+ requestBody: {
8131
+ content: {
8132
+ "application/json": components["schemas"]["MaintenanceEnterInput"];
8133
+ };
8134
+ };
8135
+ responses: {
8136
+ /** @description Successful Response */
8137
+ 200: {
8138
+ headers: {
8139
+ [name: string]: unknown;
8140
+ };
8141
+ content: {
8142
+ "application/json": components["schemas"]["AdminStatus"];
6782
8143
  };
6783
8144
  };
6784
8145
  /** @description Client Error */
@@ -7511,57 +8872,6 @@ declare interface operations {
7511
8872
  };
7512
8873
  };
7513
8874
  };
7514
- authorize_user_api_auth_user_post: {
7515
- parameters: {
7516
- query?: never;
7517
- header?: never;
7518
- path?: never;
7519
- cookie?: never;
7520
- };
7521
- requestBody: {
7522
- content: {
7523
- "application/json": components["schemas"]["AuthorizeUserInput"];
7524
- };
7525
- };
7526
- responses: {
7527
- /** @description Successful Response */
7528
- 200: {
7529
- headers: {
7530
- [name: string]: unknown;
7531
- };
7532
- content: {
7533
- "application/json": components["schemas"]["AuthorizeUserResponse"];
7534
- };
7535
- };
7536
- /** @description A new user */
7537
- 201: {
7538
- headers: {
7539
- [name: string]: unknown;
7540
- };
7541
- content: {
7542
- "application/json": components["schemas"]["AuthorizeUserResponse"];
7543
- };
7544
- };
7545
- /** @description Client Error */
7546
- "4XX": {
7547
- headers: {
7548
- [name: string]: unknown;
7549
- };
7550
- content: {
7551
- "application/json": components["schemas"]["ErrorResponse"];
7552
- };
7553
- };
7554
- /** @description Server Error */
7555
- "5XX": {
7556
- headers: {
7557
- [name: string]: unknown;
7558
- };
7559
- content: {
7560
- "application/json": components["schemas"]["ErrorResponse"];
7561
- };
7562
- };
7563
- };
7564
- };
7565
8875
  chat_api_chat_post: {
7566
8876
  parameters: {
7567
8877
  query?: never;
@@ -8137,7 +9447,7 @@ declare interface operations {
8137
9447
  };
8138
9448
  };
8139
9449
  };
8140
- list_plans_api_integration_v1_plans_get: {
9450
+ list_connectors_api_connectors_get: {
8141
9451
  parameters: {
8142
9452
  query?: never;
8143
9453
  header?: never;
@@ -8152,7 +9462,7 @@ declare interface operations {
8152
9462
  [name: string]: unknown;
8153
9463
  };
8154
9464
  content: {
8155
- "application/json": components["schemas"]["PlanList"];
9465
+ "application/json": components["schemas"]["ConnectorListResponse"];
8156
9466
  };
8157
9467
  };
8158
9468
  /** @description Client Error */
@@ -8175,18 +9485,578 @@ declare interface operations {
8175
9485
  };
8176
9486
  };
8177
9487
  };
8178
- create_session_api_integration_v1_sessions_post: {
9488
+ connector_oauth_callback_api_connectors_oauth_callback_get: {
8179
9489
  parameters: {
8180
- query?: never;
9490
+ query: {
9491
+ state: string;
9492
+ code?: string | null;
9493
+ error?: string | null;
9494
+ };
8181
9495
  header?: never;
8182
9496
  path?: never;
8183
9497
  cookie?: never;
8184
9498
  };
8185
- requestBody: {
8186
- content: {
8187
- "application/json": components["schemas"]["SessionInput"];
9499
+ requestBody?: never;
9500
+ responses: {
9501
+ /** @description Successful Response */
9502
+ 307: {
9503
+ headers: {
9504
+ [name: string]: unknown;
9505
+ };
9506
+ content?: never;
9507
+ };
9508
+ /** @description Client Error */
9509
+ "4XX": {
9510
+ headers: {
9511
+ [name: string]: unknown;
9512
+ };
9513
+ content: {
9514
+ "application/json": components["schemas"]["ErrorResponse"];
9515
+ };
9516
+ };
9517
+ /** @description Server Error */
9518
+ "5XX": {
9519
+ headers: {
9520
+ [name: string]: unknown;
9521
+ };
9522
+ content: {
9523
+ "application/json": components["schemas"]["ErrorResponse"];
9524
+ };
9525
+ };
9526
+ };
9527
+ };
9528
+ create_user_mcp_connector_api_connectors_user_mcp_post: {
9529
+ parameters: {
9530
+ query?: never;
9531
+ header?: never;
9532
+ path?: never;
9533
+ cookie?: never;
9534
+ };
9535
+ requestBody: {
9536
+ content: {
9537
+ "application/json": components["schemas"]["UserMCPCreateInput"];
9538
+ };
9539
+ };
9540
+ responses: {
9541
+ /** @description Successful Response */
9542
+ 201: {
9543
+ headers: {
9544
+ [name: string]: unknown;
9545
+ };
9546
+ content: {
9547
+ "application/json": components["schemas"]["ConnectorView"];
9548
+ };
9549
+ };
9550
+ /** @description Client Error */
9551
+ "4XX": {
9552
+ headers: {
9553
+ [name: string]: unknown;
9554
+ };
9555
+ content: {
9556
+ "application/json": components["schemas"]["ErrorResponse"];
9557
+ };
9558
+ };
9559
+ /** @description Server Error */
9560
+ "5XX": {
9561
+ headers: {
9562
+ [name: string]: unknown;
9563
+ };
9564
+ content: {
9565
+ "application/json": components["schemas"]["ErrorResponse"];
9566
+ };
9567
+ };
9568
+ };
9569
+ };
9570
+ delete_user_mcp_connector_api_connectors_user_mcp__connector_id__delete: {
9571
+ parameters: {
9572
+ query?: never;
9573
+ header?: never;
9574
+ path: {
9575
+ connector_id: string;
9576
+ };
9577
+ cookie?: never;
9578
+ };
9579
+ requestBody?: never;
9580
+ responses: {
9581
+ /** @description Successful Response */
9582
+ 200: {
9583
+ headers: {
9584
+ [name: string]: unknown;
9585
+ };
9586
+ content: {
9587
+ "application/json": components["schemas"]["StatusResponse"];
9588
+ };
9589
+ };
9590
+ /** @description Client Error */
9591
+ "4XX": {
9592
+ headers: {
9593
+ [name: string]: unknown;
9594
+ };
9595
+ content: {
9596
+ "application/json": components["schemas"]["ErrorResponse"];
9597
+ };
9598
+ };
9599
+ /** @description Server Error */
9600
+ "5XX": {
9601
+ headers: {
9602
+ [name: string]: unknown;
9603
+ };
9604
+ content: {
9605
+ "application/json": components["schemas"]["ErrorResponse"];
9606
+ };
9607
+ };
9608
+ };
9609
+ };
9610
+ update_connector_api_connectors__connector_id__patch: {
9611
+ parameters: {
9612
+ query?: never;
9613
+ header?: never;
9614
+ path: {
9615
+ connector_id: string;
9616
+ };
9617
+ cookie?: never;
9618
+ };
9619
+ requestBody: {
9620
+ content: {
9621
+ "application/json": components["schemas"]["ConnectorToggleInput"];
9622
+ };
9623
+ };
9624
+ responses: {
9625
+ /** @description Successful Response */
9626
+ 200: {
9627
+ headers: {
9628
+ [name: string]: unknown;
9629
+ };
9630
+ content: {
9631
+ "application/json": components["schemas"]["ConnectorView"];
9632
+ };
9633
+ };
9634
+ /** @description Client Error */
9635
+ "4XX": {
9636
+ headers: {
9637
+ [name: string]: unknown;
9638
+ };
9639
+ content: {
9640
+ "application/json": components["schemas"]["ErrorResponse"];
9641
+ };
9642
+ };
9643
+ /** @description Server Error */
9644
+ "5XX": {
9645
+ headers: {
9646
+ [name: string]: unknown;
9647
+ };
9648
+ content: {
9649
+ "application/json": components["schemas"]["ErrorResponse"];
9650
+ };
9651
+ };
9652
+ };
9653
+ };
9654
+ connect_connector_api_connectors__connector_id__connect_post: {
9655
+ parameters: {
9656
+ query?: never;
9657
+ header?: never;
9658
+ path: {
9659
+ connector_id: string;
9660
+ };
9661
+ cookie?: never;
9662
+ };
9663
+ requestBody: {
9664
+ content: {
9665
+ "application/json": components["schemas"]["ConnectorConnectInput"];
9666
+ };
9667
+ };
9668
+ responses: {
9669
+ /** @description Successful Response */
9670
+ 200: {
9671
+ headers: {
9672
+ [name: string]: unknown;
9673
+ };
9674
+ content: {
9675
+ "application/json": components["schemas"]["ConnectorView"];
9676
+ };
9677
+ };
9678
+ /** @description Client Error */
9679
+ "4XX": {
9680
+ headers: {
9681
+ [name: string]: unknown;
9682
+ };
9683
+ content: {
9684
+ "application/json": components["schemas"]["ErrorResponse"];
9685
+ };
9686
+ };
9687
+ /** @description Server Error */
9688
+ "5XX": {
9689
+ headers: {
9690
+ [name: string]: unknown;
9691
+ };
9692
+ content: {
9693
+ "application/json": components["schemas"]["ErrorResponse"];
9694
+ };
9695
+ };
9696
+ };
9697
+ };
9698
+ disconnect_connector_api_connectors__connector_id__disconnect_post: {
9699
+ parameters: {
9700
+ query?: never;
9701
+ header?: never;
9702
+ path: {
9703
+ connector_id: string;
9704
+ };
9705
+ cookie?: never;
9706
+ };
9707
+ requestBody?: never;
9708
+ responses: {
9709
+ /** @description Successful Response */
9710
+ 200: {
9711
+ headers: {
9712
+ [name: string]: unknown;
9713
+ };
9714
+ content: {
9715
+ "application/json": components["schemas"]["ConnectorView"];
9716
+ };
9717
+ };
9718
+ /** @description Client Error */
9719
+ "4XX": {
9720
+ headers: {
9721
+ [name: string]: unknown;
9722
+ };
9723
+ content: {
9724
+ "application/json": components["schemas"]["ErrorResponse"];
9725
+ };
9726
+ };
9727
+ /** @description Server Error */
9728
+ "5XX": {
9729
+ headers: {
9730
+ [name: string]: unknown;
9731
+ };
9732
+ content: {
9733
+ "application/json": components["schemas"]["ErrorResponse"];
9734
+ };
9735
+ };
9736
+ };
9737
+ };
9738
+ start_connector_oauth_api_connectors__connector_id__oauth_start_post: {
9739
+ parameters: {
9740
+ query?: never;
9741
+ header?: never;
9742
+ path: {
9743
+ connector_id: string;
9744
+ };
9745
+ cookie?: never;
9746
+ };
9747
+ requestBody: {
9748
+ content: {
9749
+ "application/json": components["schemas"]["OAuthStartInput"];
9750
+ };
9751
+ };
9752
+ responses: {
9753
+ /** @description Successful Response */
9754
+ 200: {
9755
+ headers: {
9756
+ [name: string]: unknown;
9757
+ };
9758
+ content: {
9759
+ "application/json": components["schemas"]["OAuthStartResponse"];
9760
+ };
9761
+ };
9762
+ /** @description Client Error */
9763
+ "4XX": {
9764
+ headers: {
9765
+ [name: string]: unknown;
9766
+ };
9767
+ content: {
9768
+ "application/json": components["schemas"]["ErrorResponse"];
9769
+ };
9770
+ };
9771
+ /** @description Server Error */
9772
+ "5XX": {
9773
+ headers: {
9774
+ [name: string]: unknown;
9775
+ };
9776
+ content: {
9777
+ "application/json": components["schemas"]["ErrorResponse"];
9778
+ };
9779
+ };
9780
+ };
9781
+ };
9782
+ list_connector_tools_api_connectors__connector_id__tools_get: {
9783
+ parameters: {
9784
+ query?: never;
9785
+ header?: never;
9786
+ path: {
9787
+ connector_id: string;
9788
+ };
9789
+ cookie?: never;
9790
+ };
9791
+ requestBody?: never;
9792
+ responses: {
9793
+ /** @description Successful Response */
9794
+ 200: {
9795
+ headers: {
9796
+ [name: string]: unknown;
9797
+ };
9798
+ content: {
9799
+ "application/json": components["schemas"]["ConnectorToolsResponse"];
9800
+ };
9801
+ };
9802
+ /** @description Client Error */
9803
+ "4XX": {
9804
+ headers: {
9805
+ [name: string]: unknown;
9806
+ };
9807
+ content: {
9808
+ "application/json": components["schemas"]["ErrorResponse"];
9809
+ };
9810
+ };
9811
+ /** @description Server Error */
9812
+ "5XX": {
9813
+ headers: {
9814
+ [name: string]: unknown;
9815
+ };
9816
+ content: {
9817
+ "application/json": components["schemas"]["ErrorResponse"];
9818
+ };
9819
+ };
9820
+ };
9821
+ };
9822
+ list_plans_api_integration_v1_plans_get: {
9823
+ parameters: {
9824
+ query?: never;
9825
+ header?: never;
9826
+ path?: never;
9827
+ cookie?: never;
9828
+ };
9829
+ requestBody?: never;
9830
+ responses: {
9831
+ /** @description Successful Response */
9832
+ 200: {
9833
+ headers: {
9834
+ [name: string]: unknown;
9835
+ };
9836
+ content: {
9837
+ "application/json": components["schemas"]["PlanList"];
9838
+ };
9839
+ };
9840
+ /** @description Client Error */
9841
+ "4XX": {
9842
+ headers: {
9843
+ [name: string]: unknown;
9844
+ };
9845
+ content: {
9846
+ "application/json": components["schemas"]["ErrorResponse"];
9847
+ };
9848
+ };
9849
+ /** @description Server Error */
9850
+ "5XX": {
9851
+ headers: {
9852
+ [name: string]: unknown;
9853
+ };
9854
+ content: {
9855
+ "application/json": components["schemas"]["ErrorResponse"];
9856
+ };
9857
+ };
9858
+ };
9859
+ };
9860
+ create_session_api_integration_v1_sessions_post: {
9861
+ parameters: {
9862
+ query?: never;
9863
+ header?: never;
9864
+ path?: never;
9865
+ cookie?: never;
9866
+ };
9867
+ requestBody: {
9868
+ content: {
9869
+ "application/json": components["schemas"]["SessionInput"];
9870
+ };
9871
+ };
9872
+ responses: {
9873
+ /** @description Successful Response */
9874
+ 200: {
9875
+ headers: {
9876
+ [name: string]: unknown;
9877
+ };
9878
+ content: {
9879
+ "application/json": components["schemas"]["SessionResponse"];
9880
+ };
9881
+ };
9882
+ /** @description A new user */
9883
+ 201: {
9884
+ headers: {
9885
+ [name: string]: unknown;
9886
+ };
9887
+ content: {
9888
+ "application/json": components["schemas"]["SessionResponse"];
9889
+ };
9890
+ };
9891
+ /** @description Client Error */
9892
+ "4XX": {
9893
+ headers: {
9894
+ [name: string]: unknown;
9895
+ };
9896
+ content: {
9897
+ "application/json": components["schemas"]["ErrorResponse"];
9898
+ };
9899
+ };
9900
+ /** @description Server Error */
9901
+ "5XX": {
9902
+ headers: {
9903
+ [name: string]: unknown;
9904
+ };
9905
+ content: {
9906
+ "application/json": components["schemas"]["ErrorResponse"];
9907
+ };
9908
+ };
9909
+ };
9910
+ };
9911
+ get_user_api_integration_v1_users__external_id__get: {
9912
+ parameters: {
9913
+ query?: never;
9914
+ header?: never;
9915
+ path: {
9916
+ external_id: string;
9917
+ };
9918
+ cookie?: never;
9919
+ };
9920
+ requestBody?: never;
9921
+ responses: {
9922
+ /** @description Successful Response */
9923
+ 200: {
9924
+ headers: {
9925
+ [name: string]: unknown;
9926
+ };
9927
+ content: {
9928
+ "application/json": components["schemas"]["IntegrationUserResponse"];
9929
+ };
9930
+ };
9931
+ /** @description Client Error */
9932
+ "4XX": {
9933
+ headers: {
9934
+ [name: string]: unknown;
9935
+ };
9936
+ content: {
9937
+ "application/json": components["schemas"]["ErrorResponse"];
9938
+ };
9939
+ };
9940
+ /** @description Server Error */
9941
+ "5XX": {
9942
+ headers: {
9943
+ [name: string]: unknown;
9944
+ };
9945
+ content: {
9946
+ "application/json": components["schemas"]["ErrorResponse"];
9947
+ };
9948
+ };
9949
+ };
9950
+ };
9951
+ put_user_api_integration_v1_users__external_id__put: {
9952
+ parameters: {
9953
+ query?: never;
9954
+ header?: never;
9955
+ path: {
9956
+ external_id: string;
9957
+ };
9958
+ cookie?: never;
9959
+ };
9960
+ requestBody: {
9961
+ content: {
9962
+ "application/json": components["schemas"]["IntegrationUserInput"];
9963
+ };
9964
+ };
9965
+ responses: {
9966
+ /** @description Successful Response */
9967
+ 200: {
9968
+ headers: {
9969
+ [name: string]: unknown;
9970
+ };
9971
+ content: {
9972
+ "application/json": components["schemas"]["IntegrationUserResponse"];
9973
+ };
9974
+ };
9975
+ /** @description A new user */
9976
+ 201: {
9977
+ headers: {
9978
+ [name: string]: unknown;
9979
+ };
9980
+ content: {
9981
+ "application/json": components["schemas"]["IntegrationUserResponse"];
9982
+ };
9983
+ };
9984
+ /** @description Client Error */
9985
+ "4XX": {
9986
+ headers: {
9987
+ [name: string]: unknown;
9988
+ };
9989
+ content: {
9990
+ "application/json": components["schemas"]["ErrorResponse"];
9991
+ };
9992
+ };
9993
+ /** @description Server Error */
9994
+ "5XX": {
9995
+ headers: {
9996
+ [name: string]: unknown;
9997
+ };
9998
+ content: {
9999
+ "application/json": components["schemas"]["ErrorResponse"];
10000
+ };
10001
+ };
10002
+ };
10003
+ };
10004
+ grant_credits_api_integration_v1_users__external_id__credits_post: {
10005
+ parameters: {
10006
+ query?: never;
10007
+ header?: {
10008
+ "Idempotency-Key"?: string | null;
10009
+ };
10010
+ path: {
10011
+ external_id: string;
10012
+ };
10013
+ cookie?: never;
10014
+ };
10015
+ requestBody: {
10016
+ content: {
10017
+ "application/json": components["schemas"]["CreditsGrantInput"];
10018
+ };
10019
+ };
10020
+ responses: {
10021
+ /** @description Successful Response */
10022
+ 200: {
10023
+ headers: {
10024
+ [name: string]: unknown;
10025
+ };
10026
+ content: {
10027
+ "application/json": components["schemas"]["CreditsGrantResponse"];
10028
+ };
10029
+ };
10030
+ /** @description Client Error */
10031
+ "4XX": {
10032
+ headers: {
10033
+ [name: string]: unknown;
10034
+ };
10035
+ content: {
10036
+ "application/json": components["schemas"]["ErrorResponse"];
10037
+ };
10038
+ };
10039
+ /** @description Server Error */
10040
+ "5XX": {
10041
+ headers: {
10042
+ [name: string]: unknown;
10043
+ };
10044
+ content: {
10045
+ "application/json": components["schemas"]["ErrorResponse"];
10046
+ };
10047
+ };
10048
+ };
10049
+ };
10050
+ list_subscriptions_api_integration_v1_users__external_id__subscriptions_get: {
10051
+ parameters: {
10052
+ query?: never;
10053
+ header?: never;
10054
+ path: {
10055
+ external_id: string;
8188
10056
  };
10057
+ cookie?: never;
8189
10058
  };
10059
+ requestBody?: never;
8190
10060
  responses: {
8191
10061
  /** @description Successful Response */
8192
10062
  200: {
@@ -8194,16 +10064,61 @@ declare interface operations {
8194
10064
  [name: string]: unknown;
8195
10065
  };
8196
10066
  content: {
8197
- "application/json": components["schemas"]["SessionResponse"];
10067
+ "application/json": components["schemas"]["SubscriptionList"];
8198
10068
  };
8199
10069
  };
8200
- /** @description A new user */
10070
+ /** @description Client Error */
10071
+ "4XX": {
10072
+ headers: {
10073
+ [name: string]: unknown;
10074
+ };
10075
+ content: {
10076
+ "application/json": components["schemas"]["ErrorResponse"];
10077
+ };
10078
+ };
10079
+ /** @description Server Error */
10080
+ "5XX": {
10081
+ headers: {
10082
+ [name: string]: unknown;
10083
+ };
10084
+ content: {
10085
+ "application/json": components["schemas"]["ErrorResponse"];
10086
+ };
10087
+ };
10088
+ };
10089
+ };
10090
+ put_subscription_api_integration_v1_users__external_id__subscriptions__subscription_external_id__put: {
10091
+ parameters: {
10092
+ query?: never;
10093
+ header?: never;
10094
+ path: {
10095
+ external_id: string;
10096
+ subscription_external_id: string;
10097
+ };
10098
+ cookie?: never;
10099
+ };
10100
+ requestBody: {
10101
+ content: {
10102
+ "application/json": components["schemas"]["SubscriptionInput"];
10103
+ };
10104
+ };
10105
+ responses: {
10106
+ /** @description Successful Response */
10107
+ 200: {
10108
+ headers: {
10109
+ [name: string]: unknown;
10110
+ };
10111
+ content: {
10112
+ "application/json": components["schemas"]["SubscriptionPutResponse"];
10113
+ };
10114
+ };
10115
+ /** @description A new subscription */
8201
10116
  201: {
8202
10117
  headers: {
8203
10118
  [name: string]: unknown;
8204
10119
  };
8205
10120
  content: {
8206
- "application/json": components["schemas"]["SessionResponse"];
10121
+ "application/json": components["schemas"]["SubscriptionPutResponse"];
8207
10122
  };
8208
10123
  };
8209
10124
  /** @description Client Error */
@@ -8226,16 +10141,21 @@ declare interface operations {
8226
10141
  };
8227
10142
  };
8228
10143
  };
8229
- get_user_api_integration_v1_users__external_id__get: {
10144
+ cancel_subscription_api_integration_v1_users__external_id__subscriptions__subscription_external_id__cancel_post: {
8230
10145
  parameters: {
8231
10146
  query?: never;
8232
10147
  header?: never;
8233
10148
  path: {
8234
10149
  external_id: string;
10150
+ subscription_external_id: string;
8235
10151
  };
8236
10152
  cookie?: never;
8237
10153
  };
8238
- requestBody?: never;
10154
+ requestBody?: {
10155
+ content: {
10156
+ "application/json": components["schemas"]["CancelSubscriptionInput"] | null;
10157
+ };
10158
+ };
8239
10159
  responses: {
8240
10160
  /** @description Successful Response */
8241
10161
  200: {
@@ -8243,7 +10163,7 @@ declare interface operations {
8243
10163
  [name: string]: unknown;
8244
10164
  };
8245
10165
  content: {
8246
- "application/json": components["schemas"]["IntegrationUserResponse"];
10166
+ "application/json": components["schemas"]["SubscriptionCancelResponse"];
8247
10167
  };
8248
10168
  };
8249
10169
  /** @description Client Error */
@@ -8266,7 +10186,7 @@ declare interface operations {
8266
10186
  };
8267
10187
  };
8268
10188
  };
8269
- put_user_api_integration_v1_users__external_id__put: {
10189
+ get_usage_api_integration_v1_users__external_id__usage_get: {
8270
10190
  parameters: {
8271
10191
  query?: never;
8272
10192
  header?: never;
@@ -8275,9 +10195,47 @@ declare interface operations {
8275
10195
  };
8276
10196
  cookie?: never;
8277
10197
  };
10198
+ requestBody?: never;
10199
+ responses: {
10200
+ /** @description Successful Response */
10201
+ 200: {
10202
+ headers: {
10203
+ [name: string]: unknown;
10204
+ };
10205
+ content: {
10206
+ "application/json": components["schemas"]["EntitlementStatus"];
10207
+ };
10208
+ };
10209
+ /** @description Client Error */
10210
+ "4XX": {
10211
+ headers: {
10212
+ [name: string]: unknown;
10213
+ };
10214
+ content: {
10215
+ "application/json": components["schemas"]["ErrorResponse"];
10216
+ };
10217
+ };
10218
+ /** @description Server Error */
10219
+ "5XX": {
10220
+ headers: {
10221
+ [name: string]: unknown;
10222
+ };
10223
+ content: {
10224
+ "application/json": components["schemas"]["ErrorResponse"];
10225
+ };
10226
+ };
10227
+ };
10228
+ };
10229
+ public_login_api_public_auth_login_post: {
10230
+ parameters: {
10231
+ query?: never;
10232
+ header?: never;
10233
+ path?: never;
10234
+ cookie?: never;
10235
+ };
8278
10236
  requestBody: {
8279
10237
  content: {
8280
- "application/json": components["schemas"]["IntegrationUserInput"];
10238
+ "application/json": components["schemas"]["LoginInput"];
8281
10239
  };
8282
10240
  };
8283
10241
  responses: {
@@ -8287,16 +10245,130 @@ declare interface operations {
8287
10245
  [name: string]: unknown;
8288
10246
  };
8289
10247
  content: {
8290
- "application/json": components["schemas"]["IntegrationUserResponse"];
10248
+ "application/json": components["schemas"]["AuthTokenResponse"];
8291
10249
  };
8292
10250
  };
8293
- /** @description A new user */
10251
+ /** @description Client Error */
10252
+ "4XX": {
10253
+ headers: {
10254
+ [name: string]: unknown;
10255
+ };
10256
+ content: {
10257
+ "application/json": components["schemas"]["ErrorResponse"];
10258
+ };
10259
+ };
10260
+ /** @description Server Error */
10261
+ "5XX": {
10262
+ headers: {
10263
+ [name: string]: unknown;
10264
+ };
10265
+ content: {
10266
+ "application/json": components["schemas"]["ErrorResponse"];
10267
+ };
10268
+ };
10269
+ };
10270
+ };
10271
+ public_register_api_public_auth_register_post: {
10272
+ parameters: {
10273
+ query?: never;
10274
+ header?: never;
10275
+ path?: never;
10276
+ cookie?: never;
10277
+ };
10278
+ requestBody: {
10279
+ content: {
10280
+ "application/json": components["schemas"]["RegisterUserInput"];
10281
+ };
10282
+ };
10283
+ responses: {
10284
+ /** @description Successful Response */
8294
10285
  201: {
8295
10286
  headers: {
8296
10287
  [name: string]: unknown;
8297
10288
  };
8298
10289
  content: {
8299
- "application/json": components["schemas"]["IntegrationUserResponse"];
10290
+ "application/json": components["schemas"]["AuthTokenResponse"];
10291
+ };
10292
+ };
10293
+ /** @description Client Error */
10294
+ "4XX": {
10295
+ headers: {
10296
+ [name: string]: unknown;
10297
+ };
10298
+ content: {
10299
+ "application/json": components["schemas"]["ErrorResponse"];
10300
+ };
10301
+ };
10302
+ /** @description Server Error */
10303
+ "5XX": {
10304
+ headers: {
10305
+ [name: string]: unknown;
10306
+ };
10307
+ content: {
10308
+ "application/json": components["schemas"]["ErrorResponse"];
10309
+ };
10310
+ };
10311
+ };
10312
+ };
10313
+ get_shared_thread_api_public_shared__share_id__get: {
10314
+ parameters: {
10315
+ query?: never;
10316
+ header?: never;
10317
+ path: {
10318
+ share_id: string;
10319
+ };
10320
+ cookie?: never;
10321
+ };
10322
+ requestBody?: never;
10323
+ responses: {
10324
+ /** @description Successful Response */
10325
+ 200: {
10326
+ headers: {
10327
+ [name: string]: unknown;
10328
+ };
10329
+ content: {
10330
+ "application/json": components["schemas"]["SharedThreadResponse"];
10331
+ };
10332
+ };
10333
+ /** @description Client Error */
10334
+ "4XX": {
10335
+ headers: {
10336
+ [name: string]: unknown;
10337
+ };
10338
+ content: {
10339
+ "application/json": components["schemas"]["ErrorResponse"];
10340
+ };
10341
+ };
10342
+ /** @description Server Error */
10343
+ "5XX": {
10344
+ headers: {
10345
+ [name: string]: unknown;
10346
+ };
10347
+ content: {
10348
+ "application/json": components["schemas"]["ErrorResponse"];
10349
+ };
10350
+ };
10351
+ };
10352
+ };
10353
+ get_shared_attachment_api_public_shared__share_id__attachments__attachment_id__get: {
10354
+ parameters: {
10355
+ query?: never;
10356
+ header?: never;
10357
+ path: {
10358
+ share_id: string;
10359
+ attachment_id: string;
10360
+ };
10361
+ cookie?: never;
10362
+ };
10363
+ requestBody?: never;
10364
+ responses: {
10365
+ /** @description The file, with the media type it was stored with */
10366
+ 200: {
10367
+ headers: {
10368
+ [name: string]: unknown;
10369
+ };
10370
+ content: {
10371
+ "application/octet-stream": unknown;
8300
10372
  };
8301
10373
  };
8302
10374
  /** @description Client Error */
@@ -8319,22 +10391,14 @@ declare interface operations {
8319
10391
  };
8320
10392
  };
8321
10393
  };
8322
- grant_credits_api_integration_v1_users__external_id__credits_post: {
10394
+ list_schedules_api_schedules_get: {
8323
10395
  parameters: {
8324
10396
  query?: never;
8325
- header?: {
8326
- "Idempotency-Key"?: string | null;
8327
- };
8328
- path: {
8329
- external_id: string;
8330
- };
10397
+ header?: never;
10398
+ path?: never;
8331
10399
  cookie?: never;
8332
10400
  };
8333
- requestBody: {
8334
- content: {
8335
- "application/json": components["schemas"]["CreditsGrantInput"];
8336
- };
8337
- };
10401
+ requestBody?: never;
8338
10402
  responses: {
8339
10403
  /** @description Successful Response */
8340
10404
  200: {
@@ -8342,7 +10406,7 @@ declare interface operations {
8342
10406
  [name: string]: unknown;
8343
10407
  };
8344
10408
  content: {
8345
- "application/json": components["schemas"]["CreditsGrantResponse"];
10409
+ "application/json": components["schemas"]["ScheduleListResponse"];
8346
10410
  };
8347
10411
  };
8348
10412
  /** @description Client Error */
@@ -8365,24 +10429,26 @@ declare interface operations {
8365
10429
  };
8366
10430
  };
8367
10431
  };
8368
- list_subscriptions_api_integration_v1_users__external_id__subscriptions_get: {
10432
+ create_schedule_api_schedules_post: {
8369
10433
  parameters: {
8370
10434
  query?: never;
8371
10435
  header?: never;
8372
- path: {
8373
- external_id: string;
8374
- };
10436
+ path?: never;
8375
10437
  cookie?: never;
8376
10438
  };
8377
- requestBody?: never;
10439
+ requestBody: {
10440
+ content: {
10441
+ "application/json": components["schemas"]["ScheduleCreateInput"];
10442
+ };
10443
+ };
8378
10444
  responses: {
8379
10445
  /** @description Successful Response */
8380
- 200: {
10446
+ 201: {
8381
10447
  headers: {
8382
10448
  [name: string]: unknown;
8383
10449
  };
8384
10450
  content: {
8385
- "application/json": components["schemas"]["SubscriptionList"];
10451
+ "application/json": components["schemas"]["ScheduleView"];
8386
10452
  };
8387
10453
  };
8388
10454
  /** @description Client Error */
@@ -8405,21 +10471,16 @@ declare interface operations {
8405
10471
  };
8406
10472
  };
8407
10473
  };
8408
- put_subscription_api_integration_v1_users__external_id__subscriptions__subscription_external_id__put: {
10474
+ get_schedule_api_schedules__schedule_id__get: {
8409
10475
  parameters: {
8410
10476
  query?: never;
8411
10477
  header?: never;
8412
10478
  path: {
8413
- external_id: string;
8414
- subscription_external_id: string;
10479
+ schedule_id: string;
8415
10480
  };
8416
10481
  cookie?: never;
8417
10482
  };
8418
- requestBody: {
8419
- content: {
8420
- "application/json": components["schemas"]["SubscriptionInput"];
8421
- };
8422
- };
10483
+ requestBody?: never;
8423
10484
  responses: {
8424
10485
  /** @description Successful Response */
8425
10486
  200: {
@@ -8427,16 +10488,7 @@ declare interface operations {
8427
10488
  [name: string]: unknown;
8428
10489
  };
8429
10490
  content: {
8430
- "application/json": components["schemas"]["SubscriptionPutResponse"];
8431
- };
8432
- };
8433
- /** @description A new subscription */
8434
- 201: {
8435
- headers: {
8436
- [name: string]: unknown;
8437
- };
8438
- content: {
8439
- "application/json": components["schemas"]["SubscriptionPutResponse"];
10491
+ "application/json": components["schemas"]["ScheduleView"];
8440
10492
  };
8441
10493
  };
8442
10494
  /** @description Client Error */
@@ -8459,21 +10511,16 @@ declare interface operations {
8459
10511
  };
8460
10512
  };
8461
10513
  };
8462
- cancel_subscription_api_integration_v1_users__external_id__subscriptions__subscription_external_id__cancel_post: {
10514
+ delete_schedule_api_schedules__schedule_id__delete: {
8463
10515
  parameters: {
8464
10516
  query?: never;
8465
10517
  header?: never;
8466
10518
  path: {
8467
- external_id: string;
8468
- subscription_external_id: string;
10519
+ schedule_id: string;
8469
10520
  };
8470
10521
  cookie?: never;
8471
10522
  };
8472
- requestBody?: {
8473
- content: {
8474
- "application/json": components["schemas"]["CancelSubscriptionInput"] | null;
8475
- };
8476
- };
10523
+ requestBody?: never;
8477
10524
  responses: {
8478
10525
  /** @description Successful Response */
8479
10526
  200: {
@@ -8481,7 +10528,7 @@ declare interface operations {
8481
10528
  [name: string]: unknown;
8482
10529
  };
8483
10530
  content: {
8484
- "application/json": components["schemas"]["SubscriptionCancelResponse"];
10531
+ "application/json": components["schemas"]["StatusResponse"];
8485
10532
  };
8486
10533
  };
8487
10534
  /** @description Client Error */
@@ -8504,16 +10551,20 @@ declare interface operations {
8504
10551
  };
8505
10552
  };
8506
10553
  };
8507
- get_usage_api_integration_v1_users__external_id__usage_get: {
10554
+ update_schedule_api_schedules__schedule_id__patch: {
8508
10555
  parameters: {
8509
10556
  query?: never;
8510
10557
  header?: never;
8511
10558
  path: {
8512
- external_id: string;
10559
+ schedule_id: string;
8513
10560
  };
8514
10561
  cookie?: never;
8515
10562
  };
8516
- requestBody?: never;
10563
+ requestBody: {
10564
+ content: {
10565
+ "application/json": components["schemas"]["ScheduleUpdateInput"];
10566
+ };
10567
+ };
8517
10568
  responses: {
8518
10569
  /** @description Successful Response */
8519
10570
  200: {
@@ -8521,7 +10572,7 @@ declare interface operations {
8521
10572
  [name: string]: unknown;
8522
10573
  };
8523
10574
  content: {
8524
- "application/json": components["schemas"]["EntitlementStatus"];
10575
+ "application/json": components["schemas"]["ScheduleView"];
8525
10576
  };
8526
10577
  };
8527
10578
  /** @description Client Error */
@@ -8544,18 +10595,16 @@ declare interface operations {
8544
10595
  };
8545
10596
  };
8546
10597
  };
8547
- public_login_api_public_auth_login_post: {
10598
+ pause_schedule_api_schedules__schedule_id__pause_post: {
8548
10599
  parameters: {
8549
10600
  query?: never;
8550
10601
  header?: never;
8551
- path?: never;
8552
- cookie?: never;
8553
- };
8554
- requestBody: {
8555
- content: {
8556
- "application/json": components["schemas"]["LoginInput"];
10602
+ path: {
10603
+ schedule_id: string;
8557
10604
  };
10605
+ cookie?: never;
8558
10606
  };
10607
+ requestBody?: never;
8559
10608
  responses: {
8560
10609
  /** @description Successful Response */
8561
10610
  200: {
@@ -8563,7 +10612,7 @@ declare interface operations {
8563
10612
  [name: string]: unknown;
8564
10613
  };
8565
10614
  content: {
8566
- "application/json": components["schemas"]["AuthTokenResponse"];
10615
+ "application/json": components["schemas"]["ScheduleView"];
8567
10616
  };
8568
10617
  };
8569
10618
  /** @description Client Error */
@@ -8586,26 +10635,24 @@ declare interface operations {
8586
10635
  };
8587
10636
  };
8588
10637
  };
8589
- public_register_api_public_auth_register_post: {
10638
+ resume_schedule_api_schedules__schedule_id__resume_post: {
8590
10639
  parameters: {
8591
10640
  query?: never;
8592
10641
  header?: never;
8593
- path?: never;
8594
- cookie?: never;
8595
- };
8596
- requestBody: {
8597
- content: {
8598
- "application/json": components["schemas"]["RegisterUserInput"];
10642
+ path: {
10643
+ schedule_id: string;
8599
10644
  };
10645
+ cookie?: never;
8600
10646
  };
10647
+ requestBody?: never;
8601
10648
  responses: {
8602
10649
  /** @description Successful Response */
8603
- 201: {
10650
+ 200: {
8604
10651
  headers: {
8605
10652
  [name: string]: unknown;
8606
10653
  };
8607
10654
  content: {
8608
- "application/json": components["schemas"]["AuthTokenResponse"];
10655
+ "application/json": components["schemas"]["ScheduleView"];
8609
10656
  };
8610
10657
  };
8611
10658
  /** @description Client Error */
@@ -8628,12 +10675,12 @@ declare interface operations {
8628
10675
  };
8629
10676
  };
8630
10677
  };
8631
- get_shared_thread_api_public_shared__share_id__get: {
10678
+ run_schedule_now_api_schedules__schedule_id__run_post: {
8632
10679
  parameters: {
8633
10680
  query?: never;
8634
10681
  header?: never;
8635
10682
  path: {
8636
- share_id: string;
10683
+ schedule_id: string;
8637
10684
  };
8638
10685
  cookie?: never;
8639
10686
  };
@@ -8645,7 +10692,7 @@ declare interface operations {
8645
10692
  [name: string]: unknown;
8646
10693
  };
8647
10694
  content: {
8648
- "application/json": components["schemas"]["SharedThreadResponse"];
10695
+ "application/json": components["schemas"]["ScheduleRunView"];
8649
10696
  };
8650
10697
  };
8651
10698
  /** @description Client Error */
@@ -8668,25 +10715,26 @@ declare interface operations {
8668
10715
  };
8669
10716
  };
8670
10717
  };
8671
- get_shared_attachment_api_public_shared__share_id__attachments__attachment_id__get: {
10718
+ list_schedule_runs_api_schedules__schedule_id__runs_get: {
8672
10719
  parameters: {
8673
- query?: never;
10720
+ query?: {
10721
+ limit?: number;
10722
+ };
8674
10723
  header?: never;
8675
10724
  path: {
8676
- share_id: string;
8677
- attachment_id: string;
10725
+ schedule_id: string;
8678
10726
  };
8679
10727
  cookie?: never;
8680
10728
  };
8681
10729
  requestBody?: never;
8682
10730
  responses: {
8683
- /** @description The file, with the media type it was stored with */
10731
+ /** @description Successful Response */
8684
10732
  200: {
8685
10733
  headers: {
8686
10734
  [name: string]: unknown;
8687
10735
  };
8688
10736
  content: {
8689
- "application/octet-stream": unknown;
10737
+ "application/json": components["schemas"]["ScheduleRunListResponse"];
8690
10738
  };
8691
10739
  };
8692
10740
  /** @description Client Error */
@@ -9441,6 +11489,74 @@ declare interface paths {
9441
11489
  patch?: never;
9442
11490
  trace?: never;
9443
11491
  };
11492
+ "/api/admin/connectors": {
11493
+ parameters: {
11494
+ query?: never;
11495
+ header?: never;
11496
+ path?: never;
11497
+ cookie?: never;
11498
+ };
11499
+ /**
11500
+ * Admin List Connectors
11501
+ * @description List code-defined and admin-managed connectors.
11502
+ */
11503
+ get: operations["admin_list_connectors_api_admin_connectors_get"];
11504
+ put?: never;
11505
+ /**
11506
+ * Admin Create Connector
11507
+ * @description Register a new admin-managed remote MCP connector.
11508
+ */
11509
+ post: operations["admin_create_connector_api_admin_connectors_post"];
11510
+ delete?: never;
11511
+ options?: never;
11512
+ head?: never;
11513
+ patch?: never;
11514
+ trace?: never;
11515
+ };
11516
+ "/api/admin/connectors/{connector_id}": {
11517
+ parameters: {
11518
+ query?: never;
11519
+ header?: never;
11520
+ path?: never;
11521
+ cookie?: never;
11522
+ };
11523
+ get?: never;
11524
+ put?: never;
11525
+ post?: never;
11526
+ /**
11527
+ * Admin Delete Connector
11528
+ * @description Delete an admin-managed connector and all associated user connections.
11529
+ */
11530
+ delete: operations["admin_delete_connector_api_admin_connectors__connector_id__delete"];
11531
+ options?: never;
11532
+ head?: never;
11533
+ /**
11534
+ * Admin Update Connector
11535
+ * @description Update an admin-managed connector (or toggle ``global_enabled`` on a code connector).
11536
+ */
11537
+ patch: operations["admin_update_connector_api_admin_connectors__connector_id__patch"];
11538
+ trace?: never;
11539
+ };
11540
+ "/api/admin/connectors/{connector_id}/test": {
11541
+ parameters: {
11542
+ query?: never;
11543
+ header?: never;
11544
+ path?: never;
11545
+ cookie?: never;
11546
+ };
11547
+ get?: never;
11548
+ put?: never;
11549
+ /**
11550
+ * Admin Test Connector
11551
+ * @description Test connectivity and tool discovery for an admin-managed connector.
11552
+ */
11553
+ post: operations["admin_test_connector_api_admin_connectors__connector_id__test_post"];
11554
+ delete?: never;
11555
+ options?: never;
11556
+ head?: never;
11557
+ patch?: never;
11558
+ trace?: never;
11559
+ };
9444
11560
  "/api/admin/jobs": {
9445
11561
  parameters: {
9446
11562
  query?: never;
@@ -9869,6 +11985,106 @@ declare interface paths {
9869
11985
  patch?: never;
9870
11986
  trace?: never;
9871
11987
  };
11988
+ "/api/admin/schedules": {
11989
+ parameters: {
11990
+ query?: never;
11991
+ header?: never;
11992
+ path?: never;
11993
+ cookie?: never;
11994
+ };
11995
+ /**
11996
+ * Admin List Schedules
11997
+ * @description List scheduled tasks across all users for the admin Operations tab.
11998
+ */
11999
+ get: operations["admin_list_schedules_api_admin_schedules_get"];
12000
+ put?: never;
12001
+ post?: never;
12002
+ delete?: never;
12003
+ options?: never;
12004
+ head?: never;
12005
+ patch?: never;
12006
+ trace?: never;
12007
+ };
12008
+ "/api/admin/schedules/{schedule_id}": {
12009
+ parameters: {
12010
+ query?: never;
12011
+ header?: never;
12012
+ path?: never;
12013
+ cookie?: never;
12014
+ };
12015
+ get?: never;
12016
+ put?: never;
12017
+ post?: never;
12018
+ /**
12019
+ * Admin Delete Schedule
12020
+ * @description Delete any user's scheduled task as an administrator.
12021
+ */
12022
+ delete: operations["admin_delete_schedule_api_admin_schedules__schedule_id__delete"];
12023
+ options?: never;
12024
+ head?: never;
12025
+ patch?: never;
12026
+ trace?: never;
12027
+ };
12028
+ "/api/admin/schedules/{schedule_id}/pause": {
12029
+ parameters: {
12030
+ query?: never;
12031
+ header?: never;
12032
+ path?: never;
12033
+ cookie?: never;
12034
+ };
12035
+ get?: never;
12036
+ put?: never;
12037
+ /**
12038
+ * Admin Pause Schedule
12039
+ * @description Pause any user's scheduled task as an administrator.
12040
+ */
12041
+ post: operations["admin_pause_schedule_api_admin_schedules__schedule_id__pause_post"];
12042
+ delete?: never;
12043
+ options?: never;
12044
+ head?: never;
12045
+ patch?: never;
12046
+ trace?: never;
12047
+ };
12048
+ "/api/admin/schedules/{schedule_id}/resume": {
12049
+ parameters: {
12050
+ query?: never;
12051
+ header?: never;
12052
+ path?: never;
12053
+ cookie?: never;
12054
+ };
12055
+ get?: never;
12056
+ put?: never;
12057
+ /**
12058
+ * Admin Resume Schedule
12059
+ * @description Resume any user's scheduled task as an administrator.
12060
+ */
12061
+ post: operations["admin_resume_schedule_api_admin_schedules__schedule_id__resume_post"];
12062
+ delete?: never;
12063
+ options?: never;
12064
+ head?: never;
12065
+ patch?: never;
12066
+ trace?: never;
12067
+ };
12068
+ "/api/admin/schedules/{schedule_id}/runs": {
12069
+ parameters: {
12070
+ query?: never;
12071
+ header?: never;
12072
+ path?: never;
12073
+ cookie?: never;
12074
+ };
12075
+ /**
12076
+ * Admin List Schedule Runs
12077
+ * @description List recent runs of any user's scheduled task.
12078
+ */
12079
+ get: operations["admin_list_schedule_runs_api_admin_schedules__schedule_id__runs_get"];
12080
+ put?: never;
12081
+ post?: never;
12082
+ delete?: never;
12083
+ options?: never;
12084
+ head?: never;
12085
+ patch?: never;
12086
+ trace?: never;
12087
+ };
9872
12088
  "/api/admin/settings": {
9873
12089
  parameters: {
9874
12090
  query?: never;
@@ -10280,38 +12496,6 @@ declare interface paths {
10280
12496
  patch?: never;
10281
12497
  trace?: never;
10282
12498
  };
10283
- "/api/auth/user": {
10284
- parameters: {
10285
- query?: never;
10286
- header?: never;
10287
- path?: never;
10288
- cookie?: never;
10289
- };
10290
- get?: never;
10291
- put?: never;
10292
- /**
10293
- * Authorize User
10294
- * @description Authorize or register a user by an enabled login field (default: username), or by
10295
- * ``external_id``, and return a JWT. Protected by an API key.
10296
- *
10297
- * Deprecated in favour of ``/api/integration/v1`` (``PUT /users/{external_id}`` and
10298
- * ``POST /sessions``), which separates the profile, the plan and the session.
10299
- *
10300
- * Safe to call on every sign-in with the same body:
10301
- *
10302
- * - ``external_id``, when sent, decides which user this is. A user found by login field
10303
- * that has no external id yet adopts it.
10304
- * - ``subscription`` is written declaratively, keyed by its ``external_id``.
10305
- *
10306
- * ``balance`` and ``recharge_policy`` were removed in 0.16 and are refused.
10307
- */
10308
- post: operations["authorize_user_api_auth_user_post"];
10309
- delete?: never;
10310
- options?: never;
10311
- head?: never;
10312
- patch?: never;
10313
- trace?: never;
10314
- };
10315
12499
  "/api/chat": {
10316
12500
  parameters: {
10317
12501
  query?: never;
@@ -10581,6 +12765,186 @@ declare interface paths {
10581
12765
  patch?: never;
10582
12766
  trace?: never;
10583
12767
  };
12768
+ "/api/connectors": {
12769
+ parameters: {
12770
+ query?: never;
12771
+ header?: never;
12772
+ path?: never;
12773
+ cookie?: never;
12774
+ };
12775
+ /**
12776
+ * List Connectors
12777
+ * @description List connectors available to the current user and their connection statuses.
12778
+ */
12779
+ get: operations["list_connectors_api_connectors_get"];
12780
+ put?: never;
12781
+ post?: never;
12782
+ delete?: never;
12783
+ options?: never;
12784
+ head?: never;
12785
+ patch?: never;
12786
+ trace?: never;
12787
+ };
12788
+ "/api/connectors/oauth/callback": {
12789
+ parameters: {
12790
+ query?: never;
12791
+ header?: never;
12792
+ path?: never;
12793
+ cookie?: never;
12794
+ };
12795
+ /**
12796
+ * Connector Oauth Callback
12797
+ * @description Handle the OAuth2 redirect callback using a single-use server-stored state.
12798
+ */
12799
+ get: operations["connector_oauth_callback_api_connectors_oauth_callback_get"];
12800
+ put?: never;
12801
+ post?: never;
12802
+ delete?: never;
12803
+ options?: never;
12804
+ head?: never;
12805
+ patch?: never;
12806
+ trace?: never;
12807
+ };
12808
+ "/api/connectors/user-mcp": {
12809
+ parameters: {
12810
+ query?: never;
12811
+ header?: never;
12812
+ path?: never;
12813
+ cookie?: never;
12814
+ };
12815
+ get?: never;
12816
+ put?: never;
12817
+ /**
12818
+ * Create User Mcp Connector
12819
+ * @description Register a custom remote MCP server owned by the current user.
12820
+ */
12821
+ post: operations["create_user_mcp_connector_api_connectors_user_mcp_post"];
12822
+ delete?: never;
12823
+ options?: never;
12824
+ head?: never;
12825
+ patch?: never;
12826
+ trace?: never;
12827
+ };
12828
+ "/api/connectors/user-mcp/{connector_id}": {
12829
+ parameters: {
12830
+ query?: never;
12831
+ header?: never;
12832
+ path?: never;
12833
+ cookie?: never;
12834
+ };
12835
+ get?: never;
12836
+ put?: never;
12837
+ post?: never;
12838
+ /**
12839
+ * Delete User Mcp Connector
12840
+ * @description Delete a user-owned custom remote MCP server.
12841
+ */
12842
+ delete: operations["delete_user_mcp_connector_api_connectors_user_mcp__connector_id__delete"];
12843
+ options?: never;
12844
+ head?: never;
12845
+ patch?: never;
12846
+ trace?: never;
12847
+ };
12848
+ "/api/connectors/{connector_id}": {
12849
+ parameters: {
12850
+ query?: never;
12851
+ header?: never;
12852
+ path?: never;
12853
+ cookie?: never;
12854
+ };
12855
+ get?: never;
12856
+ put?: never;
12857
+ post?: never;
12858
+ delete?: never;
12859
+ options?: never;
12860
+ head?: never;
12861
+ /**
12862
+ * Update Connector
12863
+ * @description Enable/disable a connector or set per-tool approval overrides.
12864
+ */
12865
+ patch: operations["update_connector_api_connectors__connector_id__patch"];
12866
+ trace?: never;
12867
+ };
12868
+ "/api/connectors/{connector_id}/connect": {
12869
+ parameters: {
12870
+ query?: never;
12871
+ header?: never;
12872
+ path?: never;
12873
+ cookie?: never;
12874
+ };
12875
+ get?: never;
12876
+ put?: never;
12877
+ /**
12878
+ * Connect Connector
12879
+ * @description Store an encrypted API key for a connector and enable it.
12880
+ */
12881
+ post: operations["connect_connector_api_connectors__connector_id__connect_post"];
12882
+ delete?: never;
12883
+ options?: never;
12884
+ head?: never;
12885
+ patch?: never;
12886
+ trace?: never;
12887
+ };
12888
+ "/api/connectors/{connector_id}/disconnect": {
12889
+ parameters: {
12890
+ query?: never;
12891
+ header?: never;
12892
+ path?: never;
12893
+ cookie?: never;
12894
+ };
12895
+ get?: never;
12896
+ put?: never;
12897
+ /**
12898
+ * Disconnect Connector
12899
+ * @description Wipe stored credentials for a connector and disable it.
12900
+ */
12901
+ post: operations["disconnect_connector_api_connectors__connector_id__disconnect_post"];
12902
+ delete?: never;
12903
+ options?: never;
12904
+ head?: never;
12905
+ patch?: never;
12906
+ trace?: never;
12907
+ };
12908
+ "/api/connectors/{connector_id}/oauth/start": {
12909
+ parameters: {
12910
+ query?: never;
12911
+ header?: never;
12912
+ path?: never;
12913
+ cookie?: never;
12914
+ };
12915
+ get?: never;
12916
+ put?: never;
12917
+ /**
12918
+ * Start Connector Oauth
12919
+ * @description Start an OAuth2 + PKCE authorization flow for a connector.
12920
+ */
12921
+ post: operations["start_connector_oauth_api_connectors__connector_id__oauth_start_post"];
12922
+ delete?: never;
12923
+ options?: never;
12924
+ head?: never;
12925
+ patch?: never;
12926
+ trace?: never;
12927
+ };
12928
+ "/api/connectors/{connector_id}/tools": {
12929
+ parameters: {
12930
+ query?: never;
12931
+ header?: never;
12932
+ path?: never;
12933
+ cookie?: never;
12934
+ };
12935
+ /**
12936
+ * List Connector Tools
12937
+ * @description Discover tools provided by a connected connector.
12938
+ */
12939
+ get: operations["list_connector_tools_api_connectors__connector_id__tools_get"];
12940
+ put?: never;
12941
+ post?: never;
12942
+ delete?: never;
12943
+ options?: never;
12944
+ head?: never;
12945
+ patch?: never;
12946
+ trace?: never;
12947
+ };
10584
12948
  "/api/integration/v1/plans": {
10585
12949
  parameters: {
10586
12950
  query?: never;
@@ -10839,6 +13203,138 @@ declare interface paths {
10839
13203
  patch?: never;
10840
13204
  trace?: never;
10841
13205
  };
13206
+ "/api/schedules": {
13207
+ parameters: {
13208
+ query?: never;
13209
+ header?: never;
13210
+ path?: never;
13211
+ cookie?: never;
13212
+ };
13213
+ /**
13214
+ * List Schedules
13215
+ * @description List all scheduled tasks owned by the current user.
13216
+ */
13217
+ get: operations["list_schedules_api_schedules_get"];
13218
+ put?: never;
13219
+ /**
13220
+ * Create Schedule
13221
+ * @description Create a new scheduled task for the current user.
13222
+ */
13223
+ post: operations["create_schedule_api_schedules_post"];
13224
+ delete?: never;
13225
+ options?: never;
13226
+ head?: never;
13227
+ patch?: never;
13228
+ trace?: never;
13229
+ };
13230
+ "/api/schedules/{schedule_id}": {
13231
+ parameters: {
13232
+ query?: never;
13233
+ header?: never;
13234
+ path?: never;
13235
+ cookie?: never;
13236
+ };
13237
+ /**
13238
+ * Get Schedule
13239
+ * @description Fetch a single scheduled task owned by the current user.
13240
+ */
13241
+ get: operations["get_schedule_api_schedules__schedule_id__get"];
13242
+ put?: never;
13243
+ post?: never;
13244
+ /**
13245
+ * Delete Schedule
13246
+ * @description Delete a scheduled task and its run history.
13247
+ */
13248
+ delete: operations["delete_schedule_api_schedules__schedule_id__delete"];
13249
+ options?: never;
13250
+ head?: never;
13251
+ /**
13252
+ * Update Schedule
13253
+ * @description Update a scheduled task owned by the current user.
13254
+ */
13255
+ patch: operations["update_schedule_api_schedules__schedule_id__patch"];
13256
+ trace?: never;
13257
+ };
13258
+ "/api/schedules/{schedule_id}/pause": {
13259
+ parameters: {
13260
+ query?: never;
13261
+ header?: never;
13262
+ path?: never;
13263
+ cookie?: never;
13264
+ };
13265
+ get?: never;
13266
+ put?: never;
13267
+ /**
13268
+ * Pause Schedule
13269
+ * @description Pause a scheduled task.
13270
+ */
13271
+ post: operations["pause_schedule_api_schedules__schedule_id__pause_post"];
13272
+ delete?: never;
13273
+ options?: never;
13274
+ head?: never;
13275
+ patch?: never;
13276
+ trace?: never;
13277
+ };
13278
+ "/api/schedules/{schedule_id}/resume": {
13279
+ parameters: {
13280
+ query?: never;
13281
+ header?: never;
13282
+ path?: never;
13283
+ cookie?: never;
13284
+ };
13285
+ get?: never;
13286
+ put?: never;
13287
+ /**
13288
+ * Resume Schedule
13289
+ * @description Resume a paused scheduled task.
13290
+ */
13291
+ post: operations["resume_schedule_api_schedules__schedule_id__resume_post"];
13292
+ delete?: never;
13293
+ options?: never;
13294
+ head?: never;
13295
+ patch?: never;
13296
+ trace?: never;
13297
+ };
13298
+ "/api/schedules/{schedule_id}/run": {
13299
+ parameters: {
13300
+ query?: never;
13301
+ header?: never;
13302
+ path?: never;
13303
+ cookie?: never;
13304
+ };
13305
+ get?: never;
13306
+ put?: never;
13307
+ /**
13308
+ * Run Schedule Now
13309
+ * @description Trigger an immediate run of a scheduled task.
13310
+ */
13311
+ post: operations["run_schedule_now_api_schedules__schedule_id__run_post"];
13312
+ delete?: never;
13313
+ options?: never;
13314
+ head?: never;
13315
+ patch?: never;
13316
+ trace?: never;
13317
+ };
13318
+ "/api/schedules/{schedule_id}/runs": {
13319
+ parameters: {
13320
+ query?: never;
13321
+ header?: never;
13322
+ path?: never;
13323
+ cookie?: never;
13324
+ };
13325
+ /**
13326
+ * List Schedule Runs
13327
+ * @description List recent runs of a scheduled task.
13328
+ */
13329
+ get: operations["list_schedule_runs_api_schedules__schedule_id__runs_get"];
13330
+ put?: never;
13331
+ post?: never;
13332
+ delete?: never;
13333
+ options?: never;
13334
+ head?: never;
13335
+ patch?: never;
13336
+ trace?: never;
13337
+ };
10842
13338
  "/api/status": {
10843
13339
  parameters: {
10844
13340
  query?: never;
@@ -10981,9 +13477,6 @@ declare type QueryParams<O> = ParametersOf<O> extends {
10981
13477
  /** Context the user attached to a message, as a `data-reference` part carries it. */
10982
13478
  declare type ReferenceData = Schemas['ReferenceData'];
10983
13479
 
10984
- /** Why the backend would refuse `file`, or `null` if it would take it. */
10985
- export declare function rejectAttachment(file: Pick<File, 'type' | 'size'>, limits: AttachmentLimits): AttachmentRejection | null;
10986
-
10987
13480
  declare type RequestBody<O> = O extends {
10988
13481
  requestBody?: infer RB;
10989
13482
  } ? NonNullable<RB> : never;
@@ -11047,6 +13540,12 @@ declare type Routes = {
11047
13540
  */
11048
13541
  declare type RunOptions = NonNullable<ChatRequestSchema['options']>;
11049
13542
 
13543
+ /** Request body to create a scheduled task. */
13544
+ declare type ScheduleCreateInput = Schemas['ScheduleCreateInput'];
13545
+
13546
+ /** Request body to update a scheduled task. */
13547
+ declare type ScheduleUpdateInput = Schemas['ScheduleUpdateInput'];
13548
+
11050
13549
  declare type Schemas = components['schemas'];
11051
13550
 
11052
13551
  /** A message to send: its text, the files uploaded for it, and what it quotes. */
@@ -11058,6 +13557,13 @@ declare interface SendInput {
11058
13557
  voiceInputs?: string[];
11059
13558
  }
11060
13559
 
13560
+ /**
13561
+ * `next`, with every object or array in it whose content equals the one at the same place in
13562
+ * `previous` replaced by that one. What didn't change keeps its identity, so whoever compares by
13563
+ * identity sees only what did.
13564
+ */
13565
+ export declare function shareUnchanged<T>(previous: unknown, next: T): T;
13566
+
11061
13567
  /** What a quoted source's text is recognized by when it's looked for again. */
11062
13568
  export declare const sourceTextSignature: (value: string) => string;
11063
13569
 
@@ -11220,20 +13726,17 @@ export declare type Timeout = number | false;
11220
13726
  /** The thread's new title (`data-title`). */
11221
13727
  declare type TitleData = Schemas['TitleData'];
11222
13728
 
11223
- /**
11224
- * A `Date` as a `datetime-local` value (`2026-10-18T14:05`) in the browser's own clock:
11225
- * always Gregorian, whatever calendar it was picked in.
11226
- */
11227
- export declare function toLocalInput(date: Date): string;
11228
-
11229
13729
  /**
11230
13730
  * The user's answer to a tool call that asked for approval: the `approval.id` of its
11231
13731
  * `approval-requested` part, whether they approved it, and why, if they said. The model reads a
11232
13732
  * denial's reason as the call's result.
11233
13733
  */
11234
13734
  declare interface ToolApprovalResponse {
13735
+ /** Identifier of the pending approval request (`part.approval.id`). */
11235
13736
  id: string;
13737
+ /** Whether the user approved executing the tool call. */
11236
13738
  approved: boolean;
13739
+ /** Optional explanation sent back to the model when denied. */
11237
13740
  reason?: string;
11238
13741
  }
11239
13742
 
@@ -11242,7 +13745,9 @@ declare interface ToolApprovalResponse {
11242
13745
  * answers it with. The server checks `output` against the tool's declared return type.
11243
13746
  */
11244
13747
  declare interface ToolOutputResponse {
13748
+ /** Identifier of the pending client tool call (`part.toolCallId`). */
11245
13749
  toolCallId: string;
13750
+ /** Result payload returned to the backend for the tool call. */
11246
13751
  output: unknown;
11247
13752
  }
11248
13753
 
@@ -11291,6 +13796,9 @@ declare interface UploadInit {
11291
13796
  onProgress?: (fraction: number) => void;
11292
13797
  }
11293
13798
 
13799
+ /** Request body to register a custom remote MCP server. */
13800
+ declare type UserMCPCreateInput = Schemas['UserMCPCreateInput'];
13801
+
11294
13802
  /** Request body for `POST /users/me/reports`. */
11295
13803
  declare type UserReportInput = Schemas['UserReportCreateInput'];
11296
13804
 
@@ -11357,10 +13865,4 @@ declare interface VoiceRecorderState {
11357
13865
  */
11358
13866
  export declare function warnOnceInDevelopment(key: string, message: string): void;
11359
13867
 
11360
- /**
11361
- * The weekday a week starts on in `language` (0 = Sunday … 6 = Saturday): Saturday in the
11362
- * Persian and Arabic-speaking world, Sunday in English, Monday elsewhere.
11363
- */
11364
- export declare function weekStart(language: string | undefined | null): number;
11365
-
11366
13868
  export { }