@aws-sdk/client-mediastore-data 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 MediaStoreDataServiceException = require('./models/MediaStoreDataServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,229 +113,6 @@ class MediaStoreDataClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
113
- class MediaStoreDataServiceException extends smithyClient.ServiceException {
114
- constructor(options) {
115
- super(options);
116
- Object.setPrototypeOf(this, MediaStoreDataServiceException.prototype);
117
- }
118
- }
119
-
120
- class ContainerNotFoundException extends MediaStoreDataServiceException {
121
- name = "ContainerNotFoundException";
122
- $fault = "client";
123
- Message;
124
- constructor(opts) {
125
- super({
126
- name: "ContainerNotFoundException",
127
- $fault: "client",
128
- ...opts,
129
- });
130
- Object.setPrototypeOf(this, ContainerNotFoundException.prototype);
131
- this.Message = opts.Message;
132
- }
133
- }
134
- class InternalServerError extends MediaStoreDataServiceException {
135
- name = "InternalServerError";
136
- $fault = "server";
137
- Message;
138
- constructor(opts) {
139
- super({
140
- name: "InternalServerError",
141
- $fault: "server",
142
- ...opts,
143
- });
144
- Object.setPrototypeOf(this, InternalServerError.prototype);
145
- this.Message = opts.Message;
146
- }
147
- }
148
- class ObjectNotFoundException extends MediaStoreDataServiceException {
149
- name = "ObjectNotFoundException";
150
- $fault = "client";
151
- Message;
152
- constructor(opts) {
153
- super({
154
- name: "ObjectNotFoundException",
155
- $fault: "client",
156
- ...opts,
157
- });
158
- Object.setPrototypeOf(this, ObjectNotFoundException.prototype);
159
- this.Message = opts.Message;
160
- }
161
- }
162
- class RequestedRangeNotSatisfiableException extends MediaStoreDataServiceException {
163
- name = "RequestedRangeNotSatisfiableException";
164
- $fault = "client";
165
- Message;
166
- constructor(opts) {
167
- super({
168
- name: "RequestedRangeNotSatisfiableException",
169
- $fault: "client",
170
- ...opts,
171
- });
172
- Object.setPrototypeOf(this, RequestedRangeNotSatisfiableException.prototype);
173
- this.Message = opts.Message;
174
- }
175
- }
176
-
177
- const _B = "Body";
178
- const _CC = "CacheControl";
179
- const _CC_ = "Cache-Control";
180
- const _CL = "ContentLength";
181
- const _CL_ = "Content-Length";
182
- const _CNFE = "ContainerNotFoundException";
183
- const _CR = "ContentRange";
184
- const _CR_ = "Content-Range";
185
- const _CSHA = "ContentSHA256";
186
- const _CT = "ContentType";
187
- const _CT_ = "Content-Type";
188
- const _DO = "DeleteObject";
189
- const _DOR = "DeleteObjectRequest";
190
- const _DORe = "DeleteObjectResponse";
191
- const _DORes = "DescribeObjectRequest";
192
- const _DOResc = "DescribeObjectResponse";
193
- const _DOe = "DescribeObject";
194
- const _ET = "ETag";
195
- const _GO = "GetObject";
196
- const _GOR = "GetObjectRequest";
197
- const _GORe = "GetObjectResponse";
198
- const _I = "Item";
199
- const _IL = "ItemList";
200
- const _ISE = "InternalServerError";
201
- const _It = "Items";
202
- const _LI = "ListItems";
203
- const _LIR = "ListItemsRequest";
204
- const _LIRi = "ListItemsResponse";
205
- const _LM = "LastModified";
206
- const _LM_ = "Last-Modified";
207
- const _M = "Message";
208
- const _MR = "MaxResults";
209
- const _N = "Name";
210
- const _NT = "NextToken";
211
- const _ONFE = "ObjectNotFoundException";
212
- const _P = "Path";
213
- const _PB = "PayloadBlob";
214
- const _PO = "PutObject";
215
- const _POR = "PutObjectRequest";
216
- const _PORu = "PutObjectResponse";
217
- const _R = "Range";
218
- const _RRNSE = "RequestedRangeNotSatisfiableException";
219
- const _SC = "StatusCode";
220
- const _SCt = "StorageClass";
221
- const _T = "Type";
222
- const _UA = "UploadAvailability";
223
- const _c = "client";
224
- const _e = "error";
225
- const _h = "http";
226
- const _hE = "httpError";
227
- const _hH = "httpHeader";
228
- const _hQ = "httpQuery";
229
- const _s = "streaming";
230
- const _se = "server";
231
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.mediastoredata";
232
- const _xasc = "x-amz-storage-class";
233
- const _xaua = "x-amz-upload-availability";
234
- const n0 = "com.amazonaws.mediastoredata";
235
- var PayloadBlob = [0, n0, _PB, { [_s]: 1 }, 42];
236
- var ContainerNotFoundException$ = [-3, n0, _CNFE,
237
- { [_e]: _c, [_hE]: 404 },
238
- [_M],
239
- [0]
240
- ];
241
- schema.TypeRegistry.for(n0).registerError(ContainerNotFoundException$, ContainerNotFoundException);
242
- var DeleteObjectRequest$ = [3, n0, _DOR,
243
- 0,
244
- [_P],
245
- [[0, 1]], 1
246
- ];
247
- var DeleteObjectResponse$ = [3, n0, _DORe,
248
- 0,
249
- [],
250
- []
251
- ];
252
- var DescribeObjectRequest$ = [3, n0, _DORes,
253
- 0,
254
- [_P],
255
- [[0, 1]], 1
256
- ];
257
- var DescribeObjectResponse$ = [3, n0, _DOResc,
258
- 0,
259
- [_ET, _CT, _CL, _CC, _LM],
260
- [[0, { [_hH]: _ET }], [0, { [_hH]: _CT_ }], [1, { [_hH]: _CL_ }], [0, { [_hH]: _CC_ }], [4, { [_hH]: _LM_ }]]
261
- ];
262
- var GetObjectRequest$ = [3, n0, _GOR,
263
- 0,
264
- [_P, _R],
265
- [[0, 1], [0, { [_hH]: _R }]], 1
266
- ];
267
- var GetObjectResponse$ = [3, n0, _GORe,
268
- 0,
269
- [_SC, _B, _CC, _CR, _CL, _CT, _ET, _LM],
270
- [[1, 32], [() => PayloadBlob, 16], [0, { [_hH]: _CC_ }], [0, { [_hH]: _CR_ }], [1, { [_hH]: _CL_ }], [0, { [_hH]: _CT_ }], [0, { [_hH]: _ET }], [4, { [_hH]: _LM_ }]], 1
271
- ];
272
- var InternalServerError$ = [-3, n0, _ISE,
273
- { [_e]: _se },
274
- [_M],
275
- [0]
276
- ];
277
- schema.TypeRegistry.for(n0).registerError(InternalServerError$, InternalServerError);
278
- var Item$ = [3, n0, _I,
279
- 0,
280
- [_N, _T, _ET, _LM, _CT, _CL],
281
- [0, 0, 0, 4, 0, 1]
282
- ];
283
- var ListItemsRequest$ = [3, n0, _LIR,
284
- 0,
285
- [_P, _MR, _NT],
286
- [[0, { [_hQ]: _P }], [1, { [_hQ]: _MR }], [0, { [_hQ]: _NT }]]
287
- ];
288
- var ListItemsResponse$ = [3, n0, _LIRi,
289
- 0,
290
- [_It, _NT],
291
- [() => ItemList, 0]
292
- ];
293
- var ObjectNotFoundException$ = [-3, n0, _ONFE,
294
- { [_e]: _c, [_hE]: 404 },
295
- [_M],
296
- [0]
297
- ];
298
- schema.TypeRegistry.for(n0).registerError(ObjectNotFoundException$, ObjectNotFoundException);
299
- var PutObjectRequest$ = [3, n0, _POR,
300
- 0,
301
- [_B, _P, _CT, _CC, _SCt, _UA],
302
- [[() => PayloadBlob, 16], [0, 1], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _xasc }], [0, { [_hH]: _xaua }]], 2
303
- ];
304
- var PutObjectResponse$ = [3, n0, _PORu,
305
- 0,
306
- [_CSHA, _ET, _SCt],
307
- [0, 0, 0]
308
- ];
309
- var RequestedRangeNotSatisfiableException$ = [-3, n0, _RRNSE,
310
- { [_e]: _c, [_hE]: 416 },
311
- [_M],
312
- [0]
313
- ];
314
- schema.TypeRegistry.for(n0).registerError(RequestedRangeNotSatisfiableException$, RequestedRangeNotSatisfiableException);
315
- var MediaStoreDataServiceException$ = [-3, _sm, "MediaStoreDataServiceException", 0, [], []];
316
- schema.TypeRegistry.for(_sm).registerError(MediaStoreDataServiceException$, MediaStoreDataServiceException);
317
- var ItemList = [1, n0, _IL,
318
- 0, () => Item$
319
- ];
320
- var DeleteObject$ = [9, n0, _DO,
321
- { [_h]: ["DELETE", "/{Path+}", 200] }, () => DeleteObjectRequest$, () => DeleteObjectResponse$
322
- ];
323
- var DescribeObject$ = [9, n0, _DOe,
324
- { [_h]: ["HEAD", "/{Path+}", 200] }, () => DescribeObjectRequest$, () => DescribeObjectResponse$
325
- ];
326
- var GetObject$ = [9, n0, _GO,
327
- { [_h]: ["GET", "/{Path+}", 200] }, () => GetObjectRequest$, () => GetObjectResponse$
328
- ];
329
- var ListItems$ = [9, n0, _LI,
330
- { [_h]: ["GET", "/", 200] }, () => ListItemsRequest$, () => ListItemsResponse$
331
- ];
332
- var PutObject$ = [9, n0, _PO,
333
- { [_h]: ["PUT", "/{Path+}", 200] }, () => PutObjectRequest$, () => PutObjectResponse$
334
- ];
335
-
336
116
  class DeleteObjectCommand extends smithyClient.Command
337
117
  .classBuilder()
338
118
  .ep(commonParams)
@@ -341,7 +121,7 @@ class DeleteObjectCommand extends smithyClient.Command
341
121
  })
342
122
  .s("MediaStoreObject_20170901", "DeleteObject", {})
343
123
  .n("MediaStoreDataClient", "DeleteObjectCommand")
344
- .sc(DeleteObject$)
124
+ .sc(schemas_0.DeleteObject$)
345
125
  .build() {
346
126
  }
347
127
 
@@ -353,7 +133,7 @@ class DescribeObjectCommand extends smithyClient.Command
353
133
  })
354
134
  .s("MediaStoreObject_20170901", "DescribeObject", {})
355
135
  .n("MediaStoreDataClient", "DescribeObjectCommand")
356
- .sc(DescribeObject$)
136
+ .sc(schemas_0.DescribeObject$)
357
137
  .build() {
358
138
  }
359
139
 
@@ -365,7 +145,7 @@ class GetObjectCommand extends smithyClient.Command
365
145
  })
366
146
  .s("MediaStoreObject_20170901", "GetObject", {})
367
147
  .n("MediaStoreDataClient", "GetObjectCommand")
368
- .sc(GetObject$)
148
+ .sc(schemas_0.GetObject$)
369
149
  .build() {
370
150
  }
