@maxim_mazurok/gapi.client.contactcenterinsights-v1 0.0.20221108 → 0.0.20221112

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.
Files changed (3) hide show
  1. package/index.d.ts +239 -1
  2. package/package.json +1 -1
  3. package/tests.ts +24 -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: 20221108
12
+ // Revision: 20221112
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -22,6 +22,34 @@ declare namespace gapi.client {
22
22
  function load(name: "contactcenterinsights", version: "v1", callback: () => any): void;
23
23
 
24
24
  namespace contactcenterinsights {
25
+ interface GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata {
26
+ /** The number of requested analyses that have completed successfully so far. */
27
+ completedAnalysesCount?: number;
28
+ /** The time the operation was created. */
29
+ createTime?: string;
30
+ /** The time the operation finished running. */
31
+ endTime?: string;
32
+ /** The number of requested analyses that have failed so far. */
33
+ failedAnalysesCount?: number;
34
+ /** The original request for bulk analyze. */
35
+ request?: GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest;
36
+ /** Total number of analyses requested. Computed by the number of conversations returned by `filter` multiplied by `analysis_percentage` in the request. */
37
+ totalRequestedAnalysesCount?: number;
38
+ }
39
+ interface GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest {
40
+ /** Required. Percentage of selected conversation to analyze, between [0, 100]. */
41
+ analysisPercentage?: number;
42
+ /** Required. Filter used to select the subset of conversations to analyze. */
43
+ filter?: string;
44
+ /** Required. The parent resource to create analyses in. */
45
+ parent?: string;
46
+ }
47
+ interface GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsResponse {
48
+ /** Count of failed analyses. */
49
+ failedAnalysisCount?: number;
50
+ /** Count of successful analyses. */
51
+ successfulAnalysisCount?: number;
52
+ }
25
53
  interface GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata {
26
54
  /** Output only. The Conversation that this Analysis Operation belongs to. */
27
55
  conversation?: string;
@@ -104,6 +132,41 @@ declare namespace gapi.client {
104
132
  // tslint:disable-next-line:no-empty-interface
105
133
  interface GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse {
106
134
  }
135
+ interface GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata {
136
+ /** Output only. The time the operation was created. */
137
+ createTime?: string;
138
+ /** Output only. The time the operation finished running. */
139
+ endTime?: string;
140
+ /** Output only. Partial errors during ingest operation that might cause the operation output to be incomplete. */
141
+ partialErrors?: GoogleRpcStatus[];
142
+ /** Output only. The original request for ingest. */
143
+ request?: GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest;
144
+ }
145
+ interface GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest {
146
+ /** Configuration that applies to all conversations. */
147
+ conversationConfig?: GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig;
148
+ /** A cloud storage bucket source. */
149
+ gcsSource?: GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource;
150
+ /** Required. The parent resource for new conversations. */
151
+ parent?: string;
152
+ /** Configuration for when `source` contains conversation transcripts. */
153
+ transcriptObjectConfig?: GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig;
154
+ }
155
+ interface GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig {
156
+ /** An opaque, user-specified string representing the human agent who handled the conversations. */
157
+ agentId?: string;
158
+ }
159
+ interface GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource {
160
+ /** Required. The Cloud Storage bucket containing source objects. */
161
+ bucketUri?: string;
162
+ }
163
+ interface GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig {
164
+ /** Required. The medium transcript objects represent. */
165
+ medium?: string;
166
+ }
167
+ // tslint:disable-next-line:no-empty-interface
168
+ interface GoogleCloudContactcenterinsightsV1alpha1IngestConversationsResponse {
169
+ }
107
170
  interface GoogleCloudContactcenterinsightsV1alpha1IssueModel {
108
171
  /** Output only. The time at which this issue model was created. */
109
172
  createTime?: string;
@@ -217,6 +280,34 @@ declare namespace gapi.client {
217
280
  /** Article URI. */
218
281
  uri?: string;
219
282
  }
283
+ interface GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsMetadata {
284
+ /** The number of requested analyses that have completed successfully so far. */
285
+ completedAnalysesCount?: number;
286
+ /** The time the operation was created. */
287
+ createTime?: string;
288
+ /** The time the operation finished running. */
289
+ endTime?: string;
290
+ /** The number of requested analyses that have failed so far. */
291
+ failedAnalysesCount?: number;
292
+ /** The original request for bulk analyze. */
293
+ request?: GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest;
294
+ /** Total number of analyses requested. Computed by the number of conversations returned by `filter` multiplied by `analysis_percentage` in the request. */
295
+ totalRequestedAnalysesCount?: number;
296
+ }
297
+ interface GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest {
298
+ /** Required. Percentage of selected conversation to analyze, between [0, 100]. */
299
+ analysisPercentage?: number;
300
+ /** Required. Filter used to select the subset of conversations to analyze. */
301
+ filter?: string;
302
+ /** Required. The parent resource to create analyses in. */
303
+ parent?: string;
304
+ }
305
+ interface GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsResponse {
306
+ /** Count of failed analyses. */
307
+ failedAnalysisCount?: number;
308
+ /** Count of successful analyses. */
309
+ successfulAnalysisCount?: number;
310
+ }
220
311
  interface GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse {
221
312
  /** The latest label statistics for the queried issue model. Includes results on both training data and data labeled after deployment. */
222
313
  currentStats?: GoogleCloudContactcenterinsightsV1IssueModelLabelStats;
@@ -543,6 +634,41 @@ declare namespace gapi.client {
543
634
  // tslint:disable-next-line:no-empty-interface
544
635
  interface GoogleCloudContactcenterinsightsV1HoldData {
545
636
  }
637
+ interface GoogleCloudContactcenterinsightsV1IngestConversationsMetadata {
638
+ /** Output only. The time the operation was created. */
639
+ createTime?: string;
640
+ /** Output only. The time the operation finished running. */
641
+ endTime?: string;
642
+ /** Output only. Partial errors during ingest operation that might cause the operation output to be incomplete. */
643
+ partialErrors?: GoogleRpcStatus[];
644
+ /** Output only. The original request for ingest. */
645
+ request?: GoogleCloudContactcenterinsightsV1IngestConversationsRequest;
646
+ }
647
+ interface GoogleCloudContactcenterinsightsV1IngestConversationsRequest {
648
+ /** Configuration that applies to all conversations. */
649
+ conversationConfig?: GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig;
650
+ /** A cloud storage bucket source. */
651
+ gcsSource?: GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource;
652
+ /** Required. The parent resource for new conversations. */
653
+ parent?: string;
654
+ /** Configuration for when `source` contains conversation transcripts. */
655
+ transcriptObjectConfig?: GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig;
656
+ }
657
+ interface GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig {
658
+ /** An opaque, user-specified string representing the human agent who handled the conversations. */
659
+ agentId?: string;
660
+ }
661
+ interface GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource {
662
+ /** Required. The Cloud Storage bucket containing source objects. */
663
+ bucketUri?: string;
664
+ }
665
+ interface GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig {
666
+ /** Required. The medium transcript objects represent. */
667
+ medium?: string;
668
+ }
669
+ // tslint:disable-next-line:no-empty-interface
670
+ interface GoogleCloudContactcenterinsightsV1IngestConversationsResponse {
671
+ }
546
672
  interface GoogleCloudContactcenterinsightsV1Intent {
547
673
  /** The human-readable name of the intent. */
548
674
  displayName?: string;
@@ -1013,6 +1139,62 @@ declare namespace gapi.client {
1013
1139
  }): Request<GoogleCloudContactcenterinsightsV1ListAnalysesResponse>;
1014
1140
  }
1015
1141
  interface ConversationsResource {
1142
+ /** Analyzes multiple conversations in a single request. */
1143
+ bulkAnalyze(request: {
1144
+ /** V1 error format. */
1145
+ "$.xgafv"?: string;
1146
+ /** OAuth access token. */
1147
+ access_token?: string;
1148
+ /** Data format for response. */
1149
+ alt?: string;
1150
+ /** JSONP */
1151
+ callback?: string;
1152
+ /** Selector specifying which fields to include in a partial response. */
1153
+ fields?: string;
1154
+ /** 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. */
1155
+ key?: string;
1156
+ /** OAuth 2.0 token for the current user. */
1157
+ oauth_token?: string;
1158
+ /** Required. The parent resource to create analyses in. */
1159
+ parent: string;
1160
+ /** Returns response with indentations and line breaks. */
1161
+ prettyPrint?: boolean;
1162
+ /** 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. */
1163
+ quotaUser?: string;
1164
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1165
+ upload_protocol?: string;
1166
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1167
+ uploadType?: string;
1168
+ /** Request body */
1169
+ resource: GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest;
1170
+ }): Request<GoogleLongrunningOperation>;
1171
+ bulkAnalyze(request: {
1172
+ /** V1 error format. */
1173
+ "$.xgafv"?: string;
1174
+ /** OAuth access token. */
1175
+ access_token?: string;
1176
+ /** Data format for response. */
1177
+ alt?: string;
1178
+ /** JSONP */
1179
+ callback?: string;
1180
+ /** Selector specifying which fields to include in a partial response. */
1181
+ fields?: string;
1182
+ /** 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. */
1183
+ key?: string;
1184
+ /** OAuth 2.0 token for the current user. */
1185
+ oauth_token?: string;
1186
+ /** Required. The parent resource to create analyses in. */
1187
+ parent: string;
1188
+ /** Returns response with indentations and line breaks. */
1189
+ prettyPrint?: boolean;
1190
+ /** 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. */
1191
+ quotaUser?: string;
1192
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1193
+ upload_protocol?: string;
1194
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1195
+ uploadType?: string;
1196
+ },
1197
+ body: GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest): Request<GoogleLongrunningOperation>;
1016
1198
  /** Gets conversation statistics. */
1017
1199
  calculateStats(request?: {
1018
1200
  /** V1 error format. */
@@ -1166,6 +1348,62 @@ declare namespace gapi.client {
1166
1348
  /** The level of details of the conversation. Default is `FULL`. */
1167
1349
  view?: string;
1168
1350
  }): Request<GoogleCloudContactcenterinsightsV1Conversation>;
1351
+ /** Imports conversations and processes them according to the user's configuration. */
1352
+ ingest(request: {
1353
+ /** V1 error format. */
1354
+ "$.xgafv"?: string;
1355
+ /** OAuth access token. */
1356
+ access_token?: string;
1357
+ /** Data format for response. */
1358
+ alt?: string;
1359
+ /** JSONP */
1360
+ callback?: string;
1361
+ /** Selector specifying which fields to include in a partial response. */
1362
+ fields?: string;
1363
+ /** 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. */
1364
+ key?: string;
1365
+ /** OAuth 2.0 token for the current user. */
1366
+ oauth_token?: string;
1367
+ /** Required. The parent resource for new conversations. */
1368
+ parent: string;
1369
+ /** Returns response with indentations and line breaks. */
1370
+ prettyPrint?: boolean;
1371
+ /** 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. */
1372
+ quotaUser?: string;
1373
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1374
+ upload_protocol?: string;
1375
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1376
+ uploadType?: string;
1377
+ /** Request body */
1378
+ resource: GoogleCloudContactcenterinsightsV1IngestConversationsRequest;
1379
+ }): Request<GoogleLongrunningOperation>;
1380
+ ingest(request: {
1381
+ /** V1 error format. */
1382
+ "$.xgafv"?: string;
1383
+ /** OAuth access token. */
1384
+ access_token?: string;
1385
+ /** Data format for response. */
1386
+ alt?: string;
1387
+ /** JSONP */
1388
+ callback?: string;
1389
+ /** Selector specifying which fields to include in a partial response. */
1390
+ fields?: string;
1391
+ /** 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. */
1392
+ key?: string;
1393
+ /** OAuth 2.0 token for the current user. */
1394
+ oauth_token?: string;
1395
+ /** Required. The parent resource for new conversations. */
1396
+ parent: string;
1397
+ /** Returns response with indentations and line breaks. */
1398
+ prettyPrint?: boolean;
1399
+ /** 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. */
1400
+ quotaUser?: string;
1401
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1402
+ upload_protocol?: string;
1403
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1404
+ uploadType?: string;
1405
+ },
1406
+ body: GoogleCloudContactcenterinsightsV1IngestConversationsRequest): Request<GoogleLongrunningOperation>;
1169
1407
  /** Lists conversations. */
1170
1408
  list(request?: {
1171
1409
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.contactcenterinsights-v1",
3
- "version": "0.0.20221108",
3
+ "version": "0.0.20221112",
4
4
  "description": "TypeScript typings for Contact Center AI Insights API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20221108
6
+ // Revision: 20221112
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -50,6 +50,14 @@ gapi.load('client', async () => {
50
50
  },
51
51
  updateTime: "Test string",
52
52
  });
53
+ /** Analyzes multiple conversations in a single request. */
54
+ await gapi.client.contactcenterinsights.projects.locations.conversations.bulkAnalyze({
55
+ parent: "Test string",
56
+ }, {
57
+ analysisPercentage: 42,
58
+ filter: "Test string",
59
+ parent: "Test string",
60
+ });
53
61
  /** Gets conversation statistics. */
54
62
  await gapi.client.contactcenterinsights.projects.locations.conversations.calculateStats({
55
63
  filter: "Test string",
@@ -297,6 +305,21 @@ gapi.load('client', async () => {
297
305
  name: "Test string",
298
306
  view: "Test string",
299
307
  });
308
+ /** Imports conversations and processes them according to the user's configuration. */
309
+ await gapi.client.contactcenterinsights.projects.locations.conversations.ingest({
310
+ parent: "Test string",
311
+ }, {
312
+ conversationConfig: {
313
+ agentId: "Test string",
314
+ },
315
+ gcsSource: {
316
+ bucketUri: "Test string",
317
+ },
318
+ parent: "Test string",
319
+ transcriptObjectConfig: {
320
+ medium: "Test string",
321
+ },
322
+ });
300
323
  /** Lists conversations. */
301
324
  await gapi.client.contactcenterinsights.projects.locations.conversations.list({
302
325
  filter: "Test string",