@oauth2-cli/qui-cli 0.5.5 → 0.5.6

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 CHANGED
@@ -2,6 +2,13 @@
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.5.6](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.5.5...qui-cli-plugin/0.5.6) (2026-01-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * correctly implement template Client type ([ed6ac1c](https://github.com/battis/oauth2-cli/commit/ed6ac1cc63b1c41eceb93311105a1f61890a07c8))
11
+
5
12
  ## [0.5.5](https://github.com/battis/oauth2-cli/compare/qui-cli-plugin/0.5.4...qui-cli-plugin/0.5.5) (2026-01-15)
6
13
 
7
14
 
package/dist/Module.d.ts CHANGED
@@ -4,7 +4,7 @@ export declare const configure: (proposal?: import("./OAuth2.js").ConfigurationP
4
4
  export declare const options: () => import("@qui-cli/plugin").Options;
5
5
  export declare const init: ({ values }: import("@qui-cli/plugin").ExpectedArguments<typeof this.options>) => Promise<void>;
6
6
  export declare const getToken: () => Promise<import("oauth2-cli/dist/Token.js").Token | undefined>;
7
- export declare const getClient: () => ReturnType<typeof this.instantiateClient>;
7
+ export declare const getClient: () => import("oauth2-cli/dist/Client.js").Client;
8
8
  export declare const request: (url: string | URL, method?: string | undefined, body?: import("openid-client").FetchBody, headers?: Headers | undefined, dPoPOptions?: import("openid-client").DPoPOptions | undefined) => Promise<Response>;
9
9
  export declare const requestJSON: <T extends import("@battis/typescript-tricks").JSONValue>(url: string | URL, method?: string | undefined, body?: import("openid-client").FetchBody, headers?: Headers | undefined, dPoPOptions?: import("openid-client").DPoPOptions | undefined) => Promise<T>;
10
10
  export declare const fetch: (endpoint: string | URL | Request, init?: RequestInit | undefined) => Promise<Response>;
package/dist/OAuth2.d.ts CHANGED
@@ -35,7 +35,7 @@ export type ConfigurationProposal = Partial<Omit<Configuration, 'opt' | 'env' |
35
35
  env?: Partial<EnvironmentVars>;
36
36
  man?: Partial<Usage>;
37
37
  };
38
- export declare class OAuth2Plugin {
38
+ export declare class OAuth2Plugin<C extends OAuth2CLI.Client = OAuth2CLI.Client> {
39
39
  readonly name: string;
40
40
  [key: string]: unknown;
41
41
  private static names;
@@ -46,8 +46,8 @@ export declare class OAuth2Plugin {
46
46
  configure(proposal?: ConfigurationProposal): void;
47
47
  options(): Plugin.Options;
48
48
  init({ values }: Plugin.ExpectedArguments<typeof this.options>): Promise<void>;
49
- protected instantiateClient(...args: ConstructorParameters<typeof OAuth2CLI.Client>): OAuth2CLI.Client;
50
- getClient(): ReturnType<typeof this.instantiateClient>;
49
+ protected instantiateClient(...args: ConstructorParameters<typeof OAuth2CLI.Client>): C;
50
+ getClient(): C;
51
51
  getToken(): Promise<OAuth2CLI.Token | undefined>;
52
52
  request(...args: Parameters<OAuth2CLI.Client['request']>): Promise<Response>;
53
53
  requestJSON<T extends JSONValue>(...args: Parameters<OAuth2CLI.Client['requestJSON']>): Promise<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oauth2-cli/qui-cli",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "@qui-cli/plugin wrapper for oauth2-cli",
5
5
  "homepage": "https://github.com/battis/oauth2-cli/tree/main/packages/qui-cli#readme",
6
6
  "repository": {