371
151
 
@@ -377,7 +157,7 @@ class ListItemsCommand extends smithyClient.Command
377
157
  })
378
158
  .s("MediaStoreObject_20170901", "ListItems", {})
379
159
  .n("MediaStoreDataClient", "ListItemsCommand")
380
- .sc(ListItems$)
160
+ .sc(schemas_0.ListItems$)
381
161
  .build() {
382
162
  }
383
163
 
@@ -389,7 +169,7 @@ class PutObjectCommand extends smithyClient.Command
389
169
  })
390
170
  .s("MediaStoreObject_20170901", "PutObject", {})
391
171
  .n("MediaStoreDataClient", "PutObjectCommand")
392
- .sc(PutObject$)
172
+ .sc(schemas_0.PutObject$)
393
173
  .build() {
394
174
  }
395
175
 
@@ -429,40 +209,30 @@ Object.defineProperty(exports, "__Client", {
429
209
  enumerable: true,
430
210
  get: function () { return smithyClient.Client; }
431
211
  });
432
- exports.ContainerNotFoundException = ContainerNotFoundException;
433
- exports.ContainerNotFoundException$ = ContainerNotFoundException$;
434
- exports.DeleteObject$ = DeleteObject$;
212
+ Object.defineProperty(exports, "MediaStoreDataServiceException", {
213
+ enumerable: true,
214
+ get: function () { return MediaStoreDataServiceException.MediaStoreDataServiceException; }
215
+ });
435
216
  exports.DeleteObjectCommand = DeleteObjectCommand;
436
- exports.DeleteObjectRequest$ = DeleteObjectRequest$;
437
- exports.DeleteObjectResponse$ = DeleteObjectResponse$;
438
- exports.DescribeObject$ = DescribeObject$;
439
217
  exports.DescribeObjectCommand = DescribeObjectCommand;
440
- exports.DescribeObjectRequest$ = DescribeObjectRequest$;
441
- exports.DescribeObjectResponse$ = DescribeObjectResponse$;
442
- exports.GetObject$ = GetObject$;
443
218
  exports.GetObjectCommand = GetObjectCommand;
444
- exports.GetObjectRequest$ = GetObjectRequest$;
445
- exports.GetObjectResponse$ = GetObjectResponse$;
446
- exports.InternalServerError = InternalServerError;
447
- exports.InternalServerError$ = InternalServerError$;
448
- exports.Item$ = Item$;
449
219
  exports.ItemType = ItemType;
450
- exports.ListItems$ = ListItems$;
451
220
  exports.ListItemsCommand = ListItemsCommand;
452
- exports.ListItemsRequest$ = ListItemsRequest$;
453
- exports.ListItemsResponse$ = ListItemsResponse$;
454
221
  exports.MediaStoreData = MediaStoreData;
455
222
  exports.MediaStoreDataClient = MediaStoreDataClient;
456
- exports.MediaStoreDataServiceException = MediaStoreDataServiceException;
457
- exports.MediaStoreDataServiceException$ = MediaStoreDataServiceException$;
458
- exports.ObjectNotFoundException = ObjectNotFoundException;
459
- exports.ObjectNotFoundException$ = ObjectNotFoundException$;
460
- exports.PutObject$ = PutObject$;
461
223
  exports.PutObjectCommand = PutObjectCommand;
462
- exports.PutObjectRequest$ = PutObjectRequest$;
463
- exports.PutObjectResponse$ = PutObjectResponse$;
464
- exports.RequestedRangeNotSatisfiableException = RequestedRangeNotSatisfiableException;
465
- exports.RequestedRangeNotSatisfiableException$ = RequestedRangeNotSatisfiableException$;
466
224
  exports.StorageClass = StorageClass;
467
225
  exports.UploadAvailability = UploadAvailability;
468
226
  exports.paginateListItems = paginateListItems;
227
+ Object.keys(schemas_0).forEach(function (k) {
228
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
229
+ enumerable: true,
230
+ get: function () { return schemas_0[k]; }
231
+ });
232
+ });
233
+ Object.keys(errors).forEach(function (k) {
234
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
235
+ enumerable: true,
236
+ get: function () { return errors[k]; }
237
+ });
238
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MediaStoreDataServiceException = 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 MediaStoreDataServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, MediaStoreDataServiceException.prototype);
10
+ }
11
+ }
12
+ exports.MediaStoreDataServiceException = MediaStoreDataServiceException;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RequestedRangeNotSatisfiableException = exports.ObjectNotFoundException = exports.InternalServerError = exports.ContainerNotFoundException = void 0;
4
+ const MediaStoreDataServiceException_1 = require("./MediaStoreDataServiceException");
5
+ class ContainerNotFoundException extends MediaStoreDataServiceException_1.MediaStoreDataServiceException {
6
+ name = "ContainerNotFoundException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "ContainerNotFoundException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, ContainerNotFoundException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.ContainerNotFoundException = ContainerNotFoundException;
20
+ class InternalServerError extends MediaStoreDataServiceException_1.MediaStoreDataServiceException {
21
+ name = "InternalServerError";
22
+ $fault = "server";
23
+ Message;
24
+ constructor(opts) {
25
+ super({
26
+ name: "InternalServerError",
27
+ $fault: "server",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, InternalServerError.prototype);
31
+ this.Message = opts.Message;
32
+ }
33
+ }
34
+ exports.InternalServerError = InternalServerError;
35
+ class ObjectNotFoundException extends MediaStoreDataServiceException_1.MediaStoreDataServiceException {
36
+ name = "ObjectNotFoundException";
37
+ $fault = "client";
38
+ Message;
39
+ constructor(opts) {
40
+ super({
41
+ name: "ObjectNotFoundException",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, ObjectNotFoundException.prototype);
46
+ this.Message = opts.Message;
47
+ }
48
+ }
49
+ exports.ObjectNotFoundException = ObjectNotFoundException;
50
+ class RequestedRangeNotSatisfiableException extends MediaStoreDataServiceException_1.MediaStoreDataServiceException {
51
+ name = "RequestedRangeNotSatisfiableException";
52
+ $fault = "client";
53
+ Message;
54
+ constructor(opts) {
55
+ super({
56
+ name: "RequestedRangeNotSatisfiableException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, RequestedRangeNotSatisfiableException.prototype);
61
+ this.Message = opts.Message;
62
+ }
63
+ }
64
+ exports.RequestedRangeNotSatisfiableException = RequestedRangeNotSatisfiableException;
@@ -10,6 +10,7 @@ const util_stream_1 = require("@smithy/util-stream");
10
10
  const util_utf8_1 = require("@smithy/util-utf8");
11
11
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
12
  const endpointResolver_1 = require("./endpoint/endpointResolver");
13
+ const schemas_0_1 = require("./schemas/schemas_0");
13
14
  const getRuntimeConfig = (config) => {
14
15
  return {
15
16
  apiVersion: "2017-09-01",
@@ -30,6 +31,7 @@ const getRuntimeConfig = (config) => {
30
31
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
31
32
  protocolSettings: config?.protocolSettings ?? {
32
33
  defaultNamespace: "com.amazonaws.mediastoredata",
34
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
33
35
  xmlNamespace: "https://object.mediastore.amazonaws.com/doc/2017-09-01",
34
36
  version: "2017-09-01",
35
37
  serviceTarget: "MediaStoreObject_20170901",
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PutObject$ = exports.ListItems$ = exports.GetObject$ = exports.DescribeObject$ = exports.DeleteObject$ = exports.PutObjectResponse$ = exports.PutObjectRequest$ = exports.ListItemsResponse$ = exports.ListItemsRequest$ = exports.Item$ = exports.GetObjectResponse$ = exports.GetObjectRequest$ = exports.DescribeObjectResponse$ = exports.DescribeObjectRequest$ = exports.DeleteObjectResponse$ = exports.DeleteObjectRequest$ = exports.errorTypeRegistries = exports.RequestedRangeNotSatisfiableException$ = exports.ObjectNotFoundException$ = exports.InternalServerError$ = exports.ContainerNotFoundException$ = exports.MediaStoreDataServiceException$ = void 0;
4
+ const _B = "Body";
5
+ const _CC = "CacheControl";
6
+ const _CC_ = "Cache-Control";
7
+ const _CL = "ContentLength";
8
+ const _CL_ = "Content-Length";
9
+ const _CNFE = "ContainerNotFoundException";
10
+ const _CR = "ContentRange";
11
+ const _CR_ = "Content-Range";
12
+ const _CSHA = "ContentSHA256";
13
+ const _CT = "ContentType";
14
+ const _CT_ = "Content-Type";
15
+ const _DO = "DeleteObject";
16
+ const _DOR = "DeleteObjectRequest";
17
+ const _DORe = "DeleteObjectResponse";
18
+ const _DORes = "DescribeObjectRequest";
19
+ const _DOResc = "DescribeObjectResponse";
20
+ const _DOe = "DescribeObject";
21
+ const _ET = "ETag";
22
+ const _GO = "GetObject";
23
+ const _GOR = "GetObjectRequest";
24
+ const _GORe = "GetObjectResponse";
25
+ const _I = "Item";
26
+ const _IL = "ItemList";
27
+ const _ISE = "InternalServerError";
28
+ const _It = "Items";
29
+ const _LI = "ListItems";
30
+ const _LIR = "ListItemsRequest";
31
+ const _LIRi = "ListItemsResponse";
32
+ const _LM = "LastModified";
33
+ const _LM_ = "Last-Modified";
34
+ const _M = "Message";
35
+ const _MR = "MaxResults";
36
+ const _N = "Name";
37
+ const _NT = "NextToken";
38
+ const _ONFE = "ObjectNotFoundException";
39
+ const _P = "Path";
40
+ const _PB = "PayloadBlob";
41
+ const _PO = "PutObject";
42
+ const _POR = "PutObjectRequest";
43
+ const _PORu = "PutObjectResponse";
44
+ const _R = "Range";
45
+ const _RRNSE = "RequestedRangeNotSatisfiableException";
46
+ const _SC = "StatusCode";
47
+ const _SCt = "StorageClass";
48
+ const _T = "Type";
49
+ const _UA = "UploadAvailability";
50
+ const _c = "client";
51
+ const _e = "error";
52
+ const _h = "http";
53
+ const _hE = "httpError";
54
+ const _hH = "httpHeader";
55
+ const _hQ = "httpQuery";
56
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.mediastoredata";
57
+ const _se = "server";
58
+ const _st = "streaming";
59
+ const _xasc = "x-amz-storage-class";
60
+ const _xaua = "x-amz-upload-availability";
61
+ const n0 = "com.amazonaws.mediastoredata";
62
+ const schema_1 = require("@smithy/core/schema");
63
+ const errors_1 = require("../models/errors");
64
+ const MediaStoreDataServiceException_1 = require("../models/MediaStoreDataServiceException");
65
+ const _s_registry = schema_1.TypeRegistry.for(_s);
66
+ exports.MediaStoreDataServiceException$ = [-3, _s, "MediaStoreDataServiceException", 0, [], []];
67
+ _s_registry.registerError(exports.MediaStoreDataServiceException$, MediaStoreDataServiceException_1.MediaStoreDataServiceException);
68
+ const n0_registry = schema_1.TypeRegistry.for(n0);
69
+ exports.ContainerNotFoundException$ = [-3, n0, _CNFE,
70
+ { [_e]: _c, [_hE]: 404 },
71
+ [_M],
72
+ [0]
73
+ ];
74
+ n0_registry.registerError(exports.ContainerNotFoundException$, errors_1.ContainerNotFoundException);
75
+ exports.InternalServerError$ = [-3, n0, _ISE,
76
+ { [_e]: _se },
77
+ [_M],
78
+ [0]
79
+ ];
80
+ n0_registry.registerError(exports.InternalServerError$, errors_1.InternalServerError);
81
+ exports.ObjectNotFoundException$ = [-3, n0, _ONFE,
82
+ { [_e]: _c, [_hE]: 404 },
83
+ [_M],
84
+ [0]
85
+ ];
86
+ n0_registry.registerError(exports.ObjectNotFoundException$, errors_1.ObjectNotFoundException);
87
+ exports.RequestedRangeNotSatisfiableException$ = [-3, n0, _RRNSE,
88
+ { [_e]: _c, [_hE]: 416 },
89
+ [_M],
90
+ [0]
91
+ ];
92
+ n0_registry.registerError(exports.RequestedRangeNotSatisfiableException$, errors_1.RequestedRangeNotSatisfiableException);
93
+ exports.errorTypeRegistries = [
94
+ _s_registry,
95
+ n0_registry,
96
+ ];
97
+ var PayloadBlob = [0, n0, _PB, { [_st]: 1 }, 42];
98
+ exports.DeleteObjectRequest$ = [3, n0, _DOR,
99
+ 0,
100
+ [_P],
101
+ [[0, 1]], 1
102
+ ];
103
+ exports.DeleteObjectResponse$ = [3, n0, _DORe,
104
+ 0,
105
+ [],
106
+ []
107
+ ];
108
+ exports.DescribeObjectRequest$ = [3, n0, _DORes,
109
+ 0,
110
+ [_P],
111
+ [[0, 1]], 1
112
+ ];
113
+ exports.DescribeObjectResponse$ = [3, n0, _DOResc,
114
+ 0,
115
+ [_ET, _CT, _CL, _CC, _LM],
116
+ [[0, { [_hH]: _ET }], [0, { [_hH]: _CT_ }], [1, { [_hH]: _CL_ }], [0, { [_hH]: _CC_ }], [4, { [_hH]: _LM_ }]]
117
+ ];
118
+ exports.GetObjectRequest$ = [3, n0, _GOR,
119
+ 0,
120
+ [_P, _R],
121
+ [[0, 1], [0, { [_hH]: _R }]], 1
122
+ ];
123
+ exports.GetObjectResponse$ = [3, n0, _GORe,
124
+ 0,
125
+ [_SC, _B, _CC, _CR, _CL, _CT, _ET, _LM],
126
+ [[1, 32], [() => PayloadBlob, 16], [0, { [_hH]: _CC_ }], [0, { [_hH]: _CR_ }], [1, { [_hH]: _CL_ }], [0, { [_hH]: _CT_ }], [0, { [_hH]: _ET }], [4, { [_hH]: _LM_ }]], 1
127
+ ];
128
+ exports.Item$ = [3, n0, _I,
129
+ 0,
130
+ [_N, _T, _ET, _LM, _CT, _CL],
131
+ [0, 0, 0, 4, 0, 1]
132
+ ];
133
+ exports.ListItemsRequest$ = [3, n0, _LIR,
134
+ 0,
135
+ [_P, _MR, _NT],
136
+ [[0, { [_hQ]: _P }], [1, { [_hQ]: _MR }], [0, { [_hQ]: _NT }]]
137
+ ];
138
+ exports.ListItemsResponse$ = [3, n0, _LIRi,
139
+ 0,
140
+ [_It, _NT],
141
+ [() => ItemList, 0]
142
+ ];
143
+ exports.PutObjectRequest$ = [3, n0, _POR,
144
+ 0,
145
+ [_B, _P, _CT, _CC, _SCt, _UA],
146
+ [[() => PayloadBlob, 16], [0, 1], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _xasc }], [0, { [_hH]: _xaua }]], 2
147
+ ];
148
+ exports.PutObjectResponse$ = [3, n0, _PORu,
149
+ 0,
150
+ [_CSHA, _ET, _SCt],
151
+ [0, 0, 0]
152
+ ];
153
+ var ItemList = [1, n0, _IL,
154
+ 0, () => exports.Item$
155
+ ];
156
+ exports.DeleteObject$ = [9, n0, _DO,
157
+ { [_h]: ["DELETE", "/{Path+}", 200] }, () => exports.DeleteObjectRequest$, () => exports.DeleteObjectResponse$
158
+ ];
159
+ exports.DescribeObject$ = [9, n0, _DOe,
160
+ { [_h]: ["HEAD", "/{Path+}", 200] }, () => exports.DescribeObjectRequest$, () => exports.DescribeObjectResponse$
161
+ ];
162
+ exports.GetObject$ = [9, n0, _GO,
163
+ { [_h]: ["GET", "/{Path+}", 200] }, () => exports.GetObjectRequest$, () => exports.GetObjectResponse$
164
+ ];
165
+ exports.ListItems$ = [9, n0, _LI,
166
+ { [_h]: ["GET", "/", 200] }, () => exports.ListItemsRequest$, () => exports.ListItemsResponse$
167
+ ];
168
+ exports.PutObject$ = [9, n0, _PO,
169
+ { [_h]: ["PUT", "/{Path+}", 200] }, () => exports.PutObjectRequest$, () => exports.PutObjectResponse$
170
+ ];
@@ -7,6 +7,7 @@ import { sdkStreamMixin } from "@smithy/util-stream";
7
7
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
8
8
  import { defaultMediaStoreDataHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
9
9
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
10
+ import { errorTypeRegistries } from "./schemas/schemas_0";
10
11
  export const getRuntimeConfig = (config) => {
11
12
  return {
12
13
  apiVersion: "2017-09-01",
@@ -27,6 +28,7 @@ export const getRuntimeConfig = (config) => {
27
28
  protocol: config?.protocol ?? AwsRestJsonProtocol,
28
29
  protocolSettings: config?.protocolSettings ?? {
29
30
  defaultNamespace: "com.amazonaws.mediastoredata",
31
+ errorTypeRegistries,
30
32
  xmlNamespace: "https://object.mediastore.amazonaws.com/doc/2017-09-01",
31
33
  version: "2017-09-01",
32
34
  serviceTarget: "MediaStoreObject_20170901",
@@ -50,22 +50,48 @@ const _h = "http";
50
50
  const _hE = "httpError";
51
51
  const _hH = "httpHeader";
52
52
  const _hQ = "httpQuery";
53
- const _s = "streaming";
53
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.mediastoredata";
54
54
  const _se = "server";
55
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.mediastoredata";
55
+ const _st = "streaming";
56
56
  const _xasc = "x-amz-storage-class";
57
57
  const _xaua = "x-amz-upload-availability";
58
58
  const n0 = "com.amazonaws.mediastoredata";
59
59
  import { TypeRegistry } from "@smithy/core/schema";
60
60
  import { ContainerNotFoundException, InternalServerError, ObjectNotFoundException, RequestedRangeNotSatisfiableException, } from "../models/errors";
61
61
  import { MediaStoreDataServiceException } from "../models/MediaStoreDataServiceException";
62
- var PayloadBlob = [0, n0, _PB, { [_s]: 1 }, 42];
62
+ const _s_registry = TypeRegistry.for(_s);
63
+ export var MediaStoreDataServiceException$ = [-3, _s, "MediaStoreDataServiceException", 0, [], []];
64
+ _s_registry.registerError(MediaStoreDataServiceException$, MediaStoreDataServiceException);
65
+ const n0_registry = TypeRegistry.for(n0);
63
66
  export var ContainerNotFoundException$ = [-3, n0, _CNFE,
64
67
  { [_e]: _c, [_hE]: 404 },
65
68
  [_M],
66
69
  [0]
67
70
  ];
68
- TypeRegistry.for(n0).registerError(ContainerNotFoundException$, ContainerNotFoundException);
71
+ n0_registry.registerError(ContainerNotFoundException$, ContainerNotFoundException);
72
+ export var InternalServerError$ = [-3, n0, _ISE,
73
+ { [_e]: _se },
74
+ [_M],
75
+ [0]
76
+ ];
77
+ n0_registry.registerError(InternalServerError$, InternalServerError);
78
+ export var ObjectNotFoundException$ = [-3, n0, _ONFE,
79
+ { [_e]: _c, [_hE]: 404 },
80
+ [_M],
81
+ [0]
82
+ ];
83
+ n0_registry.registerError(ObjectNotFoundException$, ObjectNotFoundException);
84
+ export var RequestedRangeNotSatisfiableException$ = [-3, n0, _RRNSE,
85
+ { [_e]: _c, [_hE]: 416 },
86
+ [_M],
87
+ [0]
88
+ ];
89
+ n0_registry.registerError(RequestedRangeNotSatisfiableException$, RequestedRangeNotSatisfiableException);
90
+ export const errorTypeRegistries = [
91
+ _s_registry,
92
+ n0_registry,
93
+ ];
94
+ var PayloadBlob = [0, n0, _PB, { [_st]: 1 }, 42];
69
95
  export var DeleteObjectRequest$ = [3, n0, _DOR,
70
96
  0,
71
97
  [_P],
@@ -96,12 +122,6 @@ export var GetObjectResponse$ = [3, n0, _GORe,
96
122
  [_SC, _B, _CC, _CR, _CL, _CT, _ET, _LM],
97
123
  [[1, 32], [() => PayloadBlob, 16], [0, { [_hH]: _CC_ }], [0, { [_hH]: _CR_ }], [1, { [_hH]: _CL_ }], [0, { [_hH]: _CT_ }], [0, { [_hH]: _ET }], [4, { [_hH]: _LM_ }]], 1
98
124
  ];
99
- export var InternalServerError$ = [-3, n0, _ISE,
100
- { [_e]: _se },
101
- [_M],
102
- [0]
103
- ];
104
- TypeRegistry.for(n0).registerError(InternalServerError$, InternalServerError);
105
125
  export var Item$ = [3, n0, _I,
106
126
  0,
107
127
  [_N, _T, _ET, _LM, _CT, _CL],
@@ -117,12 +137,6 @@ export var ListItemsResponse$ = [3, n0, _LIRi,
117
137
  [_It, _NT],
118
138
  [() => ItemList, 0]
119
139
  ];
120
- export var ObjectNotFoundException$ = [-3, n0, _ONFE,
121
- { [_e]: _c, [_hE]: 404 },
122
- [_M],
123
- [0]
124
- ];
125
- TypeRegistry.for(n0).registerError(ObjectNotFoundException$, ObjectNotFoundException);
126
140
  export var PutObjectRequest$ = [3, n0, _POR,
127
141
  0,
128
142
  [_B, _P, _CT, _CC, _SCt, _UA],
@@ -133,14 +147,6 @@ export var PutObjectResponse$ = [3, n0, _PORu,
133
147
  [_CSHA, _ET, _SCt],
134
148
  [0, 0, 0]
135
149
  ];
136
- export var RequestedRangeNotSatisfiableException$ = [-3, n0, _RRNSE,
137
- { [_e]: _c, [_hE]: 416 },
138
- [_M],
139
- [0]
140
- ];
141
- TypeRegistry.for(n0).registerError(RequestedRangeNotSatisfiableException$, RequestedRangeNotSatisfiableException);
142
- export var MediaStoreDataServiceException$ = [-3, _sm, "MediaStoreDataServiceException", 0, [], []];
143
- TypeRegistry.for(_sm).registerError(MediaStoreDataServiceException$, MediaStoreDataServiceException);
144
150
  var ItemList = [1, n0, _IL,
145
151
  0, () => Item$
146
152
  ];
@@ -1,20 +1,27 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var MediaStoreDataServiceException$: StaticErrorSchema;
2
4
  export declare var ContainerNotFoundException$: StaticErrorSchema;
5
+ export declare var InternalServerError$: StaticErrorSchema;
6
+ export declare var ObjectNotFoundException$: StaticErrorSchema;
7
+ export declare var RequestedRangeNotSatisfiableException$: StaticErrorSchema;
8
+ /**
9
+ * TypeRegistry instances containing modeled errors.
10
+ * @internal
11
+ *
12
+ */
13
+ export declare const errorTypeRegistries: TypeRegistry[];
3
14
  export declare var DeleteObjectRequest$: StaticStructureSchema;
4
15
  export declare var DeleteObjectResponse$: StaticStructureSchema;
5
16
  export declare var DescribeObjectRequest$: StaticStructureSchema;
6
17
  export declare var DescribeObjectResponse$: StaticStructureSchema;
7
18
  export declare var GetObjectRequest$: StaticStructureSchema;
8
19
  export declare var GetObjectResponse$: StaticStructureSchema;
9
- export declare var InternalServerError$: StaticErrorSchema;
10
20
  export declare var Item$: StaticStructureSchema;
11
21
  export declare var ListItemsRequest$: StaticStructureSchema;
12
22
  export declare var ListItemsResponse$: StaticStructureSchema;
13
- export declare var ObjectNotFoundException$: StaticErrorSchema;
14
23
  export declare var PutObjectRequest$: StaticStructureSchema;
15
24
  export declare var PutObjectResponse$: StaticStructureSchema;
16
- export declare var RequestedRangeNotSatisfiableException$: StaticErrorSchema;
17
- export declare var MediaStoreDataServiceException$: StaticErrorSchema;
18
25
  export declare var DeleteObject$: StaticOperationSchema;
19
26
  export declare var DescribeObject$: StaticOperationSchema;
20
27
  export declare var GetObject$: StaticOperationSchema;
@@ -1,24 +1,26 @@
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 MediaStoreDataServiceException$: StaticErrorSchema;
6
8
  export declare var ContainerNotFoundException$: StaticErrorSchema;
9
+ export declare var InternalServerError$: StaticErrorSchema;
10
+ export declare var ObjectNotFoundException$: StaticErrorSchema;
11
+ export declare var RequestedRangeNotSatisfiableException$: StaticErrorSchema;
12
+ export declare const errorTypeRegistries: TypeRegistry[];
7
13
  export declare var DeleteObjectRequest$: StaticStructureSchema;
8
14
  export declare var DeleteObjectResponse$: StaticStructureSchema;
9
15
  export declare var DescribeObjectRequest$: StaticStructureSchema;
10
16
  export declare var DescribeObjectResponse$: StaticStructureSchema;
11
17
  export declare var GetObjectRequest$: StaticStructureSchema;
12
18
  export declare var GetObjectResponse$: StaticStructureSchema;
13
- export declare var InternalServerError$: StaticErrorSchema;
14
19
  export declare var Item$: StaticStructureSchema;
15
20
  export declare var ListItemsRequest$: StaticStructureSchema;
16
21
  export declare var ListItemsResponse$: StaticStructureSchema;
17
- export declare var ObjectNotFoundException$: StaticErrorSchema;
18
22
  export declare var PutObjectRequest$: StaticStructureSchema;
19
23
  export declare var PutObjectResponse$: StaticStructureSchema;
20
- export declare var RequestedRangeNotSatisfiableException$: StaticErrorSchema;
21
- export declare var MediaStoreDataServiceException$: StaticErrorSchema;
22
24
  export declare var DeleteObject$: StaticOperationSchema;
23
25
  export declare var DescribeObject$: StaticOperationSchema;
24
26
  export declare var GetObject$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mediastore-data",
3
3
  "description": "AWS SDK for JavaScript Mediastore Data 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-mediastore-data",
@@ -23,42 +23,42 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.973.7",
27
- "@aws-sdk/credential-provider-node": "^3.972.6",
26
+ "@aws-sdk/core": "^3.973.9",
27
+ "@aws-sdk/credential-provider-node": "^3.972.8",
28
28
  "@aws-sdk/middleware-host-header": "^3.972.3",
29
29
  "@aws-sdk/middleware-logger": "^3.972.3",
30
30
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
31
- "@aws-sdk/middleware-user-agent": "^3.972.7",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.9",
32
32
  "@aws-sdk/region-config-resolver": "^3.972.3",
33
33
  "@aws-sdk/types": "^3.973.1",
34
- "@aws-sdk/util-endpoints": "3.987.0",
34
+ "@aws-sdk/util-endpoints": "3.989.0",
35
35
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
36
- "@aws-sdk/util-user-agent-node": "^3.972.5",
36
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
37
37
  "@smithy/config-resolver": "^4.4.6",
38
- "@smithy/core": "^3.22.1",
38
+ "@smithy/core": "^3.23.0",
39
39
  "@smithy/fetch-http-handler": "^5.3.9",
40
40
  "@smithy/hash-node": "^4.2.8",
41
41
  "@smithy/invalid-dependency": "^4.2.8",
42
42
  "@smithy/middleware-content-length": "^4.2.8",
43
- "@smithy/middleware-endpoint": "^4.4.13",
44
- "@smithy/middleware-retry": "^4.4.30",
43
+ "@smithy/middleware-endpoint": "^4.4.14",
44
+ "@smithy/middleware-retry": "^4.4.31",
45
45
  "@smithy/middleware-serde": "^4.2.9",
46
46
  "@smithy/middleware-stack": "^4.2.8",
47
47
  "@smithy/node-config-provider": "^4.3.8",
48
- "@smithy/node-http-handler": "^4.4.9",
48
+ "@smithy/node-http-handler": "^4.4.10",
49
49
  "@smithy/protocol-http": "^5.3.8",
50
- "@smithy/smithy-client": "^4.11.2",
50
+ "@smithy/smithy-client": "^4.11.3",
51
51
  "@smithy/types": "^4.12.0",
52
52
  "@smithy/url-parser": "^4.2.8",
53
53
  "@smithy/util-base64": "^4.3.0",
54
54
  "@smithy/util-body-length-browser": "^4.2.0",
55
55
  "@smithy/util-body-length-node": "^4.2.1",
56
- "@smithy/util-defaults-mode-browser": "^4.3.29",
57
- "@smithy/util-defaults-mode-node": "^4.2.32",
56
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
57
+ "@smithy/util-defaults-mode-node": "^4.2.33",
58
58
  "@smithy/util-endpoints": "^3.2.8",
59
59
  "@smithy/util-middleware": "^4.2.8",
60
60
  "@smithy/util-retry": "^4.2.8",
61
- "@smithy/util-stream": "^4.5.11",
61
+ "@smithy/util-stream": "^4.5.12",
62
62
  "@smithy/util-utf8": "^4.2.0",
63
63
  "tslib": "^2.6.2"
64
64
  },