@oauth2-cli/qui-cli-plugin 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/OAuth2.d.ts +7 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [0.3.3](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.3.2...qui-cli-plugin/0.3.3) (2026-01-03)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* export request param types ([244f588](https://github.com/battis/oauth2-cli/commit/244f5886148721f2be06c5da5b3a659fa17391da))
|
|
11
|
+
|
|
12
|
+
## [0.3.2](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.3.1...qui-cli-plugin/0.3.2) (2026-01-03)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* export Credentials ([a175394](https://github.com/battis/oauth2-cli/commit/a1753947d1119e2810d22275c6fbca27b0b19db5))
|
|
18
|
+
|
|
5
19
|
## [0.3.1](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.3.0...qui-cli-plugin/0.3.1) (2026-01-03)
|
|
6
20
|
|
|
7
21
|
|
package/dist/OAuth2.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import '@qui-cli/env-1password';
|
|
|
3
3
|
import * as Plugin from '@qui-cli/plugin';
|
|
4
4
|
import * as OAuth2CLI from 'oauth2-cli';
|
|
5
5
|
import * as OpenIDClient from 'openid-client';
|
|
6
|
+
export { Credentials } from 'oauth2-cli';
|
|
6
7
|
type EnvironmentVars = {
|
|
7
8
|
client_id: string;
|
|
8
9
|
client_secret: string;
|
|
@@ -37,6 +38,11 @@ export type Configuration = Plugin.Configuration & {
|
|
|
37
38
|
man: Usage;
|
|
38
39
|
suppress?: OptionSuppression;
|
|
39
40
|
};
|
|
41
|
+
export type RequestURL = URL | string;
|
|
42
|
+
export type RequestMethod = string;
|
|
43
|
+
export type RequestBody = undefined | OpenIDClient.FetchBody;
|
|
44
|
+
export type RequestHeaders = Record<string, string>;
|
|
45
|
+
export type RequestOptions = undefined | OpenIDClient.DPoPOptions;
|
|
40
46
|
export declare class OAuth2 {
|
|
41
47
|
readonly name: string;
|
|
42
48
|
[key: string]: unknown;
|
|
@@ -53,7 +59,6 @@ export declare class OAuth2 {
|
|
|
53
59
|
init(args: Plugin.ExpectedArguments<typeof this.options>): Promise<void>;
|
|
54
60
|
private getClient;
|
|
55
61
|
getToken(): Promise<OAuth2CLI.Token | undefined>;
|
|
56
|
-
request(url:
|
|
62
|
+
request(url: RequestURL, method?: RequestMethod, body?: RequestBody, headers?: RequestHeaders, options?: RequestOptions): Promise<Response>;
|
|
57
63
|
requestJSON<T = unknown>(url: URL | string, method?: string, body?: OpenIDClient.FetchBody, headers?: Record<string, string>, options?: OpenIDClient.DPoPOptions): Promise<T>;
|
|
58
64
|
}
|
|
59
|
-
export {};
|
package/package.json
CHANGED