@maxim_mazurok/gapi.client.contactcenterinsights-v1 0.0.20231023 → 0.0.20231031
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 +188 -3
- package/package.json +1 -1
- package/tests.ts +20 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://contactcenterinsights.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20231031
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -168,7 +168,7 @@ declare namespace gapi.client {
|
|
|
168
168
|
/** The number of requested analyses that have failed so far. */
|
|
169
169
|
failedAnalysesCount?:
|
|
170
170
|
number;
|
|
171
|
-
/** Output only. Partial errors during
|
|
171
|
+
/** Output only. Partial errors during bulk analyze operation that might cause the operation output to be incomplete. */
|
|
172
172
|
partialErrors?:
|
|
173
173
|
GoogleRpcStatus[];
|
|
174
174
|
/** The original request for bulk analyze. */
|
|
@@ -200,6 +200,37 @@ declare namespace gapi.client {
|
|
|
200
200
|
successfulAnalysisCount?:
|
|
201
201
|
number;
|
|
202
202
|
}
|
|
203
|
+
interface GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata {
|
|
204
|
+
/** The time the operation was created. */
|
|
205
|
+
createTime?:
|
|
206
|
+
string;
|
|
207
|
+
/** The time the operation finished running. */
|
|
208
|
+
endTime?:
|
|
209
|
+
string;
|
|
210
|
+
/** Partial errors during bulk delete conversations operation that might cause the operation output to be incomplete. */
|
|
211
|
+
partialErrors?:
|
|
212
|
+
GoogleRpcStatus[];
|
|
213
|
+
/** The original request for bulk delete. */
|
|
214
|
+
request?:
|
|
215
|
+
GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest;
|
|
216
|
+
}
|
|
217
|
+
interface GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest {
|
|
218
|
+
/** Filter used to select the subset of conversations to analyze. */
|
|
219
|
+
filter?:
|
|
220
|
+
string;
|
|
221
|
+
/** If set to true, all of this conversation's analyses will also be deleted. Otherwise, the request will only succeed if the conversation has no analyses. */
|
|
222
|
+
force?:
|
|
223
|
+
boolean;
|
|
224
|
+
/** Maximum number of conversations to delete. The default is 1000. It can be changed by setting the `max_delete_count` field. */
|
|
225
|
+
maxDeleteCount?:
|
|
226
|
+
number;
|
|
227
|
+
/** Required. The parent resource to create analyses in. Format: projects/{project}/locations/{location} */
|
|
228
|
+
parent?:
|
|
229
|
+
string;
|
|
230
|
+
}
|
|
231
|
+
// tslint:disable-next-line:no-empty-interface
|
|
232
|
+
interface GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsResponse {
|
|
233
|
+
}
|
|
203
234
|
interface GoogleCloudContactcenterinsightsV1alpha1CallAnnotation {
|
|
204
235
|
/** The boundary in the conversation where the annotation ends, inclusive. */
|
|
205
236
|
annotationEndBoundary?:
|
|
@@ -657,16 +688,37 @@ declare namespace gapi.client {
|
|
|
657
688
|
/** Required. The parent resource for new conversations. */
|
|
658
689
|
parent?:
|
|
659
690
|
string;
|
|
691
|
+
/** Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings. */
|
|
692
|
+
redactionConfig?:
|
|
693
|
+
GoogleCloudContactcenterinsightsV1alpha1RedactionConfig;
|
|
694
|
+
/** Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings. */
|
|
695
|
+
speechConfig?:
|
|
696
|
+
GoogleCloudContactcenterinsightsV1alpha1SpeechConfig;
|
|
660
697
|
/** Configuration for when `source` contains conversation transcripts. */
|
|
661
698
|
transcriptObjectConfig?:
|
|
662
699
|
GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig;
|
|
663
700
|
}
|
|
664
701
|
interface GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig {
|
|
702
|
+
/**
|
|
703
|
+
* Optional. For audio conversations, this field indicates which of the channels, 1 or 2, contains the agent. Note that this must be set for audio conversations to be properly
|
|
704
|
+
* displayed and analyzed.
|
|
705
|
+
*/
|
|
706
|
+
agentChannel?:
|
|
707
|
+
number;
|
|
665
708
|
/** An opaque, user-specified string representing the human agent who handled the conversations. */
|
|
666
709
|
agentId?:
|
|
667
710
|
string;
|
|
711
|
+
/**
|
|
712
|
+
* Optional. For audio conversations, this field indicates which of the channels, 1 or 2, contains the customer. Note that this must be set for audio conversations to be properly
|
|
713
|
+
* displayed and analyzed.
|
|
714
|
+
*/
|
|
715
|
+
customerChannel?:
|
|
716
|
+
number;
|
|
668
717
|
}
|
|
669
718
|
interface GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource {
|
|
719
|
+
/** Optional. Specifies the type of the objects in `bucket_uri`. */
|
|
720
|
+
bucketObjectType?:
|
|
721
|
+
string;
|
|
670
722
|
/** Required. The Cloud Storage bucket containing source objects. */
|
|
671
723
|
bucketUri?:
|
|
672
724
|
string;
|
|
@@ -1084,7 +1136,7 @@ declare namespace gapi.client {
|
|
|
1084
1136
|
/** The number of requested analyses that have failed so far. */
|
|
1085
1137
|
failedAnalysesCount?:
|
|
1086
1138
|
number;
|
|
1087
|
-
/** Output only. Partial errors during
|
|
1139
|
+
/** Output only. Partial errors during bulk analyze operation that might cause the operation output to be incomplete. */
|
|
1088
1140
|
partialErrors?:
|
|
1089
1141
|
GoogleRpcStatus[];
|
|
1090
1142
|
/** The original request for bulk analyze. */
|
|
@@ -1116,6 +1168,37 @@ declare namespace gapi.client {
|
|
|
1116
1168
|
successfulAnalysisCount?:
|
|
1117
1169
|
number;
|
|
1118
1170
|
}
|
|
1171
|
+
interface GoogleCloudContactcenterinsightsV1BulkDeleteConversationsMetadata {
|
|
1172
|
+
/** The time the operation was created. */
|
|
1173
|
+
createTime?:
|
|
1174
|
+
string;
|
|
1175
|
+
/** The time the operation finished running. */
|
|
1176
|
+
endTime?:
|
|
1177
|
+
string;
|
|
1178
|
+
/** Partial errors during bulk delete conversations operation that might cause the operation output to be incomplete. */
|
|
1179
|
+
partialErrors?:
|
|
1180
|
+
GoogleRpcStatus[];
|
|
1181
|
+
/** The original request for bulk delete. */
|
|
1182
|
+
request?:
|
|
1183
|
+
GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest;
|
|
1184
|
+
}
|
|
1185
|
+
interface GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest {
|
|
1186
|
+
/** Filter used to select the subset of conversations to analyze. */
|
|
1187
|
+
filter?:
|
|
1188
|
+
string;
|
|
1189
|
+
/** If set to true, all of this conversation's analyses will also be deleted. Otherwise, the request will only succeed if the conversation has no analyses. */
|
|
1190
|
+
force?:
|
|
1191
|
+
boolean;
|
|
1192
|
+
/** Maximum number of conversations to delete. The default is 1000. It can be changed by setting the `max_delete_count` field. */
|
|
1193
|
+
maxDeleteCount?:
|
|
1194
|
+
number;
|
|
1195
|
+
/** Required. The parent resource to create analyses in. Format: projects/{project}/locations/{location} */
|
|
1196
|
+
parent?:
|
|
1197
|
+
string;
|
|
1198
|
+
}
|
|
1199
|
+
// tslint:disable-next-line:no-empty-interface
|
|
1200
|
+
interface GoogleCloudContactcenterinsightsV1BulkDeleteConversationsResponse {
|
|
1201
|
+
}
|
|
1119
1202
|
interface GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse {
|
|
1120
1203
|
/** The latest label statistics for the queried issue model. Includes results on both training data and data labeled after deployment. */
|
|
1121
1204
|
currentStats?:
|
|
@@ -1628,16 +1711,37 @@ declare namespace gapi.client {
|
|
|
1628
1711
|
/** Required. The parent resource for new conversations. */
|
|
1629
1712
|
parent?:
|
|
1630
1713
|
string;
|
|
1714
|
+
/** Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings. */
|
|
1715
|
+
redactionConfig?:
|
|
1716
|
+
GoogleCloudContactcenterinsightsV1RedactionConfig;
|
|
1717
|
+
/** Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings. */
|
|
1718
|
+
speechConfig?:
|
|
1719
|
+
GoogleCloudContactcenterinsightsV1SpeechConfig;
|
|
1631
1720
|
/** Configuration for when `source` contains conversation transcripts. */
|
|
1632
1721
|
transcriptObjectConfig?:
|
|
1633
1722
|
GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig;
|
|
1634
1723
|
}
|
|
1635
1724
|
interface GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig {
|
|
1725
|
+
/**
|
|
1726
|
+
* Optional. For audio conversations, this field indicates which of the channels, 1 or 2, contains the agent. Note that this must be set for audio conversations to be properly
|
|
1727
|
+
* displayed and analyzed.
|
|
1728
|
+
*/
|
|
1729
|
+
agentChannel?:
|
|
1730
|
+
number;
|
|
1636
1731
|
/** An opaque, user-specified string representing the human agent who handled the conversations. */
|
|
1637
1732
|
agentId?:
|
|
1638
1733
|
string;
|
|
1734
|
+
/**
|
|
1735
|
+
* Optional. For audio conversations, this field indicates which of the channels, 1 or 2, contains the customer. Note that this must be set for audio conversations to be properly
|
|
1736
|
+
* displayed and analyzed.
|
|
1737
|
+
*/
|
|
1738
|
+
customerChannel?:
|
|
1739
|
+
number;
|
|
1639
1740
|
}
|
|
1640
1741
|
interface GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource {
|
|
1742
|
+
/** Optional. Specifies the type of the objects in `bucket_uri`. */
|
|
1743
|
+
bucketObjectType?:
|
|
1744
|
+
string;
|
|
1641
1745
|
/** Required. The Cloud Storage bucket containing source objects. */
|
|
1642
1746
|
bucketUri?:
|
|
1643
1747
|
string;
|
|
@@ -2447,6 +2551,87 @@ declare namespace gapi.client {
|
|
|
2447
2551
|
string;
|
|
2448
2552
|
},
|
|
2449
2553
|
body: GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest): Request<GoogleLongrunningOperation>;
|
|
2554
|
+
/** Deletes multiple conversations in a single request. */
|
|
2555
|
+
bulkDelete(request: {
|
|
2556
|
+
/** V1 error format. */
|
|
2557
|
+
"$.xgafv"?:
|
|
2558
|
+
string;
|
|
2559
|
+
/** OAuth access token. */
|
|
2560
|
+
access_token?:
|
|
2561
|
+
string;
|
|
2562
|
+
/** Data format for response. */
|
|
2563
|
+
alt?:
|
|
2564
|
+
string;
|
|
2565
|
+
/** JSONP */
|
|
2566
|
+
callback?:
|
|
2567
|
+
string;
|
|
2568
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2569
|
+
fields?:
|
|
2570
|
+
string;
|
|
2571
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2572
|
+
key?:
|
|
2573
|
+
string;
|
|
2574
|
+
/** OAuth 2.0 token for the current user. */
|
|
2575
|
+
oauth_token?:
|
|
2576
|
+
string;
|
|
2577
|
+
/** Required. The parent resource to create analyses in. Format: projects/{project}/locations/{location} */
|
|
2578
|
+
parent:
|
|
2579
|
+
string;
|
|
2580
|
+
/** Returns response with indentations and line breaks. */
|
|
2581
|
+
prettyPrint?:
|
|
2582
|
+
boolean;
|
|
2583
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2584
|
+
quotaUser?:
|
|
2585
|
+
string;
|
|
2586
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2587
|
+
upload_protocol?:
|
|
2588
|
+
string;
|
|
2589
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2590
|
+
uploadType?:
|
|
2591
|
+
string;
|
|
2592
|
+
/** Request body */
|
|
2593
|
+
resource:
|
|
2594
|
+
GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest;
|
|
2595
|
+
}): Request<GoogleLongrunningOperation>;
|
|
2596
|
+
bulkDelete(request: {
|
|
2597
|
+
/** V1 error format. */
|
|
2598
|
+
"$.xgafv"?:
|
|
2599
|
+
string;
|
|
2600
|
+
/** OAuth access token. */
|
|
2601
|
+
access_token?:
|
|
2602
|
+
string;
|
|
2603
|
+
/** Data format for response. */
|
|
2604
|
+
alt?:
|
|
2605
|
+
string;
|
|
2606
|
+
/** JSONP */
|
|
2607
|
+
callback?:
|
|
2608
|
+
string;
|
|
2609
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2610
|
+
fields?:
|
|
2611
|
+
string;
|
|
2612
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2613
|
+
key?:
|
|
2614
|
+
string;
|
|
2615
|
+
/** OAuth 2.0 token for the current user. */
|
|
2616
|
+
oauth_token?:
|
|
2617
|
+
string;
|
|
2618
|
+
/** Required. The parent resource to create analyses in. Format: projects/{project}/locations/{location} */
|
|
2619
|
+
parent:
|
|
2620
|
+
string;
|
|
2621
|
+
/** Returns response with indentations and line breaks. */
|
|
2622
|
+
prettyPrint?:
|
|
2623
|
+
boolean;
|
|
2624
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2625
|
+
quotaUser?:
|
|
2626
|
+
string;
|
|
2627
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2628
|
+
upload_protocol?:
|
|
2629
|
+
string;
|
|
2630
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2631
|
+
uploadType?:
|
|
2632
|
+
string;
|
|
2633
|
+
},
|
|
2634
|
+
body: GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest): Request<GoogleLongrunningOperation>;
|
|
2450
2635
|
/** Gets conversation statistics. */
|
|
2451
2636
|
calculateStats(request?: {
|
|
2452
2637
|
/** V1 error format. */
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20231031
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -106,6 +106,15 @@ gapi.load('client', async () => {
|
|
|
106
106
|
filter: "Test string",
|
|
107
107
|
parent: "Test string",
|
|
108
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
|
+
});
|
|
109
118
|
/** Gets conversation statistics. */
|
|
110
119
|
await gapi.client.contactcenterinsights.projects.locations.conversations.calculateStats({
|
|
111
120
|
filter: "Test string",
|
|
@@ -402,12 +411,22 @@ gapi.load('client', async () => {
|
|
|
402
411
|
parent: "Test string",
|
|
403
412
|
}, {
|
|
404
413
|
conversationConfig: {
|
|
414
|
+
agentChannel: 42,
|
|
405
415
|
agentId: "Test string",
|
|
416
|
+
customerChannel: 42,
|
|
406
417
|
},
|
|
407
418
|
gcsSource: {
|
|
419
|
+
bucketObjectType: "Test string",
|
|
408
420
|
bucketUri: "Test string",
|
|
409
421
|
},
|
|
410
422
|
parent: "Test string",
|
|
423
|
+
redactionConfig: {
|
|
424
|
+
deidentifyTemplate: "Test string",
|
|
425
|
+
inspectTemplate: "Test string",
|
|
426
|
+
},
|
|
427
|
+
speechConfig: {
|
|
428
|
+
speechRecognizer: "Test string",
|
|
429
|
+
},
|
|
411
430
|
transcriptObjectConfig: {
|
|
412
431
|
medium: "Test string",
|
|
413
432
|
},
|