@openacp/cli 2026.414.1 → 2026.414.2
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/cli.js +41 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3820,6 +3820,13 @@ interface StoredToken {
|
|
|
3820
3820
|
revoked: boolean;
|
|
3821
3821
|
/** User ID from identity system. Null until user completes /identity/setup. */
|
|
3822
3822
|
userId?: string;
|
|
3823
|
+
/**
|
|
3824
|
+
* Per-token secret for identity re-linking on reconnect.
|
|
3825
|
+
* Never embedded in the JWT — only returned at token creation/exchange time.
|
|
3826
|
+
* The App stores this in its workspace store and uses it to silently re-link
|
|
3827
|
+
* a new token to the same user after the old token's refresh deadline expires.
|
|
3828
|
+
*/
|
|
3829
|
+
identitySecret: string;
|
|
3823
3830
|
}
|
|
3824
3831
|
interface CreateTokenOpts {
|
|
3825
3832
|
role: string;
|
|
@@ -3900,6 +3907,14 @@ declare class TokenStore {
|
|
|
3900
3907
|
setUserId(tokenId: string, userId: string): void;
|
|
3901
3908
|
/** Get the user ID associated with a token. */
|
|
3902
3909
|
getUserId(tokenId: string): string | undefined;
|
|
3910
|
+
/**
|
|
3911
|
+
* Looks up a non-revoked token by its identity secret.
|
|
3912
|
+
*
|
|
3913
|
+
* Used by the identity re-link flow: the App sends the old token's identitySecret
|
|
3914
|
+
* to prove continuity of identity when reconnecting with a new JWT.
|
|
3915
|
+
* Returns undefined if no match, or if the matching token is revoked.
|
|
3916
|
+
*/
|
|
3917
|
+
getByIdentitySecret(secret: string): StoredToken | undefined;
|
|
3903
3918
|
/**
|
|
3904
3919
|
* Generates a one-time authorization code that can be exchanged for a JWT.
|
|
3905
3920
|
*
|