@better-auth/cimd 1.7.0-rc.5 → 1.7.0

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.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { ClientDiscovery, ClientMetadataResourceFetch, OAuthClientMetadata, SchemaClient, Scope } from "@better-auth/oauth-provider";
2
+ import * as _$better_auth0 from "better-auth";
2
3
  import { GenericEndpointContext } from "@better-auth/core";
4
+
3
5
  //#region src/types.d.ts
4
6
  type CimdMetadataProfile = "mcp-2026-07-28";
5
7
  interface CimdClientCreatedEvent {
@@ -231,7 +233,7 @@ declare function createCimdClientDiscovery(options: CimdOptions): ClientDiscover
231
233
  declare const cimd: (options: CimdOptions) => {
232
234
  id: "cimd";
233
235
  version: string;
234
- init(ctx: import("better-auth").AuthContext): void;
236
+ init(ctx: _$better_auth0.AuthContext): void;
235
237
  };
236
238
  //#endregion
237
239
  export { type CimdClientCreatedEvent, type CimdClientRefreshedEvent, type CimdMetadataFetchPolicy, type CimdMetadataProfile, type CimdMetadataValidationOptions, type CimdMetadataValidationResult, type CimdOptions, cimd, createCimdClientDiscovery, isCimdClientIdUrlCandidate, validateCimdMetadata, validateClientIdUrl };
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import { BetterAuthError } from "@better-auth/core/error";
7
7
  import { toExpJWT } from "better-auth/plugins";
8
8
  //#region src/validate-metadata-document.ts
9
9
  const DOT_SEGMENT_RE = /\/(?:\.|%2e)(?:\.|%2e)?(?:\/|$|#|\?)/i;
10
- const SYMMETRIC_AUTH_METHODS = /* @__PURE__ */ new Set([
10
+ const SYMMETRIC_AUTH_METHODS = new Set([
11
11
  "client_secret_post",
12
12
  "client_secret_basic",
13
13
  "client_secret_jwt"
@@ -110,7 +110,7 @@ function validateCimdMetadata(clientIdUrl, raw, options = {}) {
110
110
  valid: false,
111
111
  error: `metadata document MUST NOT contain "${field}"`
112
112
  };
113
- const ALLOWED_AUTH_METHODS = /* @__PURE__ */ new Set(["none", "private_key_jwt"]);
113
+ const ALLOWED_AUTH_METHODS = new Set(["none", "private_key_jwt"]);
114
114
  if (typeof doc.token_endpoint_auth_method === "string") {
115
115
  if (SYMMETRIC_AUTH_METHODS.has(doc.token_endpoint_auth_method)) return {
116
116
  valid: false,
@@ -705,7 +705,7 @@ function createCimdResolver(cimdOptions) {
705
705
  }
706
706
  //#endregion
707
707
  //#region src/version.ts
708
- const PACKAGE_VERSION = "1.7.0-rc.5";
708
+ const PACKAGE_VERSION = "1.7.0";
709
709
  //#endregion
710
710
  //#region src/index.ts
711
711
  /**
package/dist/node.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { ClientMetadataResourceFetch } from "@better-auth/oauth-provider";
2
+
2
3
  //#region src/node.d.ts
3
4
  /**
4
5
  * Fetch a CIMD-owned HTTPS resource with resolve-once DNS validation and
package/dist/node.mjs CHANGED
@@ -4,7 +4,7 @@ import { request } from "node:https";
4
4
  import { isIP } from "node:net";
5
5
  import { Readable } from "node:stream";
6
6
  //#region src/node.ts
7
- const BODY_FORBIDDEN_RESPONSE_STATUSES = /* @__PURE__ */ new Set([
7
+ const BODY_FORBIDDEN_RESPONSE_STATUSES = new Set([
8
8
  204,
9
9
  205,
10
10
  304
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/cimd",
3
- "version": "1.7.0-rc.5",
3
+ "version": "1.7.0",
4
4
  "description": "Client ID Metadata Document plugin for Better Auth",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -57,17 +57,17 @@
57
57
  "@modelcontextprotocol/client": "2.0.0",
58
58
  "@modelcontextprotocol/server": "2.0.0",
59
59
  "listhen": "^1.9.0",
60
- "tsdown": "0.22.7",
61
- "@better-auth/core": "1.7.0-rc.5",
62
- "@better-auth/mcp": "1.7.0-rc.5",
63
- "@better-auth/oauth-provider": "1.7.0-rc.5",
64
- "better-auth": "1.7.0-rc.5"
60
+ "tsdown": "0.21.10",
61
+ "@better-auth/core": "1.7.0",
62
+ "@better-auth/mcp": "1.7.0",
63
+ "@better-auth/oauth-provider": "1.7.0",
64
+ "better-auth": "1.7.0"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "better-call": "1.4.0",
68
- "@better-auth/core": "^1.7.0-rc.5",
69
- "@better-auth/oauth-provider": "^1.7.0-rc.5",
70
- "better-auth": "^1.7.0-rc.5"
68
+ "@better-auth/core": "^1.7.0",
69
+ "@better-auth/oauth-provider": "^1.7.0",
70
+ "better-auth": "^1.7.0"
71
71
  },
72
72
  "scripts": {
73
73
  "build": "tsdown",