@amaster.ai/client 1.1.64 → 1.1.65

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amaster.ai/client",
3
- "version": "1.1.64",
3
+ "version": "1.1.65",
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.64",
76
- "@amaster.ai/auth-client": "1.1.64",
77
- "@amaster.ai/bpm-client": "1.1.64",
78
- "@amaster.ai/copilot-client": "1.1.64",
79
- "@amaster.ai/entity-client": "1.1.64",
80
- "@amaster.ai/function-client": "1.1.64",
81
- "@amaster.ai/http-client": "1.1.64",
82
- "@amaster.ai/s3-client": "1.1.64",
83
- "@amaster.ai/tts-client": "1.1.64",
84
- "@amaster.ai/workflow-client": "1.1.64"
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"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "axios": "^1.11.0"
@@ -71,6 +71,12 @@ describe('Type Tests', () => {
71
71
  });
72
72
 
73
73
  describe('AmasterClient', () => {
74
+ it('accepts WeCom H5 login through the public client types', () => {
75
+ expectTypeOf<'wecom'>().toMatchTypeOf<
76
+ Parameters<AmasterClient['auth']['loginWithOAuth']>[0]
77
+ >();
78
+ });
79
+
74
80
  it('should have all service modules', () => {
75
81
  expectTypeOf<AmasterClient>().toHaveProperty('auth');
76
82
  expectTypeOf<AmasterClient>().toHaveProperty('entity');
@@ -23,7 +23,9 @@ export type OAuthProvider =
23
23
  /** @deprecated Legacy mini-program provider marker kept for compatibility */
24
24
  | 'wechat_mini'
25
25
  | 'platform'
26
- | 'feishu';
26
+ | 'feishu'
27
+ /** Enterprise WeChat in-client H5 OAuth (not browser QR login). */
28
+ | 'wecom';
27
29
 
28
30
  export interface FeishuPublicConfig {
29
31
  enabled: boolean;