FeedSearchPostsInput constructor

  1. @JsonSerializable(includeIfNull: false)
const FeedSearchPostsInput({
  1. required String q,
  2. @FeedSearchPostsSortConverter() FeedSearchPostsSort? sort,
  3. String? since,
  4. String? until,
  5. String? mentions,
  6. String? author,
  7. String? lang,
  8. String? domain,
  9. String? url,
  10. List<String>? tag,
  11. @Default(25) int limit,
  12. String? cursor,
  13. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory FeedSearchPostsInput({
  /// Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
  required String q,

  /// Specifies the ranking order of results.
  @FeedSearchPostsSortConverter() FeedSearchPostsSort? sort,

  /// Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD).
  String? since,

  /// Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD).
  String? until,

  /// Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions.
  String? mentions,

  /// Filter to posts by the given account. Handles are resolved to DID before query-time.
  String? author,

  /// Filter to posts in the given language. Expected to be based on post language field, though server may override language detection.
  String? lang,

  /// Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization.
  String? domain,

  /// Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.
  String? url,
  List<String>? tag,
  @Default(25) int limit,

  /// Optional pagination mechanism; may not necessarily allow scrolling through entire result set.
  String? cursor,

  Map<String, dynamic>? $unknown,
}) = _FeedSearchPostsInput;