Skip to content

Add comprehensive README documentation#9

Open
lightcap wants to merge 4 commits into
mainfrom
worktree-docs-readme
Open

Add comprehensive README documentation#9
lightcap wants to merge 4 commits into
mainfrom
worktree-docs-readme

Conversation

@lightcap
Copy link
Copy Markdown
Owner

@lightcap lightcap commented May 13, 2026

Summary

Adds a full README.md modeled after the official 1Password SDKs (JS, Python, Go).

Covers:

  • Both authentication methods (service account + desktop app)
  • Usage examples for every API surface: secrets, items, files, shares, vaults, vault permissions, groups, environments
  • Feature flags (wasm and desktop)
  • Error handling with SdkError variants
  • Supported functionality checklist matching the official SDK format
  • Links to 1Password developer documentation

Test plan

  • Verify README renders correctly on GitHub
  • Confirm all code examples are consistent with the actual public API
  • Check all external links resolve

Note

Low Risk
Documentation-only addition plus an MIT LICENSE; no runtime code paths or behavior are changed.

Overview
Adds a comprehensive README.md with setup/authentication instructions and end-to-end usage examples across the SDK surface (secrets, items, files, shares, vaults, groups, environments), plus feature-flag and error-handling notes.

Introduces an MIT LICENSE file and links the README’s license section to it.

Reviewed by Cursor Bugbot for commit 89d31a8. Bugbot is set up for automated code reviews on this repo. Configure here.

@lightcap lightcap force-pushed the worktree-docs-readme branch from 7d2e43d to 5d72d69 Compare May 14, 2026 15:33
lightcap added 4 commits May 15, 2026 10:01
Model structure and content after the official 1Password SDKs (JS, Python, Go).
Covers both authentication methods, usage examples for all API surfaces
(secrets, items, files, shares, vaults, groups, environments), feature flags,
error handling, and supported functionality checklist.
Fix non-compiling code examples:
- Use explicit field initialization instead of ..Default::default()
  (ItemField and ItemCreateParams do not implement Default)
- Use Option wrappers where the actual types require them

Fix install instructions to use git dependency since the crate is
not published to crates.io (publish = false).

Add coverage for previously undocumented public API methods:
- Secrets::validate_secret_reference
- Batch operations: create_all, get_all, delete_all
- File operations: delete, replace_document
- Vault operations: get, get_overview, update, update_group_permissions

Add MIT LICENSE file (referenced in Cargo.toml but was missing).
Replace println! calls that print .len() of secrets and passwords
with simple success messages, consistent with the examples fix in
PR #11.
- Point installation URL to lightcap/onepassword-sdk-rust (actual repo)
- Add ItemsFilesApi import to file management snippet
- Add ItemsSharesApi import to sharing snippet
@lightcap lightcap force-pushed the worktree-docs-readme branch from f1e7a07 to 89d31a8 Compare May 15, 2026 17:01
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.

1 participant