@inkeep/agents-core 0.68.2 → 0.68.4
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.d.ts +227 -227
- package/dist/auth/auth-types.d.ts +10 -2
- package/dist/auth/auth-types.js +2 -0
- package/dist/auth/auth-validation-schemas.d.ts +137 -137
- package/dist/auth/auth.js +15 -5
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/data-access/manage/agents.d.ts +20 -20
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +4 -4
- package/dist/data-access/manage/skills.d.ts +7 -7
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +8 -8
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +6 -6
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +4 -4
- package/dist/data-access/runtime/conversations.d.ts +12 -12
- package/dist/data-access/runtime/feedback.d.ts +6 -6
- package/dist/data-access/runtime/messages.d.ts +21 -21
- package/dist/data-access/runtime/organizations.js +1 -0
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/tasks.d.ts +3 -3
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +413 -413
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/schemas/skills.d.ts +17 -17
- package/dist/validation/schemas.d.ts +1522 -1522
- package/package.json +1 -1
|
@@ -2,19 +2,21 @@ import { AgentsRunDatabaseClient } from "../db/runtime/runtime-client.js";
|
|
|
2
2
|
import * as pg0 from "pg";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { BetterAuthAdvancedOptions } from "better-auth";
|
|
5
|
-
import { GoogleOptions } from "better-auth/social-providers";
|
|
5
|
+
import { GoogleOptions, MicrosoftOptions } from "better-auth/social-providers";
|
|
6
6
|
|
|
7
7
|
//#region src/auth/auth-types.d.ts
|
|
8
|
-
type AuthMethodType = 'email-password' | 'google' | 'sso';
|
|
8
|
+
type AuthMethodType = 'email-password' | 'google' | 'microsoft' | 'sso';
|
|
9
9
|
declare const authMethodTypeSchema: z.ZodEnum<{
|
|
10
10
|
"email-password": "email-password";
|
|
11
11
|
google: "google";
|
|
12
|
+
microsoft: "microsoft";
|
|
12
13
|
sso: "sso";
|
|
13
14
|
}>;
|
|
14
15
|
declare const methodOptionSchema: z.ZodObject<{
|
|
15
16
|
method: z.ZodEnum<{
|
|
16
17
|
"email-password": "email-password";
|
|
17
18
|
google: "google";
|
|
19
|
+
microsoft: "microsoft";
|
|
18
20
|
sso: "sso";
|
|
19
21
|
}>;
|
|
20
22
|
providerId: z.ZodOptional<z.ZodString>;
|
|
@@ -33,6 +35,7 @@ declare const orgAuthInfoSchema: z.ZodObject<{
|
|
|
33
35
|
method: z.ZodEnum<{
|
|
34
36
|
"email-password": "email-password";
|
|
35
37
|
google: "google";
|
|
38
|
+
microsoft: "microsoft";
|
|
36
39
|
sso: "sso";
|
|
37
40
|
}>;
|
|
38
41
|
providerId: z.ZodOptional<z.ZodString>;
|
|
@@ -53,6 +56,7 @@ declare const authLookupResponseSchema: z.ZodObject<{
|
|
|
53
56
|
method: z.ZodEnum<{
|
|
54
57
|
"email-password": "email-password";
|
|
55
58
|
google: "google";
|
|
59
|
+
microsoft: "microsoft";
|
|
56
60
|
sso: "sso";
|
|
57
61
|
}>;
|
|
58
62
|
providerId: z.ZodOptional<z.ZodString>;
|
|
@@ -115,6 +119,8 @@ declare const allowedAuthMethodSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
115
119
|
method: z.ZodLiteral<"email-password">;
|
|
116
120
|
}, z.core.$strip>, z.ZodObject<{
|
|
117
121
|
method: z.ZodLiteral<"google">;
|
|
122
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
123
|
+
method: z.ZodLiteral<"microsoft">;
|
|
118
124
|
}, z.core.$strip>, z.ZodObject<{
|
|
119
125
|
method: z.ZodLiteral<"sso">;
|
|
120
126
|
providerId: z.ZodString;
|
|
@@ -156,6 +162,7 @@ interface BetterAuthConfig {
|
|
|
156
162
|
cookieDomain?: string;
|
|
157
163
|
socialProviders?: {
|
|
158
164
|
google?: GoogleOptions;
|
|
165
|
+
microsoft?: MicrosoftOptions;
|
|
159
166
|
};
|
|
160
167
|
advanced?: BetterAuthAdvancedOptions;
|
|
161
168
|
emailService?: EmailServiceConfig;
|
|
@@ -163,6 +170,7 @@ interface BetterAuthConfig {
|
|
|
163
170
|
interface UserAuthConfig {
|
|
164
171
|
socialProviders?: {
|
|
165
172
|
google?: GoogleOptions;
|
|
173
|
+
microsoft?: MicrosoftOptions;
|
|
166
174
|
};
|
|
167
175
|
advanced?: BetterAuthAdvancedOptions;
|
|
168
176
|
}
|
package/dist/auth/auth-types.js
CHANGED
|
@@ -4,6 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
const authMethodTypeSchema = z.enum([
|
|
5
5
|
"email-password",
|
|
6
6
|
"google",
|
|
7
|
+
"microsoft",
|
|
7
8
|
"sso"
|
|
8
9
|
]);
|
|
9
10
|
const methodOptionSchema = z.object({
|
|
@@ -22,6 +23,7 @@ const authLookupResponseSchema = z.object({ organizations: z.array(orgAuthInfoSc
|
|
|
22
23
|
const allowedAuthMethodSchema = z.discriminatedUnion("method", [
|
|
23
24
|
z.object({ method: z.literal("email-password") }),
|
|
24
25
|
z.object({ method: z.literal("google") }),
|
|
26
|
+
z.object({ method: z.literal("microsoft") }),
|
|
25
27
|
z.object({
|
|
26
28
|
method: z.literal("sso"),
|
|
27
29
|
providerId: z.string(),
|