From 4d7883d0b32b630f2fea03798e91251a4c013907 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 24 Sep 2026 20:02:49 +0000 Subject: [PATCH 1/2] ## Typescript SDK Changes: * `openrouter.scim.listGroups()`: `request` **Changed** --- .speakeasy/gen.lock | 38 +++++++++---------- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 16 ++++++++ .speakeasy/workflow.lock | 10 ++--- RELEASES.md | 12 +++++- .../operations/listscimgroupsrequest.mdx | 16 ++++---- jsr.json | 2 +- package.json | 18 ++++----- src/funcs/scimListGroups.ts | 2 + src/lib/config.ts | 4 +- src/models/operations/listscimgroups.ts | 14 +++++++ 11 files changed, 89 insertions(+), 45 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index fb9e1a346..ef31128c6 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: "" id: "" management: - docChecksum: ab69946f2aff5ad837eae4a3b5bf4e13 + docChecksum: a3dd573a8da6dfd5d6c614b984b00e73 docVersion: 1.0.0 speakeasyVersion: 1.787.0 generationVersion: 2.914.0 - releaseVersion: 1.3.25 - configChecksum: 31844d8f5cc4a3b7a8bc3c88857b475d + releaseVersion: 1.3.26 + configChecksum: 7b2629dded05a65bd575551906333c99 repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git installationURL: https://github.com/OpenRouterTeam/typescript-sdk published: true persistentEdits: - generation_id: 9f5f3547-3e7c-48d2-a3a9-0c8ba2cf62ee - pristine_commit_hash: 05f88e197e5b0faed549946323a3a5dfc9b432fe - pristine_tree_hash: 6ae38ae86827df6581f01bde1e5214079758c33b + generation_id: 0c108c34-5448-497f-9681-9d49ad5f2a9e + pristine_commit_hash: 1c830a69a24757a12f33495f66bda65346a136bc + pristine_tree_hash: 37d947b630e0cd8fcf44c8319aa5366c9aec6cec features: typescript: acceptHeaders: 2.81.2 @@ -9136,8 +9136,8 @@ trackedFiles: pristine_git_object: b37da4046ae7d32bb95e894c0bd11b7abbdb094f docs/models/operations/listscimgroupsrequest.mdx: id: e55a38cd82ce - last_write_checksum: sha1:b086cec80f4f874e168fd903bd97656f926ced29 - pristine_git_object: 8830c941f36e5a61204c54983a426a666a7ca6da + last_write_checksum: sha1:ec74c41c5386a406d5e181b64aa3ae8305245f60 + pristine_git_object: 81e5c45f41f754fa1e6233a2924831e6ac54ddd0 docs/models/operations/listscimgroupsresponse.mdx: id: 061ed874493a last_write_checksum: sha1:3acd017ce8c3b84f544c45bac5fb0bd6ab8f8b69 @@ -13858,12 +13858,12 @@ trackedFiles: pristine_git_object: 410efafd6a7f50d91ccb87131fedbe0c3d47e15a jsr.json: id: 7f6ab7767282 - last_write_checksum: sha1:2a9e38beaf98a3535f8b2ab40bf076faf3d8f8a5 - pristine_git_object: ed48b825571e53b13281c87210c0cf53414d95e3 + last_write_checksum: sha1:2c3c0d7ac06e7159bfdb287d7102cf75144dc2e4 + pristine_git_object: eaa99f74daef43db4601cbcea81a987c92842186 package.json: id: 7030d0b2f71b - last_write_checksum: sha1:656b225299df84319844bcff801d8ad27aec7250 - pristine_git_object: 77302f8f9e4a17aa570286156b1bffd0eb18479f + last_write_checksum: sha1:1556ef1a07de6692e5f99ad37f7f65968a1a1cb1 + pristine_git_object: 050ca2d8080471e34f92a098ac192575b083575f src/core.ts: id: f431fdbcd144 last_write_checksum: sha1:5aa66b0b6a5964f3eea7f3098c2eb3c0ee9c0131 @@ -14238,8 +14238,8 @@ trackedFiles: pristine_git_object: 1c739f0350864d678de9416fdd4adc4d417a6fce src/funcs/scimListGroups.ts: id: bf94e6973603 - last_write_checksum: sha1:73108f728f39f9e306d480564ab9308d8bd2138a - pristine_git_object: 454e25170fc8a956e2ca51e1e7ca594c83817a0b + last_write_checksum: sha1:031289e6e265a3fbfcc2df9afc625d5e582943a5 + pristine_git_object: ea6dc7d64a4ed832ddcabee448e44ab96ae0eace src/funcs/scimListMappings.ts: id: 5c9fe26dc2ff last_write_checksum: sha1:94945e1e2e7d043d07effbf3ea2ab9107a9415a5 @@ -14382,8 +14382,8 @@ trackedFiles: pristine_git_object: a187e58707bdb726ca2aff74941efe7493422d4e src/lib/config.ts: id: 320761608fb3 - last_write_checksum: sha1:23132c91ff606183237e30260cfd022991ee98bd - pristine_git_object: 8d20c1ccc9e61d6ed8b9dad1e1d184b37bc59084 + last_write_checksum: sha1:a9a8a099219ad91b32da0d67b366d67c003d7f4c + pristine_git_object: b11e174ae5ca0c60672201159ce0f9d093cffc26 src/lib/dlv.ts: id: b1988214835a last_write_checksum: sha1:eaac763b22717206a6199104e0403ed17a4e2711 @@ -16760,8 +16760,8 @@ trackedFiles: pristine_git_object: 6add01a116616266282320dd471da716a35b4c2d src/models/operations/listscimgroups.ts: id: f6a6cc9a951f - last_write_checksum: sha1:a8ab23f18dbd47fe7b5b78813c4af121ff490c7f - pristine_git_object: f8cbd73cc7cf5da0bf331986fef6365e6958614b + last_write_checksum: sha1:13264909ed0ea4937d7732844dfa9793ddfb09c7 + pristine_git_object: 76f7457be38af733c73dd7de01d8a24bf6305b79 src/models/operations/listvaultsecrets.ts: id: 6485557c7ef8 last_write_checksum: sha1:249cb0e75630b323dd956f4edca160c9ca825cdf @@ -21300,4 +21300,4 @@ examples: examplesVersion: 1.0.2 releaseNotes: | ## Typescript SDK Changes: - * `openrouter.interns.getInternDaemonAccess()`: **Added** + * `openrouter.scim.listGroups()`: `request` **Changed** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index e6d73c91f..31f8e1dcb 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true typescript: - version: 1.3.25 + version: 1.3.26 acceptHeaderEnum: false additionalDependencies: dependencies: diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 83e216643..e7a04533c 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -44193,6 +44193,22 @@ paths: maximum: 100 minimum: 1 type: 'integer' + - description: 'Exact match filter on display_name. Omitted or empty returns groups unfiltered by name (subject to offset/limit). When external_id is also present, both must match.' + in: 'query' + name: 'display_name' + required: false + schema: + description: 'Exact match filter on display_name. Omitted or empty returns groups unfiltered by name (subject to offset/limit). When external_id is also present, both must match.' + example: 'Engineering' + type: 'string' + - description: 'Exact match filter on external_id, e.g. the identity provider (such as Entra ID) group object ID. Omitted or empty returns groups unfiltered by external_id (subject to offset/limit). When display_name is also present, both must match.' + in: 'query' + name: 'external_id' + required: false + schema: + description: 'Exact match filter on external_id, e.g. the identity provider (such as Entra ID) group object ID. Omitted or empty returns groups unfiltered by external_id (subject to offset/limit). When display_name is also present, both must match.' + example: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' + type: 'string' responses: '200': content: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 8263c1d45..fd5d728d8 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:0a9fc7e0025f081567cab00ca767bd21955cb488a3afae687d8abf211dc1b91c - sourceBlobDigest: sha256:bb6d90ba4e50928975c056b74513286b06e3ace6fdf7e1084b8cde7b1a215579 + sourceRevisionDigest: sha256:bfd8629c1e7deb72fd4dcd1e87de881ad889e73389c31e1d33398d67a4f07698 + sourceBlobDigest: sha256:e1fc5d306e8fd78bb0266beb30a96d0b7338d85e9382b109952cb5e34defa1a3 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: openrouter: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:0a9fc7e0025f081567cab00ca767bd21955cb488a3afae687d8abf211dc1b91c - sourceBlobDigest: sha256:bb6d90ba4e50928975c056b74513286b06e3ace6fdf7e1084b8cde7b1a215579 + sourceRevisionDigest: sha256:bfd8629c1e7deb72fd4dcd1e87de881ad889e73389c31e1d33398d67a4f07698 + sourceBlobDigest: sha256:e1fc5d306e8fd78bb0266beb30a96d0b7338d85e9382b109952cb5e34defa1a3 codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples - codeSamplesRevisionDigest: sha256:166c68decd4084a8d63bfa5f1d2c7e7eaee7eeb558b3389faac5bac861fe381c + codeSamplesRevisionDigest: sha256:236fe72f7db84ffa86e1d7be4c324d3d4667b7a814be499fd80831239eb5b8f8 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.787.0 diff --git a/RELEASES.md b/RELEASES.md index c3ae43092..920c84fea 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4036,4 +4036,14 @@ Based on: ### Generated - [typescript v1.3.25] . ### Releases -- [NPM v1.3.25] https://www.npmjs.com/package/@openrouter/sdk/v/1.3.25 - . \ No newline at end of file +- [NPM v1.3.25] https://www.npmjs.com/package/@openrouter/sdk/v/1.3.25 - . + +## 2026-09-24 19:59:48 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v1.3.26] . +### Releases +- [NPM v1.3.26] https://www.npmjs.com/package/@openrouter/sdk/v/1.3.26 - . \ No newline at end of file diff --git a/docs/models/operations/listscimgroupsrequest.mdx b/docs/models/operations/listscimgroupsrequest.mdx index 8830c941f..81e5c45f4 100644 --- a/docs/models/operations/listscimgroupsrequest.mdx +++ b/docs/models/operations/listscimgroupsrequest.mdx @@ -12,10 +12,12 @@ let value: ListScimGroupsRequest = {}; ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -| `httpReferer` | *string* | :heavy_minus_sign: | The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
| | -| `appTitle` | *string* | :heavy_minus_sign: | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | -| `appCategories` | *string* | :heavy_minus_sign: | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | -| `offset` | *number* | :heavy_minus_sign: | Number of records to skip for pagination | 0 | -| `limit` | *number* | :heavy_minus_sign: | Maximum number of records to return (max 100) | 50 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `httpReferer` | *string* | :heavy_minus_sign: | The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
| | +| `appTitle` | *string* | :heavy_minus_sign: | The app display name allows you to customize how your app appears in OpenRouter's dashboard.
| | +| `appCategories` | *string* | :heavy_minus_sign: | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
| | +| `offset` | *number* | :heavy_minus_sign: | Number of records to skip for pagination | 0 | +| `limit` | *number* | :heavy_minus_sign: | Maximum number of records to return (max 100) | 50 | +| `displayName` | *string* | :heavy_minus_sign: | Exact match filter on display_name. Omitted or empty returns groups unfiltered by name (subject to offset/limit). When external_id is also present, both must match. | Engineering | +| `externalId` | *string* | :heavy_minus_sign: | Exact match filter on external_id, e.g. the identity provider (such as Entra ID) group object ID. Omitted or empty returns groups unfiltered by external_id (subject to offset/limit). When display_name is also present, both must match. | a1b2c3d4-e5f6-7890-abcd-ef1234567890 | \ No newline at end of file diff --git a/jsr.json b/jsr.json index ed48b8255..eaa99f74d 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@openrouter/sdk", - "version": "1.3.25", + "version": "1.3.26", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package.json b/package.json index 77302f8f9..050ca2d80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@openrouter/sdk", - "version": "1.3.25", + "version": "1.3.26", "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": [ @@ -21,8 +21,8 @@ "license": "Apache-2.0", "packageManager": "pnpm@10.22.0", "publishConfig": { - "access": "public", - "provenance": true + "provenance": true, + "access": "public" }, "type": "module", "main": "./esm/index.js", @@ -73,15 +73,15 @@ "lint": "eslint --cache --max-warnings=0 src", "build": "tsc && node scripts/unbarrel-imports.js", "prepublishOnly": "npm run build", - "compile": "tsc && node scripts/unbarrel-imports.js", - "prepare": "npm run build", - "test:transit": "exit 0", - "test:watch": "vitest --watch --project unit", - "postinstall": "node scripts/check-types.js || true", "test": "vitest --run --project unit", "test:e2e": "vitest --run --project e2e", "typecheck": "tsc --noEmit", - "typecheck:transit": "exit 0" + "typecheck:transit": "exit 0", + "test:transit": "exit 0", + "test:watch": "vitest --watch --project unit", + "compile": "tsc && node scripts/unbarrel-imports.js", + "postinstall": "node scripts/check-types.js || true", + "prepare": "npm run build" }, "peerDependencies": { diff --git a/src/funcs/scimListGroups.ts b/src/funcs/scimListGroups.ts index 454e25170..ea6dc7d64 100644 --- a/src/funcs/scimListGroups.ts +++ b/src/funcs/scimListGroups.ts @@ -110,6 +110,8 @@ async function $do( const path = pathToFunc("/scim/groups")(); const query = encodeFormQuery({ + "display_name": payload?.display_name, + "external_id": payload?.external_id, "limit": payload?.limit, "offset": payload?.offset, }); diff --git a/src/lib/config.ts b/src/lib/config.ts index 74c93f9b7..be2440c17 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.25", + sdkVersion: "1.3.26", genVersion: "2.914.0", - userAgent: "speakeasy-sdk/typescript 1.3.25 2.914.0 1.0.0 @openrouter/sdk", + userAgent: "speakeasy-sdk/typescript 1.3.26 2.914.0 1.0.0 @openrouter/sdk", } as const; diff --git a/src/models/operations/listscimgroups.ts b/src/models/operations/listscimgroups.ts index f8cbd73cc..76f7457be 100644 --- a/src/models/operations/listscimgroups.ts +++ b/src/models/operations/listscimgroups.ts @@ -60,6 +60,14 @@ export type ListScimGroupsRequest = { * Maximum number of records to return (max 100) */ limit?: number | undefined; + /** + * Exact match filter on display_name. Omitted or empty returns groups unfiltered by name (subject to offset/limit). When external_id is also present, both must match. + */ + displayName?: string | undefined; + /** + * Exact match filter on external_id, e.g. the identity provider (such as Entra ID) group object ID. Omitted or empty returns groups unfiltered by external_id (subject to offset/limit). When display_name is also present, both must match. + */ + externalId?: string | undefined; }; export type ListScimGroupsResponse = { @@ -73,6 +81,8 @@ export type ListScimGroupsRequest$Outbound = { appCategories?: string | undefined; offset: number | null; limit: number; + display_name?: string | undefined; + external_id?: string | undefined; }; /** @internal */ @@ -85,9 +95,13 @@ export const ListScimGroupsRequest$outboundSchema: z.ZodType< appCategories: z.string().optional(), offset: z.nullable(z.int().default(0)), limit: z.int().default(50), + displayName: z.string().optional(), + externalId: z.string().optional(), }).transform((v) => { return remap$(v, { httpReferer: "HTTP-Referer", + displayName: "display_name", + externalId: "external_id", }); }); From 6577d7b86b2eed406f02e7a238f258e640f01579 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Thu, 24 Sep 2026 20:03:00 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow