@amaster.ai/client 1.1.65 → 1.1.67-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/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
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';
6
- export { ActivityInstanceTree, CamundaVariable, HistoryActivityInstance, HistoryProcessInstance, HistoryTask, ProcessInstance, ProcessVariable, Task, TaskFormSchema, TaskQueryParams, UserOperationLog } from '@amaster.ai/bpm-client';
6
+ export { ActivityInstanceTree, AssignmentPerson, CamundaVariable, HistoryActivityInstance, HistoryProcessInstance, HistoryTask, ProcessInstance, ProcessVariable, Task, TaskFormSchema, TaskPeopleMetadata, TaskPeopleSnapshot, TaskQueryParams, UserOperationLog } from '@amaster.ai/bpm-client';
7
7
  import { WorkflowClient, ChatflowClient } from '@amaster.ai/workflow-client';
8
8
  export { ChatflowBlockingResponse, ChatflowClient, ChatflowClientOptions, ChatflowEvent, ChatflowRunRequest, ChatflowStopRequest, ChatflowStopResponse, ChatflowStreamError, ChatflowStreamOptions, WorkflowAsyncRunDetailResponse, WorkflowAsyncRunResponse, WorkflowAsyncRunStatus, WorkflowCallbackConfig, WorkflowFile, WorkflowInputValue, WorkflowNodeUsage, WorkflowRunDetailOptions, WorkflowRunRequest, WorkflowRunResponse, WorkflowRunUsage, WorkflowUsageSummary } from '@amaster.ai/workflow-client';
9
9
  import { ClientResult, MiniProgramRuntime, HttpClient } from '@amaster.ai/http-client';
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
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';
6
- export { ActivityInstanceTree, CamundaVariable, HistoryActivityInstance, HistoryProcessInstance, HistoryTask, ProcessInstance, ProcessVariable, Task, TaskFormSchema, TaskQueryParams, UserOperationLog } from '@amaster.ai/bpm-client';
6
+ export { ActivityInstanceTree, AssignmentPerson, CamundaVariable, HistoryActivityInstance, HistoryProcessInstance, HistoryTask, ProcessInstance, ProcessVariable, Task, TaskFormSchema, TaskPeopleMetadata, TaskPeopleSnapshot, TaskQueryParams, UserOperationLog } from '@amaster.ai/bpm-client';
7
7
  import { WorkflowClient, ChatflowClient } from '@amaster.ai/workflow-client';
8
8
  export { ChatflowBlockingResponse, ChatflowClient, ChatflowClientOptions, ChatflowEvent, ChatflowRunRequest, ChatflowStopRequest, ChatflowStopResponse, ChatflowStreamError, ChatflowStreamOptions, WorkflowAsyncRunDetailResponse, WorkflowAsyncRunResponse, WorkflowAsyncRunStatus, WorkflowCallbackConfig, WorkflowFile, WorkflowInputValue, WorkflowNodeUsage, WorkflowRunDetailOptions, WorkflowRunRequest, WorkflowRunResponse, WorkflowRunUsage, WorkflowUsageSummary } from '@amaster.ai/workflow-client';
9
9
  import { ClientResult, MiniProgramRuntime, HttpClient } from '@amaster.ai/http-client';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amaster.ai/client",
3
- "version": "1.1.65",
3
+ "version": "1.1.67-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/auth-client": "1.1.65",
76
- "@amaster.ai/asr-client": "1.1.65",
77
- "@amaster.ai/bpm-client": "1.1.65",
78
- "@amaster.ai/copilot-client": "1.1.65",
79
- "@amaster.ai/function-client": "1.1.65",
80
- "@amaster.ai/entity-client": "1.1.65",
81
- "@amaster.ai/s3-client": "1.1.65",
82
- "@amaster.ai/workflow-client": "1.1.65",
83
- "@amaster.ai/tts-client": "1.1.65",
84
- "@amaster.ai/http-client": "1.1.65"
75
+ "@amaster.ai/asr-client": "1.1.67-beta.0",
76
+ "@amaster.ai/auth-client": "1.1.67-beta.0",
77
+ "@amaster.ai/bpm-client": "1.1.67-beta.0",
78
+ "@amaster.ai/copilot-client": "1.1.67-beta.0",
79
+ "@amaster.ai/entity-client": "1.1.67-beta.0",
80
+ "@amaster.ai/http-client": "1.1.67-beta.0",
81
+ "@amaster.ai/function-client": "1.1.67-beta.0",
82
+ "@amaster.ai/workflow-client": "1.1.67-beta.0",
83
+ "@amaster.ai/tts-client": "1.1.67-beta.0",
84
+ "@amaster.ai/s3-client": "1.1.67-beta.0"
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');
@@ -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
  *