Skip to main content

Gcp/gmail

@swamp/gcp/gmailv2026.09.07.1· 13d agoMODELS
01README

Google Cloud gmail infrastructure models

02Release Notes
  • Updated: users_messages
03Models13
@swamp/gcp/gmail/users-draftsv2026.08.12.2users_drafts.ts

Global Arguments

ArgumentTypeDescription
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.
id?stringThe immutable ID of the draft.
message?objectThe message content of the draft.
userIdstringThe user's email address. The special value `me` can be used to indicate the authenticated user.
fn create()
Create a drafts
fn get(identifier: string)
Get a drafts
ArgumentTypeDescription
identifierstringThe id of the drafts
fn update(identifier?: string)
Update drafts attributes
ArgumentTypeDescription
identifier?stringTarget a specific drafts by id (e.g. one discovered by list)
fn delete(identifier: string)
Delete the drafts
ArgumentTypeDescription
identifierstringThe id of the drafts
fn sync(identifier?: string)
Sync drafts state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific drafts by id (e.g. one discovered by list)
fn list(includeSpamTrash?: boolean, maxResults?: number, q?: string, maxPages?: number)
List drafts resources
ArgumentTypeDescription
includeSpamTrash?booleanInclude drafts from `SPAM` and `TRASH` in the results.
maxResults?numberMaximum number of drafts to return. This field defaults to 100. The maximum allowed value for this field is 500.
q?stringOnly return draft messages matching the specified query. Supports the same query format as the Gmail search box. For example, `"from:someuser@example.com rfc822msgid: is:unread"`.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn send(id?: any, message?: any)
send
ArgumentTypeDescription
id?any
message?any

Resources

state(infinite)— A draft email in the user's mailbox.
@swamp/gcp/gmail/users-historyv2026.08.12.2users_history.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.
userIdstringThe user's email address. The special value `me` can be used to indicate the authenticated user.
fn get(identifier: string)
Get a history
ArgumentTypeDescription
identifierstringThe name of the history
fn sync(identifier?: string)
Sync history state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific history by name (e.g. one discovered by list)
fn list(historyTypes?: string, labelId?: string, maxResults?: number, startHistoryId?: string, maxPages?: number)
List history resources
ArgumentTypeDescription
historyTypes?stringHistory types to be returned by the function
labelId?stringOnly return messages with a label matching the ID.
maxResults?numberMaximum number of history records to return. This field defaults to 100. The maximum allowed value for this field is 500.
startHistoryId?stringRequired. Returns history records after the specified `startHistoryId`. The supplied `startHistoryId` should be obtained from the `historyId` of a message, thread, or previous `list` response. History IDs increase chronologically but are not contiguous with random gaps in between valid IDs. Supplying an invalid or out of date `startHistoryId` typically returns an `HTTP 404` error code. A `historyId` is typically valid for at least a week, but in some rare circumstances may be valid for only a fe
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— A record of a change to the user's mailbox. Each history change may affect mu...
@swamp/gcp/gmail/users-labelsv2026.08.12.2users_labels.ts

Global Arguments

