in clients/client-qconnect/src/protocols/Aws_restJson1.ts [4838:5211]
selfServiceAIAgentConfiguration: _json(output.selfServiceAIAgentConfiguration),
};
}
return { $unknown: Object.entries(output)[0] };
};
// de_AIAgentConfigurationData omitted.
// de_AIAgentConfigurationMap omitted.
/**
* deserializeAws_restJson1AIAgentData
*/
const de_AIAgentData = (output: any, context: __SerdeContext): AIAgentData => {
return take(output, {
aiAgentArn: __expectString,
aiAgentId: __expectString,
assistantArn: __expectString,
assistantId: __expectString,
configuration: (_: any) => de_AIAgentConfiguration(__expectUnion(_), context),
description: __expectString,
modifiedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
name: __expectString,
origin: __expectString,
status: __expectString,
tags: _json,
type: __expectString,
visibilityStatus: __expectString,
}) as any;
};
/**
* deserializeAws_restJson1AIAgentSummary
*/
const de_AIAgentSummary = (output: any, context: __SerdeContext): AIAgentSummary => {
return take(output, {
aiAgentArn: __expectString,
aiAgentId: __expectString,
assistantArn: __expectString,
assistantId: __expectString,
configuration: (_: any) => de_AIAgentConfiguration(__expectUnion(_), context),
description: __expectString,
modifiedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
name: __expectString,
origin: __expectString,
status: __expectString,
tags: _json,
type: __expectString,
visibilityStatus: __expectString,
}) as any;
};
/**
* deserializeAws_restJson1AIAgentSummaryList
*/
const de_AIAgentSummaryList = (output: any, context: __SerdeContext): AIAgentSummary[] => {
const retVal = (output || [])
.filter((e: any) => e != null)
.map((entry: any) => {
return de_AIAgentSummary(entry, context);
});
return retVal;
};
/**
* deserializeAws_restJson1AIAgentVersionSummariesList
*/
const de_AIAgentVersionSummariesList = (output: any, context: __SerdeContext): AIAgentVersionSummary[] => {
const retVal = (output || [])
.filter((e: any) => e != null)
.map((entry: any) => {
return de_AIAgentVersionSummary(entry, context);
});
return retVal;
};
/**
* deserializeAws_restJson1AIAgentVersionSummary
*/
const de_AIAgentVersionSummary = (output: any, context: __SerdeContext): AIAgentVersionSummary => {
return take(output, {
aiAgentSummary: (_: any) => de_AIAgentSummary(_, context),
versionNumber: __expectLong,
}) as any;
};
// de_AIGuardrailContentPolicyConfig omitted.
/**
* deserializeAws_restJson1AIGuardrailContextualGroundingPolicyConfig
*/
const de_AIGuardrailContextualGroundingPolicyConfig = (
output: any,
context: __SerdeContext
): AIGuardrailContextualGroundingPolicyConfig => {
return take(output, {
filtersConfig: (_: any) => de_GuardrailContextualGroundingFiltersConfig(_, context),
}) as any;
};
/**
* deserializeAws_restJson1AIGuardrailData
*/
const de_AIGuardrailData = (output: any, context: __SerdeContext): AIGuardrailData => {
return take(output, {
aiGuardrailArn: __expectString,
aiGuardrailId: __expectString,
assistantArn: __expectString,
assistantId: __expectString,
blockedInputMessaging: __expectString,
blockedOutputsMessaging: __expectString,
contentPolicyConfig: _json,
contextualGroundingPolicyConfig: (_: any) => de_AIGuardrailContextualGroundingPolicyConfig(_, context),
description: __expectString,
modifiedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
name: __expectString,
sensitiveInformationPolicyConfig: _json,
status: __expectString,
tags: _json,
topicPolicyConfig: _json,
visibilityStatus: __expectString,
wordPolicyConfig: _json,
}) as any;
};
// de_AIGuardrailSensitiveInformationPolicyConfig omitted.
/**
* deserializeAws_restJson1AIGuardrailSummariesList
*/
const de_AIGuardrailSummariesList = (output: any, context: __SerdeContext): AIGuardrailSummary[] => {
const retVal = (output || [])
.filter((e: any) => e != null)
.map((entry: any) => {
return de_AIGuardrailSummary(entry, context);
});
return retVal;
};
/**
* deserializeAws_restJson1AIGuardrailSummary
*/
const de_AIGuardrailSummary = (output: any, context: __SerdeContext): AIGuardrailSummary => {
return take(output, {
aiGuardrailArn: __expectString,
aiGuardrailId: __expectString,
assistantArn: __expectString,
assistantId: __expectString,
description: __expectString,
modifiedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
name: __expectString,
status: __expectString,
tags: _json,
visibilityStatus: __expectString,
}) as any;
};
// de_AIGuardrailTopicPolicyConfig omitted.
/**
* deserializeAws_restJson1AIGuardrailVersionSummariesList
*/
const de_AIGuardrailVersionSummariesList = (output: any, context: __SerdeContext): AIGuardrailVersionSummary[] => {
const retVal = (output || [])
.filter((e: any) => e != null)
.map((entry: any) => {
return de_AIGuardrailVersionSummary(entry, context);
});
return retVal;
};
/**
* deserializeAws_restJson1AIGuardrailVersionSummary
*/
const de_AIGuardrailVersionSummary = (output: any, context: __SerdeContext): AIGuardrailVersionSummary => {
return take(output, {
aiGuardrailSummary: (_: any) => de_AIGuardrailSummary(_, context),
versionNumber: __expectLong,
}) as any;
};
// de_AIGuardrailWordPolicyConfig omitted.
/**
* deserializeAws_restJson1AIPromptData
*/
const de_AIPromptData = (output: any, context: __SerdeContext): AIPromptData => {
return take(output, {
aiPromptArn: __expectString,
aiPromptId: __expectString,
apiFormat: __expectString,
assistantArn: __expectString,
assistantId: __expectString,
description: __expectString,
modelId: __expectString,
modifiedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
name: __expectString,
origin: __expectString,
status: __expectString,
tags: _json,
templateConfiguration: (_: any) => _json(__expectUnion(_)),
templateType: __expectString,
type: __expectString,
visibilityStatus: __expectString,
}) as any;
};
/**
* deserializeAws_restJson1AIPromptSummary
*/
const de_AIPromptSummary = (output: any, context: __SerdeContext): AIPromptSummary => {
return take(output, {
aiPromptArn: __expectString,
aiPromptId: __expectString,
apiFormat: __expectString,
assistantArn: __expectString,
assistantId: __expectString,
description: __expectString,
modelId: __expectString,
modifiedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
name: __expectString,
origin: __expectString,
status: __expectString,
tags: _json,
templateType: __expectString,
type: __expectString,
visibilityStatus: __expectString,
}) as any;
};
/**
* deserializeAws_restJson1AIPromptSummaryList
*/
const de_AIPromptSummaryList = (output: any, context: __SerdeContext): AIPromptSummary[] => {
const retVal = (output || [])
.filter((e: any) => e != null)
.map((entry: any) => {
return de_AIPromptSummary(entry, context);
});
return retVal;
};
// de_AIPromptTemplateConfiguration omitted.
/**
* deserializeAws_restJson1AIPromptVersionSummariesList
*/
const de_AIPromptVersionSummariesList = (output: any, context: __SerdeContext): AIPromptVersionSummary[] => {
const retVal = (output || [])
.filter((e: any) => e != null)
.map((entry: any) => {
return de_AIPromptVersionSummary(entry, context);
});
return retVal;
};
/**
* deserializeAws_restJson1AIPromptVersionSummary
*/
const de_AIPromptVersionSummary = (output: any, context: __SerdeContext): AIPromptVersionSummary => {
return take(output, {
aiPromptSummary: (_: any) => de_AIPromptSummary(_, context),
versionNumber: __expectLong,
}) as any;
};
// de_AmazonConnectGuideAssociationData omitted.
// de_AndConditions omitted.
// de_AnswerRecommendationAIAgentConfiguration omitted.
// de_AppIntegrationsConfiguration omitted.
// de_AssistantAssociationData omitted.
// de_AssistantAssociationOutputData omitted.
// de_AssistantAssociationSummary omitted.
// de_AssistantAssociationSummaryList omitted.
// de_AssistantCapabilityConfiguration omitted.
// de_AssistantData omitted.
// de_AssistantIntegrationConfiguration omitted.
// de_AssistantList omitted.
// de_AssistantSummary omitted.
// de_AssociationConfiguration omitted.
// de_AssociationConfigurationData omitted.
// de_AssociationConfigurationList omitted.
// de_BedrockFoundationModelConfigurationForParsing omitted.
// de_Channels omitted.
// de_ChunkingConfiguration omitted.
// de_CitationSpan omitted.
// de_Configuration omitted.
// de_ConnectConfiguration omitted.
// de_ContactAttributeKeys omitted.
// de_ContentAssociationContents omitted.
// de_ContentAssociationData omitted.
// de_ContentAssociationSummary omitted.
// de_ContentAssociationSummaryList omitted.
/**
* deserializeAws_restJson1ContentData
*/
const de_ContentData = (output: any, context: __SerdeContext): ContentData => {
return take(output, {
contentArn: __expectString,
contentId: __expectString,
contentType: __expectString,
knowledgeBaseArn: __expectString,
knowledgeBaseId: __expectString,
linkOutUri: __expectString,
metadata: _json,
name: __expectString,
revisionId: __expectString,
status: __expectString,
tags: _json,
title: __expectString,
url: __expectString,
urlExpiry: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
}) as any;
};
/**
* deserializeAws_restJson1ContentDataDetails
*/
const de_ContentDataDetails = (output: any, context: __SerdeContext): ContentDataDetails => {
return take(output, {
rankingData: (_: any) => de_RankingData(_, context),
textData: _json,
}) as any;
};
// de_ContentFeedbackData omitted.
// de_ContentMetadata omitted.
// de_ContentReference omitted.
// de_ContentSummary omitted.
// de_ContentSummaryList omitted.
// de_ConversationState omitted.
// de_CustomAttributes omitted.
// de_CustomerProfileAttributes omitted.
/**
* deserializeAws_restJson1DataDetails
*/
const de_DataDetails = (output: any, context: __SerdeContext): DataDetails => {
if (output.contentData != null) {
return {