@aws-sdk/client-qbusiness 3.564.0 → 3.566.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.
Files changed (48) hide show
  1. package/README.md +8 -3
  2. package/dist-cjs/index.js +434 -9
  3. package/dist-cjs/runtimeConfig.browser.js +4 -0
  4. package/dist-cjs/runtimeConfig.js +4 -0
  5. package/dist-cjs/runtimeConfig.native.js +3 -0
  6. package/dist-es/QBusiness.js +2 -0
  7. package/dist-es/QBusinessClient.js +8 -4
  8. package/dist-es/commands/ChatCommand.js +32 -0
  9. package/dist-es/commands/CreatePluginCommand.js +2 -1
  10. package/dist-es/commands/GetPluginCommand.js +2 -1
  11. package/dist-es/commands/UpdatePluginCommand.js +2 -1
  12. package/dist-es/commands/index.js +1 -0
  13. package/dist-es/models/models_0.js +134 -0
  14. package/dist-es/protocols/Aws_restJson1.js +225 -1
  15. package/dist-es/runtimeConfig.browser.js +5 -1
  16. package/dist-es/runtimeConfig.js +4 -0
  17. package/dist-es/runtimeConfig.native.js +3 -0
  18. package/dist-types/QBusiness.d.ts +8 -4
  19. package/dist-types/QBusinessClient.d.ts +19 -9
  20. package/dist-types/commands/ChatCommand.d.ts +281 -0
  21. package/dist-types/commands/ChatSyncCommand.d.ts +14 -1
  22. package/dist-types/commands/CreateApplicationCommand.d.ts +8 -1
  23. package/dist-types/commands/CreateIndexCommand.d.ts +1 -0
  24. package/dist-types/commands/CreatePluginCommand.d.ts +15 -2
  25. package/dist-types/commands/GetIndexCommand.d.ts +1 -0
  26. package/dist-types/commands/GetPluginCommand.d.ts +14 -1
  27. package/dist-types/commands/ListMessagesCommand.d.ts +6 -1
  28. package/dist-types/commands/ListPluginsCommand.d.ts +2 -1
  29. package/dist-types/commands/UpdateApplicationCommand.d.ts +1 -0
  30. package/dist-types/commands/UpdatePluginCommand.d.ts +12 -0
  31. package/dist-types/commands/UpdateWebExperienceCommand.d.ts +1 -0
  32. package/dist-types/commands/index.d.ts +1 -0
  33. package/dist-types/index.d.ts +1 -4
  34. package/dist-types/models/models_0.d.ts +867 -47
  35. package/dist-types/protocols/Aws_restJson1.d.ts +10 -1
  36. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  37. package/dist-types/runtimeConfig.d.ts +2 -0
  38. package/dist-types/runtimeConfig.native.d.ts +2 -0
  39. package/dist-types/ts3.4/QBusiness.d.ts +14 -0
  40. package/dist-types/ts3.4/QBusinessClient.d.ts +19 -0
  41. package/dist-types/ts3.4/commands/ChatCommand.d.ts +29 -0
  42. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +333 -11
  44. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +13 -1
  45. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  46. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  47. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  48. package/package.json +7 -2
@@ -6,6 +6,7 @@ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
7
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
8
  const config_resolver_1 = require("@smithy/config-resolver");
9
+ const eventstream_serde_browser_1 = require("@smithy/eventstream-serde-browser");
9
10
  const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
10
11
  const invalid_dependency_1 = require("@smithy/invalid-dependency");
11
12
  const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
