@amigo-ai/platform-sdk 0.70.0 → 0.72.0
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/types/generated/api.d.ts +95 -3
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/external-integrations.d.ts.map +1 -1
- package/dist/types/resources/intake.d.ts.map +1 -1
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts +5 -0
- package/dist/types/resources/surfaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2067,6 +2067,26 @@ export interface paths {
|
|
|
2067
2067
|
patch?: never;
|
|
2068
2068
|
trace?: never;
|
|
2069
2069
|
};
|
|
2070
|
+
"/v1/{workspace_id}/conversations/{conversation_id}/approval": {
|
|
2071
|
+
parameters: {
|
|
2072
|
+
query?: never;
|
|
2073
|
+
header?: never;
|
|
2074
|
+
path?: never;
|
|
2075
|
+
cookie?: never;
|
|
2076
|
+
};
|
|
2077
|
+
get?: never;
|
|
2078
|
+
put?: never;
|
|
2079
|
+
/**
|
|
2080
|
+
* Approve or reject a parked write in your own conversation (external-user self-approval)
|
|
2081
|
+
* @description Lets the external user who owns a conversation approve or reject a write that the agent paused for their confirmation. Only the conversation's own external user may call this; it requires the `conversations:approve_own` scope.
|
|
2082
|
+
*/
|
|
2083
|
+
post: operations["decide_conversation_approval_v1__workspace_id__conversations__conversation_id__approval_post"];
|
|
2084
|
+
delete?: never;
|
|
2085
|
+
options?: never;
|
|
2086
|
+
head?: never;
|
|
2087
|
+
patch?: never;
|
|
2088
|
+
trace?: never;
|
|
2089
|
+
};
|
|
2070
2090
|
"/v1/{workspace_id}/conversations/{conversation_id}/turns": {
|
|
2071
2091
|
parameters: {
|
|
2072
2092
|
query?: never;
|
|
@@ -6424,7 +6444,9 @@ export interface paths {
|
|
|
6424
6444
|
* Get Surface
|
|
6425
6445
|
* @description Get a surface by ID.
|
|
6426
6446
|
*
|
|
6427
|
-
* Returns the surface spec and current lifecycle status.
|
|
6447
|
+
* Returns the surface spec and current lifecycle status. Also mints the
|
|
6448
|
+
* patient-facing ``url`` so operators can copy/share the link from the read
|
|
6449
|
+
* view (the token isn't stored, so it's re-minted on each read).
|
|
6428
6450
|
*
|
|
6429
6451
|
* Permissions: viewer, member, admin, owner (surfaces:read)
|
|
6430
6452
|
*/
|
|
@@ -10079,6 +10101,19 @@ export interface components {
|
|
|
10079
10101
|
*/
|
|
10080
10102
|
workspace_id: string;
|
|
10081
10103
|
};
|
|
10104
|
+
/**
|
|
10105
|
+
* ConversationApprovalRequest
|
|
10106
|
+
* @description An external user's decision on a parked, approval-gated write in their own conversation.
|
|
10107
|
+
*/
|
|
10108
|
+
ConversationApprovalRequest: {
|
|
10109
|
+
/**
|
|
10110
|
+
* Decision
|
|
10111
|
+
* @enum {string}
|
|
10112
|
+
*/
|
|
10113
|
+
decision: "approve" | "reject";
|
|
10114
|
+
/** Reason */
|
|
10115
|
+
reason?: string | null;
|
|
10116
|
+
};
|
|
10082
10117
|
/** ConversationConfig */
|
|
10083
10118
|
ConversationConfig: {
|
|
10084
10119
|
/** Agent Id */
|
|
@@ -19900,7 +19935,7 @@ export interface components {
|
|
|
19900
19935
|
* Channel
|
|
19901
19936
|
* @enum {string}
|
|
19902
19937
|
*/
|
|
19903
|
-
channel: "inbound_voice" | "outbound_voice" | "ringless_voicemail" | "email";
|
|
19938
|
+
channel: "inbound_voice" | "outbound_voice" | "ringless_voicemail" | "email" | "sms" | "imessage";
|
|
19904
19939
|
/**
|
|
19905
19940
|
* Created At
|
|
19906
19941
|
* Format: date-time
|
|
@@ -22345,6 +22380,8 @@ export interface components {
|
|
|
22345
22380
|
} | null;
|
|
22346
22381
|
/** Title */
|
|
22347
22382
|
title?: string | null;
|
|
22383
|
+
/** Url */
|
|
22384
|
+
url?: string | null;
|
|
22348
22385
|
/** Use Case Id */
|
|
22349
22386
|
use_case_id?: string | null;
|
|
22350
22387
|
};
|
|
@@ -31739,6 +31776,61 @@ export interface operations {
|
|
|
31739
31776
|
};
|
|
31740
31777
|
};
|
|
31741
31778
|
};
|
|
31779
|
+
decide_conversation_approval_v1__workspace_id__conversations__conversation_id__approval_post: {
|
|
31780
|
+
parameters: {
|
|
31781
|
+
query?: never;
|
|
31782
|
+
header?: never;
|
|
31783
|
+
path: {
|
|
31784
|
+
workspace_id: string;
|
|
31785
|
+
conversation_id: string;
|
|
31786
|
+
};
|
|
31787
|
+
cookie?: never;
|
|
31788
|
+
};
|
|
31789
|
+
requestBody: {
|
|
31790
|
+
content: {
|
|
31791
|
+
"application/json": components["schemas"]["ConversationApprovalRequest"];
|
|
31792
|
+
};
|
|
31793
|
+
};
|
|
31794
|
+
responses: {
|
|
31795
|
+
/** @description Successful Response */
|
|
31796
|
+
204: {
|
|
31797
|
+
headers: {
|
|
31798
|
+
[name: string]: unknown;
|
|
31799
|
+
};
|
|
31800
|
+
content?: never;
|
|
31801
|
+
};
|
|
31802
|
+
/** @description Not an external_user token, or missing conversations:approve_own scope */
|
|
31803
|
+
403: {
|
|
31804
|
+
headers: {
|
|
31805
|
+
[name: string]: unknown;
|
|
31806
|
+
};
|
|
31807
|
+
content?: never;
|
|
31808
|
+
};
|
|
31809
|
+
/** @description Conversation not found or not owned by the caller */
|
|
31810
|
+
404: {
|
|
31811
|
+
headers: {
|
|
31812
|
+
[name: string]: unknown;
|
|
31813
|
+
};
|
|
31814
|
+
content?: never;
|
|
31815
|
+
};
|
|
31816
|
+
/** @description Validation Error */
|
|
31817
|
+
422: {
|
|
31818
|
+
headers: {
|
|
31819
|
+
[name: string]: unknown;
|
|
31820
|
+
};
|
|
31821
|
+
content: {
|
|
31822
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
31823
|
+
};
|
|
31824
|
+
};
|
|
31825
|
+
/** @description Decision store temporarily unavailable — safe to retry */
|
|
31826
|
+
503: {
|
|
31827
|
+
headers: {
|
|
31828
|
+
[name: string]: unknown;
|
|
31829
|
+
};
|
|
31830
|
+
content?: never;
|
|
31831
|
+
};
|
|
31832
|
+
};
|
|
31833
|
+
};
|
|
31742
31834
|
create_turn_v1__workspace_id__conversations__conversation_id__turns_post: {
|
|
31743
31835
|
parameters: {
|
|
31744
31836
|
query?: {
|
|
@@ -43375,7 +43467,7 @@ export interface operations {
|
|
|
43375
43467
|
parameters: {
|
|
43376
43468
|
query?: {
|
|
43377
43469
|
entity_name?: string | null;
|
|
43378
|
-
channel?: ("outbound_voice" | "inbound_voice" | "ringless_voicemail" | "email") | null;
|
|
43470
|
+
channel?: ("outbound_voice" | "inbound_voice" | "ringless_voicemail" | "email" | "sms" | "imessage") | null;
|
|
43379
43471
|
setup_id?: string | null;
|
|
43380
43472
|
};
|
|
43381
43473
|
header?: never;
|