@amaster.ai/auth-client 1.1.61-beta.0 → 1.1.61
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 +0 -28
- package/dist/auth.d.cts +1 -12
- package/dist/auth.d.ts +1 -12
- package/dist/index.cjs +1 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -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-CFVDTREm.d.cts → types-DRTmNpY7.d.cts} +2 -12
- package/dist/{types-CFVDTREm.d.ts → types-DRTmNpY7.d.ts} +2 -12
- package/dist/user.d.cts +1 -1
- package/dist/user.d.ts +1 -1
- package/package.json +2 -2
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 {
|
|
17
|
+
import { w as User } from './types-DRTmNpY7.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 {
|
|
17
|
+
import { w as User } from './types-DRTmNpY7.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 {
|
|
17
|
+
import { u as Session, v as SuccessResponse, q as RevokeAllSessionsResponse } from './types-DRTmNpY7.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 {
|
|
17
|
+
import { u as Session, v as SuccessResponse, q as RevokeAllSessionsResponse } from './types-DRTmNpY7.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Sessions Module
|
|
@@ -410,18 +410,8 @@ interface ChangePasswordParams {
|
|
|
410
410
|
* - wechat: WeChat Open Platform OAuth (for web/mobile apps)
|
|
411
411
|
* - wechat_mini: legacy mini-program provider marker kept for compatibility
|
|
412
412
|
* - platform: AMaster Platform OAuth
|
|
413
|
-
* - feishu: application-scoped Feishu OAuth and in-client passwordless login
|
|
414
413
|
*/
|
|
415
|
-
type OAuthProvider = "google" | "github" | "wechat" | "wechat_mini" | "platform"
|
|
416
|
-
interface FeishuPublicConfig {
|
|
417
|
-
enabled: boolean;
|
|
418
|
-
appId: string;
|
|
419
|
-
usePkce: boolean;
|
|
420
|
-
}
|
|
421
|
-
interface OAuthLoginTicketResponse {
|
|
422
|
-
accessToken: string;
|
|
423
|
-
returnUrl: string;
|
|
424
|
-
}
|
|
414
|
+
type OAuthProvider = "google" | "github" | "wechat" | "wechat_mini" | "platform";
|
|
425
415
|
interface OAuthBinding {
|
|
426
416
|
provider: OAuthProvider;
|
|
427
417
|
providerId: string;
|
|
@@ -594,4 +584,4 @@ interface RevokeAllSessionsResponse {
|
|
|
594
584
|
revokedCount: number;
|
|
595
585
|
}
|
|
596
586
|
|
|
597
|
-
export type { AuthClientOptions as A, ChangePasswordParams as C, EventHandler as E,
|
|
587
|
+
export type { AuthClientOptions as A, ChangePasswordParams as C, EventHandler as E, 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, OAuthProvider as m, PermissionDetail as n, RegisterParams as o, RegisterResponse as p, RevokeAllSessionsResponse as q, Role as r, RoleDetail as s, SendCodeType as t, Session as u, SuccessResponse as v, User as w };
|
|
@@ -410,18 +410,8 @@ interface ChangePasswordParams {
|
|
|
410
410
|
* - wechat: WeChat Open Platform OAuth (for web/mobile apps)
|
|
411
411
|
* - wechat_mini: legacy mini-program provider marker kept for compatibility
|
|
412
412
|
* - platform: AMaster Platform OAuth
|
|
413
|
-
* - feishu: application-scoped Feishu OAuth and in-client passwordless login
|
|
414
413
|
*/
|
|
415
|
-
type OAuthProvider = "google" | "github" | "wechat" | "wechat_mini" | "platform"
|
|
416
|
-
interface FeishuPublicConfig {
|
|
417
|
-
enabled: boolean;
|
|
418
|
-
appId: string;
|
|
419
|
-
usePkce: boolean;
|
|
420
|
-
}
|
|
421
|
-
interface OAuthLoginTicketResponse {
|
|
422
|
-
accessToken: string;
|
|
423
|
-
returnUrl: string;
|
|
424
|
-
}
|
|
414
|
+
type OAuthProvider = "google" | "github" | "wechat" | "wechat_mini" | "platform";
|
|
425
415
|
interface OAuthBinding {
|
|
426
416
|
provider: OAuthProvider;
|
|
427
417
|
providerId: string;
|
|
@@ -594,4 +584,4 @@ interface RevokeAllSessionsResponse {
|
|
|
594
584
|
revokedCount: number;
|
|
595
585
|
}
|
|
596
586
|
|
|
597
|
-
export type { AuthClientOptions as A, ChangePasswordParams as C, EventHandler as E,
|
|
587
|
+
export type { AuthClientOptions as A, ChangePasswordParams as C, EventHandler as E, 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, OAuthProvider as m, PermissionDetail as n, RegisterParams as o, RegisterResponse as p, RevokeAllSessionsResponse as q, Role as r, RoleDetail as s, SendCodeType as t, Session as u, SuccessResponse as v, User as w };
|
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 {
|
|
17
|
+
import { w as User, U as UpdateMeParams, C as ChangePasswordParams, v as SuccessResponse } from './types-DRTmNpY7.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 {
|
|
17
|
+
import { w as User, U as UpdateMeParams, C as ChangePasswordParams, v as SuccessResponse } from './types-DRTmNpY7.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.61
|
|
3
|
+
"version": "1.1.61",
|
|
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.61
|
|
50
|
+
"@amaster.ai/http-client": "1.1.61"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"axios": "^1.11.0"
|