Skip to main content

Gcp/books

@swamp/gcp/booksv2026.08.12.2· 17d agoMODELS
01README

Google Cloud books infrastructure models

02Release Notes
  • Updated: bookshelves, bookshelves_volumes, layers, layers_annotationdata, layers_volumeannotations, mylibrary_annotations, mylibrary_bookshelves, mylibrary_bookshelves_volumes, mylibrary_readingpositions, notification, personalizedstream, promooffer, series, series_membership, volumes, volumes_associated, volumes_mybooks, volumes_recommended, volumes_useruploaded
03Models19
@swamp/gcp/books/bookshelvesv2026.08.12.2bookshelves.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
userIdstringID of user for whom to retrieve bookshelves.
fn get(identifier: string)
Get a bookshelves
ArgumentTypeDescription
identifierstringThe name of the bookshelves
fn sync(identifier?: string)
Sync bookshelves state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific bookshelves by name (e.g. one discovered by list)
fn list(source?: string, maxPages?: number)
List bookshelves resources
ArgumentTypeDescription
source?stringString to identify the originator of this request.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Retrieves metadata for a specific bookshelf for the specified user.
@swamp/gcp/books/bookshelves-volumesv2026.08.12.2bookshelves_volumes.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
userIdstringID of user for whom to retrieve bookshelf volumes.
shelfstringID of bookshelf to retrieve volumes.
fn get(identifier: string)
Get a volumes
ArgumentTypeDescription
identifierstringThe name of the volumes
fn sync(identifier?: string)
Sync volumes state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific volumes by name (e.g. one discovered by list)
fn list(maxResults?: number, showPreorders?: boolean, source?: string, startIndex?: number, maxPages?: number)
List volumes resources
ArgumentTypeDescription
maxResults?numberMaximum number of results to return
showPreorders?booleanSet to true to show pre-ordered books. Defaults to false.
source?stringString to identify the originator of this request.
startIndex?numberIndex of the first element to return (starts at 0)
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Retrieves volumes in a specific bookshelf for the specified user.
@swamp/gcp/books/layersv2026.08.12.2layers.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
volumeIdstringThe volume to retrieve layers for.
fn get(identifier: string)
Get a layers
ArgumentTypeDescription
identifierstringThe name of the layers
fn sync(identifier?: string)
Sync layers state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific layers by name (e.g. one discovered by list)
fn list(contentVersion?: string, maxResults?: number, source?: string, maxPages?: number)
List layers resources
ArgumentTypeDescription
contentVersion?stringThe content version for the requested volume.
maxResults?numberMaximum number of results to return
source?stringString to identify the originator of this request.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Gets the layer summary for a volume.
@swamp/gcp/books/layers-annotationdatav2026.08.12.2layers_annotationdata.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
volumeIdstringThe volume to retrieve annotations for.
layerIdstringThe ID for the layer to get the annotations.
annotationDataIdstringThe ID of the annotation data to retrieve.
contentVersionstringThe content version for the requested volume.
fn get(identifier: string)
Get a annotationData
ArgumentTypeDescription
identifierstringThe name of the annotationData
fn sync(identifier?: string)
Sync annotationData state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific annotationData by name (e.g. one discovered by list)
fn list(annotationDataId?: string, contentVersion?: string, h?: number, locale?: string, maxResults?: number, scale?: number, source?: string, updatedMax?: string, updatedMin?: string, w?: number, maxPages?: number)
List annotationData resources
ArgumentTypeDescription
annotationDataId?stringThe list of Annotation Data Ids to retrieve. Pagination is ignored if this is set.
contentVersion?stringThe content version for the requested volume.
h?numberThe requested pixel height for any images. If height is provided width must also be provided.
locale?stringThe locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
maxResults?numberMaximum number of results to return
scale?numberThe requested scale for the image.
source?stringString to identify the originator of this request.
updatedMax?stringRFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
updatedMin?stringRFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
w?numberThe requested pixel width for any images. If width is provided height must also be provided.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Gets the annotation data.
@swamp/gcp/books/layers-volumeannotationsv2026.08.12.2layers_volumeannotations.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
volumeIdstringThe volume to retrieve annotations for.
layerIdstringThe ID for the layer to get the annotations.
contentVersionstringThe content version for the requested volume.
fn get(identifier: string)
Get a volumeAnnotations
ArgumentTypeDescription
identifierstringThe name of the volumeAnnotations
fn sync(identifier?: string)
Sync volumeAnnotations state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific volumeAnnotations by name (e.g. one discovered by list)
fn list(contentVersion?: string, endOffset?: string, endPosition?: string, locale?: string, maxResults?: number, showDeleted?: boolean, source?: string, startOffset?: string, startPosition?: string, updatedMax?: string, updatedMin?: string, volumeAnnotationsVersion?: string, maxPages?: number)
List volumeAnnotations resources
ArgumentTypeDescription
contentVersion?stringThe content version for the requested volume.
endOffset?stringThe end offset to end retrieving data from.
endPosition?stringThe end position to end retrieving data from.
locale?stringThe locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
maxResults?numberMaximum number of results to return
showDeleted?booleanSet to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
source?stringString to identify the originator of this request.
startOffset?stringThe start offset to start retrieving data from.
startPosition?stringThe start position to start retrieving data from.
updatedMax?stringRFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
updatedMin?stringRFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
volumeAnnotationsVersion?stringThe version of the volume annotations that you are requesting.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Gets the volume annotation.
@swamp/gcp/books/mylibrary-annotationsv2026.08.12.2mylibrary_annotations.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
afterSelectedText?stringAnchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
beforeSelectedText?stringAnchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
clientVersionRanges?objectSelection ranges sent from the client.
created?stringTimestamp for the created time of this annotation.
currentVersionRanges?objectSelection ranges for the most recent content version.
data?stringUser-created data for this annotation.
deleted?booleanIndicates that this annotation is deleted.
highlightStyle?stringThe highlight style for this annotation.
id?stringId of this annotation, in the form of a GUID.
layerId?stringThe layer this annotation is for.
layerSummary?object
pageIds?arrayPages that this annotation spans.
selectedText?stringExcerpt from the volume.
updated?stringTimestamp for the last time this annotation was modified.
volumeId?stringThe volume that this annotation belongs to.
annotationId?stringThe ID for the annotation to insert.
country?stringISO-3166-1 code to override the IP-based location.
showOnlySummaryInResponse?stringRequests that only the summary of the specified layer be provided in the response.
source?stringString to identify the originator of this request.
fn create()
Create a annotations
fn get(identifier: string)
Get a annotations
ArgumentTypeDescription
identifierstringThe name of the annotations
fn update(identifier?: string)
Update annotations attributes
ArgumentTypeDescription
identifier?stringTarget a specific annotations by name (e.g. one discovered by list)
fn delete(identifier: string)
Delete the annotations
ArgumentTypeDescription
identifierstringThe name of the annotations
fn sync(identifier?: string)
Sync annotations state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific annotations by name (e.g. one discovered by list)
fn list(contentVersion?: string, layerId?: string, layerIds?: string, maxResults?: number, showDeleted?: boolean, source?: string, updatedMax?: string, updatedMin?: string, volumeId?: string, maxPages?: number)
List annotations resources
ArgumentTypeDescription
contentVersion?stringThe content version for the requested volume.
layerId?stringThe layer ID to limit annotation by.
layerIds?stringThe layer ID(s) to limit annotation by.
maxResults?numberMaximum number of results to return
showDeleted?booleanSet to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
source?stringString to identify the originator of this request.
updatedMax?stringRFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
updatedMin?stringRFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
volumeId?stringThe volume to restrict annotations to.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn summary()
summary

