@acosmi/sdk-ts 1.0.0 → 1.0.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.
@@ -545,7 +545,7 @@ declare class Client {
545
545
  }, signal?: AbortSignal): Promise<Response>;
546
546
  }
547
547
 
548
- declare module '../client' {
548
+ declare module '@acosmi/sdk-ts' {
549
549
  interface Client {
550
550
  /** 查询当前用户的权益余额 (聚合) */
551
551
  getBalance(signal?: AbortSignal): Promise<EntitlementBalance>;
@@ -568,7 +568,7 @@ declare module '../client' {
568
568
  }
569
569
  }
570
570
 
571
- declare module '../client' {
571
+ declare module '@acosmi/sdk-ts' {
572
572
  interface Client {
573
573
  /** 获取商城流量包列表 (兼容 yudao 分页和直接数组两种格式) */
574
574
  listTokenPackages(signal?: AbortSignal): Promise<TokenPackage[]>;
@@ -589,7 +589,7 @@ declare module '../client' {
589
589
  }
590
590
  }
591
591
 
592
- declare module '../client' {
592
+ declare module '@acosmi/sdk-ts' {
593
593
  interface Client {
594
594
  /** 获取钱包统计 (余额/月消费/月充值) */
595
595
  getWalletStats(signal?: AbortSignal): Promise<WalletStats>;
@@ -598,7 +598,7 @@ declare module '../client' {
598
598
  }
599
599
  }
600
600
 
601
- declare module '../client' {
601
+ declare module '@acosmi/sdk-ts' {
602
602
  interface Client {
603
603
  /** 浏览技能商店 (公共端点, 无需认证) */
604
604
  browseSkillStore(query: SkillStoreQuery, signal?: AbortSignal): Promise<SkillStoreItem[]>;
@@ -642,7 +642,7 @@ declare module '../client' {
642
642
  }
643
643
  }
644
644
 
645
- declare module '../client' {
645
+ declare module '@acosmi/sdk-ts' {
646
646
  interface Client {
647
647
  /** 获取当前用户租户下的所有工具 (Skill 优先 + Plugin 兜底) */
648
648
  listTools(signal?: AbortSignal): Promise<ToolView[]>;
@@ -651,7 +651,7 @@ declare module '../client' {
651
651
  }
652
652
  }
653
653
 
654
- declare module '../client' {
654
+ declare module '@acosmi/sdk-ts' {
655
655
  interface Client {
656
656
  /** 分页查询通知列表 */
657
657
  listNotifications(page: number, pageSize: number, typeFilter: string, signal?: AbortSignal): Promise<NotificationList>;
@@ -674,7 +674,7 @@ declare module '../client' {
674
674
  }
675
675
  }
676
676
 
677
- declare module './client' {
677
+ declare module '@acosmi/sdk-ts' {
678
678
  interface Client {
679
679
  /**
680
680
  * 配置请求前的底线防御 (体积 / deny-list / 深度)。
@@ -717,7 +717,7 @@ interface WSConfig {
717
717
  /** 是否自动重连 (默认 true) */
718
718
  autoReconnect?: boolean;
719
719
  }
720
- declare module './client' {
720
+ declare module '@acosmi/sdk-ts' {
721
721
  interface Client {
722
722
  /**
723
723
  * 建立 WebSocket 长连接 — 等待首次连接成功或 abort。
@@ -758,7 +758,7 @@ interface BugView {
758
758
  transcript?: unknown[];
759
759
  extras?: Record<string, unknown>;
760
760
  }
761
- declare module './client' {
761
+ declare module '@acosmi/sdk-ts' {
762
762
  interface Client {
763
763
  /**
764
764
  * 上报一份 CrabCode bug 报告.
@@ -545,7 +545,7 @@ declare class Client {
545
545
  }, signal?: AbortSignal): Promise<Response>;
546
546
  }
547
547
 
548
- declare module '../client' {
548
+ declare module '@acosmi/sdk-ts' {
549
549
  interface Client {
550
550
  /** 查询当前用户的权益余额 (聚合) */
551
551
  getBalance(signal?: AbortSignal): Promise<EntitlementBalance>;
@@ -568,7 +568,7 @@ declare module '../client' {
568
568
  }
569
569
  }
570
570
 
571
- declare module '../client' {
571
+ declare module '@acosmi/sdk-ts' {
572
572
  interface Client {
573
573
  /** 获取商城流量包列表 (兼容 yudao 分页和直接数组两种格式) */
574
574
  listTokenPackages(signal?: AbortSignal): Promise<TokenPackage[]>;
@@ -589,7 +589,7 @@ declare module '../client' {
589
589
  }
590
590
  }
591
591
 
592
- declare module '../client' {
592
+ declare module '@acosmi/sdk-ts' {
593
593
  interface Client {
594
594
  /** 获取钱包统计 (余额/月消费/月充值) */
595
595
  getWalletStats(signal?: AbortSignal): Promise<WalletStats>;
@@ -598,7 +598,7 @@ declare module '../client' {
598
598
  }
599
599
  }
600
600
 
601
- declare module '../client' {
601
+ declare module '@acosmi/sdk-ts' {
602
602
  interface Client {
603
603
  /** 浏览技能商店 (公共端点, 无需认证) */
604
604
  browseSkillStore(query: SkillStoreQuery, signal?: AbortSignal): Promise<SkillStoreItem[]>;
@@ -642,7 +642,7 @@ declare module '../client' {
642
642
  }
643
643
  }
644
644
 
645
- declare module '../client' {
645
+ declare module '@acosmi/sdk-ts' {
646
646
  interface Client {
647
647
  /** 获取当前用户租户下的所有工具 (Skill 优先 + Plugin 兜底) */
648
648
  listTools(signal?: AbortSignal): Promise<ToolView[]>;
@@ -651,7 +651,7 @@ declare module '../client' {
651
651
  }
652
652
  }
653
653
 
654
- declare module '../client' {
654
+ declare module '@acosmi/sdk-ts' {
655
655
  interface Client {
656
656
  /** 分页查询通知列表 */
657
657
  listNotifications(page: number, pageSize: number, typeFilter: string, signal?: AbortSignal): Promise<NotificationList>;
@@ -674,7 +674,7 @@ declare module '../client' {
674
674
  }
675
675
  }
676
676
 
677
- declare module './client' {
677
+ declare module '@acosmi/sdk-ts' {
678
678
  interface Client {
679
679
  /**
680
680
  * 配置请求前的底线防御 (体积 / deny-list / 深度)。
@@ -717,7 +717,7 @@ interface WSConfig {
717
717
  /** 是否自动重连 (默认 true) */
718
718
  autoReconnect?: boolean;
719
719
  }
720
- declare module './client' {
720
+ declare module '@acosmi/sdk-ts' {
721
721
  interface Client {
722
722
  /**
723
723
  * 建立 WebSocket 长连接 — 等待首次连接成功或 abort。
@@ -758,7 +758,7 @@ interface BugView {
758
758
  transcript?: unknown[];
759
759
  extras?: Record<string, unknown>;
760
760
  }
761
- declare module './client' {
761
+ declare module '@acosmi/sdk-ts' {
762
762
  interface Client {
763
763
  /**
764
764
  * 上报一份 CrabCode bug 报告.
@@ -3946,5 +3946,5 @@ Client.prototype.getBugReport = async function(bugID, signal) {
3946
3946
  };
3947
3947
 
3948
3948
  export { AnthropicAdapter, BucketClassCommercial, BucketClassGeneric, BusinessError, Client, DefaultRetryPolicy, ErrAuthDenied, ErrBrowserOpen, ErrDiscovery, ErrRegistration, ErrSSLProxy, ErrTimeout, ErrTokenExchange, EventAuthURL, EventComplete, EventError, FileTokenStore, FilterStatusAdminBypass, FilterStatusDisabledByFlag, FilterStatusFallbackMissingUser, FilterStatusFallbackNoBuckets, FilterStatusFallbackTkdistError, FilterStatusFallbackTkdistSkew, FilterStatusInternalBypass, FilterStatusOK, FilterStatusUnknown, HTTPError, InMemoryTokenStore, LocalStorageTokenStore, ModelNotFoundError, NetworkError, OpenAIAdapter, OrderTerminalError, ProviderFormat, RateLimitError, ScopeAI, ScopeAccount, ScopeEntitlements, ScopeModels, ScopeModelsChat, ScopeProfile, ScopeSkillStore, ScopeSkills, ScopeTokenPackages, ScopeTools, ScopeToolsExecute, ScopeWallet, ScopeWalletReadonly, ServerToolTypeWebSearch, StreamError, ThinkingHigh, ThinkingHighMinMaxTokens, ThinkingMax, ThinkingMaxFallbackMaxTokens, ThinkingOff, allScopes, anthropicResponseTextContent, anthropicResponseThinkingContent, anthropicResponseToolUseBlocks, apiResponseBusinessError, apiResponseGetMessage, authorize, bucketInfoIsCommercial, bucketRowIsCommercial, buildBetas, commerceScopes, computeBackoff, defaultRetryable, defaultSafeToRetry, discover, effectivePolicy, exchangeCode, extractAnthropicBlockMeta, getAdapter, getAdapterForModel, isSSLError, modelScopes, newFileTokenStore, newThinkingConfig, newTokenSet, newWebSearchTool, parseNotificationEvent, parseSettlement, parseSourcesEvent, refreshToken, register, revokeToken, sanitize_exports as sanitize, skillScopes, tokenSetIsExpired, uniqueMerge };
3949
- //# sourceMappingURL=index.js.map
3950
- //# sourceMappingURL=index.js.map
3949
+ //# sourceMappingURL=index.mjs.map
3950
+ //# sourceMappingURL=index.mjs.map