Skip to content

Comments

feat(contacts): add 9 commands for full People API parity#125

Merged
omriariav merged 2 commits intomainfrom
feat/contacts-parity
Feb 19, 2026
Merged

feat(contacts): add 9 commands for full People API parity#125
omriariav merged 2 commits intomainfrom
feat/contacts-parity

Conversation

@omriariav
Copy link
Owner

Summary

  • Adds 9 new gws contacts commands for full People API parity: update, batch-create, batch-update, batch-delete, directory, directory-search, photo, delete-photo, resolve
  • update derives updatePersonFields mask automatically from provided flags (--name, --email, --phone, --organization, --title), includes --etag for concurrency control
  • Batch commands: batch-create and batch-update accept --file (JSON), batch-delete accepts --resources (StringArray); resolve uses getBatchGet with --ids (StringArray)
  • Directory commands: directory lists org directory people with pagination, directory-search queries with --query flag; both use DIRECTORY_SOURCE_TYPE_DOMAIN_PROFILE
  • Photo commands: photo reads image file and base64-encodes for the API, delete-photo is positional-only
  • formatPerson now includes etag field when present (needed for update workflows)
  • Updated skills docs (SKILL.md, references/commands.md) and skills_test.go subcommand list

Closes #94

Test plan

  • All 24 contacts tests pass (go test ./cmd/ -run TestContacts -v)
  • Full test suite passes (go test ./...) including TestSkillCommands_MatchCLI
  • go vet ./... clean
  • go build ./... succeeds
  • Manual smoke test: gws contacts update, gws contacts directory, gws contacts resolve

🤖 Generated with Claude Code

omriariav and others added 2 commits February 19, 2026 15:31
New commands: update, batch-create, batch-update, batch-delete,
directory, directory-search, photo, delete-photo, resolve.

Adds update support (with derived updatePersonFields mask), batch
operations via JSON files, org directory listing/search, contact
photo management, and multi-contact resolution via getBatchGet.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ot_found

- Remove unused --query flag from directory command (ListDirectoryPeople
  API does not support query; directory-search is the correct command)
- Track and report not_found resource names in resolve command output
  instead of silently dropping nil Person entries
- Add empty contacts validation to batch-create command

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@omriariav omriariav force-pushed the feat/contacts-parity branch from 11f0238 to 43dad49 Compare February 19, 2026 13:31
@omriariav omriariav merged commit fe8472b into main Feb 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(contacts): full People API parity — update, batch ops, directory search, photos

1 participant