@juspay/neurolink 9.56.1 → 9.57.0
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/CHANGELOG.md +12 -0
- package/dist/auth/AuthProviderFactory.d.ts +3 -3
- package/dist/auth/providers/BaseAuthProvider.d.ts +2 -2
- package/dist/auth/providers/BaseAuthProvider.js +1 -1
- package/dist/auth/serverBridge.d.ts +2 -2
- package/dist/browser/neurolink.min.js +306 -306
- package/dist/cli/factories/commandFactory.js +32 -8
- package/dist/cli/loop/optionsSchema.js +4 -0
- package/dist/cli/parser.js +3 -3
- package/dist/dynamic/dynamicResolver.d.ts +282 -0
- package/dist/dynamic/dynamicResolver.js +633 -0
- package/dist/dynamic/index.d.ts +10 -0
- package/dist/dynamic/index.js +12 -0
- package/dist/dynamic/resolution.d.ts +17 -0
- package/dist/dynamic/resolution.js +21 -0
- package/dist/evaluation/index.js +1 -1
- package/dist/files/fileReferenceRegistry.js +25 -10
- package/dist/index.js +19 -2
- package/dist/lib/auth/AuthProviderFactory.d.ts +3 -3
- package/dist/lib/auth/providers/BaseAuthProvider.d.ts +2 -2
- package/dist/lib/auth/providers/BaseAuthProvider.js +1 -1
- package/dist/lib/auth/serverBridge.d.ts +2 -2
- package/dist/lib/dynamic/dynamicResolver.d.ts +282 -0
- package/dist/lib/dynamic/dynamicResolver.js +634 -0
- package/dist/lib/dynamic/index.d.ts +10 -0
- package/dist/lib/dynamic/index.js +13 -0
- package/dist/lib/dynamic/resolution.d.ts +17 -0
- package/dist/lib/dynamic/resolution.js +22 -0
- package/dist/lib/evaluation/index.js +1 -1
- package/dist/lib/files/fileReferenceRegistry.js +25 -10
- package/dist/lib/index.js +19 -2
- package/dist/lib/mcp/mcpServerBase.d.ts +1 -1
- package/dist/lib/mcp/mcpServerBase.js +1 -1
- package/dist/lib/neurolink.d.ts +12 -4
- package/dist/lib/neurolink.js +79 -6
- package/dist/lib/observability/exporters/baseExporter.d.ts +1 -1
- package/dist/lib/observability/exporters/baseExporter.js +1 -1
- package/dist/lib/types/auth.d.ts +6 -6
- package/dist/lib/types/config.d.ts +4 -4
- package/dist/lib/types/dynamic.d.ts +98 -0
- package/dist/lib/types/dynamic.js +10 -0
- package/dist/lib/types/file.d.ts +10 -0
- package/dist/lib/types/fileReference.d.ts +9 -0
- package/dist/lib/types/generate.d.ts +29 -0
- package/dist/lib/types/index.d.ts +1 -0
- package/dist/lib/types/index.js +2 -0
- package/dist/lib/types/scorer.d.ts +1 -1
- package/dist/lib/types/scorer.js +1 -1
- package/dist/lib/types/span.d.ts +1 -1
- package/dist/lib/types/span.js +1 -1
- package/dist/lib/types/stream.d.ts +6 -0
- package/dist/lib/utils/fileDetector.d.ts +7 -0
- package/dist/lib/utils/fileDetector.js +47 -0
- package/dist/lib/utils/messageBuilder.js +15 -1
- package/dist/lib/utils/mimeTypeHints.d.ts +40 -0
- package/dist/lib/utils/mimeTypeHints.js +122 -0
- package/dist/mcp/mcpServerBase.d.ts +1 -1
- package/dist/mcp/mcpServerBase.js +1 -1
- package/dist/neurolink.d.ts +12 -4
- package/dist/neurolink.js +79 -6
- package/dist/observability/exporters/baseExporter.d.ts +1 -1
- package/dist/observability/exporters/baseExporter.js +1 -1
- package/dist/types/auth.d.ts +6 -6
- package/dist/types/config.d.ts +4 -4
- package/dist/types/dynamic.d.ts +98 -0
- package/dist/types/dynamic.js +9 -0
- package/dist/types/file.d.ts +10 -0
- package/dist/types/fileReference.d.ts +9 -0
- package/dist/types/generate.d.ts +29 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/scorer.d.ts +1 -1
- package/dist/types/scorer.js +1 -1
- package/dist/types/span.d.ts +1 -1
- package/dist/types/span.js +1 -1
- package/dist/types/stream.d.ts +6 -0
- package/dist/utils/fileDetector.d.ts +7 -0
- package/dist/utils/fileDetector.js +47 -0
- package/dist/utils/messageBuilder.js +15 -1
- package/dist/utils/mimeTypeHints.d.ts +40 -0
- package/dist/utils/mimeTypeHints.js +121 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [9.57.0](https://github.com/juspay/neurolink/compare/v9.56.2...v9.57.0) (2026-04-25)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **(dynamic-args):** add dynamic argument resolution with context-aware utilities ([673b2a2](https://github.com/juspay/neurolink/commit/673b2a213f6ac095645c670280ae4a2bb22946b5))
|
|
6
|
+
|
|
7
|
+
## [9.56.2](https://github.com/juspay/neurolink/compare/v9.56.1...v9.56.2) (2026-04-24)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **(files):** honor caller-provided mimetype hint for extension-less buffers ([40276cc](https://github.com/juspay/neurolink/commit/40276cc9abad565089b8161a1e7a9c2eb533df1f))
|
|
12
|
+
|
|
1
13
|
## [9.56.1](https://github.com/juspay/neurolink/compare/v9.56.0...v9.56.1) (2026-04-21)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* extension, no singleton instance. Providers are registered by
|
|
6
6
|
* AuthProviderRegistry using dynamic imports to avoid circular dependencies.
|
|
7
7
|
*/
|
|
8
|
-
import type { AuthProviderConfig, AuthProviderConstructor, AuthProviderMetadata,
|
|
8
|
+
import type { AuthProviderConfig, AuthProviderConstructor, AuthProviderMetadata, AuthProvider } from "../types/index.js";
|
|
9
9
|
/**
|
|
10
10
|
* AuthProviderFactory - Creates authentication provider instances
|
|
11
11
|
*
|
|
@@ -33,7 +33,7 @@ export declare class AuthProviderFactory {
|
|
|
33
33
|
/**
|
|
34
34
|
* Create a provider instance
|
|
35
35
|
*/
|
|
36
|
-
static createProvider(typeOrAlias: string, config: AuthProviderConfig): Promise<
|
|
36
|
+
static createProvider(typeOrAlias: string, config: AuthProviderConfig): Promise<AuthProvider>;
|
|
37
37
|
/**
|
|
38
38
|
* Check if a provider is registered
|
|
39
39
|
*/
|
|
@@ -66,4 +66,4 @@ export declare class AuthProviderFactory {
|
|
|
66
66
|
/**
|
|
67
67
|
* Create an auth provider using the factory
|
|
68
68
|
*/
|
|
69
|
-
export declare function createAuthProvider(type: string, config: AuthProviderConfig): Promise<
|
|
69
|
+
export declare function createAuthProvider(type: string, config: AuthProviderConfig): Promise<AuthProvider>;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* - Error handling via unified AuthError factory
|
|
11
11
|
*/
|
|
12
12
|
import { EventEmitter } from "events";
|
|
13
|
-
import type { AuthenticatedContext, AuthHealthCheck, AuthorizationResult, AuthProviderConfig, AuthProviderType, AuthRequestContext, AuthSession, AuthUser,
|
|
13
|
+
import type { AuthenticatedContext, AuthHealthCheck, AuthorizationResult, AuthProviderConfig, AuthProviderType, AuthRequestContext, AuthSession, AuthUser, AuthProvider, RBACConfig, SessionConfig, SessionStorage, SessionValidationResult, TokenClaims, TokenValidationResult } from "../../types/index.js";
|
|
14
14
|
/**
|
|
15
15
|
* @deprecated Use `AuthError` from `../errors.js` instead.
|
|
16
16
|
* Kept for backward compatibility with CognitoProvider / KeycloakProvider.
|
|
@@ -81,7 +81,7 @@ export declare class InMemorySessionStorage implements SessionStorage {
|
|
|
81
81
|
* - updateUserPermissions() - Update user permissions in provider
|
|
82
82
|
* - dispose() - Clean up resources
|
|
83
83
|
*/
|
|
84
|
-
export declare abstract class BaseAuthProvider implements
|
|
84
|
+
export declare abstract class BaseAuthProvider implements AuthProvider {
|
|
85
85
|
abstract readonly type: AuthProviderType;
|
|
86
86
|
readonly config: AuthProviderConfig;
|
|
87
87
|
protected sessionStorage: SessionStorage;
|
|
@@ -607,7 +607,7 @@ export class BaseAuthProvider {
|
|
|
607
607
|
logger.debug(`[BaseAuthProvider] Disposed ${this.type} provider`);
|
|
608
608
|
}
|
|
609
609
|
// ===========================================================================
|
|
610
|
-
// METHODS FROM
|
|
610
|
+
// METHODS FROM AuthProvider INTERFACE
|
|
611
611
|
// ===========================================================================
|
|
612
612
|
/**
|
|
613
613
|
* Check if a user is authorized to perform an action
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Converts an auth provider's authenticateToken() into the validate
|
|
4
4
|
* callback expected by the existing createAuthMiddleware.
|
|
5
5
|
*/
|
|
6
|
-
import type {
|
|
6
|
+
import type { AuthProvider } from "../types/index.js";
|
|
7
7
|
/**
|
|
8
8
|
* Create a validate function for server auth middleware from an auth provider.
|
|
9
9
|
*/
|
|
10
|
-
export declare function createAuthValidatorFromProvider(provider:
|
|
10
|
+
export declare function createAuthValidatorFromProvider(provider: AuthProvider): (token: string, ctx: unknown) => Promise<{
|
|
11
11
|
id: string;
|
|
12
12
|
email?: string;
|
|
13
13
|
roles?: string[];
|