notebooklm 4.10.0 → 4.11.1
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 +138 -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: 819e7808676c707042e4b15f0c872d80bc37626435d33d22cbaceb5cf3443bfa
|
|
4
|
+
data.tar.gz: 2eaf8734c359384789e031ab62a6eaf107a41fb62b5d7389db4ed81efa6a5371
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 293fd11ab5ea73864585f1feb1baeedc231345bd9231e08550139529ee70ff0c71beb440904dacb0d840e7c8520c93f823b096f9fb77908b2a304103bec2b8da
|
|
7
|
+
data.tar.gz: c9f0eb88153a93ccb9393c5c7ba939bdf687917da2ccafc0ae8d780e5a247206f233b05c4fb1d70a4ad7c90731d6d9e2ad2d92265e62c51ddeeb69607e0b68db
|
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 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.
|
|
44
|
+
gem 'notebooklm', '~> 4.11'
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
or `gem install notebooklm`.
|
data/lib/notebooklm/generated.rb
CHANGED
|
@@ -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
|
-
#
|
|
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,78 @@ 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 and URL. The sources finish copying in
|
|
1915
|
+
# the background, so the returned list is often empty — list the new
|
|
1916
|
+
# notebook's sources a few seconds later. Only a notebook you own can be
|
|
1917
|
+
# copied, not one shared with you or public. Not idempotent: a
|
|
1918
|
+
# failed call is never retried automatically — a lost reply could
|
|
1919
|
+
# otherwise become a second copy — so list your notebooks before trying
|
|
1920
|
+
# again.
|
|
1921
|
+
#
|
|
1922
|
+
# `POST /notebooks/{id}/copy`
|
|
1923
|
+
#
|
|
1924
|
+
# @param id [String]
|
|
1925
|
+
# @param title [String, nil] Title of the copy. Defaults to "Copy of <source title>".
|
|
1926
|
+
# @return [CopyNotebookData]
|
|
1927
|
+
# @raise [NotebookLM::Refused] when the server declines the request
|
|
1928
|
+
def copy_notebook(id:, title: nil)
|
|
1929
|
+
body = {}
|
|
1930
|
+
body['title'] = title unless title.nil?
|
|
1931
|
+
payload = call('copy_notebook', :post, "/notebooks/#{id}/copy", body: body)
|
|
1932
|
+
CopyNotebookData.new(payload)
|
|
1933
|
+
end
|
|
1934
|
+
|
|
1935
|
+
# Copy sources into another notebook
|
|
1936
|
+
#
|
|
1937
|
+
# RPC-backed. Copies the named sources into an existing notebook and maps
|
|
1938
|
+
# each original id to the id of its copy; the copies may still be
|
|
1939
|
+
# processing when the reply arrives. The target must be named — there is
|
|
1940
|
+
# no default. Not idempotent: never retried automatically.
|
|
1941
|
+
#
|
|
1942
|
+
# `POST /notebooks/{id}/sources/copy`
|
|
1943
|
+
#
|
|
1944
|
+
# @param id [String]
|
|
1945
|
+
# @param source_ids [Array<String>] Ids of the sources to copy, as list_sources returns them.
|
|
1946
|
+
# @param target_notebook_id [String, nil] UUID of the notebook to copy into. Required unless target_notebook_url is given.
|
|
1947
|
+
# @param target_notebook_url [String, nil] URL of the notebook to copy into (alternative to target_notebook_id).
|
|
1948
|
+
# @return [CopySourcesData]
|
|
1949
|
+
# @raise [NotebookLM::Refused] when the server declines the request
|
|
1950
|
+
def copy_sources(id:, source_ids:, target_notebook_id: nil, target_notebook_url: nil)
|
|
1951
|
+
body = {}
|
|
1952
|
+
body['source_ids'] = source_ids
|
|
1953
|
+
body['target_notebook_id'] = target_notebook_id unless target_notebook_id.nil?
|
|
1954
|
+
body['target_notebook_url'] = target_notebook_url unless target_notebook_url.nil?
|
|
1955
|
+
payload = call('copy_sources', :post, "/notebooks/#{id}/sources/copy", body: body)
|
|
1956
|
+
CopySourcesData.new(payload)
|
|
1957
|
+
end
|
|
1958
|
+
|
|
1959
|
+
# Copy Studio artifacts into another notebook
|
|
1960
|
+
#
|
|
1961
|
+
# RPC-backed. Copies Studio artifacts (audio, video, reports, quizzes,
|
|
1962
|
+
# slide decks…) into an existing notebook and maps each original id to
|
|
1963
|
+
# the id of its copy. The target must be named — there is no default.
|
|
1964
|
+
# Not idempotent: never retried automatically.
|
|
1965
|
+
#
|
|
1966
|
+
# `POST /notebooks/{id}/content/copy`
|
|
1967
|
+
#
|
|
1968
|
+
# @param id [String]
|
|
1969
|
+
# @param content_ids [Array<String>] Ids of the Studio artifacts to copy, as list_content returns them.
|
|
1970
|
+
# @param target_notebook_id [String, nil] UUID of the notebook to copy into. Required unless target_notebook_url is given.
|
|
1971
|
+
# @param target_notebook_url [String, nil] URL of the notebook to copy into (alternative to target_notebook_id).
|
|
1972
|
+
# @return [CopyContentData]
|
|
1973
|
+
# @raise [NotebookLM::Refused] when the server declines the request
|
|
1974
|
+
def copy_content(id:, content_ids:, target_notebook_id: nil, target_notebook_url: nil)
|
|
1975
|
+
body = {}
|
|
1976
|
+
body['content_ids'] = content_ids
|
|
1977
|
+
body['target_notebook_id'] = target_notebook_id unless target_notebook_id.nil?
|
|
1978
|
+
body['target_notebook_url'] = target_notebook_url unless target_notebook_url.nil?
|
|
1979
|
+
payload = call('copy_content', :post, "/notebooks/#{id}/content/copy", body: body)
|
|
1980
|
+
CopyContentData.new(payload)
|
|
1981
|
+
end
|
|
1982
|
+
|
|
1846
1983
|
# Read a notebook's sharing status
|
|
1847
1984
|
#
|
|
1848
1985
|
# `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.11.1'
|
|
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 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.
|
|
4
|
+
version: 4.11.1
|
|
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-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
|
|
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: []
|