From 67b91ff1d2b2f61bedacc4751e099defd2f95b8f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 21 Sep 2026 22:36:50 +0000 Subject: [PATCH 1/2] ## Typescript SDK Changes: * `openrouter.interns.createIntern()`: `error.status[415]` **Added** * `openrouter.interns.deleteIntern()`: `error.status[415]` **Added** * `openrouter.interns.updateIntern()`: `error.status[415]` **Added** * `openrouter.interns.provisionIntern()`: `error.status[415]` **Added** * `openrouter.interns.suspendIntern()`: `error.status[415]` **Added** --- .speakeasy/gen.lock | 60 +++++++++++++----------- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 71 +++++++++++++++++++++++++++-- .speakeasy/workflow.lock | 10 ++-- RELEASES.md | 12 ++++- docs/sdks/interns/README.mdx | 56 +++++++++++------------ jsr.json | 2 +- package.json | 14 +++--- src/funcs/internsCreateIntern.ts | 4 +- src/funcs/internsDeleteIntern.ts | 4 +- src/funcs/internsProvisionIntern.ts | 2 +- src/funcs/internsSuspendIntern.ts | 2 +- src/funcs/internsUpdateIntern.ts | 4 +- src/lib/config.ts | 4 +- src/sdk/interns.ts | 6 +-- 15 files changed, 167 insertions(+), 86 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 25cd09420..e1657cfe6 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: "" id: "" management: - docChecksum: 06fa5a83c138ab93f3be133b799312c7 + docChecksum: 7517a610f26006c40fa8d2b825e0db3c docVersion: 1.0.0 speakeasyVersion: 1.787.0 generationVersion: 2.914.0 - releaseVersion: 1.3.12 - configChecksum: c56edd738a9f9c8de5243d5df73f88c9 + releaseVersion: 1.3.13 + configChecksum: 432b643c88ebff531e5659d6ecd90937 repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git installationURL: https://github.com/OpenRouterTeam/typescript-sdk published: true persistentEdits: - generation_id: 4540c479-a7e8-44d2-ba31-f4971a538107 - pristine_commit_hash: f40621216d9ce54520aa12fa9fe8cbef21edbde1 - pristine_tree_hash: 04d24cf0fae3c8c3013f6f88684951e529140665 + generation_id: 8dd0e5f9-b6a6-4068-89f3-eda1b20724d6 + pristine_commit_hash: 96b5c34a0d41ab3da935d305f90425def6d99b62 + pristine_tree_hash: 6743c6c4243039121cbf37eee58137da0ee1e8d5 features: typescript: acceptHeaders: 2.81.2 @@ -13682,8 +13682,8 @@ trackedFiles: pristine_git_object: 15b7b4c80d50dd3aa0f7adc3ab4d9fb03a8efaa7 docs/sdks/interns/README.mdx: id: 2f8a053ffe78 - last_write_checksum: sha1:072e518137d1e4148c5d7b055f16830b048751c7 - pristine_git_object: 6f5a9900f6c6162b24a5cb8eb5042b373223a0ed + last_write_checksum: sha1:fec76210874b6a4e5444fb640d3ab59a2a7a20c9 + pristine_git_object: 3b6412fe44b650c8f6a9eaaffabb09b3f903c117 docs/sdks/models/README.mdx: id: 58f1ca464e0b last_write_checksum: sha1:dbae6f74244ab3e9fe38e075ab67f926f33ef87d @@ -13810,12 +13810,12 @@ trackedFiles: pristine_git_object: 410efafd6a7f50d91ccb87131fedbe0c3d47e15a jsr.json: id: 7f6ab7767282 - last_write_checksum: sha1:75ae8ffa5855048ceb4c3d3c907f33e1d0c0c560 - pristine_git_object: 82a67645933eb3310d4d71c4648ff92d7b6c8461 + last_write_checksum: sha1:1f70273caef48dadcd4e74021ce0af4d7f10b82f + pristine_git_object: 8e37695481be1e66291cf2e104686a49a0bf94ed package.json: id: 7030d0b2f71b - last_write_checksum: sha1:aedabb34cf8b170e9ae6558adbd71e2ec6621da1 - pristine_git_object: cd795bfdc86329ea38741027a50db2adb183078c + last_write_checksum: sha1:6f2068285cd84f66666c14d392ff72ccbcf7a4fb + pristine_git_object: d8973f284c9a38541acd26dc427c2feb6b92b695 src/core.ts: id: f431fdbcd144 last_write_checksum: sha1:5aa66b0b6a5964f3eea7f3098c2eb3c0ee9c0131 @@ -14042,12 +14042,12 @@ trackedFiles: pristine_git_object: b73e7606a33f6e568e0e0f0f6edc6a2cf683b295 src/funcs/internsCreateIntern.ts: id: 74ff6cd8e4b0 - last_write_checksum: sha1:4fda15c193e8c750e366940931884db9c9e80496 - pristine_git_object: 466bac46005019d63f121858cc675cc3bb9c51e2 + last_write_checksum: sha1:552a9f984d38571d742dead0f6a3834cbfb85959 + pristine_git_object: 8081c1a61184489df9b770ba4381831301a0063f src/funcs/internsDeleteIntern.ts: id: 7eb35f20da18 - last_write_checksum: sha1:300fd8f81c357019b3ca8b0e9b4030d1b92ce5cd - pristine_git_object: 24c8284553fc20c4777a2228a38d60aeb5f2cfcb + last_write_checksum: sha1:4659c2c43af730669c2e4163d142c0275c6b9ce8 + pristine_git_object: ffda40ba9072eb0aa1bea616b31f212617e404ce src/funcs/internsGetIntern.ts: id: 484b04c35876 last_write_checksum: sha1:95616ff94e6ef4fe3248885d25aa71a6b01f5186 @@ -14058,16 +14058,16 @@ trackedFiles: pristine_git_object: 48cd8682b2086de133ae3bb3c85c9b42a87a8b23 src/funcs/internsProvisionIntern.ts: id: 38001699f102 - last_write_checksum: sha1:625d4fbcaa3a69a4b3f5dd1dab03a1683acbac1f - pristine_git_object: adb6b70af323f428b439815bb6157201e181f751 + last_write_checksum: sha1:b2cf753b37585b3e9b29f565d86b3eb348fd2ef7 + pristine_git_object: 6d022614a1853377a0d2534f07d2d311a70cc221 src/funcs/internsSuspendIntern.ts: id: 5928ef254c09 - last_write_checksum: sha1:43344f743770825e70975019e5095734e87a38bb - pristine_git_object: 51d4e415cd551acd4d8cf1c3cd2e7f6411faaf1f + last_write_checksum: sha1:5c8412c56b26feee1a898aa34252ffcaa3cb46b4 + pristine_git_object: e1668e0fb434a4b48d824f10e384050c4803ed44 src/funcs/internsUpdateIntern.ts: id: 1d493469e489 - last_write_checksum: sha1:315c1cc51ab6eafcfee8eb7ddf884e695aa5ea9b - pristine_git_object: d22be9b1ea235580a301f7a4908cb2e2df33fc18 + last_write_checksum: sha1:b6662f9745d583855df6f1cc37d91894f021ba0a + pristine_git_object: 23c9a21b02d88278d1fdc8316e813aeedb25009e src/funcs/modelsCount.ts: id: 371adfc67b48 last_write_checksum: sha1:b5207eb21e0d08e0f1384059f5507fdb2eb16fe0 @@ -14326,8 +14326,8 @@ trackedFiles: pristine_git_object: a187e58707bdb726ca2aff74941efe7493422d4e src/lib/config.ts: id: 320761608fb3 - last_write_checksum: sha1:fa54d9123e57a3683003d3b9fa91a80eb0ad3df3 - pristine_git_object: 69eba9baa04cfeb0bc0b8402171fab81df19f5c2 + last_write_checksum: sha1:2e0d62d16450d9c3e24cbd3b8764e26dc306d7d2 + pristine_git_object: 60442df80113dfd7438249b8a38f5ccb44deaa47 src/lib/dlv.ts: id: b1988214835a last_write_checksum: sha1:eaac763b22717206a6199104e0403ed17a4e2711 @@ -17828,8 +17828,8 @@ trackedFiles: pristine_git_object: 5c82fe389f888827f98aa52788b850ef43422e07 src/sdk/interns.ts: id: fc3b4e6c5008 - last_write_checksum: sha1:42fdc5da9b7f4c4b2cb4a4940df5d036d4505dee - pristine_git_object: 7c0cb773a1747cbde5c01aa8588cbad9b1693f76 + last_write_checksum: sha1:d2cd2f18a800456031d8ccf4b49f94bcc13c3d03 + pristine_git_object: 55631fab051499b9c009aed40cf8187451d72d2b src/sdk/models.ts: id: 8c761ab180fd last_write_checksum: sha1:0c5e5cefb7079fc69eb11ef157af6d2cb5255933 @@ -21184,4 +21184,10 @@ examples: "529": application/json: {"error": {"code": 529, "message": "Provider returned error"}} examplesVersion: 1.0.2 -releaseNotes: "## Typescript SDK Changes:\n* `openrouter.interns.chat()`: `response.status[202]` **Added** (Breaking ⚠️)\n* `openrouter.byok.list()`: `response.data[].declaredZdr` **Added**\n* `openrouter.byok.create()`: \n * `request.createByokKeyRequest.declaredZdr` **Added**\n * `response.data.declaredZdr` **Added**\n* `openrouter.byok.get()`: `response.data.declaredZdr` **Added**\n* `openrouter.byok.update()`: \n * `request.updateByokKeyRequest.declaredZdr` **Added**\n * `response.data.declaredZdr` **Added**\n" +releaseNotes: | + ## Typescript SDK Changes: + * `openrouter.interns.createIntern()`: `error.status[415]` **Added** + * `openrouter.interns.deleteIntern()`: `error.status[415]` **Added** + * `openrouter.interns.updateIntern()`: `error.status[415]` **Added** + * `openrouter.interns.provisionIntern()`: `error.status[415]` **Added** + * `openrouter.interns.suspendIntern()`: `error.status[415]` **Added** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index ad46aee60..94dfde27d 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true typescript: - version: 1.3.12 + version: 1.3.13 acceptHeaderEnum: false additionalDependencies: dependencies: diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index f893d908c..b434b27f2 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -36645,7 +36645,7 @@ paths: tags: - 'Interns' post: - description: 'Creates an intern in an explicit workspace. The operation also creates its private vault. It can start provisioning immediately or wait for a later provision call. A retry with the same idempotency key and body resumes unfinished work. The request body is capped at 1048576 bytes and a larger body is refused with 413. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.' + description: 'Creates an intern in an explicit workspace. The operation also creates its private vault. It can start provisioning immediately or wait for a later provision call. A retry with the same idempotency key and body resumes unfinished work. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.' operationId: 'createIntern' parameters: - description: 'Key that makes retries resume the same create operation, from 1 through 255 characters. An empty or longer key is refused with 400. Without the header, the server derives a stable key from the request body.' @@ -36809,6 +36809,19 @@ paths: schema: $ref: '#/components/schemas/InternLifecycleError' description: 'The request body is larger than 1048576 bytes.' + '415': + content: + application/json: + example: + error: + code: 415 + message: 'Request body must be sent as application/json' + metadata: + reason: 'unsupported_media_type' + retryable: false + schema: + $ref: '#/components/schemas/InternLifecycleError' + description: 'The request body is non-empty and its Content-Type is not application/json.' '500': content: application/json: @@ -36846,7 +36859,7 @@ paths: - $ref: "#/components/parameters/AppCategories" /interns/{internId}: delete: - description: 'Starts safe teardown of the intern, its runtime and its private vault. The body is optional. Send `{"acknowledge_workspace_loss": true}` to delete a `destroy_failed` intern whose `last_failure_message` names `workspace_archive_failed`, accepting that its workspace is not backed up. The request body is capped at 1048576 bytes and a larger body is refused with 413. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.' + description: 'Starts safe teardown of the intern, its runtime and its private vault. The body is optional. Send `{"acknowledge_workspace_loss": true}` to delete a `destroy_failed` intern whose `last_failure_message` names `workspace_archive_failed`, accepting that its workspace is not backed up. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.' operationId: 'deleteIntern' parameters: - description: 'ID of an intern visible to the authenticated API key.' @@ -36960,6 +36973,19 @@ paths: schema: $ref: '#/components/schemas/InternLifecycleError' description: 'The request body is larger than 1048576 bytes.' + '415': + content: + application/json: + example: + error: + code: 415 + message: 'Request body must be sent as application/json' + metadata: + reason: 'unsupported_media_type' + retryable: false + schema: + $ref: '#/components/schemas/InternLifecycleError' + description: 'The request body is non-empty and its Content-Type is not application/json.' '500': content: application/json: @@ -37091,7 +37117,7 @@ paths: tags: - 'Interns' patch: - description: 'Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.' + description: 'Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.' operationId: 'updateIntern' parameters: - description: 'ID of an intern visible to the authenticated API key.' @@ -37219,6 +37245,19 @@ paths: schema: $ref: '#/components/schemas/InternLifecycleError' description: 'The request body is larger than 1048576 bytes.' + '415': + content: + application/json: + example: + error: + code: 415 + message: 'Request body must be sent as application/json' + metadata: + reason: 'unsupported_media_type' + retryable: false + schema: + $ref: '#/components/schemas/InternLifecycleError' + description: 'The request body is non-empty and its Content-Type is not application/json.' '500': content: application/json: @@ -37590,6 +37629,19 @@ paths: schema: $ref: '#/components/schemas/InternLifecycleError' description: 'The request body is larger than 1048576 bytes.' + '415': + content: + application/json: + example: + error: + code: 415 + message: 'Request body must be sent as application/json' + metadata: + reason: 'unsupported_media_type' + retryable: false + schema: + $ref: '#/components/schemas/InternLifecycleError' + description: 'The request body is non-empty and its Content-Type is not application/json.' '500': content: application/json: @@ -37733,6 +37785,19 @@ paths: schema: $ref: '#/components/schemas/InternLifecycleError' description: 'The request body is larger than 1048576 bytes.' + '415': + content: + application/json: + example: + error: + code: 415 + message: 'Request body must be sent as application/json' + metadata: + reason: 'unsupported_media_type' + retryable: false + schema: + $ref: '#/components/schemas/InternLifecycleError' + description: 'The request body is non-empty and its Content-Type is not application/json.' '500': content: application/json: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 8ca0f4afb..7ee598985 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.787.0 sources: OpenRouter API: sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:298cdfd22c0878b702bd0fea51a216a541e509313fba93ecabbbe129eae699bb - sourceBlobDigest: sha256:820d1ac61c95b8e23fd644fc613bf148a872c8d93039c3ba76c36138afb2834e + sourceRevisionDigest: sha256:d16f9d292ca0a350a108ed1567c387a8a5ec1de2ff51799db8e3b3d4dcd5d6e8 + sourceBlobDigest: sha256:323a4ab66e9b678edc016c8d0f61f73d322295dd9bd8dfbf365fd89caf402d59 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: openrouter: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:298cdfd22c0878b702bd0fea51a216a541e509313fba93ecabbbe129eae699bb - sourceBlobDigest: sha256:820d1ac61c95b8e23fd644fc613bf148a872c8d93039c3ba76c36138afb2834e + sourceRevisionDigest: sha256:d16f9d292ca0a350a108ed1567c387a8a5ec1de2ff51799db8e3b3d4dcd5d6e8 + sourceBlobDigest: sha256:323a4ab66e9b678edc016c8d0f61f73d322295dd9bd8dfbf365fd89caf402d59 codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples - codeSamplesRevisionDigest: sha256:2682f730f0dedb0d32338624ada9faac0c87b898815848dc151664354899ca99 + codeSamplesRevisionDigest: sha256:cc8f6dc925ba9b0ac9d0f3900012a9313c9481158a0cc85928b2d81793100a4e workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.787.0 diff --git a/RELEASES.md b/RELEASES.md index ac87e62b0..20f8d1085 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -3916,4 +3916,14 @@ Based on: ### Generated - [typescript v1.3.12] . ### Releases -- [NPM v1.3.12] https://www.npmjs.com/package/@openrouter/sdk/v/1.3.12 - . \ No newline at end of file +- [NPM v1.3.12] https://www.npmjs.com/package/@openrouter/sdk/v/1.3.12 - . + +## 2026-09-21 22:34:12 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v1.3.13] . +### Releases +- [NPM v1.3.13] https://www.npmjs.com/package/@openrouter/sdk/v/1.3.13 - . \ No newline at end of file diff --git a/docs/sdks/interns/README.mdx b/docs/sdks/interns/README.mdx index 6f5a9900f..3b6412fe4 100644 --- a/docs/sdks/interns/README.mdx +++ b/docs/sdks/interns/README.mdx @@ -96,7 +96,7 @@ run(); ## createIntern -Creates an intern in an explicit workspace. The operation also creates its private vault. It can start provisioning immediately or wait for a later provision call. A retry with the same idempotency key and body resumes unfinished work. The request body is capped at 1048576 bytes and a larger body is refused with 413. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. +Creates an intern in an explicit workspace. The operation also creates its private vault. It can start provisioning immediately or wait for a later provision call. A retry with the same idempotency key and body resumes unfinished work. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. ### Example Usage @@ -176,15 +176,15 @@ run(); ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.InternLifecycleError | 400, 401, 403, 404, 408, 409, 413 | application/json | -| errors.InternLifecycleError | 500, 502 | application/json | -| errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.InternLifecycleError | 400, 401, 403, 404, 408, 409, 413, 415 | application/json | +| errors.InternLifecycleError | 500, 502 | application/json | +| errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* | ## deleteIntern -Starts safe teardown of the intern, its runtime and its private vault. The body is optional. Send `{"acknowledge_workspace_loss": true}` to delete a `destroy_failed` intern whose `last_failure_message` names `workspace_archive_failed`, accepting that its workspace is not backed up. The request body is capped at 1048576 bytes and a larger body is refused with 413. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. +Starts safe teardown of the intern, its runtime and its private vault. The body is optional. Send `{"acknowledge_workspace_loss": true}` to delete a `destroy_failed` intern whose `last_failure_message` names `workspace_archive_failed`, accepting that its workspace is not backed up. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. ### Example Usage @@ -262,11 +262,11 @@ run(); ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.InternLifecycleError | 400, 401, 403, 404, 408, 409, 413 | application/json | -| errors.InternLifecycleError | 500, 502 | application/json | -| errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.InternLifecycleError | 400, 401, 403, 404, 408, 409, 413, 415 | application/json | +| errors.InternLifecycleError | 500, 502 | application/json | +| errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* | ## getIntern @@ -350,7 +350,7 @@ run(); ## updateIntern -Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. +Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. ### Example Usage @@ -430,11 +430,11 @@ run(); ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.InternLifecycleError | 400, 401, 403, 404, 408, 409, 413 | application/json | -| errors.InternLifecycleError | 500 | application/json | -| errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.InternLifecycleError | 400, 401, 403, 404, 408, 409, 413, 415 | application/json | +| errors.InternLifecycleError | 500 | application/json | +| errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* | ## provisionIntern @@ -510,11 +510,11 @@ run(); ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.InternLifecycleError | 400, 401, 403, 404, 408, 409, 413 | application/json | -| errors.InternLifecycleError | 500, 502 | application/json | -| errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.InternLifecycleError | 400, 401, 403, 404, 408, 409, 413, 415 | application/json | +| errors.InternLifecycleError | 500, 502 | application/json | +| errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* | ## suspendIntern @@ -590,11 +590,11 @@ run(); ### Errors -| Error Type | Status Code | Content Type | -| --------------------------------- | --------------------------------- | --------------------------------- | -| errors.InternLifecycleError | 400, 401, 403, 404, 408, 409, 413 | application/json | -| errors.InternLifecycleError | 500, 502 | application/json | -| errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| errors.InternLifecycleError | 400, 401, 403, 404, 408, 409, 413, 415 | application/json | +| errors.InternLifecycleError | 500, 502 | application/json | +| errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* | ## chat diff --git a/jsr.json b/jsr.json index 82a676459..8e3769548 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@openrouter/sdk", - "version": "1.3.12", + "version": "1.3.13", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package.json b/package.json index 0c11c0883..05f7e4a44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@openrouter/sdk", - "version": "1.3.12", + "version": "1.3.13", "author": "OpenRouter", "description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.", "keywords": [ @@ -73,15 +73,15 @@ "lint": "eslint --cache --max-warnings=0 src", "build": "tsc", "prepublishOnly": "npm run build", - "typecheck": "tsc --noEmit", "compile": "tsc", - "prepare": "npm run build", - "test:transit": "exit 0", - "test:watch": "vitest --watch --project unit", - "typecheck:transit": "exit 0", "postinstall": "node scripts/check-types.js || true", "test": "vitest --run --project unit", - "test:e2e": "vitest --run --project e2e" + "test:e2e": "vitest --run --project e2e", + "test:watch": "vitest --watch --project unit", + "prepare": "npm run build", + "test:transit": "exit 0", + "typecheck": "tsc --noEmit", + "typecheck:transit": "exit 0" }, "peerDependencies": {}, "devDependencies": { diff --git a/src/funcs/internsCreateIntern.ts b/src/funcs/internsCreateIntern.ts index 466bac460..8081c1a61 100644 --- a/src/funcs/internsCreateIntern.ts +++ b/src/funcs/internsCreateIntern.ts @@ -32,7 +32,7 @@ import { Result } from "../types/fp.js"; * Create an intern * * @remarks - * Creates an intern in an explicit workspace. The operation also creates its private vault. It can start provisioning immediately or wait for a later provision call. A retry with the same idempotency key and body resumes unfinished work. The request body is capped at 1048576 bytes and a larger body is refused with 413. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. + * Creates an intern in an explicit workspace. The operation also creates its private vault. It can start provisioning immediately or wait for a later provision call. A retry with the same idempotency key and body resumes unfinished work. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. * * If set, this operation will use {@link Security.apiKey} from the global security. */ @@ -196,7 +196,7 @@ async function $do( >( M.json([200, 201], models.Intern$inboundSchema), M.jsonErr( - [400, 401, 403, 404, 408, 409, 413], + [400, 401, 403, 404, 408, 409, 413, 415], errors.InternLifecycleError$inboundSchema, ), M.jsonErr([500, 502], errors.InternLifecycleError$inboundSchema), diff --git a/src/funcs/internsDeleteIntern.ts b/src/funcs/internsDeleteIntern.ts index 24c828455..ffda40ba9 100644 --- a/src/funcs/internsDeleteIntern.ts +++ b/src/funcs/internsDeleteIntern.ts @@ -32,7 +32,7 @@ import { Result } from "../types/fp.js"; * Delete an intern * * @remarks - * Starts safe teardown of the intern, its runtime and its private vault. The body is optional. Send `{"acknowledge_workspace_loss": true}` to delete a `destroy_failed` intern whose `last_failure_message` names `workspace_archive_failed`, accepting that its workspace is not backed up. The request body is capped at 1048576 bytes and a larger body is refused with 413. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. + * Starts safe teardown of the intern, its runtime and its private vault. The body is optional. Send `{"acknowledge_workspace_loss": true}` to delete a `destroy_failed` intern whose `last_failure_message` names `workspace_archive_failed`, accepting that its workspace is not backed up. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. * * If set, this operation will use {@link Security.apiKey} from the global security. */ @@ -197,7 +197,7 @@ async function $do( >( M.json(202, models.DeleteInternResponse$inboundSchema), M.jsonErr( - [400, 401, 403, 404, 408, 409, 413], + [400, 401, 403, 404, 408, 409, 413, 415], errors.InternLifecycleError$inboundSchema, ), M.jsonErr([500, 502], errors.InternLifecycleError$inboundSchema), diff --git a/src/funcs/internsProvisionIntern.ts b/src/funcs/internsProvisionIntern.ts index adb6b70af..6d022614a 100644 --- a/src/funcs/internsProvisionIntern.ts +++ b/src/funcs/internsProvisionIntern.ts @@ -194,7 +194,7 @@ async function $do( >( M.json(202, models.ProvisionInternResponse$inboundSchema), M.jsonErr( - [400, 401, 403, 404, 408, 409, 413], + [400, 401, 403, 404, 408, 409, 413, 415], errors.InternLifecycleError$inboundSchema, ), M.jsonErr([500, 502], errors.InternLifecycleError$inboundSchema), diff --git a/src/funcs/internsSuspendIntern.ts b/src/funcs/internsSuspendIntern.ts index 51d4e415c..e1668e0fb 100644 --- a/src/funcs/internsSuspendIntern.ts +++ b/src/funcs/internsSuspendIntern.ts @@ -194,7 +194,7 @@ async function $do( >( M.json(200, models.SuspendInternResponse$inboundSchema), M.jsonErr( - [400, 401, 403, 404, 408, 409, 413], + [400, 401, 403, 404, 408, 409, 413, 415], errors.InternLifecycleError$inboundSchema, ), M.jsonErr([500, 502], errors.InternLifecycleError$inboundSchema), diff --git a/src/funcs/internsUpdateIntern.ts b/src/funcs/internsUpdateIntern.ts index d22be9b1e..23c9a21b0 100644 --- a/src/funcs/internsUpdateIntern.ts +++ b/src/funcs/internsUpdateIntern.ts @@ -32,7 +32,7 @@ import { Result } from "../types/fp.js"; * Update an intern * * @remarks - * Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. + * Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. * * If set, this operation will use {@link Security.apiKey} from the global security. */ @@ -197,7 +197,7 @@ async function $do( >( M.json(200, models.Intern$inboundSchema), M.jsonErr( - [400, 401, 403, 404, 408, 409, 413], + [400, 401, 403, 404, 408, 409, 413, 415], errors.InternLifecycleError$inboundSchema, ), M.jsonErr(500, errors.InternLifecycleError$inboundSchema), diff --git a/src/lib/config.ts b/src/lib/config.ts index 5bd5262e2..46866a4fa 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -79,7 +79,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0.0", - sdkVersion: "1.3.12", + sdkVersion: "1.3.13", genVersion: "2.914.0", - userAgent: "speakeasy-sdk/typescript 1.3.12 2.914.0 1.0.0 @openrouter/sdk", + userAgent: "speakeasy-sdk/typescript 1.3.13 2.914.0 1.0.0 @openrouter/sdk", } as const; diff --git a/src/sdk/interns.ts b/src/sdk/interns.ts index 7c0cb773a..55631fab0 100644 --- a/src/sdk/interns.ts +++ b/src/sdk/interns.ts @@ -38,7 +38,7 @@ export class Interns extends ClientSDK { * Create an intern * * @remarks - * Creates an intern in an explicit workspace. The operation also creates its private vault. It can start provisioning immediately or wait for a later provision call. A retry with the same idempotency key and body resumes unfinished work. The request body is capped at 1048576 bytes and a larger body is refused with 413. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. + * Creates an intern in an explicit workspace. The operation also creates its private vault. It can start provisioning immediately or wait for a later provision call. A retry with the same idempotency key and body resumes unfinished work. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. */ async createIntern( request: operations.CreateInternRequest, @@ -55,7 +55,7 @@ export class Interns extends ClientSDK { * Delete an intern * * @remarks - * Starts safe teardown of the intern, its runtime and its private vault. The body is optional. Send `{"acknowledge_workspace_loss": true}` to delete a `destroy_failed` intern whose `last_failure_message` names `workspace_archive_failed`, accepting that its workspace is not backed up. The request body is capped at 1048576 bytes and a larger body is refused with 413. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. + * Starts safe teardown of the intern, its runtime and its private vault. The body is optional. Send `{"acknowledge_workspace_loss": true}` to delete a `destroy_failed` intern whose `last_failure_message` names `workspace_archive_failed`, accepting that its workspace is not backed up. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. */ async deleteIntern( request: operations.DeleteInternRequest, @@ -89,7 +89,7 @@ export class Interns extends ClientSDK { * Update an intern * * @remarks - * Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. + * Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required. */ async updateIntern( request: operations.UpdateInternRequest, From 61d08c0d7291274255cc9834e366f2fa764ff6c2 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Mon, 21 Sep 2026 22:36:58 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow