@amaster.ai/client 1.1.61-beta.0 → 1.1.61-beta.1

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
@@ -289,10 +289,12 @@ interface AmasterClientOptions {
289
289
  * Automatically handle OAuth callback on initialization (default: true)
290
290
  *
291
291
  * When enabled, the client will automatically detect and process OAuth
292
- * callback URLs containing #access_token. After processing, the hash
293
- * is automatically cleared from the URL for security.
292
+ * callback URLs containing an access-token hash, `login_ticket`, or
293
+ * `oauth_error`. Processed callback parameters are removed from the URL.
294
294
  *
295
- * Set to false if you want to manually handle OAuth callbacks.
295
+ * Set to false if you want to manually handle OAuth callbacks. Do not use
296
+ * automatic and manual ownership together; repeated calls on one client
297
+ * instance reuse the same result as a safety net.
296
298
  *
297
299
  * @default true
298
300
  */
package/dist/index.d.ts CHANGED
@@ -289,10 +289,12 @@ interface AmasterClientOptions {
289
289
  * Automatically handle OAuth callback on initialization (default: true)
290
290
  *
291
291
  * When enabled, the client will automatically detect and process OAuth
292
- * callback URLs containing #access_token. After processing, the hash
293
- * is automatically cleared from the URL for security.
292
+ * callback URLs containing an access-token hash, `login_ticket`, or
293
+ * `oauth_error`. Processed callback parameters are removed from the URL.
294
294
  *
295
- * Set to false if you want to manually handle OAuth callbacks.
295
+ * Set to false if you want to manually handle OAuth callbacks. Do not use
296
+ * automatic and manual ownership together; repeated calls on one client
297
+ * instance reuse the same result as a safety net.
296
298
  *
297
299
  * @default true
298
300
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amaster.ai/client",
3
- "version": "1.1.61-beta.0",
3
+ "version": "1.1.61-beta.1",
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-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"
75
+ "@amaster.ai/auth-client": "1.1.61-beta.1",
76
+ "@amaster.ai/asr-client": "1.1.61-beta.1",
77
+ "@amaster.ai/bpm-client": "1.1.61-beta.1",
78
+ "@amaster.ai/entity-client": "1.1.61-beta.1",
79
+ "@amaster.ai/function-client": "1.1.61-beta.1",
80
+ "@amaster.ai/s3-client": "1.1.61-beta.1",
81
+ "@amaster.ai/copilot-client": "1.1.61-beta.1",
82
+ "@amaster.ai/workflow-client": "1.1.61-beta.1",
83
+ "@amaster.ai/http-client": "1.1.61-beta.1",
84
+ "@amaster.ai/tts-client": "1.1.61-beta.1"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "axios": "^1.11.0"
@@ -95,6 +95,9 @@ describe('Type Tests', () => {
95
95
  expectTypeOf<AmasterClient['auth']>().toHaveProperty('miniLogin');
96
96
  expectTypeOf<AmasterClient['auth']>().toHaveProperty('getMiniProgramPhoneNumber');
97
97
  expectTypeOf<AmasterClient['auth']>().toHaveProperty('loginWithMiniProgram');
98
+ expectTypeOf<AmasterClient['auth']>().toHaveProperty('loginWithFeishu');
99
+ expectTypeOf<AmasterClient['auth']>().toHaveProperty('loginWithFeishuCode');
100
+ expectTypeOf<AmasterClient['auth']>().toHaveProperty('exchangeOAuthLoginTicket');
98
101
  expectTypeOf<AmasterClient['auth']>().toHaveProperty('handleOAuthCallback');
99
102
  expectTypeOf<AmasterClient['auth']>().toHaveProperty('updateMe');
100
103
  expectTypeOf<AmasterClient['auth']>().toHaveProperty('getSession');
package/types/index.d.ts CHANGED
@@ -118,9 +118,9 @@ export interface AmasterClientOptions {
118
118
  /**
119
119
  * Auto-handle OAuth callback on page load (default: true)
120
120
  *
121
- * Automatically detects and processes `#access_token` in URL hash,
122
- * then clears the hash for security. Set to `false` to manually
123
- * call `client.auth.handleOAuthCallback()`.
121
+ * Automatically detects and processes an access-token hash, `login_ticket`,
122
+ * or `oauth_error`, then clears processed callback parameters for security.
123
+ * Set to `false` to manually call `client.auth.handleOAuthCallback()`.
124
124
  *
125
125
  * @default true
126
126
  */