-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from getfursure/fix/user-intent-create
- Loading branch information
Showing
7 changed files
with
44 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Changelog | ||
|
||
Updates are from recent to latest (most recent is immediately below) | ||
|
||
## 1.0.0-alpha.11 ~ 2022-10-03 | ||
|
||
### Major Change | ||
- `AuthResource` has `basicAuth` getter for setting the Basic Auth Credentials on some of the resource requests. | ||
- User and Intent resources now receive Auth resource | ||
|
||
### Fixed | ||
- Astra User Intent Create sends `auth` using client and secret. Previously, this caused `POST` `user_intent` to fail with Authorization error. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Axios } from 'axios' | ||
import { Intents } from './intents' | ||
import { AuthResource } from '../auth' | ||
|
||
export class Users { | ||
private _client: Axios | ||
|
||
intents: Intents | ||
constructor(client: Axios) { | ||
this._client = client | ||
this.intents = new Intents(this._client) | ||
auth: AuthResource | ||
|
||
constructor(client: Axios, auth: AuthResource) { | ||
this.intents = new Intents(client, this.auth) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters