@salesforce/lds-adapters-sales-eci 0.1.0-dev1
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/LICENSE.txt +82 -0
- package/dist/es/es2018/sales-eci.js +1744 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/generateConversationSummary.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/adapters/getConversationGenerativeInsight.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getConversationSummaryRelatedList.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getTranscript.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/initiateMeeting.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/adapters/terminateMeeting.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/getConversationGenerativeInsightById.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getConversationSummaryRelatedById.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getConversationTranscriptBySfdcCallIdOrRecordingId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postConversationRealtimeInsightMeetingInitiate.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/postConversationRealtimeInsightMeetingTerminate.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/postConversationSummaryAiGenerateByConversationId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/types/ConversationGenInsightListRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/ConversationGenerativeInsightRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/ConversationRealtimeEndMeetingPayloadInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/ConversationRealtimeEndMeetingResponseRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/ConversationRealtimeMeetingInitiationResponseRepresentation.d.ts +51 -0
- package/dist/es/es2018/types/src/generated/types/ConversationRealtimeMeetingParticipantRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ConversationRealtimeStartMeetingPayloadRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/ConversationSummaryListRepresentation.d.ts +54 -0
- package/dist/es/es2018/types/src/generated/types/ConversationSummaryRepresentation.d.ts +53 -0
- package/dist/es/es2018/types/src/generated/types/ConversationTranscriptRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/conversationRealtimeEndMeetingPayloadRepresentation.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +77 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1902 -0
- package/src/raml/api.raml +278 -0
- package/src/raml/luvio.raml +67 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '59.0'
|
|
6
|
+
mediaType: application/json
|
|
7
|
+
protocols:
|
|
8
|
+
- https
|
|
9
|
+
baseUri: /services/data/v66.0
|
|
10
|
+
securitySchemes:
|
|
11
|
+
OAuth2:
|
|
12
|
+
type: OAuth 2.0
|
|
13
|
+
settings:
|
|
14
|
+
authorizationUri: https://example.com/oauth/authorize
|
|
15
|
+
accessTokenUri: ''
|
|
16
|
+
authorizationGrants:
|
|
17
|
+
- implicit
|
|
18
|
+
annotationTypes:
|
|
19
|
+
oas-readOnly:
|
|
20
|
+
type: boolean
|
|
21
|
+
allowedTargets: TypeDeclaration
|
|
22
|
+
oas-collectionFormat:
|
|
23
|
+
type: string
|
|
24
|
+
oas-body-name:
|
|
25
|
+
type: string
|
|
26
|
+
allowedTargets: TypeDeclaration
|
|
27
|
+
types:
|
|
28
|
+
ConversationGenInsightListRepresentation:
|
|
29
|
+
description: List of GenerativeInsightRepresentation records
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
error:
|
|
33
|
+
description: Generative Insight Error
|
|
34
|
+
type: object
|
|
35
|
+
properties:
|
|
36
|
+
//:
|
|
37
|
+
type: string
|
|
38
|
+
generativeInsights:
|
|
39
|
+
description: List of Generative Insight records
|
|
40
|
+
type: array
|
|
41
|
+
items:
|
|
42
|
+
type: ConversationGenerativeInsightRepresentation
|
|
43
|
+
recordId:
|
|
44
|
+
description: ID for the VoiceCall or VideoCall
|
|
45
|
+
type: string
|
|
46
|
+
ConversationGenerativeInsightRepresentation:
|
|
47
|
+
description: Represents a generative insight for a voice/video call
|
|
48
|
+
type: object
|
|
49
|
+
properties:
|
|
50
|
+
generatedText:
|
|
51
|
+
description: Generative insight generated text
|
|
52
|
+
type: string
|
|
53
|
+
insightName:
|
|
54
|
+
description: Insight Type Name
|
|
55
|
+
type: string
|
|
56
|
+
insightTypeId:
|
|
57
|
+
description: Insight Type Id
|
|
58
|
+
type: string
|
|
59
|
+
modifiedBy:
|
|
60
|
+
description: Generative insight created/modified by
|
|
61
|
+
type: string
|
|
62
|
+
ConversationRealtimeEndMeetingPayloadInputRepresentation:
|
|
63
|
+
type: object
|
|
64
|
+
description: Represents a conversations real-time end meeting payload
|
|
65
|
+
properties:
|
|
66
|
+
botId:
|
|
67
|
+
description: real-time meeting bot id
|
|
68
|
+
type: string
|
|
69
|
+
ConversationRealtimeMeetingInitiationResponseRepresentation:
|
|
70
|
+
description: Represents details to connect to the real-time insights service on
|
|
71
|
+
meeting initiation.
|
|
72
|
+
type: object
|
|
73
|
+
properties:
|
|
74
|
+
botId:
|
|
75
|
+
description: Identifier for the Bot that participates in the meeting
|
|
76
|
+
type: string
|
|
77
|
+
error:
|
|
78
|
+
description: Realtime Insight Error
|
|
79
|
+
type: object
|
|
80
|
+
properties:
|
|
81
|
+
//:
|
|
82
|
+
type: string
|
|
83
|
+
jwtToken:
|
|
84
|
+
description: JWT token to connect to the real-time-processing-service for
|
|
85
|
+
obtaining insights
|
|
86
|
+
type: string
|
|
87
|
+
webSocketUrl:
|
|
88
|
+
description: WebSocket URL to connect to the real-time-processing-service
|
|
89
|
+
for obtaining insights
|
|
90
|
+
type: string
|
|
91
|
+
ConversationRealtimeEndMeetingResponseRepresentation:
|
|
92
|
+
description: Represents empty response
|
|
93
|
+
type: object
|
|
94
|
+
properties:
|
|
95
|
+
fakeKey: string # TODO: Handrolled because luvio doesn't support mutation operations that don't return a key
|
|
96
|
+
ConversationRealtimeMeetingParticipantRepresentation:
|
|
97
|
+
description: Representation of realtime meeting participant
|
|
98
|
+
type: object
|
|
99
|
+
properties:
|
|
100
|
+
screenName:
|
|
101
|
+
description: Display name of meeting participant
|
|
102
|
+
type: string
|
|
103
|
+
participantUUID:
|
|
104
|
+
description: UUID associated with meeting participant
|
|
105
|
+
type: string | nil
|
|
106
|
+
ConversationRealtimeStartMeetingPayloadRepresentation:
|
|
107
|
+
type: object
|
|
108
|
+
properties:
|
|
109
|
+
meetingUrl:
|
|
110
|
+
type: string
|
|
111
|
+
required: true
|
|
112
|
+
vendorName:
|
|
113
|
+
type: string
|
|
114
|
+
required: true
|
|
115
|
+
meetingSubject:
|
|
116
|
+
type: string | nil
|
|
117
|
+
required: true
|
|
118
|
+
meetingId:
|
|
119
|
+
type: string | nil
|
|
120
|
+
required: true
|
|
121
|
+
participants:
|
|
122
|
+
type: array
|
|
123
|
+
required: true
|
|
124
|
+
items:
|
|
125
|
+
type: ConversationRealtimeMeetingParticipantRepresentation
|
|
126
|
+
conversationRealtimeEndMeetingPayloadRepresentation:
|
|
127
|
+
type: object
|
|
128
|
+
properties:
|
|
129
|
+
botId:
|
|
130
|
+
type: string
|
|
131
|
+
required: true
|
|
132
|
+
ConversationSummaryListRepresentation:
|
|
133
|
+
description: Represents a list of GenAIConversationSummary records
|
|
134
|
+
type: object
|
|
135
|
+
properties:
|
|
136
|
+
conversationIds:
|
|
137
|
+
description: List of IDs for the VoiceCall, VideoCall.
|
|
138
|
+
type: array
|
|
139
|
+
items:
|
|
140
|
+
type: string
|
|
141
|
+
conversationSummaryList:
|
|
142
|
+
description: List of GenAIConversationSummary records
|
|
143
|
+
type: array
|
|
144
|
+
items:
|
|
145
|
+
type: ConversationSummaryRepresentation
|
|
146
|
+
id:
|
|
147
|
+
description: 'ID for the related record object of VoiceCall, VideoCall. Eg:
|
|
148
|
+
Opportunity, Accounts etc.'
|
|
149
|
+
type: string
|
|
150
|
+
ConversationSummaryRepresentation:
|
|
151
|
+
description: This represents a single GenAIConversationSummary record
|
|
152
|
+
type: object
|
|
153
|
+
properties:
|
|
154
|
+
conversationRecordId:
|
|
155
|
+
description: Conversation Record ID for this summary. Multi-domain of VoiceCall
|
|
156
|
+
and VideoCall.
|
|
157
|
+
type: string
|
|
158
|
+
errorMessage:
|
|
159
|
+
description: Error message when state is Error
|
|
160
|
+
type: string | nil
|
|
161
|
+
id:
|
|
162
|
+
description: GenAIConversationSummary Record ID for this summary.
|
|
163
|
+
type: string
|
|
164
|
+
source:
|
|
165
|
+
description: 'The source of the most recent update of the summary field. Values:
|
|
166
|
+
USER_EDITED, EINSTEIN_GPT'
|
|
167
|
+
type: string | nil
|
|
168
|
+
status:
|
|
169
|
+
description: 'The status this summary is in: Success, Generating, Error'
|
|
170
|
+
type: string
|
|
171
|
+
summary:
|
|
172
|
+
description: The generated or edited summary of the referenced record
|
|
173
|
+
type: string | nil
|
|
174
|
+
ConversationTranscriptRepresentation:
|
|
175
|
+
description: Represents the transcript structure from SIQ
|
|
176
|
+
type: object
|
|
177
|
+
properties:
|
|
178
|
+
transcriptData:
|
|
179
|
+
description: Transcript Data as JSON
|
|
180
|
+
type: string | nil
|
|
181
|
+
error:
|
|
182
|
+
description: Transcript Error Message
|
|
183
|
+
type: object
|
|
184
|
+
properties:
|
|
185
|
+
//:
|
|
186
|
+
type: string
|
|
187
|
+
/conversation:
|
|
188
|
+
/generative/insight/{id}:
|
|
189
|
+
get:
|
|
190
|
+
displayName: getConversationGenerativeInsight
|
|
191
|
+
description: Returns list of GenerativeInsight records
|
|
192
|
+
responses:
|
|
193
|
+
'200':
|
|
194
|
+
description: Success
|
|
195
|
+
body:
|
|
196
|
+
application/json:
|
|
197
|
+
type: ConversationGenInsightListRepresentation
|
|
198
|
+
uriParameters:
|
|
199
|
+
id:
|
|
200
|
+
type: string
|
|
201
|
+
required: true
|
|
202
|
+
/realtime/insight/meeting:
|
|
203
|
+
/initiate:
|
|
204
|
+
post:
|
|
205
|
+
displayName: postConversationRealtimeInsightsStartMeeting
|
|
206
|
+
description: Initiate the request to start the meeting and to include ECI
|
|
207
|
+
Real-time bot in the meeting.
|
|
208
|
+
responses:
|
|
209
|
+
'200':
|
|
210
|
+
description: Success
|
|
211
|
+
body:
|
|
212
|
+
application/json:
|
|
213
|
+
type: ConversationRealtimeMeetingInitiationResponseRepresentation
|
|
214
|
+
body:
|
|
215
|
+
application/json:
|
|
216
|
+
type: ConversationRealtimeStartMeetingPayloadRepresentation
|
|
217
|
+
(oas-body-name): conversationRealtimeStartMeetingPayload
|
|
218
|
+
/terminate:
|
|
219
|
+
post:
|
|
220
|
+
description: Initiate the request to end the meeting and to remove the ECI Real-time bot from the meeting.
|
|
221
|
+
responses:
|
|
222
|
+
'200':
|
|
223
|
+
description: Success
|
|
224
|
+
body:
|
|
225
|
+
application/json:
|
|
226
|
+
type: ConversationRealtimeEndMeetingResponseRepresentation
|
|
227
|
+
body:
|
|
228
|
+
application/json:
|
|
229
|
+
type: conversationRealtimeEndMeetingPayloadRepresentation
|
|
230
|
+
(oas-body-name): conversationRealtimeEndMeetingPayload
|
|
231
|
+
/summary:
|
|
232
|
+
/ai/generate/{conversationId}:
|
|
233
|
+
post:
|
|
234
|
+
displayName: postConversationSummaryGenerate
|
|
235
|
+
description: Generates summary for a VideoCall, VoiceCall recording
|
|
236
|
+
responses:
|
|
237
|
+
'200':
|
|
238
|
+
description: Success
|
|
239
|
+
body:
|
|
240
|
+
application/json:
|
|
241
|
+
type: ConversationSummaryRepresentation
|
|
242
|
+
uriParameters:
|
|
243
|
+
conversationId:
|
|
244
|
+
type: string
|
|
245
|
+
required: true
|
|
246
|
+
/related/{id}:
|
|
247
|
+
get:
|
|
248
|
+
displayName: getConversationSummaryRelatedList
|
|
249
|
+
description: Returns a list of GenAIConversationSummary records
|
|
250
|
+
responses:
|
|
251
|
+
'200':
|
|
252
|
+
description: Success
|
|
253
|
+
body:
|
|
254
|
+
application/json:
|
|
255
|
+
type: ConversationSummaryListRepresentation
|
|
256
|
+
uriParameters:
|
|
257
|
+
id:
|
|
258
|
+
type: string
|
|
259
|
+
required: true
|
|
260
|
+
/transcript/{sfdcCallIdOrRecordingId}:
|
|
261
|
+
get:
|
|
262
|
+
displayName: getConversationTranscript
|
|
263
|
+
description: Returns preseigned URL for the Transcript content (as avro file)
|
|
264
|
+
for a given video call recording id or voice call id.
|
|
265
|
+
responses:
|
|
266
|
+
'200':
|
|
267
|
+
description: Success
|
|
268
|
+
body:
|
|
269
|
+
application/json:
|
|
270
|
+
type: ConversationTranscriptRepresentation
|
|
271
|
+
queryParameters:
|
|
272
|
+
includeData:
|
|
273
|
+
type: boolean
|
|
274
|
+
required: false
|
|
275
|
+
uriParameters:
|
|
276
|
+
sfdcCallIdOrRecordingId:
|
|
277
|
+
type: string
|
|
278
|
+
required: true
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'eci'
|
|
8
|
+
# 30 days
|
|
9
|
+
(luvio.ttl): 2592000000
|
|
10
|
+
|
|
11
|
+
types:
|
|
12
|
+
ConversationGenerativeInsightRepresentation:
|
|
13
|
+
(luvio.ttl): 60000 # 60 seconds
|
|
14
|
+
ConversationGenInsightListRepresentation:
|
|
15
|
+
(luvio.ttl): 60000 # 60 seconds
|
|
16
|
+
(luvio.key):
|
|
17
|
+
id: recordId
|
|
18
|
+
ConversationSummaryRepresentation:
|
|
19
|
+
(luvio.ttl): 60000 # 60 seconds
|
|
20
|
+
(luvio.key):
|
|
21
|
+
conversation_sumamry_id: id
|
|
22
|
+
ConversationSummaryListRepresentation:
|
|
23
|
+
(luvio.ttl): 60000 # 60 seconds
|
|
24
|
+
(luvio.key):
|
|
25
|
+
id: id
|
|
26
|
+
ConversationTranscriptRepresentation:
|
|
27
|
+
(luvio.ttl): 2592000000
|
|
28
|
+
ConversationRealtimeMeetingInitiationResponseRepresentation:
|
|
29
|
+
(luvio.ttl): 60000 # 60 seconds
|
|
30
|
+
(luvio.key):
|
|
31
|
+
id: botId
|
|
32
|
+
ConversationRealtimeEndMeetingResponseRepresentation:
|
|
33
|
+
(luvio.ttl): 60000 # 60 seconds
|
|
34
|
+
(luvio.key):
|
|
35
|
+
fakeKey: fakeKey
|
|
36
|
+
|
|
37
|
+
/conversation:
|
|
38
|
+
/generative/insight/{id}:
|
|
39
|
+
get:
|
|
40
|
+
(luvio.adapter):
|
|
41
|
+
name: getConversationGenerativeInsight
|
|
42
|
+
(luvio.key):
|
|
43
|
+
id: urlParams.id
|
|
44
|
+
/realtime/insight/meeting:
|
|
45
|
+
/initiate:
|
|
46
|
+
post:
|
|
47
|
+
(luvio.adapter):
|
|
48
|
+
name: initiateMeeting
|
|
49
|
+
/terminate:
|
|
50
|
+
post:
|
|
51
|
+
(luvio.adapter):
|
|
52
|
+
name: terminateMeeting
|
|
53
|
+
/summary:
|
|
54
|
+
/ai/generate/{conversationId}:
|
|
55
|
+
post:
|
|
56
|
+
(luvio.adapter):
|
|
57
|
+
name: generateConversationSummary
|
|
58
|
+
/related/{id}:
|
|
59
|
+
get:
|
|
60
|
+
(luvio.adapter):
|
|
61
|
+
name: getConversationSummaryRelatedList
|
|
62
|
+
(luvio.key):
|
|
63
|
+
id: urlParams.id
|
|
64
|
+
/transcript/{sfdcCallIdOrRecordingId}:
|
|
65
|
+
get:
|
|
66
|
+
(luvio.adapter):
|
|
67
|
+
name: getTranscript
|