Resources

state(infinite)— Retrieves a list of annotations, possibly filtered.
@swamp/gcp/books/mylibrary-bookshelvesv2026.08.12.2mylibrary_bookshelves.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
shelfstringID of bookshelf from which to remove a volume.
fn get(identifier: string)
Get a bookshelves
ArgumentTypeDescription
identifierstringThe name of the bookshelves
fn delete(identifier: string)
Delete the bookshelves
ArgumentTypeDescription
identifierstringThe name of the bookshelves
fn sync(identifier?: string)
Sync bookshelves state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific bookshelves by name (e.g. one discovered by list)
fn list(source?: string, maxPages?: number)
List bookshelves resources
ArgumentTypeDescription
source?stringString to identify the originator of this request.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn add_volume()
add volume
fn clear_volumes()
clear volumes
fn move_volume()
move volume

Resources

state(infinite)— Retrieves metadata for a specific bookshelf belonging to the authenticated user.
@swamp/gcp/books/mylibrary-bookshelves-volumesv2026.08.12.2mylibrary_bookshelves_volumes.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
shelfstringThe bookshelf ID or name retrieve volumes for.
fn get(identifier: string)
Get a volumes
ArgumentTypeDescription
identifierstringThe name of the volumes
fn sync(identifier?: string)
Sync volumes state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific volumes by name (e.g. one discovered by list)
fn list(country?: string, maxResults?: number, projection?: string, q?: string, showPreorders?: boolean, source?: string, startIndex?: number, maxPages?: number)
List volumes resources
ArgumentTypeDescription
country?stringISO-3166-1 code to override the IP-based location.
maxResults?numberMaximum number of results to return
projection?stringRestrict information returned to a set of selected fields.
q?stringFull-text search query string in this bookshelf.
showPreorders?booleanSet to true to show pre-ordered books. Defaults to false.
source?stringString to identify the originator of this request.
startIndex?numberIndex of the first element to return (starts at 0)
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Gets volume information for volumes on a bookshelf.
@swamp/gcp/books/mylibrary-readingpositionsv2026.08.12.2mylibrary_readingpositions.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
fn get(identifier: string)
Get a readingpositions
ArgumentTypeDescription
identifierstringThe name of the readingpositions
fn sync(identifier?: string)
Sync readingpositions state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific readingpositions by name (e.g. one discovered by list)
fn set_position()
set position

Resources

state(infinite)— Retrieves my reading position information for a volume.
@swamp/gcp/books/notificationv2026.08.12.2notification.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
fn get(identifier: string)
Get a notification
ArgumentTypeDescription
identifierstringThe name of the notification
fn sync(identifier?: string)
Sync notification state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific notification by name (e.g. one discovered by list)

Resources

state(infinite)— Returns notification details for a given notification id.
@swamp/gcp/books/personalizedstreamv2026.08.12.2personalizedstream.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
fn get(identifier: string)
Get a personalizedstream
ArgumentTypeDescription
identifierstringThe name of the personalizedstream
fn sync(identifier?: string)
Sync personalizedstream state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific personalizedstream by name (e.g. one discovered by list)

Resources

state(infinite)— Returns a stream of personalized book clusters
@swamp/gcp/books/promoofferv2026.08.12.2promooffer.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
fn get(identifier: string)
Get a promooffer
ArgumentTypeDescription
identifierstringThe name of the promooffer
fn sync(identifier?: string)
Sync promooffer state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific promooffer by name (e.g. one discovered by list)
fn accept()
accept
fn dismiss()
dismiss

Resources

state(infinite)— Returns a list of promo offers available to the user
@swamp/gcp/books/seriesv2026.08.12.2series.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
fn get(identifier: string)
Get a series
ArgumentTypeDescription
identifierstringThe name of the series
fn sync(identifier?: string)
Sync series state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific series by name (e.g. one discovered by list)

Resources

state(infinite)— Returns Series metadata for the given series ids.
@swamp/gcp/books/series-membershipv2026.08.12.2series_membership.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
fn get(identifier: string)
Get a membership
ArgumentTypeDescription
identifierstringThe name of the membership
fn sync(identifier?: string)
Sync membership state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific membership by name (e.g. one discovered by list)

Resources

state(infinite)— Returns Series membership data given the series id.
@swamp/gcp/books/volumesv2026.08.12.2volumes.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
qstringFull-text search query string.
fn get(identifier: string)
Get a volumes
ArgumentTypeDescription
identifierstringThe name of the volumes
fn sync(identifier?: string)
Sync volumes state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific volumes by name (e.g. one discovered by list)
fn list(download?: string, filter?: string, langRestrict?: string, libraryRestrict?: string, maxAllowedMaturityRating?: string, maxResults?: number, orderBy?: string, partner?: string, printType?: string, projection?: string, q?: string, showPreorders?: boolean, source?: string, startIndex?: number, maxPages?: number)
List volumes resources
ArgumentTypeDescription
download?stringRestrict to volumes by download availability.
filter?stringFilter search results.
langRestrict?stringRestrict results to books with this language code.
libraryRestrict?stringRestrict search to this user's library.
maxAllowedMaturityRating?stringThe maximum allowed maturity rating of returned recommendations. Books with a higher maturity rating are filtered out.
maxResults?numberMaximum number of results to return.
orderBy?stringSort search results.
partner?stringRestrict and brand results for partner ID.
printType?stringRestrict to books or magazines.
projection?stringRestrict information returned to a set of selected fields.
q?stringFull-text search query string.
showPreorders?booleanSet to true to show books available for preorder. Defaults to false.
source?stringString to identify the originator of this request.
startIndex?numberIndex of the first result to return (starts at 0)
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Gets volume information for a single volume.
@swamp/gcp/books/volumes-associatedv2026.08.12.2volumes_associated.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
volumeIdstringID of the source volume.
fn get(identifier: string)
Get a associated
ArgumentTypeDescription
identifierstringThe name of the associated
fn sync(identifier?: string)
Sync associated state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific associated by name (e.g. one discovered by list)
fn list(association?: string, locale?: string, maxAllowedMaturityRating?: string, source?: string, maxPages?: number)
List associated resources
ArgumentTypeDescription
association?stringAssociation type.
locale?stringISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.
maxAllowedMaturityRating?stringThe maximum allowed maturity rating of returned recommendations. Books with a higher maturity rating are filtered out.
source?stringString to identify the originator of this request.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Return a list of associated books.
@swamp/gcp/books/volumes-mybooksv2026.08.12.2volumes_mybooks.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
fn get(identifier: string)
Get a mybooks
ArgumentTypeDescription
identifierstringThe name of the mybooks
fn sync(identifier?: string)
Sync mybooks state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific mybooks by name (e.g. one discovered by list)
fn list(acquireMethod?: string, country?: string, locale?: string, maxResults?: number, processingState?: string, source?: string, startIndex?: number, maxPages?: number)
List mybooks resources
ArgumentTypeDescription
acquireMethod?stringHow the book was acquired
country?stringISO-3166-1 code to override the IP-based location.
locale?stringISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used for generating recommendations.
maxResults?numberMaximum number of results to return.
processingState?stringThe processing state of the user uploaded volumes to be returned. Applicable only if the UPLOADED is specified in the acquireMethod.
source?stringString to identify the originator of this request.
startIndex?numberIndex of the first result to return (starts at 0)
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Return a list of books in My Library.
@swamp/gcp/books/volumes-recommendedv2026.08.12.2volumes_recommended.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
fn get(identifier: string)
Get a recommended
ArgumentTypeDescription
identifierstringThe name of the recommended
fn sync(identifier?: string)
Sync recommended state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific recommended by name (e.g. one discovered by list)
fn list(locale?: string, maxAllowedMaturityRating?: string, source?: string, maxPages?: number)
List recommended resources
ArgumentTypeDescription
locale?stringISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.
maxAllowedMaturityRating?stringThe maximum allowed maturity rating of returned recommendations. Books with a higher maturity rating are filtered out.
source?stringString to identify the originator of this request.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn rate()
rate

Resources

state(infinite)— Return a list of recommended books for the current user.
@swamp/gcp/books/volumes-useruploadedv2026.08.12.2volumes_useruploaded.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
fn get(identifier: string)
Get a useruploaded
ArgumentTypeDescription
identifierstringThe name of the useruploaded
fn sync(identifier?: string)
Sync useruploaded state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific useruploaded by name (e.g. one discovered by list)
fn list(locale?: string, maxResults?: number, processingState?: string, source?: string, startIndex?: number, volumeId?: string, maxPages?: number)
List useruploaded resources
ArgumentTypeDescription
locale?stringISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.
maxResults?numberMaximum number of results to return.
processingState?stringThe processing state of the user uploaded volumes to be returned.
source?stringString to identify the originator of this request.
startIndex?numberIndex of the first result to return (starts at 0)
volumeId?stringThe ids of the volumes to be returned. If not specified all that match the processingState are returned.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Return a list of books uploaded by the current user.
04Previous Versions19
2026.07.29.1
  • Updated: bookshelves, bookshelves_volumes, layers, layers_annotationdata, layers_volumeannotations, mylibrary_annotations, mylibrary_bookshelves, mylibrary_bookshelves_volumes, mylibrary_readingpositions, notification, personalizedstream, promooffer, series, series_membership, volumes, volumes_associated, volumes_mybooks, volumes_recommended, volumes_useruploaded
2026.07.21.3
  • Updated: bookshelves, bookshelves_volumes, layers, layers_annotationdata, layers_volumeannotations, mylibrary_annotations, mylibrary_bookshelves, mylibrary_bookshelves_volumes, mylibrary_readingpositions, notification, personalizedstream, promooffer, series, series_membership, volumes, volumes_associated, volumes_mybooks, volumes_recommended, volumes_useruploaded
