@amaster.ai/client 1.1.60-beta.1 → 1.1.61-beta.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/package.json +11 -11
- package/types/auth/oauth.d.ts +28 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amaster.ai/client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.61-beta.0",
|
|
4
4
|
"description": "Unified API client for Amaster platform - All services in one package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -72,16 +72,16 @@
|
|
|
72
72
|
"registry": "https://registry.npmjs.org/"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@amaster.ai/asr-client": "1.1.
|
|
76
|
-
"@amaster.ai/auth-client": "1.1.
|
|
77
|
-
"@amaster.ai/bpm-client": "1.1.
|
|
78
|
-
"@amaster.ai/
|
|
79
|
-
"@amaster.ai/
|
|
80
|
-
"@amaster.ai/function-client": "1.1.
|
|
81
|
-
"@amaster.ai/
|
|
82
|
-
"@amaster.ai/
|
|
83
|
-
"@amaster.ai/tts-client": "1.1.
|
|
84
|
-
"@amaster.ai/workflow-client": "1.1.
|
|
75
|
+
"@amaster.ai/asr-client": "1.1.61-beta.0",
|
|
76
|
+
"@amaster.ai/auth-client": "1.1.61-beta.0",
|
|
77
|
+
"@amaster.ai/bpm-client": "1.1.61-beta.0",
|
|
78
|
+
"@amaster.ai/copilot-client": "1.1.61-beta.0",
|
|
79
|
+
"@amaster.ai/entity-client": "1.1.61-beta.0",
|
|
80
|
+
"@amaster.ai/function-client": "1.1.61-beta.0",
|
|
81
|
+
"@amaster.ai/s3-client": "1.1.61-beta.0",
|
|
82
|
+
"@amaster.ai/http-client": "1.1.61-beta.0",
|
|
83
|
+
"@amaster.ai/tts-client": "1.1.61-beta.0",
|
|
84
|
+
"@amaster.ai/workflow-client": "1.1.61-beta.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"axios": "^1.11.0"
|
package/types/auth/oauth.d.ts
CHANGED
|
@@ -22,7 +22,19 @@ export type OAuthProvider =
|
|
|
22
22
|
| 'wechat'
|
|
23
23
|
/** @deprecated Legacy mini-program provider marker kept for compatibility */
|
|
24
24
|
| 'wechat_mini'
|
|
25
|
-
| 'platform'
|
|
25
|
+
| 'platform'
|
|
26
|
+
| 'feishu';
|
|
27
|
+
|
|
28
|
+
export interface FeishuPublicConfig {
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
appId: string;
|
|
31
|
+
usePkce: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface OAuthLoginTicketResponse {
|
|
35
|
+
accessToken: string;
|
|
36
|
+
returnUrl: string;
|
|
37
|
+
}
|
|
26
38
|
|
|
27
39
|
/**
|
|
28
40
|
* OAuth binding information for the current user
|
|
@@ -126,6 +138,21 @@ export interface OAuthAPI {
|
|
|
126
138
|
*/
|
|
127
139
|
loginWithOAuth(provider: OAuthProvider, redirectUrl?: string): void;
|
|
128
140
|
|
|
141
|
+
/**
|
|
142
|
+
* Use requestAccess inside Feishu, or redirect to browser OAuth outside Feishu.
|
|
143
|
+
* Browser mode returns null after starting navigation.
|
|
144
|
+
*/
|
|
145
|
+
loginWithFeishu(returnUrl?: string): Promise<ClientResult<LoginResponse> | null>;
|
|
146
|
+
|
|
147
|
+
/** Submit an existing requestAccess/requestAuthCode authorization code. */
|
|
148
|
+
loginWithFeishuCode(
|
|
149
|
+
code: string,
|
|
150
|
+
returnUrl?: string
|
|
151
|
+
): Promise<ClientResult<LoginResponse>>;
|
|
152
|
+
|
|
153
|
+
/** Exchange a short-lived, one-time application OAuth login ticket. */
|
|
154
|
+
exchangeOAuthLoginTicket(ticket: string): Promise<ClientResult<LoginResponse>>;
|
|
155
|
+
|
|
129
156
|
/**
|
|
130
157
|
* Handle OAuth callback on the current browser page
|
|
131
158
|
*
|