Documentation
¶
Index ¶
- type Client
- func (c *Client) AddSourceFile(notebookID, filePath string) (*model.Source, error)
- func (c *Client) AddSourceText(notebookID, title, content string) (*model.Source, error)
- func (c *Client) AddSourceURL(notebookID, sourceURL string) (*model.Source, error)
- func (c *Client) Ask(notebookID, question string, sourceIDs []string) (*model.AskResult, error)
- func (c *Client) CreateArtifact(notebookID string, typeCode rpc.ArtifactTypeCode) (*model.Artifact, error)
- func (c *Client) CreateNote(notebookID, title, content string) (*model.Note, error)
- func (c *Client) CreateNotebook(title string) (*model.Notebook, error)
- func (c *Client) DeleteArtifact(notebookID, artifactID string) error
- func (c *Client) DeleteNote(notebookID, noteID string) error
- func (c *Client) DeleteNotebook(notebookID string) error
- func (c *Client) DeleteSource(notebookID, sourceID string) error
- func (c *Client) GenerateAudio(notebookID string, instructions string) (*model.Artifact, error)
- func (c *Client) GetArtifact(notebookID, artifactID string) (*model.Artifact, error)
- func (c *Client) GetChatHistory(notebookID string) ([]model.ChatEntry, error)
- func (c *Client) GetNotebook(notebookID string) (*model.Notebook, error)
- func (c *Client) GetSharing(notebookID string) (*ShareStatus, error)
- func (c *Client) GetSource(notebookID, sourceID string) (*model.Source, error)
- func (c *Client) ImportResearch(notebookID, researchID string) error
- func (c *Client) ListArtifacts(notebookID string) ([]model.Artifact, error)
- func (c *Client) ListNotebooks() ([]model.Notebook, error)
- func (c *Client) ListNotes(notebookID string) ([]model.Note, error)
- func (c *Client) ListSources(notebookID string) ([]model.Source, error)
- func (c *Client) PollResearch(notebookID, researchID string) (*ResearchResult, error)
- func (c *Client) RefreshSource(notebookID, sourceID string) error
- func (c *Client) RenameNotebook(notebookID, newTitle string) error
- func (c *Client) SetSharing(notebookID string, permission model.SharePermission) error
- func (c *Client) StartResearch(notebookID, query string) (*ResearchResult, error)
- func (c *Client) UpdateNote(notebookID, noteID, title, content string) (*model.Note, error)
- func (c *Client) WaitForArtifact(notebookID, artifactID string, timeout time.Duration) (*model.Artifact, error)
- func (c *Client) WaitForSource(notebookID, sourceID string, timeout time.Duration) (*model.Source, error)
- type Error
- type ResearchResult
- type ShareStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the main API client for NotebookLM.
func Authenticate ¶
Authenticate loads saved auth state and creates a client.
func NewClient ¶
func NewClient(tokens *auth.AuthTokens) *Client
NewClient creates a new API client from auth tokens.
func (*Client) AddSourceFile ¶
AddSourceFile uploads a file as a source to a notebook (3-step resumable upload).
func (*Client) AddSourceText ¶
AddSourceText adds a text/paste source to a notebook.
func (*Client) AddSourceURL ¶
AddSourceURL adds a URL source to a notebook.
func (*Client) CreateArtifact ¶
func (c *Client) CreateArtifact(notebookID string, typeCode rpc.ArtifactTypeCode) (*model.Artifact, error)
CreateArtifact creates a new artifact (report, quiz, etc.).
func (*Client) CreateNote ¶
CreateNote creates a new note in the notebook.
func (*Client) CreateNotebook ¶
CreateNotebook creates a new notebook with the given title.
func (*Client) DeleteArtifact ¶
DeleteArtifact deletes an artifact.
func (*Client) DeleteNote ¶
DeleteNote deletes a note.
func (*Client) DeleteNotebook ¶
DeleteNotebook deletes a notebook by ID.
func (*Client) DeleteSource ¶
DeleteSource removes a source from a notebook.
func (*Client) GenerateAudio ¶
GenerateAudio generates an audio overview for the notebook.
func (*Client) GetArtifact ¶
GetArtifact returns artifact details including content.
func (*Client) GetChatHistory ¶
GetChatHistory returns recent conversation turns for a notebook.
func (*Client) GetNotebook ¶
GetNotebook gets details about a specific notebook.
func (*Client) GetSharing ¶
func (c *Client) GetSharing(notebookID string) (*ShareStatus, error)
GetSharing returns the current sharing status.
func (*Client) ImportResearch ¶
ImportResearch imports research results as a source.
func (*Client) ListArtifacts ¶
ListArtifacts returns all artifacts in a notebook.
func (*Client) ListNotebooks ¶
ListNotebooks returns all notebooks for the authenticated user.
func (*Client) ListSources ¶
ListSources returns all sources in a notebook.
func (*Client) PollResearch ¶
func (c *Client) PollResearch(notebookID, researchID string) (*ResearchResult, error)
PollResearch checks the progress of a research task.
func (*Client) RefreshSource ¶
RefreshSource refreshes a source.
func (*Client) RenameNotebook ¶
RenameNotebook renames a notebook.
func (*Client) SetSharing ¶
func (c *Client) SetSharing(notebookID string, permission model.SharePermission) error
SetSharing sets the sharing permissions for a notebook.
func (*Client) StartResearch ¶
func (c *Client) StartResearch(notebookID, query string) (*ResearchResult, error)
StartResearch initiates a deep research task.
func (*Client) UpdateNote ¶
UpdateNote updates an existing note.