ArgumentTypeDescription
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.
color?objectThe color to assign to the label. Color is only available for labels that have their `type` set to `user`.
id?stringThe immutable ID of the label.
labelListVisibilityenumThe visibility of the label in the label list in the Gmail web interface.
messageListVisibilityenumThe visibility of messages with this label in the message list in the Gmail web interface.
messagesTotal?numberThe total number of messages with the label.
messagesUnread?numberThe number of unread messages with the label.
namestringThe display name of the label.
threadsTotal?numberThe total number of threads with the label.
threadsUnread?numberThe number of unread threads with the label.
type?enumThe owner type for the label. User labels are created by the user and can be modified and deleted by the user and can be applied to any message or thread. System labels are internally created and cannot be added, modified, or deleted. System labels may be able to be applied to or removed from messages and threads under some circumstances but this is not guaranteed. For example, users can apply and remove the `INBOX` and `UNREAD` labels from messages and threads, but cannot apply or remove the `D
userIdstringThe user's email address. The special value `me` can be used to indicate the authenticated user.
fn create()
Create a labels
fn get(identifier: string)
Get a labels
ArgumentTypeDescription
identifierstringThe id of the labels
fn update(identifier?: string)
Update labels attributes
ArgumentTypeDescription
identifier?stringTarget a specific labels by id (e.g. one discovered by list)
fn delete(identifier: string)
Delete the labels
ArgumentTypeDescription
identifierstringThe id of the labels
fn sync(identifier?: string)
Sync labels state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific labels by id (e.g. one discovered by list)
fn list(maxPages?: number)
List labels resources
ArgumentTypeDescription
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Labels are used to categorize messages and threads within the user's mailbox....
@swamp/gcp/gmail/users-messagesv2026.09.07.1users_messages.ts

Global Arguments

ArgumentTypeDescription
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.
classificationLabelValues?arrayClassification Label values on the message. Available Classification Label schemas can be queried using the Google Drive Labels API. Each classification label ID must be unique. If duplicate IDs are provided, only one will be retained, and the selection is arbitrary. Only used for Google Workspace accounts. There's a limit of 20 Classification Label values per request. If the Classification Label values exceeds the maximum allowed number, the request fails.
historyId?stringThe ID of the last history record that modified this message.
id?stringThe immutable ID of the message.
internalDate?stringThe internal message creation timestamp (epoch ms), which determines ordering in the inbox. For normal SMTP-received email, this represents the time the message was originally accepted by Google, which is more reliable than the `Date` header. However, for API-migrated mail, it can be configured by client to be based on the `Date` header.
labelIds?arrayList of IDs of labels applied to this message.
payload?objectThe parsed email structure in the message parts.
rawstringThe entire email message in an RFC 2822 formatted and base64url encoded string. Returned in `messages.get` and `drafts.get` responses when the `format=RAW` parameter is supplied. @required gmail.users.drafts.create gmail.users.drafts.update
sizeEstimate?numberEstimated size in bytes of the message.
snippet?stringA short part of the message text.
threadId?stringThe ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met: 1. The requested `threadId` must be specified on the `Message` or `Draft.Message` you supply with your request. 2. The `References` and `In-Reply-To` headers must be set in compliance with the [RFC 2822](https://tools.ietf.org/html/rfc2822) standard. 3. The `Subject` headers must match.
userIdstringThe user's email address. The special value `me` can be used to indicate the authenticated user.
deleted?stringMark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts.
internalDateSource?stringSource for Gmail's internal date of the message.
fn create()
Create a messages
fn get(identifier: string)
Get a messages
ArgumentTypeDescription
identifierstringThe id of the messages
fn delete(identifier: string)
Delete the messages
ArgumentTypeDescription
identifierstringThe id of the messages
fn sync(identifier?: string)
Sync messages state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific messages by id (e.g. one discovered by list)
fn list(includeSpamTrash?: boolean, labelIds?: string, maxResults?: number, q?: string, maxPages?: number)
List messages resources
ArgumentTypeDescription
includeSpamTrash?booleanInclude messages from `SPAM` and `TRASH` in the results.
labelIds?stringOnly return messages with labels that match all of the specified label IDs. Messages in a thread might have labels that other messages in the same thread don't have. To learn more, see [Manage labels on messages and threads](https://developers.google.com/workspace/gmail/api/guides/labels#manage_labels_on_messages_threads).
maxResults?numberMaximum number of messages to return. This field defaults to 100. The maximum allowed value for this field is 500.
q?stringOnly return messages matching the specified query. Supports the same query format as the Gmail search box. For example, `"from:someuser@example.com rfc822msgid: is:unread"`. Parameter cannot be used when accessing the api using the gmail.metadata scope.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn batch_delete(ids?: any)
batch delete
ArgumentTypeDescription
ids?any
fn batch_modify(addClassificationLabels?: any, addLabelIds?: any, ids?: any, removeClassificationLabelIds?: any, removeLabelIds?: any)
batch modify
ArgumentTypeDescription
addClassificationLabels?any
addLabelIds?any
ids?any
removeClassificationLabelIds?any
removeLabelIds?any
fn import(classificationLabelValues?: any, historyId?: any, id?: any, internalDate?: any, labelIds?: any, payload?: any, raw?: any, sizeEstimate?: any, snippet?: any, threadId?: any, deleted?: any, internalDateSource?: any, neverMarkSpam?: any, processForCalendar?: any)
import
ArgumentTypeDescription
classificationLabelValues?any
historyId?any
id?any
internalDate?any
labelIds?any
payload?any
raw?any
sizeEstimate?any
snippet?any
threadId?any
deleted?any
internalDateSource?any
neverMarkSpam?any
processForCalendar?any
fn modify(addClassificationLabels?: any, addLabelIds?: any, ids?: any, removeClassificationLabelIds?: any, removeLabelIds?: any)
modify
ArgumentTypeDescription
addClassificationLabels?any
addLabelIds?any
ids?any
removeClassificationLabelIds?any
removeLabelIds?any
fn send(classificationLabelValues?: any, historyId?: any, id?: any, internalDate?: any, labelIds?: any, payload?: any, raw?: any, sizeEstimate?: any, snippet?: any, threadId?: any)
send
ArgumentTypeDescription
classificationLabelValues?any
historyId?any
id?any
internalDate?any
labelIds?any
payload?any
raw?any
sizeEstimate?any
snippet?any
threadId?any
fn trash()
trash
fn untrash()
untrash

Resources

state(infinite)— An email message.
@swamp/gcp/gmail/users-messages-attachmentsv2026.08.12.2users_messages_attachments.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.
userIdstringThe user's email address. The special value `me` can be used to indicate the authenticated user.
messageIdstringThe ID of the message containing the attachment.
fn get(identifier: string)
Get a attachments
ArgumentTypeDescription
identifierstringThe id of the attachments
fn sync(identifier?: string)
Sync attachments state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific attachments by id (e.g. one discovered by list)

Resources

state(infinite)— The body of a single MIME message part.
@swamp/gcp/gmail/users-settings-cse-identitiesv2026.08.13.1users_settings_cse_identities.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.
emailAddress?stringThe email address for the sending identity. The email address must be the primary email address of the authenticated user.
primaryKeyPairId?stringIf a key pair is associated, the ID of the key pair, CseKeyPair.
signAndEncryptKeyPairs?objectThe configuration of a CSE identity that uses different key pairs for signing and encryption.
userIdstringThe requester's primary email address. To indicate the authenticated user, you can use the special value `me`.
fn create()
Create a identities
fn get(identifier: string)
Get a identities
ArgumentTypeDescription
identifierstringThe name of the identities
fn update(identifier?: string)
Update identities attributes
ArgumentTypeDescription
identifier?stringTarget a specific identities by name (e.g. one discovered by list)
fn delete(identifier: string)
Delete the identities
ArgumentTypeDescription
identifierstringThe name of the identities
fn sync(identifier?: string)
Sync identities state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific identities by name (e.g. one discovered by list)
fn list(pageSize?: number, maxPages?: number)
List identities resources
ArgumentTypeDescription
pageSize?numberThe number of identities to return. If not provided, the page size will default to 20 entries.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— The client-side encryption (CSE) configuration for the email address of an au...
@swamp/gcp/gmail/users-settings-cse-keypairsv2026.08.12.2users_settings_cse_keypairs.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.
pkcs7?stringInput only. The public key and its certificate chain. The chain must be in [PKCS#7](https://en.wikipedia.org/wiki/PKCS_7) format and use PEM encoding and ASCII armor.
privateKeyMetadata?arrayMetadata for instances of this key pair's private key.
userIdstringThe requester's primary email address. To indicate the authenticated user, you can use the special value `me`.
chainValidation?stringThe type of certificate chain validation to perform at creation. The request will be rejected if the uploaded chain fails to satisfy the requested validation checks. When unspecified, this parameter defaults to `all`.
fn create()
Create a keypairs
fn get(identifier: string)
Get a keypairs
ArgumentTypeDescription
identifierstringThe name of the keypairs
fn sync(identifier?: string)
Sync keypairs state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific keypairs by name (e.g. one discovered by list)
fn list(pageSize?: number, maxPages?: number)
List keypairs resources
ArgumentTypeDescription
pageSize?numberThe number of key pairs to return. If not provided, the page size will default to 20 entries.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn disable()
disable
fn enable()
enable
fn obliterate()
obliterate

Resources

state(infinite)— A client-side encryption S/MIME key pair, which is comprised of a public key,...
@swamp/gcp/gmail/users-settings-delegatesv2026.08.12.2users_settings_delegates.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.
delegateEmail?stringThe email address of the delegate.
verificationStatus?enumIndicates whether this address has been verified and can act as a delegate for the account. Read-only.
userIdstringUser\
fn create()
Create a delegates
fn get(identifier: string)
Get a delegates
ArgumentTypeDescription
identifierstringThe name of the delegates
fn delete(identifier: string)
Delete the delegates
ArgumentTypeDescription
identifierstringThe name of the delegates
fn sync(identifier?: string)
Sync delegates state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific delegates by name (e.g. one discovered by list)
fn list(maxPages?: number)
List delegates resources
ArgumentTypeDescription
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Settings for a delegate. Delegates can read, send, and delete messages, as we...
@swamp/gcp/gmail/users-settings-filtersv2026.08.12.2users_settings_filters.ts

Global Arguments

ArgumentTypeDescription
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.
action?objectAction that the filter performs.
criteria?objectMatching criteria for the filter.
id?stringThe server assigned ID of the filter.
userIdstringUser\
fn create()
Create a filters
fn get(identifier: string)
Get a filters
ArgumentTypeDescription
identifierstringThe id of the filters
fn delete(identifier: string)
Delete the filters
ArgumentTypeDescription
identifierstringThe id of the filters
fn sync(identifier?: string)
Sync filters state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific filters by id (e.g. one discovered by list)
fn list(maxPages?: number)
List filters resources
ArgumentTypeDescription
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Resource definition for Gmail filters. Filters apply to specific messages ins...
@swamp/gcp/gmail/users-settings-forwardingaddressesv2026.08.12.2users_settings_forwardingaddresses.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.
forwardingEmail?stringAn email address to which messages can be forwarded.
verificationStatus?enumIndicates whether this address has been verified and is usable for forwarding. Read-only.
userIdstringUser\
fn create()
Create a forwardingAddresses
fn get(identifier: string)
Get a forwardingAddresses
ArgumentTypeDescription
identifierstringThe name of the forwardingAddresses
fn delete(identifier: string)
Delete the forwardingAddresses
ArgumentTypeDescription
identifierstringThe name of the forwardingAddresses
fn sync(identifier?: string)
Sync forwardingAddresses state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific forwardingAddresses by name (e.g. one discovered by list)
fn list(maxPages?: number)
List forwardingAddresses resources
ArgumentTypeDescription
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Settings for a forwarding address.
@swamp/gcp/gmail/users-settings-sendasv2026.08.13.1users_settings_sendas.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.
displayName?stringA name that appears in the "From:" header for mail sent using this alias. For custom "from" addresses, when this is empty, Gmail will populate the "From:" header with the name that is used for the primary address associated with the account. If the admin has disabled the ability for users to update their name format, requests to update this field for the primary login will silently fail.
isDefault?booleanWhether this address is selected as the default "From:" address in situations such as composing a new message or sending a vacation auto-reply. Every Gmail account has exactly one default send-as address, so the only legal value that clients may write to this field is `true`. Changing this from `false` to `true` for an address will result in this field becoming `false` for the other previous default address.
isPrimary?booleanWhether this address is the primary address used to login to the account. Every Gmail account has exactly one primary address, and it cannot be deleted from the collection of send-as aliases. This field is read-only.
replyToAddress?stringAn optional email address that is included in a "Reply-To:" header for mail sent using this alias. If this is empty, Gmail will not generate a "Reply-To:" header.
sendAsEmail?stringThe email address that appears in the "From:" header for mail sent using this alias. This is read-only for all operations except create.
signature?stringAn optional HTML signature that is included in messages composed with this alias in the Gmail web UI. This signature is added to new emails only.
smtpMsa?objectAn optional SMTP service that will be used as an outbound relay for mail sent using this alias. If this is empty, outbound mail will be sent directly from Gmail\
treatAsAlias?booleanWhether Gmail should treat this address as an alias for the user\
verificationStatus?enumIndicates whether this address has been verified for use as a send-as alias. Read-only. This setting only applies to custom "from" aliases.
userIdstringUser\
fn create()
Create a sendAs
fn get(identifier: string)
Get a sendAs
ArgumentTypeDescription
identifierstringThe name of the sendAs
fn update(identifier?: string)
Update sendAs attributes
ArgumentTypeDescription
identifier?stringTarget a specific sendAs by name (e.g. one discovered by list)
fn delete(identifier: string)
Delete the sendAs
ArgumentTypeDescription
identifierstringThe name of the sendAs
fn sync(identifier?: string)
Sync sendAs state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific sendAs by name (e.g. one discovered by list)
fn list(maxPages?: number)
List sendAs resources
ArgumentTypeDescription
maxPages?numberMaximum number of pages to fetch (default: 10)
fn verify()
verify

Resources

state(infinite)— Settings associated with a send-as alias, which can be either the primary log...
@swamp/gcp/gmail/users-settings-sendas-smimeinfov2026.08.12.2users_settings_sendas_smimeinfo.ts

Global Arguments

ArgumentTypeDescription
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.
encryptedKeyPassword?stringEncrypted key password, when key is encrypted.
expiration?stringWhen the certificate expires (in milliseconds since epoch).
id?stringThe immutable ID for the SmimeInfo.
isDefault?booleanWhether this SmimeInfo is the default one for this user's send-as address.
issuerCn?stringThe S/MIME certificate issuer's common name.
pem?stringPEM formatted X509 concatenated certificate string (standard base64 encoding). Format used for returning key, which includes public key as well as certificate chain (not private key).
pkcs12?stringPKCS#12 format containing a single private/public key pair and certificate chain. This format is only accepted from client for creating a new SmimeInfo and is never returned, because the private key is not intended to be exported. PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set appropriately.
userIdstringThe user's email address. The special value `me` can be used to indicate the authenticated user.
sendAsEmailstringThe email address that appears in the "From:" header for mail sent using this alias.
fn create()
Create a smimeInfo
fn get(identifier: string)
Get a smimeInfo
ArgumentTypeDescription
identifierstringThe id of the smimeInfo
fn delete(identifier: string)
Delete the smimeInfo
ArgumentTypeDescription
identifierstringThe id of the smimeInfo
fn sync(identifier?: string)
Sync smimeInfo state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific smimeInfo by id (e.g. one discovered by list)
fn list(maxPages?: number)
List smimeInfo resources
ArgumentTypeDescription
maxPages?numberMaximum number of pages to fetch (default: 10)
fn set_default()
set default

Resources

state(infinite)— An S/MIME email config.
@swamp/gcp/gmail/users-threadsv2026.08.12.2users_threads.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.
userIdstringThe user's email address. The special value `me` can be used to indicate the authenticated user.
fn get(identifier: string)
Get a threads
ArgumentTypeDescription
identifierstringThe id of the threads
fn delete(identifier: string)
Delete the threads
ArgumentTypeDescription
identifierstringThe id of the threads
fn sync(identifier?: string)
Sync threads state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific threads by id (e.g. one discovered by list)
fn list(includeSpamTrash?: boolean, labelIds?: string, maxResults?: number, q?: string, maxPages?: number)
List threads resources
ArgumentTypeDescription
includeSpamTrash?booleanInclude threads from `SPAM` and `TRASH` in the results.
labelIds?stringOnly return threads with labels that match all of the specified label IDs.
maxResults?numberMaximum number of threads to return. This field defaults to 100. The maximum allowed value for this field is 500.
q?stringOnly return threads matching the specified query. Supports the same query format as the Gmail search box. For example, `"from:someuser@example.com rfc822msgid: is:unread"`. Parameter cannot be used when accessing the api using the gmail.metadata scope.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn modify(addLabelIds?: any, removeLabelIds?: any)
modify
ArgumentTypeDescription
addLabelIds?any
removeLabelIds?any
fn trash()
trash
fn untrash()
untrash

Resources

state(infinite)— A collection of messages representing a conversation.
04Previous Versions19
2026.08.12.2
  • Updated: users_drafts, users_history, users_labels, users_messages, users_messages_attachments, users_settings_cse_identities, users_settings_cse_keypairs, users_settings_delegates, users_settings_filters, users_settings_forwardingaddresses, users_settings_sendas, users_settings_sendas_smimeinfo, users_threads
2026.07.29.1
  • Updated: users_drafts, users_history, users_labels, users_messages, users_messages_attachments, users_settings_cse_identities, users_settings_cse_keypairs, users_settings_delegates, users_settings_filters, users_settings_forwardingaddresses, users_settings_sendas, users_settings_sendas_smimeinfo, users_threads
2026.07.21.4
  • Updated: users_drafts, users_labels, users_messages, users_settings_filters, users_settings_sendas
2026.07.21.1
  • Updated: users_drafts, users_labels, users_messages, users_settings_cse_identities, users_settings_cse_keypairs, users_settings_delegates, users_settings_filters, users_settings_forwardingaddresses, users_settings_sendas
2026.07.20.2
  • Updated: users_drafts, users_labels, users_messages, users_settings_filters, users_settings_sendas
2026.07.20.1
  • Updated: users_drafts, users_history, users_labels, users_messages, users_messages_attachments, users_settings_cse_identities, users_settings_cse_keypairs, users_settings_delegates, users_settings_filters, users_settings_forwardingaddresses, users_settings_sendas, users_settings_sendas_smimeinfo, users_threads
2026.07.19.2
  • Updated: users_history, users_messages_attachments, users_threads
2026.07.19.1
  • Updated: users_drafts, users_history, users_labels, users_messages, users_messages_attachments, users_settings_cse_identities, users_settings_cse_keypairs, users_settings_delegates, users_settings_filters, users_settings_forwardingaddresses, users_settings_sendas, users_settings_sendas_smimeinfo, users_threads
2026.07.18.1
  • Updated: users_drafts, users_history, users_labels, users_messages, users_messages_attachments, users_settings_cse_identities, users_settings_cse_keypairs, users_settings_delegates, users_settings_filters, users_settings_forwardingaddresses, users_settings_sendas, users_settings_sendas_smimeinfo, users_threads
2026.07.17.2
  • Updated: users_drafts, users_labels, users_messages, users_settings_filters, users_settings_sendas_smimeinfo
2026.07.17.1
  • Updated: users_messages
2026.06.08.2
  • Updated: users_drafts, users_history, users_labels, users_messages, users_messages_attachments, users_settings_cse_identities, users_settings_cse_keypairs, users_settings_delegates, users_settings_filters, users_settings_forwardingaddresses, users_settings_sendas, users_settings_sendas_smimeinfo, users_threads
2026.06.07.1
  • Updated: users_drafts, users_history, users_labels, users_messages, users_messages_attachments, users_settings_cse_identities, users_settings_cse_keypairs, users_settings_delegates, users_settings_filters, users_settings_forwardingaddresses, users_settings_sendas, users_settings_sendas_smimeinfo, users_threads
2026.05.27.1
  • Updated: users_drafts, users_history, users_labels, users_messages, users_threads
2026.05.26.1
  • Updated: users_drafts, users_labels, users_messages, users_settings_filters, users_settings_sendas
2026.05.25.2
  • Updated: users_labels, users_settings_delegates, users_settings_filters, users_settings_forwardingaddresses, users_settings_sendas, users_settings_sendas_smimeinfo

Modified 12 models

2026.05.24.1
  • Updated: users_drafts, users_history, users_labels, users_messages, users_messages_attachments, users_settings_cse_identities, users_settings_cse_keypairs, users_settings_delegates, users_settings_filters, users_settings_forwardingaddresses, users_settings_sendas, users_settings_sendas_smimeinfo, users_threads
2026.05.21.2
  • Updated: users_drafts, users_history, users_labels, users_messages, users_messages_attachments, users_settings_cse_identities, users_settings_cse_keypairs, users_settings_delegates, users_settings_filters, users_settings_forwardingaddresses, users_settings_sendas, users_settings_sendas_smimeinfo, users_threads
2026.05.21.1
05Stats
A
100 / 100
Downloads
6
Archive size
161.6 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