notebooklm 4.10.0 → 4.11.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: b68973691fe3121f39451cbf42b24404b66c0a20490805292e109afaec309f94
4
- data.tar.gz: c1118b6db535e88540415bce02ab80655328c64bf511b270330ce252942a27d3
3
+ metadata.gz: 649d38300957d3c23f1ad301dc16362962418b8311939140969642e52a0425bb
4
+ data.tar.gz: 4bb7d0df2c3336f2601f1ea5295f5f7d3e1fb22c999fada00b7df8cfadeab0d6
5
5
  SHA512:
6
- metadata.gz: 36ee8599b0b31625e6cfb934123f2a12aee6e22845af1525c546564c26e0d0965e73eb2143622a2d623800efa8d1f0e0c7e019c3376c7c146d80800fdeac1907
7
- data.tar.gz: 624d09299f380a85e53ba82cc483f113dd620b04f39f00518d23d7af86b103e290abfce5d2d29c268a6733fedc134cc297fb6b5800d2c95b5d3d69954a0d047c
6
+ metadata.gz: b8ea6ddf90628acd7d9735d68e0325045f6e743dd43eeced79207f17560fb7bd2b282e787ce6a32cc37a83885827a6ee7af22c5d4029b8c2912e7d1e072db8c1
7
+ data.tar.gz: f6221a46ded3f97c36145ad12b4181daf50e4b84fe339d90110161e0a54e14b8a06ef8d2eefc60999e41bd2a996f69eedd6809fbbad079b5eee09f09fb8247c3
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 59 operations**, generated from the server's OpenAPI specification, so
13
+ - **All 62 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.10'
44
+ gem 'notebooklm', '~> 4.11'
45
45
  ```
46
46
 
47
47
  or `gem install notebooklm`.
@@ -811,6 +811,68 @@ module NotebookLM
811
811
  field :cancelled, 'cancelled'
812
812
  end
813
813
 
814
+ # The `CopyNotebookData` shape.
815
+ class CopyNotebookData < Model
816
+ # @return [String]
817
+ field :id, 'id'
818
+ # @return [String]
819
+ field :title, 'title'
820
+ # @return [String]
821
+ field :url, 'url'
822
+ # @return [String]
823
+ field :source_notebook_id, 'sourceNotebookId'
824
+ # @return [Array<CopyNotebookDataSourcesItem>]
825
+ field :sources, 'sources', type: 'CopyNotebookDataSourcesItem', array: true
826
+ end
827
+
828
+ # The `CopyNotebookDataSourcesItem` shape.
829
+ class CopyNotebookDataSourcesItem < Model
830
+ # @return [String]
831
+ field :id, 'id'
832
+ # @return [String]
833
+ field :title, 'title'
834
+ end
835
+
836
+ # The `CopySourcesData` shape.
837
+ class CopySourcesData < Model
838
+ # @return [String]
839
+ field :notebook_id, 'notebookId'
840
+ # @return [String]
841
+ field :target_notebook_id, 'targetNotebookId'
842
+ # @return [Array<CopySourcesDataCopiedItem>]
843
+ field :copied, 'copied', type: 'CopySourcesDataCopiedItem', array: true
844
+ end
845
+
846
+ # The `CopySourcesDataCopiedItem` shape.
847
+ class CopySourcesDataCopiedItem < Model
848
+ # @return [String]
849
+ field :original_id, 'originalId'
850
+ # @return [String]
851
+ field :new_id, 'newId'
852
+ # @return [String]
853
+ field :title, 'title'
854
+ end
855
+
856
+ # The `CopyContentData` shape.
857
+ class CopyContentData < Model
858
+ # @return [String]
859
+ field :notebook_id, 'notebookId'
860
+ # @return [String]
861
+ field :target_notebook_id, 'targetNotebookId'
862
+ # @return [Array<CopyContentDataCopiedItem>]
863
+ field :copied, 'copied', type: 'CopyContentDataCopiedItem', array: true
864
+ end
865
+
866
+ # The `CopyContentDataCopiedItem` shape.
867
+ class CopyContentDataCopiedItem < Model
868
+ # @return [String]
869
+ field :original_id, 'originalId'
870
+ # @return [String]
871
+ field :new_id, 'newId'
872
+ # @return [String]
873
+ field :title, 'title'
874
+ end
875
+
814
876
  # The `GetShareStatusData` shape.
815
877
  class GetShareStatusData < Model
816
878
  # @return [Boolean]
@@ -1150,7 +1212,7 @@ module NotebookLM
1150
1212
  # and the documentation of the API stay separate things.
1151
1213
  module Operations
1152
1214
  # Every operation id, in specification order. The server exposes
1153
- # 59 of them.
1215
+ # 62 of them.
1154
1216
  OPERATION_IDS = %w[
1155
1217
  get_server_info
1156
1218
  get_health
@@ -1191,6 +1253,9 @@ module NotebookLM
1191
1253
  delete_chat_history
1192
1254
  cancel_answer
1193
1255
  cancel_research
1256
+ copy_notebook
1257
+ copy_sources
1258
+ copy_content
1194
1259
  get_share_status
1195
1260
  share_notebook
1196
1261
  retry_content
@@ -1843,6 +1908,75 @@ module NotebookLM
1843
1908
  CancelResearchData.new(payload)
1844
1909
  end
1845
1910
 
1911
+ # Copy a whole notebook into a new one
1912
+ #
1913
+ # RPC-backed. Copies the notebook's sources and Studio artifacts into a
1914
+ # new notebook and returns its id, URL and sources. Not idempotent: a
1915
+ # failed call is never retried automatically — a lost reply could
1916
+ # otherwise become a second copy — so list your notebooks before trying
1917
+ # again.
1918
+ #
1919
+ # `POST /notebooks/{id}/copy`
1920
+ #
1921
+ # @param id [String]
1922
+ # @param title [String, nil] Title of the copy. Defaults to "Copy of <source title>".
1923
+ # @return [CopyNotebookData]
1924
+ # @raise [NotebookLM::Refused] when the server declines the request
1925
+ def copy_notebook(id:, title: nil)
1926
+ body = {}
1927
+ body['title'] = title unless title.nil?
1928
+ payload = call('copy_notebook', :post, "/notebooks/#{id}/copy", body: body)
1929
+ CopyNotebookData.new(payload)
1930
+ end
1931
+
1932
+ # Copy sources into another notebook
1933
+ #
1934
+ # RPC-backed. Copies the named sources into an existing notebook and maps
1935
+ # each original id to the id of its copy; the copies may still be
1936
+ # processing when the reply arrives. The target must be named — there is
1937
+ # no default. Not idempotent: never retried automatically.
1938
+ #
1939
+ # `POST /notebooks/{id}/sources/copy`
1940
+ #
1941
+ # @param id [String]
1942
+ # @param source_ids [Array<String>] Ids of the sources to copy, as list_sources returns them.
1943
+ # @param target_notebook_id [String, nil] UUID of the notebook to copy into. Required unless target_notebook_url is given.
1944
+ # @param target_notebook_url [String, nil] URL of the notebook to copy into (alternative to target_notebook_id).
1945
+ # @return [CopySourcesData]
1946
+ # @raise [NotebookLM::Refused] when the server declines the request
1947
+ def copy_sources(id:, source_ids:, target_notebook_id: nil, target_notebook_url: nil)
1948
+ body = {}
1949
+ body['source_ids'] = source_ids
1950
+ body['target_notebook_id'] = target_notebook_id unless target_notebook_id.nil?
1951
+ body['target_notebook_url'] = target_notebook_url unless target_notebook_url.nil?
1952
+ payload = call('copy_sources', :post, "/notebooks/#{id}/sources/copy", body: body)
1953
+ CopySourcesData.new(payload)
1954
+ end
1955
+
1956
+ # Copy Studio artifacts into another notebook
1957
+ #
1958
+ # RPC-backed. Copies Studio artifacts (audio, video, reports, quizzes,
1959
+ # slide decks…) into an existing notebook and maps each original id to
1960
+ # the id of its copy. The target must be named — there is no default.
1961
+ # Not idempotent: never retried automatically.
1962
+ #
1963
+ # `POST /notebooks/{id}/content/copy`
1964
+ #
1965
+ # @param id [String]
1966
+ # @param content_ids [Array<String>] Ids of the Studio artifacts to copy, as list_content returns them.
1967
+ # @param target_notebook_id [String, nil] UUID of the notebook to copy into. Required unless target_notebook_url is given.
1968
+ # @param target_notebook_url [String, nil] URL of the notebook to copy into (alternative to target_notebook_id).
1969
+ # @return [CopyContentData]
1970
+ # @raise [NotebookLM::Refused] when the server declines the request
1971
+ def copy_content(id:, content_ids:, target_notebook_id: nil, target_notebook_url: nil)
1972
+ body = {}
1973
+ body['content_ids'] = content_ids
1974
+ body['target_notebook_id'] = target_notebook_id unless target_notebook_id.nil?
1975
+ body['target_notebook_url'] = target_notebook_url unless target_notebook_url.nil?
1976
+ payload = call('copy_content', :post, "/notebooks/#{id}/content/copy", body: body)
1977
+ CopyContentData.new(payload)
1978
+ end
1979
+
1846
1980
  # Read a notebook's sharing status
1847
1981
  #
1848
1982
  # `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.10.0'
7
+ VERSION = '4.11.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 59 operations as documented Ruby methods, generated from the
15
+ gives you its 62 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.10.0
4
+ version: 4.11.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-13 00:00:00.000000000 Z
11
+ date: 2026-11-17 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 59 operations as documented Ruby methods, generated from the
16
+ gives you its 62 operations as documented Ruby methods, generated from the
17
17
  server's OpenAPI specification. No runtime dependencies.
18
18
  email:
19
19
  executables: []