@anthropic-ai/sdk
Advanced tools
Comparing version 0.18.0 to 0.19.0
# Changelog | ||
## 0.19.0 (2024-03-19) | ||
Full Changelog: [sdk-v0.18.0...sdk-v0.19.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.18.0...sdk-v0.19.0) | ||
### Features | ||
* **vertex:** add support for overriding google auth ([#338](https://github.com/anthropics/anthropic-sdk-typescript/issues/338)) ([28d98c4](https://github.com/anthropics/anthropic-sdk-typescript/commit/28d98c487257a3c6b3c6d84597768d484fadb86d)) | ||
* **vertex:** api is no longer in private beta ([#344](https://github.com/anthropics/anthropic-sdk-typescript/issues/344)) ([892127c](https://github.com/anthropics/anthropic-sdk-typescript/commit/892127cdac059eee11c1a322a5512f9250868023)) | ||
### Bug Fixes | ||
* **internal:** make toFile use input file's options ([#343](https://github.com/anthropics/anthropic-sdk-typescript/issues/343)) ([2dc2174](https://github.com/anthropics/anthropic-sdk-typescript/commit/2dc217441d6da8f2192b3e81b03c985383b6816e)) | ||
### Chores | ||
* **internal:** update generated pragma comment ([#341](https://github.com/anthropics/anthropic-sdk-typescript/issues/341)) ([fd60f63](https://github.com/anthropics/anthropic-sdk-typescript/commit/fd60f63d5e5cd978b287d66fd95deabe2ff089d2)) | ||
### Documentation | ||
* fix typo in CONTRIBUTING.md ([#340](https://github.com/anthropics/anthropic-sdk-typescript/issues/340)) ([ba9f3fa](https://github.com/anthropics/anthropic-sdk-typescript/commit/ba9f3faa5e3d116fce232d81f554b2f95f573ec8)) | ||
## 0.18.0 (2024-03-13) | ||
@@ -4,0 +28,0 @@ |
"use strict"; | ||
// File generated from our OpenAPI spec by Stainless. | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -4,0 +4,0 @@ exports.InternalServerError = exports.RateLimitError = exports.UnprocessableEntityError = exports.ConflictError = exports.NotFoundError = exports.PermissionDeniedError = exports.AuthenticationError = exports.BadRequestError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIUserAbortError = exports.APIError = exports.AnthropicError = void 0; |
"use strict"; | ||
// File generated from our OpenAPI spec by Stainless. | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
@@ -4,0 +4,0 @@ if (k2 === undefined) k2 = k; |
{ | ||
"name": "@anthropic-ai/sdk", | ||
"version": "0.18.0", | ||
"version": "0.19.0", | ||
"description": "The official TypeScript library for the Anthropic API", | ||
@@ -5,0 +5,0 @@ "author": "Anthropic <support@anthropic.com>", |
"use strict"; | ||
// File generated from our OpenAPI spec by Stainless. | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -4,0 +4,0 @@ exports.APIResource = void 0; |
"use strict"; | ||
// File generated from our OpenAPI spec by Stainless. | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -4,0 +4,0 @@ exports.Completions = void 0; |
"use strict"; | ||
// File generated from our OpenAPI spec by Stainless. | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -4,0 +4,0 @@ exports.Messages = exports.Completions = void 0; |
"use strict"; | ||
// File generated from our OpenAPI spec by Stainless. | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -4,0 +4,0 @@ exports.Messages = exports.MessageStream = void 0; |
"use strict"; | ||
// File generated from our OpenAPI spec by Stainless. | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=top-level.js.map |
@@ -1,2 +0,2 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
@@ -3,0 +3,0 @@ import { castToError, Headers } from './core'; |
@@ -1,2 +0,2 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
@@ -3,0 +3,0 @@ import * as Core from './core'; |
@@ -1,2 +0,2 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
@@ -3,0 +3,0 @@ import * as Core from "./core"; |
@@ -1,2 +0,2 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
@@ -3,0 +3,0 @@ import * as Core from "../core"; |
@@ -1,2 +0,2 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
@@ -3,0 +3,0 @@ export { |
@@ -1,2 +0,2 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
@@ -3,0 +3,0 @@ import * as Core from "../core"; |
@@ -1,3 +0,3 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
export {}; |
@@ -105,3 +105,3 @@ import { type RequestOptions } from './core'; | ||
name?: string | null | undefined, | ||
options: FilePropertyBag | undefined = {}, | ||
options?: FilePropertyBag | undefined, | ||
): Promise<FileLike> { | ||
@@ -111,2 +111,5 @@ // If it's a promise, resolve it. | ||
// Use the file's options if there isn't one provided | ||
options ??= isFileLike(value) ? { lastModified: value.lastModified, type: value.type } : {}; | ||
if (isResponseLike(value)) { | ||
@@ -113,0 +116,0 @@ const blob = await value.blob(); |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '0.18.0'; // x-release-please-version | ||
export const VERSION = '0.19.0'; // x-release-please-version |
@@ -43,5 +43,7 @@ "use strict"; | ||
*/ | ||
async function toFile(value, name, options = {}) { | ||
async function toFile(value, name, options) { | ||
// If it's a promise, resolve it. | ||
value = await value; | ||
// Use the file's options if there isn't one provided | ||
options ?? (options = (0, exports.isFileLike)(value) ? { lastModified: value.lastModified, type: value.type } : {}); | ||
if ((0, exports.isResponseLike)(value)) { | ||
@@ -48,0 +50,0 @@ const blob = await value.blob(); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.18.0"; | ||
export declare const VERSION = "0.19.0"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '0.18.0'; // x-release-please-version | ||
exports.VERSION = '0.19.0'; // x-release-please-version | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
680845
10746