stringListValue: _json()

in clients/client-qbusiness/src/protocols/Aws_restJson1.ts [5103:5435]


      stringListValue: _json(output.stringListValue),
    };
  }
  if (__expectString(output.stringValue) !== undefined) {
    return { stringValue: __expectString(output.stringValue) as any };
  }
  return { $unknown: Object.entries(output)[0] };
};

/**
 * deserializeAws_restJson1DocumentDetailList
 */
const de_DocumentDetailList = (output: any, context: __SerdeContext): DocumentDetails[] => {
  const retVal = (output || [])
    .filter((e: any) => e != null)
    .map((entry: any) => {
      return de_DocumentDetails(entry, context);
    });
  return retVal;
};

/**
 * deserializeAws_restJson1DocumentDetails
 */
const de_DocumentDetails = (output: any, context: __SerdeContext): DocumentDetails => {
  return take(output, {
    createdAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    documentId: __expectString,
    error: _json,
    status: __expectString,
    updatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
  }) as any;
};

/**
 * deserializeAws_restJson1DocumentEnrichmentConfiguration
 */
const de_DocumentEnrichmentConfiguration = (output: any, context: __SerdeContext): DocumentEnrichmentConfiguration => {
  return take(output, {
    inlineConfigurations: (_: any) => de_InlineDocumentEnrichmentConfigurations(_, context),
    postExtractionHookConfiguration: (_: any) => de_HookConfiguration(_, context),
    preExtractionHookConfiguration: (_: any) => de_HookConfiguration(_, context),
  }) as any;
};

// de_EligibleDataSource omitted.

// de_EligibleDataSources omitted.

// de_EncryptionConfiguration omitted.

// de_ErrorDetail omitted.

// de_ExampleChatMessages omitted.

// de_FailedAttachmentEvent omitted.

// de_FailedDocument omitted.

// de_FailedDocuments omitted.

/**
 * deserializeAws_restJson1GroupStatusDetail
 */
const de_GroupStatusDetail = (output: any, context: __SerdeContext): GroupStatusDetail => {
  return take(output, {
    errorDetail: _json,
    lastUpdatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    status: __expectString,
  }) as any;
};

/**
 * deserializeAws_restJson1GroupStatusDetails
 */
const de_GroupStatusDetails = (output: any, context: __SerdeContext): GroupStatusDetail[] => {
  const retVal = (output || [])
    .filter((e: any) => e != null)
    .map((entry: any) => {
      return de_GroupStatusDetail(entry, context);
    });
  return retVal;
};

// de_GroupSummary omitted.

// de_GroupSummaryList omitted.

// de_HallucinationReductionConfiguration omitted.

/**
 * deserializeAws_restJson1HookConfiguration
 */
const de_HookConfiguration = (output: any, context: __SerdeContext): HookConfiguration => {
  return take(output, {
    invocationCondition: (_: any) => de_DocumentAttributeCondition(_, context),
    lambdaArn: __expectString,
    roleArn: __expectString,
    s3BucketName: __expectString,
  }) as any;
};

// de_IdcAuthConfiguration omitted.

// de_IdentityProviderConfiguration omitted.

// de_ImageExtractionConfiguration omitted.

// de_ImageSourceDetails omitted.

/**
 * deserializeAws_restJson1Index
 */
const de_Index = (output: any, context: __SerdeContext): Index => {
  return take(output, {
    createdAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    displayName: __expectString,
    indexId: __expectString,
    status: __expectString,
    updatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
  }) as any;
};

// de_IndexCapacityConfiguration omitted.

// de_IndexStatistics omitted.

/**
 * deserializeAws_restJson1Indices
 */
const de_Indices = (output: any, context: __SerdeContext): Index[] => {
  const retVal = (output || [])
    .filter((e: any) => e != null)
    .map((entry: any) => {
      return de_Index(entry, context);
    });
  return retVal;
};

/**
 * deserializeAws_restJson1InlineDocumentEnrichmentConfiguration
 */
const de_InlineDocumentEnrichmentConfiguration = (
  output: any,
  context: __SerdeContext
): InlineDocumentEnrichmentConfiguration => {
  return take(output, {
    condition: (_: any) => de_DocumentAttributeCondition(_, context),
    documentContentOperator: __expectString,
    target: (_: any) => de_DocumentAttributeTarget(_, context),
  }) as any;
};

/**
 * deserializeAws_restJson1InlineDocumentEnrichmentConfigurations
 */
