@aws-sdk/client-ivs-realtime 3.303.0 → 3.307.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.
@@ -4,6 +4,7 @@ exports.CreateParticipantTokenCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class CreateParticipantTokenCommand extends smithy_client_1.Command {
9
10
  constructor(input) {
@@ -30,7 +31,7 @@ class CreateParticipantTokenCommand extends smithy_client_1.Command {
30
31
  clientName,
31
32
  commandName,
32
33
  inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: models_0_1.CreateParticipantTokenResponseFilterSensitiveLog,
34
35
  };
35
36
  const { requestHandler } = configuration;
36
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,6 +4,7 @@ exports.CreateStageCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class CreateStageCommand extends smithy_client_1.Command {
9
10
  constructor(input) {
@@ -30,7 +31,7 @@ class CreateStageCommand extends smithy_client_1.Command {
30
31
  clientName,
31
32
  commandName,
32
33
  inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: models_0_1.CreateStageResponseFilterSensitiveLog,
34
35
  };
35
36
  const { requestHandler } = configuration;
36
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InternalServerException = exports.ConflictException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.PendingVerification = exports.ParticipantTokenCapability = exports.AccessDeniedException = void 0;
3
+ exports.CreateStageResponseFilterSensitiveLog = exports.CreateParticipantTokenResponseFilterSensitiveLog = exports.ParticipantTokenFilterSensitiveLog = exports.InternalServerException = exports.ConflictException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.PendingVerification = exports.ParticipantTokenCapability = exports.AccessDeniedException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const IVSRealTimeServiceException_1 = require("./IVSRealTimeServiceException");
5
6
  class AccessDeniedException extends IVSRealTimeServiceException_1.IVSRealTimeServiceException {
6
7
  constructor(opts) {
@@ -104,3 +105,20 @@ class InternalServerException extends IVSRealTimeServiceException_1.IVSRealTimeS
104
105
  }
105
106
  }
106
107
  exports.InternalServerException = InternalServerException;
108
+ const ParticipantTokenFilterSensitiveLog = (obj) => ({
109
+ ...obj,
110
+ ...(obj.token && { token: smithy_client_1.SENSITIVE_STRING }),
111
+ });
112
+ exports.ParticipantTokenFilterSensitiveLog = ParticipantTokenFilterSensitiveLog;
113
+ const CreateParticipantTokenResponseFilterSensitiveLog = (obj) => ({
114
+ ...obj,
115
+ ...(obj.participantToken && { participantToken: (0, exports.ParticipantTokenFilterSensitiveLog)(obj.participantToken) }),
116
+ });
117
+ exports.CreateParticipantTokenResponseFilterSensitiveLog = CreateParticipantTokenResponseFilterSensitiveLog;
118
+ const CreateStageResponseFilterSensitiveLog = (obj) => ({
119
+ ...obj,
120
+ ...(obj.participantTokens && {
121
+ participantTokens: obj.participantTokens.map((item) => (0, exports.ParticipantTokenFilterSensitiveLog)(item)),
122
+ }),
123
+ });
124
+ exports.CreateStageResponseFilterSensitiveLog = CreateStageResponseFilterSensitiveLog;
@@ -788,7 +788,7 @@ const deserializeAws_restJson1ParticipantToken = (output, context) => {
788
788
  : undefined,
789
789
  duration: (0, smithy_client_1.expectInt32)(output.duration),
790
790
  expirationTime: output.expirationTime != null
791
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expirationTime)))
791
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.expirationTime))
792
792
  : undefined,
793
793
  participantId: (0, smithy_client_1.expectString)(output.participantId),
