@vercel/cli-auth 0.3.14 → 0.3.15-snapshot-b8e5bb846796
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/oauth.d.ts +4 -9
- package/package.json +3 -3
- package/sso.d.ts +1 -1
package/oauth.d.ts
CHANGED
|
@@ -6,13 +6,13 @@ declare const AuthorizationServerMetadata: z.ZodMiniObject<{
|
|
|
6
6
|
revocation_endpoint: z.ZodMiniURL;
|
|
7
7
|
jwks_uri: z.ZodMiniURL;
|
|
8
8
|
introspection_endpoint: z.ZodMiniURL;
|
|
9
|
-
}, z.core.$strip>;
|
|
9
|
+
}, z.z.core.$strip>;
|
|
10
10
|
export type AuthorizationServerMetadata = z.infer<typeof AuthorizationServerMetadata>;
|
|
11
11
|
declare const IntrospectionResponse: z.ZodMiniObject<{
|
|
12
12
|
active: z.ZodMiniBoolean<boolean>;
|
|
13
13
|
client_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
14
14
|
session_id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
15
|
-
}, z.core.$strip>;
|
|
15
|
+
}, z.z.core.$strip>;
|
|
16
16
|
export declare function OAuth(config: {
|
|
17
17
|
issuer: URL;
|
|
18
18
|
clientId: string;
|
|
@@ -166,17 +166,12 @@ export declare function OAuth(config: {
|
|
|
166
166
|
};
|
|
167
167
|
export type OAuth = ReturnType<typeof OAuth>;
|
|
168
168
|
declare const TokenSet: z.ZodMiniObject<{
|
|
169
|
-
/** The access token issued by the authorization server. */
|
|
170
169
|
access_token: z.ZodMiniString<string>;
|
|
171
|
-
/** The type of the token issued */
|
|
172
170
|
token_type: z.ZodMiniLiteral<"Bearer">;
|
|
173
|
-
/** The lifetime in seconds of the access token. */
|
|
174
171
|
expires_in: z.ZodMiniNumber<number>;
|
|
175
|
-
/** The refresh token, which can be used to obtain new access tokens. */
|
|
176
172
|
refresh_token: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
177
|
-
/** The scope of the access token. */
|
|
178
173
|
scope: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
179
|
-
}, z.core.$strip>;
|
|
174
|
+
}, z.z.core.$strip>;
|
|
180
175
|
type TokenSet = z.infer<typeof TokenSet>;
|
|
181
176
|
declare const OAuthErrorResponse: z.ZodMiniObject<{
|
|
182
177
|
error: z.ZodMiniEnum<{
|
|
@@ -195,7 +190,7 @@ declare const OAuthErrorResponse: z.ZodMiniObject<{
|
|
|
195
190
|
}>;
|
|
196
191
|
error_description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
197
192
|
error_uri: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
198
|
-
}, z.core.$strip>;
|
|
193
|
+
}, z.z.core.$strip>;
|
|
199
194
|
type OAuthErrorResponse = z.infer<typeof OAuthErrorResponse>;
|
|
200
195
|
declare class OAuthError extends Error {
|
|
201
196
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/cli-auth",
|
|
3
3
|
"description": "Used by Vercel's CLIs to handle authentication",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.15-snapshot-b8e5bb846796",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"@napi-rs/keyring": "1.2.0",
|
|
23
23
|
"async-listen": "3.0.0",
|
|
24
24
|
"open": "8.4.0",
|
|
25
|
-
"zod": "4.
|
|
26
|
-
"@vercel/cli-config": "0.3.
|
|
25
|
+
"zod": "^4.6.6",
|
|
26
|
+
"@vercel/cli-config": "0.3.6-snapshot-b8e5bb846796"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "20.11.0",
|
package/sso.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ declare const SSOError: z.ZodMiniObject<{
|
|
|
18
18
|
message: z.ZodMiniString<string>;
|
|
19
19
|
scope: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
20
20
|
enforced: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
21
|
-
}, z.core.$strip>;
|
|
21
|
+
}, z.z.core.$strip>;
|
|
22
22
|
/** Parse an error-like object to determine if SSO re-authorization is required. */
|
|
23
23
|
export declare function parseSSOError(error: unknown): z.infer<typeof SSOError> | undefined;
|
|
24
24
|
export {};
|