googleapis
Version:
Google APIs Client Library for Node.js
1,325 lines • 122 kB
TypeScript
/// <reference types="node" />
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { Readable } from 'stream';
export declare namespace people_v1 {
export interface Options extends GlobalOptions {
version: 'v1';
}
interface StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
/**
* V1 error format.
*/
'$.xgafv'?: string;
/**
* OAuth access token.
*/
access_token?: string;
/**
* Data format for response.
*/
alt?: string;
/**
* JSONP
*/
callback?: string;
/**
* Selector specifying which fields to include in a partial response.
*/
fields?: string;
/**
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
*/
key?: string;
/**
* OAuth 2.0 token for the current user.
*/
oauth_token?: string;
/**
* Returns response with indentations and line breaks.
*/
prettyPrint?: boolean;
/**
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
*/
quotaUser?: string;
/**
* Legacy upload protocol for media (e.g. "media", "multipart").
*/
uploadType?: string;
/**
* Upload protocol for media (e.g. "raw", "multipart").
*/
upload_protocol?: string;
}
/**
* People API
*
* Provides access to information about profiles and contacts.
*
* @example
* ```js
* const {google} = require('googleapis');
* const people = google.people('v1');
* ```
*/
export class People {
context: APIRequestContext;
contactGroups: Resource$Contactgroups;
otherContacts: Resource$Othercontacts;
people: Resource$People;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* A person's physical address. May be a P.O. box or street address. All fields are optional.
*/
export interface Schema$Address {
/**
* The city of the address.
*/
city?: string | null;
/**
* The country of the address.
*/
country?: string | null;
/**
* The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) country code of the address.
*/
countryCode?: string | null;
/**
* The extended address of the address; for example, the apartment number.
*/
extendedAddress?: string | null;
/**
* Output only. The type of the address translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.
*/
formattedType?: string | null;
/**
* The unstructured value of the address. If this is not set by the user it will be automatically constructed from structured values.
*/
formattedValue?: string | null;
/**
* Metadata about the address.
*/
metadata?: Schema$FieldMetadata;
/**
* The P.O. box of the address.
*/
poBox?: string | null;
/**
* The postal code of the address.
*/
postalCode?: string | null;
/**
* The region of the address; for example, the state or province.
*/
region?: string | null;
/**
* The street address.
*/
streetAddress?: string | null;
/**
* The type of the address. The type can be custom or one of these predefined values: * `home` * `work` * `other`
*/
type?: string | null;
}
/**
* A person's age range.
*/
export interface Schema$AgeRangeType {
/**
* The age range.
*/
ageRange?: string | null;
/**
* Metadata about the age range.
*/
metadata?: Schema$FieldMetadata;
}
/**
* A request to create a batch of contacts.
*/
export interface Schema$BatchCreateContactsRequest {
/**
* Required. The contact to create. Allows up to 200 contacts in a single request.
*/
contacts?: Schema$ContactToCreate[];
/**
* Required. A field mask to restrict which fields on each person are returned in the response. Multiple fields can be specified by separating them with commas. If read mask is left empty, the post-mutate-get is skipped and no data will be returned in the response. 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
*/
readMask?: string | null;
/**
* Optional. A mask of what source types to return in the post mutate read. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.
*/
sources?: string[] | null;
}
/**
* If not successful, returns BatchCreateContactsErrorDetails which contains a list of errors for each invalid contact. The response to a request to create a batch of contacts.
*/
export interface Schema$BatchCreateContactsResponse {
/**
* The contacts that were created, unless the request `read_mask` is empty.
*/
createdPeople?: Schema$PersonResponse[];
}
/**
* A request to delete a batch of existing contacts.
*/
export interface Schema$BatchDeleteContactsRequest {
/**
* Required. The resource names of the contact to delete. It's repeatable. Allows up to 500 resource names in a single request.
*/
resourceNames?: string[] | null;
}
/**
* The response to a batch get contact groups request.
*/
export interface Schema$BatchGetContactGroupsResponse {
/**
* The list of responses for each requested contact group resource.
*/
responses?: Schema$ContactGroupResponse[];
}
/**
* A request to update a batch of contacts.
*/
export interface Schema$BatchUpdateContactsRequest {
/**
* Required. A map of resource names to the person data to be updated. Allows up to 200 contacts in a single request.
*/
contacts?: {
[key: string]: Schema$Person;
} | null;
/**
* Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. If read mask is left empty, the post-mutate-get is skipped and no data will be returned in the response. 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
*/
readMask?: string | null;
/**
* Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.
*/
sources?: string[] | null;
/**
* Required. A field mask to restrict which fields on the person are updated. Multiple fields can be specified by separating them with commas. All specified fields will be replaced, or cleared if left empty for each person. Valid values are: * addresses * biographies * birthdays * calendarUrls * clientData * emailAddresses * events * externalIds * genders * imClients * interests * locales * locations * memberships * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * relations * sipAddresses * urls * userDefined
*/
updateMask?: string | null;
}
/**
* If not successful, returns BatchUpdateContactsErrorDetails, a list of errors corresponding to each contact. The response to a request to update a batch of contacts.
*/
export interface Schema$BatchUpdateContactsResponse {
/**
* A map of resource names to the contacts that were updated, unless the request `read_mask` is empty.
*/
updateResult?: {
[key: string]: Schema$PersonResponse;
} | null;
}
/**
* A person's short biography.
*/
export interface Schema$Biography {
/**
* The content type of the biography.
*/
contentType?: string | null;
/**
* Metadata about the biography.
*/
metadata?: Schema$FieldMetadata;
/**
* The short biography.
*/
value?: string | null;
}
/**
* A person's birthday. At least one of the `date` and `text` fields are specified. The `date` and `text` fields typically represent the same date, but are not guaranteed to. Clients should always set the `date` field when mutating birthdays.
*/
export interface Schema$Birthday {
/**
* The structured date of the birthday.
*/
date?: Schema$Date;
/**
* Metadata about the birthday.
*/
metadata?: Schema$FieldMetadata;
/**
* Prefer to use the `date` field if set. A free-form string representing the user's birthday. This value is not validated.
*/
text?: string | null;
}
/**
* **DEPRECATED**: No data will be returned A person's bragging rights.
*/
export interface Schema$BraggingRights {
/**
* Metadata about the bragging rights.
*/
metadata?: Schema$FieldMetadata;
/**
* The bragging rights; for example, `climbed mount everest`.
*/
value?: string | null;
}
/**
* A person's calendar URL.
*/
export interface Schema$CalendarUrl {
/**
* Output only. The type of the calendar URL translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.
*/
formattedType?: string | null;
/**
* Metadata about the calendar URL.
*/
metadata?: Schema$FieldMetadata;
/**
* The type of the calendar URL. The type can be custom or one of these predefined values: * `home` * `freeBusy` * `work`
*/
type?: string | null;
/**
* The calendar URL.
*/
url?: string | null;
}
/**
* Arbitrary client data that is populated by clients. Duplicate keys and values are allowed.
*/
export interface Schema$ClientData {
/**
* The client specified key of the client data.
*/
key?: string | null;
/**
* Metadata about the client data.
*/
metadata?: Schema$FieldMetadata;
/**
* The client specified value of the client data.
*/
value?: string | null;
}
/**
* A contact group.
*/
export interface Schema$ContactGroup {
/**
* The group's client data.
*/
clientData?: Schema$GroupClientData[];
/**
* The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the resource. Used for web cache validation.
*/
etag?: string | null;
/**
* Output only. The name translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale for system groups names. Group names set by the owner are the same as name.
*/
formattedName?: string | null;
/**
* Output only. The contact group type.
*/
groupType?: string | null;
/**
* Output only. The total number of contacts in the group irrespective of max members in specified in the request.
*/
memberCount?: number | null;
/**
* Output only. The list of contact person resource names that are members of the contact group. The field is only populated for GET requests and will only return as many members as `maxMembers` in the get request.
*/
memberResourceNames?: string[] | null;
/**
* Output only. Metadata about the contact group.
*/
metadata?: Schema$ContactGroupMetadata;
/**
* The contact group name set by the group owner or a system provided name for system groups. For [`contactGroups.create`](/people/api/rest/v1/contactGroups/create) or [`contactGroups.update`](/people/api/rest/v1/contactGroups/update) the name must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error.
*/
name?: string | null;
/**
* The resource name for the contact group, assigned by the server. An ASCII string, in the form of `contactGroups/{contact_group_id\}`.
*/
resourceName?: string | null;
}
/**
* A Google contact group membership.
*/
export interface Schema$ContactGroupMembership {
/**
* Output only. The contact group ID for the contact group membership.
*/
contactGroupId?: string | null;
/**
* The resource name for the contact group, assigned by the server. An ASCII string, in the form of `contactGroups/{contact_group_id\}`. Only contact_group_resource_name can be used for modifying memberships. Any contact group membership can be removed, but only user group or "myContacts" or "starred" system groups memberships can be added. A contact must always have at least one contact group membership.
*/
contactGroupResourceName?: string | null;
}
/**
* The metadata about a contact group.
*/
export interface Schema$ContactGroupMetadata {
/**
* Output only. True if the contact group resource has been deleted. Populated only for [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) requests that include a sync token.
*/
deleted?: boolean | null;
/**
* Output only. The time the group was last updated.
*/
updateTime?: string | null;
}
/**
* The response for a specific contact group.
*/
export interface Schema$ContactGroupResponse {
/**
* The contact group.
*/
contactGroup?: Schema$ContactGroup;
/**
* The original requested resource name.
*/
requestedResourceName?: string | null;
/**
* The status of the response.
*/
status?: Schema$Status;
}
/**
* A wrapper that contains the person data to populate a newly created source.
*/
export interface Schema$ContactToCreate {
/**
* Required. The person data to populate a newly created source.
*/
contactPerson?: Schema$Person;
}
/**
* A request to copy an "Other contact" to my contacts group.
*/
export interface Schema$CopyOtherContactToMyContactsGroupRequest {
/**
* Required. A field mask to restrict which fields are copied into the new contact. Valid values are: * emailAddresses * names * phoneNumbers
*/
copyMask?: string | null;
/**
* Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to the copy mask with metadata and membership fields if not set. 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
*/
readMask?: string | null;
/**
* Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.
*/
sources?: string[] | null;
}
/**
* A person's cover photo. A large image shown on the person's profile page that represents who they are or what they care about.
*/
export interface Schema$CoverPhoto {
/**
* True if the cover photo is the default cover photo; false if the cover photo is a user-provided cover photo.
*/
default?: boolean | null;
/**
* Metadata about the cover photo.
*/
metadata?: Schema$FieldMetadata;
/**
* The URL of the cover photo.
*/
url?: string | null;
}
/**
* A request to create a new contact group.
*/
export interface Schema$CreateContactGroupRequest {
/**
* Required. The contact group to create.
*/
contactGroup?: Schema$ContactGroup;
/**
* 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 * metadata * name
*/
readGroupFields?: string | null;
}
/**
* Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
*/
export interface Schema$Date {
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
*/
day?: number | null;
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
*/
month?: number | null;
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
*/
year?: number | null;
}
/**
* The response for deleting a contact's photo.
*/
export interface Schema$DeleteContactPhotoResponse {
/**
* The updated person, if person_fields is set in the DeleteContactPhotoRequest; otherwise this will be unset.
*/
person?: Schema$Person;
}
/**
* A Google Workspace Domain membership.
*/
export interface Schema$DomainMembership {
/**
* True if the person is in the viewer's Google Workspace domain.
*/
inViewerDomain?: boolean | null;
}
/**
* A person's email address.
*/
export interface Schema$EmailAddress {
/**
* The display name of the email.
*/
displayName?: string | null;
/**
* Output only. The type of the email address translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.
*/
formattedType?: string | null;
/**
* Metadata about the email address.
*/
metadata?: Schema$FieldMetadata;
/**
* The type of the email address. The type can be custom or one of these predefined values: * `home` * `work` * `other`
*/
type?: string | null;
/**
* The email address.
*/
value?: string | null;
}
/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/
export interface Schema$Empty {
}
/**
* An event related to the person.
*/
export interface Schema$Event {
/**
* The date of the event.
*/
date?: Schema$Date;
/**
* Output only. The type of the event translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.
*/
formattedType?: string | null;
/**
* Metadata about the event.
*/
metadata?: Schema$FieldMetadata;
/**
* The type of the event. The type can be custom or one of these predefined values: * `anniversary` * `other`
*/
type?: string | null;
}
/**
* An identifier from an external entity related to the person.
*/
export interface Schema$ExternalId {
/**
* Output only. The type of the event translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.
*/
formattedType?: string | null;
/**
* Metadata about the external ID.
*/
metadata?: Schema$FieldMetadata;
/**
* The type of the external ID. The type can be custom or one of these predefined values: * `account` * `customer` * `loginId` * `network` * `organization`
*/
type?: string | null;
/**
* The value of the external ID.
*/
value?: string | null;
}
/**
* Metadata about a field.
*/
export interface Schema$FieldMetadata {
/**
* Output only. True if the field is the primary field for all sources in the person. Each person will have at most one field with `primary` set to true.
*/
primary?: boolean | null;
/**
* The source of the field.
*/
source?: Schema$Source;
/**
* True if the field is the primary field for the source. Each source must have at most one field with `source_primary` set to true.
*/
sourcePrimary?: boolean | null;
/**
* Output only. True if the field is verified; false if the field is unverified. A verified field is typically a name, email address, phone number, or website that has been confirmed to be owned by the person.
*/
verified?: boolean | null;
}
/**
* The name that should be used to sort the person in a list.
*/
export interface Schema$FileAs {
/**
* Metadata about the file-as.
*/
metadata?: Schema$FieldMetadata;
/**
* The file-as value
*/
value?: string | null;
}
/**
* A person's gender.
*/
export interface Schema$Gender {
/**
* Free form text field for pronouns that should be used to address the person. Common values are: * `he`/`him` * `she`/`her` * `they`/`them`
*/
addressMeAs?: string | null;
/**
* Output only. The value of the gender translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale. Unspecified or custom value are not localized.
*/
formattedValue?: string | null;
/**
* Metadata about the gender.
*/
metadata?: Schema$FieldMetadata;
/**
* The gender for the person. The gender can be custom or one of these predefined values: * `male` * `female` * `unspecified`
*/
value?: string | null;
}
/**
* The response to a get request for a list of people by resource name.
*/
export interface Schema$GetPeopleResponse {
/**
* The response for each requested resource name.
*/
responses?: Schema$PersonResponse[];
}
/**
* Arbitrary client data that is populated by clients. Duplicate keys and values are allowed.
*/
export interface Schema$GroupClientData {
/**
* The client specified key of the client data.
*/
key?: string | null;
/**
* The client specified value of the client data.
*/
value?: string | null;
}
/**
* A person's instant messaging client.
*/
export interface Schema$ImClient {
/**
* Output only. The protocol of the IM client formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.
*/
formattedProtocol?: string | null;
/**
* Output only. The type of the IM client translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.
*/
formattedType?: string | null;
/**
* Metadata about the IM client.
*/
metadata?: Schema$FieldMetadata;
/**
* The protocol of the IM client. The protocol can be custom or one of these predefined values: * `aim` * `msn` * `yahoo` * `skype` * `qq` * `googleTalk` * `icq` * `jabber` * `netMeeting`
*/
protocol?: string | null;
/**
* The type of the IM client. The type can be custom or one of these predefined values: * `home` * `work` * `other`
*/
type?: string | null;
/**
* The user name used in the IM client.
*/
username?: string | null;
}
/**
* One of the person's interests.
*/
export interface Schema$Interest {
/**
* Metadata about the interest.
*/
metadata?: Schema$FieldMetadata;
/**
* The interest; for example, `stargazing`.
*/
value?: string | null;
}
/**
* The response to a request for the authenticated user's connections.
*/
export interface Schema$ListConnectionsResponse {
/**
* The list of people that the requestor is connected to.
*/
connections?: Schema$Person[];
/**
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
*/
nextPageToken?: string | null;
/**
* A token, which can be sent as `sync_token` to retrieve changes since the last request. Request must set `request_sync_token` to return the sync token. When the response is paginated, only the last page will contain `nextSyncToken`.
*/
nextSyncToken?: string | null;
/**
* The total number of items in the list without pagination.
*/
totalItems?: number | null;
/**
* **DEPRECATED** (Please use totalItems) The total number of people in the list without pagination.
*/
totalPeople?: number | null;
}
/**
* The response to a list contact groups request.
*/
export interface Schema$ListContactGroupsResponse {
/**
* The list of contact groups. Members of the contact groups are not populated.
*/
contactGroups?: Schema$ContactGroup[];
/**
* The token that can be used to retrieve the next page of results.
*/
nextPageToken?: string | null;
/**
* The token that can be used to retrieve changes since the last request.
*/
nextSyncToken?: string | null;
/**
* The total number of items in the list without pagination.
*/
totalItems?: number | null;
}
/**
* The response to a request for the authenticated user's domain directory.
*/
export interface Schema$ListDirectoryPeopleResponse {
/**
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
*/
nextPageToken?: string | null;
/**
* A token, which can be sent as `sync_token` to retrieve changes since the last request. Request must set `request_sync_token` to return the sync token.
*/
nextSyncToken?: string | null;
/**
* The list of people in the domain directory.
*/
people?: Schema$Person[];
}
/**
* The response to a request for the authenticated user's "Other contacts".
*/
export interface Schema$ListOtherContactsResponse {
/**
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
*/
nextPageToken?: string | null;
/**
* A token, which can be sent as `sync_token` to retrieve changes since the last request. Request must set `request_sync_token` to return the sync token.
*/
nextSyncToken?: string | null;
/**
* The list of "Other contacts" returned as Person resources. "Other contacts" support a limited subset of fields. See ListOtherContactsRequest.request_mask for more detailed information.
*/
otherContacts?: Schema$Person[];
/**
* The total number of other contacts in the list without pagination.
*/
totalSize?: number | null;
}
/**
* A person's locale preference.
*/
export interface Schema$Locale {
/**
* Metadata about the locale.
*/
metadata?: Schema$FieldMetadata;
/**
* The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47) language tag representing the locale.
*/
value?: string | null;
}
/**
* A person's location.
*/
export interface Schema$Location {
/**
* The building identifier.
*/
buildingId?: string | null;
/**
* Whether the location is the current location.
*/
current?: boolean | null;
/**
* The individual desk location.
*/
deskCode?: string | null;
/**
* The floor name or number.
*/
floor?: string | null;
/**
* The floor section in `floor_name`.
*/
floorSection?: string | null;
/**
* Metadata about the location.
*/
metadata?: Schema$FieldMetadata;
/**
* The type of the location. The type can be custom or one of these predefined values: * `desk` * `grewUp`
*/
type?: string | null;
/**
* The free-form value of the location.
*/
value?: string | null;
}
/**
* A person's membership in a group. Only contact group memberships can be modified.
*/
export interface Schema$Membership {
/**
* The contact group membership.
*/
contactGroupMembership?: Schema$ContactGroupMembership;
/**
* Output only. The domain membership.
*/
domainMembership?: Schema$DomainMembership;
/**
* Metadata about the membership.
*/
metadata?: Schema$FieldMetadata;
}
/**
* A person's miscellaneous keyword.
*/
export interface Schema$MiscKeyword {
/**
* Output only. The type of the miscellaneous keyword translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.
*/
formattedType?: string | null;
/**
* Metadata about the miscellaneous keyword.
*/
metadata?: Schema$FieldMetadata;
/**
* The miscellaneous keyword type.
*/
type?: string | null;
/**
* The value of the miscellaneous keyword.
*/
value?: string | null;
}
/**
* A request to modify an existing contact group's members. Contacts can be removed from any group but they can only be added to a user group or "myContacts" or "starred" system groups.
*/
export interface Schema$ModifyContactGroupMembersRequest {
/**
* Optional. The resource names of the contact people to add in the form of `people/{person_id\}`. The total number of resource names in `resource_names_to_add` and `resource_names_to_remove` must be less than or equal to 1000.
*/
resourceNamesToAdd?: string[] | null;
/**
* Optional. The resource names of the contact people to remove in the form of `people/{person_id\}`. The total number of resource names in `resource_names_to_add` and `resource_names_to_remove` must be less than or equal to 1000.
*/
resourceNamesToRemove?: string[] | null;
}
/**
* The response to a modify contact group members request.
*/
export interface Schema$ModifyContactGroupMembersResponse {
/**
* The contact people resource names that cannot be removed from their last contact group.
*/
canNotRemoveLastContactGroupResourceNames?: string[] | null;
/**
* The contact people resource names that were not found.
*/
notFoundResourceNames?: string[] | null;
}
/**
* A person's name. If the name is a mononym, the family name is empty.
*/
export interface Schema$Name {
/**
* Output only. The display name formatted according to the locale specified by the viewer's account or the `Accept-Language` HTTP header.
*/
displayName?: string | null;
/**
* Output only. The display name with the last name first formatted according to the locale specified by the viewer's account or the `Accept-Language` HTTP header.
*/
displayNameLastFirst?: string | null;
/**
* The family name.
*/
familyName?: string | null;
/**
* The given name.
*/
givenName?: string | null;
/**
* The honorific prefixes, such as `Mrs.` or `Dr.`
*/
honorificPrefix?: string | null;
/**
* The honorific suffixes, such as `Jr.`
*/
honorificSuffix?: string | null;
/**
* Metadata about the name.
*/
metadata?: Schema$FieldMetadata;
/**
* The middle name(s).
*/
middleName?: string | null;
/**
* The family name spelled as it sounds.
*/
phoneticFamilyName?: string | null;
/**
* The full name spelled as it sounds.
*/
phoneticFullName?: string | null;
/**
* The given name spelled as it sounds.
*/
phoneticGivenName?: string | null;
/**
* The honorific prefixes spelled as they sound.
*/
phoneticHonorificPrefix?: string | null;
/**
* The honorific suffixes spelled as they sound.
*/
phoneticHonorificSuffix?: string | null;
/**
* The middle name(s) spelled as they sound.
*/
phoneticMiddleName?: string | null;
/**
* The free form name value.
*/
unstructuredName?: string | null;
}
/**
* A person's nickname.
*/
export interface Schema$Nickname {
/**
* Metadata about the nickname.
*/
metadata?: Schema$FieldMetadata;
/**
* The type of the nickname.
*/
type?: string | null;
/**
* The nickname.
*/
value?: string | null;
}
/**
* A person's occupation.
*/
export interface Schema$Occupation {
/**
* Metadata about the occupation.
*/
metadata?: Schema$FieldMetadata;
/**
* The occupation; for example, `carpenter`.
*/
value?: string | null;
}
/**
* A person's past or current organization. Overlapping date ranges are permitted.
*/
export interface Schema$Organization {
/**
* The person's cost center at the organization.
*/
costCenter?: string | null;
/**
* True if the organization is the person's current organization; false if the organization is a past organization.
*/
current?: boolean | null;
/**
* The person's department at the organization.
*/
department?: string | null;
/**
* The domain name associated with the organization; for example, `google.com`.
*/
domain?: string | null;
/**
* The end date when the person left the organization.
*/
endDate?: Schema$Date;
/**
* Output only. The type of the organization translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.
*/
formattedType?: string | null;
/**
* The person's full-time equivalent millipercent within the organization (100000 = 100%).
*/
fullTimeEquivalentMillipercent?: number | null;
/**
* The person's job description at the organization.
*/
jobDescription?: string | null;
/**
* The location of the organization office the person works at.
*/
location?: string | null;
/**
* Metadata about the organization.
*/
metadata?: Schema$FieldMetadata;
/**
* The name of the organization.
*/
name?: string | null;
/**
* The phonetic name of the organization.
*/
phoneticName?: string | null;
/**
* The start date when the person joined the organization.
*/
startDate?: Schema$Date;
/**
* The symbol associated with the organization; for example, a stock ticker symbol, abbreviation, or acronym.
*/
symbol?: string | null;
/**
* The person's job title at the organization.
*/
title?: string | null;
/**
* The type of the organization. The type can be custom or one of these predefined values: * `work` * `school`
*/
type?: string | null;
}
/**
* Information about a person merged from various data sources such as the authenticated user's contacts and profile data. Most fields can have multiple items. The items in a field have no guaranteed order, but each non-empty field is guaranteed to have exactly one field with `metadata.primary` set to true.
*/
export interface Schema$Person {
/**
* The person's street addresses.
*/
addresses?: Schema$Address[];
/**
* Output only. **DEPRECATED** (Please use `person.ageRanges` instead) The person's age range.
*/
ageRange?: string | null;
/**
* Output only. The person's age ranges.
*/
ageRanges?: Schema$AgeRangeType[];
/**
* The person's biographies. This field is a singleton for contact sources.
*/
biographies?: Schema$Biography[];
/**
* The person's birthdays. This field is a singleton for contact sources.
*/
birthdays?: Schema$Birthday[];
/**
* **DEPRECATED**: No data will be returned The person's bragging rights.
*/
braggingRights?: Schema$BraggingRights[];
/**
* The person's calendar URLs.
*/
calendarUrls?: Schema$CalendarUrl[];
/**
* The person's client data.
*/
clientData?: Schema$ClientData[];
/**
* Output only. The person's cover photos.
*/
coverPhotos?: Schema$CoverPhoto[];
/**
* The person's email addresses. For `people.connections.list` and `otherContacts.list` the number of email addresses is limited to 100. If a Person has more email addresses the entire set can be obtained by calling GetPeople.
*/
emailAddresses?: Schema$EmailAddress[];
/**
* The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the resource. Used for web cache validation.
*/
etag?: string | null;
/**
* The person's events.
*/
events?: Schema$Event[];
/**
* The person's external IDs.
*/
externalIds?: Schema$ExternalId[];
/**
* The person's file-ases.
*/
fileAses?: Schema$FileAs[];
/**
* The person's genders. This field is a singleton for contact sources.
*/
genders?: Schema$Gender[];
/**
* The person's instant messaging clients.
*/
imClients?: Schema$ImClient[];
/**
* The person's interests.
*/
interests?: Schema$Interest[];
/**
* The person's locale preferences.
*/
locales?: Schema$Locale[];
/**
* The person's locations.
*/
locations?: Schema$Location[];
/**
* The person's group memberships.
*/
memberships?: Schema$Membership[];
/**
* Output only. Metadata about the person.
*/
metadata?: Schema$PersonMetadata;
/**
* The person's miscellaneous keywords.
*/
miscKeywords?: Schema$MiscKeyword[];
/**
* The person's names. This field is a singleton for contact sources.
*/
names?: Schema$Name[];
/**
* The person's nicknames.
*/
nicknames?: Schema$Nickname[];
/**
* The person's occupations.
*/
occupations?: Schema$Occupation[];
/**
* The person's past or current organizations.
*/
organizations?: Schema$Organization[];
/**
* The person's phone numbers. For `people.connections.list` and `otherContacts.list` the number of phone numbers is limited to 100. If a Person has more phone numbers the entire set can be obtained by calling GetPeople.
*/
phoneNumbers?: Schema$PhoneNumber[];
/**
* Output only. The person's photos.
*/
photos?: Schema$Photo[];
/**
* The person's relations.
*/
relations?: Schema$Relation[];
/**
* Output only. **DEPRECATED**: No data will be returned The person's relationship interests.
*/
relationshipInterests?: Schema$RelationshipInterest[];
/**
* Output only. **DEPRECATED**: No data will be returned The person's relationship statuses.
*/
relationshipStatuses?: Schema$RelationshipStatus[];
/**
* **DEPRECATED**: (Please use `person.locations` instead) The person's residences.
*/
residences?: Schema$Residence[];
/**
* The resource name for the person, assigned by the server. An ASCII string in the form of `people/{person_id\}`.
*/
resourceName?: string | null;
/**
* The person's SIP addresses.
*/
sipAddresses?: Schema$SipAddress[];
/**
* The person's skills.
*/
skills?: Schema$Skill[];
/**
* Output only. **DEPRECATED**: No data will be returned The person's taglines.
*/
taglines?: Schema$Tagline[];
/**
* The person's associated URLs.
*/
urls?: Schema$Url[];
/**
* The person's user defined data.
*/
userDefined?: Schema$UserDefined[];
}
/**
* The metadata about a person.
*/
export interface Schema$PersonMetadata {
/**
* Output only. True if the person resource has been deleted. Populated only for `people.connections.list` and `otherContacts.list` sync requests.
*/
deleted?: boolean | null;
/**
* Output only. Resource names of people linked to this resource.
*/
linkedPeopleResourceNames?: string[] | null;
/**
* Output only. **DEPRECATED** (Please use `person.metadata.sources.profileMetadata.objectType` instead) The type of the person object.
*/
objectType?: string | null;
/**
* Output only. Any former resource names this person has had. Populated only for `people.connections.list` requests that include a sync token. The resource name may change when adding or removing fields that link a contact and profile such as a verified email, verified phone number, or profile URL.
*/
previousResourceNames?: string[] | null;
/**
* The sources of data for the person.
*/
sources?: Schema$Source[];
}
/**
* The response for a single person
*/
export interface Schema$PersonResponse {
/**
* **DEPRECATED** (Please use status instead) [HTTP 1.1 status code] (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
*/
httpStatusCode?: number | null;
/**
* The person.
*/
person?: Schema$Person;
/**
* The original requested resource name. May be different than the resource name on the returned person. The resource name can change when adding or removing fields that link a contact and profile such as a verified email, verified phone number, or a profile URL.
*/
requestedResourceName?: string | null;
/**
* The status of the response.
*/
status?: Schema$Status;
}
/**
* A person's phone number.
*/
export interface Schema$PhoneNumber {
/**
* Output only. The canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/ibr/004/itu-t.E.164.1.2008.pdf) form of the phone number.
*/
canonicalForm?: string | null;
/**
* Output only. The type of the phone number translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale.
*/
formattedType?: string | null;
/**
* Metadata about the phone number.
*/
metadata?: Schema$FieldMetadata;
/**
* The type of the phone number. The type can be custom or one of these predefined values: * `home` * `work` * `mobile` * `homeFax` * `workFax` * `otherFax` * `pager` * `workMobile` * `workPager` * `main` * `googleVoice` * `other`
*/
type?: string | null;
/**
* The phone number.
*/
value?: string | null;
}
/**
* A person's photo. A picture shown next to the person's name to help others recognize the person.
*/
export interface Schema$Photo {
/**
* True if the photo is a default photo; false if the photo is a user-provided photo.
*/
default?: boolean | null;
/**
* Metadata about the photo.
*/
metadata?: Schema$FieldMetadata;
/**
* The URL of the photo. You can change the desired size by appending a query parameter `sz={size\}` at the end of the url, where {size\} is the size in pixels. Example: https://lh3.googleusercontent.com/-T_wVWLlmg7w/AAAAAAAAAAI/AAAAAAAABa8/00gzXvDBYqw/s100/photo.jpg?sz=50
*/
url?: string | null;
}
/**
* The metadata about a profile.
*/
export interface Schema$ProfileMetadata {
/**
* Output only. The profile object type.
*/
objectType?: string | null;
/**
* Output only. The user types.
*/
userTypes?: string[] | null;
}
/**
* A person's relation to another person.
*/
export interface Schema$Relation {
/**
* Output only. The type of the relation translated and formatted in the viewer's account locale or the locale specified in the Accept-Language HTTP header.
*/
formattedType?: string | null;
/**
* Metadata about the relation.
*/
metadata?: Schema$FieldMetadata;
/**
* The name of the other person this relation refers to.
*/
person?: string | null;
/**
* The person's relation to the other person. The type can be custom or one of these predefined values: * `spouse` * `child` * `mother` * `father` * `parent` * `brother` * `sister` * `friend` * `relative` * `domesticPartner` * `manager` * `assistant` * `referredBy` * `partner`
*/
type?: string | null;
}
/**
* **DEPRECATED**: No data will be returned A person's relationship interest .
*/
export interface Schema$RelationshipInterest {
/**
* Output only. The value of the relationship interest translated and formatted in the viewer's account locale or the locale specified in the Accept-Language HTTP header.
*/
formattedValue?: string | null;
/**
* Metadata about the relationship interest.
*/
metadata?: Schema$FieldMetadata;
/**
* The kind of relationship the person