@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.
- package/dist/auth/auth-schema.js +1 -1
- package/dist/auth/auth-validation-schemas.js +18 -18
- package/dist/auth/auth.js +3 -3
- package/dist/{chunk-SSRRHYU4.js → chunk-7GZHUB4J.js} +4 -5
- package/dist/{chunk-MB2ZIPZS.js → chunk-FOK3JSQN.js} +5 -5
- package/dist/{chunk-K54FZSDH.js → chunk-I6IF7ZTL.js} +2 -2
- package/dist/{chunk-N7TIJHWC.js → chunk-K6GMXJPW.js} +313 -315
- package/dist/{chunk-NMBNWFIZ.js → chunk-LL6F3EAR.js} +11 -10
- package/dist/{chunk-OHZDHXP7.js → chunk-PVRIMF6N.js} +1 -1
- package/dist/{chunk-K3UNCRSA.js → chunk-ROXPFQAM.js} +39 -31
- package/dist/{chunk-6XW4J5LI.js → chunk-W3QDM7WH.js} +63 -67
- package/dist/{chunk-ATWIYWOU.js → chunk-ZEZCCHV7.js} +4 -5
- package/dist/client-exports.js +125 -126
- package/dist/constants/schema-validation/index.js +1 -1
- package/dist/credential-stores/index.js +1 -1
- package/dist/db/schema.js +2 -2
- package/dist/db/test-client.js +1 -1
- package/dist/index.js +20 -27
- package/dist/utils/schema-conversion.js +1 -1
- package/dist/validation/index.js +2 -2
- package/package.json +8 -4
- package/dist/chunk-CUM6BY2Y.js +0 -320
- package/dist/chunk-OUXC23J7.js +0 -12534
- /package/dist/{chunk-NOPEANIU.js → chunk-NFTJ5JBY.js} +0 -0
package/dist/auth/auth-schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { account, invitation, member, organization, session, ssoProvider, user, verification } from '../chunk-
|
|
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-
|
|
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 =
|
|
20
|
-
id:
|
|
21
|
-
userId:
|
|
22
|
-
organizationId:
|
|
23
|
-
role:
|
|
24
|
-
createdAt:
|
|
25
|
-
organizationName:
|
|
26
|
-
organizationSlug:
|
|
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 =
|
|
29
|
-
var AddUserToOrganizationRequestSchema =
|
|
30
|
-
organizationId:
|
|
31
|
-
role:
|
|
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 =
|
|
34
|
-
organizationId:
|
|
35
|
-
role:
|
|
36
|
-
createdAt:
|
|
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-
|
|
2
|
-
import { env } from '../chunk-
|
|
3
|
-
import { ssoProvider } from '../chunk-
|
|
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 {
|
|
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 =
|
|
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
|
|
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
|
|
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 =
|
|
353
|
-
connectionId:
|
|
354
|
-
providerConfigKey:
|
|
355
|
-
integrationDisplayName:
|
|
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-
|
|
2
|
-
import { organization } from './chunk-
|
|
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';
|