@kya-os/contracts 1.6.8 → 1.6.9
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.
|
@@ -43,4 +43,15 @@ export interface ToolExecutionContext {
|
|
|
43
43
|
sessionId?: string;
|
|
44
44
|
/** Delegation token (MCP-I internal authorization) */
|
|
45
45
|
delegationToken?: string;
|
|
46
|
+
/**
|
|
47
|
+
* User ID from credential provider (CRED-003)
|
|
48
|
+
*
|
|
49
|
+
* For credential providers, this is the userId extracted from the
|
|
50
|
+
* authentication response via responseFields.userId configuration.
|
|
51
|
+
* This allows tool handlers to access the external system's user ID
|
|
52
|
+
* (e.g., customer ID for an e-commerce API).
|
|
53
|
+
*
|
|
54
|
+
* For OAuth providers, this is typically not set (use userDid instead).
|
|
55
|
+
*/
|
|
56
|
+
userId?: string;
|
|
46
57
|
}
|