notebooklm 4.8.0 → 4.10.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: 8dc695d85ee59c9c7ab433bf9b1f8f45f4220329d6a4a8e62bd73e2be4092a5f
4
- data.tar.gz: ba7ed1d0287063219659edad94667656373834258f7bf785be687a3dc012a70e
3
+ metadata.gz: b68973691fe3121f39451cbf42b24404b66c0a20490805292e109afaec309f94
4
+ data.tar.gz: c1118b6db535e88540415bce02ab80655328c64bf511b270330ce252942a27d3
5
5
  SHA512:
6
- metadata.gz: 2338e16b1a63825747f449831fc21f121a8648e1dbd113a6aa08b589486397c0e6ebf77afc31cb3ce2c12b5f879def22293b98ac6aa3923b5ccd61a619b6648b
7
- data.tar.gz: a28bf735032bf1821d9792014ba683818c8a0c140ca0b527333f6cefe128b92c528bf8b84d46cd2cd4c8c3406f0c85825628db70025dd05f7ba91ea8234b71ce
6
+ metadata.gz: 36ee8599b0b31625e6cfb934123f2a12aee6e22845af1525c546564c26e0d0965e73eb2143622a2d623800efa8d1f0e0c7e019c3376c7c146d80800fdeac1907
7
+ data.tar.gz: 624d09299f380a85e53ba82cc483f113dd620b04f39f00518d23d7af86b103e290abfce5d2d29c268a6733fedc134cc297fb6b5800d2c95b5d3d69954a0d047c
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 57 operations**, generated from the server's OpenAPI specification, so
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.8'
44
+ gem 'notebooklm', '~> 4.10'
45
45
  ```
46
46
 
47
47
  or `gem install notebooklm`.
@@ -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
- # 57 of them.
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`
@@ -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.8.0'
7
+ VERSION = '4.10.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 57 operations as documented Ruby methods, generated from the
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.8.0
4
+ version: 4.10.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-09 00:00:00.000000000 Z
11
+ date: 2026-11-13 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 57 operations as documented Ruby methods, generated from the
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: []