@apicity/anthropic 0.4.2 → 0.4.3
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/dist/src/anthropic.d.ts +1 -1
- package/dist/src/index.d.ts +7 -7
- package/dist/src/sse.d.ts +1 -1
- package/dist/src/types.d.ts +3 -3
- package/package.json +1 -1
package/dist/src/anthropic.d.ts
CHANGED
package/dist/src/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { createAnthropic } from "./anthropic";
|
|
2
|
-
export { AnthropicError } from "./types";
|
|
3
|
-
export { withRetry, withFallback, withRateLimit, createRateLimiter, } from "./middleware";
|
|
4
|
-
export type { RetryOptions, FallbackOptions, RateLimiterOptions, RateLimiter, RateLimitOptions, } from "./middleware";
|
|
5
|
-
export { sseToIterable, parseAnthropicStream } from "./sse";
|
|
6
|
-
export type { SSEEvent } from "./sse";
|
|
7
|
-
export type { AnthropicOptions, AnthropicListParams, AnthropicListResponse, AnthropicCacheControl, AnthropicTextBlock, AnthropicImageSource, AnthropicImageBlock, AnthropicDocumentSource, AnthropicDocumentBlock, AnthropicToolUseBlock, AnthropicToolResultBlock, AnthropicThinkingBlock, AnthropicRedactedThinkingBlock, AnthropicServerToolUseBlock, AnthropicServerToolResultBlock, AnthropicFileBlock, AnthropicContentBlock, AnthropicMessage, AnthropicToolInputSchema, AnthropicCustomTool, AnthropicBashTool, AnthropicTextEditorTool, AnthropicWebSearchTool, AnthropicCodeExecutionTool, AnthropicTool, AnthropicToolChoice, AnthropicThinkingConfig, AnthropicMetadata, AnthropicMessageRequest, AnthropicUsage, AnthropicMessageResponse, AnthropicStreamMessageStart, AnthropicStreamContentBlockStart, AnthropicStreamTextDelta, AnthropicStreamInputJsonDelta, AnthropicStreamThinkingDelta, AnthropicStreamSignatureDelta, AnthropicStreamDelta, AnthropicStreamContentBlockDelta, AnthropicStreamContentBlockStop, AnthropicStreamMessageDelta, AnthropicStreamMessageStop, AnthropicStreamPing, AnthropicStreamError, AnthropicStreamEvent, AnthropicCountTokensRequest, AnthropicCountTokensResponse, AnthropicModelCapabilities, AnthropicModel, AnthropicModelListResponse, AnthropicBatchRequest, AnthropicBatchCreateRequest, AnthropicBatchRequestCounts, AnthropicBatch, AnthropicBatchListResponse, AnthropicBatchResultSuccess, AnthropicBatchResultErrored, AnthropicBatchResultCanceled, AnthropicBatchResultExpired, AnthropicBatchResultType, AnthropicBatchResultEntry, AnthropicBatchDeleteResponse, AnthropicFile, AnthropicFileListResponse, AnthropicFileDeleteResponse, AnthropicFileUploadRequest, AnthropicSkillFile, AnthropicSkill, AnthropicSkillsListParams, AnthropicSkillsListResponse, AnthropicSkillDeleteResponse, AnthropicSkillsCreateRequest, AnthropicSkillVersion, AnthropicSkillVersionsListParams, AnthropicSkillVersionsListResponse, AnthropicSkillVersionDeleteResponse, AnthropicSkillVersionsCreateRequest, AnthropicMessagesMethod, AnthropicCountTokensMethod, AnthropicBatchesMethod, AnthropicModelsNamespace, AnthropicFilesNamespace, AnthropicFilesUploadMethod, AnthropicSkillsCreateMethod, AnthropicSkillVersionsCreateMethod, AnthropicSkillVersionsNamespace, AnthropicSkillsNamespace, AnthropicV1Namespace, AnthropicProvider, } from "./types";
|
|
1
|
+
export { createAnthropic } from "./anthropic.js";
|
|
2
|
+
export { AnthropicError } from "./types.js";
|
|
3
|
+
export { withRetry, withFallback, withRateLimit, createRateLimiter, } from "./middleware.js";
|
|
4
|
+
export type { RetryOptions, FallbackOptions, RateLimiterOptions, RateLimiter, RateLimitOptions, } from "./middleware.js";
|
|
5
|
+
export { sseToIterable, parseAnthropicStream } from "./sse.js";
|
|
6
|
+
export type { SSEEvent } from "./sse.js";
|
|
7
|
+
export type { AnthropicOptions, AnthropicListParams, AnthropicListResponse, AnthropicCacheControl, AnthropicTextBlock, AnthropicImageSource, AnthropicImageBlock, AnthropicDocumentSource, AnthropicDocumentBlock, AnthropicToolUseBlock, AnthropicToolResultBlock, AnthropicThinkingBlock, AnthropicRedactedThinkingBlock, AnthropicServerToolUseBlock, AnthropicServerToolResultBlock, AnthropicFileBlock, AnthropicContentBlock, AnthropicMessage, AnthropicToolInputSchema, AnthropicCustomTool, AnthropicBashTool, AnthropicTextEditorTool, AnthropicWebSearchTool, AnthropicCodeExecutionTool, AnthropicTool, AnthropicToolChoice, AnthropicThinkingConfig, AnthropicMetadata, AnthropicMessageRequest, AnthropicUsage, AnthropicMessageResponse, AnthropicStreamMessageStart, AnthropicStreamContentBlockStart, AnthropicStreamTextDelta, AnthropicStreamInputJsonDelta, AnthropicStreamThinkingDelta, AnthropicStreamSignatureDelta, AnthropicStreamDelta, AnthropicStreamContentBlockDelta, AnthropicStreamContentBlockStop, AnthropicStreamMessageDelta, AnthropicStreamMessageStop, AnthropicStreamPing, AnthropicStreamError, AnthropicStreamEvent, AnthropicCountTokensRequest, AnthropicCountTokensResponse, AnthropicModelCapabilities, AnthropicModel, AnthropicModelListResponse, AnthropicBatchRequest, AnthropicBatchCreateRequest, AnthropicBatchRequestCounts, AnthropicBatch, AnthropicBatchListResponse, AnthropicBatchResultSuccess, AnthropicBatchResultErrored, AnthropicBatchResultCanceled, AnthropicBatchResultExpired, AnthropicBatchResultType, AnthropicBatchResultEntry, AnthropicBatchDeleteResponse, AnthropicFile, AnthropicFileListResponse, AnthropicFileDeleteResponse, AnthropicFileUploadRequest, AnthropicSkillFile, AnthropicSkill, AnthropicSkillsListParams, AnthropicSkillsListResponse, AnthropicSkillDeleteResponse, AnthropicSkillsCreateRequest, AnthropicSkillVersion, AnthropicSkillVersionsListParams, AnthropicSkillVersionsListResponse, AnthropicSkillVersionDeleteResponse, AnthropicSkillVersionsCreateRequest, AnthropicMessagesMethod, AnthropicCountTokensMethod, AnthropicBatchesMethod, AnthropicModelsNamespace, AnthropicFilesNamespace, AnthropicFilesUploadMethod, AnthropicSkillsCreateMethod, AnthropicSkillVersionsCreateMethod, AnthropicSkillVersionsNamespace, AnthropicSkillsNamespace, AnthropicV1Namespace, AnthropicProvider, } from "./types.js";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/sse.d.ts
CHANGED
package/dist/src/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { z } from "zod";
|
|
2
|
-
export type { AnthropicOptions, AnthropicCacheControl, AnthropicTextBlock, AnthropicImageSource, AnthropicImageBlock, AnthropicDocumentSource, AnthropicDocumentBlock, AnthropicToolUseBlock, AnthropicToolResultBlock, AnthropicThinkingBlock, AnthropicRedactedThinkingBlock, AnthropicServerToolUseBlock, AnthropicServerToolResultBlock, AnthropicFileBlock, AnthropicContentBlock, AnthropicMessage, AnthropicToolInputSchema, AnthropicCustomTool, AnthropicBashTool, AnthropicTextEditorTool, AnthropicWebSearchTool, AnthropicCodeExecutionTool, AnthropicTool, AnthropicToolChoice, AnthropicThinkingConfig, AnthropicMetadata, AnthropicMessageRequest, AnthropicCountTokensRequest, AnthropicBatchRequest, AnthropicBatchCreateRequest, AnthropicFileUploadRequest, AnthropicSkillFile, AnthropicSkillsCreateRequest, AnthropicSkillVersionsCreateRequest, } from "./zod";
|
|
2
|
+
export type { AnthropicOptions, AnthropicCacheControl, AnthropicTextBlock, AnthropicImageSource, AnthropicImageBlock, AnthropicDocumentSource, AnthropicDocumentBlock, AnthropicToolUseBlock, AnthropicToolResultBlock, AnthropicThinkingBlock, AnthropicRedactedThinkingBlock, AnthropicServerToolUseBlock, AnthropicServerToolResultBlock, AnthropicFileBlock, AnthropicContentBlock, AnthropicMessage, AnthropicToolInputSchema, AnthropicCustomTool, AnthropicBashTool, AnthropicTextEditorTool, AnthropicWebSearchTool, AnthropicCodeExecutionTool, AnthropicTool, AnthropicToolChoice, AnthropicThinkingConfig, AnthropicMetadata, AnthropicMessageRequest, AnthropicCountTokensRequest, AnthropicBatchRequest, AnthropicBatchCreateRequest, AnthropicFileUploadRequest, AnthropicSkillFile, AnthropicSkillsCreateRequest, AnthropicSkillVersionsCreateRequest, } from "./zod.js";
|
|
3
3
|
export interface AnthropicListParams {
|
|
4
4
|
after_id?: string;
|
|
5
5
|
before_id?: string;
|
|
@@ -11,7 +11,7 @@ export interface AnthropicListResponse<T> {
|
|
|
11
11
|
last_id: string | null;
|
|
12
12
|
has_more: boolean;
|
|
13
13
|
}
|
|
14
|
-
import type { AnthropicContentBlock } from "./zod";
|
|
14
|
+
import type { AnthropicContentBlock } from "./zod.js";
|
|
15
15
|
export interface AnthropicUsage {
|
|
16
16
|
input_tokens: number;
|
|
17
17
|
output_tokens: number;
|
|
@@ -246,7 +246,7 @@ export interface AnthropicSkillVersionDeleteResponse {
|
|
|
246
246
|
id: string;
|
|
247
247
|
type: "skill_version_deleted";
|
|
248
248
|
}
|
|
249
|
-
import type { AnthropicMessageRequest, AnthropicCountTokensRequest, AnthropicBatchCreateRequest, AnthropicSkillFile } from "./zod";
|
|
249
|
+
import type { AnthropicMessageRequest, AnthropicCountTokensRequest, AnthropicBatchCreateRequest, AnthropicSkillFile } from "./zod.js";
|
|
250
250
|
export interface AnthropicPostMessagesStreamMethod {
|
|
251
251
|
(req: AnthropicMessageRequest, signal?: AbortSignal): Promise<AsyncIterable<AnthropicStreamEvent>>;
|
|
252
252
|
schema: z.ZodType<AnthropicMessageRequest>;
|