Skip to content

Conversation

@CortiDevOps
Copy link
Contributor

⚠️ TEMPORARY PREVIEW PR ⚠️

This is a temporary PR created to preview changes from the API specifications.
This PR will be closed when the original API specs PR is merged.

A new, final PR will be created after the API specs changes are merged.


Original PR: https://github.com/corticph/api-specs/pull/128

@markitosha markitosha marked this pull request as ready for review February 11, 2026 13:30
Copilot AI review requested due to automatic review settings February 11, 2026 13:30
@markitosha markitosha merged commit 49a767c into master Feb 11, 2026
3 of 4 checks passed
Copy link

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 implements a global withCredentials configuration mechanism to replace hardcoded per-request settings. The change allows users to configure credential behavior once at the CortiClient level rather than on every API call.

Changes:

  • Introduces a global configuration system for withCredentials through a new utility module
  • Adds withCredentials option to CortiClient constructor
  • Removes hardcoded withCredentials: true from all API endpoint methods across the codebase

Reviewed changes

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

Show a summary per file
File Description
src/version.ts Version bump to 0.10.1
src/custom/utils/withCredentialsConfig.ts New utility module for managing global withCredentials default
src/custom/CortiClient.ts Adds withCredentials option and sets global default when provided
src/core/fetcher/Fetcher.ts Updates fetcher to use global default when per-request value is undefined
src/api/resources/transcripts/client/Client.ts Removes hardcoded withCredentials: true from 5 endpoint methods
src/api/resources/templates/client/Client.ts Removes hardcoded withCredentials: true from 3 endpoint methods
src/api/resources/recordings/client/Client.ts Removes hardcoded withCredentials: true from 4 endpoint methods
src/api/resources/interactions/client/Client.ts Removes hardcoded withCredentials: true from 5 endpoint methods
src/api/resources/facts/client/Client.ts Removes hardcoded withCredentials: true from 6 endpoint methods
src/api/resources/documents/client/Client.ts Removes hardcoded withCredentials: true from 5 endpoint methods
src/api/resources/codes/client/Client.ts Removes hardcoded withCredentials: true from 1 endpoint method
src/api/resources/auth/client/Client.ts Removes hardcoded withCredentials: true from 1 endpoint method
src/api/resources/agents/client/Client.ts Removes hardcoded withCredentials: true from 10 endpoint methods
src/Client.ts Updates SDK version strings from 0.10.0 to 0.10.1
package.json Updates package version from 0.10.0 to 0.10.1
.fernignore Adds comment and entry for patched Fetcher.ts file

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants