@amaster.ai/client 1.1.65 → 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/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AuthClient } from '@amaster.ai/auth-client';
|
|
2
|
-
export { LoginParams, LoginResponse, OAuthProvider, Permission, RegisterParams, Role, Session, User } from '@amaster.ai/auth-client';
|
|
2
|
+
export { DepartmentPosition, LoginParams, LoginResponse, OAuthProvider, Permission, RegisterParams, Role, Session, User } from '@amaster.ai/auth-client';
|
|
3
3
|
import { EntityClient } from '@amaster.ai/entity-client';
|
|
4
4
|
export { EntityGetParams, EntityListResponse, EntityQueryParams, EntityUpdateWhereParams, EntityUpdateWhereResponse, FilterGroup, FilterItem, FilterOperator } from '@amaster.ai/entity-client';
|
|
5
5
|
import { BpmClient } from '@amaster.ai/bpm-client';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AuthClient } from '@amaster.ai/auth-client';
|
|
2
|
-
export { LoginParams, LoginResponse, OAuthProvider, Permission, RegisterParams, Role, Session, User } from '@amaster.ai/auth-client';
|
|
2
|
+
export { DepartmentPosition, LoginParams, LoginResponse, OAuthProvider, Permission, RegisterParams, Role, Session, User } from '@amaster.ai/auth-client';
|
|
3
3
|
import { EntityClient } from '@amaster.ai/entity-client';
|
|
4
4
|
export { EntityGetParams, EntityListResponse, EntityQueryParams, EntityUpdateWhereParams, EntityUpdateWhereResponse, FilterGroup, FilterItem, FilterOperator } from '@amaster.ai/entity-client';
|
|
5
5
|
import { BpmClient } from '@amaster.ai/bpm-client';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amaster.ai/client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.66",
|
|
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/
|
|
76
|
-
"@amaster.ai/
|
|
77
|
-
"@amaster.ai/
|
|
78
|
-
"@amaster.ai/copilot-client": "1.1.
|
|
79
|
-
"@amaster.ai/
|
|
80
|
-
"@amaster.ai/
|
|
81
|
-
"@amaster.ai/
|
|
82
|
-
"@amaster.ai/workflow-client": "1.1.
|
|
83
|
-
"@amaster.ai/
|
|
84
|
-
"@amaster.ai/
|
|
75
|
+
"@amaster.ai/asr-client": "1.1.66",
|
|
76
|
+
"@amaster.ai/bpm-client": "1.1.66",
|
|
77
|
+
"@amaster.ai/auth-client": "1.1.66",
|
|
78
|
+
"@amaster.ai/copilot-client": "1.1.66",
|
|
79
|
+
"@amaster.ai/entity-client": "1.1.66",
|
|
80
|
+
"@amaster.ai/http-client": "1.1.66",
|
|
81
|
+
"@amaster.ai/tts-client": "1.1.66",
|
|
82
|
+
"@amaster.ai/workflow-client": "1.1.66",
|
|
83
|
+
"@amaster.ai/function-client": "1.1.66",
|
|
84
|
+
"@amaster.ai/s3-client": "1.1.66"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"axios": "^1.11.0"
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { expectTypeOf } from 'vitest';
|
|
2
|
+
import type { AmasterClient, ClientResult } from '../index';
|
|
3
|
+
import type { LoginResponse } from '../auth/password-auth';
|
|
4
|
+
|
|
5
|
+
declare const client: AmasterClient;
|
|
6
|
+
expectTypeOf(client.auth.miniPhoneLogin({ detail: { code: 'phone-code' } }))
|
|
7
|
+
.toEqualTypeOf<Promise<ClientResult<LoginResponse>>>();
|
|
8
|
+
expectTypeOf(client.auth.miniPhoneLogin('phone-code'))
|
|
9
|
+
.toEqualTypeOf<Promise<ClientResult<LoginResponse>>>();
|
|
@@ -99,6 +99,7 @@ describe('Type Tests', () => {
|
|
|
99
99
|
it('should expose the current auth client methods', () => {
|
|
100
100
|
expectTypeOf<AmasterClient['auth']>().toHaveProperty('miniGetPhone');
|
|
101
101
|
expectTypeOf<AmasterClient['auth']>().toHaveProperty('miniLogin');
|
|
102
|
+
expectTypeOf<AmasterClient['auth']>().toHaveProperty('miniPhoneLogin');
|
|
102
103
|
expectTypeOf<AmasterClient['auth']>().toHaveProperty('getMiniProgramPhoneNumber');
|
|
103
104
|
expectTypeOf<AmasterClient['auth']>().toHaveProperty('loginWithMiniProgram');
|
|
104
105
|
expectTypeOf<AmasterClient['auth']>().toHaveProperty('loginWithFeishu');
|
package/types/auth/oauth.d.ts
CHANGED
|
@@ -195,6 +195,9 @@ export interface OAuthAPI {
|
|
|
195
195
|
code: string | MiniProgramPhoneParams
|
|
196
196
|
): Promise<ClientResult<MiniProgramPhoneResponse>>;
|
|
197
197
|
|
|
198
|
+
/** WeChat phone authorization login; no prior session or wx.login required. */
|
|
199
|
+
miniPhoneLogin(input: MiniGetPhoneParams): Promise<ClientResult<LoginResponse>>;
|
|
200
|
+
|
|
198
201
|
/**
|
|
199
202
|
* Unified Mini Program phone binding entry
|
|
200
203
|
*
|