notebooklm 4.8.0 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/notebooklm/generated.rb +63 -1
- data/lib/notebooklm/version.rb +1 -1
- data/notebooklm.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0fac91256d7f9bfc29fb3e53ac60ca84bcf3f2ffd820692661a1296f0a15166
|
|
4
|
+
data.tar.gz: fa22abcbcdb5dfaf18d544bedb32783456d40acbc3f370b8af81a5338fe5859c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 833d0fccb6af4c290ca6ae7b2fca1725f1389b140d5993d93ecec28bf3074077c73132f774f2b22736125b8a5b3c1d500dd4446eec41c0904be64680686f1b8d
|
|
7
|
+
data.tar.gz: 348c3a22520eedc592e9821245952641a54c52e9193d2a44990b5c4c69abfffcc2ba532f97e122be88c160af42c45ee8c33bff3cdc5ac34b1b5d25a85b95d787
|
data/README.md
CHANGED
|
@@ -10,7 +10,7 @@ server's REST API as documented methods rather than hashes you have to guess at.
|
|
|
10
10
|
|
|
11
11
|
## Features
|
|
12
12
|
|
|
13
|
-
- **All
|
|
13
|
+
- **All 59 operations**, generated from the server's OpenAPI specification, so
|
|
14
14
|
a route added upstream reaches this gem on the release that ships it —
|
|
15
15
|
rather than whenever someone remembers to add a method.
|
|
16
16
|
- **Every shape documented**: each field the specification describes has a
|
|
@@ -41,7 +41,7 @@ server's REST API as documented methods rather than hashes you have to guess at.
|
|
|
41
41
|
|
|
42
42
|
```ruby
|
|
43
43
|
# Gemfile
|
|
44
|
-
gem 'notebooklm', '~> 4.
|
|
44
|
+
gem 'notebooklm', '~> 4.9'
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
or `gem install notebooklm`.
|
data/lib/notebooklm/generated.rb
CHANGED
|
@@ -791,6 +791,26 @@ module NotebookLM
|
|
|
791
791
|
field :deleted, 'deleted'
|
|
792
792
|
end
|
|
793
793
|
|
|
794
|
+
# The `CancelAnswerData` shape.
|
|
795
|
+
class CancelAnswerData < Model
|
|
796
|
+
# @return [String]
|
|
797
|
+
field :notebook_id, 'notebookId'
|
|
798
|
+
# @return [String]
|
|
799
|
+
field :conversation_id, 'conversationId'
|
|
800
|
+
# @return [Boolean]
|
|
801
|
+
field :cancelled, 'cancelled'
|
|
802
|
+
end
|
|
803
|
+
|
|
804
|
+
# The `CancelResearchData` shape.
|
|
805
|
+
class CancelResearchData < Model
|
|
806
|
+
# @return [String]
|
|
807
|
+
field :notebook_id, 'notebookId'
|
|
808
|
+
# @return [String]
|
|
809
|
+
field :run_id, 'runId'
|
|
810
|
+
# @return [Boolean]
|
|
811
|
+
field :cancelled, 'cancelled'
|
|
812
|
+
end
|
|
813
|
+
|
|
794
814
|
# The `GetShareStatusData` shape.
|
|
795
815
|
class GetShareStatusData < Model
|
|
796
816
|
# @return [Boolean]
|
|
@@ -1130,7 +1150,7 @@ module NotebookLM
|
|
|
1130
1150
|
# and the documentation of the API stay separate things.
|
|
1131
1151
|
module Operations
|
|
1132
1152
|
# Every operation id, in specification order. The server exposes
|
|
1133
|
-
#
|
|
1153
|
+
# 59 of them.
|
|
1134
1154
|
OPERATION_IDS = %w[
|
|
1135
1155
|
get_server_info
|
|
1136
1156
|
get_health
|
|
@@ -1169,6 +1189,8 @@ module NotebookLM
|
|
|
1169
1189
|
check_source_freshness
|
|
1170
1190
|
get_chat_history
|
|
1171
1191
|
delete_chat_history
|
|
1192
|
+
cancel_answer
|
|
1193
|
+
cancel_research
|
|
1172
1194
|
get_share_status
|
|
1173
1195
|
share_notebook
|
|
1174
1196
|
retry_content
|
|
@@ -1781,6 +1803,46 @@ module NotebookLM
|
|
|
1781
1803
|
DeleteChatHistoryData.new(payload)
|
|
1782
1804
|
end
|
|
1783
1805
|
|
|
1806
|
+
# Stop an in-flight answer
|
|
1807
|
+
#
|
|
1808
|
+
# The web UI's "Stop" on a streaming answer. RPC-backed and
|
|
1809
|
+
# fire-and-forget: the server does not confirm, so `cancelled: true` means
|
|
1810
|
+
# the stop was sent, not that a turn was necessarily running. Defaults to
|
|
1811
|
+
# the most recent conversation.
|
|
1812
|
+
#
|
|
1813
|
+
# `POST /notebooks/{id}/chat/cancel`
|
|
1814
|
+
#
|
|
1815
|
+
# @param id [String]
|
|
1816
|
+
# @param conversation_id [String, nil]
|
|
1817
|
+
# @return [CancelAnswerData]
|
|
1818
|
+
# @raise [NotebookLM::Refused] when the server declines the request
|
|
1819
|
+
def cancel_answer(id:, conversation_id: nil)
|
|
1820
|
+
query = {}
|
|
1821
|
+
query['conversation_id'] = conversation_id unless conversation_id.nil?
|
|
1822
|
+
payload = call('cancel_answer', :post, "/notebooks/#{id}/chat/cancel", query: query)
|
|
1823
|
+
CancelAnswerData.new(payload)
|
|
1824
|
+
end
|
|
1825
|
+
|
|
1826
|
+
# Cancel an in-flight research run
|
|
1827
|
+
#
|
|
1828
|
+
# Cancels a Fast Research run. RPC-backed and fire-and-forget: the server
|
|
1829
|
+
# keys on the run id alone and does not validate it, so `cancelled: true`
|
|
1830
|
+
# means the cancel was sent; confirm with research_sources. `run_id`
|
|
1831
|
+
# defaults to the notebook's current research task.
|
|
1832
|
+
#
|
|
1833
|
+
# `POST /notebooks/{id}/research/cancel`
|
|
1834
|
+
#
|
|
1835
|
+
# @param id [String]
|
|
1836
|
+
# @param run_id [String, nil]
|
|
1837
|
+
# @return [CancelResearchData]
|
|
1838
|
+
# @raise [NotebookLM::Refused] when the server declines the request
|
|
1839
|
+
def cancel_research(id:, run_id: nil)
|
|
1840
|
+
query = {}
|
|
1841
|
+
query['run_id'] = run_id unless run_id.nil?
|
|
1842
|
+
payload = call('cancel_research', :post, "/notebooks/#{id}/research/cancel", query: query)
|
|
1843
|
+
CancelResearchData.new(payload)
|
|
1844
|
+
end
|
|
1845
|
+
|
|
1784
1846
|
# Read a notebook's sharing status
|
|
1785
1847
|
#
|
|
1786
1848
|
# `GET /notebooks/{id}/share`
|
data/lib/notebooklm/version.rb
CHANGED
|
@@ -4,5 +4,5 @@ module NotebookLM
|
|
|
4
4
|
# The gem tracks the server's version on purpose: it is a client for one
|
|
5
5
|
# API, and a reader comparing the two should not have to map between two
|
|
6
6
|
# numbering schemes. Kept in step by `npm run version:sync`.
|
|
7
|
-
VERSION = '4.
|
|
7
|
+
VERSION = '4.9.0'
|
|
8
8
|
end
|
data/notebooklm.gemspec
CHANGED
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.description = <<~TEXT
|
|
13
13
|
Google ships no public API for the consumer NotebookLM. This gem does not
|
|
14
14
|
own a browser: it talks to the local notebooklm-mcp server that does, and
|
|
15
|
-
gives you its
|
|
15
|
+
gives you its 59 operations as documented Ruby methods, generated from the
|
|
16
16
|
server's OpenAPI specification. No runtime dependencies.
|
|
17
17
|
TEXT
|
|
18
18
|
|
metadata
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: notebooklm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Roomi Fields
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |
|
|
14
14
|
Google ships no public API for the consumer NotebookLM. This gem does not
|
|
15
15
|
own a browser: it talks to the local notebooklm-mcp server that does, and
|
|
16
|
-
gives you its
|
|
16
|
+
gives you its 59 operations as documented Ruby methods, generated from the
|
|
17
17
|
server's OpenAPI specification. No runtime dependencies.
|
|
18
18
|
email:
|
|
19
19
|
executables: []
|