Gcp/people
@swamp/gcp/peoplev2026.10.23.1
01README
Google Cloud people infrastructure models
02Release Notes
- Updated: contactgroups, othercontacts, people, people_connections
03Behaviors
contactgroups.tsv2026.10.23.1
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP 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? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
| contactGroup? | object | The client specified key of the client data. |
| readGroupFields? | string | Optional. A field mask to restrict which fields on the group are returned. Defaults to `metadata`, `groupType`, and `name` if not set or set to empty. Valid fields are: * clientData * groupType * memberCount * metadata * name |
| updateGroupFields? | string | Optional. A field mask to restrict which fields on the group are updated. Multiple fields can be specified by separating them with commas. Defaults to `name` if not set or set to empty. Updated fields are replaced. Valid values are: * clientData * name |
fn create()
Create a contactGroups
fn get(identifier: string)
Get a contactGroups
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the contactGroups |
fn update(identifier?: string)
Update contactGroups attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific contactGroups by name (e.g. one discovered by list) |
fn delete(identifier: string)
Delete the contactGroups
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the contactGroups |
fn sync(identifier?: string)
Sync contactGroups state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific contactGroups by name (e.g. one discovered by list) |
fn list(groupFields?: string, pageSize?: number, syncToken?: string, maxPages?: number)
List contactGroups resources
| Argument | Type | Description |
|---|---|---|
| groupFields? | string | Optional. A field mask to restrict which fields on the group are returned. Defaults to `metadata`, `groupType`, `memberCount`, and `name` if not set or set to empty. Valid fields are: * clientData * groupType * memberCount * metadata * name |
| pageSize? | number | Optional. The maximum number of resources to return. Valid values are between 1 and 1000, inclusive. Defaults to 30 if not set or set to 0. |
| syncToken? | string | Optional. A sync token, returned by a previous call to `contactgroups.list`. Only resources changed since the sync token was created will be returned. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
fn batch_get(groupFields?: any, maxMembers?: any, resourceNames?: any)
batch get
| Argument | Type | Description |
|---|---|---|
| groupFields? | any | |
| maxMembers? | any | |
| resourceNames? | any |
Resources
state(infinite)— A contact group.
othercontacts.tsv2026.10.23.1
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP 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? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
fn get(identifier: string)
Get a otherContacts
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the otherContacts |
fn sync(identifier?: string)
Sync otherContacts state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific otherContacts by name (e.g. one discovered by list) |
fn list(pageSize?: number, readMask?: string, requestSyncToken?: boolean, sources?: string, syncToken?: string, maxPages?: number)
List otherContacts resources
| Argument | Type | Description |
|---|---|---|
| pageSize? | number | Optional. The number of "Other contacts" to include in the response. Valid values are between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0. |
| readMask? | string | Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. What values are valid depend on what ReadSourceType is used. If READ_SOURCE_TYPE_CONTACT is used, valid values are: * emailAddresses * metadata * names * phoneNumbers * photos If READ_SOURCE_TYPE_PROFILE is used, valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * sipAddresses * skills * urls * userDefined |
| requestSyncToken? | boolean | Optional. Whether the response should return `next_sync_token` on the last page of results. It can be used to get incremental changes since the last request by setting it on the request `sync_token`. More details about sync behavior at `otherContacts.list`. |
| sources? | string | Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT if not set. Possible values for this field are: * READ_SOURCE_TYPE_CONTACT * READ_SOURCE_TYPE_CONTACT,READ_SOURCE_TYPE_PROFILE Specifying READ_SOURCE_TYPE_PROFILE without specifying READ_SOURCE_TYPE_CONTACT is not permitted. |
| syncToken? | string | Optional. A sync token, received from a previous response `next_sync_token` Provide this to retrieve only the resources changed since the last request. When syncing, all other parameters provided to `otherContacts.list` must match the first call that provided the sync token. More details about sync behavior at `otherContacts.list`. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
fn copy_other_contact_to_my_contacts_group(copyMask?: any, readMask?: any, sources?: any)
copy other contact to my contacts group
| Argument | Type | Description |
|---|---|---|
| copyMask? | any | |
| readMask? | any | |
| sources? | any |
fn search(pageSize?: any, query?: any, readMask?: any)
search
| Argument | Type | Description |
|---|---|---|
| pageSize? | any | |
| query? | any | |
| readMask? | any |
Resources
state(infinite)— Information about a person merged from various data sources such as the authe...
people.tsv2026.10.23.1
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP 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? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
fn get(identifier: string)
Get a people
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the people |
fn delete(identifier: string)
Delete the people
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the people |
fn sync(identifier?: string)
Sync people state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific people by name (e.g. one discovered by list) |
fn batch_create_contacts(contacts?: any, readMask?: any, sources?: any)
batch create contacts
| Argument | Type | Description |
|---|---|---|
| contacts? | any | |
| readMask? | any | |
| sources? | any |
fn batch_delete_contacts(resourceNames?: any)
batch delete contacts
| Argument | Type | Description |
|---|---|---|
| resourceNames? | any |
fn batch_update_contacts(contacts?: any, readMask?: any, sources?: any, updateMask?: any)
batch update contacts
| Argument | Type | Description |
|---|---|---|
| contacts? | any | |
| readMask? | any | |
| sources? | any | |
| updateMask? | any |
fn create_contact(addresses?: any, ageRange?: any, ageRanges?: any, biographies?: any, birthdays?: any, braggingRights?: any, calendarUrls?: any, clientData?: any, coverPhotos?: any, emailAddresses?: any, etag?: any, events?: any, externalIds?: any, fileAses?: any, genders?: any, imClients?: any, interests?: any, locales?: any, locations?: any, memberships?: any, metadata?: any, miscKeywords?: any, names?: any, nicknames?: any, occupations?: any, organizations?: any, phoneNumbers?: any, photos?: any, relations?: any, relationshipInterests?: any, relationshipStatuses?: any, residences?: any, resourceName?: any, sipAddresses?: any, skills?: any, taglines?: any, urls?: any, userDefined?: any, personFields?: any, sources?: any)
create contact
| Argument | Type | Description |
|---|---|---|
| addresses? | any | |
| ageRange? | any | |
| ageRanges? | any | |
| biographies? | any | |
| birthdays? | any | |
| braggingRights? | any | |
| calendarUrls? | any | |
| clientData? | any | |
| coverPhotos? | any | |
| emailAddresses? | any | |
| etag? | any | |
| events? | any | |
| externalIds? | any | |
| fileAses? | any | |
| genders? | any | |
| imClients? | any | |
| interests? | any | |
| locales? | any | |
| locations? | any | |
| memberships? | any | |
| metadata? | any | |
| miscKeywords? | any | |
| names? | any | |
| nicknames? | any | |
| occupations? | any | |
| organizations? | any | |
| phoneNumbers? | any | |
| photos? | any | |
| relations? | any | |
| relationshipInterests? | any | |
| relationshipStatuses? | any | |
| residences? | any | |
| resourceName? | any | |
| sipAddresses? | any | |
| skills? | any | |
| taglines? | any | |
| urls? | any | |
| userDefined? | any | |
| personFields? | any | |
| sources? | any |
fn get_batch_get(personFields?: any, requestMask_includeField?: any, resourceNames?: any, sources?: any)
get batch get
| Argument | Type | Description |
|---|---|---|
| personFields? | any | |
| requestMask_includeField? | any | |
| resourceNames? | any | |
| sources? | any |
fn list_directory_people(mergeSources?: any, pageSize?: any, pageToken?: any, readMask?: any, requestSyncToken?: any, sources?: any, syncToken?: any)
list directory people
| Argument | Type | Description |
|---|---|---|
| mergeSources? | any | |
| pageSize? | any | |
| pageToken? | any | |
| readMask? | any | |
| requestSyncToken? | any | |
| sources? | any | |
| syncToken? | any |
fn search_contacts(pageSize?: any, query?: any, readMask?: any, sources?: any)
search contacts
| Argument | Type | Description |
|---|---|---|
| pageSize? | any | |
| query? | any | |
| readMask? | any | |
| sources? | any |
fn search_directory_people(mergeSources?: any, pageSize?: any, pageToken?: any, query?: any, readMask?: any, sources?: any)
search directory people
| Argument | Type | Description |
|---|---|---|
| mergeSources? | any | |
| pageSize? | any | |
| pageToken? | any | |
| query? | any | |
| readMask? | any | |
| sources? | any |
fn update_contact(addresses?: any, ageRange?: any, ageRanges?: any, biographies?: any, birthdays?: any, braggingRights?: any, calendarUrls?: any, clientData?: any, coverPhotos?: any, emailAddresses?: any, etag?: any, events?: any, externalIds?: any, fileAses?: any, genders?: any, imClients?: any, interests?: any, locales?: any, locations?: any, memberships?: any, metadata?: any, miscKeywords?: any, names?: any, nicknames?: any, occupations?: any, organizations?: any, phoneNumbers?: any, photos?: any, relations?: any, relationshipInterests?: any, relationshipStatuses?: any, residences?: any, resourceName?: any, sipAddresses?: any, skills?: any, taglines?: any, urls?: any, userDefined?: any, personFields?: any, sources?: any, updatePersonFields?: any)
update contact
| Argument | Type | Description |
|---|---|---|
| addresses? | any | |
| ageRange? | any | |
| ageRanges? | any | |
| biographies? | any | |
| birthdays? | any | |
| braggingRights? | any | |
| calendarUrls? | any | |
| clientData? | any | |
| coverPhotos? | any | |
| emailAddresses? | any | |
| etag? | any | |
| events? | any | |
| externalIds? | any | |
| fileAses? | any | |
| genders? | any | |
| imClients? | any | |
| interests? | any | |
| locales? | any | |
| locations? | any | |
| memberships? | any | |
| metadata? | any | |
| miscKeywords? | any | |
| names? | any | |
| nicknames? | any | |
| occupations? | any | |
| organizations? | any | |
| phoneNumbers? | any | |
| photos? | any | |
| relations? | any | |
| relationshipInterests? | any | |
| relationshipStatuses? | any | |
| residences? | any | |
| resourceName? | any | |
| sipAddresses? | any | |
| skills? | any | |
| taglines? | any | |
| urls? | any | |
| userDefined? | any | |
| personFields? | any | |
| sources? | any | |
| updatePersonFields? | any |
fn update_contact_photo(personFields?: any, photoBytes?: any, sources?: any)
update contact photo
| Argument | Type | Description |
|---|---|---|
| personFields? | any | |
| photoBytes? | any | |
| sources? | any |
Resources
state(infinite)— Information about a person merged from various data sources such as the authe...
people_connections.tsv2026.10.23.1
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP 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? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
| resourceName | string | Required. The resource name to return connections for. Only `people/me` is valid. |
fn get(identifier: string)
Get a connections
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the connections |
fn sync(identifier?: string)
Sync connections state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific connections by name (e.g. one discovered by list) |
fn list(pageSize?: number, personFields?: string, requestMask_includeField?: string, requestSyncToken?: boolean, sortOrder?: string, sources?: string, syncToken?: string, maxPages?: number)
List connections resources
| Argument | Type | Description |
|---|---|---|
| pageSize? | number | Optional. The number of connections to include in the response. Valid values are between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0. |
| personFields? | string | Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * addresses * ageRanges * biographies * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * metadata * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * photos * relations * sipAddresses * skills * urls * userDefined |
| requestMask_includeField? | string | Required. Comma-separated list of person fields to be included in the response. Each path should start with `person.`: for example, `person.names` or `person.photos`. |
| requestSyncToken? | boolean | Optional. Whether the response should return `next_sync_token` on the last page of results. It can be used to get incremental changes since the last request by setting it on the request `sync_token`. More details about sync behavior at `people.connections.list`. |
| sortOrder? | string | Optional. The order in which the connections should be sorted. Defaults to `LAST_MODIFIED_ASCENDING`. |
| sources? | string | Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set. |
| syncToken? | string | Optional. A sync token, received from a previous response `next_sync_token` Provide this to retrieve only the resources changed since the last request. When syncing, all other parameters provided to `people.connections.list` must match the first call that provided the sync token. More details about sync behavior at `people.connections.list`. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
Resources
state(infinite)— Information about a person merged from various data sources such as the authe...
04Previous Versions
2026.10.13.1
- Updated: contactgroups, othercontacts, people, people_connections
2026.10.06.1
- Updated: contactgroups, othercontacts, people
Modified 1 behaviors
2026.09.07.2
- Updated: people
2026.08.12.2
- Updated: contactgroups, othercontacts, people, people_connections
2026.07.29.1
- Updated: contactgroups, othercontacts, people, people_connections
2026.07.21.3
- Updated: contactgroups, othercontacts, people, people_connections
2026.07.21.1
- Updated: contactgroups
2026.07.20.1
- Updated: contactgroups, othercontacts, people, people_connections
2026.07.19.2
- Updated: people_connections
2026.07.19.1
- Updated: contactgroups, othercontacts, people, people_connections
2026.07.18.1
- Updated: contactgroups, othercontacts, people, people_connections
2026.06.08.2
- Updated: contactgroups, othercontacts, people, people_connections
2026.06.07.1
- Updated: contactgroups, othercontacts, people, people_connections
2026.05.25.2
- Updated: contactgroups, othercontacts
Modified 1 behaviors
2026.05.24.1
- Updated: contactgroups, othercontacts, people, people_connections
2026.05.21.2
- Updated: contactgroups, othercontacts, people, people_connections
2026.05.21.1
2026.05.19.2
2026.05.19.1
Modified 1 behaviors
05Stats
A
100 / 100
Downloads
31
Archive size
60.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
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
06Platforms
07Labels