2026.07.21.1
  • Updated: mylibrary_annotations
2026.07.20.1
  • Updated: bookshelves, bookshelves_volumes, layers, layers_annotationdata, layers_volumeannotations, mylibrary_annotations, mylibrary_bookshelves, mylibrary_bookshelves_volumes, mylibrary_readingpositions, notification, personalizedstream, promooffer, series, series_membership, volumes, volumes_associated, volumes_mybooks, volumes_recommended, volumes_useruploaded
2026.07.19.2
  • Updated: bookshelves, bookshelves_volumes, layers, layers_annotationdata, layers_volumeannotations, mylibrary_bookshelves, mylibrary_bookshelves_volumes, volumes, volumes_associated
2026.07.19.1
  • Updated: bookshelves, bookshelves_volumes, layers, layers_annotationdata, layers_volumeannotations, mylibrary_annotations, mylibrary_bookshelves, mylibrary_bookshelves_volumes, mylibrary_readingpositions, notification, personalizedstream, promooffer, series, series_membership, volumes, volumes_associated, volumes_mybooks, volumes_recommended, volumes_useruploaded
2026.07.18.1
  • Updated: bookshelves, bookshelves_volumes, layers, layers_annotationdata, layers_volumeannotations, mylibrary_annotations, mylibrary_bookshelves, mylibrary_bookshelves_volumes, mylibrary_readingpositions, notification, personalizedstream, promooffer, series, series_membership, volumes, volumes_associated, volumes_mybooks, volumes_recommended, volumes_useruploaded
2026.07.17.1
  • Updated: mylibrary_annotations

Added 19, removed 1 models

2026.06.08.2
  • Updated: bookshelves, bookshelves_volumes, layers, layers_annotationdata, layers_volumeannotations, mylibrary_annotations, mylibrary_bookshelves, mylibrary_bookshelves_volumes, mylibrary_readingpositions, notification, personalizedstream, promooffer, series, series_membership, volumes, volumes_associated, volumes_mybooks, volumes_recommended, volumes_useruploaded
2026.06.07.1
  • Updated: bookshelves, bookshelves_volumes, layers, layers_annotationdata, layers_volumeannotations, mylibrary_annotations, mylibrary_bookshelves, mylibrary_bookshelves_volumes, mylibrary_readingpositions, notification, personalizedstream, promooffer, series, series_membership, volumes, volumes_associated, volumes_mybooks, volumes_recommended, volumes_useruploaded
2026.05.25.2
  • Updated: mylibrary_annotations, mylibrary_bookshelves, volumes_mybooks, volumes_recommended, volumes_useruploaded

Modified 13 models

2026.05.24.1
  • Updated: bookshelves, bookshelves_volumes, layers, layers_annotationdata, layers_volumeannotations, mylibrary_annotations, mylibrary_bookshelves, mylibrary_bookshelves_volumes, mylibrary_readingpositions, notification, personalizedstream, promooffer, series, series_membership, volumes, volumes_associated, volumes_mybooks, volumes_recommended, volumes_useruploaded
2026.05.21.2
  • Updated: bookshelves, bookshelves_volumes, layers, layers_annotationdata, layers_volumeannotations, mylibrary_annotations, mylibrary_bookshelves, mylibrary_bookshelves_volumes, mylibrary_readingpositions, notification, personalizedstream, promooffer, series, series_membership, volumes, volumes_associated, volumes_mybooks, volumes_recommended, volumes_useruploaded
2026.05.21.1
2026.05.19.2
2026.05.19.1
2026.04.23.1
2026.04.04.1
  • Updated: bookshelves_volumes, layers_annotationdata, mylibrary_bookshelves_volumes, personalizedstream, series_membership, volumes, volumes_associated, volumes_mybooks, volumes_recommended, volumes_useruploaded
2026.04.03.3
  • Updated: bookshelves, bookshelves_volumes, layers, layers_annotationdata, layers_volumeannotations, mylibrary_annotations, mylibrary_bookshelves, mylibrary_bookshelves_volumes, mylibrary_readingpositions, notification, personalizedstream, promooffer, series, series_membership, volumes, volumes_associated, volumes_mybooks, volumes_recommended, volumes_useruploaded
05Stats
A
100 / 100
Downloads
0
Archive size
136.0 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels