@inkeep/agents-core 0.0.0-dev-20251124234228 → 0.0.0-dev-20251125022835

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.
@@ -1 +1 @@
1
- export { account, invitation, member, organization, session, ssoProvider, user, verification } from '../chunk-NOPEANIU.js';
1
+ export { account, invitation, member, organization, session, ssoProvider, user, verification } from '../chunk-NFTJ5JBY.js';
@@ -1,6 +1,6 @@
1
- import { user, session, account, organization, member, invitation, verification } from '../chunk-NOPEANIU.js';
2
- import { external_exports } from '../chunk-OUXC23J7.js';
1
+ import { user, session, account, organization, member, invitation, verification } from '../chunk-NFTJ5JBY.js';
3
2
  import { createSelectSchema, createInsertSchema } from 'drizzle-zod';
3
+ import { z } from 'zod';
4
4
 
5
5
  var UserSelectSchema = createSelectSchema(user);
6
6
  var UserInsertSchema = createInsertSchema(user);
@@ -16,24 +16,24 @@ var InvitationSelectSchema = createSelectSchema(invitation);
16
16
  var InvitationInsertSchema = createInsertSchema(invitation);
17
17
  var VerificationSelectSchema = createSelectSchema(verification);
18
18
  var VerificationInsertSchema = createInsertSchema(verification);
19
- var UserOrganizationSchema = external_exports.object({
20
- id: external_exports.string(),
21
- userId: external_exports.string(),
22
- organizationId: external_exports.string(),
23
- role: external_exports.string(),
24
- createdAt: external_exports.union([external_exports.string(), external_exports.date()]).transform((val) => val instanceof Date ? val.toISOString() : val),
25
- organizationName: external_exports.string().nullable(),
26
- organizationSlug: external_exports.string().nullable()
19
+ var UserOrganizationSchema = z.object({
20
+ id: z.string(),
21
+ userId: z.string(),
22
+ organizationId: z.string(),
23
+ role: z.string(),
24
+ createdAt: z.union([z.string(), z.date()]).transform((val) => val instanceof Date ? val.toISOString() : val),
25
+ organizationName: z.string().nullable(),
26
+ organizationSlug: z.string().nullable()
27
27
  });
28
- var UserOrganizationsResponseSchema = external_exports.array(UserOrganizationSchema);
29
- var AddUserToOrganizationRequestSchema = external_exports.object({
30
- organizationId: external_exports.string(),
31
- role: external_exports.string().default("member")
28
+ var UserOrganizationsResponseSchema = z.array(UserOrganizationSchema);
29
+ var AddUserToOrganizationRequestSchema = z.object({
30
+ organizationId: z.string(),
31
+ role: z.string().default("member")
32
32
  });
33
- var AddUserToOrganizationResponseSchema = external_exports.object({
34
- organizationId: external_exports.string(),
35
- role: external_exports.string(),
36
- createdAt: external_exports.string()
33
+ var AddUserToOrganizationResponseSchema = z.object({
34
+ organizationId: z.string(),
35
+ role: z.string(),
36
+ createdAt: z.string()
37
37
  });
38
38
 
39
39
  export { AccountInsertSchema, AccountSelectSchema, AddUserToOrganizationRequestSchema, AddUserToOrganizationResponseSchema, InvitationInsertSchema, InvitationSelectSchema, MemberInsertSchema, MemberSelectSchema, OrganizationInsertSchema, OrganizationSelectSchema, SessionInsertSchema, SessionSelectSchema, UserInsertSchema, UserOrganizationSchema, UserOrganizationsResponseSchema, UserSelectSchema, VerificationInsertSchema, VerificationSelectSchema };
package/dist/auth/auth.js CHANGED
@@ -1,6 +1,6 @@
1
- import { generateId } from '../chunk-K3UNCRSA.js';
2
- import { env } from '../chunk-NMBNWFIZ.js';
3
- import { ssoProvider } from '../chunk-NOPEANIU.js';
1
+ import { generateId } from '../chunk-ROXPFQAM.js';
2
+ import { env } from '../chunk-LL6F3EAR.js';
3
+ import { ssoProvider } from '../chunk-NFTJ5JBY.js';
4
4
  import { ownerRole, adminRole, memberRole, ac } from '../chunk-VMSYBWFH.js';
5
5
  import { sso } from '@better-auth/sso';
6
6
  import { betterAuth } from 'better-auth';
@@ -1,11 +1,10 @@
1
1
  import { getLogger } from './chunk-DN4B564Y.js';
2
- import { external_exports } from './chunk-OUXC23J7.js';
2
+ import { z } from 'zod';
3
3
 
4
- // src/utils/schema-conversion.ts
5
4
  var logger = getLogger("schema-conversion");
6
5
  function convertZodToJsonSchema(zodSchema) {
7
6
  try {
8
- const jsonSchema = external_exports.toJSONSchema(zodSchema);
7
+ const jsonSchema = z.toJSONSchema(zodSchema);
9
8
  if (jsonSchema.$schema) {
10
9
  delete jsonSchema.$schema;
11
10
  }
@@ -27,7 +26,7 @@ var preview = (schema) => {
27
26
  };
28
27
  function convertZodToJsonSchemaWithPreview(zodSchema) {
29
28
  const jsonSchema = convertZodToJsonSchema(zodSchema);
30
- if (zodSchema instanceof external_exports.ZodObject && jsonSchema.properties) {
29
+ if (zodSchema instanceof z.ZodObject && jsonSchema.properties) {
31
30
  const shape = zodSchema.shape;
32
31
  for (const [key, fieldSchema] of Object.entries(shape)) {
33
32
  if (fieldSchema?._def?.inPreview === true) {
@@ -42,7 +41,7 @@ function isZodSchema(value) {
42
41
  }
43
42
  function extractPreviewFields(schema) {
44
43
  const previewFields = [];
45
- if (schema instanceof external_exports.ZodObject) {
44
+ if (schema instanceof z.ZodObject) {
46
45
  const shape = schema.shape;
47
46
  for (const [key, fieldSchema] of Object.entries(shape)) {
48
47
  if (fieldSchema?._def?.inPreview === true) {
@@ -1,7 +1,7 @@
1
1
  import { getLogger } from './chunk-DN4B564Y.js';
2
2
  import { CredentialStoreType } from './chunk-YFHT5M2R.js';
3
- import { external_exports } from './chunk-OUXC23J7.js';
4
3
  import { Nango } from '@nangohq/node';
4
+ import { z } from 'zod';
5
5
 
6
6
  // src/credential-stores/CredentialStoreRegistry.ts
7
7
  var CredentialStoreRegistry = class {
@@ -349,10 +349,10 @@ var InMemoryCredentialStore = class {
349
349
  }
350
350
  };
351
351
  var logger = getLogger("nango-credential-store");
352
- var CredentialKeySchema = external_exports.object({
353
- connectionId: external_exports.string().min(1, "connectionId must be a non-empty string"),
354
- providerConfigKey: external_exports.string().min(1, "providerConfigKey must be a non-empty string"),
355
- integrationDisplayName: external_exports.string().nullish()
352
+ var CredentialKeySchema = z.object({
353
+ connectionId: z.string().min(1, "connectionId must be a non-empty string"),
354
+ providerConfigKey: z.string().min(1, "providerConfigKey must be a non-empty string"),
355
+ integrationDisplayName: z.string().nullish()
356
356
  });
357
357
  function parseCredentialKey(key) {
358
358
  try {
@@ -1,5 +1,5 @@
1
- import { schema_exports, projects } from './chunk-OHZDHXP7.js';
2
- import { organization } from './chunk-NOPEANIU.js';
1
+ import { schema_exports, projects } from './chunk-PVRIMF6N.js';
2
+ import { organization } from './chunk-NFTJ5JBY.js';
3
3
  import { dirname, join } from 'path';
4
4
  import { fileURLToPath } from 'url';
5
5
  import { PGlite } from '@electric-sql/pglite';