async listDocuments()

in packages/enterprise-search/src/api/workplace/api.ts [125:137]


  async listDocuments (this: That, params: T.ListDocumentsRequest, options?: TransportRequestOptions): Promise<T.ListDocumentsResponse> {
    const {
      content_source_id,
      body,
      ...querystring
    } = params ?? {}
    return await this.transport.request<T.ListDocumentsResponse>({
      method: 'POST',
      path: `/api/ws/v1/sources/${content_source_id}/documents`,
      querystring,
      body: body
    }, options)
  }