Skip to content

Added commands to manage iTwin Shares#219

Merged
linasburneika merged 6 commits intomainfrom
lb/add-itwin-share
Sep 15, 2025
Merged

Added commands to manage iTwin Shares#219
linasburneika merged 6 commits intomainfrom
lb/add-itwin-share

Conversation

@linasburneika
Copy link
Copy Markdown
Collaborator

  • Added commands to manage iTwin Shares: create, info, list, revoke
  • minor improvement to use Native client provided with environment variables
  • fixed error formatting in local implementation of iTwin platform API client

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive iTwin Share management functionality to the CLI tool by implementing four new commands: create, info, list, and revoke. The changes include underlying service infrastructure, API client methods, and comprehensive integration tests to support managing iTwin shares through the command line interface.

  • Added complete iTwin Share management commands (create, info, list, revoke)
  • Enhanced configuration to support native client credentials from environment variables
  • Fixed error handling in the iTwin platform API client for better error reporting

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/services/iTwin-platform-api-client.ts Improved error handling with better content-type checking and formatting
src/services/access-control/models/itwin-share.ts Added TypeScript interfaces for iTwin Share data models
src/services/access-control/access-control-service.ts Added service methods for iTwin Share operations
src/services/access-control/access-control-client.ts Added API client methods for iTwin Share endpoints
src/extensions/configuration.ts Enhanced to support native client configuration
src/commands/itwin/share/*.ts Implemented all four iTwin Share command handlers
integration-tests/itwin/share.test.ts Added comprehensive integration tests
docs/itwin/share/*.md Added documentation for all new commands
.vscode/launch.json Fixed file path separators for cross-platform compatibility

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@linasburneika linasburneika merged commit a8a10c4 into main Sep 15, 2025
24 of 26 checks passed
@linasburneika linasburneika deleted the lb/add-itwin-share branch September 15, 2025 09:03
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.

3 participants