Skip to content

feat(credential-requests): Add new credential requests endpoints#40

Open
Bram Winter (winterworks) wants to merge 3 commits intomainfrom
update-credential-requests-endpoints
Open

feat(credential-requests): Add new credential requests endpoints#40
Bram Winter (winterworks) wants to merge 3 commits intomainfrom
update-credential-requests-endpoints

Conversation

@winterworks
Copy link
Contributor

@winterworks Bram Winter (winterworks) commented Mar 17, 2026

This pr updated the credential request endpoints:

  • adds the create-by-credentials and extend endpoint
  • remove the get credential endpoint
  • formatted some files

@winterworks Bram Winter (winterworks) changed the title Update credential requests endpoints Add new credential requests endpoints Mar 17, 2026
@winterworks Bram Winter (winterworks) changed the title Add new credential requests endpoints feat(credential-requests): add new credential requests endpoints Mar 17, 2026
@winterworks Bram Winter (winterworks) changed the title feat(credential-requests): add new credential requests endpoints feat(credential-requests): Add new credential requests endpoints Mar 17, 2026
@winterworks Bram Winter (winterworks) marked this pull request as ready for review March 17, 2026 17:27
@winterworks Bram Winter (winterworks) requested a review from a team as a code owner March 17, 2026 17:27
Copilot AI review requested due to automatic review settings March 17, 2026 17:27
Copy link
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

Updates the SDK’s credential-requests surface to match new API capabilities by adding “create-by-credentials” and “extend connection” actions, and removing the deprecated “get credential” endpoint, with corresponding unit/integration test and MCP tool updates.

Changes:

  • Added SDK methods/types for createByCredentials and extendConnection, plus nameOverride support on returned credentials.
  • Removed the SDK/MCP “get credential” functionality and related test mocks/tests.
  • Updated and expanded unit + integration tests and added new response mocks.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
test/retry.spec.ts Formatting updates to retry tests.
test/mocks/credential-requests/get-credential.json Removed mock for removed getCredential endpoint.
test/mocks/credential-requests/extend-connection.json Added mock response for extend-connection action.
test/mocks/credential-requests/create-by-credentials.json Added mock response for create-by-credentials action.
test/make.spec.ts Minor formatting fix.
test/credential-requests.spec.ts Removed getCredential tests; added tests for new endpoints; updated createAction payloads.
test/credential-requests.integration.test.ts Removed remote credential fetch flow; added integration coverage for new endpoints and name/description support.
src/index.ts Re-exported new public endpoint types.
src/endpoints/credential-requests.ts Added new request-body types + new SDK methods; removed getCredential; added nameOverride field on Credential.
src/endpoints/credential-requests.mcp.ts Removed credential_get tool; expanded create tool schema; added MCP tools for create-by-credentials and extend-connection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +264 to +268
type: 'array',
description:
'Array of OAuth or basic-auth connections to request. Each item needs at least a "type" (e.g. "google", "slack", "github").',
maxItems: 32,
items: {
type: 'array',
description:
'One or more new OAuth scope strings to add to the connection. At least one scope must be new (not already granted).',
minItems: 1,
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.

2 participants