@arbidocs/client 0.4.105 → 0.4.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +524 -4
- package/dist/index.d.ts +524 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -6650,6 +6650,129 @@ interface paths {
|
|
|
6650
6650
|
patch?: never;
|
|
6651
6651
|
trace?: never;
|
|
6652
6652
|
};
|
|
6653
|
+
'/v1/mail/drafts/editor': {
|
|
6654
|
+
parameters: {
|
|
6655
|
+
query?: never;
|
|
6656
|
+
header?: never;
|
|
6657
|
+
path?: never;
|
|
6658
|
+
cookie?: never;
|
|
6659
|
+
};
|
|
6660
|
+
get?: never;
|
|
6661
|
+
put?: never;
|
|
6662
|
+
/**
|
|
6663
|
+
* Open Draft Editor
|
|
6664
|
+
* @description The Word editor on a draft's body (see ``src.core.native_mail.rooms``). A locked room answers 423 with its
|
|
6665
|
+
* ``sealed_key``: the browser unwraps it, seals it to the session and calls again with ``key``.
|
|
6666
|
+
*/
|
|
6667
|
+
post: operations['open_draft_editor_v1_mail_drafts_editor_post'];
|
|
6668
|
+
delete?: never;
|
|
6669
|
+
options?: never;
|
|
6670
|
+
head?: never;
|
|
6671
|
+
patch?: never;
|
|
6672
|
+
trace?: never;
|
|
6673
|
+
};
|
|
6674
|
+
'/v1/mail/drafts/editor/projects': {
|
|
6675
|
+
parameters: {
|
|
6676
|
+
query?: never;
|
|
6677
|
+
header?: never;
|
|
6678
|
+
path?: never;
|
|
6679
|
+
cookie?: never;
|
|
6680
|
+
};
|
|
6681
|
+
/**
|
|
6682
|
+
* Draft Editor Projects
|
|
6683
|
+
* @description The projects an email's AI work can be billed to: the person's own first, then each matter (the project of a
|
|
6684
|
+
* workspace they own or collaborate in).
|
|
6685
|
+
*/
|
|
6686
|
+
get: operations['draft_editor_projects_v1_mail_drafts_editor_projects_get'];
|
|
6687
|
+
put?: never;
|
|
6688
|
+
post?: never;
|
|
6689
|
+
delete?: never;
|
|
6690
|
+
options?: never;
|
|
6691
|
+
head?: never;
|
|
6692
|
+
patch?: never;
|
|
6693
|
+
trace?: never;
|
|
6694
|
+
};
|
|
6695
|
+
'/v1/mail/drafts/editor/{room_id}/project': {
|
|
6696
|
+
parameters: {
|
|
6697
|
+
query?: never;
|
|
6698
|
+
header?: never;
|
|
6699
|
+
path?: never;
|
|
6700
|
+
cookie?: never;
|
|
6701
|
+
};
|
|
6702
|
+
get?: never;
|
|
6703
|
+
/**
|
|
6704
|
+
* Set Draft Editor Project
|
|
6705
|
+
* @description Bill this draft's AI work to another project the person may bill (None: their own).
|
|
6706
|
+
*/
|
|
6707
|
+
put: operations['set_draft_editor_project_v1_mail_drafts_editor__room_id__project_put'];
|
|
6708
|
+
post?: never;
|
|
6709
|
+
delete?: never;
|
|
6710
|
+
options?: never;
|
|
6711
|
+
head?: never;
|
|
6712
|
+
patch?: never;
|
|
6713
|
+
trace?: never;
|
|
6714
|
+
};
|
|
6715
|
+
'/v1/mail/drafts/editor/{room_id}/body': {
|
|
6716
|
+
parameters: {
|
|
6717
|
+
query?: never;
|
|
6718
|
+
header?: never;
|
|
6719
|
+
path?: never;
|
|
6720
|
+
cookie?: never;
|
|
6721
|
+
};
|
|
6722
|
+
get?: never;
|
|
6723
|
+
put?: never;
|
|
6724
|
+
/**
|
|
6725
|
+
* Draft Editor Body
|
|
6726
|
+
* @description The editor's body as text and HTML, for a client that builds the message itself (secure delivery
|
|
6727
|
+
* encrypts it in the browser). ``final`` refuses (409) while suggestions wait.
|
|
6728
|
+
*/
|
|
6729
|
+
post: operations['draft_editor_body_v1_mail_drafts_editor__room_id__body_post'];
|
|
6730
|
+
delete?: never;
|
|
6731
|
+
options?: never;
|
|
6732
|
+
head?: never;
|
|
6733
|
+
patch?: never;
|
|
6734
|
+
trace?: never;
|
|
6735
|
+
};
|
|
6736
|
+
'/v1/mail/drafts/editor/{room_id}/save': {
|
|
6737
|
+
parameters: {
|
|
6738
|
+
query?: never;
|
|
6739
|
+
header?: never;
|
|
6740
|
+
path?: never;
|
|
6741
|
+
cookie?: never;
|
|
6742
|
+
};
|
|
6743
|
+
get?: never;
|
|
6744
|
+
put?: never;
|
|
6745
|
+
/**
|
|
6746
|
+
* Save Draft Editor
|
|
6747
|
+
* @description Save the editor's body as the draft. Suggestions still waiting in the editor stay out of it.
|
|
6748
|
+
*/
|
|
6749
|
+
post: operations['save_draft_editor_v1_mail_drafts_editor__room_id__save_post'];
|
|
6750
|
+
delete?: never;
|
|
6751
|
+
options?: never;
|
|
6752
|
+
head?: never;
|
|
6753
|
+
patch?: never;
|
|
6754
|
+
trace?: never;
|
|
6755
|
+
};
|
|
6756
|
+
'/v1/mail/drafts/editor/{room_id}/send': {
|
|
6757
|
+
parameters: {
|
|
6758
|
+
query?: never;
|
|
6759
|
+
header?: never;
|
|
6760
|
+
path?: never;
|
|
6761
|
+
cookie?: never;
|
|
6762
|
+
};
|
|
6763
|
+
get?: never;
|
|
6764
|
+
put?: never;
|
|
6765
|
+
/**
|
|
6766
|
+
* Send Draft Editor
|
|
6767
|
+
* @description Send the editor's body. Refused (409) while suggestions wait: a suggestion is never sent unreviewed.
|
|
6768
|
+
*/
|
|
6769
|
+
post: operations['send_draft_editor_v1_mail_drafts_editor__room_id__send_post'];
|
|
6770
|
+
delete?: never;
|
|
6771
|
+
options?: never;
|
|
6772
|
+
head?: never;
|
|
6773
|
+
patch?: never;
|
|
6774
|
+
trace?: never;
|
|
6775
|
+
};
|
|
6653
6776
|
}
|
|
6654
6777
|
type webhooks = Record<string, never>;
|
|
6655
6778
|
interface components {
|
|
@@ -13824,6 +13947,8 @@ interface components {
|
|
|
13824
13947
|
delivery_status?: ('sent' | 'delivered' | 'delayed' | 'partially_bounced' | 'bounced') | null;
|
|
13825
13948
|
/** Delivery */
|
|
13826
13949
|
delivery?: components['schemas']['MailDeliveryRecipient'][];
|
|
13950
|
+
/** Folder */
|
|
13951
|
+
folder?: string | null;
|
|
13827
13952
|
};
|
|
13828
13953
|
/** MailMessagePage */
|
|
13829
13954
|
MailMessagePage: {
|
|
@@ -14157,7 +14282,7 @@ interface components {
|
|
|
14157
14282
|
input: string;
|
|
14158
14283
|
/** Tools */
|
|
14159
14284
|
tools?: {
|
|
14160
|
-
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'];
|
|
14285
|
+
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'] | components['schemas']['MailContextTool'];
|
|
14161
14286
|
};
|
|
14162
14287
|
/**
|
|
14163
14288
|
* Workspace Ext Id
|
|
@@ -14246,7 +14371,7 @@ interface components {
|
|
|
14246
14371
|
content: string;
|
|
14247
14372
|
/** Tools */
|
|
14248
14373
|
tools?: {
|
|
14249
|
-
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'];
|
|
14374
|
+
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'] | components['schemas']['MailContextTool'];
|
|
14250
14375
|
};
|
|
14251
14376
|
/** Config Ext Id */
|
|
14252
14377
|
config_ext_id?: string | null;
|
|
@@ -14356,7 +14481,7 @@ interface components {
|
|
|
14356
14481
|
content: string;
|
|
14357
14482
|
/** Tools */
|
|
14358
14483
|
tools?: {
|
|
14359
|
-
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'];
|
|
14484
|
+
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'] | components['schemas']['MailContextTool'];
|
|
14360
14485
|
};
|
|
14361
14486
|
/** Config Ext Id */
|
|
14362
14487
|
config_ext_id?: string | null;
|
|
@@ -17445,6 +17570,7 @@ interface components {
|
|
|
17445
17570
|
detail_create_artifact?: components['schemas']['CreateArtifactDetail'] | null;
|
|
17446
17571
|
detail_ask_user?: components['schemas']['AskUserDetail'] | null;
|
|
17447
17572
|
detail_goal_progress?: components['schemas']['GoalProgressDetail'] | null;
|
|
17573
|
+
mail_draft?: components['schemas']['MailDraftSSEEvent'] | null;
|
|
17448
17574
|
};
|
|
17449
17575
|
/**
|
|
17450
17576
|
* SSOConfigResponse
|
|
@@ -20089,7 +20215,7 @@ interface components {
|
|
|
20089
20215
|
content: string;
|
|
20090
20216
|
/** Tools */
|
|
20091
20217
|
tools?: {
|
|
20092
|
-
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'];
|
|
20218
|
+
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'] | components['schemas']['MailContextTool'];
|
|
20093
20219
|
};
|
|
20094
20220
|
/** Config Ext Id */
|
|
20095
20221
|
config_ext_id?: string | null;
|
|
@@ -20619,6 +20745,7 @@ interface components {
|
|
|
20619
20745
|
notification?: components['schemas']['NotificationResponse'] | null;
|
|
20620
20746
|
auth?: components['schemas']['AuthMessage'] | null;
|
|
20621
20747
|
send_message?: components['schemas']['SendMessageRequest'] | null;
|
|
20748
|
+
mail_draft_replaced?: components['schemas']['MailDraftReplacedMessage'] | null;
|
|
20622
20749
|
};
|
|
20623
20750
|
/** WeeklyHours */
|
|
20624
20751
|
WeeklyHours: {
|
|
@@ -21149,6 +21276,206 @@ interface components {
|
|
|
21149
21276
|
* @enum {string}
|
|
21150
21277
|
*/
|
|
21151
21278
|
src__models__workflow__AuthMode: 'run_now_temp' | 'scheduled_require_auth' | 'scheduled_permanent';
|
|
21279
|
+
/**
|
|
21280
|
+
* MailDraftReplacedMessage
|
|
21281
|
+
* @description A native mail draft was saved again and now has a new id: a composer showing ``old_id`` follows it.
|
|
21282
|
+
*/
|
|
21283
|
+
MailDraftReplacedMessage: {
|
|
21284
|
+
/**
|
|
21285
|
+
* Type
|
|
21286
|
+
* @default mail.draft_replaced
|
|
21287
|
+
* @constant
|
|
21288
|
+
*/
|
|
21289
|
+
type: 'mail.draft_replaced';
|
|
21290
|
+
/** Old Id */
|
|
21291
|
+
old_id: string;
|
|
21292
|
+
/** New Id */
|
|
21293
|
+
new_id: string;
|
|
21294
|
+
};
|
|
21295
|
+
/**
|
|
21296
|
+
* MailDraftSSEEvent
|
|
21297
|
+
* @description The agent saved an email draft in the person's own mailbox (a reply it drafted, or recipients it changed).
|
|
21298
|
+
*
|
|
21299
|
+
* The frontend opens the draft beside the chat, in the mail panel, where its body is a Word document: later turns
|
|
21300
|
+
* edit it there as tracked changes. ``replaces`` is the draft this one replaced (a draft's id changes when saved).
|
|
21301
|
+
*
|
|
21302
|
+
* Example:
|
|
21303
|
+
* {"type": "arbi.mail_draft", "draft_id": "4f0c…", "replaces": null, "message_ext_id": "msg-abc12345"}
|
|
21304
|
+
*/
|
|
21305
|
+
MailDraftSSEEvent: {
|
|
21306
|
+
/**
|
|
21307
|
+
* T
|
|
21308
|
+
* @description Seconds elapsed since stream start.
|
|
21309
|
+
*/
|
|
21310
|
+
t?: number | null;
|
|
21311
|
+
/**
|
|
21312
|
+
* Type
|
|
21313
|
+
* @default arbi.mail_draft
|
|
21314
|
+
* @constant
|
|
21315
|
+
*/
|
|
21316
|
+
type: 'arbi.mail_draft';
|
|
21317
|
+
/**
|
|
21318
|
+
* Draft Id
|
|
21319
|
+
* @description The draft's id in the native mailbox (eml-…)
|
|
21320
|
+
*/
|
|
21321
|
+
draft_id?: string | null;
|
|
21322
|
+
/**
|
|
21323
|
+
* Replaces
|
|
21324
|
+
* @description The draft this one replaced, if any
|
|
21325
|
+
*/
|
|
21326
|
+
replaces?: string | null;
|
|
21327
|
+
/**
|
|
21328
|
+
* Message Ext Id
|
|
21329
|
+
* @description The assistant message that saved it
|
|
21330
|
+
*/
|
|
21331
|
+
message_ext_id?: string | null;
|
|
21332
|
+
/**
|
|
21333
|
+
* Reply To
|
|
21334
|
+
* @description The email this draft answers (eml-…), if any
|
|
21335
|
+
*/
|
|
21336
|
+
reply_to?: string | null;
|
|
21337
|
+
/**
|
|
21338
|
+
* Room Id
|
|
21339
|
+
* @description The new reply's Word body room (mail_…), not yet a draft
|
|
21340
|
+
*/
|
|
21341
|
+
room_id?: string | null;
|
|
21342
|
+
};
|
|
21343
|
+
/**
|
|
21344
|
+
* MailProject
|
|
21345
|
+
* @description A project an email's AI work can be billed to: the person's own, or a matter they own or collaborate in.
|
|
21346
|
+
*/
|
|
21347
|
+
MailProject: {
|
|
21348
|
+
/** External Id */
|
|
21349
|
+
external_id: string;
|
|
21350
|
+
/** Name */
|
|
21351
|
+
name: string;
|
|
21352
|
+
/**
|
|
21353
|
+
* Personal
|
|
21354
|
+
* @default false
|
|
21355
|
+
*/
|
|
21356
|
+
personal: boolean;
|
|
21357
|
+
};
|
|
21358
|
+
/**
|
|
21359
|
+
* MailRoomBody
|
|
21360
|
+
* @description The editor's body as the message's parts: ``final`` refuses while suggestions wait (to send it).
|
|
21361
|
+
*/
|
|
21362
|
+
MailRoomBody: {
|
|
21363
|
+
/** State */
|
|
21364
|
+
state?: string | null;
|
|
21365
|
+
/**
|
|
21366
|
+
* Final
|
|
21367
|
+
* @default true
|
|
21368
|
+
*/
|
|
21369
|
+
final: boolean;
|
|
21370
|
+
};
|
|
21371
|
+
/** MailRoomBodyRead */
|
|
21372
|
+
MailRoomBodyRead: {
|
|
21373
|
+
/** Text */
|
|
21374
|
+
text: string;
|
|
21375
|
+
/** Html */
|
|
21376
|
+
html: string;
|
|
21377
|
+
};
|
|
21378
|
+
/**
|
|
21379
|
+
* MailRoomOpen
|
|
21380
|
+
* @description Open a draft's body in the Word editor (``draft_id``), or a new message's (none). ``room_id`` reopens a room
|
|
21381
|
+
* this person already has (a reconnect, or a new message not saved yet, which has no draft id).
|
|
21382
|
+
*/
|
|
21383
|
+
MailRoomOpen: {
|
|
21384
|
+
/** Draft Id */
|
|
21385
|
+
draft_id?: string | null;
|
|
21386
|
+
/** Room Id */
|
|
21387
|
+
room_id?: string | null;
|
|
21388
|
+
/** Key */
|
|
21389
|
+
key?: string | null;
|
|
21390
|
+
/**
|
|
21391
|
+
* Text
|
|
21392
|
+
* @default
|
|
21393
|
+
*/
|
|
21394
|
+
text: string;
|
|
21395
|
+
/** Html */
|
|
21396
|
+
html?: string | null;
|
|
21397
|
+
/** Workspace Ext Id */
|
|
21398
|
+
workspace_ext_id?: string | null;
|
|
21399
|
+
};
|
|
21400
|
+
/**
|
|
21401
|
+
* MailRoomProject
|
|
21402
|
+
* @description Bill this draft's AI work to ``project_ext_id`` (None: the person's own project).
|
|
21403
|
+
*/
|
|
21404
|
+
MailRoomProject: {
|
|
21405
|
+
/** Project Ext Id */
|
|
21406
|
+
project_ext_id?: string | null;
|
|
21407
|
+
/** Key */
|
|
21408
|
+
key?: string | null;
|
|
21409
|
+
};
|
|
21410
|
+
/**
|
|
21411
|
+
* MailRoomSave
|
|
21412
|
+
* @description Save the editor's body as the draft: ``compose`` carries everything but the body (text and HTML come from the
|
|
21413
|
+
* room); ``state`` is the browser's editor state the export must include.
|
|
21414
|
+
*/
|
|
21415
|
+
MailRoomSave: {
|
|
21416
|
+
compose: components['schemas']['MailCompose'];
|
|
21417
|
+
/** State */
|
|
21418
|
+
state?: string | null;
|
|
21419
|
+
};
|
|
21420
|
+
/** MailRoomSend */
|
|
21421
|
+
MailRoomSend: {
|
|
21422
|
+
compose: components['schemas']['MailSend'];
|
|
21423
|
+
/** State */
|
|
21424
|
+
state?: string | null;
|
|
21425
|
+
};
|
|
21426
|
+
/**
|
|
21427
|
+
* MailRoomSession
|
|
21428
|
+
* @description A collaboration session on a draft's body, as the editor's document session (``/v1/editor/{id}/session``).
|
|
21429
|
+
*/
|
|
21430
|
+
MailRoomSession: {
|
|
21431
|
+
/** Room Id */
|
|
21432
|
+
room_id: string;
|
|
21433
|
+
/** Token */
|
|
21434
|
+
token: string;
|
|
21435
|
+
/** Expires In */
|
|
21436
|
+
expires_in: number;
|
|
21437
|
+
/** Websocket Path */
|
|
21438
|
+
websocket_path: string;
|
|
21439
|
+
/** Can Edit */
|
|
21440
|
+
can_edit: boolean;
|
|
21441
|
+
/** Identity */
|
|
21442
|
+
identity: {
|
|
21443
|
+
[key: string]: unknown;
|
|
21444
|
+
};
|
|
21445
|
+
/** Filename */
|
|
21446
|
+
filename: string;
|
|
21447
|
+
/** Draft Id */
|
|
21448
|
+
draft_id?: string | null;
|
|
21449
|
+
project?: components['schemas']['MailProject'] | null;
|
|
21450
|
+
};
|
|
21451
|
+
/** MailContextTool */
|
|
21452
|
+
MailContextTool: {
|
|
21453
|
+
/**
|
|
21454
|
+
* @description discriminator enum property added by openapi-typescript
|
|
21455
|
+
* @enum {string}
|
|
21456
|
+
*/
|
|
21457
|
+
name: 'mail_context';
|
|
21458
|
+
/**
|
|
21459
|
+
* Description
|
|
21460
|
+
* @default email in this turn's context
|
|
21461
|
+
*/
|
|
21462
|
+
description: string;
|
|
21463
|
+
tool_args: components['schemas']['MailContextToolArgs'];
|
|
21464
|
+
};
|
|
21465
|
+
/**
|
|
21466
|
+
* MailContextToolArgs
|
|
21467
|
+
* @description The email a turn is about — sibling of ``RetrievalFullContextToolArgs.doc_ext_ids``: a pointer (plaintext,
|
|
21468
|
+
* like a document id); the email itself stays encrypted in the person's mailbox.
|
|
21469
|
+
*/
|
|
21470
|
+
MailContextToolArgs: {
|
|
21471
|
+
/** Mail Ext Id */
|
|
21472
|
+
mail_ext_id: string;
|
|
21473
|
+
/**
|
|
21474
|
+
* Reply
|
|
21475
|
+
* @default false
|
|
21476
|
+
*/
|
|
21477
|
+
reply: boolean;
|
|
21478
|
+
};
|
|
21152
21479
|
};
|
|
21153
21480
|
responses: never;
|
|
21154
21481
|
parameters: never;
|
|
@@ -32271,6 +32598,199 @@ interface operations {
|
|
|
32271
32598
|
};
|
|
32272
32599
|
};
|
|
32273
32600
|
};
|
|
32601
|
+
open_draft_editor_v1_mail_drafts_editor_post: {
|
|
32602
|
+
parameters: {
|
|
32603
|
+
query?: never;
|
|
32604
|
+
header?: never;
|
|
32605
|
+
path?: never;
|
|
32606
|
+
cookie?: never;
|
|
32607
|
+
};
|
|
32608
|
+
requestBody: {
|
|
32609
|
+
content: {
|
|
32610
|
+
'application/json': components['schemas']['MailRoomOpen'];
|
|
32611
|
+
};
|
|
32612
|
+
};
|
|
32613
|
+
responses: {
|
|
32614
|
+
/** @description Successful Response */
|
|
32615
|
+
200: {
|
|
32616
|
+
headers: {
|
|
32617
|
+
[name: string]: unknown;
|
|
32618
|
+
};
|
|
32619
|
+
content: {
|
|
32620
|
+
'application/json': components['schemas']['MailRoomSession'];
|
|
32621
|
+
};
|
|
32622
|
+
};
|
|
32623
|
+
/** @description Validation Error */
|
|
32624
|
+
422: {
|
|
32625
|
+
headers: {
|
|
32626
|
+
[name: string]: unknown;
|
|
32627
|
+
};
|
|
32628
|
+
content: {
|
|
32629
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
32630
|
+
};
|
|
32631
|
+
};
|
|
32632
|
+
};
|
|
32633
|
+
};
|
|
32634
|
+
draft_editor_projects_v1_mail_drafts_editor_projects_get: {
|
|
32635
|
+
parameters: {
|
|
32636
|
+
query?: never;
|
|
32637
|
+
header?: never;
|
|
32638
|
+
path?: never;
|
|
32639
|
+
cookie?: never;
|
|
32640
|
+
};
|
|
32641
|
+
requestBody?: never;
|
|
32642
|
+
responses: {
|
|
32643
|
+
/** @description Successful Response */
|
|
32644
|
+
200: {
|
|
32645
|
+
headers: {
|
|
32646
|
+
[name: string]: unknown;
|
|
32647
|
+
};
|
|
32648
|
+
content: {
|
|
32649
|
+
'application/json': components['schemas']['MailProject'][];
|
|
32650
|
+
};
|
|
32651
|
+
};
|
|
32652
|
+
};
|
|
32653
|
+
};
|
|
32654
|
+
set_draft_editor_project_v1_mail_drafts_editor__room_id__project_put: {
|
|
32655
|
+
parameters: {
|
|
32656
|
+
query?: never;
|
|
32657
|
+
header?: never;
|
|
32658
|
+
path: {
|
|
32659
|
+
room_id: string;
|
|
32660
|
+
};
|
|
32661
|
+
cookie?: never;
|
|
32662
|
+
};
|
|
32663
|
+
requestBody: {
|
|
32664
|
+
content: {
|
|
32665
|
+
'application/json': components['schemas']['MailRoomProject'];
|
|
32666
|
+
};
|
|
32667
|
+
};
|
|
32668
|
+
responses: {
|
|
32669
|
+
/** @description Successful Response */
|
|
32670
|
+
200: {
|
|
32671
|
+
headers: {
|
|
32672
|
+
[name: string]: unknown;
|
|
32673
|
+
};
|
|
32674
|
+
content: {
|
|
32675
|
+
'application/json': components['schemas']['MailProject'];
|
|
32676
|
+
};
|
|
32677
|
+
};
|
|
32678
|
+
/** @description Validation Error */
|
|
32679
|
+
422: {
|
|
32680
|
+
headers: {
|
|
32681
|
+
[name: string]: unknown;
|
|
32682
|
+
};
|
|
32683
|
+
content: {
|
|
32684
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
32685
|
+
};
|
|
32686
|
+
};
|
|
32687
|
+
};
|
|
32688
|
+
};
|
|
32689
|
+
draft_editor_body_v1_mail_drafts_editor__room_id__body_post: {
|
|
32690
|
+
parameters: {
|
|
32691
|
+
query?: never;
|
|
32692
|
+
header?: never;
|
|
32693
|
+
path: {
|
|
32694
|
+
room_id: string;
|
|
32695
|
+
};
|
|
32696
|
+
cookie?: never;
|
|
32697
|
+
};
|
|
32698
|
+
requestBody: {
|
|
32699
|
+
content: {
|
|
32700
|
+
'application/json': components['schemas']['MailRoomBody'];
|
|
32701
|
+
};
|
|
32702
|
+
};
|
|
32703
|
+
responses: {
|
|
32704
|
+
/** @description Successful Response */
|
|
32705
|
+
200: {
|
|
32706
|
+
headers: {
|
|
32707
|
+
[name: string]: unknown;
|
|
32708
|
+
};
|
|
32709
|
+
content: {
|
|
32710
|
+
'application/json': components['schemas']['MailRoomBodyRead'];
|
|
32711
|
+
};
|
|
32712
|
+
};
|
|
32713
|
+
/** @description Validation Error */
|
|
32714
|
+
422: {
|
|
32715
|
+
headers: {
|
|
32716
|
+
[name: string]: unknown;
|
|
32717
|
+
};
|
|
32718
|
+
content: {
|
|
32719
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
32720
|
+
};
|
|
32721
|
+
};
|
|
32722
|
+
};
|
|
32723
|
+
};
|
|
32724
|
+
save_draft_editor_v1_mail_drafts_editor__room_id__save_post: {
|
|
32725
|
+
parameters: {
|
|
32726
|
+
query?: never;
|
|
32727
|
+
header?: never;
|
|
32728
|
+
path: {
|
|
32729
|
+
room_id: string;
|
|
32730
|
+
};
|
|
32731
|
+
cookie?: never;
|
|
32732
|
+
};
|
|
32733
|
+
requestBody: {
|
|
32734
|
+
content: {
|
|
32735
|
+
'application/json': components['schemas']['MailRoomSave'];
|
|
32736
|
+
};
|
|
32737
|
+
};
|
|
32738
|
+
responses: {
|
|
32739
|
+
/** @description Successful Response */
|
|
32740
|
+
200: {
|
|
32741
|
+
headers: {
|
|
32742
|
+
[name: string]: unknown;
|
|
32743
|
+
};
|
|
32744
|
+
content: {
|
|
32745
|
+
'application/json': components['schemas']['MailDraftSaved'];
|
|
32746
|
+
};
|
|
32747
|
+
};
|
|
32748
|
+
/** @description Validation Error */
|
|
32749
|
+
422: {
|
|
32750
|
+
headers: {
|
|
32751
|
+
[name: string]: unknown;
|
|
32752
|
+
};
|
|
32753
|
+
content: {
|
|
32754
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
32755
|
+
};
|
|
32756
|
+
};
|
|
32757
|
+
};
|
|
32758
|
+
};
|
|
32759
|
+
send_draft_editor_v1_mail_drafts_editor__room_id__send_post: {
|
|
32760
|
+
parameters: {
|
|
32761
|
+
query?: never;
|
|
32762
|
+
header?: never;
|
|
32763
|
+
path: {
|
|
32764
|
+
room_id: string;
|
|
32765
|
+
};
|
|
32766
|
+
cookie?: never;
|
|
32767
|
+
};
|
|
32768
|
+
requestBody: {
|
|
32769
|
+
content: {
|
|
32770
|
+
'application/json': components['schemas']['MailRoomSend'];
|
|
32771
|
+
};
|
|
32772
|
+
};
|
|
32773
|
+
responses: {
|
|
32774
|
+
/** @description Successful Response */
|
|
32775
|
+
200: {
|
|
32776
|
+
headers: {
|
|
32777
|
+
[name: string]: unknown;
|
|
32778
|
+
};
|
|
32779
|
+
content: {
|
|
32780
|
+
'application/json': components['schemas']['MailSendResult'];
|
|
32781
|
+
};
|
|
32782
|
+
};
|
|
32783
|
+
/** @description Validation Error */
|
|
32784
|
+
422: {
|
|
32785
|
+
headers: {
|
|
32786
|
+
[name: string]: unknown;
|
|
32787
|
+
};
|
|
32788
|
+
content: {
|
|
32789
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
32790
|
+
};
|
|
32791
|
+
};
|
|
32792
|
+
};
|
|
32793
|
+
};
|
|
32274
32794
|
}
|
|
32275
32795
|
|
|
32276
32796
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -6650,6 +6650,129 @@ interface paths {
|
|
|
6650
6650
|
patch?: never;
|
|
6651
6651
|
trace?: never;
|
|
6652
6652
|
};
|
|
6653
|
+
'/v1/mail/drafts/editor': {
|
|
6654
|
+
parameters: {
|
|
6655
|
+
query?: never;
|
|
6656
|
+
header?: never;
|
|
6657
|
+
path?: never;
|
|
6658
|
+
cookie?: never;
|
|
6659
|
+
};
|
|
6660
|
+
get?: never;
|
|
6661
|
+
put?: never;
|
|
6662
|
+
/**
|
|
6663
|
+
* Open Draft Editor
|
|
6664
|
+
* @description The Word editor on a draft's body (see ``src.core.native_mail.rooms``). A locked room answers 423 with its
|
|
6665
|
+
* ``sealed_key``: the browser unwraps it, seals it to the session and calls again with ``key``.
|
|
6666
|
+
*/
|
|
6667
|
+
post: operations['open_draft_editor_v1_mail_drafts_editor_post'];
|
|
6668
|
+
delete?: never;
|
|
6669
|
+
options?: never;
|
|
6670
|
+
head?: never;
|
|
6671
|
+
patch?: never;
|
|
6672
|
+
trace?: never;
|
|
6673
|
+
};
|
|
6674
|
+
'/v1/mail/drafts/editor/projects': {
|
|
6675
|
+
parameters: {
|
|
6676
|
+
query?: never;
|
|
6677
|
+
header?: never;
|
|
6678
|
+
path?: never;
|
|
6679
|
+
cookie?: never;
|
|
6680
|
+
};
|
|
6681
|
+
/**
|
|
6682
|
+
* Draft Editor Projects
|
|
6683
|
+
* @description The projects an email's AI work can be billed to: the person's own first, then each matter (the project of a
|
|
6684
|
+
* workspace they own or collaborate in).
|
|
6685
|
+
*/
|
|
6686
|
+
get: operations['draft_editor_projects_v1_mail_drafts_editor_projects_get'];
|
|
6687
|
+
put?: never;
|
|
6688
|
+
post?: never;
|
|
6689
|
+
delete?: never;
|
|
6690
|
+
options?: never;
|
|
6691
|
+
head?: never;
|
|
6692
|
+
patch?: never;
|
|
6693
|
+
trace?: never;
|
|
6694
|
+
};
|
|
6695
|
+
'/v1/mail/drafts/editor/{room_id}/project': {
|
|
6696
|
+
parameters: {
|
|
6697
|
+
query?: never;
|
|
6698
|
+
header?: never;
|
|
6699
|
+
path?: never;
|
|
6700
|
+
cookie?: never;
|
|
6701
|
+
};
|
|
6702
|
+
get?: never;
|
|
6703
|
+
/**
|
|
6704
|
+
* Set Draft Editor Project
|
|
6705
|
+
* @description Bill this draft's AI work to another project the person may bill (None: their own).
|
|
6706
|
+
*/
|
|
6707
|
+
put: operations['set_draft_editor_project_v1_mail_drafts_editor__room_id__project_put'];
|
|
6708
|
+
post?: never;
|
|
6709
|
+
delete?: never;
|
|
6710
|
+
options?: never;
|
|
6711
|
+
head?: never;
|
|
6712
|
+
patch?: never;
|
|
6713
|
+
trace?: never;
|
|
6714
|
+
};
|
|
6715
|
+
'/v1/mail/drafts/editor/{room_id}/body': {
|
|
6716
|
+
parameters: {
|
|
6717
|
+
query?: never;
|
|
6718
|
+
header?: never;
|
|
6719
|
+
path?: never;
|
|
6720
|
+
cookie?: never;
|
|
6721
|
+
};
|
|
6722
|
+
get?: never;
|
|
6723
|
+
put?: never;
|
|
6724
|
+
/**
|
|
6725
|
+
* Draft Editor Body
|
|
6726
|
+
* @description The editor's body as text and HTML, for a client that builds the message itself (secure delivery
|
|
6727
|
+
* encrypts it in the browser). ``final`` refuses (409) while suggestions wait.
|
|
6728
|
+
*/
|
|
6729
|
+
post: operations['draft_editor_body_v1_mail_drafts_editor__room_id__body_post'];
|
|
6730
|
+
delete?: never;
|
|
6731
|
+
options?: never;
|
|
6732
|
+
head?: never;
|
|
6733
|
+
patch?: never;
|
|
6734
|
+
trace?: never;
|
|
6735
|
+
};
|
|
6736
|
+
'/v1/mail/drafts/editor/{room_id}/save': {
|
|
6737
|
+
parameters: {
|
|
6738
|
+
query?: never;
|
|
6739
|
+
header?: never;
|
|
6740
|
+
path?: never;
|
|
6741
|
+
cookie?: never;
|
|
6742
|
+
};
|
|
6743
|
+
get?: never;
|
|
6744
|
+
put?: never;
|
|
6745
|
+
/**
|
|
6746
|
+
* Save Draft Editor
|
|
6747
|
+
* @description Save the editor's body as the draft. Suggestions still waiting in the editor stay out of it.
|
|
6748
|
+
*/
|
|
6749
|
+
post: operations['save_draft_editor_v1_mail_drafts_editor__room_id__save_post'];
|
|
6750
|
+
delete?: never;
|
|
6751
|
+
options?: never;
|
|
6752
|
+
head?: never;
|
|
6753
|
+
patch?: never;
|
|
6754
|
+
trace?: never;
|
|
6755
|
+
};
|
|
6756
|
+
'/v1/mail/drafts/editor/{room_id}/send': {
|
|
6757
|
+
parameters: {
|
|
6758
|
+
query?: never;
|
|
6759
|
+
header?: never;
|
|
6760
|
+
path?: never;
|
|
6761
|
+
cookie?: never;
|
|
6762
|
+
};
|
|
6763
|
+
get?: never;
|
|
6764
|
+
put?: never;
|
|
6765
|
+
/**
|
|
6766
|
+
* Send Draft Editor
|
|
6767
|
+
* @description Send the editor's body. Refused (409) while suggestions wait: a suggestion is never sent unreviewed.
|
|
6768
|
+
*/
|
|
6769
|
+
post: operations['send_draft_editor_v1_mail_drafts_editor__room_id__send_post'];
|
|
6770
|
+
delete?: never;
|
|
6771
|
+
options?: never;
|
|
6772
|
+
head?: never;
|
|
6773
|
+
patch?: never;
|
|
6774
|
+
trace?: never;
|
|
6775
|
+
};
|
|
6653
6776
|
}
|
|
6654
6777
|
type webhooks = Record<string, never>;
|
|
6655
6778
|
interface components {
|
|
@@ -13824,6 +13947,8 @@ interface components {
|
|
|
13824
13947
|
delivery_status?: ('sent' | 'delivered' | 'delayed' | 'partially_bounced' | 'bounced') | null;
|
|
13825
13948
|
/** Delivery */
|
|
13826
13949
|
delivery?: components['schemas']['MailDeliveryRecipient'][];
|
|
13950
|
+
/** Folder */
|
|
13951
|
+
folder?: string | null;
|
|
13827
13952
|
};
|
|
13828
13953
|
/** MailMessagePage */
|
|
13829
13954
|
MailMessagePage: {
|
|
@@ -14157,7 +14282,7 @@ interface components {
|
|
|
14157
14282
|
input: string;
|
|
14158
14283
|
/** Tools */
|
|
14159
14284
|
tools?: {
|
|
14160
|
-
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'];
|
|
14285
|
+
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'] | components['schemas']['MailContextTool'];
|
|
14161
14286
|
};
|
|
14162
14287
|
/**
|
|
14163
14288
|
* Workspace Ext Id
|
|
@@ -14246,7 +14371,7 @@ interface components {
|
|
|
14246
14371
|
content: string;
|
|
14247
14372
|
/** Tools */
|
|
14248
14373
|
tools?: {
|
|
14249
|
-
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'];
|
|
14374
|
+
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'] | components['schemas']['MailContextTool'];
|
|
14250
14375
|
};
|
|
14251
14376
|
/** Config Ext Id */
|
|
14252
14377
|
config_ext_id?: string | null;
|
|
@@ -14356,7 +14481,7 @@ interface components {
|
|
|
14356
14481
|
content: string;
|
|
14357
14482
|
/** Tools */
|
|
14358
14483
|
tools?: {
|
|
14359
|
-
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'];
|
|
14484
|
+
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'] | components['schemas']['MailContextTool'];
|
|
14360
14485
|
};
|
|
14361
14486
|
/** Config Ext Id */
|
|
14362
14487
|
config_ext_id?: string | null;
|
|
@@ -17445,6 +17570,7 @@ interface components {
|
|
|
17445
17570
|
detail_create_artifact?: components['schemas']['CreateArtifactDetail'] | null;
|
|
17446
17571
|
detail_ask_user?: components['schemas']['AskUserDetail'] | null;
|
|
17447
17572
|
detail_goal_progress?: components['schemas']['GoalProgressDetail'] | null;
|
|
17573
|
+
mail_draft?: components['schemas']['MailDraftSSEEvent'] | null;
|
|
17448
17574
|
};
|
|
17449
17575
|
/**
|
|
17450
17576
|
* SSOConfigResponse
|
|
@@ -20089,7 +20215,7 @@ interface components {
|
|
|
20089
20215
|
content: string;
|
|
20090
20216
|
/** Tools */
|
|
20091
20217
|
tools?: {
|
|
20092
|
-
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'];
|
|
20218
|
+
[key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'] | components['schemas']['MemoryTool'] | components['schemas']['GoalTool'] | components['schemas']['FactsContextTool'] | components['schemas']['ImageGenerationTool'] | components['schemas']['SubagentTool'] | components['schemas']['WorkflowStepTool'] | components['schemas']['MailContextTool'];
|
|
20093
20219
|
};
|
|
20094
20220
|
/** Config Ext Id */
|
|
20095
20221
|
config_ext_id?: string | null;
|
|
@@ -20619,6 +20745,7 @@ interface components {
|
|
|
20619
20745
|
notification?: components['schemas']['NotificationResponse'] | null;
|
|
20620
20746
|
auth?: components['schemas']['AuthMessage'] | null;
|
|
20621
20747
|
send_message?: components['schemas']['SendMessageRequest'] | null;
|
|
20748
|
+
mail_draft_replaced?: components['schemas']['MailDraftReplacedMessage'] | null;
|
|
20622
20749
|
};
|
|
20623
20750
|
/** WeeklyHours */
|
|
20624
20751
|
WeeklyHours: {
|
|
@@ -21149,6 +21276,206 @@ interface components {
|
|
|
21149
21276
|
* @enum {string}
|
|
21150
21277
|
*/
|
|
21151
21278
|
src__models__workflow__AuthMode: 'run_now_temp' | 'scheduled_require_auth' | 'scheduled_permanent';
|
|
21279
|
+
/**
|
|
21280
|
+
* MailDraftReplacedMessage
|
|
21281
|
+
* @description A native mail draft was saved again and now has a new id: a composer showing ``old_id`` follows it.
|
|
21282
|
+
*/
|
|
21283
|
+
MailDraftReplacedMessage: {
|
|
21284
|
+
/**
|
|
21285
|
+
* Type
|
|
21286
|
+
* @default mail.draft_replaced
|
|
21287
|
+
* @constant
|
|
21288
|
+
*/
|
|
21289
|
+
type: 'mail.draft_replaced';
|
|
21290
|
+
/** Old Id */
|
|
21291
|
+
old_id: string;
|
|
21292
|
+
/** New Id */
|
|
21293
|
+
new_id: string;
|
|
21294
|
+
};
|
|
21295
|
+
/**
|
|
21296
|
+
* MailDraftSSEEvent
|
|
21297
|
+
* @description The agent saved an email draft in the person's own mailbox (a reply it drafted, or recipients it changed).
|
|
21298
|
+
*
|
|
21299
|
+
* The frontend opens the draft beside the chat, in the mail panel, where its body is a Word document: later turns
|
|
21300
|
+
* edit it there as tracked changes. ``replaces`` is the draft this one replaced (a draft's id changes when saved).
|
|
21301
|
+
*
|
|
21302
|
+
* Example:
|
|
21303
|
+
* {"type": "arbi.mail_draft", "draft_id": "4f0c…", "replaces": null, "message_ext_id": "msg-abc12345"}
|
|
21304
|
+
*/
|
|
21305
|
+
MailDraftSSEEvent: {
|
|
21306
|
+
/**
|
|
21307
|
+
* T
|
|
21308
|
+
* @description Seconds elapsed since stream start.
|
|
21309
|
+
*/
|
|
21310
|
+
t?: number | null;
|
|
21311
|
+
/**
|
|
21312
|
+
* Type
|
|
21313
|
+
* @default arbi.mail_draft
|
|
21314
|
+
* @constant
|
|
21315
|
+
*/
|
|
21316
|
+
type: 'arbi.mail_draft';
|
|
21317
|
+
/**
|
|
21318
|
+
* Draft Id
|
|
21319
|
+
* @description The draft's id in the native mailbox (eml-…)
|
|
21320
|
+
*/
|
|
21321
|
+
draft_id?: string | null;
|
|
21322
|
+
/**
|
|
21323
|
+
* Replaces
|
|
21324
|
+
* @description The draft this one replaced, if any
|
|
21325
|
+
*/
|
|
21326
|
+
replaces?: string | null;
|
|
21327
|
+
/**
|
|
21328
|
+
* Message Ext Id
|
|
21329
|
+
* @description The assistant message that saved it
|
|
21330
|
+
*/
|
|
21331
|
+
message_ext_id?: string | null;
|
|
21332
|
+
/**
|
|
21333
|
+
* Reply To
|
|
21334
|
+
* @description The email this draft answers (eml-…), if any
|
|
21335
|
+
*/
|
|
21336
|
+
reply_to?: string | null;
|
|
21337
|
+
/**
|
|
21338
|
+
* Room Id
|
|
21339
|
+
* @description The new reply's Word body room (mail_…), not yet a draft
|
|
21340
|
+
*/
|
|
21341
|
+
room_id?: string | null;
|
|
21342
|
+
};
|
|
21343
|
+
/**
|
|
21344
|
+
* MailProject
|
|
21345
|
+
* @description A project an email's AI work can be billed to: the person's own, or a matter they own or collaborate in.
|
|
21346
|
+
*/
|
|
21347
|
+
MailProject: {
|
|
21348
|
+
/** External Id */
|
|
21349
|
+
external_id: string;
|
|
21350
|
+
/** Name */
|
|
21351
|
+
name: string;
|
|
21352
|
+
/**
|
|
21353
|
+
* Personal
|
|
21354
|
+
* @default false
|
|
21355
|
+
*/
|
|
21356
|
+
personal: boolean;
|
|
21357
|
+
};
|
|
21358
|
+
/**
|
|
21359
|
+
* MailRoomBody
|
|
21360
|
+
* @description The editor's body as the message's parts: ``final`` refuses while suggestions wait (to send it).
|
|
21361
|
+
*/
|
|
21362
|
+
MailRoomBody: {
|
|
21363
|
+
/** State */
|
|
21364
|
+
state?: string | null;
|
|
21365
|
+
/**
|
|
21366
|
+
* Final
|
|
21367
|
+
* @default true
|
|
21368
|
+
*/
|
|
21369
|
+
final: boolean;
|
|
21370
|
+
};
|
|
21371
|
+
/** MailRoomBodyRead */
|
|
21372
|
+
MailRoomBodyRead: {
|
|
21373
|
+
/** Text */
|
|
21374
|
+
text: string;
|
|
21375
|
+
/** Html */
|
|
21376
|
+
html: string;
|
|
21377
|
+
};
|
|
21378
|
+
/**
|
|
21379
|
+
* MailRoomOpen
|
|
21380
|
+
* @description Open a draft's body in the Word editor (``draft_id``), or a new message's (none). ``room_id`` reopens a room
|
|
21381
|
+
* this person already has (a reconnect, or a new message not saved yet, which has no draft id).
|
|
21382
|
+
*/
|
|
21383
|
+
MailRoomOpen: {
|
|
21384
|
+
/** Draft Id */
|
|
21385
|
+
draft_id?: string | null;
|
|
21386
|
+
/** Room Id */
|
|
21387
|
+
room_id?: string | null;
|
|
21388
|
+
/** Key */
|
|
21389
|
+
key?: string | null;
|
|
21390
|
+
/**
|
|
21391
|
+
* Text
|
|
21392
|
+
* @default
|
|
21393
|
+
*/
|
|
21394
|
+
text: string;
|
|
21395
|
+
/** Html */
|
|
21396
|
+
html?: string | null;
|
|
21397
|
+
/** Workspace Ext Id */
|
|
21398
|
+
workspace_ext_id?: string | null;
|
|
21399
|
+
};
|
|
21400
|
+
/**
|
|
21401
|
+
* MailRoomProject
|
|
21402
|
+
* @description Bill this draft's AI work to ``project_ext_id`` (None: the person's own project).
|
|
21403
|
+
*/
|
|
21404
|
+
MailRoomProject: {
|
|
21405
|
+
/** Project Ext Id */
|
|
21406
|
+
project_ext_id?: string | null;
|
|
21407
|
+
/** Key */
|
|
21408
|
+
key?: string | null;
|
|
21409
|
+
};
|
|
21410
|
+
/**
|
|
21411
|
+
* MailRoomSave
|
|
21412
|
+
* @description Save the editor's body as the draft: ``compose`` carries everything but the body (text and HTML come from the
|
|
21413
|
+
* room); ``state`` is the browser's editor state the export must include.
|
|
21414
|
+
*/
|
|
21415
|
+
MailRoomSave: {
|
|
21416
|
+
compose: components['schemas']['MailCompose'];
|
|
21417
|
+
/** State */
|
|
21418
|
+
state?: string | null;
|
|
21419
|
+
};
|
|
21420
|
+
/** MailRoomSend */
|
|
21421
|
+
MailRoomSend: {
|
|
21422
|
+
compose: components['schemas']['MailSend'];
|
|
21423
|
+
/** State */
|
|
21424
|
+
state?: string | null;
|
|
21425
|
+
};
|
|
21426
|
+
/**
|
|
21427
|
+
* MailRoomSession
|
|
21428
|
+
* @description A collaboration session on a draft's body, as the editor's document session (``/v1/editor/{id}/session``).
|
|
21429
|
+
*/
|
|
21430
|
+
MailRoomSession: {
|
|
21431
|
+
/** Room Id */
|
|
21432
|
+
room_id: string;
|
|
21433
|
+
/** Token */
|
|
21434
|
+
token: string;
|
|
21435
|
+
/** Expires In */
|
|
21436
|
+
expires_in: number;
|
|
21437
|
+
/** Websocket Path */
|
|
21438
|
+
websocket_path: string;
|
|
21439
|
+
/** Can Edit */
|
|
21440
|
+
can_edit: boolean;
|
|
21441
|
+
/** Identity */
|
|
21442
|
+
identity: {
|
|
21443
|
+
[key: string]: unknown;
|
|
21444
|
+
};
|
|
21445
|
+
/** Filename */
|
|
21446
|
+
filename: string;
|
|
21447
|
+
/** Draft Id */
|
|
21448
|
+
draft_id?: string | null;
|
|
21449
|
+
project?: components['schemas']['MailProject'] | null;
|
|
21450
|
+
};
|
|
21451
|
+
/** MailContextTool */
|
|
21452
|
+
MailContextTool: {
|
|
21453
|
+
/**
|
|
21454
|
+
* @description discriminator enum property added by openapi-typescript
|
|
21455
|
+
* @enum {string}
|
|
21456
|
+
*/
|
|
21457
|
+
name: 'mail_context';
|
|
21458
|
+
/**
|
|
21459
|
+
* Description
|
|
21460
|
+
* @default email in this turn's context
|
|
21461
|
+
*/
|
|
21462
|
+
description: string;
|
|
21463
|
+
tool_args: components['schemas']['MailContextToolArgs'];
|
|
21464
|
+
};
|
|
21465
|
+
/**
|
|
21466
|
+
* MailContextToolArgs
|
|
21467
|
+
* @description The email a turn is about — sibling of ``RetrievalFullContextToolArgs.doc_ext_ids``: a pointer (plaintext,
|
|
21468
|
+
* like a document id); the email itself stays encrypted in the person's mailbox.
|
|
21469
|
+
*/
|
|
21470
|
+
MailContextToolArgs: {
|
|
21471
|
+
/** Mail Ext Id */
|
|
21472
|
+
mail_ext_id: string;
|
|
21473
|
+
/**
|
|
21474
|
+
* Reply
|
|
21475
|
+
* @default false
|
|
21476
|
+
*/
|
|
21477
|
+
reply: boolean;
|
|
21478
|
+
};
|
|
21152
21479
|
};
|
|
21153
21480
|
responses: never;
|
|
21154
21481
|
parameters: never;
|
|
@@ -32271,6 +32598,199 @@ interface operations {
|
|
|
32271
32598
|
};
|
|
32272
32599
|
};
|
|
32273
32600
|
};
|
|
32601
|
+
open_draft_editor_v1_mail_drafts_editor_post: {
|
|
32602
|
+
parameters: {
|
|
32603
|
+
query?: never;
|
|
32604
|
+
header?: never;
|
|
32605
|
+
path?: never;
|
|
32606
|
+
cookie?: never;
|
|
32607
|
+
};
|
|
32608
|
+
requestBody: {
|
|
32609
|
+
content: {
|
|
32610
|
+
'application/json': components['schemas']['MailRoomOpen'];
|
|
32611
|
+
};
|
|
32612
|
+
};
|
|
32613
|
+
responses: {
|
|
32614
|
+
/** @description Successful Response */
|
|
32615
|
+
200: {
|
|
32616
|
+
headers: {
|
|
32617
|
+
[name: string]: unknown;
|
|
32618
|
+
};
|
|
32619
|
+
content: {
|
|
32620
|
+
'application/json': components['schemas']['MailRoomSession'];
|
|
32621
|
+
};
|
|
32622
|
+
};
|
|
32623
|
+
/** @description Validation Error */
|
|
32624
|
+
422: {
|
|
32625
|
+
headers: {
|
|
32626
|
+
[name: string]: unknown;
|
|
32627
|
+
};
|
|
32628
|
+
content: {
|
|
32629
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
32630
|
+
};
|
|
32631
|
+
};
|
|
32632
|
+
};
|
|
32633
|
+
};
|
|
32634
|
+
draft_editor_projects_v1_mail_drafts_editor_projects_get: {
|
|
32635
|
+
parameters: {
|
|
32636
|
+
query?: never;
|
|
32637
|
+
header?: never;
|
|
32638
|
+
path?: never;
|
|
32639
|
+
cookie?: never;
|
|
32640
|
+
};
|
|
32641
|
+
requestBody?: never;
|
|
32642
|
+
responses: {
|
|
32643
|
+
/** @description Successful Response */
|
|
32644
|
+
200: {
|
|
32645
|
+
headers: {
|
|
32646
|
+
[name: string]: unknown;
|
|
32647
|
+
};
|
|
32648
|
+
content: {
|
|
32649
|
+
'application/json': components['schemas']['MailProject'][];
|
|
32650
|
+
};
|
|
32651
|
+
};
|
|
32652
|
+
};
|
|
32653
|
+
};
|
|
32654
|
+
set_draft_editor_project_v1_mail_drafts_editor__room_id__project_put: {
|
|
32655
|
+
parameters: {
|
|
32656
|
+
query?: never;
|
|
32657
|
+
header?: never;
|
|
32658
|
+
path: {
|
|
32659
|
+
room_id: string;
|
|
32660
|
+
};
|
|
32661
|
+
cookie?: never;
|
|
32662
|
+
};
|
|
32663
|
+
requestBody: {
|
|
32664
|
+
content: {
|
|
32665
|
+
'application/json': components['schemas']['MailRoomProject'];
|
|
32666
|
+
};
|
|
32667
|
+
};
|
|
32668
|
+
responses: {
|
|
32669
|
+
/** @description Successful Response */
|
|
32670
|
+
200: {
|
|
32671
|
+
headers: {
|
|
32672
|
+
[name: string]: unknown;
|
|
32673
|
+
};
|
|
32674
|
+
content: {
|
|
32675
|
+
'application/json': components['schemas']['MailProject'];
|
|
32676
|
+
};
|
|
32677
|
+
};
|
|
32678
|
+
/** @description Validation Error */
|
|
32679
|
+
422: {
|
|
32680
|
+
headers: {
|
|
32681
|
+
[name: string]: unknown;
|
|
32682
|
+
};
|
|
32683
|
+
content: {
|
|
32684
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
32685
|
+
};
|
|
32686
|
+
};
|
|
32687
|
+
};
|
|
32688
|
+
};
|
|
32689
|
+
draft_editor_body_v1_mail_drafts_editor__room_id__body_post: {
|
|
32690
|
+
parameters: {
|
|
32691
|
+
query?: never;
|
|
32692
|
+
header?: never;
|
|
32693
|
+
path: {
|
|
32694
|
+
room_id: string;
|
|
32695
|
+
};
|
|
32696
|
+
cookie?: never;
|
|
32697
|
+
};
|
|
32698
|
+
requestBody: {
|
|
32699
|
+
content: {
|
|
32700
|
+
'application/json': components['schemas']['MailRoomBody'];
|
|
32701
|
+
};
|
|
32702
|
+
};
|
|
32703
|
+
responses: {
|
|
32704
|
+
/** @description Successful Response */
|
|
32705
|
+
200: {
|
|
32706
|
+
headers: {
|
|
32707
|
+
[name: string]: unknown;
|
|
32708
|
+
};
|
|
32709
|
+
content: {
|
|
32710
|
+
'application/json': components['schemas']['MailRoomBodyRead'];
|
|
32711
|
+
};
|
|
32712
|
+
};
|
|
32713
|
+
/** @description Validation Error */
|
|
32714
|
+
422: {
|
|
32715
|
+
headers: {
|
|
32716
|
+
[name: string]: unknown;
|
|
32717
|
+
};
|
|
32718
|
+
content: {
|
|
32719
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
32720
|
+
};
|
|
32721
|
+
};
|
|
32722
|
+
};
|
|
32723
|
+
};
|
|
32724
|
+
save_draft_editor_v1_mail_drafts_editor__room_id__save_post: {
|
|
32725
|
+
parameters: {
|
|
32726
|
+
query?: never;
|
|
32727
|
+
header?: never;
|
|
32728
|
+
path: {
|
|
32729
|
+
room_id: string;
|
|
32730
|
+
};
|
|
32731
|
+
cookie?: never;
|
|
32732
|
+
};
|
|
32733
|
+
requestBody: {
|
|
32734
|
+
content: {
|
|
32735
|
+
'application/json': components['schemas']['MailRoomSave'];
|
|
32736
|
+
};
|
|
32737
|
+
};
|
|
32738
|
+
responses: {
|
|
32739
|
+
/** @description Successful Response */
|
|
32740
|
+
200: {
|
|
32741
|
+
headers: {
|
|
32742
|
+
[name: string]: unknown;
|
|
32743
|
+
};
|
|
32744
|
+
content: {
|
|
32745
|
+
'application/json': components['schemas']['MailDraftSaved'];
|
|
32746
|
+
};
|
|
32747
|
+
};
|
|
32748
|
+
/** @description Validation Error */
|
|
32749
|
+
422: {
|
|
32750
|
+
headers: {
|
|
32751
|
+
[name: string]: unknown;
|
|
32752
|
+
};
|
|
32753
|
+
content: {
|
|
32754
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
32755
|
+
};
|
|
32756
|
+
};
|
|
32757
|
+
};
|
|
32758
|
+
};
|
|
32759
|
+
send_draft_editor_v1_mail_drafts_editor__room_id__send_post: {
|
|
32760
|
+
parameters: {
|
|
32761
|
+
query?: never;
|
|
32762
|
+
header?: never;
|
|
32763
|
+
path: {
|
|
32764
|
+
room_id: string;
|
|
32765
|
+
};
|
|
32766
|
+
cookie?: never;
|
|
32767
|
+
};
|
|
32768
|
+
requestBody: {
|
|
32769
|
+
content: {
|
|
32770
|
+
'application/json': components['schemas']['MailRoomSend'];
|
|
32771
|
+
};
|
|
32772
|
+
};
|
|
32773
|
+
responses: {
|
|
32774
|
+
/** @description Successful Response */
|
|
32775
|
+
200: {
|
|
32776
|
+
headers: {
|
|
32777
|
+
[name: string]: unknown;
|
|
32778
|
+
};
|
|
32779
|
+
content: {
|
|
32780
|
+
'application/json': components['schemas']['MailSendResult'];
|
|
32781
|
+
};
|
|
32782
|
+
};
|
|
32783
|
+
/** @description Validation Error */
|
|
32784
|
+
422: {
|
|
32785
|
+
headers: {
|
|
32786
|
+
[name: string]: unknown;
|
|
32787
|
+
};
|
|
32788
|
+
content: {
|
|
32789
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
32790
|
+
};
|
|
32791
|
+
};
|
|
32792
|
+
};
|
|
32793
|
+
};
|
|
32274
32794
|
}
|
|
32275
32795
|
|
|
32276
32796
|
/**
|
package/package.json
CHANGED