@acosmi/sdk-ts 2.5.1 → 2.6.0

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.
@@ -1,12 +1,12 @@
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';
1
+ import { a as AnthropicResponse } from './openai-CeM2k04b.cjs';
2
+ export { A as AnthropicContentBlock, b as AnthropicUsage, O as OpenAIAdapter, d as anthropicResponseTextContent, e as anthropicResponseThinkingContent, f as anthropicResponseToolUseBlocks } from './openai-CeM2k04b.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-BrbgHn0E.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-BrbgHn0E.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';
8
8
 
9
- /** 权益余额 (聚合) */
9
+ /** 权益余额 (聚合)。token* 单位双体系: 免费=Token / 付费(TOKEN_PACKAGE,SUBSCRIPTION)=微Credits(÷1000=Credits)。 */
10
10
  interface EntitlementBalance {
11
11
  totalTokenQuota: number;
12
12
  totalTokenUsed: number;
@@ -16,9 +16,10 @@ interface EntitlementBalance {
16
16
  totalCallRemaining: number;
17
17
  activeEntitlements: number;
18
18
  }
19
- /** 单条权益明细 */
19
+ /** 单条权益明细。token* 单位由 type 决定: TOKEN_PACKAGE/SUBSCRIPTION=微Credits(÷1000=Credits), 其余=原始Token。 */
20
20
  interface EntitlementItem {
21
21
  id: string;
22
+ /** 权益类型, 也是额度单位判据: TOKEN_PACKAGE/SUBSCRIPTION → 付费(Credits 体系), 其余 → 免费(Token 体系)。 */
22
23
  type: string;
23
24
  status: string;
24
25
  tokenQuota: number;
@@ -31,18 +32,27 @@ interface EntitlementItem {
31
32
  sourceId?: string;
32
33
  sourceType?: string;
33
34
  remark?: string;
34
- createdAt: string;
35
+ /** 仅出现在 /grants map (toEntitlementMap 之外的 grants 端点)。 */
36
+ createdAt?: string;
37
+ /** list (toEntitlementMap) 与 grants 均返回 activatedAt。 */
38
+ activatedAt?: string;
35
39
  }
36
- /** 详细余额 (含每条权益明细) */
40
+ interface BalanceDetailEntitlement {
41
+ id: string;
42
+ sourceOrderId?: string;
43
+ status: string;
44
+ tokenQuota: number;
45
+ tokenUsed: number;
46
+ expiresAt?: string;
47
+ }
48
+ /** 详细余额 (含每条权益明细)。token* 单位双体系: 免费=Token / 付费=微Credits(÷1000=Credits), 按 entitlements[].id 对应权益 type 区分, 勿跨单位求和。 */
37
49
  interface BalanceDetail {
38
- totalTokenQuota: number;
39
- totalTokenUsed: number;
40
- totalTokenRemaining: number;
41
- totalCallQuota: number;
42
- totalCallUsed: number;
43
- totalCallRemaining: number;
44
- activeEntitlements: number;
45
- entitlements: EntitlementItem[];
50
+ userId: string;
51
+ tokenRemaining: number;
52
+ tokenTotal: number;
53
+ callRemaining: number;
54
+ callTotal: number;
55
+ entitlements: BalanceDetailEntitlement[];
46
56
  }
47
57
  /** 核销记录 */
48
58
  interface ConsumeRecord {
@@ -53,6 +63,12 @@ interface ConsumeRecord {
53
63
  tokensConsumed: number;
54
64
  status: string;
55
65
  createdAt: string;
66
+ reservedTokens?: number;
67
+ callsConsumed?: number;
68
+ inputTokens?: number;
69
+ outputTokens?: number;
70
+ cacheReadTokens?: number;
71
+ cacheCreateTokens?: number;
56
72
  }
57
73
  /** 核销记录分页响应 */
58
74
  interface ConsumeRecordPage {
@@ -92,6 +108,7 @@ interface ModelByQuotaResponse {
92
108
  primaryBucket?: ModelBucket;
93
109
  }
94
110
  /** 单条模型系数 (SDK TTL 8s 缓存源) */
111
+ /** @deprecated 系数管理已退役 (raw 1:1 计费)。网关 /entitlements/coefficients 永久返回 []。本类型仅为向后兼容保留。 */
95
112
  interface ModelCoefficient {
96
113
  modelId: string;
97
114
  tenantId: string;
@@ -102,49 +119,84 @@ interface ModelCoefficient {
102
119
  version: number;
103
120
  effectiveAt: string;
104
121
  }
105
- /** 流量包商品。price string (Go json.Number) 避免浮点精度丢失。 */
122
+ /** 流量包商品。形状对齐 ConsumerPublicController.toProductView (/api/products 端点, /token-packages 代理转发) */
106
123
  interface TokenPackage {
107
124
  id: string;
108
125
  name: string;
109
126
  description?: string;
110
- tokenQuota: number;
111
- callQuota?: number;
112
- price: string;
113
- validDays: number;
114
- isEnabled: boolean;
115
- sortOrder?: number;
116
- }
117
- /** 订单。amount 用 string (Go json.Number) 避免精度丢失。 */
118
- interface Order {
119
- id: string;
120
- packageId: string;
121
- packageName?: string;
122
- amount: string;
123
- status: string;
124
- payUrl?: string;
125
- createdAt: string;
126
- }
127
- /** 订单状态 */
128
- interface OrderStatus {
129
- orderId: string;
130
- status: string;
131
- }
127
+ originalPriceCent: number;
128
+ campaignPriceCent: number;
129
+ renewalPriceCent: number;
130
+ /** 折扣率 0~1 (BigDecimal, JSON 数字); 0 表示无折扣 */
131
+ discountRate: number;
132
+ modelsJson?: string;
133
+ productImage?: string;
134
+ features?: string[];
135
+ billingCycle: string;
136
+ featured: boolean;
137
+ eyebrow?: string;
138
+ promo?: string;
139
+ usage?: string;
140
+ sortOrder: number;
141
+ }
142
+ /** 支付方式枚举字面量 (来自 /payment-options)。 */
143
+ type PaymentMethod = 'WECHAT_NATIVE' | 'ALIPAY_PRECREATE' | 'BANK_TRANSFER';
132
144
  /** 下单请求 */
133
145
  interface PayPayload {
134
- payMethod?: string;
146
+ /** 支付方式枚举字面量 (来自 /payment-options)。字段名必须是 paymentMethod (后端 BuyRequest.paymentMethod)。 */
147
+ paymentMethod?: PaymentMethod;
148
+ deviceId?: string;
149
+ /** 幂等请求 ID */
150
+ clientRequestId?: string;
151
+ }
152
+ /** 下单 / 订单状态响应 (OrderPaymentService.BuyResponse, buy 与状态查询共用)。 */
153
+ interface BuyResponse {
154
+ orderId: number;
155
+ orderNo: string;
156
+ productId?: string;
157
+ productName?: string;
158
+ amountFen: number;
159
+ orderStatus: string;
160
+ paymentMethod: string;
161
+ paymentStatus: string;
162
+ qrCodeContent?: string;
163
+ payUrl?: string;
164
+ paymentExpiresAt?: string;
165
+ /** 对公转账信息 (BANK_TRANSFER 时), 形状为后端嵌套对象 */
166
+ bankTransferInfo?: Record<string, unknown>;
135
167
  }
136
- /** 钱包统计。金额使用 string (Go json.Number) 避免浮点精度丢失 (金融安全) */
168
+ /** 我的订单列表行 (toOrderMap) */
169
+ interface OrderListItem {
170
+ id: string;
171
+ bizOrderId?: string;
172
+ productName?: string;
173
+ amountCent: number;
174
+ originalPriceCent?: number;
175
+ discountRate?: string;
176
+ paymentMethod?: string;
177
+ payStatus: string;
178
+ commissionStatus?: string;
179
+ issueStatus?: string;
180
+ channelCode?: string;
181
+ createdAt?: string;
182
+ payTime?: string;
183
+ }
184
+ /** @deprecated 旧形状与任何真实端点都不符; buy/状态查询改用 BuyResponse, 列表用 OrderListItem。 */
185
+ type Order = BuyResponse;
186
+ /** @deprecated getOrderStatus 现返回 BuyResponse (无 status 字段)。 */
187
+ type OrderStatus = BuyResponse;
188
+ /** 钱包统计。 */
137
189
  interface WalletStats {
138
- balance: string;
139
- monthlyConsumption: string;
140
- monthlyRecharge: string;
190
+ balance: number;
191
+ monthlyConsumption: number;
192
+ monthlyRecharge: number;
141
193
  transactionCount: number;
142
194
  }
143
195
  /** 交易记录 */
144
196
  interface Transaction {
145
197
  id: string;
146
198
  type: string;
147
- amount: string;
199
+ amount: number;
148
200
  remark?: string;
149
201
  createdAt: string;
150
202
  }
@@ -1511,6 +1563,14 @@ declare const ScopeRemoteControlAgentRun = "remote_control:agent-run";
1511
1563
  declare const ScopeRemoteControlSessionControl = "remote_control:session-control";
1512
1564
  /** 代表用户提交远控权限审批响应 (allow / deny / timeout). */
1513
1565
  declare const ScopeRemoteControlPermissionResponse = "remote_control:permission-response";
1566
+ /** 第三方聊天集成桥接 (分组 scope, 服务端 ScopeExpansion 展开为 read/write/rotate)。凭证管理高风险, 不进 allScopes()。 */
1567
+ declare const ScopeChatBridge = "chat_bridge";
1568
+ /** 查询 integration / session / 凭证元数据 (仅 ref+fingerprint)。 */
1569
+ declare const ScopeChatBridgeRead = "chat_bridge:read";
1570
+ /** 创建 / 更新 integration 与凭证。 */
1571
+ declare const ScopeChatBridgeWrite = "chat_bridge:write";
1572
+ /** 轮换 / 吊销凭证 (高风险)。 */
1573
+ declare const ScopeChatBridgeRotate = "chat_bridge:rotate";
1514
1574
  /** @deprecated 旧细粒度 scope, 保留向后兼容, 新代码请用分组 scope */
1515
1575
  declare const ScopeModels = "models";
1516
1576
  /** @deprecated */
@@ -1544,6 +1604,10 @@ declare function skillScopes(): string[];
1544
1604
  * 为 3 个子 scope. 调用方需显式申请, allScopes() 不包含本项 (避免桌面登录自动获权).
1545
1605
  */
1546
1606
  declare function remoteControlScopes(): string[];
1607
+ /**
1608
+ * 聊天桥接 scope (推荐). 仅返回分组 ScopeChatBridge; 服务端展开为 3 子 scope。调用方需显式申请, allScopes() 不含。
1609
+ */
1610
+ declare function chatBridgeScopes(): string[];
1547
1611
 
1548
1612
  interface OpenAIChatResponse {
1549
1613
  id: string;
@@ -1707,8 +1771,10 @@ declare module '@acosmi/sdk-ts' {
1707
1771
  getByModel(modelID: string, signal?: AbortSignal): Promise<ModelByQuotaResponse>;
1708
1772
  /** 列出当前用户的全部桶 */
1709
1773
  listBuckets(signal?: AbortSignal): Promise<ModelBucket[]>;
1774
+ /** @deprecated 系数已退役, 网关恒返回 []。*/
1710
1775
  /** 拉取模型系数表; SDK 自带 8s TTL 内存缓存以减小调用风暴. */
1711
1776
  listCoefficients(signal?: AbortSignal): Promise<ModelCoefficient[]>;
1777
+ /** @deprecated 系数已退役, 网关恒返回 []。*/
1712
1778
  /** 手动失效系数缓存 (admin 调价后建议立即调一次) */
1713
1779
  invalidateCoefficientCache(): void;
1714
1780
  }
@@ -1721,17 +1787,18 @@ declare module '@acosmi/sdk-ts' {
1721
1787
  /** 获取流量包详情 */
1722
1788
  getTokenPackageDetail(packageID: string, signal?: AbortSignal): Promise<TokenPackage>;
1723
1789
  /** 购买流量包 (创建订单) */
1724
- buyTokenPackage(packageID: string, payload: PayPayload | null, signal?: AbortSignal): Promise<Order>;
1790
+ buyTokenPackage(packageID: string, payload: PayPayload | null, signal?: AbortSignal): Promise<BuyResponse>;
1725
1791
  /** 查询订单支付状态 */
1726
- getOrderStatus(orderID: string, signal?: AbortSignal): Promise<OrderStatus>;
1792
+ getOrderStatus(orderID: string, signal?: AbortSignal): Promise<BuyResponse>;
1727
1793
  /** 查询我的订单列表 */
1728
- listMyOrders(signal?: AbortSignal): Promise<Order[]>;
1794
+ listMyOrders(signal?: AbortSignal): Promise<OrderListItem[]>;
1729
1795
  /**
1730
1796
  * 轮询订单支付状态直到终态
1731
- * 成功支付返回 status; 终态失败抛 OrderTerminalError
1797
+ * 成功支付返回 BuyResponse; 终态失败抛 OrderTerminalError
1798
+ * 终态判定基于 paymentStatus (回退 orderStatus)
1732
1799
  * pollIntervalMs <= 0 时默认 2 秒
1733
1800
  */
1734
- waitForPayment(orderID: string, pollIntervalMs: number, signal?: AbortSignal): Promise<OrderStatus>;
1801
+ waitForPayment(orderID: string, pollIntervalMs: number, signal?: AbortSignal): Promise<BuyResponse>;
1735
1802
  }
1736
1803
  }
1737
1804
 
@@ -2015,12 +2082,16 @@ declare module '@acosmi/sdk-ts' {
2015
2082
  /** 删除通知 */
2016
2083
  deleteNotification(id: string, signal?: AbortSignal): Promise<void>;
2017
2084
  /** 注册推送设备 token */
2085
+ /** @experimental 网关尚未提供 /devices/* 与 /notification-preferences/* 端点, 调用将 404。后端实现落地前请勿在生产使用。 */
2018
2086
  registerDevice(reg: DeviceRegistration, signal?: AbortSignal): Promise<void>;
2019
2087
  /** 注销推送设备 token */
2088
+ /** @experimental 网关尚未提供 /devices/* 与 /notification-preferences/* 端点, 调用将 404。后端实现落地前请勿在生产使用。 */
2020
2089
  unregisterDevice(token: string, signal?: AbortSignal): Promise<void>;
2021
2090
  /** 获取通知偏好设置 */
2091
+ /** @experimental 网关尚未提供 /devices/* 与 /notification-preferences/* 端点, 调用将 404。后端实现落地前请勿在生产使用。 */
2022
2092
  listNotificationPreferences(signal?: AbortSignal): Promise<NotificationPreference[]>;
2023
2093
  /** 更新通知偏好 */
2094
+ /** @experimental 网关尚未提供 /devices/* 与 /notification-preferences/* 端点, 调用将 404。后端实现落地前请勿在生产使用。 */
2024
2095
  updateNotificationPreference(typeCode: string, pref: NotificationPreference, signal?: AbortSignal): Promise<void>;
2025
2096
  }
2026
2097
  }
@@ -3757,6 +3828,7 @@ interface SubscriptionPlan {
3757
3828
  planDesc: string;
3758
3829
  billingCycle: string;
3759
3830
  basePriceFen: number;
3831
+ /** 档位标准额度。付费档单位 = 微 Credits (÷1000 = Credits): BASIC 0.6亿 / PRO 3亿 / PRO_MAX 9亿 / ULTRA 24亿 Credits。 */
3760
3832
  tokenQuota: number;
3761
3833
  seatMin?: number | null;
3762
3834
  seatMax?: number | null;
@@ -3769,7 +3841,31 @@ interface SubscriptionPlan {
3769
3841
  /** grant_policy 摘要 (P3 商品中心补) */
3770
3842
  grantPolicyDigest?: Record<string, unknown> | null;
3771
3843
  }
3772
- /** 用户当前订阅状态 (P3 商品中心会扩展) */
3844
+ /** C 端会员中心订阅概览 — 严格对齐网关 GET /entitlements/membership (membership.go membershipResponse) */
3845
+ interface Membership {
3846
+ hasActive: boolean;
3847
+ planCode: string;
3848
+ planName: string;
3849
+ tier: string;
3850
+ billingCycle: string;
3851
+ status: string;
3852
+ expiresAt: string;
3853
+ priceFen: number;
3854
+ /** 周期总额度。有活跃付费订阅 (hasActive=true) 时单位 = 微 Credits (÷1000 = Credits 代币); 免费档 = 原始 Token。 */
3855
+ tokenQuota: number;
3856
+ /** 当前周期已用 (后端 float64)。单位同 tokenQuota: 付费=微Credits / 免费=Token。 */
3857
+ tokenUsed: number;
3858
+ periodStart: string;
3859
+ /** isFree = !hasActive (无活跃付费订阅即免费档) */
3860
+ isFree: boolean;
3861
+ }
3862
+ /** 由活跃权益推导的订阅层级 — 对齐网关 GET /entitlements/subscription (entitlement.go GetSubscription)。 */
3863
+ interface SubscriptionTier {
3864
+ /** "free" | "pro" (后端按权益类型推导) */
3865
+ subscriptionType: string;
3866
+ activeEntitlementTypes: string[];
3867
+ }
3868
+ /** @deprecated 网关未暴露订阅列表端点; 该形状不对应任何真实响应。请改用 Membership + getMembership()。保留仅为向后兼容。 */
3773
3869
  interface UserSubscription {
3774
3870
  id: number;
3775
3871
  userId: string;
@@ -3787,8 +3883,18 @@ declare module '@acosmi/sdk-ts' {
3787
3883
  interface Client {
3788
3884
  /** 列出当前可售订阅计划; audience='PERSONAL'|'ENTERPRISE' 可选过滤 */
3789
3885
  listPlans(audience?: SubscriptionAudience, signal?: AbortSignal): Promise<SubscriptionPlan[]>;
3790
- /** 列出当前用户已激活订阅 (跨档位; 通常 1 条 active) */
3791
- listUserSubscriptions(signal?: AbortSignal): Promise<UserSubscription[]>;
3886
+ /** 查询当前用户会员/订阅概览 (C 端会员中心)。无活跃订阅时 hasActive=false/isFree=true。 */
3887
+ getMembership(signal?: AbortSignal): Promise<Membership>;
3888
+ /** 由活跃权益推导订阅层级 (free/pro)。 */
3889
+ getSubscriptionTier(signal?: AbortSignal): Promise<SubscriptionTier>;
3890
+ /** 订阅支付前绑定硬闸。返回 {ok:true} 表示已绑定手机/邮箱可放行支付。
3891
+ * 未绑定时网关返回 HTTP 403 + 业务码 41001 (doJSON 抛 HTTPError), 调用方应据此引导用户先绑定联系方式再支付。 */
3892
+ subscriptionPrecheck(signal?: AbortSignal): Promise<{
3893
+ ok: boolean;
3894
+ }>;
3895
+ /** @deprecated 网关无订阅列表端点; 旧实现打 /distribution/user/subscriptions 恒 404。改用 getMembership()。
3896
+ * 本方法现委托 getMembership(): 有活跃订阅返回单元素数组, 否则空数组。 */
3897
+ listUserSubscriptions(signal?: AbortSignal): Promise<Membership[]>;
3792
3898
  /**
3793
3899
  * 按 planCode 精确取单个可售订阅计划 (V41 起 planCode 在 active 内唯一)。
3794
3900
  * 复用 listPlans 客户端过滤, 未命中返回 null。减少 C 端按字段手筛 (deep-review §12.3)。
@@ -4697,4 +4803,4 @@ declare function isChannelInboundEvent(v: unknown): v is ChannelInboundEvent;
4697
4803
  */
4698
4804
  declare function asCredentialRef(s: string): CredentialRef;
4699
4805
 
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 };
4806
+ 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 BalanceDetailEntitlement, type BillingMode, BillingModeEnum, type BillingPreflightResult, type BlockMeta, type BookConsultationRequest, type BridgeThreadRef, type BrowserRefreshMode, type BugReportResult, type BugView, BusinessError, type BuyResponse, 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 Membership, 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 OrderListItem, type OrderStatus, OrderTerminalError, type OrgConsumeReport, type OrgSeat, type OrgSubscription, type PageRequest, type PageResult, type PayPayload, type PaymentMethod, 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, ScopeChatBridge, ScopeChatBridgeRead, ScopeChatBridgeRotate, ScopeChatBridgeWrite, 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 SubscriptionTier, 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, chatBridgeScopes, 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 };