@astrasyncai/verification-gateway 2.0.1 → 2.1.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/dist/agent/index.js +33 -0
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/index.mjs +36 -0
- package/dist/agent/index.mjs.map +1 -1
- package/dist/browser/background.js +33 -0
- package/dist/browser/background.js.map +1 -1
- package/dist/browser/background.mjs +36 -0
- package/dist/browser/background.mjs.map +1 -1
- package/dist/cursor/extension.js +33 -0
- package/dist/cursor/extension.js.map +1 -1
- package/dist/cursor/extension.mjs +36 -0
- package/dist/cursor/extension.mjs.map +1 -1
- package/dist/gateway/gateway.js +33 -0
- package/dist/gateway/gateway.js.map +1 -1
- package/dist/gateway/gateway.mjs +36 -0
- package/dist/gateway/gateway.mjs.map +1 -1
- package/dist/index-3NRaBNvp.d.mts +1397 -0
- package/dist/index-CME6r4uH.d.ts +1397 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2324 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2327 -1
- package/dist/index.mjs.map +1 -1
- package/dist/transport/index.d.mts +2 -1
- package/dist/transport/index.d.ts +2 -1
- package/dist/transport/index.js +2384 -2
- package/dist/transport/index.js.map +1 -1
- package/dist/transport/index.mjs +2327 -1
- package/dist/transport/index.mjs.map +1 -1
- package/package.json +17 -3
- package/dist/index-B1ThcGZl.d.mts +0 -89
- package/dist/index-DnoXfdFd.d.ts +0 -89
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { A as AstraSyncCredentials, g as ProtocolTransport } from './types-CxQwJKbd.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* HTTP Transport Adapter
|
|
5
|
-
*
|
|
6
|
-
* Maps AstraSync credentials to/from HTTP headers (X-Astra-* convention).
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Inject AstraSync credentials into HTTP headers.
|
|
11
|
-
*/
|
|
12
|
-
declare function setHttpHeaders(headers: Record<string, string>, credentials: AstraSyncCredentials): Record<string, string>;
|
|
13
|
-
/**
|
|
14
|
-
* Extract AstraSync credentials from HTTP headers.
|
|
15
|
-
*/
|
|
16
|
-
declare function extractHttpCredentials(headers: Record<string, string | string[] | undefined>): AstraSyncCredentials | null;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* A2A (Agent-to-Agent) Transport Adapter
|
|
20
|
-
*
|
|
21
|
-
* Maps AstraSync credentials to/from A2A task metadata.astrasync block.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
interface A2ATask {
|
|
25
|
-
metadata?: Record<string, unknown>;
|
|
26
|
-
[key: string]: unknown;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Add AstraSync credentials to an A2A task's metadata block.
|
|
30
|
-
*/
|
|
31
|
-
declare function setA2AMetadata(task: A2ATask, credentials: AstraSyncCredentials): A2ATask;
|
|
32
|
-
/**
|
|
33
|
-
* Extract AstraSync credentials from an A2A task's metadata block.
|
|
34
|
-
*/
|
|
35
|
-
declare function extractA2ACredentials(task: A2ATask): AstraSyncCredentials | null;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* MCP (Model Context Protocol) Transport Adapter
|
|
39
|
-
*
|
|
40
|
-
* Maps AstraSync credentials to/from MCP params._meta.astrasync block.
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
interface McpParams {
|
|
44
|
-
_meta?: Record<string, unknown>;
|
|
45
|
-
[key: string]: unknown;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Add AstraSync credentials to MCP params' _meta block.
|
|
49
|
-
*/
|
|
50
|
-
declare function setMcpMeta(params: McpParams, credentials: AstraSyncCredentials): McpParams;
|
|
51
|
-
/**
|
|
52
|
-
* Extract AstraSync credentials from MCP params' _meta block.
|
|
53
|
-
*/
|
|
54
|
-
declare function extractMcpCredentials(params: McpParams): AstraSyncCredentials | null;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Cross-Protocol Transport Module
|
|
58
|
-
*
|
|
59
|
-
* Provides adapters for injecting/extracting AstraSync credentials
|
|
60
|
-
* across HTTP, A2A, and MCP protocols.
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Auto-detect protocol from request/context shape.
|
|
65
|
-
*/
|
|
66
|
-
declare function detectProtocol(context: Record<string, unknown>): ProtocolTransport;
|
|
67
|
-
/**
|
|
68
|
-
* Apply credentials to any protocol target.
|
|
69
|
-
*/
|
|
70
|
-
declare function applyCredentials(protocol: ProtocolTransport, target: Record<string, unknown>, credentials: AstraSyncCredentials): Record<string, unknown>;
|
|
71
|
-
/**
|
|
72
|
-
* Extract credentials from any protocol context.
|
|
73
|
-
*/
|
|
74
|
-
declare function extractCredentialsFromProtocol(protocol: ProtocolTransport, context: Record<string, unknown>): AstraSyncCredentials | null;
|
|
75
|
-
|
|
76
|
-
declare const index_applyCredentials: typeof applyCredentials;
|
|
77
|
-
declare const index_detectProtocol: typeof detectProtocol;
|
|
78
|
-
declare const index_extractA2ACredentials: typeof extractA2ACredentials;
|
|
79
|
-
declare const index_extractCredentialsFromProtocol: typeof extractCredentialsFromProtocol;
|
|
80
|
-
declare const index_extractHttpCredentials: typeof extractHttpCredentials;
|
|
81
|
-
declare const index_extractMcpCredentials: typeof extractMcpCredentials;
|
|
82
|
-
declare const index_setA2AMetadata: typeof setA2AMetadata;
|
|
83
|
-
declare const index_setHttpHeaders: typeof setHttpHeaders;
|
|
84
|
-
declare const index_setMcpMeta: typeof setMcpMeta;
|
|
85
|
-
declare namespace index {
|
|
86
|
-
export { index_applyCredentials as applyCredentials, index_detectProtocol as detectProtocol, index_extractA2ACredentials as extractA2ACredentials, index_extractCredentialsFromProtocol as extractCredentialsFromProtocol, index_extractHttpCredentials as extractHttpCredentials, index_extractMcpCredentials as extractMcpCredentials, index_setA2AMetadata as setA2AMetadata, index_setHttpHeaders as setHttpHeaders, index_setMcpMeta as setMcpMeta };
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export { applyCredentials as a, extractCredentialsFromProtocol as b, extractHttpCredentials as c, detectProtocol as d, extractA2ACredentials as e, extractMcpCredentials as f, setHttpHeaders as g, setMcpMeta as h, index as i, setA2AMetadata as s };
|
package/dist/index-DnoXfdFd.d.ts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { A as AstraSyncCredentials, g as ProtocolTransport } from './types-CxQwJKbd.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* HTTP Transport Adapter
|
|
5
|
-
*
|
|
6
|
-
* Maps AstraSync credentials to/from HTTP headers (X-Astra-* convention).
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Inject AstraSync credentials into HTTP headers.
|
|
11
|
-
*/
|
|
12
|
-
declare function setHttpHeaders(headers: Record<string, string>, credentials: AstraSyncCredentials): Record<string, string>;
|
|
13
|
-
/**
|
|
14
|
-
* Extract AstraSync credentials from HTTP headers.
|
|
15
|
-
*/
|
|
16
|
-
declare function extractHttpCredentials(headers: Record<string, string | string[] | undefined>): AstraSyncCredentials | null;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* A2A (Agent-to-Agent) Transport Adapter
|
|
20
|
-
*
|
|
21
|
-
* Maps AstraSync credentials to/from A2A task metadata.astrasync block.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
interface A2ATask {
|
|
25
|
-
metadata?: Record<string, unknown>;
|
|
26
|
-
[key: string]: unknown;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Add AstraSync credentials to an A2A task's metadata block.
|
|
30
|
-
*/
|
|
31
|
-
declare function setA2AMetadata(task: A2ATask, credentials: AstraSyncCredentials): A2ATask;
|
|
32
|
-
/**
|
|
33
|
-
* Extract AstraSync credentials from an A2A task's metadata block.
|
|
34
|
-
*/
|
|
35
|
-
declare function extractA2ACredentials(task: A2ATask): AstraSyncCredentials | null;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* MCP (Model Context Protocol) Transport Adapter
|
|
39
|
-
*
|
|
40
|
-
* Maps AstraSync credentials to/from MCP params._meta.astrasync block.
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
interface McpParams {
|
|
44
|
-
_meta?: Record<string, unknown>;
|
|
45
|
-
[key: string]: unknown;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Add AstraSync credentials to MCP params' _meta block.
|
|
49
|
-
*/
|
|
50
|
-
declare function setMcpMeta(params: McpParams, credentials: AstraSyncCredentials): McpParams;
|
|
51
|
-
/**
|
|
52
|
-
* Extract AstraSync credentials from MCP params' _meta block.
|
|
53
|
-
*/
|
|
54
|
-
declare function extractMcpCredentials(params: McpParams): AstraSyncCredentials | null;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Cross-Protocol Transport Module
|
|
58
|
-
*
|
|
59
|
-
* Provides adapters for injecting/extracting AstraSync credentials
|
|
60
|
-
* across HTTP, A2A, and MCP protocols.
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Auto-detect protocol from request/context shape.
|
|
65
|
-
*/
|
|
66
|
-
declare function detectProtocol(context: Record<string, unknown>): ProtocolTransport;
|
|
67
|
-
/**
|
|
68
|
-
* Apply credentials to any protocol target.
|
|
69
|
-
*/
|
|
70
|
-
declare function applyCredentials(protocol: ProtocolTransport, target: Record<string, unknown>, credentials: AstraSyncCredentials): Record<string, unknown>;
|
|
71
|
-
/**
|
|
72
|
-
* Extract credentials from any protocol context.
|
|
73
|
-
*/
|
|
74
|
-
declare function extractCredentialsFromProtocol(protocol: ProtocolTransport, context: Record<string, unknown>): AstraSyncCredentials | null;
|
|
75
|
-
|
|
76
|
-
declare const index_applyCredentials: typeof applyCredentials;
|
|
77
|
-
declare const index_detectProtocol: typeof detectProtocol;
|
|
78
|
-
declare const index_extractA2ACredentials: typeof extractA2ACredentials;
|
|
79
|
-
declare const index_extractCredentialsFromProtocol: typeof extractCredentialsFromProtocol;
|
|
80
|
-
declare const index_extractHttpCredentials: typeof extractHttpCredentials;
|
|
81
|
-
declare const index_extractMcpCredentials: typeof extractMcpCredentials;
|
|
82
|
-
declare const index_setA2AMetadata: typeof setA2AMetadata;
|
|
83
|
-
declare const index_setHttpHeaders: typeof setHttpHeaders;
|
|
84
|
-
declare const index_setMcpMeta: typeof setMcpMeta;
|
|
85
|
-
declare namespace index {
|
|
86
|
-
export { index_applyCredentials as applyCredentials, index_detectProtocol as detectProtocol, index_extractA2ACredentials as extractA2ACredentials, index_extractCredentialsFromProtocol as extractCredentialsFromProtocol, index_extractHttpCredentials as extractHttpCredentials, index_extractMcpCredentials as extractMcpCredentials, index_setA2AMetadata as setA2AMetadata, index_setHttpHeaders as setHttpHeaders, index_setMcpMeta as setMcpMeta };
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export { applyCredentials as a, extractCredentialsFromProtocol as b, extractHttpCredentials as c, detectProtocol as d, extractA2ACredentials as e, extractMcpCredentials as f, setHttpHeaders as g, setMcpMeta as h, index as i, setA2AMetadata as s };
|