@amaster.ai/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/package.json +11 -11
- package/types/auth/oauth.d.ts +1 -28
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amaster.ai/client",
|
|
3
|
-
"version": "1.1.61
|
|
3
|
+
"version": "1.1.61",
|
|
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.61
|
|
76
|
-
"@amaster.ai/
|
|
77
|
-
"@amaster.ai/
|
|
78
|
-
"@amaster.ai/
|
|
79
|
-
"@amaster.ai/
|
|
80
|
-
"@amaster.ai/
|
|
81
|
-
"@amaster.ai/s3-client": "1.1.61
|
|
82
|
-
"@amaster.ai/
|
|
83
|
-
"@amaster.ai/tts-client": "1.1.61
|
|
84
|
-
"@amaster.ai/
|
|
75
|
+
"@amaster.ai/asr-client": "1.1.61",
|
|
76
|
+
"@amaster.ai/bpm-client": "1.1.61",
|
|
77
|
+
"@amaster.ai/copilot-client": "1.1.61",
|
|
78
|
+
"@amaster.ai/entity-client": "1.1.61",
|
|
79
|
+
"@amaster.ai/function-client": "1.1.61",
|
|
80
|
+
"@amaster.ai/http-client": "1.1.61",
|
|
81
|
+
"@amaster.ai/s3-client": "1.1.61",
|
|
82
|
+
"@amaster.ai/workflow-client": "1.1.61",
|
|
83
|
+
"@amaster.ai/tts-client": "1.1.61",
|
|
84
|
+
"@amaster.ai/auth-client": "1.1.61"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"axios": "^1.11.0"
|
package/types/auth/oauth.d.ts
CHANGED
|
@@ -22,19 +22,7 @@ export type OAuthProvider =
|
|
|
22
22
|
| 'wechat'
|
|
23
23
|
/** @deprecated Legacy mini-program provider marker kept for compatibility */
|
|
24
24
|
| 'wechat_mini'
|
|
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
|
-
}
|
|
25
|
+
| 'platform';
|
|
38
26
|
|
|
39
27
|
/**
|
|
40
28
|
* OAuth binding information for the current user
|
|
@@ -138,21 +126,6 @@ export interface OAuthAPI {
|
|
|
138
126
|
*/
|
|
139
127
|
loginWithOAuth(provider: OAuthProvider, redirectUrl?: string): void;
|
|
140
128
|
|
|
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
|
-
|
|
156
129
|
/**
|
|
157
130
|
* Handle OAuth callback on the current browser page
|
|
158
131
|
*
|