@amaster.ai/client 1.1.0-beta.4 → 1.1.0-beta.5
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 +7 -7
- package/types/index.d.ts +57 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amaster.ai/client",
|
|
3
|
-
"version": "1.1.0-beta.
|
|
3
|
+
"version": "1.1.0-beta.5",
|
|
4
4
|
"description": "Unified API client for Amaster platform - All services in one package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -69,16 +69,16 @@
|
|
|
69
69
|
"registry": "https://registry.npmjs.org/"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@amaster.ai/asr-client": "1.1.0-beta.3",
|
|
73
72
|
"@amaster.ai/asr-http-client": "1.1.0-beta.3",
|
|
74
73
|
"@amaster.ai/copilot-client": "1.1.0-beta.3",
|
|
75
|
-
"@amaster.ai/auth-client": "1.1.0-beta.3",
|
|
76
|
-
"@amaster.ai/function-client": "1.1.0-beta.3",
|
|
77
|
-
"@amaster.ai/bpm-client": "1.1.0-beta.3",
|
|
78
74
|
"@amaster.ai/entity-client": "1.1.0-beta.3",
|
|
75
|
+
"@amaster.ai/bpm-client": "1.1.0-beta.3",
|
|
76
|
+
"@amaster.ai/http-client": "1.1.0-beta.3",
|
|
79
77
|
"@amaster.ai/tts-client": "1.1.0-beta.3",
|
|
80
|
-
"@amaster.ai/
|
|
81
|
-
"@amaster.ai/
|
|
78
|
+
"@amaster.ai/function-client": "1.1.0-beta.3",
|
|
79
|
+
"@amaster.ai/auth-client": "1.1.0-beta.3",
|
|
80
|
+
"@amaster.ai/asr-client": "1.1.0-beta.3",
|
|
81
|
+
"@amaster.ai/workflow-client": "1.1.0-beta.3"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"axios": "^1.11.0"
|
package/types/index.d.ts
CHANGED
|
@@ -54,6 +54,10 @@ import type { AuthClientAPI } from './auth/index';
|
|
|
54
54
|
import type { EntityClientAPI } from './entity';
|
|
55
55
|
import type { BpmClientAPI } from './bpm';
|
|
56
56
|
import type { WorkflowClientAPI } from './workflow';
|
|
57
|
+
import type { ASRClient } from './asr';
|
|
58
|
+
import type { CopilotA2UIClient } from './copilot';
|
|
59
|
+
import type { FunctionClient } from './function';
|
|
60
|
+
import type { TTSClient } from './tts';
|
|
57
61
|
|
|
58
62
|
/**
|
|
59
63
|
* Configuration options for creating an Amaster client
|
|
@@ -335,6 +339,54 @@ export interface AmasterClient {
|
|
|
335
339
|
*/
|
|
336
340
|
workflow: WorkflowClientAPI;
|
|
337
341
|
|
|
342
|
+
/**
|
|
343
|
+
* ASR (Automatic Speech Recognition) module
|
|
344
|
+
*
|
|
345
|
+
* Provides methods for real-time speech-to-text conversion via WebSocket.
|
|
346
|
+
*
|
|
347
|
+
* For detailed documentation, see {@link ./asr.d.ts}
|
|
348
|
+
*/
|
|
349
|
+
asr: ASRClient;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Copilot AI Assistant module
|
|
353
|
+
*
|
|
354
|
+
* Provides methods for interactive AI conversations with A2UI streaming.
|
|
355
|
+
*
|
|
356
|
+
* For detailed documentation, see {@link ./copilot.d.ts}
|
|
357
|
+
*
|
|
358
|
+
* @example
|
|
359
|
+
* Chat with AI:
|
|
360
|
+
* ```typescript
|
|
361
|
+
* const stream = client.copilot.chat([
|
|
362
|
+
* { role: 'user', content: 'Hello' }
|
|
363
|
+
* ]);
|
|
364
|
+
*
|
|
365
|
+
* for await (const messages of stream) {
|
|
366
|
+
* // Process A2UI messages
|
|
367
|
+
* }
|
|
368
|
+
* ```
|
|
369
|
+
*/
|
|
370
|
+
copilot: CopilotA2UIClient;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Serverless Function module
|
|
374
|
+
*
|
|
375
|
+
* Provides methods for invoking serverless functions.
|
|
376
|
+
*
|
|
377
|
+
* For detailed documentation, see {@link ./function.d.ts}
|
|
378
|
+
*/
|
|
379
|
+
function: FunctionClient;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* TTS (Text-to-Speech) module
|
|
383
|
+
*
|
|
384
|
+
* Provides methods for real-time text-to-speech conversion via WebSocket.
|
|
385
|
+
*
|
|
386
|
+
* For detailed documentation, see {@link ./tts.d.ts}
|
|
387
|
+
*/
|
|
388
|
+
tts: TTSClient;
|
|
389
|
+
|
|
338
390
|
/**
|
|
339
391
|
* Check if the user is currently authenticated
|
|
340
392
|
*
|
|
@@ -491,9 +543,14 @@ export type { AuthClientAPI } from './auth';
|
|
|
491
543
|
export type { EntityClientAPI } from './entity';
|
|
492
544
|
export type { BpmClientAPI } from './bpm';
|
|
493
545
|
export type { WorkflowClientAPI } from './workflow';
|
|
546
|
+
export type { ASRClient } from './asr';
|
|
547
|
+
export type { CopilotA2UIClient } from './copilot';
|
|
548
|
+
export type { FunctionClient } from './function';
|
|
549
|
+
export type { TTSClient } from './tts';
|
|
494
550
|
|
|
495
551
|
// For detailed types, import directly from submodules:
|
|
496
552
|
// import type { LoginParams, User } from '@amaster.ai/client/auth'
|
|
497
553
|
// import type { EntityQueryParams } from '@amaster.ai/client/entity'
|
|
498
554
|
// import type { Task, ProcessInstance } from '@amaster.ai/client/bpm'
|
|
499
555
|
// import type { WorkflowRunRequest } from '@amaster.ai/client/workflow'
|
|
556
|
+
// import type { ServerToClientMessage } from '@amaster.ai/client/copilot'
|