@amaster.ai/auth-client 1.1.64 → 1.1.66
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/README.md +51 -0
- package/dist/auth.d.cts +6 -1
- package/dist/auth.d.ts +6 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -5
- package/dist/index.d.ts +28 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/oauth.d.cts +1 -1
- package/dist/oauth.d.ts +1 -1
- package/dist/permissions.d.cts +1 -1
- package/dist/permissions.d.ts +1 -1
- package/dist/sessions.d.cts +1 -1
- package/dist/sessions.d.ts +1 -1
- package/dist/{types-gL38Ysk-.d.cts → types-C2dUef9b.d.cts} +8 -2
- package/dist/{types-gL38Ysk-.d.ts → types-C2dUef9b.d.ts} +8 -2
- package/dist/user.d.cts +1 -1
- package/dist/user.d.ts +1 -1
- package/package.json +2 -2
package/dist/oauth.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* ============================================================================
|
|
15
15
|
*/
|
|
16
16
|
import { HttpClient, ClientResult } from '@amaster.ai/http-client';
|
|
17
|
-
import { O as OAuthBinding, n as OAuthProvider, w as SuccessResponse } from './types-
|
|
17
|
+
import { O as OAuthBinding, n as OAuthProvider, w as SuccessResponse } from './types-C2dUef9b.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* OAuth Module
|
package/dist/permissions.d.cts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* ============================================================================
|
|
15
15
|
*/
|
|
16
16
|
import { HttpClient } from '@amaster.ai/http-client';
|
|
17
|
-
import { x as User } from './types-
|
|
17
|
+
import { x as User } from './types-C2dUef9b.cjs';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Permissions Module
|
package/dist/permissions.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* ============================================================================
|
|
15
15
|
*/
|
|
16
16
|
import { HttpClient } from '@amaster.ai/http-client';
|
|
17
|
-
import { x as User } from './types-
|
|
17
|
+
import { x as User } from './types-C2dUef9b.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Permissions Module
|
package/dist/sessions.d.cts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* ============================================================================
|
|
15
15
|
*/
|
|
16
16
|
import { HttpClient, ClientResult } from '@amaster.ai/http-client';
|
|
17
|
-
import { v as Session, w as SuccessResponse, r as RevokeAllSessionsResponse } from './types-
|
|
17
|
+
import { v as Session, w as SuccessResponse, r as RevokeAllSessionsResponse } from './types-C2dUef9b.cjs';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Sessions Module
|
package/dist/sessions.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* ============================================================================
|
|
15
15
|
*/
|
|
16
16
|
import { HttpClient, ClientResult } from '@amaster.ai/http-client';
|
|
17
|
-
import { v as Session, w as SuccessResponse, r as RevokeAllSessionsResponse } from './types-
|
|
17
|
+
import { v as Session, w as SuccessResponse, r as RevokeAllSessionsResponse } from './types-C2dUef9b.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Sessions Module
|
|
@@ -414,7 +414,7 @@ interface ChangePasswordParams {
|
|
|
414
414
|
* - platform: AMaster Platform OAuth
|
|
415
415
|
* - feishu: application-scoped Feishu OAuth and in-client passwordless login
|
|
416
416
|
*/
|
|
417
|
-
type OAuthProvider = "google" | "github" | "wechat" | "wechat_mini" | "platform" | "feishu";
|
|
417
|
+
type OAuthProvider = "google" | "github" | "wechat" | "wechat_mini" | "platform" | "feishu" | "wecom";
|
|
418
418
|
interface FeishuPublicConfig {
|
|
419
419
|
enabled: boolean;
|
|
420
420
|
appId: string;
|
|
@@ -595,5 +595,11 @@ interface RevokeAllSessionsResponse {
|
|
|
595
595
|
timestamp?: string;
|
|
596
596
|
revokedCount: number;
|
|
597
597
|
}
|
|
598
|
+
/** Published organization position; memberships and BPM rules store its code. */
|
|
599
|
+
interface DepartmentPosition {
|
|
600
|
+
code: string;
|
|
601
|
+
name: string;
|
|
602
|
+
description?: string;
|
|
603
|
+
}
|
|
598
604
|
|
|
599
|
-
export type { AuthClientOptions as A, ChangePasswordParams as C, EventHandler as E, FeishuPublicConfig as F, LoginParams as L, MiniGetPhoneEvent as M, OAuthBinding as O, Permission as P, RefreshTokenResponse as R, SendCodeParams as S, UpdateMeParams as U, AuthEvent as a, CaptchaResponse as b, CodeLoginParams as c, CodeLoginType as d, LoginResponse as e, LoginType as f, MiniGetPhoneParams as g, MiniLoginParams as h, MiniProgramLoginParams as i, MiniProgramPlatform as j, MiniProgramPhoneParams as k, MiniProgramPhoneResponse as l, OAuthLoginTicketResponse as m, OAuthProvider as n, PermissionDetail as o, RegisterParams as p, RegisterResponse as q, RevokeAllSessionsResponse as r, Role as s, RoleDetail as t, SendCodeType as u, Session as v, SuccessResponse as w, User as x };
|
|
605
|
+
export type { AuthClientOptions as A, ChangePasswordParams as C, DepartmentPosition as D, EventHandler as E, FeishuPublicConfig as F, LoginParams as L, MiniGetPhoneEvent as M, OAuthBinding as O, Permission as P, RefreshTokenResponse as R, SendCodeParams as S, UpdateMeParams as U, AuthEvent as a, CaptchaResponse as b, CodeLoginParams as c, CodeLoginType as d, LoginResponse as e, LoginType as f, MiniGetPhoneParams as g, MiniLoginParams as h, MiniProgramLoginParams as i, MiniProgramPlatform as j, MiniProgramPhoneParams as k, MiniProgramPhoneResponse as l, OAuthLoginTicketResponse as m, OAuthProvider as n, PermissionDetail as o, RegisterParams as p, RegisterResponse as q, RevokeAllSessionsResponse as r, Role as s, RoleDetail as t, SendCodeType as u, Session as v, SuccessResponse as w, User as x };
|
|
@@ -414,7 +414,7 @@ interface ChangePasswordParams {
|
|
|
414
414
|
* - platform: AMaster Platform OAuth
|
|
415
415
|
* - feishu: application-scoped Feishu OAuth and in-client passwordless login
|
|
416
416
|
*/
|
|
417
|
-
type OAuthProvider = "google" | "github" | "wechat" | "wechat_mini" | "platform" | "feishu";
|
|
417
|
+
type OAuthProvider = "google" | "github" | "wechat" | "wechat_mini" | "platform" | "feishu" | "wecom";
|
|
418
418
|
interface FeishuPublicConfig {
|
|
419
419
|
enabled: boolean;
|
|
420
420
|
appId: string;
|
|
@@ -595,5 +595,11 @@ interface RevokeAllSessionsResponse {
|
|
|
595
595
|
timestamp?: string;
|
|
596
596
|
revokedCount: number;
|
|
597
597
|
}
|
|
598
|
+
/** Published organization position; memberships and BPM rules store its code. */
|
|
599
|
+
interface DepartmentPosition {
|
|
600
|
+
code: string;
|
|
601
|
+
name: string;
|
|
602
|
+
description?: string;
|
|
603
|
+
}
|
|
598
604
|
|
|
599
|
-
export type { AuthClientOptions as A, ChangePasswordParams as C, EventHandler as E, FeishuPublicConfig as F, LoginParams as L, MiniGetPhoneEvent as M, OAuthBinding as O, Permission as P, RefreshTokenResponse as R, SendCodeParams as S, UpdateMeParams as U, AuthEvent as a, CaptchaResponse as b, CodeLoginParams as c, CodeLoginType as d, LoginResponse as e, LoginType as f, MiniGetPhoneParams as g, MiniLoginParams as h, MiniProgramLoginParams as i, MiniProgramPlatform as j, MiniProgramPhoneParams as k, MiniProgramPhoneResponse as l, OAuthLoginTicketResponse as m, OAuthProvider as n, PermissionDetail as o, RegisterParams as p, RegisterResponse as q, RevokeAllSessionsResponse as r, Role as s, RoleDetail as t, SendCodeType as u, Session as v, SuccessResponse as w, User as x };
|
|
605
|
+
export type { AuthClientOptions as A, ChangePasswordParams as C, DepartmentPosition as D, EventHandler as E, FeishuPublicConfig as F, LoginParams as L, MiniGetPhoneEvent as M, OAuthBinding as O, Permission as P, RefreshTokenResponse as R, SendCodeParams as S, UpdateMeParams as U, AuthEvent as a, CaptchaResponse as b, CodeLoginParams as c, CodeLoginType as d, LoginResponse as e, LoginType as f, MiniGetPhoneParams as g, MiniLoginParams as h, MiniProgramLoginParams as i, MiniProgramPlatform as j, MiniProgramPhoneParams as k, MiniProgramPhoneResponse as l, OAuthLoginTicketResponse as m, OAuthProvider as n, PermissionDetail as o, RegisterParams as p, RegisterResponse as q, RevokeAllSessionsResponse as r, Role as s, RoleDetail as t, SendCodeType as u, Session as v, SuccessResponse as w, User as x };
|
package/dist/user.d.cts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* ============================================================================
|
|
15
15
|
*/
|
|
16
16
|
import { HttpClient, ClientResult } from '@amaster.ai/http-client';
|
|
17
|
-
import { x as User, U as UpdateMeParams, C as ChangePasswordParams, w as SuccessResponse } from './types-
|
|
17
|
+
import { x as User, U as UpdateMeParams, C as ChangePasswordParams, w as SuccessResponse } from './types-C2dUef9b.cjs';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* User Management Module
|
package/dist/user.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* ============================================================================
|
|
15
15
|
*/
|
|
16
16
|
import { HttpClient, ClientResult } from '@amaster.ai/http-client';
|
|
17
|
-
import { x as User, U as UpdateMeParams, C as ChangePasswordParams, w as SuccessResponse } from './types-
|
|
17
|
+
import { x as User, U as UpdateMeParams, C as ChangePasswordParams, w as SuccessResponse } from './types-C2dUef9b.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* User Management Module
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amaster.ai/auth-client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.66",
|
|
4
4
|
"description": "Authentication SDK for Amaster platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"registry": "https://registry.npmjs.org/"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@amaster.ai/http-client": "1.1.
|
|
50
|
+
"@amaster.ai/http-client": "1.1.66"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"axios": "^1.11.0"
|