794
794
  token: (0, smithy_client_1.expectString)(output.token),
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateParticipantTokenResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateParticipantTokenCommand, serializeAws_restJson1CreateParticipantTokenCommand, } from "../protocols/Aws_restJson1";
5
6
  export class CreateParticipantTokenCommand extends $Command {
6
7
  constructor(input) {
@@ -27,7 +28,7 @@ export class CreateParticipantTokenCommand extends $Command {
27
28
  clientName,
28
29
  commandName,
29
30
  inputFilterSensitiveLog: (_) => _,
30
- outputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: CreateParticipantTokenResponseFilterSensitiveLog,
31
32
  };
32
33
  const { requestHandler } = configuration;
33
34
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateStageResponseFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateStageCommand, serializeAws_restJson1CreateStageCommand, } from "../protocols/Aws_restJson1";
5
6
  export class CreateStageCommand extends $Command {
6
7
  constructor(input) {
@@ -27,7 +28,7 @@ export class CreateStageCommand extends $Command {
27
28
  clientName,
28
29
  commandName,
29
30
  inputFilterSensitiveLog: (_) => _,
30
- outputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: CreateStageResponseFilterSensitiveLog,
31
32
  };
32
33
  const { requestHandler } = configuration;
33
34
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,3 +1,4 @@
1
+ import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
1
2
  import { IVSRealTimeServiceException as __BaseException } from "./IVSRealTimeServiceException";
2
3
  export class AccessDeniedException extends __BaseException {
3
4
  constructor(opts) {
@@ -94,3 +95,17 @@ export class InternalServerException extends __BaseException {
94
95
  this.exceptionMessage = opts.exceptionMessage;
95
96
  }
96
97
  }
98
+ export const ParticipantTokenFilterSensitiveLog = (obj) => ({
99
+ ...obj,
100
+ ...(obj.token && { token: SENSITIVE_STRING }),
101
+ });
102
+ export const CreateParticipantTokenResponseFilterSensitiveLog = (obj) => ({
103
+ ...obj,
104
+ ...(obj.participantToken && { participantToken: ParticipantTokenFilterSensitiveLog(obj.participantToken) }),
105
+ });
106
+ export const CreateStageResponseFilterSensitiveLog = (obj) => ({
107
+ ...obj,
108
+ ...(obj.participantTokens && {
109
+ participantTokens: obj.participantTokens.map((item) => ParticipantTokenFilterSensitiveLog(item)),
110
+ }),
111
+ });
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { IVSRealTimeServiceException as __BaseException } from "../models/IVSRealTimeServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, PendingVerification, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
5
5
  export const serializeAws_restJson1CreateParticipantTokenCommand = async (input, context) => {
@@ -765,7 +765,7 @@ const deserializeAws_restJson1ParticipantToken = (output, context) => {
765
765
  : undefined,
766
766
  duration: __expectInt32(output.duration),
767
767
  expirationTime: output.expirationTime != null
768
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expirationTime)))
768
+ ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.expirationTime))
769
769
  : undefined,
770
770
  participantId: __expectString(output.participantId),
771
771
  token: __expectString(output.token),
@@ -480,3 +480,15 @@ export interface UpdateStageResponse {
480
480
  */
481
481
  stage?: Stage;
482
482
  }
483
+ /**
484
+ * @internal
485
+ */
486
+ export declare const ParticipantTokenFilterSensitiveLog: (obj: ParticipantToken) => any;
487
+ /**
488
+ * @internal
489
+ */
490
+ export declare const CreateParticipantTokenResponseFilterSensitiveLog: (obj: CreateParticipantTokenResponse) => any;
491
+ /**
492
+ * @internal
493
+ */
494
+ export declare const CreateStageResponseFilterSensitiveLog: (obj: CreateStageResponse) => any;
@@ -153,3 +153,12 @@ export interface UpdateStageRequest {
153
153
  export interface UpdateStageResponse {
154
154
  stage?: Stage;
155
155
  }
156
+ export declare const ParticipantTokenFilterSensitiveLog: (
157
+ obj: ParticipantToken
158
+ ) => any;
159
+ export declare const CreateParticipantTokenResponseFilterSensitiveLog: (
160
+ obj: CreateParticipantTokenResponse
161
+ ) => any;
162
+ export declare const CreateStageResponseFilterSensitiveLog: (
163
+ obj: CreateStageResponse
164
+ ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ivs-realtime",
3
3
  "description": "AWS SDK for JavaScript Ivs Realtime Client for Node.js, Browser and React Native",
4
- "version": "3.303.0",
4
+ "version": "3.307.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,37 +21,37 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.303.0",
25
- "@aws-sdk/config-resolver": "3.303.0",
26
- "@aws-sdk/credential-provider-node": "3.303.0",
27
- "@aws-sdk/fetch-http-handler": "3.303.0",
28
- "@aws-sdk/hash-node": "3.303.0",
29
- "@aws-sdk/invalid-dependency": "3.303.0",
30
- "@aws-sdk/middleware-content-length": "3.303.0",
31
- "@aws-sdk/middleware-endpoint": "3.303.0",
32
- "@aws-sdk/middleware-host-header": "3.303.0",
33
- "@aws-sdk/middleware-logger": "3.303.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
- "@aws-sdk/middleware-retry": "3.303.0",
36
- "@aws-sdk/middleware-serde": "3.303.0",
37
- "@aws-sdk/middleware-signing": "3.303.0",
38
- "@aws-sdk/middleware-stack": "3.303.0",
39
- "@aws-sdk/middleware-user-agent": "3.303.0",
40
- "@aws-sdk/node-config-provider": "3.303.0",
41
- "@aws-sdk/node-http-handler": "3.303.0",
42
- "@aws-sdk/protocol-http": "3.303.0",
43
- "@aws-sdk/smithy-client": "3.303.0",
44
- "@aws-sdk/types": "3.303.0",
45
- "@aws-sdk/url-parser": "3.303.0",
24
+ "@aws-sdk/client-sts": "3.306.0",
25
+ "@aws-sdk/config-resolver": "3.306.0",
26
+ "@aws-sdk/credential-provider-node": "3.306.0",
27
+ "@aws-sdk/fetch-http-handler": "3.306.0",
28
+ "@aws-sdk/hash-node": "3.306.0",
29
+ "@aws-sdk/invalid-dependency": "3.306.0",
30
+ "@aws-sdk/middleware-content-length": "3.306.0",
31
+ "@aws-sdk/middleware-endpoint": "3.306.0",
32
+ "@aws-sdk/middleware-host-header": "3.306.0",
33
+ "@aws-sdk/middleware-logger": "3.306.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
+ "@aws-sdk/middleware-retry": "3.306.0",
36
+ "@aws-sdk/middleware-serde": "3.306.0",
37
+ "@aws-sdk/middleware-signing": "3.306.0",
38
+ "@aws-sdk/middleware-stack": "3.306.0",
39
+ "@aws-sdk/middleware-user-agent": "3.306.0",
40
+ "@aws-sdk/node-config-provider": "3.306.0",
41
+ "@aws-sdk/node-http-handler": "3.306.0",
42
+ "@aws-sdk/protocol-http": "3.306.0",
43
+ "@aws-sdk/smithy-client": "3.306.0",
44
+ "@aws-sdk/types": "3.306.0",
45
+ "@aws-sdk/url-parser": "3.306.0",
46
46
  "@aws-sdk/util-base64": "3.303.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.303.0",
48
48
  "@aws-sdk/util-body-length-node": "3.303.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
- "@aws-sdk/util-endpoints": "3.303.0",
52
- "@aws-sdk/util-retry": "3.303.0",
53
- "@aws-sdk/util-user-agent-browser": "3.303.0",
54
- "@aws-sdk/util-user-agent-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.306.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.306.0",
51
+ "@aws-sdk/util-endpoints": "3.306.0",
52
+ "@aws-sdk/util-retry": "3.306.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.306.0",
54
+ "@aws-sdk/util-user-agent-node": "3.306.0",
55
55
  "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },