feat(contacts): add 9 commands for full People API parity#125
Merged
feat(contacts): add 9 commands for full People API parity#125
Conversation
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>
11f0238 to
43dad49
Compare
Merged
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gws contactscommands for full People API parity:update,batch-create,batch-update,batch-delete,directory,directory-search,photo,delete-photo,resolveupdatederivesupdatePersonFieldsmask automatically from provided flags (--name,--email,--phone,--organization,--title), includes--etagfor concurrency controlbatch-createandbatch-updateaccept--file(JSON),batch-deleteaccepts--resources(StringArray);resolveusesgetBatchGetwith--ids(StringArray)directorylists org directory people with pagination,directory-searchqueries with--queryflag; both useDIRECTORY_SOURCE_TYPE_DOMAIN_PROFILEphotoreads image file and base64-encodes for the API,delete-photois positional-onlyformatPersonnow includesetagfield when present (needed for update workflows)Closes #94
Test plan
go test ./cmd/ -run TestContacts -v)go test ./...) includingTestSkillCommands_MatchCLIgo vet ./...cleango build ./...succeedsgws contacts update,gws contacts directory,gws contacts resolve🤖 Generated with Claude Code