notebooklm 4.7.0 → 4.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e55f36aa3d5bc491e1c271b662aa8897b9629c3e15dbfd9468d9d9016ed2cb7e
4
- data.tar.gz: e42aaea281852a835e1929d9de0493cb50c7772667c2a32b292402eaf2377f44
3
+ metadata.gz: 8dc695d85ee59c9c7ab433bf9b1f8f45f4220329d6a4a8e62bd73e2be4092a5f
4
+ data.tar.gz: ba7ed1d0287063219659edad94667656373834258f7bf785be687a3dc012a70e
5
5
  SHA512:
6
- metadata.gz: 56dcb0bacd5ed50bcd92037614d4634e6ca8c3afb1f313abbeaa619672962abd9a35d8bedcdb0f9f6a025e9e254620f7eb581f74ceab16faa50710f69e8b7f90
7
- data.tar.gz: 1f9d912626bd6165e6f2caf120148e2a7d63ba330774a9a2bafbdfee38302b6ceb8d48160e8237c3fa2d64bdc2889db292b4d3c44482e9bab088ec0977b511e0
6
+ metadata.gz: 2338e16b1a63825747f449831fc21f121a8648e1dbd113a6aa08b589486397c0e6ebf77afc31cb3ce2c12b5f879def22293b98ac6aa3923b5ccd61a619b6648b
7
+ data.tar.gz: a28bf735032bf1821d9792014ba683818c8a0c140ca0b527333f6cefe128b92c528bf8b84d46cd2cd4c8c3406f0c85825628db70025dd05f7ba91ea8234b71ce
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 56 operations**, generated from the server's OpenAPI specification, so
13
+ - **All 57 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.7'
44
+ gem 'notebooklm', '~> 4.8'
45
45
  ```
46
46
 
47
47
  or `gem install notebooklm`.
@@ -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]
@@ -1069,10 +1130,11 @@ module NotebookLM
1069
1130
  # and the documentation of the API stay separate things.
1070
1131
  module Operations
1071
1132
  # Every operation id, in specification order. The server exposes
1072
- # 56 of them.
1133
+ # 57 of them.
1073
1134
  OPERATION_IDS = %w[
1074
1135
  get_server_info
1075
1136
  get_health
1137
+ get_usage
1076
1138
  get_utcp_manual
1077
1139
  setup_auth
1078
1140
  de_auth
@@ -1151,6 +1213,26 @@ module NotebookLM
1151
1213
  GetHealthData.new(payload)
1152
1214
  end
1153
1215
 
1216
+ # Live compute-meter usage (quota)
1217
+ #
1218
+ # The account's live compute-meter usage. NotebookLM's quota is
1219
+ # compute-based: one meter with a five-hour window and a weekly window,
1220
+ # each a percentage, plus a per-action table saying what still has quota.
1221
+ # There is no daily cap and no balance. Account-scoped — no notebook.
1222
+ #
1223
+ # `status` is `disabled` when the account has no compute meter, `ready`
1224
+ # with the windows and actions filled when it does, `skipped` when the
1225
+ # server declined to report, and the call fails on a server `failed`.
1226
+ #
1227
+ # `GET /usage`
1228
+ #
1229
+ # @return [GetUsageData]
1230
+ # @raise [NotebookLM::Refused] when the server declines the request
1231
+ def get_usage
1232
+ payload = call('get_usage', :get, '/usage')
1233
+ GetUsageData.new(payload)
1234
+ end
1235
+
1154
1236
  # UTCP tool manual for this server
1155
1237
  #
1156
1238
  # The manual a Universal Tool Calling Protocol client reads before
@@ -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.0'
7
+ VERSION = '4.8.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 56 operations as documented Ruby methods, generated from the
15
+ gives you its 57 operations as documented Ruby methods, generated from the
16
16
  server's OpenAPI specification. No runtime dependencies.
17
17
  TEXT
18
18
 
19
- spec.homepage = 'https://github.com/roomi-fields/notebooklm-mcp'
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.7.0
4
+ version: 4.8.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-07 00:00:00.000000000 Z
11
+ date: 2026-11-09 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 56 operations as documented Ruby methods, generated from the
16
+ gives you its 57 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://github.com/roomi-fields/notebooklm-mcp
32
+ homepage: https://notebooklm.roomi-fields.com/
33
33
  licenses:
34
34
  - MIT
35
35
  metadata:
36
- homepage_uri: https://github.com/roomi-fields/notebooklm-mcp
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: