@aws-sdk/client-connect-contact-lens 3.987.0 → 3.989.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
15
  var runtimeConfig = require('./runtimeConfig');
16
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
17
  var protocolHttp = require('@smithy/protocol-http');
18
+ var schemas_0 = require('./schemas/schemas_0');
19
+ var errors = require('./models/errors');
20
+ var ConnectContactLensServiceException = require('./models/ConnectContactLensServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,227 +113,6 @@ class ConnectContactLensClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
113
- class ConnectContactLensServiceException extends smithyClient.ServiceException {
114
- constructor(options) {
115
- super(options);
116
- Object.setPrototypeOf(this, ConnectContactLensServiceException.prototype);
117
- }
118
- }
119
-
120
- class AccessDeniedException extends ConnectContactLensServiceException {
121
- name = "AccessDeniedException";
122
- $fault = "client";
123
- Message;
124
- constructor(opts) {
125
- super({
126
- name: "AccessDeniedException",
127
- $fault: "client",
128
- ...opts,
129
- });
130
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
- this.Message = opts.Message;
132
- }
133
- }
134
- class InternalServiceException extends ConnectContactLensServiceException {
135
- name = "InternalServiceException";
136
- $fault = "server";
137
- Message;
138
- constructor(opts) {
139
- super({
140
- name: "InternalServiceException",
141
- $fault: "server",
142
- ...opts,
143
- });
144
- Object.setPrototypeOf(this, InternalServiceException.prototype);
145
- this.Message = opts.Message;
146
- }
147
- }
148
- class InvalidRequestException extends ConnectContactLensServiceException {
149
- name = "InvalidRequestException";
150
- $fault = "client";
151
- Message;
152
- constructor(opts) {
153
- super({
154
- name: "InvalidRequestException",
155
- $fault: "client",
156
- ...opts,
157
- });
158
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
159
- this.Message = opts.Message;
160
- }
161
- }
162
- class ResourceNotFoundException extends ConnectContactLensServiceException {
163
- name = "ResourceNotFoundException";
164
- $fault = "client";
165
- Message;
166
- constructor(opts) {
167
- super({
168
- name: "ResourceNotFoundException",
169
- $fault: "client",
170
- ...opts,
171
- });
172
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
173
- this.Message = opts.Message;
174
- }
175
- }
176
- class ThrottlingException extends ConnectContactLensServiceException {
177
- name = "ThrottlingException";
178
- $fault = "client";
179
- Message;
180
- constructor(opts) {
181
- super({
182
- name: "ThrottlingException",
183
- $fault: "client",
184
- ...opts,
185
- });
186
- Object.setPrototypeOf(this, ThrottlingException.prototype);
187
- this.Message = opts.Message;
188
- }
189
- }
190
-
191
- const _ADE = "AccessDeniedException";
192
- const _BOC = "BeginOffsetChar";
193
- const _BOM = "BeginOffsetMillis";
194
- const _C = "Categories";
195
- const _CD = "CategoryDetails";
196
- const _CI = "ContactId";
197
- const _CO = "CharacterOffsets";
198
- const _Co = "Content";
199
- const _EOC = "EndOffsetChar";
200
- const _EOM = "EndOffsetMillis";
201
- const _FC = "FailureCode";
202
- const _I = "Id";
203
- const _ID = "IssueDetected";
204
- const _IDs = "IssuesDetected";
205
- const _II = "InstanceId";
206
- const _IRE = "InvalidRequestException";
207
- const _ISE = "InternalServiceException";
208
- const _LRCAS = "ListRealtimeContactAnalysisSegments";
209
- const _LRCASR = "ListRealtimeContactAnalysisSegmentsRequest";
210
- const _LRCASRi = "ListRealtimeContactAnalysisSegmentsResponse";
211
- const _M = "Message";
212
- const _MC = "MatchedCategories";
213
- const _MD = "MatchedDetails";
214
- const _MR = "MaxResults";
215
- const _NT = "NextToken";
216
- const _PCS = "PostContactSummary";
217
- const _PI = "ParticipantId";
218
- const _POI = "PointsOfInterest";
219
- const _POIo = "PointOfInterest";
220
- const _PR = "ParticipantRole";
221
- const _RCAS = "RealtimeContactAnalysisSegment";
222
- const _RCASe = "RealtimeContactAnalysisSegments";
223
- const _RNFE = "ResourceNotFoundException";
224
- const _S = "Segments";
225
- const _Se = "Sentiment";
226
- const _St = "Status";
227
- const _T = "Transcript";
228
- const _TE = "ThrottlingException";
229
- const _c = "client";
230
- const _e = "error";
231
- const _h = "http";
232
- const _hE = "httpError";
233
- const _s = "server";
234
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.connectcontactlens";
235
- const n0 = "com.amazonaws.connectcontactlens";
236
- var AccessDeniedException$ = [-3, n0, _ADE,
237
- { [_e]: _c, [_hE]: 403 },
238
- [_M],
239
- [0], 1
240
- ];
241
- schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
242
- var Categories$ = [3, n0, _C,
243
- 0,
244
- [_MC, _MD],
245
- [64 | 0, () => MatchedDetails], 2
246
- ];
247
- var CategoryDetails$ = [3, n0, _CD,
248
- 0,
249
- [_POI],
250
- [() => PointsOfInterest], 1
251
- ];
252
- var CharacterOffsets$ = [3, n0, _CO,
253
- 0,
254
- [_BOC, _EOC],
255
- [1, 1], 2
256
- ];
257
- var InternalServiceException$ = [-3, n0, _ISE,
258
- { [_e]: _s, [_hE]: 500 },
259
- [_M],
260
- [0]
261
- ];
262
- schema.TypeRegistry.for(n0).registerError(InternalServiceException$, InternalServiceException);
263
- var InvalidRequestException$ = [-3, n0, _IRE,
264
- { [_e]: _c, [_hE]: 400 },
265
- [_M],
266
- [0]
267
- ];
268
- schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
269
- var IssueDetected$ = [3, n0, _ID,
270
- 0,
271
- [_CO],
272
- [() => CharacterOffsets$], 1
273
- ];
274
- var ListRealtimeContactAnalysisSegmentsRequest$ = [3, n0, _LRCASR,
275
- 0,
276
- [_II, _CI, _MR, _NT],
277
- [0, 0, 1, 0], 2
278
- ];
279
- var ListRealtimeContactAnalysisSegmentsResponse$ = [3, n0, _LRCASRi,
280
- 0,
281
- [_S, _NT],
282
- [() => RealtimeContactAnalysisSegments, 0], 1
283
- ];
284
- var PointOfInterest$ = [3, n0, _POIo,
285
- 0,
286
- [_BOM, _EOM],
287
- [1, 1], 2
288
- ];
289
- var PostContactSummary$ = [3, n0, _PCS,
290
- 0,
291
- [_St, _Co, _FC],
292
- [0, 0, 0], 1
293
- ];
294
- var RealtimeContactAnalysisSegment$ = [3, n0, _RCAS,
295
- 0,
296
- [_T, _C, _PCS],
297
- [() => Transcript$, () => Categories$, () => PostContactSummary$]
298
- ];
299
- var ResourceNotFoundException$ = [-3, n0, _RNFE,
300
- { [_e]: _c, [_hE]: 404 },
301
- [_M],
302
- [0]
303
- ];
304
- schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
305
- var ThrottlingException$ = [-3, n0, _TE,
306
- { [_e]: _c, [_hE]: 429 },
307
- [_M],
308
- [0], 1
309
- ];
310
- schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
311
- var Transcript$ = [3, n0, _T,
312
- 0,
313
- [_I, _PI, _PR, _Co, _BOM, _EOM, _Se, _IDs],
314
- [0, 0, 0, 0, 1, 1, 0, () => IssuesDetected], 6
315
- ];
316
- var ConnectContactLensServiceException$ = [-3, _sm, "ConnectContactLensServiceException", 0, [], []];
317
- schema.TypeRegistry.for(_sm).registerError(ConnectContactLensServiceException$, ConnectContactLensServiceException);
318
- var IssuesDetected = [1, n0, _IDs,
319
- 0, () => IssueDetected$
320
- ];
321
- var PointsOfInterest = [1, n0, _POI,
322
- 0, () => PointOfInterest$
323
- ];
324
- var RealtimeContactAnalysisSegments = [1, n0, _RCASe,
325
- 0, () => RealtimeContactAnalysisSegment$
326
- ];
327
- var MatchedDetails = [2, n0, _MD,
328
- 0, 0, () => CategoryDetails$
329
- ];
330
- var ListRealtimeContactAnalysisSegments$ = [9, n0, _LRCAS,
331
- { [_h]: ["POST", "/realtime-contact-analysis/analysis-segments", 200] }, () => ListRealtimeContactAnalysisSegmentsRequest$, () => ListRealtimeContactAnalysisSegmentsResponse$
332
- ];
333
-
334
116
  class ListRealtimeContactAnalysisSegmentsCommand extends smithyClient.Command
335
117
  .classBuilder()
336
118
  .ep(commonParams)
@@ -339,7 +121,7 @@ class ListRealtimeContactAnalysisSegmentsCommand extends smithyClient.Command
339
121
  })
