Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

chore(deps): update the Linear SDK to 101.0.0 (#2563)

dependabot[bot]d2bbdbac95ac
diff --git a/sdk/typescript/package.json b/sdk/typescript/package.json
index e56f70fde..dea67b19c 100644
--- a/sdk/typescript/package.json
+++ b/sdk/typescript/package.json
@@ -87,7 +87,7 @@
"@inquirer/confirm": "6.3.5",
"@inquirer/input": "5.1.9",
"@inquirer/search": "4.3.6",
- "@linear/sdk": "100.0.0",
+ "@linear/sdk": "101.0.0",
"@octokit/core": "7.0.8",
"@openai/codex": "0.167.0",
"@openai/codex-sdk": "0.167.0",
diff --git a/sdk/typescript/pnpm-lock.yaml b/sdk/typescript/pnpm-lock.yaml
index fcc453172..116044f03 100644
--- a/sdk/typescript/pnpm-lock.yaml
+++ b/sdk/typescript/pnpm-lock.yaml
@@ -21,8 +21,8 @@ importers:
specifier: 4.3.6
version: 4.3.6(@types/[email protected])
'@linear/sdk':
- specifier: 100.0.0
- version: 100.0.0([email protected])
+ specifier: 101.0.0
+ version: 101.0.0([email protected])
'@octokit/core':
specifier: 7.0.8
version: 7.0.8
@@ -360,8 +360,8 @@ packages:
'@jsdevtools/[email protected]':
resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==}
- '@linear/[email protected]':
- resolution: {integrity: sha512-7+n+Xqo6yYtexeDfaFnmT9j7bapkKyjB5cV63STuG8N1Wnjb9vyhpwOpn+t0VE3emGE7ZNEu2Rz1FHSWD84raw==}
+ '@linear/[email protected]':
+ resolution: {integrity: sha512-pQMaZmh/ewEMR9QmSZDuY+5NQy+xYS3DJDjqLEqlqj35M71Xde9vMHuNijamDZGqG6CojtCSU6YjgIg14pw+1A==}
engines: {node: ^20.19.0 || >=22.12.0}
'@modelcontextprotocol/[email protected]':
@@ -1172,7 +1172,7 @@ snapshots:
'@jsdevtools/[email protected]': {}
dependencies:
'@graphql-typed-document-node/core': 3.2.0([email protected])
transitivePeerDependencies:
diff --git a/sdk/typescript/src/linear.ts b/sdk/typescript/src/linear.ts
index a121c35cd..d7fe9217a 100644
--- a/sdk/typescript/src/linear.ts
+++ b/sdk/typescript/src/linear.ts
@@ -1,4 +1,5 @@
import { parseJson } from "./value.js";
+import type { webcrypto } from "node:crypto";
import {
AuthenticationLinearError,
ForbiddenLinearError,
@@ -8,6 +9,16 @@ import {
import type { JsonObject } from "./config.js";
import { CodexSecurityError, errorMessage } from "./errors.js";
+// Linear's DPoP declarations use these global types even for Node-only clients.
+type NodeOnlyWebCrypto<T> = typeof globalThis extends { onmessage: unknown }
+ ? {}
+ : T;
+
+declare global {
+ interface JsonWebKey extends NodeOnlyWebCrypto<webcrypto.JsonWebKey> {}
+ interface CryptoKeyPair extends NodeOnlyWebCrypto<webcrypto.CryptoKeyPair> {}
+}
+
export type LinearClientFactory<
Method extends keyof LinearClient = "issue" | "projects",
> = (