@runtypelabs/sdk 4.6.0 → 4.6.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.
- package/dist/index.d.cts +401 -1
- package/dist/index.d.ts +401 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -13736,6 +13736,10 @@ interface paths {
|
|
|
13736
13736
|
surface_id?: string;
|
|
13737
13737
|
/** @description Filter by status (open, closed, archived, all) */
|
|
13738
13738
|
status?: string;
|
|
13739
|
+
/** @description Filter by agent mode (auto, human, all) */
|
|
13740
|
+
agentMode?: string;
|
|
13741
|
+
/** @description Filter by agent mode (deprecated, use agentMode) */
|
|
13742
|
+
agent_mode?: string;
|
|
13739
13743
|
/** @description Search by subject, participant name, or email */
|
|
13740
13744
|
search?: string;
|
|
13741
13745
|
};
|
|
@@ -13753,6 +13757,7 @@ interface paths {
|
|
|
13753
13757
|
content: {
|
|
13754
13758
|
"application/json": {
|
|
13755
13759
|
data: ({
|
|
13760
|
+
agentMode: string;
|
|
13756
13761
|
createdAt: string;
|
|
13757
13762
|
externalParticipantId: string | null;
|
|
13758
13763
|
externalThreadId: string | null;
|
|
@@ -13764,6 +13769,10 @@ interface paths {
|
|
|
13764
13769
|
status: string;
|
|
13765
13770
|
subject: string | null;
|
|
13766
13771
|
surfaceId: string;
|
|
13772
|
+
takeoverActorId: string | null;
|
|
13773
|
+
takeoverActorType: string | null;
|
|
13774
|
+
takeoverAt: string | null;
|
|
13775
|
+
takeoverReason: string | null;
|
|
13767
13776
|
timezone: string | null;
|
|
13768
13777
|
updatedAt: string;
|
|
13769
13778
|
} & {
|
|
@@ -13857,6 +13866,7 @@ interface paths {
|
|
|
13857
13866
|
};
|
|
13858
13867
|
content: {
|
|
13859
13868
|
"application/json": {
|
|
13869
|
+
agentMode: string;
|
|
13860
13870
|
context?: {
|
|
13861
13871
|
[key: string]: unknown;
|
|
13862
13872
|
};
|
|
@@ -13879,6 +13889,10 @@ interface paths {
|
|
|
13879
13889
|
type: string | null;
|
|
13880
13890
|
};
|
|
13881
13891
|
surfaceId: string;
|
|
13892
|
+
takeoverActorId: string | null;
|
|
13893
|
+
takeoverActorType: string | null;
|
|
13894
|
+
takeoverAt: string | null;
|
|
13895
|
+
takeoverReason: string | null;
|
|
13882
13896
|
timezone: string | null;
|
|
13883
13897
|
updatedAt: string;
|
|
13884
13898
|
} & {
|
|
@@ -13959,6 +13973,7 @@ interface paths {
|
|
|
13959
13973
|
};
|
|
13960
13974
|
content: {
|
|
13961
13975
|
"application/json": {
|
|
13976
|
+
agentMode: string;
|
|
13962
13977
|
context?: {
|
|
13963
13978
|
[key: string]: unknown;
|
|
13964
13979
|
};
|
|
@@ -13981,6 +13996,10 @@ interface paths {
|
|
|
13981
13996
|
type: string | null;
|
|
13982
13997
|
};
|
|
13983
13998
|
surfaceId: string;
|
|
13999
|
+
takeoverActorId: string | null;
|
|
14000
|
+
takeoverActorType: string | null;
|
|
14001
|
+
takeoverAt: string | null;
|
|
14002
|
+
takeoverReason: string | null;
|
|
13984
14003
|
timezone: string | null;
|
|
13985
14004
|
updatedAt: string;
|
|
13986
14005
|
} & {
|
|
@@ -14070,6 +14089,7 @@ interface paths {
|
|
|
14070
14089
|
};
|
|
14071
14090
|
content: {
|
|
14072
14091
|
"application/json": {
|
|
14092
|
+
agentMode: string;
|
|
14073
14093
|
context?: {
|
|
14074
14094
|
[key: string]: unknown;
|
|
14075
14095
|
};
|
|
@@ -14092,6 +14112,10 @@ interface paths {
|
|
|
14092
14112
|
type: string | null;
|
|
14093
14113
|
};
|
|
14094
14114
|
surfaceId: string;
|
|
14115
|
+
takeoverActorId: string | null;
|
|
14116
|
+
takeoverActorType: string | null;
|
|
14117
|
+
takeoverAt: string | null;
|
|
14118
|
+
takeoverReason: string | null;
|
|
14095
14119
|
timezone: string | null;
|
|
14096
14120
|
updatedAt: string;
|
|
14097
14121
|
} & {
|
|
@@ -14435,6 +14459,369 @@ interface paths {
|
|
|
14435
14459
|
patch?: never;
|
|
14436
14460
|
trace?: never;
|
|
14437
14461
|
};
|
|
14462
|
+
"/v1/messaging/conversations/{id}/resume": {
|
|
14463
|
+
parameters: {
|
|
14464
|
+
query?: never;
|
|
14465
|
+
header?: never;
|
|
14466
|
+
path?: never;
|
|
14467
|
+
cookie?: never;
|
|
14468
|
+
};
|
|
14469
|
+
get?: never;
|
|
14470
|
+
put?: never;
|
|
14471
|
+
/**
|
|
14472
|
+
* Resume agent handling
|
|
14473
|
+
* @description Switch a messaging conversation from human-operator mode back to automatic agent handling.
|
|
14474
|
+
*/
|
|
14475
|
+
post: {
|
|
14476
|
+
parameters: {
|
|
14477
|
+
query?: never;
|
|
14478
|
+
header?: never;
|
|
14479
|
+
path: {
|
|
14480
|
+
id: string;
|
|
14481
|
+
};
|
|
14482
|
+
cookie?: never;
|
|
14483
|
+
};
|
|
14484
|
+
requestBody?: never;
|
|
14485
|
+
responses: {
|
|
14486
|
+
/** @description Conversation resumed to auto mode */
|
|
14487
|
+
200: {
|
|
14488
|
+
headers: {
|
|
14489
|
+
[name: string]: unknown;
|
|
14490
|
+
};
|
|
14491
|
+
content: {
|
|
14492
|
+
"application/json": {
|
|
14493
|
+
agentMode: string;
|
|
14494
|
+
id: string;
|
|
14495
|
+
takeoverActorId: string | null;
|
|
14496
|
+
takeoverActorType: string | null;
|
|
14497
|
+
takeoverAt: string | null;
|
|
14498
|
+
takeoverReason: string | null;
|
|
14499
|
+
updatedAt: string;
|
|
14500
|
+
} & {
|
|
14501
|
+
[key: string]: unknown;
|
|
14502
|
+
};
|
|
14503
|
+
};
|
|
14504
|
+
};
|
|
14505
|
+
/** @description Invalid request */
|
|
14506
|
+
400: {
|
|
14507
|
+
headers: {
|
|
14508
|
+
[name: string]: unknown;
|
|
14509
|
+
};
|
|
14510
|
+
content: {
|
|
14511
|
+
"application/json": components["schemas"]["Error"];
|
|
14512
|
+
};
|
|
14513
|
+
};
|
|
14514
|
+
/** @description Unauthorized */
|
|
14515
|
+
401: {
|
|
14516
|
+
headers: {
|
|
14517
|
+
[name: string]: unknown;
|
|
14518
|
+
};
|
|
14519
|
+
content: {
|
|
14520
|
+
"application/json": components["schemas"]["Error"];
|
|
14521
|
+
};
|
|
14522
|
+
};
|
|
14523
|
+
/** @description Insufficient permissions */
|
|
14524
|
+
403: {
|
|
14525
|
+
headers: {
|
|
14526
|
+
[name: string]: unknown;
|
|
14527
|
+
};
|
|
14528
|
+
content: {
|
|
14529
|
+
"application/json": components["schemas"]["Error"];
|
|
14530
|
+
};
|
|
14531
|
+
};
|
|
14532
|
+
/** @description Conversation not found */
|
|
14533
|
+
404: {
|
|
14534
|
+
headers: {
|
|
14535
|
+
[name: string]: unknown;
|
|
14536
|
+
};
|
|
14537
|
+
content: {
|
|
14538
|
+
"application/json": components["schemas"]["Error"];
|
|
14539
|
+
};
|
|
14540
|
+
};
|
|
14541
|
+
/** @description Conversation already in auto mode */
|
|
14542
|
+
409: {
|
|
14543
|
+
headers: {
|
|
14544
|
+
[name: string]: unknown;
|
|
14545
|
+
};
|
|
14546
|
+
content: {
|
|
14547
|
+
"application/json": components["schemas"]["Error"];
|
|
14548
|
+
};
|
|
14549
|
+
};
|
|
14550
|
+
/** @description Internal server error */
|
|
14551
|
+
500: {
|
|
14552
|
+
headers: {
|
|
14553
|
+
[name: string]: unknown;
|
|
14554
|
+
};
|
|
14555
|
+
content: {
|
|
14556
|
+
"application/json": components["schemas"]["Error"];
|
|
14557
|
+
};
|
|
14558
|
+
};
|
|
14559
|
+
};
|
|
14560
|
+
};
|
|
14561
|
+
delete?: never;
|
|
14562
|
+
options?: never;
|
|
14563
|
+
head?: never;
|
|
14564
|
+
patch?: never;
|
|
14565
|
+
trace?: never;
|
|
14566
|
+
};
|
|
14567
|
+
"/v1/messaging/conversations/{id}/send": {
|
|
14568
|
+
parameters: {
|
|
14569
|
+
query?: never;
|
|
14570
|
+
header?: never;
|
|
14571
|
+
path?: never;
|
|
14572
|
+
cookie?: never;
|
|
14573
|
+
};
|
|
14574
|
+
get?: never;
|
|
14575
|
+
put?: never;
|
|
14576
|
+
/**
|
|
14577
|
+
* Send human-authored message
|
|
14578
|
+
* @description Send a human-authored outbound message through the conversation's messaging channel.
|
|
14579
|
+
*/
|
|
14580
|
+
post: {
|
|
14581
|
+
parameters: {
|
|
14582
|
+
query?: never;
|
|
14583
|
+
header?: never;
|
|
14584
|
+
path: {
|
|
14585
|
+
id: string;
|
|
14586
|
+
};
|
|
14587
|
+
cookie?: never;
|
|
14588
|
+
};
|
|
14589
|
+
requestBody?: {
|
|
14590
|
+
content: {
|
|
14591
|
+
"application/json": {
|
|
14592
|
+
content: string;
|
|
14593
|
+
metadata?: {
|
|
14594
|
+
attachments?: {
|
|
14595
|
+
contentType: string;
|
|
14596
|
+
name: string;
|
|
14597
|
+
size: number;
|
|
14598
|
+
url?: string;
|
|
14599
|
+
}[];
|
|
14600
|
+
externalTimestamp?: string;
|
|
14601
|
+
headers?: {
|
|
14602
|
+
[key: string]: string;
|
|
14603
|
+
};
|
|
14604
|
+
};
|
|
14605
|
+
/** @default true */
|
|
14606
|
+
requireHumanMode?: boolean;
|
|
14607
|
+
};
|
|
14608
|
+
};
|
|
14609
|
+
};
|
|
14610
|
+
responses: {
|
|
14611
|
+
/** @description Message sent to channel */
|
|
14612
|
+
201: {
|
|
14613
|
+
headers: {
|
|
14614
|
+
[name: string]: unknown;
|
|
14615
|
+
};
|
|
14616
|
+
content: {
|
|
14617
|
+
"application/json": {
|
|
14618
|
+
deliveryResult: {
|
|
14619
|
+
deliveryStatus: string;
|
|
14620
|
+
externalMessageId: string | null;
|
|
14621
|
+
} & {
|
|
14622
|
+
[key: string]: unknown;
|
|
14623
|
+
};
|
|
14624
|
+
message: {
|
|
14625
|
+
content: string;
|
|
14626
|
+
conversationId: string;
|
|
14627
|
+
createdAt: string;
|
|
14628
|
+
direction: string | null;
|
|
14629
|
+
externalMessageId: string | null;
|
|
14630
|
+
id?: string;
|
|
14631
|
+
metadata: {
|
|
14632
|
+
[key: string]: unknown;
|
|
14633
|
+
};
|
|
14634
|
+
role: string;
|
|
14635
|
+
} & {
|
|
14636
|
+
[key: string]: unknown;
|
|
14637
|
+
};
|
|
14638
|
+
} & {
|
|
14639
|
+
[key: string]: unknown;
|
|
14640
|
+
};
|
|
14641
|
+
};
|
|
14642
|
+
};
|
|
14643
|
+
/** @description Invalid request */
|
|
14644
|
+
400: {
|
|
14645
|
+
headers: {
|
|
14646
|
+
[name: string]: unknown;
|
|
14647
|
+
};
|
|
14648
|
+
content: {
|
|
14649
|
+
"application/json": components["schemas"]["Error"];
|
|
14650
|
+
};
|
|
14651
|
+
};
|
|
14652
|
+
/** @description Unauthorized */
|
|
14653
|
+
401: {
|
|
14654
|
+
headers: {
|
|
14655
|
+
[name: string]: unknown;
|
|
14656
|
+
};
|
|
14657
|
+
content: {
|
|
14658
|
+
"application/json": components["schemas"]["Error"];
|
|
14659
|
+
};
|
|
14660
|
+
};
|
|
14661
|
+
/** @description Insufficient permissions */
|
|
14662
|
+
403: {
|
|
14663
|
+
headers: {
|
|
14664
|
+
[name: string]: unknown;
|
|
14665
|
+
};
|
|
14666
|
+
content: {
|
|
14667
|
+
"application/json": components["schemas"]["Error"];
|
|
14668
|
+
};
|
|
14669
|
+
};
|
|
14670
|
+
/** @description Conversation not found */
|
|
14671
|
+
404: {
|
|
14672
|
+
headers: {
|
|
14673
|
+
[name: string]: unknown;
|
|
14674
|
+
};
|
|
14675
|
+
content: {
|
|
14676
|
+
"application/json": components["schemas"]["Error"];
|
|
14677
|
+
};
|
|
14678
|
+
};
|
|
14679
|
+
/** @description Conversation or surface cannot be addressed */
|
|
14680
|
+
422: {
|
|
14681
|
+
headers: {
|
|
14682
|
+
[name: string]: unknown;
|
|
14683
|
+
};
|
|
14684
|
+
content: {
|
|
14685
|
+
"application/json": components["schemas"]["Error"];
|
|
14686
|
+
};
|
|
14687
|
+
};
|
|
14688
|
+
/** @description Internal server error */
|
|
14689
|
+
500: {
|
|
14690
|
+
headers: {
|
|
14691
|
+
[name: string]: unknown;
|
|
14692
|
+
};
|
|
14693
|
+
content: {
|
|
14694
|
+
"application/json": components["schemas"]["Error"];
|
|
14695
|
+
};
|
|
14696
|
+
};
|
|
14697
|
+
/** @description Channel delivery failed */
|
|
14698
|
+
502: {
|
|
14699
|
+
headers: {
|
|
14700
|
+
[name: string]: unknown;
|
|
14701
|
+
};
|
|
14702
|
+
content: {
|
|
14703
|
+
"application/json": components["schemas"]["Error"];
|
|
14704
|
+
};
|
|
14705
|
+
};
|
|
14706
|
+
};
|
|
14707
|
+
};
|
|
14708
|
+
delete?: never;
|
|
14709
|
+
options?: never;
|
|
14710
|
+
head?: never;
|
|
14711
|
+
patch?: never;
|
|
14712
|
+
trace?: never;
|
|
14713
|
+
};
|
|
14714
|
+
"/v1/messaging/conversations/{id}/takeover": {
|
|
14715
|
+
parameters: {
|
|
14716
|
+
query?: never;
|
|
14717
|
+
header?: never;
|
|
14718
|
+
path?: never;
|
|
14719
|
+
cookie?: never;
|
|
14720
|
+
};
|
|
14721
|
+
get?: never;
|
|
14722
|
+
put?: never;
|
|
14723
|
+
/**
|
|
14724
|
+
* Take over conversation
|
|
14725
|
+
* @description Switch a messaging conversation into human-operator mode so inbound messages are persisted but agent replies are suppressed.
|
|
14726
|
+
*/
|
|
14727
|
+
post: {
|
|
14728
|
+
parameters: {
|
|
14729
|
+
query?: never;
|
|
14730
|
+
header?: never;
|
|
14731
|
+
path: {
|
|
14732
|
+
id: string;
|
|
14733
|
+
};
|
|
14734
|
+
cookie?: never;
|
|
14735
|
+
};
|
|
14736
|
+
requestBody?: {
|
|
14737
|
+
content: {
|
|
14738
|
+
"application/json": {
|
|
14739
|
+
reason?: string;
|
|
14740
|
+
};
|
|
14741
|
+
};
|
|
14742
|
+
};
|
|
14743
|
+
responses: {
|
|
14744
|
+
/** @description Conversation switched to human mode */
|
|
14745
|
+
200: {
|
|
14746
|
+
headers: {
|
|
14747
|
+
[name: string]: unknown;
|
|
14748
|
+
};
|
|
14749
|
+
content: {
|
|
14750
|
+
"application/json": {
|
|
14751
|
+
agentMode: string;
|
|
14752
|
+
id: string;
|
|
14753
|
+
takeoverActorId: string | null;
|
|
14754
|
+
takeoverActorType: string | null;
|
|
14755
|
+
takeoverAt: string | null;
|
|
14756
|
+
takeoverReason: string | null;
|
|
14757
|
+
updatedAt: string;
|
|
14758
|
+
} & {
|
|
14759
|
+
[key: string]: unknown;
|
|
14760
|
+
};
|
|
14761
|
+
};
|
|
14762
|
+
};
|
|
14763
|
+
/** @description Invalid request */
|
|
14764
|
+
400: {
|
|
14765
|
+
headers: {
|
|
14766
|
+
[name: string]: unknown;
|
|
14767
|
+
};
|
|
14768
|
+
content: {
|
|
14769
|
+
"application/json": components["schemas"]["Error"];
|
|
14770
|
+
};
|
|
14771
|
+
};
|
|
14772
|
+
/** @description Unauthorized */
|
|
14773
|
+
401: {
|
|
14774
|
+
headers: {
|
|
14775
|
+
[name: string]: unknown;
|
|
14776
|
+
};
|
|
14777
|
+
content: {
|
|
14778
|
+
"application/json": components["schemas"]["Error"];
|
|
14779
|
+
};
|
|
14780
|
+
};
|
|
14781
|
+
/** @description Insufficient permissions */
|
|
14782
|
+
403: {
|
|
14783
|
+
headers: {
|
|
14784
|
+
[name: string]: unknown;
|
|
14785
|
+
};
|
|
14786
|
+
content: {
|
|
14787
|
+
"application/json": components["schemas"]["Error"];
|
|
14788
|
+
};
|
|
14789
|
+
};
|
|
14790
|
+
/** @description Conversation not found */
|
|
14791
|
+
404: {
|
|
14792
|
+
headers: {
|
|
14793
|
+
[name: string]: unknown;
|
|
14794
|
+
};
|
|
14795
|
+
content: {
|
|
14796
|
+
"application/json": components["schemas"]["Error"];
|
|
14797
|
+
};
|
|
14798
|
+
};
|
|
14799
|
+
/** @description Conversation already in human mode */
|
|
14800
|
+
409: {
|
|
14801
|
+
headers: {
|
|
14802
|
+
[name: string]: unknown;
|
|
14803
|
+
};
|
|
14804
|
+
content: {
|
|
14805
|
+
"application/json": components["schemas"]["Error"];
|
|
14806
|
+
};
|
|
14807
|
+
};
|
|
14808
|
+
/** @description Internal server error */
|
|
14809
|
+
500: {
|
|
14810
|
+
headers: {
|
|
14811
|
+
[name: string]: unknown;
|
|
14812
|
+
};
|
|
14813
|
+
content: {
|
|
14814
|
+
"application/json": components["schemas"]["Error"];
|
|
14815
|
+
};
|
|
14816
|
+
};
|
|
14817
|
+
};
|
|
14818
|
+
};
|
|
14819
|
+
delete?: never;
|
|
14820
|
+
options?: never;
|
|
14821
|
+
head?: never;
|
|
14822
|
+
patch?: never;
|
|
14823
|
+
trace?: never;
|
|
14824
|
+
};
|
|
14438
14825
|
"/v1/messaging/imap/{surfaceId}/poll-now": {
|
|
14439
14826
|
parameters: {
|
|
14440
14827
|
query?: never;
|
|
@@ -17740,7 +18127,9 @@ interface paths {
|
|
|
17740
18127
|
*/
|
|
17741
18128
|
get: {
|
|
17742
18129
|
parameters: {
|
|
17743
|
-
query?:
|
|
18130
|
+
query?: {
|
|
18131
|
+
includeEditorContext?: string;
|
|
18132
|
+
};
|
|
17744
18133
|
header?: never;
|
|
17745
18134
|
path: {
|
|
17746
18135
|
id: string;
|
|
@@ -17763,6 +18152,17 @@ interface paths {
|
|
|
17763
18152
|
createdAt: string;
|
|
17764
18153
|
dashboardUrl?: string;
|
|
17765
18154
|
description: string | null;
|
|
18155
|
+
editorContext?: {
|
|
18156
|
+
agentConfigMap: {
|
|
18157
|
+
[key: string]: unknown;
|
|
18158
|
+
};
|
|
18159
|
+
flowStepsMap: {
|
|
18160
|
+
[key: string]: {
|
|
18161
|
+
name: string;
|
|
18162
|
+
type: string;
|
|
18163
|
+
}[];
|
|
18164
|
+
};
|
|
18165
|
+
};
|
|
17766
18166
|
icon: string | null;
|
|
17767
18167
|
id: string;
|
|
17768
18168
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -13736,6 +13736,10 @@ interface paths {
|
|
|
13736
13736
|
surface_id?: string;
|
|
13737
13737
|
/** @description Filter by status (open, closed, archived, all) */
|
|
13738
13738
|
status?: string;
|
|
13739
|
+
/** @description Filter by agent mode (auto, human, all) */
|
|
13740
|
+
agentMode?: string;
|
|
13741
|
+
/** @description Filter by agent mode (deprecated, use agentMode) */
|
|
13742
|
+
agent_mode?: string;
|
|
13739
13743
|
/** @description Search by subject, participant name, or email */
|
|
13740
13744
|
search?: string;
|
|
13741
13745
|
};
|
|
@@ -13753,6 +13757,7 @@ interface paths {
|
|
|
13753
13757
|
content: {
|
|
13754
13758
|
"application/json": {
|
|
13755
13759
|
data: ({
|
|
13760
|
+
agentMode: string;
|
|
13756
13761
|
createdAt: string;
|
|
13757
13762
|
externalParticipantId: string | null;
|
|
13758
13763
|
externalThreadId: string | null;
|
|
@@ -13764,6 +13769,10 @@ interface paths {
|
|
|
13764
13769
|
status: string;
|
|
13765
13770
|
subject: string | null;
|
|
13766
13771
|
surfaceId: string;
|
|
13772
|
+
takeoverActorId: string | null;
|
|
13773
|
+
takeoverActorType: string | null;
|
|
13774
|
+
takeoverAt: string | null;
|
|
13775
|
+
takeoverReason: string | null;
|
|
13767
13776
|
timezone: string | null;
|
|
13768
13777
|
updatedAt: string;
|
|
13769
13778
|
} & {
|
|
@@ -13857,6 +13866,7 @@ interface paths {
|
|
|
13857
13866
|
};
|
|
13858
13867
|
content: {
|
|
13859
13868
|
"application/json": {
|
|
13869
|
+
agentMode: string;
|
|
13860
13870
|
context?: {
|
|
13861
13871
|
[key: string]: unknown;
|
|
13862
13872
|
};
|
|
@@ -13879,6 +13889,10 @@ interface paths {
|
|
|
13879
13889
|
type: string | null;
|
|
13880
13890
|
};
|
|
13881
13891
|
surfaceId: string;
|
|
13892
|
+
takeoverActorId: string | null;
|
|
13893
|
+
takeoverActorType: string | null;
|
|
13894
|
+
takeoverAt: string | null;
|
|
13895
|
+
takeoverReason: string | null;
|
|
13882
13896
|
timezone: string | null;
|
|
13883
13897
|
updatedAt: string;
|
|
13884
13898
|
} & {
|
|
@@ -13959,6 +13973,7 @@ interface paths {
|
|
|
13959
13973
|
};
|
|
13960
13974
|
content: {
|
|
13961
13975
|
"application/json": {
|
|
13976
|
+
agentMode: string;
|
|
13962
13977
|
context?: {
|
|
13963
13978
|
[key: string]: unknown;
|
|
13964
13979
|
};
|
|
@@ -13981,6 +13996,10 @@ interface paths {
|
|
|
13981
13996
|
type: string | null;
|
|
13982
13997
|
};
|
|
13983
13998
|
surfaceId: string;
|
|
13999
|
+
takeoverActorId: string | null;
|
|
14000
|
+
takeoverActorType: string | null;
|
|
14001
|
+
takeoverAt: string | null;
|
|
14002
|
+
takeoverReason: string | null;
|
|
13984
14003
|
timezone: string | null;
|
|
13985
14004
|
updatedAt: string;
|
|
13986
14005
|
} & {
|
|
@@ -14070,6 +14089,7 @@ interface paths {
|
|
|
14070
14089
|
};
|
|
14071
14090
|
content: {
|
|
14072
14091
|
"application/json": {
|
|
14092
|
+
agentMode: string;
|
|
14073
14093
|
context?: {
|
|
14074
14094
|
[key: string]: unknown;
|
|
14075
14095
|
};
|
|
@@ -14092,6 +14112,10 @@ interface paths {
|
|
|
14092
14112
|
type: string | null;
|
|
14093
14113
|
};
|
|
14094
14114
|
surfaceId: string;
|
|
14115
|
+
takeoverActorId: string | null;
|
|
14116
|
+
takeoverActorType: string | null;
|
|
14117
|
+
takeoverAt: string | null;
|
|
14118
|
+
takeoverReason: string | null;
|
|
14095
14119
|
timezone: string | null;
|
|
14096
14120
|
updatedAt: string;
|
|
14097
14121
|
} & {
|
|
@@ -14435,6 +14459,369 @@ interface paths {
|
|
|
14435
14459
|
patch?: never;
|
|
14436
14460
|
trace?: never;
|
|
14437
14461
|
};
|
|
14462
|
+
"/v1/messaging/conversations/{id}/resume": {
|
|
14463
|
+
parameters: {
|
|
14464
|
+
query?: never;
|
|
14465
|
+
header?: never;
|
|
14466
|
+
path?: never;
|
|
14467
|
+
cookie?: never;
|
|
14468
|
+
};
|
|
14469
|
+
get?: never;
|
|
14470
|
+
put?: never;
|
|
14471
|
+
/**
|
|
14472
|
+
* Resume agent handling
|
|
14473
|
+
* @description Switch a messaging conversation from human-operator mode back to automatic agent handling.
|
|
14474
|
+
*/
|
|
14475
|
+
post: {
|
|
14476
|
+
parameters: {
|
|
14477
|
+
query?: never;
|
|
14478
|
+
header?: never;
|
|
14479
|
+
path: {
|
|
14480
|
+
id: string;
|
|
14481
|
+
};
|
|
14482
|
+
cookie?: never;
|
|
14483
|
+
};
|
|
14484
|
+
requestBody?: never;
|
|
14485
|
+
responses: {
|
|
14486
|
+
/** @description Conversation resumed to auto mode */
|
|
14487
|
+
200: {
|
|
14488
|
+
headers: {
|
|
14489
|
+
[name: string]: unknown;
|
|
14490
|
+
};
|
|
14491
|
+
content: {
|
|
14492
|
+
"application/json": {
|
|
14493
|
+
agentMode: string;
|
|
14494
|
+
id: string;
|
|
14495
|
+
takeoverActorId: string | null;
|
|
14496
|
+
takeoverActorType: string | null;
|
|
14497
|
+
takeoverAt: string | null;
|
|
14498
|
+
takeoverReason: string | null;
|
|
14499
|
+
updatedAt: string;
|
|
14500
|
+
} & {
|
|
14501
|
+
[key: string]: unknown;
|
|
14502
|
+
};
|
|
14503
|
+
};
|
|
14504
|
+
};
|
|
14505
|
+
/** @description Invalid request */
|
|
14506
|
+
400: {
|
|
14507
|
+
headers: {
|
|
14508
|
+
[name: string]: unknown;
|
|
14509
|
+
};
|
|
14510
|
+
content: {
|
|
14511
|
+
"application/json": components["schemas"]["Error"];
|
|
14512
|
+
};
|
|
14513
|
+
};
|
|
14514
|
+
/** @description Unauthorized */
|
|
14515
|
+
401: {
|
|
14516
|
+
headers: {
|
|
14517
|
+
[name: string]: unknown;
|
|
14518
|
+
};
|
|
14519
|
+
content: {
|
|
14520
|
+
"application/json": components["schemas"]["Error"];
|
|
14521
|
+
};
|
|
14522
|
+
};
|
|
14523
|
+
/** @description Insufficient permissions */
|
|
14524
|
+
403: {
|
|
14525
|
+
headers: {
|
|
14526
|
+
[name: string]: unknown;
|
|
14527
|
+
};
|
|
14528
|
+
content: {
|
|
14529
|
+
"application/json": components["schemas"]["Error"];
|
|
14530
|
+
};
|
|
14531
|
+
};
|
|
14532
|
+
/** @description Conversation not found */
|
|
14533
|
+
404: {
|
|
14534
|
+
headers: {
|
|
14535
|
+
[name: string]: unknown;
|
|
14536
|
+
};
|
|
14537
|
+
content: {
|
|
14538
|
+
"application/json": components["schemas"]["Error"];
|
|
14539
|
+
};
|
|
14540
|
+
};
|
|
14541
|
+
/** @description Conversation already in auto mode */
|
|
14542
|
+
409: {
|
|
14543
|
+
headers: {
|
|
14544
|
+
[name: string]: unknown;
|
|
14545
|
+
};
|
|
14546
|
+
content: {
|
|
14547
|
+
"application/json": components["schemas"]["Error"];
|
|
14548
|
+
};
|
|
14549
|
+
};
|
|
14550
|
+
/** @description Internal server error */
|
|
14551
|
+
500: {
|
|
14552
|
+
headers: {
|
|
14553
|
+
[name: string]: unknown;
|
|
14554
|
+
};
|
|
14555
|
+
content: {
|
|
14556
|
+
"application/json": components["schemas"]["Error"];
|
|
14557
|
+
};
|
|
14558
|
+
};
|
|
14559
|
+
};
|
|
14560
|
+
};
|
|
14561
|
+
delete?: never;
|
|
14562
|
+
options?: never;
|
|
14563
|
+
head?: never;
|
|
14564
|
+
patch?: never;
|
|
14565
|
+
trace?: never;
|
|
14566
|
+
};
|
|
14567
|
+
"/v1/messaging/conversations/{id}/send": {
|
|
14568
|
+
parameters: {
|
|
14569
|
+
query?: never;
|
|
14570
|
+
header?: never;
|
|
14571
|
+
path?: never;
|
|
14572
|
+
cookie?: never;
|
|
14573
|
+
};
|
|
14574
|
+
get?: never;
|
|
14575
|
+
put?: never;
|
|
14576
|
+
/**
|
|
14577
|
+
* Send human-authored message
|
|
14578
|
+
* @description Send a human-authored outbound message through the conversation's messaging channel.
|
|
14579
|
+
*/
|
|
14580
|
+
post: {
|
|
14581
|
+
parameters: {
|
|
14582
|
+
query?: never;
|
|
14583
|
+
header?: never;
|
|
14584
|
+
path: {
|
|
14585
|
+
id: string;
|
|
14586
|
+
};
|
|
14587
|
+
cookie?: never;
|
|
14588
|
+
};
|
|
14589
|
+
requestBody?: {
|
|
14590
|
+
content: {
|
|
14591
|
+
"application/json": {
|
|
14592
|
+
content: string;
|
|
14593
|
+
metadata?: {
|
|
14594
|
+
attachments?: {
|
|
14595
|
+
contentType: string;
|
|
14596
|
+
name: string;
|
|
14597
|
+
size: number;
|
|
14598
|
+
url?: string;
|
|
14599
|
+
}[];
|
|
14600
|
+
externalTimestamp?: string;
|
|
14601
|
+
headers?: {
|
|
14602
|
+
[key: string]: string;
|
|
14603
|
+
};
|
|
14604
|
+
};
|
|
14605
|
+
/** @default true */
|
|
14606
|
+
requireHumanMode?: boolean;
|
|
14607
|
+
};
|
|
14608
|
+
};
|
|
14609
|
+
};
|
|
14610
|
+
responses: {
|
|
14611
|
+
/** @description Message sent to channel */
|
|
14612
|
+
201: {
|
|
14613
|
+
headers: {
|
|
14614
|
+
[name: string]: unknown;
|
|
14615
|
+
};
|
|
14616
|
+
content: {
|
|
14617
|
+
"application/json": {
|
|
14618
|
+
deliveryResult: {
|
|
14619
|
+
deliveryStatus: string;
|
|
14620
|
+
externalMessageId: string | null;
|
|
14621
|
+
} & {
|
|
14622
|
+
[key: string]: unknown;
|
|
14623
|
+
};
|
|
14624
|
+
message: {
|
|
14625
|
+
content: string;
|
|
14626
|
+
conversationId: string;
|
|
14627
|
+
createdAt: string;
|
|
14628
|
+
direction: string | null;
|
|
14629
|
+
externalMessageId: string | null;
|
|
14630
|
+
id?: string;
|
|
14631
|
+
metadata: {
|
|
14632
|
+
[key: string]: unknown;
|
|
14633
|
+
};
|
|
14634
|
+
role: string;
|
|
14635
|
+
} & {
|
|
14636
|
+
[key: string]: unknown;
|
|
14637
|
+
};
|
|
14638
|
+
} & {
|
|
14639
|
+
[key: string]: unknown;
|
|
14640
|
+
};
|
|
14641
|
+
};
|
|
14642
|
+
};
|
|
14643
|
+
/** @description Invalid request */
|
|
14644
|
+
400: {
|
|
14645
|
+
headers: {
|
|
14646
|
+
[name: string]: unknown;
|
|
14647
|
+
};
|
|
14648
|
+
content: {
|
|
14649
|
+
"application/json": components["schemas"]["Error"];
|
|
14650
|
+
};
|
|
14651
|
+
};
|
|
14652
|
+
/** @description Unauthorized */
|
|
14653
|
+
401: {
|
|
14654
|
+
headers: {
|
|
14655
|
+
[name: string]: unknown;
|
|
14656
|
+
};
|
|
14657
|
+
content: {
|
|
14658
|
+
"application/json": components["schemas"]["Error"];
|
|
14659
|
+
};
|
|
14660
|
+
};
|
|
14661
|
+
/** @description Insufficient permissions */
|
|
14662
|
+
403: {
|
|
14663
|
+
headers: {
|
|
14664
|
+
[name: string]: unknown;
|
|
14665
|
+
};
|
|
14666
|
+
content: {
|
|
14667
|
+
"application/json": components["schemas"]["Error"];
|
|
14668
|
+
};
|
|
14669
|
+
};
|
|
14670
|
+
/** @description Conversation not found */
|
|
14671
|
+
404: {
|
|
14672
|
+
headers: {
|
|
14673
|
+
[name: string]: unknown;
|
|
14674
|
+
};
|
|
14675
|
+
content: {
|
|
14676
|
+
"application/json": components["schemas"]["Error"];
|
|
14677
|
+
};
|
|
14678
|
+
};
|
|
14679
|
+
/** @description Conversation or surface cannot be addressed */
|
|
14680
|
+
422: {
|
|
14681
|
+
headers: {
|
|
14682
|
+
[name: string]: unknown;
|
|
14683
|
+
};
|
|
14684
|
+
content: {
|
|
14685
|
+
"application/json": components["schemas"]["Error"];
|
|
14686
|
+
};
|
|
14687
|
+
};
|
|
14688
|
+
/** @description Internal server error */
|
|
14689
|
+
500: {
|
|
14690
|
+
headers: {
|
|
14691
|
+
[name: string]: unknown;
|
|
14692
|
+
};
|
|
14693
|
+
content: {
|
|
14694
|
+
"application/json": components["schemas"]["Error"];
|
|
14695
|
+
};
|
|
14696
|
+
};
|
|
14697
|
+
/** @description Channel delivery failed */
|
|
14698
|
+
502: {
|
|
14699
|
+
headers: {
|
|
14700
|
+
[name: string]: unknown;
|
|
14701
|
+
};
|
|
14702
|
+
content: {
|
|
14703
|
+
"application/json": components["schemas"]["Error"];
|
|
14704
|
+
};
|
|
14705
|
+
};
|
|
14706
|
+
};
|
|
14707
|
+
};
|
|
14708
|
+
delete?: never;
|
|
14709
|
+
options?: never;
|
|
14710
|
+
head?: never;
|
|
14711
|
+
patch?: never;
|
|
14712
|
+
trace?: never;
|
|
14713
|
+
};
|
|
14714
|
+
"/v1/messaging/conversations/{id}/takeover": {
|
|
14715
|
+
parameters: {
|
|
14716
|
+
query?: never;
|
|
14717
|
+
header?: never;
|
|
14718
|
+
path?: never;
|
|
14719
|
+
cookie?: never;
|
|
14720
|
+
};
|
|
14721
|
+
get?: never;
|
|
14722
|
+
put?: never;
|
|
14723
|
+
/**
|
|
14724
|
+
* Take over conversation
|
|
14725
|
+
* @description Switch a messaging conversation into human-operator mode so inbound messages are persisted but agent replies are suppressed.
|
|
14726
|
+
*/
|
|
14727
|
+
post: {
|
|
14728
|
+
parameters: {
|
|
14729
|
+
query?: never;
|
|
14730
|
+
header?: never;
|
|
14731
|
+
path: {
|
|
14732
|
+
id: string;
|
|
14733
|
+
};
|
|
14734
|
+
cookie?: never;
|
|
14735
|
+
};
|
|
14736
|
+
requestBody?: {
|
|
14737
|
+
content: {
|
|
14738
|
+
"application/json": {
|
|
14739
|
+
reason?: string;
|
|
14740
|
+
};
|
|
14741
|
+
};
|
|
14742
|
+
};
|
|
14743
|
+
responses: {
|
|
14744
|
+
/** @description Conversation switched to human mode */
|
|
14745
|
+
200: {
|
|
14746
|
+
headers: {
|
|
14747
|
+
[name: string]: unknown;
|
|
14748
|
+
};
|
|
14749
|
+
content: {
|
|
14750
|
+
"application/json": {
|
|
14751
|
+
agentMode: string;
|
|
14752
|
+
id: string;
|
|
14753
|
+
takeoverActorId: string | null;
|
|
14754
|
+
takeoverActorType: string | null;
|
|
14755
|
+
takeoverAt: string | null;
|
|
14756
|
+
takeoverReason: string | null;
|
|
14757
|
+
updatedAt: string;
|
|
14758
|
+
} & {
|
|
14759
|
+
[key: string]: unknown;
|
|
14760
|
+
};
|
|
14761
|
+
};
|
|
14762
|
+
};
|
|
14763
|
+
/** @description Invalid request */
|
|
14764
|
+
400: {
|
|
14765
|
+
headers: {
|
|
14766
|
+
[name: string]: unknown;
|
|
14767
|
+
};
|
|
14768
|
+
content: {
|
|
14769
|
+
"application/json": components["schemas"]["Error"];
|
|
14770
|
+
};
|
|
14771
|
+
};
|
|
14772
|
+
/** @description Unauthorized */
|
|
14773
|
+
401: {
|
|
14774
|
+
headers: {
|
|
14775
|
+
[name: string]: unknown;
|
|
14776
|
+
};
|
|
14777
|
+
content: {
|
|
14778
|
+
"application/json": components["schemas"]["Error"];
|
|
14779
|
+
};
|
|
14780
|
+
};
|
|
14781
|
+
/** @description Insufficient permissions */
|
|
14782
|
+
403: {
|
|
14783
|
+
headers: {
|
|
14784
|
+
[name: string]: unknown;
|
|
14785
|
+
};
|
|
14786
|
+
content: {
|
|
14787
|
+
"application/json": components["schemas"]["Error"];
|
|
14788
|
+
};
|
|
14789
|
+
};
|
|
14790
|
+
/** @description Conversation not found */
|
|
14791
|
+
404: {
|
|
14792
|
+
headers: {
|
|
14793
|
+
[name: string]: unknown;
|
|
14794
|
+
};
|
|
14795
|
+
content: {
|
|
14796
|
+
"application/json": components["schemas"]["Error"];
|
|
14797
|
+
};
|
|
14798
|
+
};
|
|
14799
|
+
/** @description Conversation already in human mode */
|
|
14800
|
+
409: {
|
|
14801
|
+
headers: {
|
|
14802
|
+
[name: string]: unknown;
|
|
14803
|
+
};
|
|
14804
|
+
content: {
|
|
14805
|
+
"application/json": components["schemas"]["Error"];
|
|
14806
|
+
};
|
|
14807
|
+
};
|
|
14808
|
+
/** @description Internal server error */
|
|
14809
|
+
500: {
|
|
14810
|
+
headers: {
|
|
14811
|
+
[name: string]: unknown;
|
|
14812
|
+
};
|
|
14813
|
+
content: {
|
|
14814
|
+
"application/json": components["schemas"]["Error"];
|
|
14815
|
+
};
|
|
14816
|
+
};
|
|
14817
|
+
};
|
|
14818
|
+
};
|
|
14819
|
+
delete?: never;
|
|
14820
|
+
options?: never;
|
|
14821
|
+
head?: never;
|
|
14822
|
+
patch?: never;
|
|
14823
|
+
trace?: never;
|
|
14824
|
+
};
|
|
14438
14825
|
"/v1/messaging/imap/{surfaceId}/poll-now": {
|
|
14439
14826
|
parameters: {
|
|
14440
14827
|
query?: never;
|
|
@@ -17740,7 +18127,9 @@ interface paths {
|
|
|
17740
18127
|
*/
|
|
17741
18128
|
get: {
|
|
17742
18129
|
parameters: {
|
|
17743
|
-
query?:
|
|
18130
|
+
query?: {
|
|
18131
|
+
includeEditorContext?: string;
|
|
18132
|
+
};
|
|
17744
18133
|
header?: never;
|
|
17745
18134
|
path: {
|
|
17746
18135
|
id: string;
|
|
@@ -17763,6 +18152,17 @@ interface paths {
|
|
|
17763
18152
|
createdAt: string;
|
|
17764
18153
|
dashboardUrl?: string;
|
|
17765
18154
|
description: string | null;
|
|
18155
|
+
editorContext?: {
|
|
18156
|
+
agentConfigMap: {
|
|
18157
|
+
[key: string]: unknown;
|
|
18158
|
+
};
|
|
18159
|
+
flowStepsMap: {
|
|
18160
|
+
[key: string]: {
|
|
18161
|
+
name: string;
|
|
18162
|
+
type: string;
|
|
18163
|
+
}[];
|
|
18164
|
+
};
|
|
18165
|
+
};
|
|
17766
18166
|
icon: string | null;
|
|
17767
18167
|
id: string;
|
|
17768
18168
|
name: string;
|
package/package.json
CHANGED