{
  "$id": "https://intentschema.org/profiles/com.google.people/productivity.contacts.contact.list.v1.json",
  "id": "org.intentschema.productivity.contacts.contact.list.v1@com.google.people.v1",
  "pins": "https://intentschema.org/intents/productivity/contacts/contact/list/v1.json",
  "title": "Google People contact list profile",
  "description": "Google People API profile for contact list.",
  "constraints": {
    "properties": {
      "target": {
        "properties": {
          "system": {
            "const": "google_contacts"
          }
        },
        "required": [
          "system"
        ]
      },
      "google_contacts": {
        "type": "object",
        "properties": {
          "pageSize": {
            "type": "integer"
          },
          "requestSyncToken": {
            "type": "boolean"
          },
          "sources": {
            "type": "array",
            "items": {
              "enum": [
                "READ_SOURCE_TYPE_PROFILE",
                "READ_SOURCE_TYPE_CONTACT",
                "READ_SOURCE_TYPE_DOMAIN_CONTACT"
              ]
            }
          }
        }
      }
    }
  },
  "api": {
    "method": "GET",
    "path": "/v1/people/me/connections",
    "scopes": [
      "https://www.googleapis.com/auth/contacts.readonly"
    ],
    "docs": "https://developers.google.com/people/api/rest/v1/people.connections/list",
    "params": {
      "object.limit": "pageSize",
      "object.cursor": "pageToken",
      "google_contacts.pageSize": "pageSize",
      "google_contacts.requestSyncToken": "requestSyncToken",
      "google_contacts.sources": "sources[]"
    },
    "base_url": "https://people.googleapis.com"
  }
}
