@kubun/credential-types 0.15.0 → 0.17.0

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/lib/index.d.ts CHANGED
@@ -1,11 +1,3 @@
1
- export type OAuthProviderDefinition = {
2
- name: string;
3
- authorizationEndpoint: string;
4
- tokenEndpoint: string;
5
- baseScopes?: Array<string>;
6
- clientID?: string;
7
- clientSecret?: string;
8
- };
9
1
  export type Credential = {
10
2
  accessToken: string;
11
3
  refreshToken?: string;
@@ -36,10 +28,3 @@ export type CredentialProvider = {
36
28
  }): Promise<void>;
37
29
  delete(providerName: string, ownerDID: string): Promise<void>;
38
30
  };
39
- export type TokenResponse = {
40
- access_token: string;
41
- refresh_token?: string;
42
- expires_in?: number;
43
- token_type: string;
44
- scope?: string;
45
- };
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Credential-domain contracts: the OAuth credential bundle and the provider port
1
+ // Credential-domain contracts: the credential bundle and the provider port
2
2
  // that stores/refreshes it. Kept in this leaf package so both the low-level
3
3
  // `@kubun/connector` (which consumes the port) and `@kubun/credential` (which
4
4
  // implements it) can depend on the types without depending on each other.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubun/credential-types",
3
- "version": "0.15.0",
3
+ "version": "0.17.0",
4
4
  "keywords": [],
5
5
  "license": "see LICENSE.md",
6
6
  "sideEffects": false,
@@ -20,8 +20,8 @@
20
20
  "scripts": {
21
21
  "build": "pnpm run build:clean && pnpm run build:js && pnpm run build:types",
22
22
  "build:clean": "del lib",
23
- "build:js": "swc src -d ./lib --config-file ../../node_modules/@kigu/dev/swc.json --strip-leading-paths",
24
- "build:types": "tsc --emitDeclarationOnly --skipLibCheck",
23
+ "build:js": "del 'lib/**/*.js' && swc src -d ./lib --config-file ../../node_modules/@kigu/dev/swc.json --strip-leading-paths",
24
+ "build:types": "del 'lib/**/*.d.ts' 'lib/**/*.d.ts.map' && tsc --emitDeclarationOnly --skipLibCheck",
25
25
  "build:types:ci": "tsc --emitDeclarationOnly --declarationMap false",
26
26
  "test": "pnpm run test:types && pnpm run test:unit",
27
27
  "test:types": "tsc --noEmit -p tsconfig.test.json",