@amaster.ai/client 1.1.72 → 1.1.73
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/README.md +57 -0
- package/dist/index.cjs +897 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +897 -30
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/types/auth/index.d.ts +1 -0
- package/types/common.d.ts +3 -0
- package/types/http.d.ts +8 -130
- package/types/index.d.ts +40 -12
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { ActivityInstanceTree, AssignmentPerson, CamundaVariable, HistoryActivit
|
|
|
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';
|
|
10
|
-
export { ClientError, ClientResult, HttpClient, RequestConfig } from '@amaster.ai/http-client';
|
|
10
|
+
export { ClientError, ClientResult, HttpClient, RequestConfig, RequestScopeCapture, RequestScopeOptions, RequestSubject } from '@amaster.ai/http-client';
|
|
11
11
|
import { ASRClientConfig, ASRClient, ASRHttpClientConfig, ASRHttpClient } from '@amaster.ai/asr-client';
|
|
12
12
|
export { ASRClient, ASRClientConfig, ASRHttpClient, ASRHttpClientConfig, ASRLanguage } from '@amaster.ai/asr-client';
|
|
13
13
|
import { CopilotClient } from '@amaster.ai/copilot-client';
|
|
@@ -18,6 +18,8 @@ import { TTSClientConfig, TTSClient } from '@amaster.ai/tts-client';
|
|
|
18
18
|
export { TTSClient, TTSClientConfig, TTSRuntime, TTSSnapshot, TTSSpeakController, TTSSpeakControllerOptions, TTSSpeakOptions, TTSStorageAdapter, createTTSSpeakController, preprocessTTSContent, splitTextIntoFragments } from '@amaster.ai/tts-client';
|
|
19
19
|
import { S3Client } from '@amaster.ai/s3-client';
|
|
20
20
|
export { S3Client, S3Metadata, S3UploadOptions, S3UploadProgress, S3UploadProgressPhase, UploadRes } from '@amaster.ai/s3-client';
|
|
21
|
+
import { TenancyClient } from '@amaster.ai/auth-client/tenancy';
|
|
22
|
+
export { TenancyAccount, TenancyCapabilityError, TenancyClient, TenancyCurrent, TenancyDecision, TenancyDepartmentScope, TenancyNode } from '@amaster.ai/auth-client/tenancy';
|
|
21
23
|
|
|
22
24
|
type KnowledgeDocumentStatus = "completed" | "indexing" | "error" | "paused";
|
|
23
25
|
type KnowledgeDocumentListStatus = KnowledgeDocumentStatus | "all";
|
|
@@ -326,6 +328,10 @@ type BrowserAmasterClientOptions = AmasterClientOptions & ({
|
|
|
326
328
|
* Provides a simplified, Supabase-style API to access all Amaster services
|
|
327
329
|
*/
|
|
328
330
|
interface AmasterClient {
|
|
331
|
+
/** Wait for authoritative application mode; API and instance execution wait automatically. Local UI hints/factory construction remain synchronous. */
|
|
332
|
+
ready(): Promise<void>;
|
|
333
|
+
/** Automatic clients expose enabled=null until discovery, then the backend mode; identity comes from account(). */
|
|
334
|
+
tenancy?: TenancyClient;
|
|
329
335
|
/**
|
|
330
336
|
* Authentication module
|
|
331
337
|
*
|
|
@@ -616,7 +622,9 @@ interface AmasterClient {
|
|
|
616
622
|
*/
|
|
617
623
|
clearAuth(): void;
|
|
618
624
|
}
|
|
619
|
-
|
|
625
|
+
interface TenancyAmasterClient extends AmasterClient {
|
|
626
|
+
tenancy: TenancyClient;
|
|
627
|
+
}
|
|
620
628
|
interface BrowserAmasterClient extends AmasterClient {
|
|
621
629
|
auth: BrowserAuthClient;
|
|
622
630
|
}
|
|
@@ -692,7 +700,8 @@ interface BrowserAmasterClient extends AmasterClient {
|
|
|
692
700
|
* const tasks = await client.bpm.getTasks({ assignee: 'currentUserId' });
|
|
693
701
|
* ```
|
|
694
702
|
*/
|
|
695
|
-
declare function createClient(options: BrowserAmasterClientOptions): BrowserAmasterClient;
|
|
703
|
+
declare function createClient(options: BrowserAmasterClientOptions): BrowserAmasterClient & TenancyAmasterClient;
|
|
704
|
+
declare function createClient(options?: AmasterClientOptions): TenancyAmasterClient;
|
|
696
705
|
declare function createClient(options?: AmasterClientOptions): AmasterClient;
|
|
697
706
|
|
|
698
|
-
export { type AmasterClient, type AmasterClientOptions, type BrowserAmasterClient, type BrowserAmasterClientOptions, type KnowledgeChildChunk, type KnowledgeClient, type KnowledgeCreateSegmentOptions, type KnowledgeDatasetIdResponse, type KnowledgeDeleteDocumentOptions, type KnowledgeDeleteSegmentOptions, type KnowledgeDocument, type KnowledgeDocumentListResponse, type KnowledgeDocumentListStatus, type KnowledgeDocumentStatus, type KnowledgeGetDatasetIdOptions, type KnowledgeGetDocumentOptions, type KnowledgeIndexingStatus, type KnowledgeIndexingStatusOptions, type KnowledgeIndexingStatusResponse, type KnowledgeListDocumentsOptions, type KnowledgeListSegmentsOptions, type KnowledgeMetadataField, type KnowledgeMetadataOperation, type KnowledgeMetadataUpdateRequest, type KnowledgeResolveOptions, type KnowledgeRoles, type KnowledgeSegment, type KnowledgeSegmentAttachment, type KnowledgeSegmentAttachmentUploadResponse, type KnowledgeSegmentListResponse, type KnowledgeSegmentMutationResponse, type KnowledgeUpdateDocumentsMetadataOptions, type KnowledgeUpdateSegmentOptions, type KnowledgeUploadDocumentOptions, type KnowledgeUploadResponse, type KnowledgeUploadSegmentAttachmentOptions, type KnowledgeWaitForIndexingOptions, createClient };
|
|
707
|
+
export { type AmasterClient, type AmasterClientOptions, type BrowserAmasterClient, type BrowserAmasterClientOptions, type KnowledgeChildChunk, type KnowledgeClient, type KnowledgeCreateSegmentOptions, type KnowledgeDatasetIdResponse, type KnowledgeDeleteDocumentOptions, type KnowledgeDeleteSegmentOptions, type KnowledgeDocument, type KnowledgeDocumentListResponse, type KnowledgeDocumentListStatus, type KnowledgeDocumentStatus, type KnowledgeGetDatasetIdOptions, type KnowledgeGetDocumentOptions, type KnowledgeIndexingStatus, type KnowledgeIndexingStatusOptions, type KnowledgeIndexingStatusResponse, type KnowledgeListDocumentsOptions, type KnowledgeListSegmentsOptions, type KnowledgeMetadataField, type KnowledgeMetadataOperation, type KnowledgeMetadataUpdateRequest, type KnowledgeResolveOptions, type KnowledgeRoles, type KnowledgeSegment, type KnowledgeSegmentAttachment, type KnowledgeSegmentAttachmentUploadResponse, type KnowledgeSegmentListResponse, type KnowledgeSegmentMutationResponse, type KnowledgeUpdateDocumentsMetadataOptions, type KnowledgeUpdateSegmentOptions, type KnowledgeUploadDocumentOptions, type KnowledgeUploadResponse, type KnowledgeUploadSegmentAttachmentOptions, type KnowledgeWaitForIndexingOptions, type TenancyAmasterClient, createClient };
|