@maxim_mazurok/gapi.client.contactcenterinsights-v1 0.0.20231106 → 0.0.20231204
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/index.d.ts +3332 -4802
- package/package.json +6 -6
- package/readme.md +17 -13
- package/tests.ts +0 -1402
- package/tsconfig.json +0 -18
- package/tslint.json +0 -6
package/tests.ts
DELETED
|
@@ -1,1402 +0,0 @@
|
|
|
1
|
-
/* This is stub file for gapi.client.contactcenterinsights-v1 definition tests */
|
|
2
|
-
// IMPORTANT
|
|
3
|
-
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
-
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
-
|
|
6
|
-
// Revision: 20231106
|
|
7
|
-
|
|
8
|
-
gapi.load('client', async () => {
|
|
9
|
-
/** now we can use gapi.client */
|
|
10
|
-
|
|
11
|
-
await gapi.client.load('https://contactcenterinsights.googleapis.com/$discovery/rest?version=v1');
|
|
12
|
-
/** now we can use gapi.client.contactcenterinsights */
|
|
13
|
-
|
|
14
|
-
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
-
/** declare client_id registered in Google Developers Console */
|
|
16
|
-
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
-
const scope = [
|
|
18
|
-
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
|
|
19
|
-
'https://www.googleapis.com/auth/cloud-platform',
|
|
20
|
-
];
|
|
21
|
-
const immediate = false;
|
|
22
|
-
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
23
|
-
if (authResult && !authResult.error) {
|
|
24
|
-
/** handle successful authorization */
|
|
25
|
-
run();
|
|
26
|
-
} else {
|
|
27
|
-
/** handle authorization error */
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
async function run() {
|
|
32
|
-
/** Gets project-level settings. */
|
|
33
|
-
await gapi.client.contactcenterinsights.projects.locations.getSettings({
|
|
34
|
-
name: "Test string",
|
|
35
|
-
});
|
|
36
|
-
/** Updates project-level settings. */
|
|
37
|
-
await gapi.client.contactcenterinsights.projects.locations.updateSettings({
|
|
38
|
-
name: "Test string",
|
|
39
|
-
updateMask: "Test string",
|
|
40
|
-
}, {
|
|
41
|
-
analysisConfig: {
|
|
42
|
-
annotatorSelector: {
|
|
43
|
-
issueModels: [
|
|
44
|
-
"Test string"
|
|
45
|
-
],
|
|
46
|
-
phraseMatchers: [
|
|
47
|
-
"Test string"
|
|
48
|
-
],
|
|
49
|
-
runEntityAnnotator: true,
|
|
50
|
-
runIntentAnnotator: true,
|
|
51
|
-
runInterruptionAnnotator: true,
|
|
52
|
-
runIssueModelAnnotator: true,
|
|
53
|
-
runPhraseMatcherAnnotator: true,
|
|
54
|
-
runSentimentAnnotator: true,
|
|
55
|
-
runSilenceAnnotator: true,
|
|
56
|
-
runSummarizationAnnotator: true,
|
|
57
|
-
summarizationConfig: {
|
|
58
|
-
conversationProfile: "Test string",
|
|
59
|
-
summarizationModel: "Test string",
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
runtimeIntegrationAnalysisPercentage: 42,
|
|
63
|
-
uploadConversationAnalysisPercentage: 42,
|
|
64
|
-
},
|
|
65
|
-
conversationTtl: "Test string",
|
|
66
|
-
createTime: "Test string",
|
|
67
|
-
languageCode: "Test string",
|
|
68
|
-
name: "Test string",
|
|
69
|
-
pubsubNotificationSettings: {
|
|
70
|
-
A: "Test string"
|
|
71
|
-
},
|
|
72
|
-
redactionConfig: {
|
|
73
|
-
deidentifyTemplate: "Test string",
|
|
74
|
-
inspectTemplate: "Test string",
|
|
75
|
-
},
|
|
76
|
-
speechConfig: {
|
|
77
|
-
speechRecognizer: "Test string",
|
|
78
|
-
},
|
|
79
|
-
updateTime: "Test string",
|
|
80
|
-
});
|
|
81
|
-
/** Analyzes multiple conversations in a single request. */
|
|
82
|
-
await gapi.client.contactcenterinsights.projects.locations.conversations.bulkAnalyze({
|
|
83
|
-
parent: "Test string",
|
|
84
|
-
}, {
|
|
85
|
-
analysisPercentage: 42,
|
|
86
|
-
annotatorSelector: {
|
|
87
|
-
issueModels: [
|
|
88
|
-
"Test string"
|
|
89
|
-
],
|
|
90
|
-
phraseMatchers: [
|
|
91
|
-
"Test string"
|
|
92
|
-
],
|
|
93
|
-
runEntityAnnotator: true,
|
|
94
|
-
runIntentAnnotator: true,
|
|
95
|
-
runInterruptionAnnotator: true,
|
|
96
|
-
runIssueModelAnnotator: true,
|
|
97
|
-
runPhraseMatcherAnnotator: true,
|
|
98
|
-
runSentimentAnnotator: true,
|
|
99
|
-
runSilenceAnnotator: true,
|
|
100
|
-
runSummarizationAnnotator: true,
|
|
101
|
-
summarizationConfig: {
|
|
102
|
-
conversationProfile: "Test string",
|
|
103
|
-
summarizationModel: "Test string",
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
filter: "Test string",
|
|
107
|
-
parent: "Test string",
|
|
108
|
-
});
|
|
109
|
-
/** Deletes multiple conversations in a single request. */
|
|
110
|
-
await gapi.client.contactcenterinsights.projects.locations.conversations.bulkDelete({
|
|
111
|
-
parent: "Test string",
|
|
112
|
-
}, {
|
|
113
|
-
filter: "Test string",
|
|
114
|
-
force: true,
|
|
115
|
-
maxDeleteCount: 42,
|
|
116
|
-
parent: "Test string",
|
|
117
|
-
});
|
|
118
|
-
/** Gets conversation statistics. */
|
|
119
|
-
await gapi.client.contactcenterinsights.projects.locations.conversations.calculateStats({
|
|
120
|
-
filter: "Test string",
|
|
121
|
-
location: "Test string",
|
|
122
|
-
});
|
|
123
|
-
/** Creates a conversation. */
|
|
124
|
-
await gapi.client.contactcenterinsights.projects.locations.conversations.create({
|
|
125
|
-
conversationId: "Test string",
|
|
126
|
-
parent: "Test string",
|
|
127
|
-
}, {
|
|
128
|
-
agentId: "Test string",
|
|
129
|
-
callMetadata: {
|
|
130
|
-
agentChannel: 42,
|
|
131
|
-
customerChannel: 42,
|
|
132
|
-
},
|
|
133
|
-
createTime: "Test string",
|
|
134
|
-
dataSource: {
|
|
135
|
-
dialogflowSource: {
|
|
136
|
-
audioUri: "Test string",
|
|
137
|
-
dialogflowConversation: "Test string",
|
|
138
|
-
},
|
|
139
|
-
gcsSource: {
|
|
140
|
-
audioUri: "Test string",
|
|
141
|
-
transcriptUri: "Test string",
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
dialogflowIntents: {
|
|
145
|
-
A: {
|
|
146
|
-
displayName: "Test string",
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
duration: "Test string",
|
|
150
|
-
expireTime: "Test string",
|
|
151
|
-
labels: {
|
|
152
|
-
A: "Test string"
|
|
153
|
-
},
|
|
154
|
-
languageCode: "Test string",
|
|
155
|
-
latestAnalysis: {
|
|
156
|
-
analysisResult: {
|
|
157
|
-
callAnalysisMetadata: {
|
|
158
|
-
annotations: [
|
|
159
|
-
{
|
|
160
|
-
annotationEndBoundary: {
|
|
161
|
-
transcriptIndex: 42,
|
|
162
|
-
wordIndex: 42,
|
|
163
|
-
},
|
|
164
|
-
annotationStartBoundary: {
|
|
165
|
-
transcriptIndex: 42,
|
|
166
|
-
wordIndex: 42,
|
|
167
|
-
},
|
|
168
|
-
channelTag: 42,
|
|
169
|
-
entityMentionData: {
|
|
170
|
-
entityUniqueId: "Test string",
|
|
171
|
-
sentiment: {
|
|
172
|
-
magnitude: 42,
|
|
173
|
-
score: 42,
|
|
174
|
-
},
|
|
175
|
-
type: "Test string",
|
|
176
|
-
},
|
|
177
|
-
holdData: {
|
|
178
|
-
},
|
|
179
|
-
intentMatchData: {
|
|
180
|
-
intentUniqueId: "Test string",
|
|
181
|
-
},
|
|
182
|
-
interruptionData: {
|
|
183
|
-
},
|
|
184
|
-
issueMatchData: {
|
|
185
|
-
issueAssignment: {
|
|
186
|
-
displayName: "Test string",
|
|
187
|
-
issue: "Test string",
|
|
188
|
-
score: 42,
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
phraseMatchData: {
|
|
192
|
-
displayName: "Test string",
|
|
193
|
-
phraseMatcher: "Test string",
|
|
194
|
-
},
|
|
195
|
-
sentimentData: {
|
|
196
|
-
magnitude: 42,
|
|
197
|
-
score: 42,
|
|
198
|
-
},
|
|
199
|
-
silenceData: {
|
|
200
|
-
},
|
|
201
|
-
}
|
|
202
|
-
],
|
|
203
|
-
entities: {
|
|
204
|
-
A: {
|
|
205
|
-
displayName: "Test string",
|
|
206
|
-
metadata: {
|
|
207
|
-
A: "Test string"
|
|
208
|
-
},
|
|
209
|
-
salience: 42,
|
|
210
|
-
sentiment: {
|
|
211
|
-
magnitude: 42,
|
|
212
|
-
score: 42,
|
|
213
|
-
},
|
|
214
|
-
type: "Test string",
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
intents: {
|
|
218
|
-
A: {
|
|
219
|
-
displayName: "Test string",
|
|
220
|
-
id: "Test string",
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
issueModelResult: {
|
|
224
|
-
issueModel: "Test string",
|
|
225
|
-
issues: [
|
|
226
|
-
{
|
|
227
|
-
displayName: "Test string",
|
|
228
|
-
issue: "Test string",
|
|
229
|
-
score: 42,
|
|
230
|
-
}
|
|
231
|
-
],
|
|
232
|
-
},
|
|
233
|
-
phraseMatchers: {
|
|
234
|
-
A: {
|
|
235
|
-
displayName: "Test string",
|
|
236
|
-
phraseMatcher: "Test string",
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
sentiments: [
|
|
240
|
-
{
|
|
241
|
-
channelTag: 42,
|
|
242
|
-
sentimentData: {
|
|
243
|
-
magnitude: 42,
|
|
244
|
-
score: 42,
|
|
245
|
-
},
|
|
246
|
-
}
|
|
247
|
-
],
|
|
248
|
-
},
|
|
249
|
-
endTime: "Test string",
|
|
250
|
-
},
|
|
251
|
-
annotatorSelector: {
|
|
252
|
-
issueModels: [
|
|
253
|
-
"Test string"
|
|
254
|
-
],
|
|
255
|
-
phraseMatchers: [
|
|
256
|
-
"Test string"
|
|
257
|
-
],
|
|
258
|
-
runEntityAnnotator: true,
|
|
259
|
-
runIntentAnnotator: true,
|
|
260
|
-
runInterruptionAnnotator: true,
|
|
261
|
-
runIssueModelAnnotator: true,
|
|
262
|
-
runPhraseMatcherAnnotator: true,
|
|
263
|
-
runSentimentAnnotator: true,
|
|
264
|
-
runSilenceAnnotator: true,
|
|
265
|
-
runSummarizationAnnotator: true,
|
|
266
|
-
summarizationConfig: {
|
|
267
|
-
conversationProfile: "Test string",
|
|
268
|
-
summarizationModel: "Test string",
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
|
-
createTime: "Test string",
|
|
272
|
-
name: "Test string",
|
|
273
|
-
requestTime: "Test string",
|
|
274
|
-
},
|
|
275
|
-
latestSummary: {
|
|
276
|
-
answerRecord: "Test string",
|
|
277
|
-
confidence: 42,
|
|
278
|
-
conversationModel: "Test string",
|
|
279
|
-
metadata: {
|
|
280
|
-
A: "Test string"
|
|
281
|
-
},
|
|
282
|
-
text: "Test string",
|
|
283
|
-
textSections: {
|
|
284
|
-
A: "Test string"
|
|
285
|
-
},
|
|
286
|
-
},
|
|
287
|
-
medium: "Test string",
|
|
288
|
-
name: "Test string",
|
|
289
|
-
obfuscatedUserId: "Test string",
|
|
290
|
-
runtimeAnnotations: [
|
|
291
|
-
{
|
|
292
|
-
annotationId: "Test string",
|
|
293
|
-
answerFeedback: {
|
|
294
|
-
clicked: true,
|
|
295
|
-
correctnessLevel: "Test string",
|
|
296
|
-
displayed: true,
|
|
297
|
-
},
|
|
298
|
-
articleSuggestion: {
|
|
299
|
-
confidenceScore: 42,
|
|
300
|
-
metadata: {
|
|
301
|
-
A: "Test string"
|
|
302
|
-
},
|
|
303
|
-
queryRecord: "Test string",
|
|
304
|
-
source: "Test string",
|
|
305
|
-
title: "Test string",
|
|
306
|
-
uri: "Test string",
|
|
307
|
-
},
|
|
308
|
-
conversationSummarizationSuggestion: {
|
|
309
|
-
answerRecord: "Test string",
|
|
310
|
-
confidence: 42,
|
|
311
|
-
conversationModel: "Test string",
|
|
312
|
-
metadata: {
|
|
313
|
-
A: "Test string"
|
|
314
|
-
},
|
|
315
|
-
text: "Test string",
|
|
316
|
-
textSections: {
|
|
317
|
-
A: "Test string"
|
|
318
|
-
},
|
|
319
|
-
},
|
|
320
|
-
createTime: "Test string",
|
|
321
|
-
dialogflowInteraction: {
|
|
322
|
-
confidence: 42,
|
|
323
|
-
dialogflowIntentId: "Test string",
|
|
324
|
-
},
|
|
325
|
-
endBoundary: {
|
|
326
|
-
transcriptIndex: 42,
|
|
327
|
-
wordIndex: 42,
|
|
328
|
-
},
|
|
329
|
-
faqAnswer: {
|
|
330
|
-
answer: "Test string",
|
|
331
|
-
confidenceScore: 42,
|
|
332
|
-
metadata: {
|
|
333
|
-
A: "Test string"
|
|
334
|
-
},
|
|
335
|
-
queryRecord: "Test string",
|
|
336
|
-
question: "Test string",
|
|
337
|
-
source: "Test string",
|
|
338
|
-
},
|
|
339
|
-
smartComposeSuggestion: {
|
|
340
|
-
confidenceScore: 42,
|
|
341
|
-
metadata: {
|
|
342
|
-
A: "Test string"
|
|
343
|
-
},
|
|
344
|
-
queryRecord: "Test string",
|
|
345
|
-
suggestion: "Test string",
|
|
346
|
-
},
|
|
347
|
-
smartReply: {
|
|
348
|
-
confidenceScore: 42,
|
|
349
|
-
metadata: {
|
|
350
|
-
A: "Test string"
|
|
351
|
-
},
|
|
352
|
-
queryRecord: "Test string",
|
|
353
|
-
reply: "Test string",
|
|
354
|
-
},
|
|
355
|
-
startBoundary: {
|
|
356
|
-
transcriptIndex: 42,
|
|
357
|
-
wordIndex: 42,
|
|
358
|
-
},
|
|
359
|
-
}
|
|
360
|
-
],
|
|
361
|
-
startTime: "Test string",
|
|
362
|
-
transcript: {
|
|
363
|
-
transcriptSegments: [
|
|
364
|
-
{
|
|
365
|
-
channelTag: 42,
|
|
366
|
-
confidence: 42,
|
|
367
|
-
dialogflowSegmentMetadata: {
|
|
368
|
-
smartReplyAllowlistCovered: true,
|
|
369
|
-
},
|
|
370
|
-
languageCode: "Test string",
|
|
371
|
-
messageTime: "Test string",
|
|
372
|
-
segmentParticipant: {
|
|
373
|
-
dialogflowParticipant: "Test string",
|
|
374
|
-
dialogflowParticipantName: "Test string",
|
|
375
|
-
obfuscatedExternalUserId: "Test string",
|
|
376
|
-
role: "Test string",
|
|
377
|
-
userId: "Test string",
|
|
378
|
-
},
|
|
379
|
-
sentiment: {
|
|
380
|
-
magnitude: 42,
|
|
381
|
-
score: 42,
|
|
382
|
-
},
|
|
383
|
-
text: "Test string",
|
|
384
|
-
words: [
|
|
385
|
-
{
|
|
386
|
-
confidence: 42,
|
|
387
|
-
endOffset: "Test string",
|
|
388
|
-
startOffset: "Test string",
|
|
389
|
-
word: "Test string",
|
|
390
|
-
}
|
|
391
|
-
],
|
|
392
|
-
}
|
|
393
|
-
],
|
|
394
|
-
},
|
|
395
|
-
ttl: "Test string",
|
|
396
|
-
turnCount: 42,
|
|
397
|
-
updateTime: "Test string",
|
|
398
|
-
});
|
|
399
|
-
/** Deletes a conversation. */
|
|
400
|
-
await gapi.client.contactcenterinsights.projects.locations.conversations.delete({
|
|
401
|
-
force: true,
|
|
402
|
-
name: "Test string",
|
|
403
|
-
});
|
|
404
|
-
/** Gets a conversation. */
|
|
405
|
-
await gapi.client.contactcenterinsights.projects.locations.conversations.get({
|
|
406
|
-
name: "Test string",
|
|
407
|
-
view: "Test string",
|
|
408
|
-
});
|
|
409
|
-
/** Imports conversations and processes them according to the user's configuration. */
|
|
410
|
-
await gapi.client.contactcenterinsights.projects.locations.conversations.ingest({
|
|
411
|
-
parent: "Test string",
|
|
412
|
-
}, {
|
|
413
|
-
conversationConfig: {
|
|
414
|
-
agentChannel: 42,
|
|
415
|
-
agentId: "Test string",
|
|
416
|
-
customerChannel: 42,
|
|
417
|
-
},
|
|
418
|
-
gcsSource: {
|
|
419
|
-
bucketObjectType: "Test string",
|
|
420
|
-
bucketUri: "Test string",
|
|
421
|
-
},
|
|
422
|
-
parent: "Test string",
|
|
423
|
-
redactionConfig: {
|
|
424
|
-
deidentifyTemplate: "Test string",
|
|
425
|
-
inspectTemplate: "Test string",
|
|
426
|
-
},
|
|
427
|
-
speechConfig: {
|
|
428
|
-
speechRecognizer: "Test string",
|
|
429
|
-
},
|
|
430
|
-
transcriptObjectConfig: {
|
|
431
|
-
medium: "Test string",
|
|
432
|
-
},
|
|
433
|
-
});
|
|
434
|
-
/** Lists conversations. */
|
|
435
|
-
await gapi.client.contactcenterinsights.projects.locations.conversations.list({
|
|
436
|
-
filter: "Test string",
|
|
437
|
-
pageSize: 42,
|
|
438
|
-
pageToken: "Test string",
|
|
439
|
-
parent: "Test string",
|
|
440
|
-
view: "Test string",
|
|
441
|
-
});
|
|
442
|
-
/** Updates a conversation. */
|
|
443
|
-
await gapi.client.contactcenterinsights.projects.locations.conversations.patch({
|
|
444
|
-
name: "Test string",
|
|
445
|
-
updateMask: "Test string",
|
|
446
|
-
}, {
|
|
447
|
-
agentId: "Test string",
|
|
448
|
-
callMetadata: {
|
|
449
|
-
agentChannel: 42,
|
|
450
|
-
customerChannel: 42,
|
|
451
|
-
},
|
|
452
|
-
createTime: "Test string",
|
|
453
|
-
dataSource: {
|
|
454
|
-
dialogflowSource: {
|
|
455
|
-
audioUri: "Test string",
|
|
456
|
-
dialogflowConversation: "Test string",
|
|
457
|
-
},
|
|
458
|
-
gcsSource: {
|
|
459
|
-
audioUri: "Test string",
|
|
460
|
-
transcriptUri: "Test string",
|
|
461
|
-
},
|
|
462
|
-
},
|
|
463
|
-
dialogflowIntents: {
|
|
464
|
-
A: {
|
|
465
|
-
displayName: "Test string",
|
|
466
|
-
}
|
|
467
|
-
},
|
|
468
|
-
duration: "Test string",
|
|
469
|
-
expireTime: "Test string",
|
|
470
|
-
labels: {
|
|
471
|
-
A: "Test string"
|
|
472
|
-
},
|
|
473
|
-
languageCode: "Test string",
|
|
474
|
-
latestAnalysis: {
|
|
475
|
-
analysisResult: {
|
|
476
|
-
callAnalysisMetadata: {
|
|
477
|
-
annotations: [
|
|
478
|
-
{
|
|
479
|
-
annotationEndBoundary: {
|
|
480
|
-
transcriptIndex: 42,
|
|
481
|
-
wordIndex: 42,
|
|
482
|
-
},
|
|
483
|
-
annotationStartBoundary: {
|
|
484
|
-
transcriptIndex: 42,
|
|
485
|
-
wordIndex: 42,
|
|
486
|
-
},
|
|
487
|
-
channelTag: 42,
|
|
488
|
-
entityMentionData: {
|
|
489
|
-
entityUniqueId: "Test string",
|
|
490
|
-
sentiment: {
|
|
491
|
-
magnitude: 42,
|
|
492
|
-
score: 42,
|
|
493
|
-
},
|
|
494
|
-
type: "Test string",
|
|
495
|
-
},
|
|
496
|
-
holdData: {
|
|
497
|
-
},
|
|
498
|
-
intentMatchData: {
|
|
499
|
-
intentUniqueId: "Test string",
|
|
500
|
-
},
|
|
501
|
-
interruptionData: {
|
|
502
|
-
},
|
|
503
|
-
issueMatchData: {
|
|
504
|
-
issueAssignment: {
|
|
505
|
-
displayName: "Test string",
|
|
506
|
-
issue: "Test string",
|
|
507
|
-
score: 42,
|
|
508
|
-
},
|
|
509
|
-
},
|
|
510
|
-
phraseMatchData: {
|
|
511
|
-
displayName: "Test string",
|
|
512
|
-
phraseMatcher: "Test string",
|
|
513
|
-
},
|
|
514
|
-
sentimentData: {
|
|
515
|
-
magnitude: 42,
|
|
516
|
-
score: 42,
|
|
517
|
-
},
|
|
518
|
-
silenceData: {
|
|
519
|
-
},
|
|
520
|
-
}
|
|
521
|
-
],
|
|
522
|
-
entities: {
|
|
523
|
-
A: {
|
|
524
|
-
displayName: "Test string",
|
|
525
|
-
metadata: {
|
|
526
|
-
A: "Test string"
|
|
527
|
-
},
|
|
528
|
-
salience: 42,
|
|
529
|
-
sentiment: {
|
|
530
|
-
magnitude: 42,
|
|
531
|
-
score: 42,
|
|
532
|
-
},
|
|
533
|
-
type: "Test string",
|
|
534
|
-
}
|
|
535
|
-
},
|
|
536
|
-
intents: {
|
|
537
|
-
A: {
|
|
538
|
-
displayName: "Test string",
|
|
539
|
-
id: "Test string",
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
issueModelResult: {
|
|
543
|
-
issueModel: "Test string",
|
|
544
|
-
issues: [
|
|
545
|
-
{
|
|
546
|
-
displayName: "Test string",
|
|
547
|
-
issue: "Test string",
|
|
548
|
-
score: 42,
|
|
549
|
-
}
|
|
550
|
-
],
|
|
551
|
-
},
|
|
552
|
-
phraseMatchers: {
|
|
553
|
-
A: {
|
|
554
|
-
displayName: "Test string",
|
|
555
|
-
phraseMatcher: "Test string",
|
|
556
|
-
}
|
|
557
|
-
},
|
|
558
|
-
sentiments: [
|
|
559
|
-
{
|
|
560
|
-
channelTag: 42,
|
|
561
|
-
sentimentData: {
|
|
562
|
-
magnitude: 42,
|
|
563
|
-
score: 42,
|
|
564
|
-
},
|
|
565
|
-
}
|
|
566
|
-
],
|
|
567
|
-
},
|
|
568
|
-
endTime: "Test string",
|
|
569
|
-
},
|
|
570
|
-
annotatorSelector: {
|
|
571
|
-
issueModels: [
|
|
572
|
-
"Test string"
|
|
573
|
-
],
|
|
574
|
-
phraseMatchers: [
|
|
575
|
-
"Test string"
|
|
576
|
-
],
|
|
577
|
-
runEntityAnnotator: true,
|
|
578
|
-
runIntentAnnotator: true,
|
|
579
|
-
runInterruptionAnnotator: true,
|
|
580
|
-
runIssueModelAnnotator: true,
|
|
581
|
-
runPhraseMatcherAnnotator: true,
|
|
582
|
-
runSentimentAnnotator: true,
|
|
583
|
-
runSilenceAnnotator: true,
|
|
584
|
-
runSummarizationAnnotator: true,
|
|
585
|
-
summarizationConfig: {
|
|
586
|
-
conversationProfile: "Test string",
|
|
587
|
-
summarizationModel: "Test string",
|
|
588
|
-
},
|
|
589
|
-
},
|
|
590
|
-
createTime: "Test string",
|
|
591
|
-
name: "Test string",
|
|
592
|
-
requestTime: "Test string",
|
|
593
|
-
},
|
|
594
|
-
latestSummary: {
|
|
595
|
-
answerRecord: "Test string",
|
|
596
|
-
confidence: 42,
|
|
597
|
-
conversationModel: "Test string",
|
|
598
|
-
metadata: {
|
|
599
|
-
A: "Test string"
|
|
600
|
-
},
|
|
601
|
-
text: "Test string",
|
|
602
|
-
textSections: {
|
|
603
|
-
A: "Test string"
|
|
604
|
-
},
|
|
605
|
-
},
|
|
606
|
-
medium: "Test string",
|
|
607
|
-
name: "Test string",
|
|
608
|
-
obfuscatedUserId: "Test string",
|
|
609
|
-
runtimeAnnotations: [
|
|
610
|
-
{
|
|
611
|
-
annotationId: "Test string",
|
|
612
|
-
answerFeedback: {
|
|
613
|
-
clicked: true,
|
|
614
|
-
correctnessLevel: "Test string",
|
|
615
|
-
displayed: true,
|
|
616
|
-
},
|
|
617
|
-
articleSuggestion: {
|
|
618
|
-
confidenceScore: 42,
|
|
619
|
-
metadata: {
|
|
620
|
-
A: "Test string"
|
|
621
|
-
},
|
|
622
|
-
queryRecord: "Test string",
|
|
623
|
-
source: "Test string",
|
|
624
|
-
title: "Test string",
|
|
625
|
-
uri: "Test string",
|
|
626
|
-
},
|
|
627
|
-
conversationSummarizationSuggestion: {
|
|
628
|
-
answerRecord: "Test string",
|
|
629
|
-
confidence: 42,
|
|
630
|
-
conversationModel: "Test string",
|
|
631
|
-
metadata: {
|
|
632
|
-
A: "Test string"
|
|
633
|
-
},
|
|
634
|
-
text: "Test string",
|
|
635
|
-
textSections: {
|
|
636
|
-
A: "Test string"
|
|
637
|
-
},
|
|
638
|
-
},
|
|
639
|
-
createTime: "Test string",
|
|
640
|
-
dialogflowInteraction: {
|
|
641
|
-
confidence: 42,
|
|
642
|
-
dialogflowIntentId: "Test string",
|
|
643
|
-
},
|
|
644
|
-
endBoundary: {
|
|
645
|
-
transcriptIndex: 42,
|
|
646
|
-
wordIndex: 42,
|
|
647
|
-
},
|
|
648
|
-
faqAnswer: {
|
|
649
|
-
answer: "Test string",
|
|
650
|
-
confidenceScore: 42,
|
|
651
|
-
metadata: {
|
|
652
|
-
A: "Test string"
|
|
653
|
-
},
|
|
654
|
-
queryRecord: "Test string",
|
|
655
|
-
question: "Test string",
|
|
656
|
-
source: "Test string",
|
|
657
|
-
},
|
|
658
|
-
smartComposeSuggestion: {
|
|
659
|
-
confidenceScore: 42,
|
|
660
|
-
metadata: {
|
|
661
|
-
A: "Test string"
|
|
662
|
-
},
|
|
663
|
-
queryRecord: "Test string",
|
|
664
|
-
suggestion: "Test string",
|
|
665
|
-
},
|
|
666
|
-
smartReply: {
|
|
667
|
-
confidenceScore: 42,
|
|
668
|
-
metadata: {
|
|
669
|
-
A: "Test string"
|
|
670
|
-
},
|
|
671
|
-
queryRecord: "Test string",
|
|
672
|
-
reply: "Test string",
|
|
673
|
-
},
|
|
674
|
-
startBoundary: {
|
|
675
|
-
transcriptIndex: 42,
|
|
676
|
-
wordIndex: 42,
|
|
677
|
-
},
|
|
678
|
-
}
|
|
679
|
-
],
|
|
680
|
-
startTime: "Test string",
|
|
681
|
-
transcript: {
|
|
682
|
-
transcriptSegments: [
|
|
683
|
-
{
|
|
684
|
-
channelTag: 42,
|
|
685
|
-
confidence: 42,
|
|
686
|
-
dialogflowSegmentMetadata: {
|
|
687
|
-
smartReplyAllowlistCovered: true,
|
|
688
|
-
},
|
|
689
|
-
languageCode: "Test string",
|
|
690
|
-
messageTime: "Test string",
|
|
691
|
-
segmentParticipant: {
|
|
692
|
-
dialogflowParticipant: "Test string",
|
|
693
|
-
dialogflowParticipantName: "Test string",
|
|
694
|
-
obfuscatedExternalUserId: "Test string",
|
|
695
|
-
role: "Test string",
|
|
696
|
-
userId: "Test string",
|
|
697
|
-
},
|
|
698
|
-
sentiment: {
|
|
699
|
-
magnitude: 42,
|
|
700
|
-
score: 42,
|
|
701
|
-
},
|
|
702
|
-
text: "Test string",
|
|
703
|
-
words: [
|
|
704
|
-
{
|
|
705
|
-
confidence: 42,
|
|
706
|
-
endOffset: "Test string",
|
|
707
|
-
startOffset: "Test string",
|
|
708
|
-
word: "Test string",
|
|
709
|
-
}
|
|
710
|
-
],
|
|
711
|
-
}
|
|
712
|
-
],
|
|
713
|
-
},
|
|
714
|
-
ttl: "Test string",
|
|
715
|
-
turnCount: 42,
|
|
716
|
-
updateTime: "Test string",
|
|
717
|
-
});
|
|
718
|
-
/** Create a longrunning conversation upload operation. This method differs from CreateConversation by allowing audio transcription and optional DLP redaction. */
|
|
719
|
-
await gapi.client.contactcenterinsights.projects.locations.conversations.upload({
|
|
720
|
-
parent: "Test string",
|
|
721
|
-
}, {
|
|
722
|
-
conversation: {
|
|
723
|
-
agentId: "Test string",
|
|
724
|
-
callMetadata: {
|
|
725
|
-
agentChannel: 42,
|
|
726
|
-
customerChannel: 42,
|
|
727
|
-
},
|
|
728
|
-
createTime: "Test string",
|
|
729
|
-
dataSource: {
|
|
730
|
-
dialogflowSource: {
|
|
731
|
-
audioUri: "Test string",
|
|
732
|
-
dialogflowConversation: "Test string",
|
|
733
|
-
},
|
|
734
|
-
gcsSource: {
|
|
735
|
-
audioUri: "Test string",
|
|
736
|
-
transcriptUri: "Test string",
|
|
737
|
-
},
|
|
738
|
-
},
|
|
739
|
-
dialogflowIntents: {
|
|
740
|
-
A: {
|
|
741
|
-
displayName: "Test string",
|
|
742
|
-
}
|
|
743
|
-
},
|
|
744
|
-
duration: "Test string",
|
|
745
|
-
expireTime: "Test string",
|
|
746
|
-
labels: {
|
|
747
|
-
A: "Test string"
|
|
748
|
-
},
|
|
749
|
-
languageCode: "Test string",
|
|
750
|
-
latestAnalysis: {
|
|
751
|
-
analysisResult: {
|
|
752
|
-
callAnalysisMetadata: {
|
|
753
|
-
annotations: [
|
|
754
|
-
{
|
|
755
|
-
annotationEndBoundary: {
|
|
756
|
-
transcriptIndex: 42,
|
|
757
|
-
wordIndex: 42,
|
|
758
|
-
},
|
|
759
|
-
annotationStartBoundary: {
|
|
760
|
-
transcriptIndex: 42,
|
|
761
|
-
wordIndex: 42,
|
|
762
|
-
},
|
|
763
|
-
channelTag: 42,
|
|
764
|
-
entityMentionData: {
|
|
765
|
-
entityUniqueId: "Test string",
|
|
766
|
-
sentiment: {
|
|
767
|
-
magnitude: 42,
|
|
768
|
-
score: 42,
|
|
769
|
-
},
|
|
770
|
-
type: "Test string",
|
|
771
|
-
},
|
|
772
|
-
holdData: {
|
|
773
|
-
},
|
|
774
|
-
intentMatchData: {
|
|
775
|
-
intentUniqueId: "Test string",
|
|
776
|
-
},
|
|
777
|
-
interruptionData: {
|
|
778
|
-
},
|
|
779
|
-
issueMatchData: {
|
|
780
|
-
issueAssignment: {
|
|
781
|
-
displayName: "Test string",
|
|
782
|
-
issue: "Test string",
|
|
783
|
-
score: 42,
|
|
784
|
-
},
|
|
785
|
-
},
|
|
786
|
-
phraseMatchData: {
|
|
787
|
-
displayName: "Test string",
|
|
788
|
-
phraseMatcher: "Test string",
|
|
789
|
-
},
|
|
790
|
-
sentimentData: {
|
|
791
|
-
magnitude: 42,
|
|
792
|
-
score: 42,
|
|
793
|
-
},
|
|
794
|
-
silenceData: {
|
|
795
|
-
},
|
|
796
|
-
}
|
|
797
|
-
],
|
|
798
|
-
entities: {
|
|
799
|
-
A: {
|
|
800
|
-
displayName: "Test string",
|
|
801
|
-
metadata: {
|
|
802
|
-
A: "Test string"
|
|
803
|
-
},
|
|
804
|
-
salience: 42,
|
|
805
|
-
sentiment: {
|
|
806
|
-
magnitude: 42,
|
|
807
|
-
score: 42,
|
|
808
|
-
},
|
|
809
|
-
type: "Test string",
|
|
810
|
-
}
|
|
811
|
-
},
|
|
812
|
-
intents: {
|
|
813
|
-
A: {
|
|
814
|
-
displayName: "Test string",
|
|
815
|
-
id: "Test string",
|
|
816
|
-
}
|
|
817
|
-
},
|
|
818
|
-
issueModelResult: {
|
|
819
|
-
issueModel: "Test string",
|
|
820
|
-
issues: [
|
|
821
|
-
{
|
|
822
|
-
displayName: "Test string",
|
|
823
|
-
issue: "Test string",
|
|
824
|
-
score: 42,
|
|
825
|
-
}
|
|
826
|
-
],
|
|
827
|
-
},
|
|
828
|
-
phraseMatchers: {
|
|
829
|
-
A: {
|
|
830
|
-
displayName: "Test string",
|
|
831
|
-
phraseMatcher: "Test string",
|
|
832
|
-
}
|
|
833
|
-
},
|
|
834
|
-
sentiments: [
|
|
835
|
-
{
|
|
836
|
-
channelTag: 42,
|
|
837
|
-
sentimentData: {
|
|
838
|
-
magnitude: 42,
|
|
839
|
-
score: 42,
|
|
840
|
-
},
|
|
841
|
-
}
|
|
842
|
-
],
|
|
843
|
-
},
|
|
844
|
-
endTime: "Test string",
|
|
845
|
-
},
|
|
846
|
-
annotatorSelector: {
|
|
847
|
-
issueModels: [
|
|
848
|
-
"Test string"
|
|
849
|
-
],
|
|
850
|
-
phraseMatchers: [
|
|
851
|
-
"Test string"
|
|
852
|
-
],
|
|
853
|
-
runEntityAnnotator: true,
|
|
854
|
-
runIntentAnnotator: true,
|
|
855
|
-
runInterruptionAnnotator: true,
|
|
856
|
-
runIssueModelAnnotator: true,
|
|
857
|
-
runPhraseMatcherAnnotator: true,
|
|
858
|
-
runSentimentAnnotator: true,
|
|
859
|
-
runSilenceAnnotator: true,
|
|
860
|
-
runSummarizationAnnotator: true,
|
|
861
|
-
summarizationConfig: {
|
|
862
|
-
conversationProfile: "Test string",
|
|
863
|
-
summarizationModel: "Test string",
|
|
864
|
-
},
|
|
865
|
-
},
|
|
866
|
-
createTime: "Test string",
|
|
867
|
-
name: "Test string",
|
|
868
|
-
requestTime: "Test string",
|
|
869
|
-
},
|
|
870
|
-
latestSummary: {
|
|
871
|
-
answerRecord: "Test string",
|
|
872
|
-
confidence: 42,
|
|
873
|
-
conversationModel: "Test string",
|
|
874
|
-
metadata: {
|
|
875
|
-
A: "Test string"
|
|
876
|
-
},
|
|
877
|
-
text: "Test string",
|
|
878
|
-
textSections: {
|
|
879
|
-
A: "Test string"
|
|
880
|
-
},
|
|
881
|
-
},
|
|
882
|
-
medium: "Test string",
|
|
883
|
-
name: "Test string",
|
|
884
|
-
obfuscatedUserId: "Test string",
|
|
885
|
-
runtimeAnnotations: [
|
|
886
|
-
{
|
|
887
|
-
annotationId: "Test string",
|
|
888
|
-
answerFeedback: {
|
|
889
|
-
clicked: true,
|
|
890
|
-
correctnessLevel: "Test string",
|
|
891
|
-
displayed: true,
|
|
892
|
-
},
|
|
893
|
-
articleSuggestion: {
|
|
894
|
-
confidenceScore: 42,
|
|
895
|
-
metadata: {
|
|
896
|
-
A: "Test string"
|
|
897
|
-
},
|
|
898
|
-
queryRecord: "Test string",
|
|
899
|
-
source: "Test string",
|
|
900
|
-
title: "Test string",
|
|
901
|
-
uri: "Test string",
|
|
902
|
-
},
|
|
903
|
-
conversationSummarizationSuggestion: {
|
|
904
|
-
answerRecord: "Test string",
|
|
905
|
-
confidence: 42,
|
|
906
|
-
conversationModel: "Test string",
|
|
907
|
-
metadata: {
|
|
908
|
-
A: "Test string"
|
|
909
|
-
},
|
|
910
|
-
text: "Test string",
|
|
911
|
-
textSections: {
|
|
912
|
-
A: "Test string"
|
|
913
|
-
},
|
|
914
|
-
},
|
|
915
|
-
createTime: "Test string",
|
|
916
|
-
dialogflowInteraction: {
|
|
917
|
-
confidence: 42,
|
|
918
|
-
dialogflowIntentId: "Test string",
|
|
919
|
-
},
|
|
920
|
-
endBoundary: {
|
|
921
|
-
transcriptIndex: 42,
|
|
922
|
-
wordIndex: 42,
|
|
923
|
-
},
|
|
924
|
-
faqAnswer: {
|
|
925
|
-
answer: "Test string",
|
|
926
|
-
confidenceScore: 42,
|
|
927
|
-
metadata: {
|
|
928
|
-
A: "Test string"
|
|
929
|
-
},
|
|
930
|
-
queryRecord: "Test string",
|
|
931
|
-
question: "Test string",
|
|
932
|
-
source: "Test string",
|
|
933
|
-
},
|
|
934
|
-
smartComposeSuggestion: {
|
|
935
|
-
confidenceScore: 42,
|
|
936
|
-
metadata: {
|
|
937
|
-
A: "Test string"
|
|
938
|
-
},
|
|
939
|
-
queryRecord: "Test string",
|
|
940
|
-
suggestion: "Test string",
|
|
941
|
-
},
|
|
942
|
-
smartReply: {
|
|
943
|
-
confidenceScore: 42,
|
|
944
|
-
metadata: {
|
|
945
|
-
A: "Test string"
|
|
946
|
-
},
|
|
947
|
-
queryRecord: "Test string",
|
|
948
|
-
reply: "Test string",
|
|
949
|
-
},
|
|
950
|
-
startBoundary: {
|
|
951
|
-
transcriptIndex: 42,
|
|
952
|
-
wordIndex: 42,
|
|
953
|
-
},
|
|
954
|
-
}
|
|
955
|
-
],
|
|
956
|
-
startTime: "Test string",
|
|
957
|
-
transcript: {
|
|
958
|
-
transcriptSegments: [
|
|
959
|
-
{
|
|
960
|
-
channelTag: 42,
|
|
961
|
-
confidence: 42,
|
|
962
|
-
dialogflowSegmentMetadata: {
|
|
963
|
-
smartReplyAllowlistCovered: true,
|
|
964
|
-
},
|
|
965
|
-
languageCode: "Test string",
|
|
966
|
-
messageTime: "Test string",
|
|
967
|
-
segmentParticipant: {
|
|
968
|
-
dialogflowParticipant: "Test string",
|
|
969
|
-
dialogflowParticipantName: "Test string",
|
|
970
|
-
obfuscatedExternalUserId: "Test string",
|
|
971
|
-
role: "Test string",
|
|
972
|
-
userId: "Test string",
|
|
973
|
-
},
|
|
974
|
-
sentiment: {
|
|
975
|
-
magnitude: 42,
|
|
976
|
-
score: 42,
|
|
977
|
-
},
|
|
978
|
-
text: "Test string",
|
|
979
|
-
words: [
|
|
980
|
-
{
|
|
981
|
-
confidence: 42,
|
|
982
|
-
endOffset: "Test string",
|
|
983
|
-
startOffset: "Test string",
|
|
984
|
-
word: "Test string",
|
|
985
|
-
}
|
|
986
|
-
],
|
|
987
|
-
}
|
|
988
|
-
],
|
|
989
|
-
},
|
|
990
|
-
ttl: "Test string",
|
|
991
|
-
turnCount: 42,
|
|
992
|
-
updateTime: "Test string",
|
|
993
|
-
},
|
|
994
|
-
conversationId: "Test string",
|
|
995
|
-
parent: "Test string",
|
|
996
|
-
redactionConfig: {
|
|
997
|
-
deidentifyTemplate: "Test string",
|
|
998
|
-
inspectTemplate: "Test string",
|
|
999
|
-
},
|
|
1000
|
-
speechConfig: {
|
|
1001
|
-
speechRecognizer: "Test string",
|
|
1002
|
-
},
|
|
1003
|
-
});
|
|
1004
|
-
/** Creates an analysis. The long running operation is done when the analysis has completed. */
|
|
1005
|
-
await gapi.client.contactcenterinsights.projects.locations.conversations.analyses.create({
|
|
1006
|
-
parent: "Test string",
|
|
1007
|
-
}, {
|
|
1008
|
-
analysisResult: {
|
|
1009
|
-
callAnalysisMetadata: {
|
|
1010
|
-
annotations: [
|
|
1011
|
-
{
|
|
1012
|
-
annotationEndBoundary: {
|
|
1013
|
-
transcriptIndex: 42,
|
|
1014
|
-
wordIndex: 42,
|
|
1015
|
-
},
|
|
1016
|
-
annotationStartBoundary: {
|
|
1017
|
-
transcriptIndex: 42,
|
|
1018
|
-
wordIndex: 42,
|
|
1019
|
-
},
|
|
1020
|
-
channelTag: 42,
|
|
1021
|
-
entityMentionData: {
|
|
1022
|
-
entityUniqueId: "Test string",
|
|
1023
|
-
sentiment: {
|
|
1024
|
-
magnitude: 42,
|
|
1025
|
-
score: 42,
|
|
1026
|
-
},
|
|
1027
|
-
type: "Test string",
|
|
1028
|
-
},
|
|
1029
|
-
holdData: {
|
|
1030
|
-
},
|
|
1031
|
-
intentMatchData: {
|
|
1032
|
-
intentUniqueId: "Test string",
|
|
1033
|
-
},
|
|
1034
|
-
interruptionData: {
|
|
1035
|
-
},
|
|
1036
|
-
issueMatchData: {
|
|
1037
|
-
issueAssignment: {
|
|
1038
|
-
displayName: "Test string",
|
|
1039
|
-
issue: "Test string",
|
|
1040
|
-
score: 42,
|
|
1041
|
-
},
|
|
1042
|
-
},
|
|
1043
|
-
phraseMatchData: {
|
|
1044
|
-
displayName: "Test string",
|
|
1045
|
-
phraseMatcher: "Test string",
|
|
1046
|
-
},
|
|
1047
|
-
sentimentData: {
|
|
1048
|
-
magnitude: 42,
|
|
1049
|
-
score: 42,
|
|
1050
|
-
},
|
|
1051
|
-
silenceData: {
|
|
1052
|
-
},
|
|
1053
|
-
}
|
|
1054
|
-
],
|
|
1055
|
-
entities: {
|
|
1056
|
-
A: {
|
|
1057
|
-
displayName: "Test string",
|
|
1058
|
-
metadata: {
|
|
1059
|
-
A: "Test string"
|
|
1060
|
-
},
|
|
1061
|
-
salience: 42,
|
|
1062
|
-
sentiment: {
|
|
1063
|
-
magnitude: 42,
|
|
1064
|
-
score: 42,
|
|
1065
|
-
},
|
|
1066
|
-
type: "Test string",
|
|
1067
|
-
}
|
|
1068
|
-
},
|
|
1069
|
-
intents: {
|
|
1070
|
-
A: {
|
|
1071
|
-
displayName: "Test string",
|
|
1072
|
-
id: "Test string",
|
|
1073
|
-
}
|
|
1074
|
-
},
|
|
1075
|
-
issueModelResult: {
|
|
1076
|
-
issueModel: "Test string",
|
|
1077
|
-
issues: [
|
|
1078
|
-
{
|
|
1079
|
-
displayName: "Test string",
|
|
1080
|
-
issue: "Test string",
|
|
1081
|
-
score: 42,
|
|
1082
|
-
}
|
|
1083
|
-
],
|
|
1084
|
-
},
|
|
1085
|
-
phraseMatchers: {
|
|
1086
|
-
A: {
|
|
1087
|
-
displayName: "Test string",
|
|
1088
|
-
phraseMatcher: "Test string",
|
|
1089
|
-
}
|
|
1090
|
-
},
|
|
1091
|
-
sentiments: [
|
|
1092
|
-
{
|
|
1093
|
-
channelTag: 42,
|
|
1094
|
-
sentimentData: {
|
|
1095
|
-
magnitude: 42,
|
|
1096
|
-
score: 42,
|
|
1097
|
-
},
|
|
1098
|
-
}
|
|
1099
|
-
],
|
|
1100
|
-
},
|
|
1101
|
-
endTime: "Test string",
|
|
1102
|
-
},
|
|
1103
|
-
annotatorSelector: {
|
|
1104
|
-
issueModels: [
|
|
1105
|
-
"Test string"
|
|
1106
|
-
],
|
|
1107
|
-
phraseMatchers: [
|
|
1108
|
-
"Test string"
|
|
1109
|
-
],
|
|
1110
|
-
runEntityAnnotator: true,
|
|
1111
|
-
runIntentAnnotator: true,
|
|
1112
|
-
runInterruptionAnnotator: true,
|
|
1113
|
-
runIssueModelAnnotator: true,
|
|
1114
|
-
runPhraseMatcherAnnotator: true,
|
|
1115
|
-
runSentimentAnnotator: true,
|
|
1116
|
-
runSilenceAnnotator: true,
|
|
1117
|
-
runSummarizationAnnotator: true,
|
|
1118
|
-
summarizationConfig: {
|
|
1119
|
-
conversationProfile: "Test string",
|
|
1120
|
-
summarizationModel: "Test string",
|
|
1121
|
-
},
|
|
1122
|
-
},
|
|
1123
|
-
createTime: "Test string",
|
|
1124
|
-
name: "Test string",
|
|
1125
|
-
requestTime: "Test string",
|
|
1126
|
-
});
|
|
1127
|
-
/** Deletes an analysis. */
|
|
1128
|
-
await gapi.client.contactcenterinsights.projects.locations.conversations.analyses.delete({
|
|
1129
|
-
name: "Test string",
|
|
1130
|
-
});
|
|
1131
|
-
/** Gets an analysis. */
|
|
1132
|
-
await gapi.client.contactcenterinsights.projects.locations.conversations.analyses.get({
|
|
1133
|
-
name: "Test string",
|
|
1134
|
-
});
|
|
1135
|
-
/** Lists analyses. */
|
|
1136
|
-
await gapi.client.contactcenterinsights.projects.locations.conversations.analyses.list({
|
|
1137
|
-
filter: "Test string",
|
|
1138
|
-
pageSize: 42,
|
|
1139
|
-
pageToken: "Test string",
|
|
1140
|
-
parent: "Test string",
|
|
1141
|
-
});
|
|
1142
|
-
/** Export insights data to a destination defined in the request body. */
|
|
1143
|
-
await gapi.client.contactcenterinsights.projects.locations.insightsdata.export({
|
|
1144
|
-
parent: "Test string",
|
|
1145
|
-
}, {
|
|
1146
|
-
bigQueryDestination: {
|
|
1147
|
-
dataset: "Test string",
|
|
1148
|
-
projectId: "Test string",
|
|
1149
|
-
table: "Test string",
|
|
1150
|
-
},
|
|
1151
|
-
filter: "Test string",
|
|
1152
|
-
kmsKey: "Test string",
|
|
1153
|
-
parent: "Test string",
|
|
1154
|
-
writeDisposition: "Test string",
|
|
1155
|
-
});
|
|
1156
|
-
/** Gets an issue model's statistics. */
|
|
1157
|
-
await gapi.client.contactcenterinsights.projects.locations.issueModels.calculateIssueModelStats({
|
|
1158
|
-
issueModel: "Test string",
|
|
1159
|
-
});
|
|
1160
|
-
/** Creates an issue model. */
|
|
1161
|
-
await gapi.client.contactcenterinsights.projects.locations.issueModels.create({
|
|
1162
|
-
parent: "Test string",
|
|
1163
|
-
}, {
|
|
1164
|
-
createTime: "Test string",
|
|
1165
|
-
displayName: "Test string",
|
|
1166
|
-
inputDataConfig: {
|
|
1167
|
-
filter: "Test string",
|
|
1168
|
-
medium: "Test string",
|
|
1169
|
-
trainingConversationsCount: "Test string",
|
|
1170
|
-
},
|
|
1171
|
-
issueCount: "Test string",
|
|
1172
|
-
languageCode: "Test string",
|
|
1173
|
-
modelType: "Test string",
|
|
1174
|
-
name: "Test string",
|
|
1175
|
-
state: "Test string",
|
|
1176
|
-
trainingStats: {
|
|
1177
|
-
analyzedConversationsCount: "Test string",
|
|
1178
|
-
issueStats: {
|
|
1179
|
-
A: {
|
|
1180
|
-
displayName: "Test string",
|
|
1181
|
-
issue: "Test string",
|
|
1182
|
-
labeledConversationsCount: "Test string",
|
|
1183
|
-
}
|
|
1184
|
-
},
|
|
1185
|
-
unclassifiedConversationsCount: "Test string",
|
|
1186
|
-
},
|
|
1187
|
-
updateTime: "Test string",
|
|
1188
|
-
});
|
|
1189
|
-
/** Deletes an issue model. */
|
|
1190
|
-
await gapi.client.contactcenterinsights.projects.locations.issueModels.delete({
|
|
1191
|
-
name: "Test string",
|
|
1192
|
-
});
|
|
1193
|
-
/** Deploys an issue model. Returns an error if a model is already deployed. An issue model can only be used in analysis after it has been deployed. */
|
|
1194
|
-
await gapi.client.contactcenterinsights.projects.locations.issueModels.deploy({
|
|
1195
|
-
name: "Test string",
|
|
1196
|
-
}, {
|
|
1197
|
-
name: "Test string",
|
|
1198
|
-
});
|
|
1199
|
-
/** Gets an issue model. */
|
|
1200
|
-
await gapi.client.contactcenterinsights.projects.locations.issueModels.get({
|
|
1201
|
-
name: "Test string",
|
|
1202
|
-
});
|
|
1203
|
-
/** Lists issue models. */
|
|
1204
|
-
await gapi.client.contactcenterinsights.projects.locations.issueModels.list({
|
|
1205
|
-
parent: "Test string",
|
|
1206
|
-
});
|
|
1207
|
-
/** Updates an issue model. */
|
|
1208
|
-
await gapi.client.contactcenterinsights.projects.locations.issueModels.patch({
|
|
1209
|
-
name: "Test string",
|
|
1210
|
-
updateMask: "Test string",
|
|
1211
|
-
}, {
|
|
1212
|
-
createTime: "Test string",
|
|
1213
|
-
displayName: "Test string",
|
|
1214
|
-
inputDataConfig: {
|
|
1215
|
-
filter: "Test string",
|
|
1216
|
-
medium: "Test string",
|
|
1217
|
-
trainingConversationsCount: "Test string",
|
|
1218
|
-
},
|
|
1219
|
-
issueCount: "Test string",
|
|
1220
|
-
languageCode: "Test string",
|
|
1221
|
-
modelType: "Test string",
|
|
1222
|
-
name: "Test string",
|
|
1223
|
-
state: "Test string",
|
|
1224
|
-
trainingStats: {
|
|
1225
|
-
analyzedConversationsCount: "Test string",
|
|
1226
|
-
issueStats: {
|
|
1227
|
-
A: {
|
|
1228
|
-
displayName: "Test string",
|
|
1229
|
-
issue: "Test string",
|
|
1230
|
-
labeledConversationsCount: "Test string",
|
|
1231
|
-
}
|
|
1232
|
-
},
|
|
1233
|
-
unclassifiedConversationsCount: "Test string",
|
|
1234
|
-
},
|
|
1235
|
-
updateTime: "Test string",
|
|
1236
|
-
});
|
|
1237
|
-
/** Undeploys an issue model. An issue model can not be used in analysis after it has been undeployed. */
|
|
1238
|
-
await gapi.client.contactcenterinsights.projects.locations.issueModels.undeploy({
|
|
1239
|
-
name: "Test string",
|
|
1240
|
-
}, {
|
|
1241
|
-
name: "Test string",
|
|
1242
|
-
});
|
|
1243
|
-
/** Deletes an issue. */
|
|
1244
|
-
await gapi.client.contactcenterinsights.projects.locations.issueModels.issues.delete({
|
|
1245
|
-
name: "Test string",
|
|
1246
|
-
});
|
|
1247
|
-
/** Gets an issue. */
|
|
1248
|
-
await gapi.client.contactcenterinsights.projects.locations.issueModels.issues.get({
|
|
1249
|
-
name: "Test string",
|
|
1250
|
-
});
|
|
1251
|
-
/** Lists issues. */
|
|
1252
|
-
await gapi.client.contactcenterinsights.projects.locations.issueModels.issues.list({
|
|
1253
|
-
parent: "Test string",
|
|
1254
|
-
});
|
|
1255
|
-
/** Updates an issue. */
|
|
1256
|
-
await gapi.client.contactcenterinsights.projects.locations.issueModels.issues.patch({
|
|
1257
|
-
name: "Test string",
|
|
1258
|
-
updateMask: "Test string",
|
|
1259
|
-
}, {
|
|
1260
|
-
createTime: "Test string",
|
|
1261
|
-
displayName: "Test string",
|
|
1262
|
-
name: "Test string",
|
|
1263
|
-
sampleUtterances: [
|
|
1264
|
-
"Test string"
|
|
1265
|
-
],
|
|
1266
|
-
updateTime: "Test string",
|
|
1267
|
-
});
|
|
1268
|
-
/**
|
|
1269
|
-
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
|
|
1270
|
-
* method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
|
|
1271
|
-
* completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of
|
|
1272
|
-
* 1, corresponding to `Code.CANCELLED`.
|
|
1273
|
-
*/
|
|
1274
|
-
await gapi.client.contactcenterinsights.projects.locations.operations.cancel({
|
|
1275
|
-
name: "Test string",
|
|
1276
|
-
});
|
|
1277
|
-
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
1278
|
-
await gapi.client.contactcenterinsights.projects.locations.operations.get({
|
|
1279
|
-
name: "Test string",
|
|
1280
|
-
});
|
|
1281
|
-
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
1282
|
-
await gapi.client.contactcenterinsights.projects.locations.operations.list({
|
|
1283
|
-
filter: "Test string",
|
|
1284
|
-
name: "Test string",
|
|
1285
|
-
pageSize: 42,
|
|
1286
|
-
pageToken: "Test string",
|
|
1287
|
-
});
|
|
1288
|
-
/** Creates a phrase matcher. */
|
|
1289
|
-
await gapi.client.contactcenterinsights.projects.locations.phraseMatchers.create({
|
|
1290
|
-
parent: "Test string",
|
|
1291
|
-
}, {
|
|
1292
|
-
activationUpdateTime: "Test string",
|
|
1293
|
-
active: true,
|
|
1294
|
-
displayName: "Test string",
|
|
1295
|
-
name: "Test string",
|
|
1296
|
-
phraseMatchRuleGroups: [
|
|
1297
|
-
{
|
|
1298
|
-
phraseMatchRules: [
|
|
1299
|
-
{
|
|
1300
|
-
config: {
|
|
1301
|
-
exactMatchConfig: {
|
|
1302
|
-
caseSensitive: true,
|
|
1303
|
-
},
|
|
1304
|
-
},
|
|
1305
|
-
negated: true,
|
|
1306
|
-
query: "Test string",
|
|
1307
|
-
}
|
|
1308
|
-
],
|
|
1309
|
-
type: "Test string",
|
|
1310
|
-
}
|
|
1311
|
-
],
|
|
1312
|
-
revisionCreateTime: "Test string",
|
|
1313
|
-
revisionId: "Test string",
|
|
1314
|
-
roleMatch: "Test string",
|
|
1315
|
-
type: "Test string",
|
|
1316
|
-
updateTime: "Test string",
|
|
1317
|
-
versionTag: "Test string",
|
|
1318
|
-
});
|
|
1319
|
-
/** Deletes a phrase matcher. */
|
|
1320
|
-
await gapi.client.contactcenterinsights.projects.locations.phraseMatchers.delete({
|
|
1321
|
-
name: "Test string",
|
|
1322
|
-
});
|
|
1323
|
-
/** Gets a phrase matcher. */
|
|
1324
|
-
await gapi.client.contactcenterinsights.projects.locations.phraseMatchers.get({
|
|
1325
|
-
name: "Test string",
|
|
1326
|
-
});
|
|
1327
|
-
/** Lists phrase matchers. */
|
|
1328
|
-
await gapi.client.contactcenterinsights.projects.locations.phraseMatchers.list({
|
|
1329
|
-
filter: "Test string",
|
|
1330
|
-
pageSize: 42,
|
|
1331
|
-
pageToken: "Test string",
|
|
1332
|
-
parent: "Test string",
|
|
1333
|
-
});
|
|
1334
|
-
/** Updates a phrase matcher. */
|
|
1335
|
-
await gapi.client.contactcenterinsights.projects.locations.phraseMatchers.patch({
|
|
1336
|
-
name: "Test string",
|
|
1337
|
-
updateMask: "Test string",
|
|
1338
|
-
}, {
|
|
1339
|
-
activationUpdateTime: "Test string",
|
|
1340
|
-
active: true,
|
|
1341
|
-
displayName: "Test string",
|
|
1342
|
-
name: "Test string",
|
|
1343
|
-
phraseMatchRuleGroups: [
|
|
1344
|
-
{
|
|
1345
|
-
phraseMatchRules: [
|
|
1346
|
-
{
|
|
1347
|
-
config: {
|
|
1348
|
-
exactMatchConfig: {
|
|
1349
|
-
caseSensitive: true,
|
|
1350
|
-
},
|
|
1351
|
-
},
|
|
1352
|
-
negated: true,
|
|
1353
|
-
query: "Test string",
|
|
1354
|
-
}
|
|
1355
|
-
],
|
|
1356
|
-
type: "Test string",
|
|
1357
|
-
}
|
|
1358
|
-
],
|
|
1359
|
-
revisionCreateTime: "Test string",
|
|
1360
|
-
revisionId: "Test string",
|
|
1361
|
-
roleMatch: "Test string",
|
|
1362
|
-
type: "Test string",
|
|
1363
|
-
updateTime: "Test string",
|
|
1364
|
-
versionTag: "Test string",
|
|
1365
|
-
});
|
|
1366
|
-
/** Creates a view. */
|
|
1367
|
-
await gapi.client.contactcenterinsights.projects.locations.views.create({
|
|
1368
|
-
parent: "Test string",
|
|
1369
|
-
}, {
|
|
1370
|
-
createTime: "Test string",
|
|
1371
|
-
displayName: "Test string",
|
|
1372
|
-
name: "Test string",
|
|
1373
|
-
updateTime: "Test string",
|
|
1374
|
-
value: "Test string",
|
|
1375
|
-
});
|
|
1376
|
-
/** Deletes a view. */
|
|
1377
|
-
await gapi.client.contactcenterinsights.projects.locations.views.delete({
|
|
1378
|
-
name: "Test string",
|
|
1379
|
-
});
|
|
1380
|
-
/** Gets a view. */
|
|
1381
|
-
await gapi.client.contactcenterinsights.projects.locations.views.get({
|
|
1382
|
-
name: "Test string",
|
|
1383
|
-
});
|
|
1384
|
-
/** Lists views. */
|
|
1385
|
-
await gapi.client.contactcenterinsights.projects.locations.views.list({
|
|
1386
|
-
pageSize: 42,
|
|
1387
|
-
pageToken: "Test string",
|
|
1388
|
-
parent: "Test string",
|
|
1389
|
-
});
|
|
1390
|
-
/** Updates a view. */
|
|
1391
|
-
await gapi.client.contactcenterinsights.projects.locations.views.patch({
|
|
1392
|
-
name: "Test string",
|
|
1393
|
-
updateMask: "Test string",
|
|
1394
|
-
}, {
|
|
1395
|
-
createTime: "Test string",
|
|
1396
|
-
displayName: "Test string",
|
|
1397
|
-
name: "Test string",
|
|
1398
|
-
updateTime: "Test string",
|
|
1399
|
-
value: "Test string",
|
|
1400
|
-
});
|
|
1401
|
-
}
|
|
1402
|
-
});
|