queries

package
v0.1.86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 0 Imported by: 0

Documentation

Overview

Package queries provides query inference and execution for integration sources.

Query inference converts folder/file names to source-specific search queries. For example: "unread-emails" → Gmail query "is:unread"

Inference happens on the gateway side via BAML. The client just calls gRPC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GDriveQuerySpec

type GDriveQuerySpec struct {
	Query          string `json:"gdrive_query"`
	Limit          int    `json:"limit"`
	FilenameFormat string `json:"filename_format"`
}

GDriveQuerySpec is the output format for Google Drive queries.

type GitHubQuerySpec

type GitHubQuerySpec struct {
	Query          string `json:"github_query"`
	SearchType     string `json:"search_type"`  // "repos", "issues", or "prs"
	ContentType    string `json:"content_type"` // "diff", "markdown", or "json"
	Limit          int    `json:"limit"`
	FilenameFormat string `json:"filename_format"`
}

GitHubQuerySpec is the output format for GitHub queries.

type GmailQuerySpec

type GmailQuerySpec struct {
	Query          string `json:"gmail_query"`
	Limit          int    `json:"limit"`
	FilenameFormat string `json:"filename_format"`
}

GmailQuerySpec is the output format for Gmail queries.

type LinearQuerySpec added in v0.1.9

type LinearQuerySpec struct {
	Query          string `json:"linear_query"`
	SearchType     string `json:"search_type"` // "issues" or "projects"
	Limit          int    `json:"limit"`
	FilenameFormat string `json:"filename_format"`
}

LinearQuerySpec is the output format for Linear queries.

type NotionQuerySpec

type NotionQuerySpec struct {
	Query          string `json:"notion_query"`
	Limit          int    `json:"limit"`
	FilenameFormat string `json:"filename_format"`
}

NotionQuerySpec is the output format for Notion queries.

type PostHogQuerySpec added in v0.1.32

type PostHogQuerySpec struct {
	Query          string `json:"posthog_query"`
	SearchType     string `json:"search_type"` // "events", "feature-flags", "insights", "cohorts"
	ProjectID      int    `json:"project_id"`  // 0 = first available project
	Limit          int    `json:"limit"`
	FilenameFormat string `json:"filename_format"`
}

PostHogQuerySpec is the output format for PostHog queries.

type SlackQuerySpec added in v0.1.9

type SlackQuerySpec struct {
	Query          string `json:"slack_query"`
	Limit          int    `json:"limit"`
	FilenameFormat string `json:"filename_format"`
}

SlackQuerySpec is the output format for Slack queries.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL