notebooklm 4.7.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 +145 -1
- data/lib/notebooklm/version.rb +1 -1
- data/notebooklm.gemspec +5 -2
- metadata +6 -5
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
|
@@ -46,6 +46,67 @@ module NotebookLM
|
|
|
46
46
|
field :troubleshooting_tip, 'troubleshooting_tip'
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
# The `GetUsageData` shape.
|
|
50
|
+
class GetUsageData < Model
|
|
51
|
+
# disabled when the account has no meter; ready when windows/actions are filled.
|
|
52
|
+
# @return [String]
|
|
53
|
+
field :status, 'status'
|
|
54
|
+
# False only when the account's compute-meter bit is off.
|
|
55
|
+
# @return [Boolean]
|
|
56
|
+
field :metering_enabled, 'metering_enabled'
|
|
57
|
+
# @return [Array<UsageWindow>]
|
|
58
|
+
field :windows, 'windows', type: 'UsageWindow', array: true
|
|
59
|
+
# @return [Array<UsageAction>]
|
|
60
|
+
field :actions, 'actions', type: 'UsageAction', array: true
|
|
61
|
+
# The window the frontend would show (weekly once weekly ≥ 100%, else five-hour). Null unless ready.
|
|
62
|
+
# @return [Object]
|
|
63
|
+
field :active_window, 'active_window'
|
|
64
|
+
# Whether the active window is spent. Null unless ready.
|
|
65
|
+
# @return [Boolean, nil]
|
|
66
|
+
field :is_exhausted, 'is_exhausted'
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# The `UsageWindow` shape.
|
|
70
|
+
class UsageWindow < Model
|
|
71
|
+
# Which rolling window this row measures.
|
|
72
|
+
# @return [String]
|
|
73
|
+
field :kind, 'kind'
|
|
74
|
+
# Raw window code (1 five-hour, 2 weekly).
|
|
75
|
+
# @return [Integer]
|
|
76
|
+
field :code, 'code'
|
|
77
|
+
# Percent of the window already spent (0–100), or null.
|
|
78
|
+
# @return [Float, nil]
|
|
79
|
+
field :used_percent, 'used_percent'
|
|
80
|
+
# Percent still available (0–100), or null.
|
|
81
|
+
# @return [Float, nil]
|
|
82
|
+
field :remaining_percent, 'remaining_percent'
|
|
83
|
+
# When the window resets, ISO 8601 UTC, or null.
|
|
84
|
+
# @return [String, nil]
|
|
85
|
+
field :resets_at, 'resets_at'
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# The `UsageAction` shape.
|
|
89
|
+
class UsageAction < Model
|
|
90
|
+
# Raw action code (1–22 at time of writing).
|
|
91
|
+
# @return [Integer]
|
|
92
|
+
field :code, 'code'
|
|
93
|
+
# Named action (e.g. qna, audio_overview), or null for an unknown code.
|
|
94
|
+
# @return [String, nil]
|
|
95
|
+
field :kind, 'kind'
|
|
96
|
+
# Whether this kind of work can still be started now.
|
|
97
|
+
# @return [Boolean]
|
|
98
|
+
field :has_sufficient_quota, 'has_sufficient_quota'
|
|
99
|
+
# Relative cost band, or null.
|
|
100
|
+
# @return [String, nil]
|
|
101
|
+
field :cost_tier, 'cost_tier'
|
|
102
|
+
# Literal count of deferred artifact generations left, or null.
|
|
103
|
+
# @return [Integer, nil]
|
|
104
|
+
field :remaining_deferred_artifact_generations, 'remaining_deferred_artifact_generations'
|
|
105
|
+
# The server's current cost estimate as a percent of budget, or null.
|
|
106
|
+
# @return [Float, nil]
|
|
107
|
+
field :estimated_cost_percent, 'estimated_cost_percent'
|
|
108
|
+
end
|
|
109
|
+
|
|
49
110
|
# A UTCP manual, whose shape belongs to the client's own model rather than to this server. Every url is rebased onto the address the request arrived at.
|
|
50
111
|
class UtcpManual < Model
|
|
51
112
|
# @return [String]
|
|
@@ -730,6 +791,26 @@ module NotebookLM
|
|
|
730
791
|
field :deleted, 'deleted'
|
|
731
792
|
end
|
|
732
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
|
+
|
|
733
814
|
# The `GetShareStatusData` shape.
|
|
734
815
|
class GetShareStatusData < Model
|
|
735
816
|
# @return [Boolean]
|
|
@@ -1069,10 +1150,11 @@ module NotebookLM
|
|
|
1069
1150
|
# and the documentation of the API stay separate things.
|
|
1070
1151
|
module Operations
|
|
1071
1152
|
# Every operation id, in specification order. The server exposes
|
|
1072
|
-
#
|
|
1153
|
+
# 59 of them.
|
|
1073
1154
|
OPERATION_IDS = %w[
|
|
1074
1155
|
get_server_info
|
|
1075
1156
|
get_health
|
|
1157
|
+
get_usage
|
|
1076
1158
|
get_utcp_manual
|
|
1077
1159
|
setup_auth
|
|
1078
1160
|
de_auth
|
|
@@ -1107,6 +1189,8 @@ module NotebookLM
|
|
|
1107
1189
|
check_source_freshness
|
|
1108
1190
|
get_chat_history
|
|
1109
1191
|
delete_chat_history
|
|
1192
|
+
cancel_answer
|
|
1193
|
+
cancel_research
|
|
1110
1194
|
get_share_status
|
|
1111
1195
|
share_notebook
|
|
1112
1196
|
retry_content
|
|
@@ -1151,6 +1235,26 @@ module NotebookLM
|
|
|
1151
1235
|
GetHealthData.new(payload)
|
|
1152
1236
|
end
|
|
1153
1237
|
|
|
1238
|
+
# Live compute-meter usage (quota)
|
|
1239
|
+
#
|
|
1240
|
+
# The account's live compute-meter usage. NotebookLM's quota is
|
|
1241
|
+
# compute-based: one meter with a five-hour window and a weekly window,
|
|
1242
|
+
# each a percentage, plus a per-action table saying what still has quota.
|
|
1243
|
+
# There is no daily cap and no balance. Account-scoped — no notebook.
|
|
1244
|
+
#
|
|
1245
|
+
# `status` is `disabled` when the account has no compute meter, `ready`
|
|
1246
|
+
# with the windows and actions filled when it does, `skipped` when the
|
|
1247
|
+
# server declined to report, and the call fails on a server `failed`.
|
|
1248
|
+
#
|
|
1249
|
+
# `GET /usage`
|
|
1250
|
+
#
|
|
1251
|
+
# @return [GetUsageData]
|
|
1252
|
+
# @raise [NotebookLM::Refused] when the server declines the request
|
|
1253
|
+
def get_usage
|
|
1254
|
+
payload = call('get_usage', :get, '/usage')
|
|
1255
|
+
GetUsageData.new(payload)
|
|
1256
|
+
end
|
|
1257
|
+
|
|
1154
1258
|
# UTCP tool manual for this server
|
|
1155
1259
|
#
|
|
1156
1260
|
# The manual a Universal Tool Calling Protocol client reads before
|
|
@@ -1699,6 +1803,46 @@ module NotebookLM
|
|
|
1699
1803
|
DeleteChatHistoryData.new(payload)
|
|
1700
1804
|
end
|
|
1701
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
|
+
|
|
1702
1846
|
# Read a notebook's sharing status
|
|
1703
1847
|
#
|
|
1704
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,16 +12,19 @@ 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
|
|
|
19
|
-
|
|
19
|
+
# The documentation site, not the repository: this is the link RubyGems
|
|
20
|
+
# publishes, and it is the highest-authority page pointing at the docs.
|
|
21
|
+
spec.homepage = 'https://notebooklm.roomi-fields.com/'
|
|
20
22
|
spec.metadata = {
|
|
21
23
|
'homepage_uri' => spec.homepage,
|
|
22
24
|
'source_code_uri' => 'https://github.com/roomi-fields/notebooklm-mcp/tree/main/gems/notebooklm',
|
|
23
25
|
'changelog_uri' => 'https://github.com/roomi-fields/notebooklm-mcp/blob/main/CHANGELOG.md',
|
|
24
26
|
'documentation_uri' => 'https://notebooklm.roomi-fields.com/',
|
|
27
|
+
'wiki_uri' => 'https://github.com/roomi-fields/notebooklm-mcp',
|
|
25
28
|
'bug_tracker_uri' => 'https://github.com/roomi-fields/notebooklm-mcp/issues',
|
|
26
29
|
'rubygems_mfa_required' => 'true'
|
|
27
30
|
}
|
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: []
|
|
@@ -29,14 +29,15 @@ files:
|
|
|
29
29
|
- lib/notebooklm/model.rb
|
|
30
30
|
- lib/notebooklm/version.rb
|
|
31
31
|
- notebooklm.gemspec
|
|
32
|
-
homepage: https://
|
|
32
|
+
homepage: https://notebooklm.roomi-fields.com/
|
|
33
33
|
licenses:
|
|
34
34
|
- MIT
|
|
35
35
|
metadata:
|
|
36
|
-
homepage_uri: https://
|
|
36
|
+
homepage_uri: https://notebooklm.roomi-fields.com/
|
|
37
37
|
source_code_uri: https://github.com/roomi-fields/notebooklm-mcp/tree/main/gems/notebooklm
|
|
38
38
|
changelog_uri: https://github.com/roomi-fields/notebooklm-mcp/blob/main/CHANGELOG.md
|
|
39
39
|
documentation_uri: https://notebooklm.roomi-fields.com/
|
|
40
|
+
wiki_uri: https://github.com/roomi-fields/notebooklm-mcp
|
|
40
41
|
bug_tracker_uri: https://github.com/roomi-fields/notebooklm-mcp/issues
|
|
41
42
|
rubygems_mfa_required: 'true'
|
|
42
43
|
post_install_message:
|