Skip to content

feat(sdk): add support for access grants and share tokens#148

Open
santi698 wants to merge 2 commits into
mainfrom
tssdk-62-access-grants-share-tokens
Open

feat(sdk): add support for access grants and share tokens#148
santi698 wants to merge 2 commits into
mainfrom
tssdk-62-access-grants-share-tokens

Conversation

@santi698

@santi698 santi698 commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Implements TSSDK-62: SDK methods and CLI commands for managing access grants and share tokens, enabling users to share runs/resources with other users or organizations.

Maps to the /v1/access/grants and /v1/access/share-tokens endpoints (already present in the vendored OpenAPI spec / generated client).

Changes

SDK (@aignostics/sdk)

  • createGrant, listGrants, getGrant, revokeGrant
  • createShareToken, listShareTokens, getShareToken, revokeShareToken
  • Mock factories/handlers for all test scenarios (success, empty, not found, validation error, server error, network error)
  • Unit tests for all new methods

CLI (@aignostics/cli)

  • New grants create/list/get/revoke commands
  • New share-tokens create/list/get/revoke commands
  • Unit tests for the CLI functions and yargs command wiring
  • README usage examples

Testing

  • npm run lint — passes
  • npm run build — passes
  • npm run test — all tests pass (SDK 98.88% coverage, CLI 98.22% coverage)

Notes

  • Includes a separate chore: regenerate ATTRIBUTIONS.md commit — this was pre-existing drift on main, auto-regenerated by the pre-commit hook and unrelated to this feature.

santi698 added 2 commits July 22, 2026 17:00
Add SDK methods and CLI commands for managing access grants and
share tokens (grants create/list/get/revoke, share-tokens
create/list/get/revoke), enabling users to share runs/resources
with other users or organizations.

Maps to /v1/access/grants and /v1/access/share-tokens endpoints.

TSSDK-62
Pre-existing drift on main unrelated to this change; regenerated by
the pre-commit hook during development.
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