@acosmi/sdk-ts 2.3.0 → 2.5.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/CHANGELOG.md +51 -0
- package/README.md +17 -5
- package/dist/browser/index.mjs +249 -69
- package/dist/browser/index.mjs.map +1 -1
- package/dist/index.mjs +249 -69
- package/dist/index.mjs.map +1 -1
- package/dist/node/adapters/anthropic.cjs +13 -0
- package/dist/node/adapters/anthropic.cjs.map +1 -1
- package/dist/node/adapters/anthropic.d.cts +1 -1
- package/dist/node/adapters/anthropic.d.ts +1 -1
- package/dist/node/adapters/anthropic.mjs +13 -0
- package/dist/node/adapters/anthropic.mjs.map +1 -1
- package/dist/node/adapters/openai.cjs +17 -3
- package/dist/node/adapters/openai.cjs.map +1 -1
- package/dist/node/adapters/openai.d.cts +2 -2
- package/dist/node/adapters/openai.d.ts +2 -2
- package/dist/node/adapters/openai.mjs +17 -3
- package/dist/node/adapters/openai.mjs.map +1 -1
- package/dist/node/{index-CI7FM3xe.d.cts → index-BdzF9tmA.d.cts} +7 -1
- package/dist/node/{index-CI7FM3xe.d.ts → index-BdzF9tmA.d.ts} +7 -1
- package/dist/node/index.cjs +251 -68
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +101 -24
- package/dist/node/index.d.ts +101 -24
- package/dist/node/index.mjs +249 -69
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/{openai-xKHChcmG.d.cts → openai-B5xWiGMs.d.cts} +4 -1
- package/dist/node/{openai-oeY7dGNW.d.ts → openai-C3DcaljC.d.ts} +4 -1
- package/docs//345/274/200/345/217/221/344/270/216/345/217/221/345/270/203/346/211/213/345/206/214.md +19 -4
- package/package.json +1 -1
package/dist/node/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as AnthropicResponse } from './openai-
|
|
2
|
-
export { A as AnthropicContentBlock, b as AnthropicUsage, O as OpenAIAdapter, d as anthropicResponseTextContent, e as anthropicResponseThinkingContent, f as anthropicResponseToolUseBlocks } from './openai-
|
|
3
|
-
import { M as ManagedModel, Q as QuotaSummary, j as ModelCapabilities, e as ChatRequest, P as ProviderAdapter, f as ChatResponse, I as ImageGenerationRequest, h as ImageGenerationResponse, V as VideoGenerationRequest, u as VideoTaskResponse, n as StreamEvent, m as SourcesEvent, o as StreamSettlement, i as InputModality } from './index-
|
|
4
|
-
export { B as BucketClassCommercial, a as BucketClassGeneric, b as BucketInfo, c as BucketRow, C as ChatContentBlock, d as ChatMessage, g as ChatUsage, E as EffortConfig, G as GeoLoc, O as OutputConfig, k as ProviderFormat, S as ServerTool, l as ServerToolTypeWebSearch, T as ThinkingConfig, p as ThinkingHigh, q as ThinkingHighMinMaxTokens, r as ThinkingMax, s as ThinkingMaxFallbackMaxTokens, t as ThinkingOff, W as WebSearchConfig, v as WebSearchSource, w as bucketInfoIsCommercial, x as bucketRowIsCommercial, y as getAdapter, z as getAdapterForModel, A as newThinkingConfig, D as newWebSearchTool, F as parseSettlement, H as parseSourcesEvent } from './index-
|
|
1
|
+
import { a as AnthropicResponse } from './openai-B5xWiGMs.cjs';
|
|
2
|
+
export { A as AnthropicContentBlock, b as AnthropicUsage, O as OpenAIAdapter, d as anthropicResponseTextContent, e as anthropicResponseThinkingContent, f as anthropicResponseToolUseBlocks } from './openai-B5xWiGMs.cjs';
|
|
3
|
+
import { M as ManagedModel, Q as QuotaSummary, j as ModelCapabilities, e as ChatRequest, P as ProviderAdapter, f as ChatResponse, I as ImageGenerationRequest, h as ImageGenerationResponse, V as VideoGenerationRequest, u as VideoTaskResponse, n as StreamEvent, m as SourcesEvent, o as StreamSettlement, i as InputModality } from './index-BdzF9tmA.cjs';
|
|
4
|
+
export { B as BucketClassCommercial, a as BucketClassGeneric, b as BucketInfo, c as BucketRow, C as ChatContentBlock, d as ChatMessage, g as ChatUsage, E as EffortConfig, G as GeoLoc, O as OutputConfig, k as ProviderFormat, S as ServerTool, l as ServerToolTypeWebSearch, T as ThinkingConfig, p as ThinkingHigh, q as ThinkingHighMinMaxTokens, r as ThinkingMax, s as ThinkingMaxFallbackMaxTokens, t as ThinkingOff, W as WebSearchConfig, v as WebSearchSource, w as bucketInfoIsCommercial, x as bucketRowIsCommercial, y as getAdapter, z as getAdapterForModel, A as newThinkingConfig, D as newWebSearchTool, F as parseSettlement, H as parseSourcesEvent } from './index-BdzF9tmA.cjs';
|
|
5
5
|
import { M as MinimalSanitizeConfig } from './index-Bah9A83R.cjs';
|
|
6
6
|
export { A as sanitize } from './index-Bah9A83R.cjs';
|
|
7
7
|
export { AnthropicAdapter } from './adapters/anthropic.cjs';
|
|
@@ -178,6 +178,14 @@ interface TokenSet {
|
|
|
178
178
|
}
|
|
179
179
|
/** token 是否已过期 (提前 30 秒视为过期) */
|
|
180
180
|
declare function tokenSetIsExpired(t: TokenSet): boolean;
|
|
181
|
+
/**
|
|
182
|
+
* 运行时校验任意值是否为合法 TokenSet 形状 (所有字段都是 string)。
|
|
183
|
+
*
|
|
184
|
+
* store 反序列化磁盘 / localStorage 的 JSON 后必须经此校验:
|
|
185
|
+
* 损坏文件、旧版本残留、缺字段都会被判为无效, 由 caller 当作"无 token"重新登录,
|
|
186
|
+
* 而不是把 `{}` / 缺字段对象直接 cast 成 TokenSet 后在 refresh 阶段炸出难懂的错误。
|
|
187
|
+
*/
|
|
188
|
+
declare function isValidTokenSet(x: unknown): x is TokenSet;
|
|
181
189
|
/** 动态注册响应 */
|
|
182
190
|
interface ClientRegistration {
|
|
183
191
|
client_id: string;
|
|
@@ -203,7 +211,7 @@ type OAuthMetadataProfile = 'web' | 'desktop';
|
|
|
203
211
|
* profile='desktop' 对应桌面 loopback OAuth;profile='web' 对应浏览器 Web OAuth。
|
|
204
212
|
* 内部 helper — `discover` / `discoverWebOAuthMetadata` 是其薄包装。
|
|
205
213
|
*/
|
|
206
|
-
declare function discoverWithProfile(serverURL: string, profile: OAuthMetadataProfile, signal?: AbortSignal): Promise<ServerMetadata>;
|
|
214
|
+
declare function discoverWithProfile(serverURL: string, profile: OAuthMetadataProfile, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<ServerMetadata>;
|
|
207
215
|
/**
|
|
208
216
|
* 从 well-known 端点获取 Desktop OAuth 服务元数据。
|
|
209
217
|
*
|
|
@@ -211,7 +219,7 @@ declare function discoverWithProfile(serverURL: string, profile: OAuthMetadataPr
|
|
|
211
219
|
* well-known 端点按 RFC 8414 必须在 origin 根路径:
|
|
212
220
|
* https://acosmi.ai/.well-known/oauth-authorization-server/desktop
|
|
213
221
|
*/
|
|
214
|
-
declare function discover(serverURL: string, signal?: AbortSignal): Promise<ServerMetadata>;
|
|
222
|
+
declare function discover(serverURL: string, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<ServerMetadata>;
|
|
215
223
|
/**
|
|
216
224
|
* 从 well-known 端点获取 Web OAuth 服务元数据。
|
|
217
225
|
*
|
|
@@ -222,9 +230,9 @@ declare function discover(serverURL: string, signal?: AbortSignal): Promise<Serv
|
|
|
222
230
|
* 它返回 Web authorize/token 端点; `discover` 的 desktop profile 返回的是
|
|
223
231
|
* 桌面 loopback 端点, 不可混用。
|
|
224
232
|
*/
|
|
225
|
-
declare function discoverWebOAuthMetadata(serverURL: string, signal?: AbortSignal): Promise<ServerMetadata>;
|
|
233
|
+
declare function discoverWebOAuthMetadata(serverURL: string, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<ServerMetadata>;
|
|
226
234
|
/** 动态注册桌面客户端,获取 client_id */
|
|
227
|
-
declare function register(meta: ServerMetadata, appName: string, signal?: AbortSignal): Promise<ClientRegistration>;
|
|
235
|
+
declare function register(meta: ServerMetadata, appName: string, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<ClientRegistration>;
|
|
228
236
|
/** Web OAuth 动态注册参数 */
|
|
229
237
|
interface RegisterWebOAuthClientOptions {
|
|
230
238
|
/** 客户端展示名 (RFC 7591 client_name) */
|
|
@@ -241,7 +249,7 @@ interface RegisterWebOAuthClientOptions {
|
|
|
241
249
|
* 本函数允许传入任意 Web redirect_uri,供 csign 等第一方 Web 应用使用。
|
|
242
250
|
* `token_endpoint_auth_method` 仍为 `none` (PKCE public client)。
|
|
243
251
|
*/
|
|
244
|
-
declare function registerWebOAuthClient(meta: ServerMetadata, opts: RegisterWebOAuthClientOptions, signal?: AbortSignal): Promise<ClientRegistration>;
|
|
252
|
+
declare function registerWebOAuthClient(meta: ServerMetadata, opts: RegisterWebOAuthClientOptions, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<ClientRegistration>;
|
|
245
253
|
/**
|
|
246
254
|
* 生成 OAuth `state` 参数 — 32 字节加密随机数, base64url 无填充。
|
|
247
255
|
*
|
|
@@ -377,12 +385,12 @@ interface WebAuthorizationCallbackParams {
|
|
|
377
385
|
* state 不匹配时抛错 (CSRF 防护)。内部依次:
|
|
378
386
|
* discoverWebOAuthMetadata(pending.serverURL) → exchangeCode(...) → newTokenSet(...)。
|
|
379
387
|
*/
|
|
380
|
-
declare function completeWebAuthorizationRequest(pending: WebAuthorizationPending, params: WebAuthorizationCallbackParams, signal?: AbortSignal): Promise<TokenSet>;
|
|
381
|
-
declare function exchangeCode(meta: ServerMetadata, clientID: string, code: string, redirectURI: string, codeVerifier: string, signal?: AbortSignal): Promise<TokenResponse>;
|
|
388
|
+
declare function completeWebAuthorizationRequest(pending: WebAuthorizationPending, params: WebAuthorizationCallbackParams, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<TokenSet>;
|
|
389
|
+
declare function exchangeCode(meta: ServerMetadata, clientID: string, code: string, redirectURI: string, codeVerifier: string, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<TokenResponse>;
|
|
382
390
|
/** 刷新 access_token */
|
|
383
|
-
declare function refreshToken(meta: ServerMetadata, clientID: string, refreshTokenValue: string, signal?: AbortSignal): Promise<TokenResponse>;
|
|
391
|
+
declare function refreshToken(meta: ServerMetadata, clientID: string, refreshTokenValue: string, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<TokenResponse>;
|
|
384
392
|
/** 吊销 token. 服务端不支持吊销时静默跳过. */
|
|
385
|
-
declare function revokeToken(meta: ServerMetadata, token: string, signal?: AbortSignal): Promise<void>;
|
|
393
|
+
declare function revokeToken(meta: ServerMetadata, token: string, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<void>;
|
|
386
394
|
/**
|
|
387
395
|
* 从 TokenResponse 构造可持久化的 TokenSet
|
|
388
396
|
*
|
|
@@ -588,6 +596,23 @@ declare const DEFAULT_GATEWAY_BASE_URL = "https://acosmi.com";
|
|
|
588
596
|
* 都应在写入 Acosmi base 之前调用它一次,避免 ws/wss 误入 SDK API client。
|
|
589
597
|
*/
|
|
590
598
|
declare function normalizeGatewayBaseURL(input: unknown): string;
|
|
599
|
+
/**
|
|
600
|
+
* normalizeOverrideBaseURL — 校验并归一化 override base URL (complianceBaseURL / apiBaseURL)。
|
|
601
|
+
*
|
|
602
|
+
* 与 `normalizeGatewayBaseURL` 同级的健壮性校验, 但用于 compliance / 开放 API 的同源直连 base:
|
|
603
|
+
* 1. 必须是 string 且非空。
|
|
604
|
+
* 2. 必须可被 `new URL()` 解析, 且协议为 `http:` / `https:` (ws/wss 不允许)。
|
|
605
|
+
* 3. host 必须非空; 不允许 query / hash (override base 不带 query)。
|
|
606
|
+
* 4. 返回值去尾随 `/` (origin + pathname)。
|
|
607
|
+
*
|
|
608
|
+
* 注意: helper 只校验 base URL 合法性, 不强加路径后缀 — compliance 走 `/admin-api`、
|
|
609
|
+
* apiBaseURL 走 `/api/v4` 都由各自 `complianceURL()` / `apiURL()` 在 base 之上追加,
|
|
610
|
+
* base 本身不含这些子路径。
|
|
611
|
+
*
|
|
612
|
+
* @param raw 原始配置值
|
|
613
|
+
* @param label 出错信息里的字段名 (如 'complianceBaseURL')
|
|
614
|
+
*/
|
|
615
|
+
declare function normalizeOverrideBaseURL(raw: string, label: string): string;
|
|
591
616
|
/** 客户端配置 */
|
|
592
617
|
interface Config {
|
|
593
618
|
/**
|
|
@@ -685,6 +710,14 @@ type BrowserRefreshMode = 'direct' | 'server-proxy' | 'none';
|
|
|
685
710
|
declare const ErrOAuthCORSBlocked: "oauth_cors_blocked";
|
|
686
711
|
declare const ErrRefreshProxyFailed: "refresh_proxy_failed";
|
|
687
712
|
declare const ErrTokenExpired: "token_expired";
|
|
713
|
+
/**
|
|
714
|
+
* 非流式 JSON API 请求的默认超时 (毫秒)。
|
|
715
|
+
*
|
|
716
|
+
* 子 client (agent-runs / compliance) 的同步 JSON 调用未传 signal 时套用此上限,
|
|
717
|
+
* 避免上游 hang 导致 Promise 永不 settle。流式 (SSE) / 下载等长连接路径**不**套此超时,
|
|
718
|
+
* 以保留长连接语义。与 core doJSONFullInternal 的 30s 量级一致。
|
|
719
|
+
*/
|
|
720
|
+
declare const DEFAULT_API_TIMEOUT_MS = 60000;
|
|
688
721
|
interface Deferred<T> {
|
|
689
722
|
promise: Promise<T>;
|
|
690
723
|
resolve: (v: T) => void;
|
|
@@ -970,6 +1003,16 @@ declare class Client {
|
|
|
970
1003
|
* 不做 401 重试 (公共端点不应要求认证)
|
|
971
1004
|
*/
|
|
972
1005
|
doPublicJSON<T>(method: string, path: string, body: unknown | null, signal?: AbortSignal): Promise<T>;
|
|
1006
|
+
/**
|
|
1007
|
+
* 给子 client (agent-runs / compliance) 用的请求超时组合器。
|
|
1008
|
+
*
|
|
1009
|
+
* 返回一个 controller, 其 `signal` 同时受默认/指定超时与外部 `parent` signal 约束 —
|
|
1010
|
+
* 二者任一触发都会 abort (用户传入的 signal 仍然生效)。调用方**必须**在 finally 里
|
|
1011
|
+
* `dispose()` 清掉定时器与监听, 否则 timer 泄漏。
|
|
1012
|
+
*
|
|
1013
|
+
* 仅用于非流式 JSON 请求; 流式 (SSE) / 下载路径不应套短超时 (会切断长连接)。
|
|
1014
|
+
*/
|
|
1015
|
+
withRequestTimeout(ms: number, parent?: AbortSignal): ReqTimeoutCtl;
|
|
973
1016
|
/**
|
|
974
1017
|
* fetch 包装 — 错误经 classifyTransport 转 NetworkError
|
|
975
1018
|
* 6 处原始 fetch() 全部走此 helper
|
|
@@ -997,6 +1040,10 @@ declare class Client {
|
|
|
997
1040
|
body?: string;
|
|
998
1041
|
}, signal?: AbortSignal): Promise<Response>;
|
|
999
1042
|
}
|
|
1043
|
+
interface ReqTimeoutCtl {
|
|
1044
|
+
signal: AbortSignal;
|
|
1045
|
+
dispose(): void;
|
|
1046
|
+
}
|
|
1000
1047
|
|
|
1001
1048
|
declare module '@acosmi/sdk-ts' {
|
|
1002
1049
|
interface Client {
|
|
@@ -1720,7 +1767,8 @@ interface SkillStoreItem {
|
|
|
1720
1767
|
scope: string;
|
|
1721
1768
|
status: string;
|
|
1722
1769
|
downloadCount: number;
|
|
1723
|
-
readme
|
|
1770
|
+
readme?: string;
|
|
1771
|
+
skillMd?: string;
|
|
1724
1772
|
tags: string[];
|
|
1725
1773
|
author: string;
|
|
1726
1774
|
publisherId: string;
|
|
@@ -2384,6 +2432,7 @@ declare class AgentRunsClient {
|
|
|
2384
2432
|
private streamGen;
|
|
2385
2433
|
private requestAPI;
|
|
2386
2434
|
private requestRaw;
|
|
2435
|
+
private requestRawInner;
|
|
2387
2436
|
}
|
|
2388
2437
|
|
|
2389
2438
|
declare const ScopeComplianceEvidenceRead = "compliance:evidence:read";
|
|
@@ -3632,6 +3681,7 @@ declare class ComplianceClient {
|
|
|
3632
3681
|
*/
|
|
3633
3682
|
private write;
|
|
3634
3683
|
private executeJson;
|
|
3684
|
+
private executeJsonInner;
|
|
3635
3685
|
private poll;
|
|
3636
3686
|
}
|
|
3637
3687
|
|
|
@@ -4028,32 +4078,59 @@ interface LegalServiceSku {
|
|
|
4028
4078
|
|
|
4029
4079
|
declare module '@acosmi/sdk-ts' {
|
|
4030
4080
|
interface Client {
|
|
4031
|
-
/**
|
|
4081
|
+
/**
|
|
4082
|
+
* 列出已认证律师 (公开端点, 仅返回 VERIFIED + ACTIVE 状态; PII L3 字段已脱敏).
|
|
4083
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4084
|
+
*/
|
|
4032
4085
|
listLawyers(params?: {
|
|
4033
4086
|
practiceArea?: string;
|
|
4034
4087
|
location?: string;
|
|
4035
4088
|
pageNo?: number;
|
|
4036
4089
|
pageSize?: number;
|
|
4037
4090
|
}, signal?: AbortSignal): Promise<LawyerSummary[]>;
|
|
4038
|
-
/**
|
|
4091
|
+
/**
|
|
4092
|
+
* 获取律师公开详情 (脱敏)。
|
|
4093
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4094
|
+
*/
|
|
4039
4095
|
getLawyer(id: number, signal?: AbortSignal): Promise<LawyerSummary>;
|
|
4040
|
-
/**
|
|
4096
|
+
/**
|
|
4097
|
+
* 提交案件线索 (登录态)。
|
|
4098
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4099
|
+
*/
|
|
4041
4100
|
submitCaseLead(req: SubmitCaseLeadRequest, signal?: AbortSignal): Promise<{
|
|
4042
4101
|
id: number;
|
|
4043
4102
|
}>;
|
|
4044
|
-
/**
|
|
4103
|
+
/**
|
|
4104
|
+
* 我的案件线索列表。
|
|
4105
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4106
|
+
*/
|
|
4045
4107
|
listMyCaseLeads(signal?: AbortSignal): Promise<CaseLead[]>;
|
|
4046
|
-
/**
|
|
4108
|
+
/**
|
|
4109
|
+
* 我的案件列表 (委托后)。
|
|
4110
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4111
|
+
*/
|
|
4047
4112
|
getMyCases(signal?: AbortSignal): Promise<CaseMatter[]>;
|
|
4048
|
-
/**
|
|
4113
|
+
/**
|
|
4114
|
+
* 预约法律咨询 (skuCode 必填; lawyerId 可选, 留空走 AI 推荐池)。
|
|
4115
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4116
|
+
*/
|
|
4049
4117
|
bookConsultation(req: BookConsultationRequest, signal?: AbortSignal): Promise<{
|
|
4050
4118
|
consultationId: number;
|
|
4051
4119
|
}>;
|
|
4052
|
-
/**
|
|
4120
|
+
/**
|
|
4121
|
+
* 我的咨询单列表。
|
|
4122
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4123
|
+
*/
|
|
4053
4124
|
listMyConsultations(signal?: AbortSignal): Promise<LegalConsultation[]>;
|
|
4054
|
-
/**
|
|
4125
|
+
/**
|
|
4126
|
+
* 我的法律服务订单列表。
|
|
4127
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4128
|
+
*/
|
|
4055
4129
|
listMyLegalOrders(signal?: AbortSignal): Promise<LegalServiceOrder[]>;
|
|
4056
|
-
/**
|
|
4130
|
+
/**
|
|
4131
|
+
* 列出公开的 LEGAL_SERVICE SKU (匿名可调用, 复用 dist_compliance_sku benefit_type='LEGAL_SERVICE')。
|
|
4132
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4133
|
+
*/
|
|
4057
4134
|
listLegalSKUs(region?: string, signal?: AbortSignal): Promise<LegalServiceSku[]>;
|
|
4058
4135
|
/**
|
|
4059
4136
|
* 律师自查执业证审核状态 — 返回登录用户作为律师身份提交的所有 credential 列表.
|
|
@@ -4620,4 +4697,4 @@ declare function isChannelInboundEvent(v: unknown): v is ChannelInboundEvent;
|
|
|
4620
4697
|
*/
|
|
4621
4698
|
declare function asCredentialRef(s: string): CredentialRef;
|
|
4622
4699
|
|
|
4623
|
-
export { ALL_INTEGRATION_STATUS, ALL_PLATFORMS, ALL_REGIONS, type APIResponse, type AdapterKind, type AgentRun, type AgentRunArtifact, type AgentRunArtifactList, type AgentRunArtifactPolicy, type AgentRunCreateRequest, type AgentRunCreateResponse, type AgentRunDownload, type AgentRunErrorPayload, type AgentRunLocalContextPolicy, type AgentRunLocalToolHandler, type AgentRunLocalToolHandlerContext, type AgentRunLocalToolResult, type AgentRunRemoteCreateRequest, type AgentRunRunOptions, type AgentRunRuntime, type AgentRunSettlement, type AgentRunStatus, AgentRunStreamError, type AgentRunStreamEvent, type AgentRunStreamOptions, type AgentRunUsage, type AgentRunWithLocalToolsOptions, AgentRunsClient, AnthropicResponse, type ApiClientRef, type ApproveSealApprovalQuery, type AssignSeatRequest, type Audience, AudienceEnum, type AuthorizeResult, type BalanceDetail, type BillingMode, BillingModeEnum, type BillingPreflightResult, type BlockMeta, type BookConsultationRequest, type BridgeThreadRef, type BrowserRefreshMode, type BugReportResult, type BugView, BusinessError, type CancelSealApprovalQuery, type CaseLead, type CaseMatter, type CertificationStatus, type ChannelAttachment, type ChannelCard, type ChannelCardAction, type ChannelInboundEvent, type ChannelOutboundEvent, type ChatBridgeSession, type ChatCredentialPublic, type ChatIntegration, ChatRequest, ChatResponse, type ChatThread, Client, type ClientRegistration, type ComplianceAssetType, type ComplianceBenefitType, type ComplianceBillingDisplayStatus, type ComplianceCapability, ComplianceClient, type ComplianceClientErrorCode, type ComplianceDigestSource, type ComplianceEnvelopeStatus, type ComplianceErrorInfo, type ComplianceErrorKey, type ComplianceHashAlgorithm, CompliancePollError, type CompliancePollOptions, type CompliancePrivacyLevel, type ComplianceProviderRequestStatus, type ComplianceProviderStatus, type ComplianceQuoteResponse, type ComplianceReport, type ComplianceScope, type ComplianceSealApprovalStatus, type ComplianceSku, type ComplianceTimestampVerificationStatus, type ComplianceWriteOptions, type Config, type ConsumeRecord, type ConsumeRecordPage, type ContractTemplateField, type ContractTemplateFieldType, type ContractTemplatePageItem, type ContractTemplateResp, type ContractTemplateStatus, type ContractTemplateVersion, type CorporateTransfer, type CreateContractTemplateRequest, type CreateEvidenceAssetRequest, type CreateH5SigningUrlRequest, type CreateReportRequest, type CreateSigningEnvelopeRequest, type CreateWebAuthorizationRequestOptions, type CredentialRef, DEFAULT_GATEWAY_BASE_URL, DefaultRetryPolicy, type DeviceRegistration, type EnterpriseKycMyStatusView, type EnterpriseMember, type EnterpriseSummary, type EntitlementBalance, type EntitlementItem, type EnvelopeContractItem, ErrAuthDenied, ErrBillingCallbackCannotCommit, ErrBillingCommitRequiresLocalVerify, ErrBillingS2sForbidden, ErrBrowserOpen, ErrComplianceStepUpRequired, ErrDiscovery, ErrEnvelopeGateClosed, ErrOAuthCORSBlocked, ErrProviderNotConfigured, ErrProviderUnknownNoRetry, ErrRefreshProxyFailed, ErrRegistration, ErrSSLProxy, ErrSealApprovalContractHashMismatch, ErrSealApprovalExpired, ErrSealApprovalLocationMismatch, ErrSealApprovalNonceUsed, ErrSealApprovalNotApproved, ErrSealApprovalSealMismatch, ErrSealApprovalTransactorMismatch, ErrSealUseAlreadyConsumed, ErrStateMismatch, ErrTimeout, ErrTokenExchange, ErrTokenExpired, EventAuthURL, EventComplete, EventError, type EvidenceAsset, type EvidenceAssetPageItem, type EvidencePackage, type EvidencePackagePageItem, type FeatureGateState, type FeatureGateStatus, FileTokenStore, type FilterStatus, FilterStatusAdminBypass, FilterStatusDisabledByFlag, FilterStatusFallbackMissingUser, FilterStatusFallbackNoBuckets, FilterStatusFallbackTkdistError, FilterStatusFallbackTkdistSkew, FilterStatusInternalBypass, FilterStatusOK, FilterStatusUnknown, type GateQuota, type GenerateSkillRequest, type GenerateSkillResult, HTTPError, type IdempotencyKey, IdempotencyKeyHeader, ImageGenerationRequest, ImageGenerationResponse, InMemoryTokenStore, type InitiateCorporateTransferInput, type InitiateCorporateTransferResult, InputModality, type IntegrationStatus, type InviteMemberRequest, type Invoice, type IssueTimestampRequest, type LawyerCredentialMyView, type LawyerSummary, type LegalConsultation, type LegalServiceOrder, type LegalServiceSku, type LegalSkuCode, type ListContractTemplatesRequest, type ListEvidenceAssetsRequest, type ListEvidencePackagesRequest, type ListOperationsRequest, type ListReportsRequest, type ListSealApprovalsRequest, type ListSealUsesRequest, type ListSigningEnvelopesRequest, type ListTimestampsRequest, LocalStorageTokenStore, type LoginErrCode, type LoginEvent, type LoginEventType, type LoginOptions, ManagedModel, type ModelBucket, type ModelByQuotaResponse, ModelCapabilities, type ModelCoefficient, ModelNotFoundError, NetworkError, type Notification, type NotificationList, type NotificationPreference, type NotificationUnreadCount, type OAuthMetadataProfile, OAuthTokenEndpointError, type OpenAIChatChoice, type OpenAIChatMessage, type OpenAIChatResponse, type OpenAIFunctionCall, type OpenAIStreamChoice, type OpenAIStreamChunk, type OpenAIStreamDelta, type OpenAIStreamToolCall, type OpenAIToolCall, type OpenAIUsage, type OperationDetail, type OperationId, type OperationPageItem, type OperationSource, type OperationStatus, type OptimizeSkillRequest, type OptimizeSkillResult, type Order, type OrderStatus, OrderTerminalError, type OrgConsumeReport, type OrgSeat, type OrgSubscription, type PageRequest, type PageResult, type PayPayload, type PermissionPolicy, type Platform, type PricingConfig, type PrincipalRef, type Product, type ProductFamily, ProductFamilyEnum, ProviderAdapter, type ProviderRequestStatus, type ProviderRequestStatusView, type PublicEvidenceVerifyResult, type PublicModelSummary, QuotaSummary, RETRY_ADVICE_REASONS, RateLimitError, type RefundPolicy, type RefundRecord, type Region, type RegionScope, RegionScopeEnum, type RegisterWebOAuthClientOptions, type RejectSealApprovalQuery, type RemoteControlDone, type RemoteControlError, type RemoteControlEvent, type RemoteControlEventType, type RemoteControlPermissionRequest, type RemoteControlPermissionResult, type RemoteControlReasoningDelta, type RemoteControlSettle, type RemoteControlStatus, type RemoteControlTextDelta, type RemoteControlToolCall, type RemoteControlToolResult, type RemoteControlUsage, type RemoteSessionPlacement, type RemoteSessionRef, type ReportDownload, type ReportPageItem, type RequestInvoiceInput, type RequestRefundInput, type RetryAdvice, type RetryAdviceReason, type RetryPolicy, type RetryRequestInfo, type RolloverPolicy, type RunnerKind, ScopeAI, ScopeAccount, ScopeComplianceContractSigningRead, ScopeComplianceContractSigningWrite, ScopeComplianceContractTemplateRead, ScopeComplianceContractTemplateWrite, ScopeComplianceEvidenceRead, ScopeComplianceEvidenceWrite, ScopeComplianceReportsPublish, ScopeComplianceReportsRead, ScopeComplianceReportsWrite, ScopeComplianceSealApprovalApprove, ScopeComplianceSealApprovalRequest, ScopeComplianceSealManage, ScopeComplianceSealUseExecute, ScopeComplianceTimestampIssue, ScopeComplianceTimestampVerify, ScopeEntitlements, ScopeModels, ScopeModelsChat, ScopeProfile, ScopeRemoteControl, ScopeRemoteControlAgentRun, ScopeRemoteControlPermissionResponse, ScopeRemoteControlSessionControl, ScopeSkillStore, ScopeSkills, ScopeTokenPackages, ScopeTools, ScopeToolsExecute, ScopeWallet, ScopeWalletReadonly, type SealApproval, type SealApprovalPageItem, type SealUsePageItem, type ServerMetadata, type SignEnvelopeRequest, type SigningEnvelope, type SigningEnvelopePageItem, type SkillBrowseListResponse, type SkillBrowseResponse, type SkillStoreItem, type SkillStoreListItem, type SkillStoreQuery, type SkillSummary, type SortDirection, SourcesEvent, type StepUpStatus, StreamError, StreamEvent, StreamSettlement, type SubmitCaseLeadRequest, type SubmitSealApprovalRequest, type SubscriptionAudience, type SubscriptionPlan, type TenantRef, type TimestampPageItem, type TimestampToken, type TimestampVerifyResult, type TokenPackage, type TokenResponse, type TokenSet, type TokenStore, type ToolListResponse, type ToolProvider, type ToolView, type Transaction, type TsaProvider, type TsaStats, type UpdateContractTemplateRequest, type UploadContractTemplatePdfRequest, type UserSubscription, type VerifyStatus, type VerifyTimestampRequest, VideoGenerationRequest, VideoTaskResponse, type VoidEnvelopeRequest, type WSConfig, type WSEvent, type WalletStats, type WebAuthorizationCallbackParams, type WebAuthorizationPending, type WebAuthorizationRequest, type WorkspacePolicy, type YudaoPageResult, allScopes, apiResponseBusinessError, apiResponseGetMessage, asCredentialRef, authorize, buildBetas, classifyComplianceError, commerceScopes, completeWebAuthorizationRequest, complianceErrorToRetryAdvice, complianceScopes, computeBackoff, createWebAuthorizationRequest, defaultRetryable, defaultSafeToRetry, discover, discoverWebOAuthMetadata, discoverWithProfile, effectivePolicy, exchangeCode, extractAnthropicBlockMeta, fileLockDefaults, findDesktopVisualUnderstandingModel, findFirstModelByInputModality, generateState, isBillingConfirmable, isChannelInboundEvent, isComplianceBusinessError, isComplianceTerminalError, isIntegrationStatus, isInvalidGrantError, isPlatform, isRegion, isSSECommentLine, isSSLError, isTerminalRemoteEvent, maxEndUserIdLength, modelScopes, modelSupportsImageInput, modelSupportsInputModality, newFileTokenStore, newTokenSet, normalizeGatewayBaseURL, parseNotificationEvent, parseRemoteControlEvent, refreshToken, register, registerWebOAuthClient, remoteControlScopes, retryReasonForComplianceKey, retryReasonForOAuthError, revokeToken, skillScopes, tokenSetIsExpired, uniqueMerge, validateEndUserId };
|
|
4700
|
+
export { ALL_INTEGRATION_STATUS, ALL_PLATFORMS, ALL_REGIONS, type APIResponse, type AdapterKind, type AgentRun, type AgentRunArtifact, type AgentRunArtifactList, type AgentRunArtifactPolicy, type AgentRunCreateRequest, type AgentRunCreateResponse, type AgentRunDownload, type AgentRunErrorPayload, type AgentRunLocalContextPolicy, type AgentRunLocalToolHandler, type AgentRunLocalToolHandlerContext, type AgentRunLocalToolResult, type AgentRunRemoteCreateRequest, type AgentRunRunOptions, type AgentRunRuntime, type AgentRunSettlement, type AgentRunStatus, AgentRunStreamError, type AgentRunStreamEvent, type AgentRunStreamOptions, type AgentRunUsage, type AgentRunWithLocalToolsOptions, AgentRunsClient, AnthropicResponse, type ApiClientRef, type ApproveSealApprovalQuery, type AssignSeatRequest, type Audience, AudienceEnum, type AuthorizeResult, type BalanceDetail, type BillingMode, BillingModeEnum, type BillingPreflightResult, type BlockMeta, type BookConsultationRequest, type BridgeThreadRef, type BrowserRefreshMode, type BugReportResult, type BugView, BusinessError, type CancelSealApprovalQuery, type CaseLead, type CaseMatter, type CertificationStatus, type ChannelAttachment, type ChannelCard, type ChannelCardAction, type ChannelInboundEvent, type ChannelOutboundEvent, type ChatBridgeSession, type ChatCredentialPublic, type ChatIntegration, ChatRequest, ChatResponse, type ChatThread, Client, type ClientRegistration, type ComplianceAssetType, type ComplianceBenefitType, type ComplianceBillingDisplayStatus, type ComplianceCapability, ComplianceClient, type ComplianceClientErrorCode, type ComplianceDigestSource, type ComplianceEnvelopeStatus, type ComplianceErrorInfo, type ComplianceErrorKey, type ComplianceHashAlgorithm, CompliancePollError, type CompliancePollOptions, type CompliancePrivacyLevel, type ComplianceProviderRequestStatus, type ComplianceProviderStatus, type ComplianceQuoteResponse, type ComplianceReport, type ComplianceScope, type ComplianceSealApprovalStatus, type ComplianceSku, type ComplianceTimestampVerificationStatus, type ComplianceWriteOptions, type Config, type ConsumeRecord, type ConsumeRecordPage, type ContractTemplateField, type ContractTemplateFieldType, type ContractTemplatePageItem, type ContractTemplateResp, type ContractTemplateStatus, type ContractTemplateVersion, type CorporateTransfer, type CreateContractTemplateRequest, type CreateEvidenceAssetRequest, type CreateH5SigningUrlRequest, type CreateReportRequest, type CreateSigningEnvelopeRequest, type CreateWebAuthorizationRequestOptions, type CredentialRef, DEFAULT_API_TIMEOUT_MS, DEFAULT_GATEWAY_BASE_URL, DefaultRetryPolicy, type DeviceRegistration, type EnterpriseKycMyStatusView, type EnterpriseMember, type EnterpriseSummary, type EntitlementBalance, type EntitlementItem, type EnvelopeContractItem, ErrAuthDenied, ErrBillingCallbackCannotCommit, ErrBillingCommitRequiresLocalVerify, ErrBillingS2sForbidden, ErrBrowserOpen, ErrComplianceStepUpRequired, ErrDiscovery, ErrEnvelopeGateClosed, ErrOAuthCORSBlocked, ErrProviderNotConfigured, ErrProviderUnknownNoRetry, ErrRefreshProxyFailed, ErrRegistration, ErrSSLProxy, ErrSealApprovalContractHashMismatch, ErrSealApprovalExpired, ErrSealApprovalLocationMismatch, ErrSealApprovalNonceUsed, ErrSealApprovalNotApproved, ErrSealApprovalSealMismatch, ErrSealApprovalTransactorMismatch, ErrSealUseAlreadyConsumed, ErrStateMismatch, ErrTimeout, ErrTokenExchange, ErrTokenExpired, EventAuthURL, EventComplete, EventError, type EvidenceAsset, type EvidenceAssetPageItem, type EvidencePackage, type EvidencePackagePageItem, type FeatureGateState, type FeatureGateStatus, FileTokenStore, type FilterStatus, FilterStatusAdminBypass, FilterStatusDisabledByFlag, FilterStatusFallbackMissingUser, FilterStatusFallbackNoBuckets, FilterStatusFallbackTkdistError, FilterStatusFallbackTkdistSkew, FilterStatusInternalBypass, FilterStatusOK, FilterStatusUnknown, type GateQuota, type GenerateSkillRequest, type GenerateSkillResult, HTTPError, type IdempotencyKey, IdempotencyKeyHeader, ImageGenerationRequest, ImageGenerationResponse, InMemoryTokenStore, type InitiateCorporateTransferInput, type InitiateCorporateTransferResult, InputModality, type IntegrationStatus, type InviteMemberRequest, type Invoice, type IssueTimestampRequest, type LawyerCredentialMyView, type LawyerSummary, type LegalConsultation, type LegalServiceOrder, type LegalServiceSku, type LegalSkuCode, type ListContractTemplatesRequest, type ListEvidenceAssetsRequest, type ListEvidencePackagesRequest, type ListOperationsRequest, type ListReportsRequest, type ListSealApprovalsRequest, type ListSealUsesRequest, type ListSigningEnvelopesRequest, type ListTimestampsRequest, LocalStorageTokenStore, type LoginErrCode, type LoginEvent, type LoginEventType, type LoginOptions, ManagedModel, type ModelBucket, type ModelByQuotaResponse, ModelCapabilities, type ModelCoefficient, ModelNotFoundError, NetworkError, type Notification, type NotificationList, type NotificationPreference, type NotificationUnreadCount, type OAuthMetadataProfile, OAuthTokenEndpointError, type OpenAIChatChoice, type OpenAIChatMessage, type OpenAIChatResponse, type OpenAIFunctionCall, type OpenAIStreamChoice, type OpenAIStreamChunk, type OpenAIStreamDelta, type OpenAIStreamToolCall, type OpenAIToolCall, type OpenAIUsage, type OperationDetail, type OperationId, type OperationPageItem, type OperationSource, type OperationStatus, type OptimizeSkillRequest, type OptimizeSkillResult, type Order, type OrderStatus, OrderTerminalError, type OrgConsumeReport, type OrgSeat, type OrgSubscription, type PageRequest, type PageResult, type PayPayload, type PermissionPolicy, type Platform, type PricingConfig, type PrincipalRef, type Product, type ProductFamily, ProductFamilyEnum, ProviderAdapter, type ProviderRequestStatus, type ProviderRequestStatusView, type PublicEvidenceVerifyResult, type PublicModelSummary, QuotaSummary, RETRY_ADVICE_REASONS, RateLimitError, type RefundPolicy, type RefundRecord, type Region, type RegionScope, RegionScopeEnum, type RegisterWebOAuthClientOptions, type RejectSealApprovalQuery, type RemoteControlDone, type RemoteControlError, type RemoteControlEvent, type RemoteControlEventType, type RemoteControlPermissionRequest, type RemoteControlPermissionResult, type RemoteControlReasoningDelta, type RemoteControlSettle, type RemoteControlStatus, type RemoteControlTextDelta, type RemoteControlToolCall, type RemoteControlToolResult, type RemoteControlUsage, type RemoteSessionPlacement, type RemoteSessionRef, type ReportDownload, type ReportPageItem, type ReqTimeoutCtl, type RequestInvoiceInput, type RequestRefundInput, type RetryAdvice, type RetryAdviceReason, type RetryPolicy, type RetryRequestInfo, type RolloverPolicy, type RunnerKind, ScopeAI, ScopeAccount, ScopeComplianceContractSigningRead, ScopeComplianceContractSigningWrite, ScopeComplianceContractTemplateRead, ScopeComplianceContractTemplateWrite, ScopeComplianceEvidenceRead, ScopeComplianceEvidenceWrite, ScopeComplianceReportsPublish, ScopeComplianceReportsRead, ScopeComplianceReportsWrite, ScopeComplianceSealApprovalApprove, ScopeComplianceSealApprovalRequest, ScopeComplianceSealManage, ScopeComplianceSealUseExecute, ScopeComplianceTimestampIssue, ScopeComplianceTimestampVerify, ScopeEntitlements, ScopeModels, ScopeModelsChat, ScopeProfile, ScopeRemoteControl, ScopeRemoteControlAgentRun, ScopeRemoteControlPermissionResponse, ScopeRemoteControlSessionControl, ScopeSkillStore, ScopeSkills, ScopeTokenPackages, ScopeTools, ScopeToolsExecute, ScopeWallet, ScopeWalletReadonly, type SealApproval, type SealApprovalPageItem, type SealUsePageItem, type ServerMetadata, type SignEnvelopeRequest, type SigningEnvelope, type SigningEnvelopePageItem, type SkillBrowseListResponse, type SkillBrowseResponse, type SkillStoreItem, type SkillStoreListItem, type SkillStoreQuery, type SkillSummary, type SortDirection, SourcesEvent, type StepUpStatus, StreamError, StreamEvent, StreamSettlement, type SubmitCaseLeadRequest, type SubmitSealApprovalRequest, type SubscriptionAudience, type SubscriptionPlan, type TenantRef, type TimestampPageItem, type TimestampToken, type TimestampVerifyResult, type TokenPackage, type TokenResponse, type TokenSet, type TokenStore, type ToolListResponse, type ToolProvider, type ToolView, type Transaction, type TsaProvider, type TsaStats, type UpdateContractTemplateRequest, type UploadContractTemplatePdfRequest, type UserSubscription, type VerifyStatus, type VerifyTimestampRequest, VideoGenerationRequest, VideoTaskResponse, type VoidEnvelopeRequest, type WSConfig, type WSEvent, type WalletStats, type WebAuthorizationCallbackParams, type WebAuthorizationPending, type WebAuthorizationRequest, type WorkspacePolicy, type YudaoPageResult, allScopes, apiResponseBusinessError, apiResponseGetMessage, asCredentialRef, authorize, buildBetas, classifyComplianceError, commerceScopes, completeWebAuthorizationRequest, complianceErrorToRetryAdvice, complianceScopes, computeBackoff, createWebAuthorizationRequest, defaultRetryable, defaultSafeToRetry, discover, discoverWebOAuthMetadata, discoverWithProfile, effectivePolicy, exchangeCode, extractAnthropicBlockMeta, fileLockDefaults, findDesktopVisualUnderstandingModel, findFirstModelByInputModality, generateState, isBillingConfirmable, isChannelInboundEvent, isComplianceBusinessError, isComplianceTerminalError, isIntegrationStatus, isInvalidGrantError, isPlatform, isRegion, isSSECommentLine, isSSLError, isTerminalRemoteEvent, isValidTokenSet, maxEndUserIdLength, modelScopes, modelSupportsImageInput, modelSupportsInputModality, newFileTokenStore, newTokenSet, normalizeGatewayBaseURL, normalizeOverrideBaseURL, parseNotificationEvent, parseRemoteControlEvent, refreshToken, register, registerWebOAuthClient, remoteControlScopes, retryReasonForComplianceKey, retryReasonForOAuthError, revokeToken, skillScopes, tokenSetIsExpired, uniqueMerge, validateEndUserId };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as AnthropicResponse } from './openai-
|
|
2
|
-
export { A as AnthropicContentBlock, b as AnthropicUsage, O as OpenAIAdapter, d as anthropicResponseTextContent, e as anthropicResponseThinkingContent, f as anthropicResponseToolUseBlocks } from './openai-
|
|
3
|
-
import { M as ManagedModel, Q as QuotaSummary, j as ModelCapabilities, e as ChatRequest, P as ProviderAdapter, f as ChatResponse, I as ImageGenerationRequest, h as ImageGenerationResponse, V as VideoGenerationRequest, u as VideoTaskResponse, n as StreamEvent, m as SourcesEvent, o as StreamSettlement, i as InputModality } from './index-
|
|
4
|
-
export { B as BucketClassCommercial, a as BucketClassGeneric, b as BucketInfo, c as BucketRow, C as ChatContentBlock, d as ChatMessage, g as ChatUsage, E as EffortConfig, G as GeoLoc, O as OutputConfig, k as ProviderFormat, S as ServerTool, l as ServerToolTypeWebSearch, T as ThinkingConfig, p as ThinkingHigh, q as ThinkingHighMinMaxTokens, r as ThinkingMax, s as ThinkingMaxFallbackMaxTokens, t as ThinkingOff, W as WebSearchConfig, v as WebSearchSource, w as bucketInfoIsCommercial, x as bucketRowIsCommercial, y as getAdapter, z as getAdapterForModel, A as newThinkingConfig, D as newWebSearchTool, F as parseSettlement, H as parseSourcesEvent } from './index-
|
|
1
|
+
import { a as AnthropicResponse } from './openai-C3DcaljC.js';
|
|
2
|
+
export { A as AnthropicContentBlock, b as AnthropicUsage, O as OpenAIAdapter, d as anthropicResponseTextContent, e as anthropicResponseThinkingContent, f as anthropicResponseToolUseBlocks } from './openai-C3DcaljC.js';
|
|
3
|
+
import { M as ManagedModel, Q as QuotaSummary, j as ModelCapabilities, e as ChatRequest, P as ProviderAdapter, f as ChatResponse, I as ImageGenerationRequest, h as ImageGenerationResponse, V as VideoGenerationRequest, u as VideoTaskResponse, n as StreamEvent, m as SourcesEvent, o as StreamSettlement, i as InputModality } from './index-BdzF9tmA.js';
|
|
4
|
+
export { B as BucketClassCommercial, a as BucketClassGeneric, b as BucketInfo, c as BucketRow, C as ChatContentBlock, d as ChatMessage, g as ChatUsage, E as EffortConfig, G as GeoLoc, O as OutputConfig, k as ProviderFormat, S as ServerTool, l as ServerToolTypeWebSearch, T as ThinkingConfig, p as ThinkingHigh, q as ThinkingHighMinMaxTokens, r as ThinkingMax, s as ThinkingMaxFallbackMaxTokens, t as ThinkingOff, W as WebSearchConfig, v as WebSearchSource, w as bucketInfoIsCommercial, x as bucketRowIsCommercial, y as getAdapter, z as getAdapterForModel, A as newThinkingConfig, D as newWebSearchTool, F as parseSettlement, H as parseSourcesEvent } from './index-BdzF9tmA.js';
|
|
5
5
|
import { M as MinimalSanitizeConfig } from './index-Bah9A83R.js';
|
|
6
6
|
export { A as sanitize } from './index-Bah9A83R.js';
|
|
7
7
|
export { AnthropicAdapter } from './adapters/anthropic.js';
|
|
@@ -178,6 +178,14 @@ interface TokenSet {
|
|
|
178
178
|
}
|
|
179
179
|
/** token 是否已过期 (提前 30 秒视为过期) */
|
|
180
180
|
declare function tokenSetIsExpired(t: TokenSet): boolean;
|
|
181
|
+
/**
|
|
182
|
+
* 运行时校验任意值是否为合法 TokenSet 形状 (所有字段都是 string)。
|
|
183
|
+
*
|
|
184
|
+
* store 反序列化磁盘 / localStorage 的 JSON 后必须经此校验:
|
|
185
|
+
* 损坏文件、旧版本残留、缺字段都会被判为无效, 由 caller 当作"无 token"重新登录,
|
|
186
|
+
* 而不是把 `{}` / 缺字段对象直接 cast 成 TokenSet 后在 refresh 阶段炸出难懂的错误。
|
|
187
|
+
*/
|
|
188
|
+
declare function isValidTokenSet(x: unknown): x is TokenSet;
|
|
181
189
|
/** 动态注册响应 */
|
|
182
190
|
interface ClientRegistration {
|
|
183
191
|
client_id: string;
|
|
@@ -203,7 +211,7 @@ type OAuthMetadataProfile = 'web' | 'desktop';
|
|
|
203
211
|
* profile='desktop' 对应桌面 loopback OAuth;profile='web' 对应浏览器 Web OAuth。
|
|
204
212
|
* 内部 helper — `discover` / `discoverWebOAuthMetadata` 是其薄包装。
|
|
205
213
|
*/
|
|
206
|
-
declare function discoverWithProfile(serverURL: string, profile: OAuthMetadataProfile, signal?: AbortSignal): Promise<ServerMetadata>;
|
|
214
|
+
declare function discoverWithProfile(serverURL: string, profile: OAuthMetadataProfile, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<ServerMetadata>;
|
|
207
215
|
/**
|
|
208
216
|
* 从 well-known 端点获取 Desktop OAuth 服务元数据。
|
|
209
217
|
*
|
|
@@ -211,7 +219,7 @@ declare function discoverWithProfile(serverURL: string, profile: OAuthMetadataPr
|
|
|
211
219
|
* well-known 端点按 RFC 8414 必须在 origin 根路径:
|
|
212
220
|
* https://acosmi.ai/.well-known/oauth-authorization-server/desktop
|
|
213
221
|
*/
|
|
214
|
-
declare function discover(serverURL: string, signal?: AbortSignal): Promise<ServerMetadata>;
|
|
222
|
+
declare function discover(serverURL: string, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<ServerMetadata>;
|
|
215
223
|
/**
|
|
216
224
|
* 从 well-known 端点获取 Web OAuth 服务元数据。
|
|
217
225
|
*
|
|
@@ -222,9 +230,9 @@ declare function discover(serverURL: string, signal?: AbortSignal): Promise<Serv
|
|
|
222
230
|
* 它返回 Web authorize/token 端点; `discover` 的 desktop profile 返回的是
|
|
223
231
|
* 桌面 loopback 端点, 不可混用。
|
|
224
232
|
*/
|
|
225
|
-
declare function discoverWebOAuthMetadata(serverURL: string, signal?: AbortSignal): Promise<ServerMetadata>;
|
|
233
|
+
declare function discoverWebOAuthMetadata(serverURL: string, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<ServerMetadata>;
|
|
226
234
|
/** 动态注册桌面客户端,获取 client_id */
|
|
227
|
-
declare function register(meta: ServerMetadata, appName: string, signal?: AbortSignal): Promise<ClientRegistration>;
|
|
235
|
+
declare function register(meta: ServerMetadata, appName: string, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<ClientRegistration>;
|
|
228
236
|
/** Web OAuth 动态注册参数 */
|
|
229
237
|
interface RegisterWebOAuthClientOptions {
|
|
230
238
|
/** 客户端展示名 (RFC 7591 client_name) */
|
|
@@ -241,7 +249,7 @@ interface RegisterWebOAuthClientOptions {
|
|
|
241
249
|
* 本函数允许传入任意 Web redirect_uri,供 csign 等第一方 Web 应用使用。
|
|
242
250
|
* `token_endpoint_auth_method` 仍为 `none` (PKCE public client)。
|
|
243
251
|
*/
|
|
244
|
-
declare function registerWebOAuthClient(meta: ServerMetadata, opts: RegisterWebOAuthClientOptions, signal?: AbortSignal): Promise<ClientRegistration>;
|
|
252
|
+
declare function registerWebOAuthClient(meta: ServerMetadata, opts: RegisterWebOAuthClientOptions, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<ClientRegistration>;
|
|
245
253
|
/**
|
|
246
254
|
* 生成 OAuth `state` 参数 — 32 字节加密随机数, base64url 无填充。
|
|
247
255
|
*
|
|
@@ -377,12 +385,12 @@ interface WebAuthorizationCallbackParams {
|
|
|
377
385
|
* state 不匹配时抛错 (CSRF 防护)。内部依次:
|
|
378
386
|
* discoverWebOAuthMetadata(pending.serverURL) → exchangeCode(...) → newTokenSet(...)。
|
|
379
387
|
*/
|
|
380
|
-
declare function completeWebAuthorizationRequest(pending: WebAuthorizationPending, params: WebAuthorizationCallbackParams, signal?: AbortSignal): Promise<TokenSet>;
|
|
381
|
-
declare function exchangeCode(meta: ServerMetadata, clientID: string, code: string, redirectURI: string, codeVerifier: string, signal?: AbortSignal): Promise<TokenResponse>;
|
|
388
|
+
declare function completeWebAuthorizationRequest(pending: WebAuthorizationPending, params: WebAuthorizationCallbackParams, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<TokenSet>;
|
|
389
|
+
declare function exchangeCode(meta: ServerMetadata, clientID: string, code: string, redirectURI: string, codeVerifier: string, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<TokenResponse>;
|
|
382
390
|
/** 刷新 access_token */
|
|
383
|
-
declare function refreshToken(meta: ServerMetadata, clientID: string, refreshTokenValue: string, signal?: AbortSignal): Promise<TokenResponse>;
|
|
391
|
+
declare function refreshToken(meta: ServerMetadata, clientID: string, refreshTokenValue: string, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<TokenResponse>;
|
|
384
392
|
/** 吊销 token. 服务端不支持吊销时静默跳过. */
|
|
385
|
-
declare function revokeToken(meta: ServerMetadata, token: string, signal?: AbortSignal): Promise<void>;
|
|
393
|
+
declare function revokeToken(meta: ServerMetadata, token: string, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<void>;
|
|
386
394
|
/**
|
|
387
395
|
* 从 TokenResponse 构造可持久化的 TokenSet
|
|
388
396
|
*
|
|
@@ -588,6 +596,23 @@ declare const DEFAULT_GATEWAY_BASE_URL = "https://acosmi.com";
|
|
|
588
596
|
* 都应在写入 Acosmi base 之前调用它一次,避免 ws/wss 误入 SDK API client。
|
|
589
597
|
*/
|
|
590
598
|
declare function normalizeGatewayBaseURL(input: unknown): string;
|
|
599
|
+
/**
|
|
600
|
+
* normalizeOverrideBaseURL — 校验并归一化 override base URL (complianceBaseURL / apiBaseURL)。
|
|
601
|
+
*
|
|
602
|
+
* 与 `normalizeGatewayBaseURL` 同级的健壮性校验, 但用于 compliance / 开放 API 的同源直连 base:
|
|
603
|
+
* 1. 必须是 string 且非空。
|
|
604
|
+
* 2. 必须可被 `new URL()` 解析, 且协议为 `http:` / `https:` (ws/wss 不允许)。
|
|
605
|
+
* 3. host 必须非空; 不允许 query / hash (override base 不带 query)。
|
|
606
|
+
* 4. 返回值去尾随 `/` (origin + pathname)。
|
|
607
|
+
*
|
|
608
|
+
* 注意: helper 只校验 base URL 合法性, 不强加路径后缀 — compliance 走 `/admin-api`、
|
|
609
|
+
* apiBaseURL 走 `/api/v4` 都由各自 `complianceURL()` / `apiURL()` 在 base 之上追加,
|
|
610
|
+
* base 本身不含这些子路径。
|
|
611
|
+
*
|
|
612
|
+
* @param raw 原始配置值
|
|
613
|
+
* @param label 出错信息里的字段名 (如 'complianceBaseURL')
|
|
614
|
+
*/
|
|
615
|
+
declare function normalizeOverrideBaseURL(raw: string, label: string): string;
|
|
591
616
|
/** 客户端配置 */
|
|
592
617
|
interface Config {
|
|
593
618
|
/**
|
|
@@ -685,6 +710,14 @@ type BrowserRefreshMode = 'direct' | 'server-proxy' | 'none';
|
|
|
685
710
|
declare const ErrOAuthCORSBlocked: "oauth_cors_blocked";
|
|
686
711
|
declare const ErrRefreshProxyFailed: "refresh_proxy_failed";
|
|
687
712
|
declare const ErrTokenExpired: "token_expired";
|
|
713
|
+
/**
|
|
714
|
+
* 非流式 JSON API 请求的默认超时 (毫秒)。
|
|
715
|
+
*
|
|
716
|
+
* 子 client (agent-runs / compliance) 的同步 JSON 调用未传 signal 时套用此上限,
|
|
717
|
+
* 避免上游 hang 导致 Promise 永不 settle。流式 (SSE) / 下载等长连接路径**不**套此超时,
|
|
718
|
+
* 以保留长连接语义。与 core doJSONFullInternal 的 30s 量级一致。
|
|
719
|
+
*/
|
|
720
|
+
declare const DEFAULT_API_TIMEOUT_MS = 60000;
|
|
688
721
|
interface Deferred<T> {
|
|
689
722
|
promise: Promise<T>;
|
|
690
723
|
resolve: (v: T) => void;
|
|
@@ -970,6 +1003,16 @@ declare class Client {
|
|
|
970
1003
|
* 不做 401 重试 (公共端点不应要求认证)
|
|
971
1004
|
*/
|
|
972
1005
|
doPublicJSON<T>(method: string, path: string, body: unknown | null, signal?: AbortSignal): Promise<T>;
|
|
1006
|
+
/**
|
|
1007
|
+
* 给子 client (agent-runs / compliance) 用的请求超时组合器。
|
|
1008
|
+
*
|
|
1009
|
+
* 返回一个 controller, 其 `signal` 同时受默认/指定超时与外部 `parent` signal 约束 —
|
|
1010
|
+
* 二者任一触发都会 abort (用户传入的 signal 仍然生效)。调用方**必须**在 finally 里
|
|
1011
|
+
* `dispose()` 清掉定时器与监听, 否则 timer 泄漏。
|
|
1012
|
+
*
|
|
1013
|
+
* 仅用于非流式 JSON 请求; 流式 (SSE) / 下载路径不应套短超时 (会切断长连接)。
|
|
1014
|
+
*/
|
|
1015
|
+
withRequestTimeout(ms: number, parent?: AbortSignal): ReqTimeoutCtl;
|
|
973
1016
|
/**
|
|
974
1017
|
* fetch 包装 — 错误经 classifyTransport 转 NetworkError
|
|
975
1018
|
* 6 处原始 fetch() 全部走此 helper
|
|
@@ -997,6 +1040,10 @@ declare class Client {
|
|
|
997
1040
|
body?: string;
|
|
998
1041
|
}, signal?: AbortSignal): Promise<Response>;
|
|
999
1042
|
}
|
|
1043
|
+
interface ReqTimeoutCtl {
|
|
1044
|
+
signal: AbortSignal;
|
|
1045
|
+
dispose(): void;
|
|
1046
|
+
}
|
|
1000
1047
|
|
|
1001
1048
|
declare module '@acosmi/sdk-ts' {
|
|
1002
1049
|
interface Client {
|
|
@@ -1720,7 +1767,8 @@ interface SkillStoreItem {
|
|
|
1720
1767
|
scope: string;
|
|
1721
1768
|
status: string;
|
|
1722
1769
|
downloadCount: number;
|
|
1723
|
-
readme
|
|
1770
|
+
readme?: string;
|
|
1771
|
+
skillMd?: string;
|
|
1724
1772
|
tags: string[];
|
|
1725
1773
|
author: string;
|
|
1726
1774
|
publisherId: string;
|
|
@@ -2384,6 +2432,7 @@ declare class AgentRunsClient {
|
|
|
2384
2432
|
private streamGen;
|
|
2385
2433
|
private requestAPI;
|
|
2386
2434
|
private requestRaw;
|
|
2435
|
+
private requestRawInner;
|
|
2387
2436
|
}
|
|
2388
2437
|
|
|
2389
2438
|
declare const ScopeComplianceEvidenceRead = "compliance:evidence:read";
|
|
@@ -3632,6 +3681,7 @@ declare class ComplianceClient {
|
|
|
3632
3681
|
*/
|
|
3633
3682
|
private write;
|
|
3634
3683
|
private executeJson;
|
|
3684
|
+
private executeJsonInner;
|
|
3635
3685
|
private poll;
|
|
3636
3686
|
}
|
|
3637
3687
|
|
|
@@ -4028,32 +4078,59 @@ interface LegalServiceSku {
|
|
|
4028
4078
|
|
|
4029
4079
|
declare module '@acosmi/sdk-ts' {
|
|
4030
4080
|
interface Client {
|
|
4031
|
-
/**
|
|
4081
|
+
/**
|
|
4082
|
+
* 列出已认证律师 (公开端点, 仅返回 VERIFIED + ACTIVE 状态; PII L3 字段已脱敏).
|
|
4083
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4084
|
+
*/
|
|
4032
4085
|
listLawyers(params?: {
|
|
4033
4086
|
practiceArea?: string;
|
|
4034
4087
|
location?: string;
|
|
4035
4088
|
pageNo?: number;
|
|
4036
4089
|
pageSize?: number;
|
|
4037
4090
|
}, signal?: AbortSignal): Promise<LawyerSummary[]>;
|
|
4038
|
-
/**
|
|
4091
|
+
/**
|
|
4092
|
+
* 获取律师公开详情 (脱敏)。
|
|
4093
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4094
|
+
*/
|
|
4039
4095
|
getLawyer(id: number, signal?: AbortSignal): Promise<LawyerSummary>;
|
|
4040
|
-
/**
|
|
4096
|
+
/**
|
|
4097
|
+
* 提交案件线索 (登录态)。
|
|
4098
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4099
|
+
*/
|
|
4041
4100
|
submitCaseLead(req: SubmitCaseLeadRequest, signal?: AbortSignal): Promise<{
|
|
4042
4101
|
id: number;
|
|
4043
4102
|
}>;
|
|
4044
|
-
/**
|
|
4103
|
+
/**
|
|
4104
|
+
* 我的案件线索列表。
|
|
4105
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4106
|
+
*/
|
|
4045
4107
|
listMyCaseLeads(signal?: AbortSignal): Promise<CaseLead[]>;
|
|
4046
|
-
/**
|
|
4108
|
+
/**
|
|
4109
|
+
* 我的案件列表 (委托后)。
|
|
4110
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4111
|
+
*/
|
|
4047
4112
|
getMyCases(signal?: AbortSignal): Promise<CaseMatter[]>;
|
|
4048
|
-
/**
|
|
4113
|
+
/**
|
|
4114
|
+
* 预约法律咨询 (skuCode 必填; lawyerId 可选, 留空走 AI 推荐池)。
|
|
4115
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4116
|
+
*/
|
|
4049
4117
|
bookConsultation(req: BookConsultationRequest, signal?: AbortSignal): Promise<{
|
|
4050
4118
|
consultationId: number;
|
|
4051
4119
|
}>;
|
|
4052
|
-
/**
|
|
4120
|
+
/**
|
|
4121
|
+
* 我的咨询单列表。
|
|
4122
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4123
|
+
*/
|
|
4053
4124
|
listMyConsultations(signal?: AbortSignal): Promise<LegalConsultation[]>;
|
|
4054
|
-
/**
|
|
4125
|
+
/**
|
|
4126
|
+
* 我的法律服务订单列表。
|
|
4127
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4128
|
+
*/
|
|
4055
4129
|
listMyLegalOrders(signal?: AbortSignal): Promise<LegalServiceOrder[]>;
|
|
4056
|
-
/**
|
|
4130
|
+
/**
|
|
4131
|
+
* 列出公开的 LEGAL_SERVICE SKU (匿名可调用, 复用 dist_compliance_sku benefit_type='LEGAL_SERVICE')。
|
|
4132
|
+
* @experimental 对应后端 consumer 端点尚未实现 (casehall 模块当前仅 getMyLawyerCredentialStatus 在产); 调用将返回 404。
|
|
4133
|
+
*/
|
|
4057
4134
|
listLegalSKUs(region?: string, signal?: AbortSignal): Promise<LegalServiceSku[]>;
|
|
4058
4135
|
/**
|
|
4059
4136
|
* 律师自查执业证审核状态 — 返回登录用户作为律师身份提交的所有 credential 列表.
|
|
@@ -4620,4 +4697,4 @@ declare function isChannelInboundEvent(v: unknown): v is ChannelInboundEvent;
|
|
|
4620
4697
|
*/
|
|
4621
4698
|
declare function asCredentialRef(s: string): CredentialRef;
|
|
4622
4699
|
|
|
4623
|
-
export { ALL_INTEGRATION_STATUS, ALL_PLATFORMS, ALL_REGIONS, type APIResponse, type AdapterKind, type AgentRun, type AgentRunArtifact, type AgentRunArtifactList, type AgentRunArtifactPolicy, type AgentRunCreateRequest, type AgentRunCreateResponse, type AgentRunDownload, type AgentRunErrorPayload, type AgentRunLocalContextPolicy, type AgentRunLocalToolHandler, type AgentRunLocalToolHandlerContext, type AgentRunLocalToolResult, type AgentRunRemoteCreateRequest, type AgentRunRunOptions, type AgentRunRuntime, type AgentRunSettlement, type AgentRunStatus, AgentRunStreamError, type AgentRunStreamEvent, type AgentRunStreamOptions, type AgentRunUsage, type AgentRunWithLocalToolsOptions, AgentRunsClient, AnthropicResponse, type ApiClientRef, type ApproveSealApprovalQuery, type AssignSeatRequest, type Audience, AudienceEnum, type AuthorizeResult, type BalanceDetail, type BillingMode, BillingModeEnum, type BillingPreflightResult, type BlockMeta, type BookConsultationRequest, type BridgeThreadRef, type BrowserRefreshMode, type BugReportResult, type BugView, BusinessError, type CancelSealApprovalQuery, type CaseLead, type CaseMatter, type CertificationStatus, type ChannelAttachment, type ChannelCard, type ChannelCardAction, type ChannelInboundEvent, type ChannelOutboundEvent, type ChatBridgeSession, type ChatCredentialPublic, type ChatIntegration, ChatRequest, ChatResponse, type ChatThread, Client, type ClientRegistration, type ComplianceAssetType, type ComplianceBenefitType, type ComplianceBillingDisplayStatus, type ComplianceCapability, ComplianceClient, type ComplianceClientErrorCode, type ComplianceDigestSource, type ComplianceEnvelopeStatus, type ComplianceErrorInfo, type ComplianceErrorKey, type ComplianceHashAlgorithm, CompliancePollError, type CompliancePollOptions, type CompliancePrivacyLevel, type ComplianceProviderRequestStatus, type ComplianceProviderStatus, type ComplianceQuoteResponse, type ComplianceReport, type ComplianceScope, type ComplianceSealApprovalStatus, type ComplianceSku, type ComplianceTimestampVerificationStatus, type ComplianceWriteOptions, type Config, type ConsumeRecord, type ConsumeRecordPage, type ContractTemplateField, type ContractTemplateFieldType, type ContractTemplatePageItem, type ContractTemplateResp, type ContractTemplateStatus, type ContractTemplateVersion, type CorporateTransfer, type CreateContractTemplateRequest, type CreateEvidenceAssetRequest, type CreateH5SigningUrlRequest, type CreateReportRequest, type CreateSigningEnvelopeRequest, type CreateWebAuthorizationRequestOptions, type CredentialRef, DEFAULT_GATEWAY_BASE_URL, DefaultRetryPolicy, type DeviceRegistration, type EnterpriseKycMyStatusView, type EnterpriseMember, type EnterpriseSummary, type EntitlementBalance, type EntitlementItem, type EnvelopeContractItem, ErrAuthDenied, ErrBillingCallbackCannotCommit, ErrBillingCommitRequiresLocalVerify, ErrBillingS2sForbidden, ErrBrowserOpen, ErrComplianceStepUpRequired, ErrDiscovery, ErrEnvelopeGateClosed, ErrOAuthCORSBlocked, ErrProviderNotConfigured, ErrProviderUnknownNoRetry, ErrRefreshProxyFailed, ErrRegistration, ErrSSLProxy, ErrSealApprovalContractHashMismatch, ErrSealApprovalExpired, ErrSealApprovalLocationMismatch, ErrSealApprovalNonceUsed, ErrSealApprovalNotApproved, ErrSealApprovalSealMismatch, ErrSealApprovalTransactorMismatch, ErrSealUseAlreadyConsumed, ErrStateMismatch, ErrTimeout, ErrTokenExchange, ErrTokenExpired, EventAuthURL, EventComplete, EventError, type EvidenceAsset, type EvidenceAssetPageItem, type EvidencePackage, type EvidencePackagePageItem, type FeatureGateState, type FeatureGateStatus, FileTokenStore, type FilterStatus, FilterStatusAdminBypass, FilterStatusDisabledByFlag, FilterStatusFallbackMissingUser, FilterStatusFallbackNoBuckets, FilterStatusFallbackTkdistError, FilterStatusFallbackTkdistSkew, FilterStatusInternalBypass, FilterStatusOK, FilterStatusUnknown, type GateQuota, type GenerateSkillRequest, type GenerateSkillResult, HTTPError, type IdempotencyKey, IdempotencyKeyHeader, ImageGenerationRequest, ImageGenerationResponse, InMemoryTokenStore, type InitiateCorporateTransferInput, type InitiateCorporateTransferResult, InputModality, type IntegrationStatus, type InviteMemberRequest, type Invoice, type IssueTimestampRequest, type LawyerCredentialMyView, type LawyerSummary, type LegalConsultation, type LegalServiceOrder, type LegalServiceSku, type LegalSkuCode, type ListContractTemplatesRequest, type ListEvidenceAssetsRequest, type ListEvidencePackagesRequest, type ListOperationsRequest, type ListReportsRequest, type ListSealApprovalsRequest, type ListSealUsesRequest, type ListSigningEnvelopesRequest, type ListTimestampsRequest, LocalStorageTokenStore, type LoginErrCode, type LoginEvent, type LoginEventType, type LoginOptions, ManagedModel, type ModelBucket, type ModelByQuotaResponse, ModelCapabilities, type ModelCoefficient, ModelNotFoundError, NetworkError, type Notification, type NotificationList, type NotificationPreference, type NotificationUnreadCount, type OAuthMetadataProfile, OAuthTokenEndpointError, type OpenAIChatChoice, type OpenAIChatMessage, type OpenAIChatResponse, type OpenAIFunctionCall, type OpenAIStreamChoice, type OpenAIStreamChunk, type OpenAIStreamDelta, type OpenAIStreamToolCall, type OpenAIToolCall, type OpenAIUsage, type OperationDetail, type OperationId, type OperationPageItem, type OperationSource, type OperationStatus, type OptimizeSkillRequest, type OptimizeSkillResult, type Order, type OrderStatus, OrderTerminalError, type OrgConsumeReport, type OrgSeat, type OrgSubscription, type PageRequest, type PageResult, type PayPayload, type PermissionPolicy, type Platform, type PricingConfig, type PrincipalRef, type Product, type ProductFamily, ProductFamilyEnum, ProviderAdapter, type ProviderRequestStatus, type ProviderRequestStatusView, type PublicEvidenceVerifyResult, type PublicModelSummary, QuotaSummary, RETRY_ADVICE_REASONS, RateLimitError, type RefundPolicy, type RefundRecord, type Region, type RegionScope, RegionScopeEnum, type RegisterWebOAuthClientOptions, type RejectSealApprovalQuery, type RemoteControlDone, type RemoteControlError, type RemoteControlEvent, type RemoteControlEventType, type RemoteControlPermissionRequest, type RemoteControlPermissionResult, type RemoteControlReasoningDelta, type RemoteControlSettle, type RemoteControlStatus, type RemoteControlTextDelta, type RemoteControlToolCall, type RemoteControlToolResult, type RemoteControlUsage, type RemoteSessionPlacement, type RemoteSessionRef, type ReportDownload, type ReportPageItem, type RequestInvoiceInput, type RequestRefundInput, type RetryAdvice, type RetryAdviceReason, type RetryPolicy, type RetryRequestInfo, type RolloverPolicy, type RunnerKind, ScopeAI, ScopeAccount, ScopeComplianceContractSigningRead, ScopeComplianceContractSigningWrite, ScopeComplianceContractTemplateRead, ScopeComplianceContractTemplateWrite, ScopeComplianceEvidenceRead, ScopeComplianceEvidenceWrite, ScopeComplianceReportsPublish, ScopeComplianceReportsRead, ScopeComplianceReportsWrite, ScopeComplianceSealApprovalApprove, ScopeComplianceSealApprovalRequest, ScopeComplianceSealManage, ScopeComplianceSealUseExecute, ScopeComplianceTimestampIssue, ScopeComplianceTimestampVerify, ScopeEntitlements, ScopeModels, ScopeModelsChat, ScopeProfile, ScopeRemoteControl, ScopeRemoteControlAgentRun, ScopeRemoteControlPermissionResponse, ScopeRemoteControlSessionControl, ScopeSkillStore, ScopeSkills, ScopeTokenPackages, ScopeTools, ScopeToolsExecute, ScopeWallet, ScopeWalletReadonly, type SealApproval, type SealApprovalPageItem, type SealUsePageItem, type ServerMetadata, type SignEnvelopeRequest, type SigningEnvelope, type SigningEnvelopePageItem, type SkillBrowseListResponse, type SkillBrowseResponse, type SkillStoreItem, type SkillStoreListItem, type SkillStoreQuery, type SkillSummary, type SortDirection, SourcesEvent, type StepUpStatus, StreamError, StreamEvent, StreamSettlement, type SubmitCaseLeadRequest, type SubmitSealApprovalRequest, type SubscriptionAudience, type SubscriptionPlan, type TenantRef, type TimestampPageItem, type TimestampToken, type TimestampVerifyResult, type TokenPackage, type TokenResponse, type TokenSet, type TokenStore, type ToolListResponse, type ToolProvider, type ToolView, type Transaction, type TsaProvider, type TsaStats, type UpdateContractTemplateRequest, type UploadContractTemplatePdfRequest, type UserSubscription, type VerifyStatus, type VerifyTimestampRequest, VideoGenerationRequest, VideoTaskResponse, type VoidEnvelopeRequest, type WSConfig, type WSEvent, type WalletStats, type WebAuthorizationCallbackParams, type WebAuthorizationPending, type WebAuthorizationRequest, type WorkspacePolicy, type YudaoPageResult, allScopes, apiResponseBusinessError, apiResponseGetMessage, asCredentialRef, authorize, buildBetas, classifyComplianceError, commerceScopes, completeWebAuthorizationRequest, complianceErrorToRetryAdvice, complianceScopes, computeBackoff, createWebAuthorizationRequest, defaultRetryable, defaultSafeToRetry, discover, discoverWebOAuthMetadata, discoverWithProfile, effectivePolicy, exchangeCode, extractAnthropicBlockMeta, fileLockDefaults, findDesktopVisualUnderstandingModel, findFirstModelByInputModality, generateState, isBillingConfirmable, isChannelInboundEvent, isComplianceBusinessError, isComplianceTerminalError, isIntegrationStatus, isInvalidGrantError, isPlatform, isRegion, isSSECommentLine, isSSLError, isTerminalRemoteEvent, maxEndUserIdLength, modelScopes, modelSupportsImageInput, modelSupportsInputModality, newFileTokenStore, newTokenSet, normalizeGatewayBaseURL, parseNotificationEvent, parseRemoteControlEvent, refreshToken, register, registerWebOAuthClient, remoteControlScopes, retryReasonForComplianceKey, retryReasonForOAuthError, revokeToken, skillScopes, tokenSetIsExpired, uniqueMerge, validateEndUserId };
|
|
4700
|
+
export { ALL_INTEGRATION_STATUS, ALL_PLATFORMS, ALL_REGIONS, type APIResponse, type AdapterKind, type AgentRun, type AgentRunArtifact, type AgentRunArtifactList, type AgentRunArtifactPolicy, type AgentRunCreateRequest, type AgentRunCreateResponse, type AgentRunDownload, type AgentRunErrorPayload, type AgentRunLocalContextPolicy, type AgentRunLocalToolHandler, type AgentRunLocalToolHandlerContext, type AgentRunLocalToolResult, type AgentRunRemoteCreateRequest, type AgentRunRunOptions, type AgentRunRuntime, type AgentRunSettlement, type AgentRunStatus, AgentRunStreamError, type AgentRunStreamEvent, type AgentRunStreamOptions, type AgentRunUsage, type AgentRunWithLocalToolsOptions, AgentRunsClient, AnthropicResponse, type ApiClientRef, type ApproveSealApprovalQuery, type AssignSeatRequest, type Audience, AudienceEnum, type AuthorizeResult, type BalanceDetail, type BillingMode, BillingModeEnum, type BillingPreflightResult, type BlockMeta, type BookConsultationRequest, type BridgeThreadRef, type BrowserRefreshMode, type BugReportResult, type BugView, BusinessError, type CancelSealApprovalQuery, type CaseLead, type CaseMatter, type CertificationStatus, type ChannelAttachment, type ChannelCard, type ChannelCardAction, type ChannelInboundEvent, type ChannelOutboundEvent, type ChatBridgeSession, type ChatCredentialPublic, type ChatIntegration, ChatRequest, ChatResponse, type ChatThread, Client, type ClientRegistration, type ComplianceAssetType, type ComplianceBenefitType, type ComplianceBillingDisplayStatus, type ComplianceCapability, ComplianceClient, type ComplianceClientErrorCode, type ComplianceDigestSource, type ComplianceEnvelopeStatus, type ComplianceErrorInfo, type ComplianceErrorKey, type ComplianceHashAlgorithm, CompliancePollError, type CompliancePollOptions, type CompliancePrivacyLevel, type ComplianceProviderRequestStatus, type ComplianceProviderStatus, type ComplianceQuoteResponse, type ComplianceReport, type ComplianceScope, type ComplianceSealApprovalStatus, type ComplianceSku, type ComplianceTimestampVerificationStatus, type ComplianceWriteOptions, type Config, type ConsumeRecord, type ConsumeRecordPage, type ContractTemplateField, type ContractTemplateFieldType, type ContractTemplatePageItem, type ContractTemplateResp, type ContractTemplateStatus, type ContractTemplateVersion, type CorporateTransfer, type CreateContractTemplateRequest, type CreateEvidenceAssetRequest, type CreateH5SigningUrlRequest, type CreateReportRequest, type CreateSigningEnvelopeRequest, type CreateWebAuthorizationRequestOptions, type CredentialRef, DEFAULT_API_TIMEOUT_MS, DEFAULT_GATEWAY_BASE_URL, DefaultRetryPolicy, type DeviceRegistration, type EnterpriseKycMyStatusView, type EnterpriseMember, type EnterpriseSummary, type EntitlementBalance, type EntitlementItem, type EnvelopeContractItem, ErrAuthDenied, ErrBillingCallbackCannotCommit, ErrBillingCommitRequiresLocalVerify, ErrBillingS2sForbidden, ErrBrowserOpen, ErrComplianceStepUpRequired, ErrDiscovery, ErrEnvelopeGateClosed, ErrOAuthCORSBlocked, ErrProviderNotConfigured, ErrProviderUnknownNoRetry, ErrRefreshProxyFailed, ErrRegistration, ErrSSLProxy, ErrSealApprovalContractHashMismatch, ErrSealApprovalExpired, ErrSealApprovalLocationMismatch, ErrSealApprovalNonceUsed, ErrSealApprovalNotApproved, ErrSealApprovalSealMismatch, ErrSealApprovalTransactorMismatch, ErrSealUseAlreadyConsumed, ErrStateMismatch, ErrTimeout, ErrTokenExchange, ErrTokenExpired, EventAuthURL, EventComplete, EventError, type EvidenceAsset, type EvidenceAssetPageItem, type EvidencePackage, type EvidencePackagePageItem, type FeatureGateState, type FeatureGateStatus, FileTokenStore, type FilterStatus, FilterStatusAdminBypass, FilterStatusDisabledByFlag, FilterStatusFallbackMissingUser, FilterStatusFallbackNoBuckets, FilterStatusFallbackTkdistError, FilterStatusFallbackTkdistSkew, FilterStatusInternalBypass, FilterStatusOK, FilterStatusUnknown, type GateQuota, type GenerateSkillRequest, type GenerateSkillResult, HTTPError, type IdempotencyKey, IdempotencyKeyHeader, ImageGenerationRequest, ImageGenerationResponse, InMemoryTokenStore, type InitiateCorporateTransferInput, type InitiateCorporateTransferResult, InputModality, type IntegrationStatus, type InviteMemberRequest, type Invoice, type IssueTimestampRequest, type LawyerCredentialMyView, type LawyerSummary, type LegalConsultation, type LegalServiceOrder, type LegalServiceSku, type LegalSkuCode, type ListContractTemplatesRequest, type ListEvidenceAssetsRequest, type ListEvidencePackagesRequest, type ListOperationsRequest, type ListReportsRequest, type ListSealApprovalsRequest, type ListSealUsesRequest, type ListSigningEnvelopesRequest, type ListTimestampsRequest, LocalStorageTokenStore, type LoginErrCode, type LoginEvent, type LoginEventType, type LoginOptions, ManagedModel, type ModelBucket, type ModelByQuotaResponse, ModelCapabilities, type ModelCoefficient, ModelNotFoundError, NetworkError, type Notification, type NotificationList, type NotificationPreference, type NotificationUnreadCount, type OAuthMetadataProfile, OAuthTokenEndpointError, type OpenAIChatChoice, type OpenAIChatMessage, type OpenAIChatResponse, type OpenAIFunctionCall, type OpenAIStreamChoice, type OpenAIStreamChunk, type OpenAIStreamDelta, type OpenAIStreamToolCall, type OpenAIToolCall, type OpenAIUsage, type OperationDetail, type OperationId, type OperationPageItem, type OperationSource, type OperationStatus, type OptimizeSkillRequest, type OptimizeSkillResult, type Order, type OrderStatus, OrderTerminalError, type OrgConsumeReport, type OrgSeat, type OrgSubscription, type PageRequest, type PageResult, type PayPayload, type PermissionPolicy, type Platform, type PricingConfig, type PrincipalRef, type Product, type ProductFamily, ProductFamilyEnum, ProviderAdapter, type ProviderRequestStatus, type ProviderRequestStatusView, type PublicEvidenceVerifyResult, type PublicModelSummary, QuotaSummary, RETRY_ADVICE_REASONS, RateLimitError, type RefundPolicy, type RefundRecord, type Region, type RegionScope, RegionScopeEnum, type RegisterWebOAuthClientOptions, type RejectSealApprovalQuery, type RemoteControlDone, type RemoteControlError, type RemoteControlEvent, type RemoteControlEventType, type RemoteControlPermissionRequest, type RemoteControlPermissionResult, type RemoteControlReasoningDelta, type RemoteControlSettle, type RemoteControlStatus, type RemoteControlTextDelta, type RemoteControlToolCall, type RemoteControlToolResult, type RemoteControlUsage, type RemoteSessionPlacement, type RemoteSessionRef, type ReportDownload, type ReportPageItem, type ReqTimeoutCtl, type RequestInvoiceInput, type RequestRefundInput, type RetryAdvice, type RetryAdviceReason, type RetryPolicy, type RetryRequestInfo, type RolloverPolicy, type RunnerKind, ScopeAI, ScopeAccount, ScopeComplianceContractSigningRead, ScopeComplianceContractSigningWrite, ScopeComplianceContractTemplateRead, ScopeComplianceContractTemplateWrite, ScopeComplianceEvidenceRead, ScopeComplianceEvidenceWrite, ScopeComplianceReportsPublish, ScopeComplianceReportsRead, ScopeComplianceReportsWrite, ScopeComplianceSealApprovalApprove, ScopeComplianceSealApprovalRequest, ScopeComplianceSealManage, ScopeComplianceSealUseExecute, ScopeComplianceTimestampIssue, ScopeComplianceTimestampVerify, ScopeEntitlements, ScopeModels, ScopeModelsChat, ScopeProfile, ScopeRemoteControl, ScopeRemoteControlAgentRun, ScopeRemoteControlPermissionResponse, ScopeRemoteControlSessionControl, ScopeSkillStore, ScopeSkills, ScopeTokenPackages, ScopeTools, ScopeToolsExecute, ScopeWallet, ScopeWalletReadonly, type SealApproval, type SealApprovalPageItem, type SealUsePageItem, type ServerMetadata, type SignEnvelopeRequest, type SigningEnvelope, type SigningEnvelopePageItem, type SkillBrowseListResponse, type SkillBrowseResponse, type SkillStoreItem, type SkillStoreListItem, type SkillStoreQuery, type SkillSummary, type SortDirection, SourcesEvent, type StepUpStatus, StreamError, StreamEvent, StreamSettlement, type SubmitCaseLeadRequest, type SubmitSealApprovalRequest, type SubscriptionAudience, type SubscriptionPlan, type TenantRef, type TimestampPageItem, type TimestampToken, type TimestampVerifyResult, type TokenPackage, type TokenResponse, type TokenSet, type TokenStore, type ToolListResponse, type ToolProvider, type ToolView, type Transaction, type TsaProvider, type TsaStats, type UpdateContractTemplateRequest, type UploadContractTemplatePdfRequest, type UserSubscription, type VerifyStatus, type VerifyTimestampRequest, VideoGenerationRequest, VideoTaskResponse, type VoidEnvelopeRequest, type WSConfig, type WSEvent, type WalletStats, type WebAuthorizationCallbackParams, type WebAuthorizationPending, type WebAuthorizationRequest, type WorkspacePolicy, type YudaoPageResult, allScopes, apiResponseBusinessError, apiResponseGetMessage, asCredentialRef, authorize, buildBetas, classifyComplianceError, commerceScopes, completeWebAuthorizationRequest, complianceErrorToRetryAdvice, complianceScopes, computeBackoff, createWebAuthorizationRequest, defaultRetryable, defaultSafeToRetry, discover, discoverWebOAuthMetadata, discoverWithProfile, effectivePolicy, exchangeCode, extractAnthropicBlockMeta, fileLockDefaults, findDesktopVisualUnderstandingModel, findFirstModelByInputModality, generateState, isBillingConfirmable, isChannelInboundEvent, isComplianceBusinessError, isComplianceTerminalError, isIntegrationStatus, isInvalidGrantError, isPlatform, isRegion, isSSECommentLine, isSSLError, isTerminalRemoteEvent, isValidTokenSet, maxEndUserIdLength, modelScopes, modelSupportsImageInput, modelSupportsInputModality, newFileTokenStore, newTokenSet, normalizeGatewayBaseURL, normalizeOverrideBaseURL, parseNotificationEvent, parseRemoteControlEvent, refreshToken, register, registerWebOAuthClient, remoteControlScopes, retryReasonForComplianceKey, retryReasonForOAuthError, revokeToken, skillScopes, tokenSetIsExpired, uniqueMerge, validateEndUserId };
|