@aws-sdk/client-kinesis-video-media 3.533.0 → 3.540.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.
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
5
6
  const ruleset_1 = require("./ruleset");
6
7
  const defaultEndpointResolver = (endpointParams, context = {}) => {
7
- return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
8
9
  endpointParams: endpointParams,
9
10
  logger: context.logger,
10
11
  });
11
12
  };
12
13
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -512,9 +512,6 @@ var _KinesisVideoMedia = class _KinesisVideoMedia extends KinesisVideoMediaClien
512
512
  __name(_KinesisVideoMedia, "KinesisVideoMedia");
513
513
  var KinesisVideoMedia = _KinesisVideoMedia;
514
514
  (0, import_smithy_client.createAggregatedClient)(commands, KinesisVideoMedia);
515
-
516
- // src/index.ts
517
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
518
515
  // Annotate the CommonJS export names for ESM import in node:
519
516
 
520
517
  0 && (module.exports = {
@@ -1,4 +1,5 @@
1
- import { resolveEndpoint } from "@smithy/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
3
  import { ruleSet } from "./ruleset";
3
4
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
5
  return resolveEndpoint(ruleSet, {
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
6
7
  logger: context.logger,
7
8
  });
8
9
  };
10
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-es/index.js CHANGED
@@ -2,5 +2,4 @@ export * from "./KinesisVideoMediaClient";
2
2
  export * from "./KinesisVideoMedia";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
- import "@aws-sdk/util-endpoints";
6
5
  export { KinesisVideoMediaServiceException } from "./models/KinesisVideoMediaServiceException";
@@ -10,8 +10,8 @@ export interface KinesisVideoMedia {
10
10
  getMedia(args: GetMediaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMediaCommandOutput) => void): void;
11
11
  }
12
12
  /**
13
- * @public
14
13
  * <p></p>
14
+ * @public
15
15
  */
16
16
  export declare class KinesisVideoMedia extends KinesisVideoMediaClient implements KinesisVideoMedia {
17
17
  }
@@ -157,8 +157,8 @@ export type KinesisVideoMediaClientResolvedConfigType = __SmithyResolvedConfigur
157
157
  export interface KinesisVideoMediaClientResolvedConfig extends KinesisVideoMediaClientResolvedConfigType {
158
158
  }
159
159
  /**
160
- * @public
161
160
  * <p></p>
161
+ * @public
162
162
  */