@@ -26,6 +27,9 @@ const getRuntimeConfig = (config) => {
26
27
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
28
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
29
  (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
30
+ eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
31
+ (() => ({ handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in browser.") })),
32
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
29
33
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
34
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
35
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -5,8 +5,10 @@ const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const core_1 = require("@aws-sdk/core");
7
7
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
8
+ const eventstream_handler_node_1 = require("@aws-sdk/eventstream-handler-node");
8
9
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
9
10
  const config_resolver_1 = require("@smithy/config-resolver");
11
+ const eventstream_serde_node_1 = require("@smithy/eventstream-serde-node");
10
12
  const hash_node_1 = require("@smithy/hash-node");
11
13
  const middleware_retry_1 = require("@smithy/middleware-retry");
12
14
  const node_config_provider_1 = require("@smithy/node-config-provider");
@@ -32,6 +34,8 @@ const getRuntimeConfig = (config) => {
32
34
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
33
35
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
34
36
  (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventstream_handler_node_1.eventStreamPayloadHandlerProvider,
38
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
35
39
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
40
  region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
41
  requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true }))),
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
+ const invalid_dependency_1 = require("@smithy/invalid-dependency");
5
6
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
7
  const getRuntimeConfig = (config) => {
7
8
  const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
@@ -9,6 +10,8 @@ const getRuntimeConfig = (config) => {
9
10
  ...browserDefaults,
10
11
  ...config,
11
12
  runtime: "react-native",
13
+ eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
14
+ (() => ({ handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in ReactNative.") })),
12
15
  sha256: config?.sha256 ?? sha256_js_1.Sha256,
13
16
  };
14
17
  };
@@ -1,6 +1,7 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { BatchDeleteDocumentCommand, } from "./commands/BatchDeleteDocumentCommand";
3
3
  import { BatchPutDocumentCommand, } from "./commands/BatchPutDocumentCommand";
4
+ import { ChatCommand } from "./commands/ChatCommand";
4
5
  import { ChatSyncCommand } from "./commands/ChatSyncCommand";
5
6
  import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
6
7
  import { CreateDataSourceCommand, } from "./commands/CreateDataSourceCommand";
@@ -58,6 +59,7 @@ import { QBusinessClient } from "./QBusinessClient";
58
59
  const commands = {
59
60
  BatchDeleteDocumentCommand,
60
61
  BatchPutDocumentCommand,
62
+ ChatCommand,
61
63
  ChatSyncCommand,
62
64
  CreateApplicationCommand,
63
65
  CreateDataSourceCommand,
@@ -1,9 +1,11 @@
1
+ import { resolveEventStreamConfig, } from "@aws-sdk/middleware-eventstream";
1
2
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
2
3
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
3
4
  import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
4
5
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
6
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
7
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
8
+ import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
7
9
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
10
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
11
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -22,10 +24,12 @@ export class QBusinessClient extends __Client {
22
24
  const _config_4 = resolveRetryConfig(_config_3);
23
25
  const _config_5 = resolveHostHeaderConfig(_config_4);
24
26
  const _config_6 = resolveUserAgentConfig(_config_5);
25
- const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
26
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
27
- super(_config_8);
28
- this.config = _config_8;
27
+ const _config_7 = resolveEventStreamSerdeConfig(_config_6);
28
+ const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
29
+ const _config_9 = resolveEventStreamConfig(_config_8);
30
+ const _config_10 = resolveRuntimeExtensions(_config_9, configuration?.extensions || []);
31
+ super(_config_10);
32
+ this.config = _config_10;
29
33
  this.middlewareStack.use(getRetryPlugin(this.config));
30
34
  this.middlewareStack.use(getContentLengthPlugin(this.config));
31
35
  this.middlewareStack.use(getHostHeaderPlugin(this.config));
@@ -0,0 +1,32 @@
1
+ import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
2
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
+ import { getSerdePlugin } from "@smithy/middleware-serde";
4
+ import { Command as $Command } from "@smithy/smithy-client";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
+ import { ChatInputFilterSensitiveLog, ChatOutputFilterSensitiveLog } from "../models/models_0";
7
+ import { de_ChatCommand, se_ChatCommand } from "../protocols/Aws_restJson1";
8
+ export { $Command };
9
+ export class ChatCommand extends $Command
10
+ .classBuilder()
11
+ .ep({
12
+ ...commonParams,
13
+ })
14
+ .m(function (Command, cs, config, o) {
15
+ return [
16
+ getSerdePlugin(config, this.serialize, this.deserialize),
17
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
+ getEventStreamPlugin(config),
19
+ ];
20
+ })
21
+ .s("ExpertQ", "Chat", {
22
+ eventStream: {
23
+ input: true,
24
+ output: true,
25
+ },
26
+ })
27
+ .n("QBusinessClient", "ChatCommand")
28
+ .f(ChatInputFilterSensitiveLog, ChatOutputFilterSensitiveLog)
29
+ .ser(se_ChatCommand)
30
+ .de(de_ChatCommand)
31
+ .build() {
32
+ }
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { CreatePluginRequestFilterSensitiveLog } from "../models/models_0";
5
6
  import { de_CreatePluginCommand, se_CreatePluginCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
7
8
  export class CreatePluginCommand extends $Command
@@ -17,7 +18,7 @@ export class CreatePluginCommand extends $Command
17
18
  })
18
19
  .s("ExpertQ", "CreatePlugin", {})
19
20
  .n("QBusinessClient", "CreatePluginCommand")
20
- .f(void 0, void 0)
21
+ .f(CreatePluginRequestFilterSensitiveLog, void 0)
21
22
  .ser(se_CreatePluginCommand)
22
23
  .de(de_CreatePluginCommand)
23
24
  .build() {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { GetPluginResponseFilterSensitiveLog } from "../models/models_0";
5
6
  import { de_GetPluginCommand, se_GetPluginCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
7
8
  export class GetPluginCommand extends $Command
@@ -17,7 +18,7 @@ export class GetPluginCommand extends $Command
17
18
  })
18
19
  .s("ExpertQ", "GetPlugin", {})
19
20
  .n("QBusinessClient", "GetPluginCommand")
20
- .f(void 0, void 0)
21
+ .f(void 0, GetPluginResponseFilterSensitiveLog)
21
22
  .ser(se_GetPluginCommand)
22
23
  .de(de_GetPluginCommand)
23
24
  .build() {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { UpdatePluginRequestFilterSensitiveLog } from "../models/models_0";
5
6
  import { de_UpdatePluginCommand, se_UpdatePluginCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
7
8
  export class UpdatePluginCommand extends $Command
@@ -17,7 +18,7 @@ export class UpdatePluginCommand extends $Command
17
18
  })
18
19
  .s("ExpertQ", "UpdatePlugin", {})
19
20
  .n("QBusinessClient", "UpdatePluginCommand")
20
- .f(void 0, void 0)
21
+ .f(UpdatePluginRequestFilterSensitiveLog, void 0)
21
22
  .ser(se_UpdatePluginCommand)
22
23
  .de(de_UpdatePluginCommand)
23
24
  .build() {
@@ -1,5 +1,6 @@
1
1
  export * from "./BatchDeleteDocumentCommand";
2
2
  export * from "./BatchPutDocumentCommand";
3
+ export * from "./ChatCommand";
3
4
  export * from "./ChatSyncCommand";
4
5
  export * from "./CreateApplicationCommand";
5
6
  export * from "./CreateDataSourceCommand";
@@ -41,11 +41,25 @@ export const ActionPayloadFieldType = {
41
41
  STRING: "STRING",
42
42
  };
43
43
  export const PluginType = {
44
+ CUSTOM: "CUSTOM",
44
45
  JIRA: "JIRA",
45
46
  SALESFORCE: "SALESFORCE",
46
47
  SERVICE_NOW: "SERVICE_NOW",
47
48
  ZENDESK: "ZENDESK",
48
49
  };
50
+ export var APISchema;
51
+ (function (APISchema) {
52
+ APISchema.visit = (value, visitor) => {
53
+ if (value.payload !== undefined)
54
+ return visitor.payload(value.payload);
55
+ if (value.s3 !== undefined)
56
+ return visitor.s3(value.s3);
57
+ return visitor._(value.$unknown[0], value.$unknown[1]);
58
+ };
59
+ })(APISchema || (APISchema = {}));
60
+ export const APISchemaType = {
61
+ OPEN_API_V3: "OPEN_API_V3",
62
+ };
49
63
  export const ApplicationStatus = {
50
64
  ACTIVE: "ACTIVE",
51
65
  CREATING: "CREATING",
@@ -148,6 +162,10 @@ export const ErrorCode = {
148
162
  RESOURCE_INACTIVE: "ResourceInactive",
149
163
  RESOURCE_NOT_FOUND: "ResourceNotFound",
150
164
  };
165
+ export const IndexType = {
166
+ ENTERPRISE: "ENTERPRISE",
167
+ STARTER: "STARTER",
168
+ };
151
169
  export const DocumentEnrichmentConditionOperator = {
152
170
  BEGINS_WITH: "BEGINS_WITH",
153
171
  CONTAINS: "CONTAINS",
@@ -213,9 +231,20 @@ export var PluginAuthConfiguration;
213
231
  return visitor.basicAuthConfiguration(value.basicAuthConfiguration);
214
232
  if (value.oAuth2ClientCredentialConfiguration !== undefined)
215
233
  return visitor.oAuth2ClientCredentialConfiguration(value.oAuth2ClientCredentialConfiguration);
234
+ if (value.noAuthConfiguration !== undefined)
235
+ return visitor.noAuthConfiguration(value.noAuthConfiguration);
216
236
  return visitor._(value.$unknown[0], value.$unknown[1]);
217
237
  };
218
238
  })(PluginAuthConfiguration || (PluginAuthConfiguration = {}));
239
+ export const PluginBuildStatus = {
240
+ CREATE_FAILED: "CREATE_FAILED",
241
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
242
+ DELETE_FAILED: "DELETE_FAILED",
243
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
244
+ READY: "READY",
245
+ UPDATE_FAILED: "UPDATE_FAILED",
246
+ UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
247
+ };
219
248
  export const PluginState = {
220
249
  DISABLED: "DISABLED",
221
250
  ENABLED: "ENABLED",
@@ -334,6 +363,22 @@ export var ChatModeConfiguration;
334
363
  return visitor._(value.$unknown[0], value.$unknown[1]);
335
364
  };
336
365
  })(ChatModeConfiguration || (ChatModeConfiguration = {}));
366
+ export var ChatOutputStream;
367
+ (function (ChatOutputStream) {
368
+ ChatOutputStream.visit = (value, visitor) => {
369
+ if (value.textEvent !== undefined)
370
+ return visitor.textEvent(value.textEvent);
371
+ if (value.metadataEvent !== undefined)
372
+ return visitor.metadataEvent(value.metadataEvent);
373
+ if (value.actionReviewEvent !== undefined)
374
+ return visitor.actionReviewEvent(value.actionReviewEvent);
375
+ if (value.failedAttachmentEvent !== undefined)
376
+ return visitor.failedAttachmentEvent(value.failedAttachmentEvent);
377
+ if (value.authChallengeRequestEvent !== undefined)
378
+ return visitor.authChallengeRequestEvent(value.authChallengeRequestEvent);
379
+ return visitor._(value.$unknown[0], value.$unknown[1]);
380
+ };
381
+ })(ChatOutputStream || (ChatOutputStream = {}));
337
382
  export class LicenseNotFoundException extends __BaseException {
338
383
  constructor(opts) {
339
384
  super({
@@ -412,6 +457,32 @@ export const MessageUsefulness = {
412
457
  NOT_USEFUL: "NOT_USEFUL",
413
458
  USEFUL: "USEFUL",
414
459
  };
460
+ export var ChatInputStream;
461
+ (function (ChatInputStream) {
462
+ ChatInputStream.visit = (value, visitor) => {
463
+ if (value.configurationEvent !== undefined)
464
+ return visitor.configurationEvent(value.configurationEvent);
465
+ if (value.textEvent !== undefined)
466
+ return visitor.textEvent(value.textEvent);
467
+ if (value.attachmentEvent !== undefined)
468
+ return visitor.attachmentEvent(value.attachmentEvent);
469
+ if (value.actionExecutionEvent !== undefined)
470
+ return visitor.actionExecutionEvent(value.actionExecutionEvent);
471
+ if (value.endOfInputEvent !== undefined)
472
+ return visitor.endOfInputEvent(value.endOfInputEvent);
473
+ if (value.authChallengeResponseEvent !== undefined)
474
+ return visitor.authChallengeResponseEvent(value.authChallengeResponseEvent);
475
+ return visitor._(value.$unknown[0], value.$unknown[1]);
476
+ };
477
+ })(ChatInputStream || (ChatInputStream = {}));
478
+ export const APISchemaFilterSensitiveLog = (obj) => {
479
+ if (obj.payload !== undefined)
480
+ return { payload: SENSITIVE_STRING };
481
+ if (obj.s3 !== undefined)
482
+ return { s3: obj.s3 };
483
+ if (obj.$unknown !== undefined)
484
+ return { [obj.$unknown[0]]: "UNKNOWN" };
485
+ };
415
486
  export const EncryptionConfigurationFilterSensitiveLog = (obj) => ({
416
487
  ...obj,
417
488
  ...(obj.kmsKeyId && { kmsKeyId: SENSITIVE_STRING }),
@@ -428,3 +499,66 @@ export const GetApplicationResponseFilterSensitiveLog = (obj) => ({
428
499
  encryptionConfiguration: EncryptionConfigurationFilterSensitiveLog(obj.encryptionConfiguration),
429
500
  }),
430
501
  });
502
+ export const CustomPluginConfigurationFilterSensitiveLog = (obj) => ({
503
+ ...obj,
504
+ ...(obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }),
505
+ });
506
+ export const CreatePluginRequestFilterSensitiveLog = (obj) => ({
507
+ ...obj,
508
+ ...(obj.authConfiguration && { authConfiguration: obj.authConfiguration }),
509
+ ...(obj.customPluginConfiguration && {
510
+ customPluginConfiguration: CustomPluginConfigurationFilterSensitiveLog(obj.customPluginConfiguration),
511
+ }),
512
+ });
513
+ export const GetPluginResponseFilterSensitiveLog = (obj) => ({
514
+ ...obj,
515
+ ...(obj.authConfiguration && { authConfiguration: obj.authConfiguration }),
516
+ ...(obj.customPluginConfiguration && {
517
+ customPluginConfiguration: CustomPluginConfigurationFilterSensitiveLog(obj.customPluginConfiguration),
518
+ }),
519
+ });
520
+ export const UpdatePluginRequestFilterSensitiveLog = (obj) => ({
521
+ ...obj,
522
+ ...(obj.customPluginConfiguration && {
523
+ customPluginConfiguration: CustomPluginConfigurationFilterSensitiveLog(obj.customPluginConfiguration),
524
+ }),
525
+ ...(obj.authConfiguration && { authConfiguration: obj.authConfiguration }),
526
+ });
527
+ export const ChatOutputStreamFilterSensitiveLog = (obj) => {
528
+ if (obj.textEvent !== undefined)
529
+ return { textEvent: obj.textEvent };
530
+ if (obj.metadataEvent !== undefined)
531
+ return { metadataEvent: obj.metadataEvent };
532
+ if (obj.actionReviewEvent !== undefined)
533
+ return { actionReviewEvent: obj.actionReviewEvent };
534
+ if (obj.failedAttachmentEvent !== undefined)
535
+ return { failedAttachmentEvent: obj.failedAttachmentEvent };
536
+ if (obj.authChallengeRequestEvent !== undefined)
537
+ return { authChallengeRequestEvent: obj.authChallengeRequestEvent };
538
+ if (obj.$unknown !== undefined)
539
+ return { [obj.$unknown[0]]: "UNKNOWN" };
540
+ };
541
+ export const ChatOutputFilterSensitiveLog = (obj) => ({
542
+ ...obj,
543
+ ...(obj.outputStream && { outputStream: "STREAMING_CONTENT" }),
544
+ });
545
+ export const ChatInputStreamFilterSensitiveLog = (obj) => {
546
+ if (obj.configurationEvent !== undefined)
547
+ return { configurationEvent: obj.configurationEvent };
548
+ if (obj.textEvent !== undefined)
549
+ return { textEvent: obj.textEvent };
550
+ if (obj.attachmentEvent !== undefined)
551
+ return { attachmentEvent: obj.attachmentEvent };
552
+ if (obj.actionExecutionEvent !== undefined)
553
+ return { actionExecutionEvent: obj.actionExecutionEvent };
554
+ if (obj.endOfInputEvent !== undefined)
555
+ return { endOfInputEvent: obj.endOfInputEvent };
556
+ if (obj.authChallengeResponseEvent !== undefined)
557
+ return { authChallengeResponseEvent: obj.authChallengeResponseEvent };
558
+ if (obj.$unknown !== undefined)
559
+ return { [obj.$unknown[0]]: "UNKNOWN" };
560
+ };
561
+ export const ChatInputFilterSensitiveLog = (obj) => ({
562
+ ...obj,
563
+ ...(obj.inputStream && { inputStream: "STREAMING_CONTENT" }),
564
+ });