const de_InlineDocumentEnrichmentConfigurations = (
  output: any,
  context: __SerdeContext
): InlineDocumentEnrichmentConfiguration[] => {
  const retVal = (output || [])
    .filter((e: any) => e != null)
    .map((entry: any) => {
      return de_InlineDocumentEnrichmentConfiguration(entry, context);
    });
  return retVal;
};

// de_KendraIndexConfiguration omitted.

// de_ListPluginTypeMetadataSummaries omitted.

// de_MediaExtractionConfiguration omitted.

/**
 * deserializeAws_restJson1Message
 */
const de_Message = (output: any, context: __SerdeContext): Message => {
  return take(output, {
    actionExecution: (_: any) => de_ActionExecution(_, context),
    actionReview: (_: any) => de_ActionReview(_, context),
    attachments: _json,
    body: __expectString,
    messageId: __expectString,
    sourceAttribution: (_: any) => de_SourceAttributions(_, context),
    time: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    type: __expectString,
  }) as any;
};

/**
 * deserializeAws_restJson1Messages
 */
const de_Messages = (output: any, context: __SerdeContext): Message[] => {
  const retVal = (output || [])
    .filter((e: any) => e != null)
    .map((entry: any) => {
      return de_Message(entry, context);
    });
  return retVal;
};

/**
 * deserializeAws_restJson1MetadataEvent
 */
const de_MetadataEvent = (output: any, context: __SerdeContext): MetadataEvent => {
  return take(output, {
    conversationId: __expectString,
    finalTextMessage: __expectString,
    sourceAttributions: (_: any) => de_SourceAttributions(_, context),
    systemMessageId: __expectString,
    userMessageId: __expectString,
  }) as any;
};

// de_NativeIndexConfiguration omitted.

// de_NoAuthConfiguration omitted.

// de_NumberAttributeBoostingConfiguration omitted.

// de_OAuth2ClientCredentialConfiguration omitted.

// de_OpenIDConnectProviderConfiguration omitted.

// de_PersonalizationConfiguration omitted.

/**
 * deserializeAws_restJson1Plugin
 */
const de_Plugin = (output: any, context: __SerdeContext): Plugin => {
  return take(output, {
    buildStatus: __expectString,
    createdAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    displayName: __expectString,
    pluginId: __expectString,
    serverUrl: __expectString,
    state: __expectString,
    type: __expectString,
    updatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
  }) as any;
};

// de_PluginAuthConfiguration omitted.

/**
 * deserializeAws_restJson1Plugins
 */
const de_Plugins = (output: any, context: __SerdeContext): Plugin[] => {
  const retVal = (output || [])
    .filter((e: any) => e != null)
    .map((entry: any) => {
      return de_Plugin(entry, context);
    });
  return retVal;
};

// de_PluginTypeMetadataSummary omitted.

// de_QAppsConfiguration omitted.

// de_QuickSightConfiguration omitted.

/**
 * deserializeAws_restJson1RelevantContent
 */
const de_RelevantContent = (output: any, context: __SerdeContext): RelevantContent => {
  return take(output, {
    content: __expectString,
    documentAttributes: (_: any) => de_DocumentAttributes(_, context),
    documentId: __expectString,
    documentTitle: __expectString,
    documentUri: __expectString,
    scoreAttributes: _json,
  }) as any;
};

/**
 * deserializeAws_restJson1RelevantContentList
 */
const de_RelevantContentList = (output: any, context: __SerdeContext): RelevantContent[] => {
  const retVal = (output || [])
    .filter((e: any) => e != null)
    .map((entry: any) => {
      return de_RelevantContent(entry, context);
    });
  return retVal;
};

// de_Retriever omitted.

// de_RetrieverConfiguration omitted.

// de_Retrievers omitted.

// de_Rule omitted.

// de_RuleConfiguration omitted.

// de_Rules omitted.

// de_S3 omitted.

// de_SamlConfiguration omitted.

// de_SamlProviderConfiguration omitted.

// de_ScoreAttributes omitted.

// de_SecurityGroupIds omitted.

// de_SnippetExcerpt omitted.

/**
 * deserializeAws_restJson1SourceAttribution
 */
const de_SourceAttribution = (output: any, context: __SerdeContext): SourceAttribution => {
  return take(output, {
    citationNumber: __expectInt32,
    snippet: __expectString,
    textMessageSegments: _json,
    title: __expectString,
    updatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    url: __expectString,
  }) as any;
};

/**
 * deserializeAws_restJson1SourceAttributions
 */
const de_SourceAttributions = (output: any, context: __SerdeContext): SourceAttribution[] => {
  const retVal = (output || []).map((entry: any) => {
    if (entry === null) {