163
163
  export declare class KinesisVideoMediaClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, KinesisVideoMediaClientResolvedConfig> {
164
164
  /**
@@ -23,10 +23,10 @@ export interface GetMediaCommandOutput extends Omit<GetMediaOutput, "Payload">,
23
23
  }
24
24
  declare const GetMediaCommand_base: {
25
25
  new (input: GetMediaCommandInput): import("@smithy/smithy-client").CommandImpl<GetMediaCommandInput, GetMediaCommandOutput, KinesisVideoMediaClientResolvedConfig, GetMediaCommandInput, GetMediaCommandOutput>;
26
+ new (__0_0: GetMediaCommandInput): import("@smithy/smithy-client").CommandImpl<GetMediaCommandInput, GetMediaCommandOutput, KinesisVideoMediaClientResolvedConfig, GetMediaCommandInput, GetMediaCommandOutput>;
26
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
28
  };
28
29
  /**
29
- * @public
30
30
  * <p> Use this API to retrieve media content from a Kinesis video stream. In the request,
31
31
  * you identify the stream name or stream Amazon Resource Name (ARN), and the starting chunk.
32
32
  * Kinesis Video Streams then returns a stream of chunks in order by fragment number.</p>
@@ -131,6 +131,7 @@ declare const GetMediaCommand_base: {
131
131
  * @throws {@link KinesisVideoMediaServiceException}
132
132
  * <p>Base exception class for all service exceptions from KinesisVideoMedia service.</p>
133
133
  *
134
+ * @public
134
135
  */
135
136
  export declare class GetMediaCommand extends GetMediaCommand_base {
136
137
  }
@@ -10,5 +10,4 @@ export { RuntimeExtension } from "./runtimeExtensions";
10
10
  export { KinesisVideoMediaExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export * from "./models";
13
- import "@aws-sdk/util-endpoints";
14
13
  export { KinesisVideoMediaServiceException } from "./models/KinesisVideoMediaServiceException";
@@ -2,9 +2,9 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-cli
2
2
  import { StreamingBlobTypes } from "@smithy/types";
3
3
  import { KinesisVideoMediaServiceException as __BaseException } from "./KinesisVideoMediaServiceException";
4
4
  /**
5
- * @public
6
5
  * <p>Kinesis Video Streams has throttled the request because you have exceeded the limit of
7
6
  * allowed client calls. Try making the call later.</p>
7
+ * @public
8
8
  */
9
9
  export declare class ClientLimitExceededException extends __BaseException {
10
10
  readonly name: "ClientLimitExceededException";
@@ -16,9 +16,9 @@ export declare class ClientLimitExceededException extends __BaseException {
16
16
  constructor(opts: __ExceptionOptionType<ClientLimitExceededException, __BaseException>);
17
17
  }
18
18
  /**
19
- * @public
20
19
  * <p>Kinesis Video Streams has throttled the request because you have exceeded the limit of
21
20
  * allowed client connections.</p>
21
+ * @public
22
22
  */
23
23
  export declare class ConnectionLimitExceededException extends __BaseException {
24
24
  readonly name: "ConnectionLimitExceededException";
@@ -46,7 +46,6 @@ export declare const StartSelectorType: {
46
46
  */
47
47
  export type StartSelectorType = (typeof StartSelectorType)[keyof typeof StartSelectorType];
48
48
  /**
49
- * @public
50
49
  * <p>Identifies the chunk on the Kinesis video stream where you want the
51
50
  * <code>GetMedia</code> API to start returning media data. You have the following options to
52
51
  * identify the starting chunk: </p>
@@ -66,10 +65,10 @@ export type StartSelectorType = (typeof StartSelectorType)[keyof typeof StartSel
66
65
  * last API ended.</p>
67
66
  * </li>
68
67
  * </ul>
68
+ * @public
69
69
  */
70
70
  export interface StartSelector {
71
71
  /**
72
- * @public
73
72
  * <p>Identifies the fragment on the Kinesis video stream where you want to start getting the
74
73
  * data from.</p>
75
74
  * <ul>
@@ -97,26 +96,27 @@ export interface StartSelector {
97
96
  * <code>startSelectorType</code>, you don't provide any additional information in the
98
97
  * <code>startSelector</code>.</p>
99
98
  * </note>
99
+ * @public
100
100
  */
101
101
  StartSelectorType: StartSelectorType | undefined;
102
102
  /**
103
- * @public
104
103
  * <p>Specifies the fragment number from where you want the <code>GetMedia</code> API to
105
104
  * start returning the fragments. </p>
105
+ * @public
106
106
  */
107
107
  AfterFragmentNumber?: string;
108
108
  /**
109
- * @public
110
109
  * <p>A timestamp value. This value is required if you choose the PRODUCER_TIMESTAMP or the
111
110
  * SERVER_TIMESTAMP as the <code>startSelectorType</code>. The <code>GetMedia</code> API then
112
111
  * starts with the chunk containing the fragment that has the specified timestamp.</p>
112
+ * @public
113
113
  */
114
114
  StartTimestamp?: Date;
115
115
  /**
116
- * @public
117
116
  * <p>Continuation token that Kinesis Video Streams returned in the previous
118
117
  * <code>GetMedia</code> response. The <code>GetMedia</code> API then starts with the chunk
119
118
  * identified by the continuation token.</p>
119
+ * @public
120
120
  */
121
121
  ContinuationToken?: string;
122
122
  }
@@ -125,21 +125,21 @@ export interface StartSelector {
125
125
  */
126
126
  export interface GetMediaInput {
127
127
  /**
128
- * @public
129
128
  * <p>The Kinesis video stream name from where you want to get the media content. If you
130
129
  * don't specify the <code>streamName</code>, you must specify the
131
130
  * <code>streamARN</code>.</p>
131
+ * @public
132
132
  */
133
133
  StreamName?: string;
134
134
  /**
135
- * @public
136
135
  * <p>The ARN of the stream from where you want to get the media content. If you don't
137
136
  * specify the <code>streamARN</code>, you must specify the <code>streamName</code>.</p>
137
+ * @public
138
138
  */
139
139
  StreamARN?: string;
140
140
  /**
141
- * @public
142
141
  * <p>Identifies the starting chunk to get from the specified stream. </p>
142
+ * @public
143
143
  */
144
144
  StartSelector: StartSelector | undefined;
145
145
  }
@@ -148,12 +148,11 @@ export interface GetMediaInput {
148
148
  */
149
149
  export interface GetMediaOutput {
150
150
  /**
151
- * @public
152
151
  * <p>The content type of the requested media.</p>
152
+ * @public
153
153
  */
154
154
  ContentType?: string;
155
155
  /**
156
- * @public
157
156
  * <p> The payload Kinesis Video Streams returns is a sequence of chunks from the specified
158
157
  * stream. For information about the chunks, see . The
159
158
  * chunks that Kinesis Video Streams returns in the <code>GetMedia</code> call also include the
@@ -222,12 +221,13 @@ export interface GetMediaOutput {
222
221
  * <p>5000 - Internal error</p>
223
222
  * </li>
224
223
  * </ul>
224
+ * @public
225
225
  */
226
226
  Payload?: StreamingBlobTypes;
227
227
  }
228
228
  /**
229
- * @public
230
229
  * <p>The value for this input parameter is invalid.</p>
230
+ * @public
231
231
  */
232
232
  export declare class InvalidArgumentException extends __BaseException {
233
233
  readonly name: "InvalidArgumentException";
@@ -239,11 +239,11 @@ export declare class InvalidArgumentException extends __BaseException {
239
239
  constructor(opts: __ExceptionOptionType<InvalidArgumentException, __BaseException>);
240
240
  }
241
241
  /**
242
- * @public
243
242
  * <p> Status Code: 400, Caller used wrong endpoint to write data to a stream. On receiving
244
243
  * such an exception, the user must call <code>GetDataEndpoint</code> with
245
244
  * <code>AccessMode</code> set to "READ" and use the endpoint Kinesis Video returns in the next
246
245
  * <code>GetMedia</code> call. </p>
246
+ * @public
247
247
  */
248
248
  export declare class InvalidEndpointException extends __BaseException {
249
249
  readonly name: "InvalidEndpointException";
@@ -255,9 +255,9 @@ export declare class InvalidEndpointException extends __BaseException {
255
255
  constructor(opts: __ExceptionOptionType<InvalidEndpointException, __BaseException>);
256
256
  }
257
257
  /**
258
- * @public
259
258
  * <p>Status Code: 403, The caller is not authorized to perform an operation on the given
260
259
  * stream, or the token has expired.</p>
260
+ * @public
261
261
  */
262
262
  export declare class NotAuthorizedException extends __BaseException {
263
263
  readonly name: "NotAuthorizedException";
@@ -269,8 +269,8 @@ export declare class NotAuthorizedException extends __BaseException {
269
269
  constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>);
270
270
  }
271
271
  /**
272
- * @public
273
272
  * <p>Status Code: 404, The stream with the given name does not exist.</p>
273
+ * @public
274
274
  */
275
275
  export declare class ResourceNotFoundException extends __BaseException {
276
276
  readonly name: "ResourceNotFoundException";
@@ -22,6 +22,15 @@ declare const GetMediaCommand_base: {
22
22
  GetMediaCommandInput,
23
23
  GetMediaCommandOutput
24
24
  >;
25
+ new (
26
+ __0_0: GetMediaCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ GetMediaCommandInput,
29
+ GetMediaCommandOutput,
30
+ KinesisVideoMediaClientResolvedConfig,
31
+ GetMediaCommandInput,
32
+ GetMediaCommandOutput
33
+ >;
25
34
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
35
  };
27
36
  export declare class GetMediaCommand extends GetMediaCommand_base {}
@@ -5,5 +5,4 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { KinesisVideoMediaExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./models";
8
- import "@aws-sdk/util-endpoints";
9
8
  export { KinesisVideoMediaServiceException } from "./models/KinesisVideoMediaServiceException";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis-video-media",
3
3
  "description": "AWS SDK for JavaScript Kinesis Video Media Client for Node.js, Browser and React Native",
4
- "version": "3.533.0",
4
+ "version": "3.540.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-kinesis-video-media",
@@ -20,48 +20,48 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.533.0",
24
- "@aws-sdk/core": "3.533.0",
25
- "@aws-sdk/credential-provider-node": "3.533.0",
26
- "@aws-sdk/middleware-host-header": "3.533.0",
27
- "@aws-sdk/middleware-logger": "3.533.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.533.0",
29
- "@aws-sdk/middleware-user-agent": "3.533.0",
30
- "@aws-sdk/region-config-resolver": "3.533.0",
31
- "@aws-sdk/types": "3.533.0",
32
- "@aws-sdk/util-endpoints": "3.533.0",
33
- "@aws-sdk/util-user-agent-browser": "3.533.0",
34
- "@aws-sdk/util-user-agent-node": "3.533.0",
35
- "@smithy/config-resolver": "^2.1.5",
36
- "@smithy/core": "^1.3.8",
37
- "@smithy/fetch-http-handler": "^2.4.5",
38
- "@smithy/hash-node": "^2.1.4",
39
- "@smithy/invalid-dependency": "^2.1.4",
40
- "@smithy/middleware-content-length": "^2.1.4",
41
- "@smithy/middleware-endpoint": "^2.4.6",
42
- "@smithy/middleware-retry": "^2.1.7",
43
- "@smithy/middleware-serde": "^2.2.1",
44
- "@smithy/middleware-stack": "^2.1.4",
45
- "@smithy/node-config-provider": "^2.2.5",
46
- "@smithy/node-http-handler": "^2.4.3",
47
- "@smithy/protocol-http": "^3.2.2",
48
- "@smithy/smithy-client": "^2.4.5",
49
- "@smithy/types": "^2.11.0",
50
- "@smithy/url-parser": "^2.1.4",
51
- "@smithy/util-base64": "^2.2.1",
52
- "@smithy/util-body-length-browser": "^2.1.1",
53
- "@smithy/util-body-length-node": "^2.2.2",
54
- "@smithy/util-defaults-mode-browser": "^2.1.7",
55
- "@smithy/util-defaults-mode-node": "^2.2.7",
56
- "@smithy/util-endpoints": "^1.1.5",
57
- "@smithy/util-middleware": "^2.1.4",
58
- "@smithy/util-retry": "^2.1.4",
59
- "@smithy/util-stream": "^2.1.5",
60
- "@smithy/util-utf8": "^2.2.0",
61
- "tslib": "^2.5.0"
23
+ "@aws-sdk/client-sts": "3.540.0",
24
+ "@aws-sdk/core": "3.535.0",
25
+ "@aws-sdk/credential-provider-node": "3.540.0",
26
+ "@aws-sdk/middleware-host-header": "3.535.0",
27
+ "@aws-sdk/middleware-logger": "3.535.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.535.0",
29
+ "@aws-sdk/middleware-user-agent": "3.540.0",
30
+ "@aws-sdk/region-config-resolver": "3.535.0",
31
+ "@aws-sdk/types": "3.535.0",
32
+ "@aws-sdk/util-endpoints": "3.540.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.535.0",
34
+ "@aws-sdk/util-user-agent-node": "3.535.0",
35
+ "@smithy/config-resolver": "^2.2.0",
36
+ "@smithy/core": "^1.4.0",
37
+ "@smithy/fetch-http-handler": "^2.5.0",
38
+ "@smithy/hash-node": "^2.2.0",
39
+ "@smithy/invalid-dependency": "^2.2.0",
40
+ "@smithy/middleware-content-length": "^2.2.0",
41
+ "@smithy/middleware-endpoint": "^2.5.0",
42
+ "@smithy/middleware-retry": "^2.2.0",
43
+ "@smithy/middleware-serde": "^2.3.0",
44
+ "@smithy/middleware-stack": "^2.2.0",
45
+ "@smithy/node-config-provider": "^2.3.0",
46
+ "@smithy/node-http-handler": "^2.5.0",
47
+ "@smithy/protocol-http": "^3.3.0",
48
+ "@smithy/smithy-client": "^2.5.0",
49
+ "@smithy/types": "^2.12.0",
50
+ "@smithy/url-parser": "^2.2.0",
51
+ "@smithy/util-base64": "^2.3.0",
52
+ "@smithy/util-body-length-browser": "^2.2.0",
53
+ "@smithy/util-body-length-node": "^2.3.0",
54
+ "@smithy/util-defaults-mode-browser": "^2.2.0",
55
+ "@smithy/util-defaults-mode-node": "^2.3.0",
56
+ "@smithy/util-endpoints": "^1.2.0",
57
+ "@smithy/util-middleware": "^2.2.0",
58
+ "@smithy/util-retry": "^2.2.0",
59
+ "@smithy/util-stream": "^2.2.0",
60
+ "@smithy/util-utf8": "^2.3.0",
61
+ "tslib": "^2.6.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@smithy/service-client-documentation-generator": "^2.1.1",
64
+ "@smithy/service-client-documentation-generator": "^2.2.0",
65
65
  "@tsconfig/node14": "1.0.3",
66
66
  "@types/node": "^14.14.31",
67
67
  "concurrently": "7.0.0",