@inkeep/agents-manage-api 0.35.10 → 0.35.12
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/chunk-3C624FLK.js +12002 -0
- package/dist/factory.d.ts +36 -0
- package/dist/factory.js +1 -0
- package/dist/index.d.ts +8 -32
- package/dist/index.js +10 -11975
- package/package.json +10 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as hono from 'hono';
|
|
2
|
+
import { Hono } from 'hono';
|
|
3
|
+
import * as hono_types from 'hono/types';
|
|
4
|
+
import { ServerConfig, CredentialStore } from '@inkeep/agents-core';
|
|
5
|
+
import { createAuth, SSOProviderConfig, UserAuthConfig } from '@inkeep/agents-core/auth';
|
|
6
|
+
export { SSOProviderConfig, UserAuthConfig } from '@inkeep/agents-core/auth';
|
|
7
|
+
import { CredentialStoreRegistry } from '@inkeep/agents-core/credential-stores';
|
|
8
|
+
|
|
9
|
+
declare function createManagementHono(serverConfig: ServerConfig, credentialStores: CredentialStoreRegistry, auth: ReturnType<typeof createAuth> | null): Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">;
|
|
10
|
+
|
|
11
|
+
declare function initializeDefaultUser(authInstance?: ReturnType<typeof createAuth> | null): Promise<void>;
|
|
12
|
+
|
|
13
|
+
interface OIDCProviderOptions {
|
|
14
|
+
providerId: string;
|
|
15
|
+
clientId: string;
|
|
16
|
+
clientSecret: string;
|
|
17
|
+
domain: string;
|
|
18
|
+
organizationId?: string;
|
|
19
|
+
scopes?: string[];
|
|
20
|
+
pkce?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare function createOIDCProvider(options: OIDCProviderOptions): Promise<SSOProviderConfig | null>;
|
|
23
|
+
declare function createAuth0Provider(options: {
|
|
24
|
+
domain: string;
|
|
25
|
+
clientId: string;
|
|
26
|
+
clientSecret: string;
|
|
27
|
+
}): Promise<SSOProviderConfig | null>;
|
|
28
|
+
|
|
29
|
+
declare function createManagementApp(config?: {
|
|
30
|
+
serverConfig?: ServerConfig;
|
|
31
|
+
credentialStores?: CredentialStore[];
|
|
32
|
+
auth?: UserAuthConfig;
|
|
33
|
+
skipInitialization?: boolean;
|
|
34
|
+
}): hono.Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">;
|
|
35
|
+
|
|
36
|
+
export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser };
|
package/dist/factory.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser } from './chunk-3C624FLK.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,15 @@
|
|
|
1
|
-
import * as hono from 'hono';
|
|
2
|
-
import { Hono } from 'hono';
|
|
3
|
-
import * as hono_types from 'hono/types';
|
|
4
1
|
import * as better_auth_plugins from 'better-auth/plugins';
|
|
5
2
|
import * as _better_auth_sso from '@better-auth/sso';
|
|
6
3
|
import * as zod from 'zod';
|
|
7
4
|
import * as better_auth_social_providers from 'better-auth/social-providers';
|
|
8
5
|
import * as better_auth from 'better-auth';
|
|
9
|
-
import {
|
|
10
|
-
|
|
6
|
+
import { Hono } from 'hono';
|
|
7
|
+
export { Hono } from 'hono';
|
|
8
|
+
export { createAuth0Provider, createManagementApp, createManagementHono, createOIDCProvider, initializeDefaultUser } from './factory.js';
|
|
11
9
|
export { SSOProviderConfig, UserAuthConfig } from '@inkeep/agents-core/auth';
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
interface OIDCProviderOptions {
|
|
17
|
-
providerId: string;
|
|
18
|
-
clientId: string;
|
|
19
|
-
clientSecret: string;
|
|
20
|
-
domain: string;
|
|
21
|
-
organizationId?: string;
|
|
22
|
-
scopes?: string[];
|
|
23
|
-
pkce?: boolean;
|
|
24
|
-
}
|
|
25
|
-
declare function createOIDCProvider(options: OIDCProviderOptions): Promise<SSOProviderConfig | null>;
|
|
26
|
-
declare function createAuth0Provider(options: {
|
|
27
|
-
domain: string;
|
|
28
|
-
clientId: string;
|
|
29
|
-
clientSecret: string;
|
|
30
|
-
}): Promise<SSOProviderConfig | null>;
|
|
10
|
+
import 'hono/types';
|
|
11
|
+
import '@inkeep/agents-core';
|
|
12
|
+
import '@inkeep/agents-core/credential-stores';
|
|
31
13
|
|
|
32
14
|
declare const auth: better_auth.Auth<{
|
|
33
15
|
baseURL: string;
|
|
@@ -955,12 +937,6 @@ declare const auth: better_auth.Auth<{
|
|
|
955
937
|
};
|
|
956
938
|
}];
|
|
957
939
|
}> | null;
|
|
958
|
-
declare const app:
|
|
959
|
-
|
|
960
|
-
declare function createManagementApp(config?: {
|
|
961
|
-
serverConfig?: ServerConfig;
|
|
962
|
-
credentialStores?: CredentialStore[];
|
|
963
|
-
auth?: UserAuthConfig;
|
|
964
|
-
}): hono.Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">;
|
|
940
|
+
declare const app: Hono;
|
|
965
941
|
|
|
966
|
-
export { auth,
|
|
942
|
+
export { auth, app as default };
|