@inkeep/agents-manage-api 0.35.5 → 0.35.7

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.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as hono from 'hono';
2
2
  import { Hono } from 'hono';
3
3
  import * as hono_types from 'hono/types';
4
+ import * as better_auth_social_providers from 'better-auth/social-providers';
4
5
  import * as better_auth_adapters from 'better-auth/adapters';
5
6
  import * as better_auth from 'better-auth';
6
7
  import { ServerConfig, CredentialStore } from '@inkeep/agents-core';
@@ -37,6 +38,9 @@ declare const auth: better_auth.Auth<{
37
38
  requireEmailVerification: false;
38
39
  autoSignIn: true;
39
40
  };
41
+ socialProviders: {
42
+ google: better_auth_social_providers.GoogleOptions;
43
+ } | undefined;
40
44
  session: {
41
45
  expiresIn: number;
42
46
  updateAge: number;
package/dist/index.js CHANGED
@@ -11980,7 +11980,8 @@ function createManagementAuth(userAuthConfig) {
11980
11980
  baseURL: env.INKEEP_AGENTS_MANAGE_API_URL || "http://localhost:3002",
11981
11981
  secret: env.BETTER_AUTH_SECRET || "development-secret-change-in-production",
11982
11982
  dbClient: dbClient_default,
11983
- ...userAuthConfig?.ssoProviders && { ssoProviders: userAuthConfig.ssoProviders }
11983
+ ...userAuthConfig?.ssoProviders && { ssoProviders: userAuthConfig.ssoProviders },
11984
+ ...userAuthConfig?.socialProviders && { socialProviders: userAuthConfig.socialProviders }
11984
11985
  });
11985
11986
  }
11986
11987
  var ssoProviders = await Promise.all([
@@ -11990,10 +11991,19 @@ var ssoProviders = await Promise.all([
11990
11991
  clientSecret: process.env.AUTH0_CLIENT_SECRET
11991
11992
  }) : null
11992
11993
  ]);
11994
+ var socialProviders = process.env.PUBLIC_GOOGLE_CLIENT_ID && process.env.GOOGLE_CLIENT_SECRET ? {
11995
+ google: {
11996
+ prompt: "select_account",
11997
+ display: "popup",
11998
+ clientId: process.env.PUBLIC_GOOGLE_CLIENT_ID,
11999
+ clientSecret: process.env.GOOGLE_CLIENT_SECRET
12000
+ }
12001
+ } : void 0;
11993
12002
  var auth = createManagementAuth({
11994
12003
  ssoProviders: ssoProviders.filter(
11995
12004
  (p2) => p2 !== null
11996
- )
12005
+ ),
12006
+ socialProviders
11997
12007
  });
11998
12008
  var app26 = createManagementHono(defaultConfig, defaultRegistry, auth);
11999
12009
  if (env.ENVIRONMENT !== "test") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-manage-api",
3
- "version": "0.35.5",
3
+ "version": "0.35.7",
4
4
  "description": "Agents Manage API for Inkeep Agent Framework - handles CRUD operations and OAuth",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "openid-client": "^6.6.4",
25
25
  "pino": "^9.7.0",
26
26
  "zod": "^4.1.11",
27
- "@inkeep/agents-core": "^0.35.5"
27
+ "@inkeep/agents-core": "^0.35.7"
28
28
  },
29
29
  "optionalDependencies": {
30
30
  "keytar": "^7.9.0"