340
122
  .s("AmazonConnectContactLens", "ListRealtimeContactAnalysisSegments", {})
341
123
  .n("ConnectContactLensClient", "ListRealtimeContactAnalysisSegmentsCommand")
342
- .sc(ListRealtimeContactAnalysisSegments$)
124
+ .sc(schemas_0.ListRealtimeContactAnalysisSegments$)
343
125
  .build() {
344
126
  }
345
127
 
@@ -380,33 +162,26 @@ Object.defineProperty(exports, "__Client", {
380
162
  enumerable: true,
381
163
  get: function () { return smithyClient.Client; }
382
164
  });
383
- exports.AccessDeniedException = AccessDeniedException;
384
- exports.AccessDeniedException$ = AccessDeniedException$;
385
- exports.Categories$ = Categories$;
386
- exports.CategoryDetails$ = CategoryDetails$;
387
- exports.CharacterOffsets$ = CharacterOffsets$;
165
+ Object.defineProperty(exports, "ConnectContactLensServiceException", {
166
+ enumerable: true,
167
+ get: function () { return ConnectContactLensServiceException.ConnectContactLensServiceException; }
168
+ });
388
169
  exports.ConnectContactLens = ConnectContactLens;
389
170
  exports.ConnectContactLensClient = ConnectContactLensClient;
390
- exports.ConnectContactLensServiceException = ConnectContactLensServiceException;
391
- exports.ConnectContactLensServiceException$ = ConnectContactLensServiceException$;
392
- exports.InternalServiceException = InternalServiceException;
393
- exports.InternalServiceException$ = InternalServiceException$;
394
- exports.InvalidRequestException = InvalidRequestException;
395
- exports.InvalidRequestException$ = InvalidRequestException$;
396
- exports.IssueDetected$ = IssueDetected$;
397
- exports.ListRealtimeContactAnalysisSegments$ = ListRealtimeContactAnalysisSegments$;
398
171
  exports.ListRealtimeContactAnalysisSegmentsCommand = ListRealtimeContactAnalysisSegmentsCommand;
399
- exports.ListRealtimeContactAnalysisSegmentsRequest$ = ListRealtimeContactAnalysisSegmentsRequest$;
400
- exports.ListRealtimeContactAnalysisSegmentsResponse$ = ListRealtimeContactAnalysisSegmentsResponse$;
401
- exports.PointOfInterest$ = PointOfInterest$;
402
- exports.PostContactSummary$ = PostContactSummary$;
403
172
  exports.PostContactSummaryFailureCode = PostContactSummaryFailureCode;
404
173
  exports.PostContactSummaryStatus = PostContactSummaryStatus;
405
- exports.RealtimeContactAnalysisSegment$ = RealtimeContactAnalysisSegment$;
406
- exports.ResourceNotFoundException = ResourceNotFoundException;
407
- exports.ResourceNotFoundException$ = ResourceNotFoundException$;
408
174
  exports.SentimentValue = SentimentValue;
409
- exports.ThrottlingException = ThrottlingException;
410
- exports.ThrottlingException$ = ThrottlingException$;
411
- exports.Transcript$ = Transcript$;
412
175
  exports.paginateListRealtimeContactAnalysisSegments = paginateListRealtimeContactAnalysisSegments;
176
+ Object.keys(schemas_0).forEach(function (k) {
177
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
178
+ enumerable: true,
179
+ get: function () { return schemas_0[k]; }
180
+ });
181
+ });
182
+ Object.keys(errors).forEach(function (k) {
183
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
184
+ enumerable: true,
185
+ get: function () { return errors[k]; }
186
+ });
187
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConnectContactLensServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class ConnectContactLensServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, ConnectContactLensServiceException.prototype);
10
+ }
11
+ }
12
+ exports.ConnectContactLensServiceException = ConnectContactLensServiceException;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ThrottlingException = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.InternalServiceException = exports.AccessDeniedException = void 0;
4
+ const ConnectContactLensServiceException_1 = require("./ConnectContactLensServiceException");
5
+ class AccessDeniedException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "AccessDeniedException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
20
+ class InternalServiceException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
21
+ name = "InternalServiceException";
22
+ $fault = "server";
23
+ Message;
24
+ constructor(opts) {
25
+ super({
26
+ name: "InternalServiceException",
27
+ $fault: "server",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, InternalServiceException.prototype);
31
+ this.Message = opts.Message;
32
+ }
33
+ }
34
+ exports.InternalServiceException = InternalServiceException;
35
+ class InvalidRequestException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
36
+ name = "InvalidRequestException";
37
+ $fault = "client";
38
+ Message;
39
+ constructor(opts) {
40
+ super({
41
+ name: "InvalidRequestException",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
46
+ this.Message = opts.Message;
47
+ }
48
+ }
49
+ exports.InvalidRequestException = InvalidRequestException;
50
+ class ResourceNotFoundException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
51
+ name = "ResourceNotFoundException";
52
+ $fault = "client";
53
+ Message;
54
+ constructor(opts) {
55
+ super({
56
+ name: "ResourceNotFoundException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
61
+ this.Message = opts.Message;
62
+ }
63
+ }
64
+ exports.ResourceNotFoundException = ResourceNotFoundException;
65
+ class ThrottlingException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
66
+ name = "ThrottlingException";
67
+ $fault = "client";
68
+ Message;
69
+ constructor(opts) {
70
+ super({
71
+ name: "ThrottlingException",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
76
+ this.Message = opts.Message;
77
+ }
78
+ }
79
+ exports.ThrottlingException = ThrottlingException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2020-08-21",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.connectcontactlens",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2020-08-21",
33
35
  serviceTarget: "AmazonConnectContactLens",
34
36
  },
@@ -0,0 +1,155 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListRealtimeContactAnalysisSegments$ = exports.Transcript$ = exports.RealtimeContactAnalysisSegment$ = exports.PostContactSummary$ = exports.PointOfInterest$ = exports.ListRealtimeContactAnalysisSegmentsResponse$ = exports.ListRealtimeContactAnalysisSegmentsRequest$ = exports.IssueDetected$ = exports.CharacterOffsets$ = exports.CategoryDetails$ = exports.Categories$ = exports.errorTypeRegistries = exports.ThrottlingException$ = exports.ResourceNotFoundException$ = exports.InvalidRequestException$ = exports.InternalServiceException$ = exports.AccessDeniedException$ = exports.ConnectContactLensServiceException$ = void 0;
4
+ const _ADE = "AccessDeniedException";
5
+ const _BOC = "BeginOffsetChar";
6
+ const _BOM = "BeginOffsetMillis";
7
+ const _C = "Categories";
8
+ const _CD = "CategoryDetails";
9
+ const _CI = "ContactId";
10
+ const _CO = "CharacterOffsets";
11
+ const _Co = "Content";
12
+ const _EOC = "EndOffsetChar";
13
+ const _EOM = "EndOffsetMillis";
14
+ const _FC = "FailureCode";
15
+ const _I = "Id";
16
+ const _ID = "IssueDetected";
17
+ const _IDs = "IssuesDetected";
18
+ const _II = "InstanceId";
19
+ const _IRE = "InvalidRequestException";
20
+ const _ISE = "InternalServiceException";
21
+ const _LRCAS = "ListRealtimeContactAnalysisSegments";
22
+ const _LRCASR = "ListRealtimeContactAnalysisSegmentsRequest";
23
+ const _LRCASRi = "ListRealtimeContactAnalysisSegmentsResponse";
24
+ const _M = "Message";
25
+ const _MC = "MatchedCategories";
26
+ const _MD = "MatchedDetails";
27
+ const _MR = "MaxResults";
28
+ const _NT = "NextToken";
29
+ const _PCS = "PostContactSummary";
30
+ const _PI = "ParticipantId";
31
+ const _POI = "PointsOfInterest";
32
+ const _POIo = "PointOfInterest";
33
+ const _PR = "ParticipantRole";
34
+ const _RCAS = "RealtimeContactAnalysisSegment";
35
+ const _RCASe = "RealtimeContactAnalysisSegments";
36
+ const _RNFE = "ResourceNotFoundException";
37
+ const _S = "Segments";
38
+ const _Se = "Sentiment";
39
+ const _St = "Status";
40
+ const _T = "Transcript";
41
+ const _TE = "ThrottlingException";
42
+ const _c = "client";
43
+ const _e = "error";
44
+ const _h = "http";
45
+ const _hE = "httpError";
46
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.connectcontactlens";
47
+ const _se = "server";
48
+ const n0 = "com.amazonaws.connectcontactlens";
49
+ const schema_1 = require("@smithy/core/schema");
50
+ const ConnectContactLensServiceException_1 = require("../models/ConnectContactLensServiceException");
51
+ const errors_1 = require("../models/errors");
52
+ const _s_registry = schema_1.TypeRegistry.for(_s);
53
+ exports.ConnectContactLensServiceException$ = [-3, _s, "ConnectContactLensServiceException", 0, [], []];
54
+ _s_registry.registerError(exports.ConnectContactLensServiceException$, ConnectContactLensServiceException_1.ConnectContactLensServiceException);
55
+ const n0_registry = schema_1.TypeRegistry.for(n0);
56
+ exports.AccessDeniedException$ = [-3, n0, _ADE,
57
+ { [_e]: _c, [_hE]: 403 },
58
+ [_M],
59
+ [0], 1
60
+ ];
61
+ n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
62
+ exports.InternalServiceException$ = [-3, n0, _ISE,
63
+ { [_e]: _se, [_hE]: 500 },
64
+ [_M],
65
+ [0]
66
+ ];
67
+ n0_registry.registerError(exports.InternalServiceException$, errors_1.InternalServiceException);
68
+ exports.InvalidRequestException$ = [-3, n0, _IRE,
69
+ { [_e]: _c, [_hE]: 400 },
70
+ [_M],
71
+ [0]
72
+ ];
73
+ n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
74
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
75
+ { [_e]: _c, [_hE]: 404 },
76
+ [_M],
77
+ [0]
78
+ ];
79
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
80
+ exports.ThrottlingException$ = [-3, n0, _TE,
81
+ { [_e]: _c, [_hE]: 429 },
82
+ [_M],
83
+ [0], 1
84
+ ];
85
+ n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
86
+ exports.errorTypeRegistries = [
87
+ _s_registry,
88
+ n0_registry,
89
+ ];
90
+ exports.Categories$ = [3, n0, _C,
91
+ 0,
92
+ [_MC, _MD],
93
+ [64 | 0, () => MatchedDetails], 2
94
+ ];
95
+ exports.CategoryDetails$ = [3, n0, _CD,
96
+ 0,
97
+ [_POI],
98
+ [() => PointsOfInterest], 1
99
+ ];
100
+ exports.CharacterOffsets$ = [3, n0, _CO,
101
+ 0,
102
+ [_BOC, _EOC],
103
+ [1, 1], 2
104
+ ];
105
+ exports.IssueDetected$ = [3, n0, _ID,
106
+ 0,
107
+ [_CO],
108
+ [() => exports.CharacterOffsets$], 1
109
+ ];
110
+ exports.ListRealtimeContactAnalysisSegmentsRequest$ = [3, n0, _LRCASR,
111
+ 0,
112
+ [_II, _CI, _MR, _NT],
113
+ [0, 0, 1, 0], 2
114
+ ];
115
+ exports.ListRealtimeContactAnalysisSegmentsResponse$ = [3, n0, _LRCASRi,
116
+ 0,
117
+ [_S, _NT],
118
+ [() => RealtimeContactAnalysisSegments, 0], 1
119
+ ];
120
+ exports.PointOfInterest$ = [3, n0, _POIo,
121
+ 0,
122
+ [_BOM, _EOM],
123
+ [1, 1], 2
124
+ ];
125
+ exports.PostContactSummary$ = [3, n0, _PCS,
126
+ 0,
127
+ [_St, _Co, _FC],
128
+ [0, 0, 0], 1
129
+ ];
130
+ exports.RealtimeContactAnalysisSegment$ = [3, n0, _RCAS,
131
+ 0,
132
+ [_T, _C, _PCS],
133
+ [() => exports.Transcript$, () => exports.Categories$, () => exports.PostContactSummary$]
134
+ ];
135
+ exports.Transcript$ = [3, n0, _T,
136
+ 0,
137
+ [_I, _PI, _PR, _Co, _BOM, _EOM, _Se, _IDs],
138
+ [0, 0, 0, 0, 1, 1, 0, () => IssuesDetected], 6
139
+ ];
140
+ var IssuesDetected = [1, n0, _IDs,
141
+ 0, () => exports.IssueDetected$
142
+ ];
143
+ var MatchedCategories = 64 | 0;
144
+ var PointsOfInterest = [1, n0, _POI,
145
+ 0, () => exports.PointOfInterest$
146
+ ];
147
+ var RealtimeContactAnalysisSegments = [1, n0, _RCASe,
148
+ 0, () => exports.RealtimeContactAnalysisSegment$
149
+ ];
150
+ var MatchedDetails = [2, n0, _MD,
151
+ 0, 0, () => exports.CategoryDetails$
152
+ ];
153
+ exports.ListRealtimeContactAnalysisSegments$ = [9, n0, _LRCAS,
154
+ { [_h]: ["POST", "/realtime-contact-analysis/analysis-segments", 200] }, () => exports.ListRealtimeContactAnalysisSegmentsRequest$, () => exports.ListRealtimeContactAnalysisSegmentsResponse$
155
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultConnectContactLensHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2020-08-21",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.connectcontactlens",
30
+ errorTypeRegistries,
29
31
  version: "2020-08-21",
30
32
  serviceTarget: "AmazonConnectContactLens",
31
33
  },
@@ -40,18 +40,50 @@ const _c = "client";
40
40
  const _e = "error";
41
41
  const _h = "http";
42
42
  const _hE = "httpError";
43
- const _s = "server";
44
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.connectcontactlens";
43
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.connectcontactlens";
44
+ const _se = "server";
45
45
  const n0 = "com.amazonaws.connectcontactlens";
46
46
  import { TypeRegistry } from "@smithy/core/schema";
47
47
  import { ConnectContactLensServiceException } from "../models/ConnectContactLensServiceException";
48
48
  import { AccessDeniedException, InternalServiceException, InvalidRequestException, ResourceNotFoundException, ThrottlingException, } from "../models/errors";
49
+ const _s_registry = TypeRegistry.for(_s);
50
+ export var ConnectContactLensServiceException$ = [-3, _s, "ConnectContactLensServiceException", 0, [], []];
51
+ _s_registry.registerError(ConnectContactLensServiceException$, ConnectContactLensServiceException);
52
+ const n0_registry = TypeRegistry.for(n0);
49
53
  export var AccessDeniedException$ = [-3, n0, _ADE,
50
54
  { [_e]: _c, [_hE]: 403 },
51
55
  [_M],
52
56
  [0], 1
53
57
  ];
54
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
58
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
59
+ export var InternalServiceException$ = [-3, n0, _ISE,
60
+ { [_e]: _se, [_hE]: 500 },
61
+ [_M],
62
+ [0]
63
+ ];
64
+ n0_registry.registerError(InternalServiceException$, InternalServiceException);
65
+ export var InvalidRequestException$ = [-3, n0, _IRE,
66
+ { [_e]: _c, [_hE]: 400 },
67
+ [_M],
68
+ [0]
69
+ ];
70
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
71
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
72
+ { [_e]: _c, [_hE]: 404 },
73
+ [_M],
74
+ [0]
75
+ ];
76
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
77
+ export var ThrottlingException$ = [-3, n0, _TE,
78
+ { [_e]: _c, [_hE]: 429 },
79
+ [_M],
80
+ [0], 1
81
+ ];
82
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
83
+ export const errorTypeRegistries = [
84
+ _s_registry,
85
+ n0_registry,
86
+ ];
55
87
  export var Categories$ = [3, n0, _C,
56
88
  0,
57
89
  [_MC, _MD],
@@ -67,18 +99,6 @@ export var CharacterOffsets$ = [3, n0, _CO,
67
99
  [_BOC, _EOC],
68
100
  [1, 1], 2
69
101
  ];
70
- export var InternalServiceException$ = [-3, n0, _ISE,
71
- { [_e]: _s, [_hE]: 500 },
72
- [_M],
73
- [0]
74
- ];
75
- TypeRegistry.for(n0).registerError(InternalServiceException$, InternalServiceException);
76
- export var InvalidRequestException$ = [-3, n0, _IRE,
77
- { [_e]: _c, [_hE]: 400 },
78
- [_M],
79
- [0]
80
- ];
81
- TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
82
102
  export var IssueDetected$ = [3, n0, _ID,
83
103
  0,
84
104
  [_CO],
@@ -109,25 +129,11 @@ export var RealtimeContactAnalysisSegment$ = [3, n0, _RCAS,
109
129
  [_T, _C, _PCS],
110
130
  [() => Transcript$, () => Categories$, () => PostContactSummary$]
111
131
  ];
112
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
113
- { [_e]: _c, [_hE]: 404 },
114
- [_M],
115
- [0]
116
- ];
117
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
118
- export var ThrottlingException$ = [-3, n0, _TE,
119
- { [_e]: _c, [_hE]: 429 },
120
- [_M],
121
- [0], 1
122
- ];
123
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
124
132
  export var Transcript$ = [3, n0, _T,
125
133
  0,
126
134
  [_I, _PI, _PR, _Co, _BOM, _EOM, _Se, _IDs],
127
135
  [0, 0, 0, 0, 1, 1, 0, () => IssuesDetected], 6
128
136
  ];
129
- export var ConnectContactLensServiceException$ = [-3, _sm, "ConnectContactLensServiceException", 0, [], []];
130
- TypeRegistry.for(_sm).registerError(ConnectContactLensServiceException$, ConnectContactLensServiceException);
131
137
  var IssuesDetected = [1, n0, _IDs,
132
138
  0, () => IssueDetected$
133
139
  ];
@@ -1,18 +1,25 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var ConnectContactLensServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var InternalServiceException$: StaticErrorSchema;
6
+ export declare var InvalidRequestException$: StaticErrorSchema;
7
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
8
+ export declare var ThrottlingException$: StaticErrorSchema;
9
+ /**
10
+ * TypeRegistry instances containing modeled errors.
11
+ * @internal
12
+ *
13
+ */
14
+ export declare const errorTypeRegistries: TypeRegistry[];
3
15
  export declare var Categories$: StaticStructureSchema;
4
16
  export declare var CategoryDetails$: StaticStructureSchema;
5
17
  export declare var CharacterOffsets$: StaticStructureSchema;
6
- export declare var InternalServiceException$: StaticErrorSchema;
7
- export declare var InvalidRequestException$: StaticErrorSchema;
8
18
  export declare var IssueDetected$: StaticStructureSchema;
9
19
  export declare var ListRealtimeContactAnalysisSegmentsRequest$: StaticStructureSchema;
10
20
  export declare var ListRealtimeContactAnalysisSegmentsResponse$: StaticStructureSchema;
11
21
  export declare var PointOfInterest$: StaticStructureSchema;
12
22
  export declare var PostContactSummary$: StaticStructureSchema;
13
23
  export declare var RealtimeContactAnalysisSegment$: StaticStructureSchema;
14
- export declare var ResourceNotFoundException$: StaticErrorSchema;
15
- export declare var ThrottlingException$: StaticErrorSchema;
16
24
  export declare var Transcript$: StaticStructureSchema;
17
- export declare var ConnectContactLensServiceException$: StaticErrorSchema;
18
25
  export declare var ListRealtimeContactAnalysisSegments$: StaticOperationSchema;
@@ -1,22 +1,24 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var ConnectContactLensServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
9
+ export declare var InternalServiceException$: StaticErrorSchema;
10
+ export declare var InvalidRequestException$: StaticErrorSchema;
11
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
12
+ export declare var ThrottlingException$: StaticErrorSchema;
13
+ export declare const errorTypeRegistries: TypeRegistry[];
7
14
  export declare var Categories$: StaticStructureSchema;
8
15
  export declare var CategoryDetails$: StaticStructureSchema;
9
16
  export declare var CharacterOffsets$: StaticStructureSchema;
10
- export declare var InternalServiceException$: StaticErrorSchema;
11
- export declare var InvalidRequestException$: StaticErrorSchema;
12
17
  export declare var IssueDetected$: StaticStructureSchema;
13
18
  export declare var ListRealtimeContactAnalysisSegmentsRequest$: StaticStructureSchema;
14
19
  export declare var ListRealtimeContactAnalysisSegmentsResponse$: StaticStructureSchema;
15
20
  export declare var PointOfInterest$: StaticStructureSchema;
16
21
  export declare var PostContactSummary$: StaticStructureSchema;
17
22
  export declare var RealtimeContactAnalysisSegment$: StaticStructureSchema;
18
- export declare var ResourceNotFoundException$: StaticErrorSchema;
19
- export declare var ThrottlingException$: StaticErrorSchema;
20
23
  export declare var Transcript$: StaticStructureSchema;
21
- export declare var ConnectContactLensServiceException$: StaticErrorSchema;
22
24
  export declare var ListRealtimeContactAnalysisSegments$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connect-contact-lens",
3
3
  "description": "AWS SDK for JavaScript Connect Contact Lens Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.989.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-connect-contact-lens",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.9",
25
+ "@aws-sdk/credential-provider-node": "^3.972.8",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.9",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.989.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",