@cjhyy/code-shell-link 0.9.22 → 0.9.25

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.
@@ -20,8 +20,8 @@ export interface MaskedLinkConnection {
20
20
  providerId: string;
21
21
  methodId: string;
22
22
  label: string;
23
- runtime: "local";
24
- authSource: "manual-token" | "cli-session" | "browser-oauth";
23
+ runtime: "local" | "server";
24
+ authSource: "manual-token" | "cli-session" | "browser-oauth" | "remote-link";
25
25
  status: "connected" | "expired" | "invalid" | "unavailable";
26
26
  account?: {
27
27
  id?: string;
@@ -42,7 +42,13 @@ export interface LinkSnapshot {
42
42
  token: boolean;
43
43
  cliBinding: boolean;
44
44
  deviceAuth: boolean;
45
+ remoteAuth?: boolean;
45
46
  };
47
+ remoteServer?: {
48
+ issuer: string;
49
+ };
50
+ /** Count only; retired secrets never leave the Host. Retried after restart with backoff. */
51
+ remoteCleanupPending?: number;
46
52
  revision: string;
47
53
  }
48
54
  /** null means create-only; a string is the exact connection revision reviewed by the user. */
@@ -67,6 +73,11 @@ export interface LinkAuthorization {
67
73
  verificationUriComplete?: string;
68
74
  expiresAt: string;
69
75
  };
76
+ redirect?: {
77
+ authorizationUrl: string;
78
+ expiresAt: string;
79
+ };
80
+ previousGrantRevocationPending?: boolean;
70
81
  connection?: MaskedLinkConnection;
71
82
  errorCode?: LinkErrorCode;
72
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cjhyy/code-shell-link",
3
- "version": "0.9.22",
3
+ "version": "0.9.25",
4
4
  "description": "Framework-independent provider manifests and authorization guides for CodeShell Link.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",