@atproto/oauth-types 0.7.0 → 0.7.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/CHANGELOG.md +17 -0
- package/dist/atproto-oauth-scope.d.ts +1 -1
- package/dist/oauth-authorization-code-grant-token-request.d.ts +4 -4
- package/dist/oauth-authorization-request-par.d.ts +27 -27
- package/dist/oauth-authorization-request-parameters.d.ts +27 -27
- package/dist/oauth-authorization-request-query.d.ts +27 -27
- package/dist/oauth-authorization-server-metadata.d.ts +107 -107
- package/dist/oauth-client-id-loopback.d.ts +2 -2
- package/dist/oauth-client-metadata.d.ts +127 -127
- package/dist/oauth-client-metadata.d.ts.map +1 -1
- package/dist/oauth-endpoint-name.d.ts +1 -1
- package/dist/oauth-endpoint-name.d.ts.map +1 -1
- package/dist/oauth-issuer-identifier.d.ts +1 -1
- package/dist/oauth-par-response.d.ts +2 -2
- package/dist/oauth-password-grant-token-request.d.ts +2 -2
- package/dist/oauth-protected-resource-metadata.d.ts +15 -15
- package/dist/oauth-redirect-uri.d.ts +3 -3
- package/dist/oauth-refresh-token-grant-token-request.d.ts +2 -2
- package/dist/oauth-scope.d.ts.map +1 -1
- package/dist/oauth-token-identification.d.ts +2 -2
- package/dist/oauth-token-request.d.ts +8 -8
- package/dist/oidc-claims-properties.d.ts +2 -2
- package/dist/oidc-userinfo.d.ts +6 -6
- package/dist/uri.d.ts +2 -2
- package/dist/util.d.ts.map +1 -1
- package/package.json +5 -7
- package/tsconfig.build.json +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.json +1 -1
|
@@ -11,7 +11,7 @@ export declare const oauthProtectedResourceMetadataSchema: z.ZodObject<{
|
|
|
11
11
|
* @note This schema allows non https URLs for testing & development purposes.
|
|
12
12
|
* Make sure to validate the URL before using it in a production environment.
|
|
13
13
|
*/
|
|
14
|
-
resource: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString,
|
|
14
|
+
resource: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}`, string>, "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}`, string>, "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}`, string>;
|
|
15
15
|
/**
|
|
16
16
|
* OPTIONAL. JSON array containing a list of OAuth authorization server issuer
|
|
17
17
|
* identifiers, as defined in [RFC8414], for authorization servers that can be
|
|
@@ -20,7 +20,7 @@ export declare const oauthProtectedResourceMetadataSchema: z.ZodObject<{
|
|
|
20
20
|
* used. In some use cases, the set of authorization servers will not be
|
|
21
21
|
* enumerable, in which case this metadata parameter would not be used.
|
|
22
22
|
*/
|
|
23
|
-
authorization_servers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString,
|
|
23
|
+
authorization_servers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}`, string>, "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}`, string>, "many">>;
|
|
24
24
|
/**
|
|
25
25
|
* OPTIONAL. URL of the protected resource's JWK Set [JWK] document. This
|
|
26
26
|
* contains public keys belonging to the protected resource, such as signing
|
|
@@ -29,7 +29,7 @@ export declare const oauthProtectedResourceMetadataSchema: z.ZodObject<{
|
|
|
29
29
|
* available, a use (public key use) parameter value is REQUIRED for all keys
|
|
30
30
|
* in the referenced JWK Set to indicate each key's intended usage.
|
|
31
31
|
*/
|
|
32
|
-
jwks_uri: z.ZodOptional<z.ZodEffects<z.ZodString,
|
|
32
|
+
jwks_uri: z.ZodOptional<z.ZodEffects<z.ZodString, "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}`, string>>;
|
|
33
33
|
/**
|
|
34
34
|
* RECOMMENDED. JSON array containing a list of the OAuth 2.0 [RFC6749] scope
|
|
35
35
|
* values that are used in authorization requests to request access to this
|
|
@@ -56,34 +56,34 @@ export declare const oauthProtectedResourceMetadataSchema: z.ZodObject<{
|
|
|
56
56
|
* OPTIONAL. URL of a page containing human-readable information that
|
|
57
57
|
* developers might want or need to know when using the protected resource
|
|
58
58
|
*/
|
|
59
|
-
resource_documentation: z.ZodOptional<z.ZodEffects<z.ZodString,
|
|
59
|
+
resource_documentation: z.ZodOptional<z.ZodEffects<z.ZodString, "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}`, string>>;
|
|
60
60
|
/**
|
|
61
61
|
* OPTIONAL. URL that the protected resource provides to read about the
|
|
62
62
|
* protected resource's requirements on how the client can use the data
|
|
63
63
|
* provided by the protected resource
|
|
64
64
|
*/
|
|
65
|
-
resource_policy_uri: z.ZodOptional<z.ZodEffects<z.ZodString,
|
|
65
|
+
resource_policy_uri: z.ZodOptional<z.ZodEffects<z.ZodString, "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}`, string>>;
|
|
66
66
|
/**
|
|
67
67
|
* OPTIONAL. URL that the protected resource provides to read about the
|
|
68
68
|
* protected resource's terms of service
|
|
69
69
|
*/
|
|
70
|
-
resource_tos_uri: z.ZodOptional<z.ZodEffects<z.ZodString,
|
|
70
|
+
resource_tos_uri: z.ZodOptional<z.ZodEffects<z.ZodString, "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}`, string>>;
|
|
71
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
resource:
|
|
73
|
-
|
|
72
|
+
resource: "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}`;
|
|
73
|
+
authorization_servers?: ("http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}`)[] | undefined;
|
|
74
|
+
jwks_uri?: "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}` | undefined;
|
|
74
75
|
scopes_supported?: string[] | undefined;
|
|
75
|
-
|
|
76
|
-
bearer_methods_supported?: ("query" | "header" | "body")[] | undefined;
|
|
76
|
+
bearer_methods_supported?: ("body" | "header" | "query")[] | undefined;
|
|
77
77
|
resource_signing_alg_values_supported?: string[] | undefined;
|
|
78
|
-
resource_documentation?:
|
|
79
|
-
resource_policy_uri?:
|
|
80
|
-
resource_tos_uri?:
|
|
78
|
+
resource_documentation?: "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}` | undefined;
|
|
79
|
+
resource_policy_uri?: "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}` | undefined;
|
|
80
|
+
resource_tos_uri?: "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}` | undefined;
|
|
81
81
|
}, {
|
|
82
82
|
resource: string;
|
|
83
|
+
authorization_servers?: string[] | undefined;
|
|
83
84
|
jwks_uri?: string | undefined;
|
|
84
85
|
scopes_supported?: string[] | undefined;
|
|
85
|
-
|
|
86
|
-
bearer_methods_supported?: ("query" | "header" | "body")[] | undefined;
|
|
86
|
+
bearer_methods_supported?: ("body" | "header" | "query")[] | undefined;
|
|
87
87
|
resource_signing_alg_values_supported?: string[] | undefined;
|
|
88
88
|
resource_documentation?: string | undefined;
|
|
89
89
|
resource_policy_uri?: string | undefined;
|
|
@@ -13,10 +13,10 @@ import { TypeOf, z } from 'zod';
|
|
|
13
13
|
* > than the loopback interface. It is also less susceptible to client-side
|
|
14
14
|
* > firewalls and misconfigured host name resolution on the user's device.
|
|
15
15
|
*/
|
|
16
|
-
export declare const loopbackRedirectURISchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>,
|
|
16
|
+
export declare const loopbackRedirectURISchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}`, string>, "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}`, string>;
|
|
17
17
|
export type LoopbackRedirectURI = TypeOf<typeof loopbackRedirectURISchema>;
|
|
18
|
-
export declare const oauthLoopbackClientRedirectUriSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>,
|
|
18
|
+
export declare const oauthLoopbackClientRedirectUriSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}`, string>, "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}`, string>;
|
|
19
19
|
export type OAuthLoopbackRedirectURI = TypeOf<typeof oauthLoopbackClientRedirectUriSchema>;
|
|
20
|
-
export declare const oauthRedirectUriSchema: z.ZodEffects<z.ZodString,
|
|
20
|
+
export declare const oauthRedirectUriSchema: z.ZodEffects<z.ZodString, "http://127.0.0.1" | `${string}.${string}:/${string}` | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `https://${string}`, string>;
|
|
21
21
|
export type OAuthRedirectUri = TypeOf<typeof oauthRedirectUriSchema>;
|
|
22
22
|
//# sourceMappingURL=oauth-redirect-uri.d.ts.map
|
|
@@ -3,11 +3,11 @@ export declare const oauthRefreshTokenGrantTokenRequestSchema: z.ZodObject<{
|
|
|
3
3
|
grant_type: z.ZodLiteral<"refresh_token">;
|
|
4
4
|
refresh_token: z.ZodString;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
refresh_token: string;
|
|
7
6
|
grant_type: "refresh_token";
|
|
8
|
-
}, {
|
|
9
7
|
refresh_token: string;
|
|
8
|
+
}, {
|
|
10
9
|
grant_type: "refresh_token";
|
|
10
|
+
refresh_token: string;
|
|
11
11
|
}>;
|
|
12
12
|
export type OAuthRefreshTokenGrantTokenRequest = z.infer<typeof oauthRefreshTokenGrantTokenRequestSchema>;
|
|
13
13
|
//# sourceMappingURL=oauth-refresh-token-grant-token-request.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-scope.d.ts","sourceRoot":"","sources":["../src/oauth-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,kBAAkB,QAC+B,CAAA;AAE9D,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"oauth-scope.d.ts","sourceRoot":"","sources":["../src/oauth-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,kBAAkB,QAC+B,CAAA;AAE9D,eAAO,MAAM,YAAY,UAAW,MAAM,KAAG,OACb,CAAA;AAEhC;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,2CAE3B,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
|
@@ -4,10 +4,10 @@ export declare const oauthTokenIdentificationSchema: z.ZodObject<{
|
|
|
4
4
|
token_type_hint: z.ZodOptional<z.ZodEnum<["access_token", "refresh_token"]>>;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
6
|
token: string;
|
|
7
|
-
token_type_hint?: "
|
|
7
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
8
8
|
}, {
|
|
9
9
|
token: string;
|
|
10
|
-
token_type_hint?: "
|
|
10
|
+
token_type_hint?: "access_token" | "refresh_token" | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
export type OAuthTokenIdentification = z.infer<typeof oauthTokenIdentificationSchema>;
|
|
13
13
|
//# sourceMappingURL=oauth-token-identification.d.ts.map
|
|
@@ -2,39 +2,39 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const oauthTokenRequestSchema: z.ZodDiscriminatedUnion<"grant_type", [z.ZodObject<{
|
|
3
3
|
grant_type: z.ZodLiteral<"authorization_code">;
|
|
4
4
|
code: z.ZodString;
|
|
5
|
-
redirect_uri: z.ZodEffects<z.ZodString,
|
|
5
|
+
redirect_uri: z.ZodEffects<z.ZodString, "http://127.0.0.1" | `${string}.${string}:/${string}` | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `https://${string}`, string>;
|
|
6
6
|
code_verifier: z.ZodOptional<z.ZodString>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
code: string;
|
|
9
|
-
redirect_uri: `http://[::1]${string}` | "http://127.0.0.1" | `http://127.0.0.1#${string}` | `http://127.0.0.1?${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `https://${string}` | `${string}.${string}:/${string}`;
|
|
10
8
|
grant_type: "authorization_code";
|
|
9
|
+
code: string;
|
|
10
|
+
redirect_uri: "http://127.0.0.1" | `${string}.${string}:/${string}` | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `https://${string}`;
|
|
11
11
|
code_verifier?: string | undefined;
|
|
12
12
|
}, {
|
|
13
|
+
grant_type: "authorization_code";
|
|
13
14
|
code: string;
|
|
14
15
|
redirect_uri: string;
|
|
15
|
-
grant_type: "authorization_code";
|
|
16
16
|
code_verifier?: string | undefined;
|
|
17
17
|
}>, z.ZodObject<{
|
|
18
18
|
grant_type: z.ZodLiteral<"refresh_token">;
|
|
19
19
|
refresh_token: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
refresh_token: string;
|
|
22
21
|
grant_type: "refresh_token";
|
|
23
|
-
}, {
|
|
24
22
|
refresh_token: string;
|
|
23
|
+
}, {
|
|
25
24
|
grant_type: "refresh_token";
|
|
25
|
+
refresh_token: string;
|
|
26
26
|
}>, z.ZodObject<{
|
|
27
27
|
grant_type: z.ZodLiteral<"password">;
|
|
28
28
|
username: z.ZodString;
|
|
29
29
|
password: z.ZodString;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
password: string;
|
|
32
31
|
grant_type: "password";
|
|
33
32
|
username: string;
|
|
34
|
-
}, {
|
|
35
33
|
password: string;
|
|
34
|
+
}, {
|
|
36
35
|
grant_type: "password";
|
|
37
36
|
username: string;
|
|
37
|
+
password: string;
|
|
38
38
|
}>, z.ZodObject<{
|
|
39
39
|
grant_type: z.ZodLiteral<"client_credentials">;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4,13 +4,13 @@ export declare const oidcClaimsPropertiesSchema: z.ZodObject<{
|
|
|
4
4
|
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
5
5
|
values: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
essential?: boolean | undefined;
|
|
7
8
|
value?: string | number | boolean | undefined;
|
|
8
9
|
values?: (string | number | boolean)[] | undefined;
|
|
9
|
-
essential?: boolean | undefined;
|
|
10
10
|
}, {
|
|
11
|
+
essential?: boolean | undefined;
|
|
11
12
|
value?: string | number | boolean | undefined;
|
|
12
13
|
values?: (string | number | boolean)[] | undefined;
|
|
13
|
-
essential?: boolean | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export type OidcClaimsProperties = z.infer<typeof oidcClaimsPropertiesSchema>;
|
|
16
16
|
//# sourceMappingURL=oidc-claims-properties.d.ts.map
|
package/dist/oidc-userinfo.d.ts
CHANGED
|
@@ -10,22 +10,22 @@ export declare const oidcUserinfoSchema: z.ZodObject<{
|
|
|
10
10
|
picture: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
sub: string;
|
|
13
|
+
iss?: string | undefined;
|
|
14
|
+
aud?: string | string[] | undefined;
|
|
13
15
|
email?: string | undefined;
|
|
16
|
+
email_verified?: boolean | undefined;
|
|
14
17
|
name?: string | undefined;
|
|
15
18
|
preferred_username?: string | undefined;
|
|
16
19
|
picture?: string | undefined;
|
|
17
|
-
email_verified?: boolean | undefined;
|
|
18
|
-
iss?: string | undefined;
|
|
19
|
-
aud?: string | string[] | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
sub: string;
|
|
22
|
+
iss?: string | undefined;
|
|
23
|
+
aud?: string | string[] | undefined;
|
|
22
24
|
email?: string | undefined;
|
|
25
|
+
email_verified?: boolean | undefined;
|
|
23
26
|
name?: string | undefined;
|
|
24
27
|
preferred_username?: string | undefined;
|
|
25
28
|
picture?: string | undefined;
|
|
26
|
-
email_verified?: boolean | undefined;
|
|
27
|
-
iss?: string | undefined;
|
|
28
|
-
aud?: string | string[] | undefined;
|
|
29
29
|
}>;
|
|
30
30
|
export type OidcUserinfo = z.infer<typeof oidcUserinfoSchema>;
|
|
31
31
|
//# sourceMappingURL=oidc-userinfo.d.ts.map
|
package/dist/uri.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ export declare const dangerousUriSchema: z.ZodEffects<z.ZodString, `${string}:${
|
|
|
9
9
|
* Valid, but potentially dangerous URL (`data:`, `file:`, `javascript:`, etc.).
|
|
10
10
|
*/
|
|
11
11
|
export type DangerousUrl = TypeOf<typeof dangerousUriSchema>;
|
|
12
|
-
export declare const loopbackUriSchema: z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>,
|
|
12
|
+
export declare const loopbackUriSchema: z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}`, string>;
|
|
13
13
|
export type LoopbackUri = TypeOf<typeof loopbackUriSchema>;
|
|
14
14
|
export declare const httpsUriSchema: z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, `https://${string}`, string>;
|
|
15
15
|
export type HttpsUri = TypeOf<typeof httpsUriSchema>;
|
|
16
|
-
export declare const webUriSchema: z.ZodEffects<z.ZodString,
|
|
16
|
+
export declare const webUriSchema: z.ZodEffects<z.ZodString, "http://127.0.0.1" | "http://localhost" | `http://127.0.0.1#${string}` | `http://127.0.0.1/${string}` | `http://127.0.0.1:${string}` | `http://127.0.0.1?${string}` | `http://[::1]${string}` | `http://localhost#${string}` | `http://localhost/${string}` | `http://localhost:${string}` | `http://localhost?${string}` | `https://${string}`, string>;
|
|
17
17
|
export type WebUri = TypeOf<typeof webUriSchema>;
|
|
18
18
|
export declare const privateUseUriSchema: z.ZodEffects<z.ZodEffects<z.ZodString, `${string}:${string}`, string>, `${string}.${string}:/${string}`, string>;
|
|
19
19
|
export type PrivateUseUri = TypeOf<typeof privateUseUriSchema>;
|
package/dist/util.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,qDAWpB,CAAA;AAEJ,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,WAQ5C;AAED,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,CAAA;AAE9D,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,YAAY,CAElE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAYzD;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,GAAG,GAAG,GAAG,IAAI,CAMvD;AAED,wBAAgB,cAAc,CAAC,GAAG,KAAA,OAsCjC;AAED,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,qDAWpB,CAAA;AAEJ,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,WAQ5C;AAED,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,CAAA;AAE9D,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,YAAY,CAElE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAYzD;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,GAAG,GAAG,GAAG,IAAI,CAMvD;AAED,wBAAgB,cAAc,CAAC,GAAG,KAAA,OAsCjC;AAED,eAAO,MAAM,oBAAoB,QAAS,OAAO,QAUhD,CAAA;AAED,eAAO,MAAM,gBAAgB,QAAS,OAAO,KAAG,OAM/C,CAAA;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,WAGlE;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,WAExD;AAED,wBAAgB,OAAO,CAAC,CAAC,EACvB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,GAC7B,SAAS,GAAG,SAAS,CAAC,EAAE,CAI1B;AAED,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,MAAM,IAClD,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,GAAG,KAAK,GAAG,EAAE,GAAG,IAAI,MAAM,EAAE,EAAE,CAAA;AAEpD,eAAO,MAAM,qBAAqB,GAAI,KAAK,SAAS,MAAM,SACjD,KAAK,SACL,MAAM,KACZ,KAAK,IAAI,mBAAmB,CAAC,KAAK,CA+BpC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/oauth-types",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22"
|
|
6
6
|
},
|
|
@@ -27,13 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"zod": "^3.23.8",
|
|
30
|
-
"@atproto/did": "^0.
|
|
31
|
-
"@atproto/jwk": "^0.7.
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"typescript": "^6.0.3"
|
|
30
|
+
"@atproto/did": "^0.5.1",
|
|
31
|
+
"@atproto/jwk": "^0.7.1"
|
|
35
32
|
},
|
|
33
|
+
"devDependencies": {},
|
|
36
34
|
"scripts": {
|
|
37
|
-
"build": "
|
|
35
|
+
"build": "tsgo --build tsconfig.build.json"
|
|
38
36
|
}
|
|
39
37
|
}
|
package/tsconfig.build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/atproto-loopback-client-id.ts","./src/atproto-loopback-client-metadata.ts","./src/atproto-loopback-client-redirect-uris.ts","./src/atproto-oauth-scope.ts","./src/atproto-oauth-token-response.ts","./src/constants.ts","./src/index.ts","./src/oauth-access-token.ts","./src/oauth-authorization-code-grant-token-request.ts","./src/oauth-authorization-details.ts","./src/oauth-authorization-request-jar.ts","./src/oauth-authorization-request-par.ts","./src/oauth-authorization-request-parameters.ts","./src/oauth-authorization-request-query.ts","./src/oauth-authorization-request-uri.ts","./src/oauth-authorization-response-error.ts","./src/oauth-authorization-server-metadata.ts","./src/oauth-client-credentials-grant-token-request.ts","./src/oauth-client-credentials.ts","./src/oauth-client-id-discoverable.ts","./src/oauth-client-id-loopback.ts","./src/oauth-client-id.ts","./src/oauth-client-metadata.ts","./src/oauth-code-challenge-method.ts","./src/oauth-endpoint-auth-method.ts","./src/oauth-endpoint-name.ts","./src/oauth-grant-type.ts","./src/oauth-introspection-response.ts","./src/oauth-issuer-identifier.ts","./src/oauth-par-response.ts","./src/oauth-password-grant-token-request.ts","./src/oauth-prompt-mode.ts","./src/oauth-protected-resource-metadata.ts","./src/oauth-redirect-uri.ts","./src/oauth-refresh-token-grant-token-request.ts","./src/oauth-refresh-token.ts","./src/oauth-request-uri.ts","./src/oauth-response-mode.ts","./src/oauth-response-type.ts","./src/oauth-scope.ts","./src/oauth-token-identification.ts","./src/oauth-token-request.ts","./src/oauth-token-response.ts","./src/oauth-token-type.ts","./src/oidc-authorization-error-response.ts","./src/oidc-claims-parameter.ts","./src/oidc-claims-properties.ts","./src/oidc-entity-type.ts","./src/oidc-userinfo.ts","./src/uri.ts","./src/util.ts"]
|
|
1
|
+
{"version":"7.0.0-dev.20260614.1","root":["./src/atproto-loopback-client-id.ts","./src/atproto-loopback-client-metadata.ts","./src/atproto-loopback-client-redirect-uris.ts","./src/atproto-oauth-scope.ts","./src/atproto-oauth-token-response.ts","./src/constants.ts","./src/index.ts","./src/oauth-access-token.ts","./src/oauth-authorization-code-grant-token-request.ts","./src/oauth-authorization-details.ts","./src/oauth-authorization-request-jar.ts","./src/oauth-authorization-request-par.ts","./src/oauth-authorization-request-parameters.ts","./src/oauth-authorization-request-query.ts","./src/oauth-authorization-request-uri.ts","./src/oauth-authorization-response-error.ts","./src/oauth-authorization-server-metadata.ts","./src/oauth-client-credentials-grant-token-request.ts","./src/oauth-client-credentials.ts","./src/oauth-client-id-discoverable.ts","./src/oauth-client-id-loopback.ts","./src/oauth-client-id.ts","./src/oauth-client-metadata.ts","./src/oauth-code-challenge-method.ts","./src/oauth-endpoint-auth-method.ts","./src/oauth-endpoint-name.ts","./src/oauth-grant-type.ts","./src/oauth-introspection-response.ts","./src/oauth-issuer-identifier.ts","./src/oauth-par-response.ts","./src/oauth-password-grant-token-request.ts","./src/oauth-prompt-mode.ts","./src/oauth-protected-resource-metadata.ts","./src/oauth-redirect-uri.ts","./src/oauth-refresh-token-grant-token-request.ts","./src/oauth-refresh-token.ts","./src/oauth-request-uri.ts","./src/oauth-response-mode.ts","./src/oauth-response-type.ts","./src/oauth-scope.ts","./src/oauth-token-identification.ts","./src/oauth-token-request.ts","./src/oauth-token-response.ts","./src/oauth-token-type.ts","./src/oidc-authorization-error-response.ts","./src/oidc-claims-parameter.ts","./src/oidc-claims-properties.ts","./src/oidc-entity-type.ts","./src/oidc-userinfo.ts","./src/uri.ts","./src/util.ts"]}
|
package/tsconfig.json
CHANGED