@vess-id/ai-identity 0.10.0 → 0.12.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/README.md +0 -16
- package/dist/client.d.ts +0 -14
- package/dist/client.d.ts.map +1 -1
- package/dist/index.d.mts +456 -153
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +172 -206
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +158 -205
- package/dist/index.mjs.map +1 -1
- package/dist/internal-signature/__tests__/canonical.spec.d.ts +2 -0
- package/dist/internal-signature/__tests__/canonical.spec.d.ts.map +1 -0
- package/dist/internal-signature/__tests__/signer-roundtrip.spec.d.ts +2 -0
- package/dist/internal-signature/__tests__/signer-roundtrip.spec.d.ts.map +1 -0
- package/dist/internal-signature/__tests__/signer.spec.d.ts +2 -0
- package/dist/internal-signature/__tests__/signer.spec.d.ts.map +1 -0
- package/dist/internal-signature/canonical.d.ts +80 -0
- package/dist/internal-signature/canonical.d.ts.map +1 -0
- package/dist/internal-signature/index.d.ts +17 -0
- package/dist/internal-signature/index.d.ts.map +1 -0
- package/dist/internal-signature/signer.d.ts +76 -0
- package/dist/internal-signature/signer.d.ts.map +1 -0
- package/dist/registry/action-registry-json.d.ts +114 -0
- package/dist/registry/action-registry-json.d.ts.map +1 -1
- package/dist/registry/index.d.ts +2 -0
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/reauth-constants.d.ts +33 -0
- package/dist/registry/reauth-constants.d.ts.map +1 -0
- package/dist/vp/kb-jwt-builder.d.ts +89 -0
- package/dist/vp/kb-jwt-builder.d.ts.map +1 -0
- package/dist/vp/vp-manager.d.ts.map +1 -1
- package/package.json +20 -26
- package/dist/memory/memory-manager.d.ts +0 -77
- package/dist/memory/memory-manager.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canonical.spec.d.ts","sourceRoot":"","sources":["../../../src/internal-signature/__tests__/canonical.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signer-roundtrip.spec.d.ts","sourceRoot":"","sources":["../../../src/internal-signature/__tests__/signer-roundtrip.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signer.spec.d.ts","sourceRoot":"","sources":["../../../src/internal-signature/__tests__/signer.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* P1-A14a-1 / Threat Model S4 — canonical-string + signature-header
|
|
3
|
+
* helpers for HMAC body signing of internal HTTP requests.
|
|
4
|
+
*
|
|
5
|
+
* Pure module: no NestJS, no I/O, no side effects. SDK is the
|
|
6
|
+
* single source of truth (P1-A14a-2d) — api / remote-mcp /
|
|
7
|
+
* slack-bot all import from `@vess-id/ai-identity`.
|
|
8
|
+
*
|
|
9
|
+
* Header format (Q1 = A, Stripe-style versioned):
|
|
10
|
+
* X-Internal-Signature: v1=<keyId>:<unixSeconds>:<base64(hmac)>
|
|
11
|
+
*
|
|
12
|
+
* Canonical string (Q2 = A, no header inclusion):
|
|
13
|
+
* ${METHOD.toUpperCase()}\n${path}\n${unixSeconds}\n${sha256Hex(rawBody)}
|
|
14
|
+
*
|
|
15
|
+
* Replay window (Q3 = A): 300 seconds — enforced by the api guard,
|
|
16
|
+
* not here. This module is responsible for *constructing* the
|
|
17
|
+
* canonical string and *parsing* the header; freshness is policy.
|
|
18
|
+
*/
|
|
19
|
+
export declare const SIGNATURE_HEADER = "x-internal-signature";
|
|
20
|
+
export declare const SIGNATURE_VERSION_PREFIX = "v1=";
|
|
21
|
+
/**
|
|
22
|
+
* SHA-256 hex digest of an arbitrary buffer or string. Hex (not
|
|
23
|
+
* base64) so the canonical string is URL-safe and grep-friendly in
|
|
24
|
+
* logs if a future debug session ever needs to reconstruct it
|
|
25
|
+
* server-side.
|
|
26
|
+
*/
|
|
27
|
+
export declare function sha256Hex(input: Buffer | string): string;
|
|
28
|
+
/**
|
|
29
|
+
* Build the canonical string that gets HMAC'd. The components are
|
|
30
|
+
* separated by `\n` because no legitimate input contains `\n` (the
|
|
31
|
+
* method is uppercase ASCII, the path is URL-encoded by the caller,
|
|
32
|
+
* the timestamp is digits, the body hash is hex). Using `\n` as
|
|
33
|
+
* separator avoids ambiguity that delimiters like `:` would
|
|
34
|
+
* introduce when the path contains a colon.
|
|
35
|
+
*
|
|
36
|
+
* Whitespace is NOT trimmed — input must be exactly what will land
|
|
37
|
+
* on the wire. Caller controls case and encoding.
|
|
38
|
+
*/
|
|
39
|
+
export declare function buildCanonicalString(args: {
|
|
40
|
+
method: string;
|
|
41
|
+
path: string;
|
|
42
|
+
unixSeconds: number;
|
|
43
|
+
rawBody: Buffer | string;
|
|
44
|
+
}): string;
|
|
45
|
+
/** Shape of a parsed `X-Internal-Signature` header. */
|
|
46
|
+
export interface ParsedSignature {
|
|
47
|
+
/** Identifier of the signing key (e.g. `'mcp-v2'`). */
|
|
48
|
+
keyId: string;
|
|
49
|
+
/** Unix epoch seconds at signing time. */
|
|
50
|
+
unixSeconds: number;
|
|
51
|
+
/** Base64-encoded HMAC-SHA256 digest. */
|
|
52
|
+
signature: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Parse a `X-Internal-Signature` header value. Returns `null` for
|
|
56
|
+
* any malformed shape rather than throwing — the api guard converts
|
|
57
|
+
* `null` to a `401 Unauthorized` so a malformed header never
|
|
58
|
+
* triggers a `500`.
|
|
59
|
+
*
|
|
60
|
+
* Accepted: `v1=<keyId>:<digits>:<base64>`
|
|
61
|
+
*
|
|
62
|
+
* Defensive checks:
|
|
63
|
+
* - Must start with `v1=` (Q1: explicit version prefix)
|
|
64
|
+
* - keyId / signature must be non-empty after split
|
|
65
|
+
* - timestamp must parse to a finite, non-negative integer
|
|
66
|
+
* - keyId must be ASCII identifier-safe ([A-Za-z0-9_-]+) so a
|
|
67
|
+
* malicious header cannot smuggle control chars or whitespace
|
|
68
|
+
* into log lines / metric labels
|
|
69
|
+
* - signature must be valid base64 (only base64 alphabet chars)
|
|
70
|
+
*/
|
|
71
|
+
export declare function parseSignatureHeader(headerValue: string | undefined): ParsedSignature | null;
|
|
72
|
+
/**
|
|
73
|
+
* Format a ParsedSignature back into a header string. Round-trips
|
|
74
|
+
* with `parseSignatureHeader` for any validly-shaped input.
|
|
75
|
+
*
|
|
76
|
+
* Used by the signing side (HTTP client). Keeping it next to the
|
|
77
|
+
* parser pins the format in one place.
|
|
78
|
+
*/
|
|
79
|
+
export declare function formatSignatureHeader(parsed: ParsedSignature): string;
|
|
80
|
+
//# sourceMappingURL=canonical.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canonical.d.ts","sourceRoot":"","sources":["../../src/internal-signature/canonical.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AAEH,eAAO,MAAM,gBAAgB,yBAAyB,CAAA;AACtD,eAAO,MAAM,wBAAwB,QAAQ,CAAA;AAE7C;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAExD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;CACzB,GAAG,MAAM,CAGT;AAED,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAA;IACb,0CAA0C;IAC1C,WAAW,EAAE,MAAM,CAAA;IACnB,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,eAAe,GAAG,IAAI,CA4B5F;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAErE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public API of `@vess-id/ai-identity/internal-signature` (P1-A14a-2d).
|
|
3
|
+
*
|
|
4
|
+
* Re-exported via the SDK barrel (`packages/sdk/src/index.ts`) so
|
|
5
|
+
* consumers can write:
|
|
6
|
+
*
|
|
7
|
+
* import { signRequest, SIGNATURE_HEADER } from '@vess-id/ai-identity'
|
|
8
|
+
*
|
|
9
|
+
* SDK is the single source of truth — api / remote-mcp / slack-bot
|
|
10
|
+
* all import from here. The api side keeps verifier-only types
|
|
11
|
+
* (`HmacKeyset`, `InternalSignatureGuard`) in
|
|
12
|
+
* `packages/api/src/common/internal-signature/` so the SDK avoids
|
|
13
|
+
* a NestJS dependency.
|
|
14
|
+
*/
|
|
15
|
+
export { buildCanonicalString, formatSignatureHeader, parseSignatureHeader, sha256Hex, SIGNATURE_HEADER, SIGNATURE_VERSION_PREFIX, type ParsedSignature, } from './canonical';
|
|
16
|
+
export { signRequest, MIN_SIGNER_KEY_BYTES, type InternalHmacSignerKey, type SignRequestArgs, } from './signer';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/internal-signature/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,SAAS,EACT,gBAAgB,EAChB,wBAAwB,EACxB,KAAK,eAAe,GACrB,MAAM,aAAa,CAAA;AAEpB,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,GACrB,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* P1-A14a-2d — pure HMAC signer for outbound /api/internal/**
|
|
3
|
+
* requests. Lives in SDK so remote-mcp and slack-bot (both of which
|
|
4
|
+
* already depend on `@vess-id/ai-identity`) can attach
|
|
5
|
+
* `X-Internal-Signature` to every request without dragging the
|
|
6
|
+
* api package into their dependency graph.
|
|
7
|
+
*
|
|
8
|
+
* Pure (no I/O, no Nest). Mirrors the `utils/crypto.ts` profile:
|
|
9
|
+
* the only Node-builtin used is `crypto.createHmac`.
|
|
10
|
+
*
|
|
11
|
+
* Pairing with the verifier
|
|
12
|
+
* -------------------------
|
|
13
|
+
* The verifier (api side, `HmacKeyset.verify` →
|
|
14
|
+
* `buildCanonicalString` → constant-time compare) reads the same
|
|
15
|
+
* `buildCanonicalString` from this module by construction. As long
|
|
16
|
+
* as both sides pass the same `(method, path, unixSeconds, rawBody)`
|
|
17
|
+
* the HMACs match by definition.
|
|
18
|
+
*
|
|
19
|
+
* Body bytes
|
|
20
|
+
* ----------
|
|
21
|
+
* The caller MUST pass the exact bytes that go on the wire as
|
|
22
|
+
* `rawBody`. Re-running `JSON.stringify(...)` on each side would
|
|
23
|
+
* risk a byte mismatch (object key order is implementation-defined
|
|
24
|
+
* in spec, even though V8 preserves insertion order in practice).
|
|
25
|
+
* The api-client `makeRequest` helper computes `JSON.stringify`
|
|
26
|
+
* once, hands the same string to both `signRequest` and `fetch`.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Minimum signer key length in raw bytes. 32 bytes = 256 bits
|
|
30
|
+
* matches HMAC-SHA256's natural block size and the verifier's
|
|
31
|
+
* `MIN_KEY_BYTES`. A truncated env var (accidental newline,
|
|
32
|
+
* copy-paste error) is the realistic failure mode this guards
|
|
33
|
+
* against.
|
|
34
|
+
*/
|
|
35
|
+
export declare const MIN_SIGNER_KEY_BYTES = 32;
|
|
36
|
+
export interface InternalHmacSignerKey {
|
|
37
|
+
/** Stable identifier for the key, e.g. `'mcp-v1'`. Embedded in
|
|
38
|
+
* the X-Internal-Signature header so the verifier can pick the
|
|
39
|
+
* right key. Must match `/^[A-Za-z0-9_-]+$/`. */
|
|
40
|
+
keyId: string;
|
|
41
|
+
/** Raw HMAC secret. >= MIN_SIGNER_KEY_BYTES bytes. */
|
|
42
|
+
secret: Buffer;
|
|
43
|
+
}
|
|
44
|
+
export interface SignRequestArgs {
|
|
45
|
+
/** HTTP method. Will be upper-cased by `buildCanonicalString`,
|
|
46
|
+
* but callers should pass the uppercase form they use on the
|
|
47
|
+
* wire so signer and `fetch()` stay in lockstep. */
|
|
48
|
+
method: string;
|
|
49
|
+
/** URL path with query string already stripped (verifier does
|
|
50
|
+
* `request.originalUrl?.split('?')[0]`; signer must mirror).
|
|
51
|
+
* Path encoding (e.g. `%2F` vs `/`) is caller's responsibility
|
|
52
|
+
* — the canonical string treats them as different bytes. */
|
|
53
|
+
path: string;
|
|
54
|
+
/** Wire bytes. The same string/buffer passed to `fetch({body})`
|
|
55
|
+
* must be passed here — `JSON.stringify` runs ONCE per request
|
|
56
|
+
* in the caller. */
|
|
57
|
+
rawBody: Buffer | string;
|
|
58
|
+
/** Optional fixed timestamp for testing. Defaults to
|
|
59
|
+
* `Math.floor(Date.now() / 1000)`. */
|
|
60
|
+
unixSeconds?: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Sign an outbound request and return a fully-formatted
|
|
64
|
+
* `X-Internal-Signature` header value. The caller sets the header
|
|
65
|
+
* on the outbound request directly:
|
|
66
|
+
*
|
|
67
|
+
* ```ts
|
|
68
|
+
* headers[SIGNATURE_HEADER] = signRequest(key, { method, path, rawBody })
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* Throws if key material is invalid (bad keyId or short secret) —
|
|
72
|
+
* surfacing misconfiguration loudly at request time rather than
|
|
73
|
+
* silently producing a header the verifier will reject.
|
|
74
|
+
*/
|
|
75
|
+
export declare function signRequest(key: InternalHmacSignerKey, args: SignRequestArgs): string;
|
|
76
|
+
//# sourceMappingURL=signer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../../src/internal-signature/signer.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,KAAK,CAAA;AAEtC,MAAM,WAAW,qBAAqB;IACpC;;sDAEkD;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,eAAe;IAC9B;;yDAEqD;IACrD,MAAM,EAAE,MAAM,CAAA;IACd;;;iEAG6D;IAC7D,IAAI,EAAE,MAAM,CAAA;IACZ;;yBAEqB;IACrB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB;2CACuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,qBAAqB,EAAE,IAAI,EAAE,eAAe,GAAG,MAAM,CAgBrF"}
|
|
@@ -63,6 +63,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
63
63
|
subject?: undefined;
|
|
64
64
|
cc?: undefined;
|
|
65
65
|
bcc?: undefined;
|
|
66
|
+
threadId?: undefined;
|
|
67
|
+
inReplyTo?: undefined;
|
|
68
|
+
references?: undefined;
|
|
66
69
|
messageIds?: undefined;
|
|
67
70
|
calendarId?: undefined;
|
|
68
71
|
timeMin?: undefined;
|
|
@@ -156,6 +159,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
156
159
|
subject?: undefined;
|
|
157
160
|
cc?: undefined;
|
|
158
161
|
bcc?: undefined;
|
|
162
|
+
threadId?: undefined;
|
|
163
|
+
inReplyTo?: undefined;
|
|
164
|
+
references?: undefined;
|
|
159
165
|
messageIds?: undefined;
|
|
160
166
|
calendarId?: undefined;
|
|
161
167
|
timeMin?: undefined;
|
|
@@ -252,6 +258,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
252
258
|
subject?: undefined;
|
|
253
259
|
cc?: undefined;
|
|
254
260
|
bcc?: undefined;
|
|
261
|
+
threadId?: undefined;
|
|
262
|
+
inReplyTo?: undefined;
|
|
263
|
+
references?: undefined;
|
|
255
264
|
messageIds?: undefined;
|
|
256
265
|
calendarId?: undefined;
|
|
257
266
|
timeMin?: undefined;
|
|
@@ -358,6 +367,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
358
367
|
subject?: undefined;
|
|
359
368
|
cc?: undefined;
|
|
360
369
|
bcc?: undefined;
|
|
370
|
+
threadId?: undefined;
|
|
371
|
+
inReplyTo?: undefined;
|
|
372
|
+
references?: undefined;
|
|
361
373
|
messageIds?: undefined;
|
|
362
374
|
calendarId?: undefined;
|
|
363
375
|
timeMin?: undefined;
|
|
@@ -461,6 +473,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
461
473
|
subject?: undefined;
|
|
462
474
|
cc?: undefined;
|
|
463
475
|
bcc?: undefined;
|
|
476
|
+
threadId?: undefined;
|
|
477
|
+
inReplyTo?: undefined;
|
|
478
|
+
references?: undefined;
|
|
464
479
|
messageIds?: undefined;
|
|
465
480
|
calendarId?: undefined;
|
|
466
481
|
timeMin?: undefined;
|
|
@@ -561,6 +576,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
561
576
|
subject?: undefined;
|
|
562
577
|
cc?: undefined;
|
|
563
578
|
bcc?: undefined;
|
|
579
|
+
threadId?: undefined;
|
|
580
|
+
inReplyTo?: undefined;
|
|
581
|
+
references?: undefined;
|
|
564
582
|
messageIds?: undefined;
|
|
565
583
|
calendarId?: undefined;
|
|
566
584
|
timeMin?: undefined;
|
|
@@ -664,6 +682,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
664
682
|
subject?: undefined;
|
|
665
683
|
cc?: undefined;
|
|
666
684
|
bcc?: undefined;
|
|
685
|
+
threadId?: undefined;
|
|
686
|
+
inReplyTo?: undefined;
|
|
687
|
+
references?: undefined;
|
|
667
688
|
messageIds?: undefined;
|
|
668
689
|
calendarId?: undefined;
|
|
669
690
|
timeMin?: undefined;
|
|
@@ -763,6 +784,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
763
784
|
subject?: undefined;
|
|
764
785
|
cc?: undefined;
|
|
765
786
|
bcc?: undefined;
|
|
787
|
+
threadId?: undefined;
|
|
788
|
+
inReplyTo?: undefined;
|
|
789
|
+
references?: undefined;
|
|
766
790
|
messageIds?: undefined;
|
|
767
791
|
calendarId?: undefined;
|
|
768
792
|
timeMin?: undefined;
|
|
@@ -872,6 +896,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
872
896
|
subject?: undefined;
|
|
873
897
|
cc?: undefined;
|
|
874
898
|
bcc?: undefined;
|
|
899
|
+
threadId?: undefined;
|
|
900
|
+
inReplyTo?: undefined;
|
|
901
|
+
references?: undefined;
|
|
875
902
|
messageIds?: undefined;
|
|
876
903
|
calendarId?: undefined;
|
|
877
904
|
timeMin?: undefined;
|
|
@@ -984,6 +1011,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
984
1011
|
subject?: undefined;
|
|
985
1012
|
cc?: undefined;
|
|
986
1013
|
bcc?: undefined;
|
|
1014
|
+
threadId?: undefined;
|
|
1015
|
+
inReplyTo?: undefined;
|
|
1016
|
+
references?: undefined;
|
|
987
1017
|
messageIds?: undefined;
|
|
988
1018
|
calendarId?: undefined;
|
|
989
1019
|
timeMin?: undefined;
|
|
@@ -1080,6 +1110,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
1080
1110
|
subject?: undefined;
|
|
1081
1111
|
cc?: undefined;
|
|
1082
1112
|
bcc?: undefined;
|
|
1113
|
+
threadId?: undefined;
|
|
1114
|
+
inReplyTo?: undefined;
|
|
1115
|
+
references?: undefined;
|
|
1083
1116
|
messageIds?: undefined;
|
|
1084
1117
|
calendarId?: undefined;
|
|
1085
1118
|
timeMin?: undefined;
|
|
@@ -1195,6 +1228,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
1195
1228
|
subject?: undefined;
|
|
1196
1229
|
cc?: undefined;
|
|
1197
1230
|
bcc?: undefined;
|
|
1231
|
+
threadId?: undefined;
|
|
1232
|
+
inReplyTo?: undefined;
|
|
1233
|
+
references?: undefined;
|
|
1198
1234
|
messageIds?: undefined;
|
|
1199
1235
|
calendarId?: undefined;
|
|
1200
1236
|
timeMin?: undefined;
|
|
@@ -1296,6 +1332,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
1296
1332
|
subject?: undefined;
|
|
1297
1333
|
cc?: undefined;
|
|
1298
1334
|
bcc?: undefined;
|
|
1335
|
+
threadId?: undefined;
|
|
1336
|
+
inReplyTo?: undefined;
|
|
1337
|
+
references?: undefined;
|
|
1299
1338
|
messageIds?: undefined;
|
|
1300
1339
|
calendarId?: undefined;
|
|
1301
1340
|
timeMin?: undefined;
|
|
@@ -1392,6 +1431,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
1392
1431
|
subject?: undefined;
|
|
1393
1432
|
cc?: undefined;
|
|
1394
1433
|
bcc?: undefined;
|
|
1434
|
+
threadId?: undefined;
|
|
1435
|
+
inReplyTo?: undefined;
|
|
1436
|
+
references?: undefined;
|
|
1395
1437
|
messageIds?: undefined;
|
|
1396
1438
|
calendarId?: undefined;
|
|
1397
1439
|
timeMin?: undefined;
|
|
@@ -1473,6 +1515,15 @@ export declare const ACTION_REGISTRY: {
|
|
|
1473
1515
|
bcc: {
|
|
1474
1516
|
type: string;
|
|
1475
1517
|
};
|
|
1518
|
+
threadId: {
|
|
1519
|
+
type: string;
|
|
1520
|
+
};
|
|
1521
|
+
inReplyTo: {
|
|
1522
|
+
type: string;
|
|
1523
|
+
};
|
|
1524
|
+
references: {
|
|
1525
|
+
type: string;
|
|
1526
|
+
};
|
|
1476
1527
|
channel?: undefined;
|
|
1477
1528
|
text?: undefined;
|
|
1478
1529
|
thread_ts?: undefined;
|
|
@@ -1607,6 +1658,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
1607
1658
|
subject?: undefined;
|
|
1608
1659
|
cc?: undefined;
|
|
1609
1660
|
bcc?: undefined;
|
|
1661
|
+
threadId?: undefined;
|
|
1662
|
+
inReplyTo?: undefined;
|
|
1663
|
+
references?: undefined;
|
|
1610
1664
|
calendarId?: undefined;
|
|
1611
1665
|
timeMin?: undefined;
|
|
1612
1666
|
timeMax?: undefined;
|
|
@@ -1716,6 +1770,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
1716
1770
|
subject?: undefined;
|
|
1717
1771
|
cc?: undefined;
|
|
1718
1772
|
bcc?: undefined;
|
|
1773
|
+
threadId?: undefined;
|
|
1774
|
+
inReplyTo?: undefined;
|
|
1775
|
+
references?: undefined;
|
|
1719
1776
|
messageIds?: undefined;
|
|
1720
1777
|
eventId?: undefined;
|
|
1721
1778
|
summary?: undefined;
|
|
@@ -1815,6 +1872,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
1815
1872
|
subject?: undefined;
|
|
1816
1873
|
cc?: undefined;
|
|
1817
1874
|
bcc?: undefined;
|
|
1875
|
+
threadId?: undefined;
|
|
1876
|
+
inReplyTo?: undefined;
|
|
1877
|
+
references?: undefined;
|
|
1818
1878
|
messageIds?: undefined;
|
|
1819
1879
|
timeMin?: undefined;
|
|
1820
1880
|
timeMax?: undefined;
|
|
@@ -1971,6 +2031,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
1971
2031
|
subject?: undefined;
|
|
1972
2032
|
cc?: undefined;
|
|
1973
2033
|
bcc?: undefined;
|
|
2034
|
+
threadId?: undefined;
|
|
2035
|
+
inReplyTo?: undefined;
|
|
2036
|
+
references?: undefined;
|
|
1974
2037
|
messageIds?: undefined;
|
|
1975
2038
|
timeMin?: undefined;
|
|
1976
2039
|
timeMax?: undefined;
|
|
@@ -2134,6 +2197,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
2134
2197
|
subject?: undefined;
|
|
2135
2198
|
cc?: undefined;
|
|
2136
2199
|
bcc?: undefined;
|
|
2200
|
+
threadId?: undefined;
|
|
2201
|
+
inReplyTo?: undefined;
|
|
2202
|
+
references?: undefined;
|
|
2137
2203
|
messageIds?: undefined;
|
|
2138
2204
|
timeMin?: undefined;
|
|
2139
2205
|
timeMax?: undefined;
|
|
@@ -2235,6 +2301,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
2235
2301
|
subject?: undefined;
|
|
2236
2302
|
cc?: undefined;
|
|
2237
2303
|
bcc?: undefined;
|
|
2304
|
+
threadId?: undefined;
|
|
2305
|
+
inReplyTo?: undefined;
|
|
2306
|
+
references?: undefined;
|
|
2238
2307
|
messageIds?: undefined;
|
|
2239
2308
|
timeMin?: undefined;
|
|
2240
2309
|
timeMax?: undefined;
|
|
@@ -2329,6 +2398,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
2329
2398
|
subject?: undefined;
|
|
2330
2399
|
cc?: undefined;
|
|
2331
2400
|
bcc?: undefined;
|
|
2401
|
+
threadId?: undefined;
|
|
2402
|
+
inReplyTo?: undefined;
|
|
2403
|
+
references?: undefined;
|
|
2332
2404
|
messageIds?: undefined;
|
|
2333
2405
|
calendarId?: undefined;
|
|
2334
2406
|
timeMin?: undefined;
|
|
@@ -2427,6 +2499,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
2427
2499
|
subject?: undefined;
|
|
2428
2500
|
cc?: undefined;
|
|
2429
2501
|
bcc?: undefined;
|
|
2502
|
+
threadId?: undefined;
|
|
2503
|
+
inReplyTo?: undefined;
|
|
2504
|
+
references?: undefined;
|
|
2430
2505
|
messageIds?: undefined;
|
|
2431
2506
|
calendarId?: undefined;
|
|
2432
2507
|
timeMin?: undefined;
|
|
@@ -2525,6 +2600,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
2525
2600
|
subject?: undefined;
|
|
2526
2601
|
cc?: undefined;
|
|
2527
2602
|
bcc?: undefined;
|
|
2603
|
+
threadId?: undefined;
|
|
2604
|
+
inReplyTo?: undefined;
|
|
2605
|
+
references?: undefined;
|
|
2528
2606
|
messageIds?: undefined;
|
|
2529
2607
|
calendarId?: undefined;
|
|
2530
2608
|
timeMin?: undefined;
|
|
@@ -2626,6 +2704,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
2626
2704
|
subject?: undefined;
|
|
2627
2705
|
cc?: undefined;
|
|
2628
2706
|
bcc?: undefined;
|
|
2707
|
+
threadId?: undefined;
|
|
2708
|
+
inReplyTo?: undefined;
|
|
2709
|
+
references?: undefined;
|
|
2629
2710
|
messageIds?: undefined;
|
|
2630
2711
|
calendarId?: undefined;
|
|
2631
2712
|
timeMin?: undefined;
|
|
@@ -2731,6 +2812,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
2731
2812
|
subject?: undefined;
|
|
2732
2813
|
cc?: undefined;
|
|
2733
2814
|
bcc?: undefined;
|
|
2815
|
+
threadId?: undefined;
|
|
2816
|
+
inReplyTo?: undefined;
|
|
2817
|
+
references?: undefined;
|
|
2734
2818
|
messageIds?: undefined;
|
|
2735
2819
|
calendarId?: undefined;
|
|
2736
2820
|
timeMin?: undefined;
|
|
@@ -2826,6 +2910,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
2826
2910
|
subject?: undefined;
|
|
2827
2911
|
cc?: undefined;
|
|
2828
2912
|
bcc?: undefined;
|
|
2913
|
+
threadId?: undefined;
|
|
2914
|
+
inReplyTo?: undefined;
|
|
2915
|
+
references?: undefined;
|
|
2829
2916
|
messageIds?: undefined;
|
|
2830
2917
|
calendarId?: undefined;
|
|
2831
2918
|
timeMin?: undefined;
|
|
@@ -2947,6 +3034,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
2947
3034
|
subject?: undefined;
|
|
2948
3035
|
cc?: undefined;
|
|
2949
3036
|
bcc?: undefined;
|
|
3037
|
+
threadId?: undefined;
|
|
3038
|
+
inReplyTo?: undefined;
|
|
3039
|
+
references?: undefined;
|
|
2950
3040
|
messageIds?: undefined;
|
|
2951
3041
|
calendarId?: undefined;
|
|
2952
3042
|
timeMin?: undefined;
|
|
@@ -3058,6 +3148,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
3058
3148
|
subject?: undefined;
|
|
3059
3149
|
cc?: undefined;
|
|
3060
3150
|
bcc?: undefined;
|
|
3151
|
+
threadId?: undefined;
|
|
3152
|
+
inReplyTo?: undefined;
|
|
3153
|
+
references?: undefined;
|
|
3061
3154
|
messageIds?: undefined;
|
|
3062
3155
|
calendarId?: undefined;
|
|
3063
3156
|
timeMin?: undefined;
|
|
@@ -3150,6 +3243,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
3150
3243
|
subject?: undefined;
|
|
3151
3244
|
cc?: undefined;
|
|
3152
3245
|
bcc?: undefined;
|
|
3246
|
+
threadId?: undefined;
|
|
3247
|
+
inReplyTo?: undefined;
|
|
3248
|
+
references?: undefined;
|
|
3153
3249
|
messageIds?: undefined;
|
|
3154
3250
|
calendarId?: undefined;
|
|
3155
3251
|
timeMin?: undefined;
|
|
@@ -3249,6 +3345,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
3249
3345
|
subject?: undefined;
|
|
3250
3346
|
cc?: undefined;
|
|
3251
3347
|
bcc?: undefined;
|
|
3348
|
+
threadId?: undefined;
|
|
3349
|
+
inReplyTo?: undefined;
|
|
3350
|
+
references?: undefined;
|
|
3252
3351
|
messageIds?: undefined;
|
|
3253
3352
|
calendarId?: undefined;
|
|
3254
3353
|
timeMin?: undefined;
|
|
@@ -3349,6 +3448,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
3349
3448
|
subject?: undefined;
|
|
3350
3449
|
cc?: undefined;
|
|
3351
3450
|
bcc?: undefined;
|
|
3451
|
+
threadId?: undefined;
|
|
3452
|
+
inReplyTo?: undefined;
|
|
3453
|
+
references?: undefined;
|
|
3352
3454
|
messageIds?: undefined;
|
|
3353
3455
|
calendarId?: undefined;
|
|
3354
3456
|
timeMin?: undefined;
|
|
@@ -3455,6 +3557,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
3455
3557
|
subject?: undefined;
|
|
3456
3558
|
cc?: undefined;
|
|
3457
3559
|
bcc?: undefined;
|
|
3560
|
+
threadId?: undefined;
|
|
3561
|
+
inReplyTo?: undefined;
|
|
3562
|
+
references?: undefined;
|
|
3458
3563
|
messageIds?: undefined;
|
|
3459
3564
|
calendarId?: undefined;
|
|
3460
3565
|
timeMin?: undefined;
|
|
@@ -3547,6 +3652,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
3547
3652
|
subject?: undefined;
|
|
3548
3653
|
cc?: undefined;
|
|
3549
3654
|
bcc?: undefined;
|
|
3655
|
+
threadId?: undefined;
|
|
3656
|
+
inReplyTo?: undefined;
|
|
3657
|
+
references?: undefined;
|
|
3550
3658
|
messageIds?: undefined;
|
|
3551
3659
|
calendarId?: undefined;
|
|
3552
3660
|
timeMin?: undefined;
|
|
@@ -3645,6 +3753,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
3645
3753
|
subject?: undefined;
|
|
3646
3754
|
cc?: undefined;
|
|
3647
3755
|
bcc?: undefined;
|
|
3756
|
+
threadId?: undefined;
|
|
3757
|
+
inReplyTo?: undefined;
|
|
3758
|
+
references?: undefined;
|
|
3648
3759
|
messageIds?: undefined;
|
|
3649
3760
|
calendarId?: undefined;
|
|
3650
3761
|
timeMin?: undefined;
|
|
@@ -3753,6 +3864,9 @@ export declare const ACTION_REGISTRY: {
|
|
|
3753
3864
|
subject?: undefined;
|
|
3754
3865
|
cc?: undefined;
|
|
3755
3866
|
bcc?: undefined;
|
|
3867
|
+
threadId?: undefined;
|
|
3868
|
+
inReplyTo?: undefined;
|
|
3869
|
+
references?: undefined;
|
|
3756
3870
|
messageIds?: undefined;
|
|
3757
3871
|
calendarId?: undefined;
|
|
3758
3872
|
timeMin?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-registry-json.d.ts","sourceRoot":"","sources":["../../src/registry/action-registry-json.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe
|
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CANONICAL_PROVIDERS, PROVIDER_ALIASES,
|
|
|
6
6
|
export { RESOURCE_TYPES, UnifiedResourceType, LEGACY_RESOURCE_TYPE_MAP, resolveResourceType, } from './resource-types';
|
|
7
7
|
export { canonicalizeAction, getActionAliases, getAllActionForms, isActionEquivalent, } from './action-aliases';
|
|
8
8
|
export { VALID_MCP_ACTIONS, VALID_MCP_TOOLS, getAllValidMcpActionNames, getValidMcpActionNames, normalizeMcpActionName, } from './action-normalizer';
|
|
9
|
+
export { REAUTH_REQUIRED_ACTION, GATEWAY_ERROR_CODE, } from './reauth-constants';
|
|
10
|
+
export type { GatewayErrorCode } from './reauth-constants';
|
|
9
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,eAAe,EACf,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EACrB,YAAY,EACZ,WAAW,EACX,UAAU,EACV,eAAe,GAChB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,UAAU,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,EAC5B,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,mBAAmB,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AAGtC,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,eAAe,GAChB,MAAM,aAAa,CAAA;AAGpB,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,qBAAqB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,eAAe,EACf,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EACrB,YAAY,EACZ,WAAW,EACX,UAAU,EACV,eAAe,GAChB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,UAAU,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,EAC5B,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,mBAAmB,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AAGtC,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,eAAe,GAChB,MAAM,aAAa,CAAA;AAGpB,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,EACL,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-package constants for the reauth pipeline.
|
|
3
|
+
*
|
|
4
|
+
* These string literals are contract-level identifiers shared between:
|
|
5
|
+
* - api (`tool-auth.service.ts`, `token-refresh.service.ts`)
|
|
6
|
+
* - remote-mcp (`mcp-format-result.ts`)
|
|
7
|
+
* - agentd (`gateway-client.ts`, `credential-errors.ts`, `execution-engine.ts`)
|
|
8
|
+
*
|
|
9
|
+
* Hard-coding them at each site made typo bugs silent. Centralizing here
|
|
10
|
+
* means any renames surface as a compile error on every import site.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Value for `ToolInvokeResponse.metadata.action` when the api signals a
|
|
14
|
+
* revoked/expired OAuth token. Consumers branch on this to render a reauth
|
|
15
|
+
* prompt (Slack DM card, CLI authUrl, etc.) instead of treating the response
|
|
16
|
+
* as a normal error.
|
|
17
|
+
*/
|
|
18
|
+
export declare const REAUTH_REQUIRED_ACTION: "reauth_required";
|
|
19
|
+
/**
|
|
20
|
+
* Error codes emitted by agentd's `gateway-client.invokeTool` to classify
|
|
21
|
+
* failure modes for the ExecutionEngine to branch on. Kept as a const object
|
|
22
|
+
* rather than an enum so it serializes cleanly across the wire and in logs.
|
|
23
|
+
*/
|
|
24
|
+
export declare const GATEWAY_ERROR_CODE: {
|
|
25
|
+
/** Upstream OAuth token is revoked — the user must re-auth at the SaaS provider. */
|
|
26
|
+
readonly REAUTH_REQUIRED: "REAUTH_REQUIRED";
|
|
27
|
+
/** Local VC/VP is invalid (expired, malformed, signature mismatch). Try VC reissuance. */
|
|
28
|
+
readonly CREDENTIAL_INVALID: "CREDENTIAL_INVALID";
|
|
29
|
+
/** VC allowed a different resource than the request targeted. Try a new approval. */
|
|
30
|
+
readonly RESOURCE_MISMATCH: "RESOURCE_MISMATCH";
|
|
31
|
+
};
|
|
32
|
+
export type GatewayErrorCode = (typeof GATEWAY_ERROR_CODE)[keyof typeof GATEWAY_ERROR_CODE];
|
|
33
|
+
//# sourceMappingURL=reauth-constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reauth-constants.d.ts","sourceRoot":"","sources":["../../src/registry/reauth-constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAG,iBAA0B,CAAA;AAEhE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;IAC7B,oFAAoF;;IAEpF,0FAA0F;;IAE1F,qFAAqF;;CAE7E,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAA"}
|