@inkeep/agents-core 0.35.12 → 0.36.1

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.
@@ -2,6 +2,7 @@ import * as better_auth_plugins from 'better-auth/plugins';
2
2
  import * as _better_auth_sso from '@better-auth/sso';
3
3
  import * as zod from 'zod';
4
4
  import * as better_auth from 'better-auth';
5
+ import { BetterAuthAdvancedOptions } from 'better-auth';
5
6
  import { GoogleOptions } from 'better-auth/social-providers';
6
7
  import { D as DatabaseClient } from '../client-HrEgt7wv.js';
7
8
  import 'drizzle-orm/node-postgres';
@@ -68,12 +69,14 @@ interface BetterAuthConfig {
68
69
  socialProviders?: {
69
70
  google?: GoogleOptions;
70
71
  };
72
+ advanced?: BetterAuthAdvancedOptions;
71
73
  }
72
74
  interface UserAuthConfig {
73
75
  ssoProviders?: SSOProviderConfig[];
74
76
  socialProviders?: {
75
77
  google?: GoogleOptions;
76
78
  };
79
+ advanced?: BetterAuthAdvancedOptions;
77
80
  }
78
81
  declare function createAuth(config: BetterAuthConfig): better_auth.Auth<{
79
82
  baseURL: string;
@@ -94,9 +97,31 @@ declare function createAuth(config: BetterAuthConfig): better_auth.Auth<{
94
97
  updateAge: number;
95
98
  };
96
99
  advanced: {
100
+ ipAddress?: {
101
+ ipAddressHeaders?: string[];
102
+ disableIpTracking?: boolean;
103
+ } | undefined;
104
+ useSecureCookies?: boolean | undefined;
105
+ disableCSRFCheck?: boolean | undefined;
106
+ disableOriginCheck?: boolean | undefined;
97
107
  crossSubDomainCookies: {
98
- enabled: true;
108
+ enabled: boolean;
109
+ additionalCookies?: string[];
110
+ domain?: string;
99
111
  };
112
+ cookies?: {
113
+ [key: string]: {
114
+ name?: string;
115
+ attributes?: better_auth.CookieOptions;
116
+ };
117
+ } | undefined;
118
+ defaultCookieAttributes?: better_auth.CookieOptions | undefined;
119
+ cookiePrefix?: string | undefined;
120
+ database?: {
121
+ defaultFindManyLimit?: number;
122
+ useNumberId?: boolean;
123
+ generateId?: better_auth.GenerateIdFn | false | "serial" | "uuid";
124
+ } | undefined;
100
125
  };
101
126
  trustedOrigins: string[];
102
127
  plugins: [{
package/dist/auth/auth.js CHANGED
@@ -2,7 +2,7 @@ import { generateId } from '../chunk-4OISWRFK.js';
2
2
  import { ssoProvider } from '../chunk-NOPEANIU.js';
3
3
  import { ownerRole, adminRole, memberRole, ac } from '../chunk-VMSYBWFH.js';
4
4
  import { sso } from '@better-auth/sso';
5
- import { betterAuth } from 'better-auth';
5
+ import { betterAuth, env } from 'better-auth';
6
6
  import { drizzleAdapter } from 'better-auth/adapters/drizzle';
7
7
  import { organization } from 'better-auth/plugins';
8
8
  import { eq } from 'drizzle-orm';
@@ -54,9 +54,15 @@ function createAuth(config) {
54
54
  advanced: {
55
55
  crossSubDomainCookies: {
56
56
  enabled: true
57
- }
57
+ },
58
+ ...config.advanced
58
59
  },
59
- trustedOrigins: ["http://localhost:3000", "http://localhost:3002", config.baseURL],
60
+ trustedOrigins: [
61
+ "http://localhost:3000",
62
+ "http://localhost:3002",
63
+ env.INKEEP_AGENTS_MANAGE_UI_URL,
64
+ env.INKEEP_AGENTS_MANAGE_API_URL
65
+ ],
60
66
  plugins: [
61
67
  sso(),
62
68
  organization({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.35.12",
3
+ "version": "0.36.1",
4
4
  "description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",