@effect/ai-anthropic 0.11.4 → 0.11.5

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.
@@ -20,7 +20,7 @@ class MessagesPostParams extends /*#__PURE__*/S.Struct({
20
20
  })
21
21
  }) {}
22
22
  exports.MessagesPostParams = MessagesPostParams;
23
- class Model extends /*#__PURE__*/S.Union(/*#__PURE__*/S.Literal("claude-3-7-sonnet-latest"), /*#__PURE__*/S.Literal("claude-3-7-sonnet-20250219"), /*#__PURE__*/S.Literal("claude-3-5-haiku-latest"), /*#__PURE__*/S.Literal("claude-3-5-haiku-20241022"), /*#__PURE__*/S.Literal("claude-sonnet-4-20250514"), /*#__PURE__*/S.Literal("claude-sonnet-4-0"), /*#__PURE__*/S.Literal("claude-4-sonnet-20250514"), /*#__PURE__*/S.Literal("claude-3-5-sonnet-latest"), /*#__PURE__*/S.Literal("claude-3-5-sonnet-20241022"), /*#__PURE__*/S.Literal("claude-3-5-sonnet-20240620"), /*#__PURE__*/S.Literal("claude-opus-4-0"), /*#__PURE__*/S.Literal("claude-opus-4-20250514"), /*#__PURE__*/S.Literal("claude-4-opus-20250514"), /*#__PURE__*/S.Literal("claude-3-opus-latest"), /*#__PURE__*/S.Literal("claude-3-opus-20240229"), /*#__PURE__*/S.Literal("claude-3-sonnet-20240229"), /*#__PURE__*/S.Literal("claude-3-haiku-20240307"), /*#__PURE__*/S.Literal("claude-2.1"), /*#__PURE__*/S.Literal("claude-2.0")) {}
23
+ class Model extends /*#__PURE__*/S.Literal("claude-3-7-sonnet-latest", "claude-3-7-sonnet-20250219", "claude-3-5-haiku-latest", "claude-3-5-haiku-20241022", "claude-sonnet-4-20250514", "claude-sonnet-4-0", "claude-4-sonnet-20250514", "claude-3-5-sonnet-latest", "claude-3-5-sonnet-20241022", "claude-3-5-sonnet-20240620", "claude-opus-4-0", "claude-opus-4-20250514", "claude-4-opus-20250514", "claude-3-opus-latest", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-2.1", "claude-2.0") {}
24
24
  exports.Model = Model;
25
25
  class CacheControlEphemeralType extends /*#__PURE__*/S.Literal("ephemeral") {}
26
26
  exports.CacheControlEphemeralType = CacheControlEphemeralType;
@@ -531,7 +531,7 @@ exports.ResponseWebSearchResultLocationCitation = ResponseWebSearchResultLocatio
531
531
  class ResponseTextBlockType extends /*#__PURE__*/S.Literal("text") {}
532
532
  exports.ResponseTextBlockType = ResponseTextBlockType;
533
533
  class ResponseTextBlock extends /*#__PURE__*/S.Struct({
534
- "citations": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Union(/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(ResponseCharLocationCitation, ResponsePageLocationCitation, ResponseContentBlockLocationCitation, ResponseWebSearchResultLocationCitation)), S.Null)),
534
+ "citations": /*#__PURE__*/S.optional(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(ResponseCharLocationCitation, ResponsePageLocationCitation, ResponseContentBlockLocationCitation, ResponseWebSearchResultLocationCitation)))),
535
535
  "text": /*#__PURE__*/S.String.pipe(/*#__PURE__*/S.minLength(0), /*#__PURE__*/S.maxLength(5000000)),
536
536
  "type": ResponseTextBlockType
537
537
  }) {}
@@ -617,7 +617,7 @@ class Usage extends /*#__PURE__*/S.Struct({
617
617
  "cache_read_input_tokens": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Union(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0)), S.Null)),
618
618
  "input_tokens": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0)),
619
619
  "output_tokens": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0)),
620
- "server_tool_use": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Union(ServerToolUsage, S.Null)),
620
+ "server_tool_use": /*#__PURE__*/S.optional(/*#__PURE__*/S.NullOr(ServerToolUsage)),
621
621
  "service_tier": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Union(UsageServiceTierEnum, S.Null))
622
622
  }) {}
623
623
  exports.Usage = Usage;
@@ -1743,7 +1743,7 @@ exports.BetaResponseWebSearchResultLocationCitation = BetaResponseWebSearchResul
1743
1743
  class BetaResponseTextBlockType extends /*#__PURE__*/S.Literal("text") {}
1744
1744
  exports.BetaResponseTextBlockType = BetaResponseTextBlockType;
1745
1745
  class BetaResponseTextBlock extends /*#__PURE__*/S.Struct({
1746
- "citations": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Union(/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(BetaResponseCharLocationCitation, BetaResponsePageLocationCitation, BetaResponseContentBlockLocationCitation, BetaResponseWebSearchResultLocationCitation)), S.Null)),
1746
+ "citations": /*#__PURE__*/S.optional(/*#__PURE__*/S.NullOr(/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(BetaResponseCharLocationCitation, BetaResponsePageLocationCitation, BetaResponseContentBlockLocationCitation, BetaResponseWebSearchResultLocationCitation)))),
1747
1747
  "text": /*#__PURE__*/S.String.pipe(/*#__PURE__*/S.minLength(0), /*#__PURE__*/S.maxLength(5000000)),
1748
1748
  "type": BetaResponseTextBlockType
1749
1749
  }) {}
@@ -1896,7 +1896,7 @@ class BetaUsage extends /*#__PURE__*/S.Struct({
1896
1896
  "cache_read_input_tokens": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Union(/*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0)), S.Null)),
1897
1897
  "input_tokens": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0)),
1898
1898
  "output_tokens": /*#__PURE__*/S.Int.pipe(/*#__PURE__*/S.greaterThanOrEqualTo(0)),
1899
- "server_tool_use": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Union(BetaServerToolUsage, S.Null)),
1899
+ "server_tool_use": /*#__PURE__*/S.optional(/*#__PURE__*/S.NullOr(BetaServerToolUsage)),
1900
1900
  "service_tier": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Union(BetaUsageServiceTierEnum, S.Null))
1901
1901
  }) {}
1902
1902
  exports.BetaUsage = BetaUsage;