@atproto/oauth-types 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +9 -0
- package/dist/oauth-authorization-server-metadata.d.ts +10 -0
- package/dist/oauth-authorization-server-metadata.d.ts.map +1 -1
- package/dist/oauth-authorization-server-metadata.js +2 -0
- package/dist/oauth-authorization-server-metadata.js.map +1 -1
- package/package.json +2 -2
- package/src/oauth-authorization-server-metadata.ts +3 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# @atproto/oauth-types
|
2
2
|
|
3
|
+
## 0.1.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#2633](https://github.com/bluesky-social/atproto/pull/2633) [`acc9093d2`](https://github.com/bluesky-social/atproto/commit/acc9093d2845eba02b68fb2f9db33e4f1b59bb10) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Add client_id_metadata_document_supported in metadata
|
8
|
+
|
9
|
+
- Updated dependencies [[`acc9093d2`](https://github.com/bluesky-social/atproto/commit/acc9093d2845eba02b68fb2f9db33e4f1b59bb10)]:
|
10
|
+
- @atproto/jwk@0.1.1
|
11
|
+
|
3
12
|
## 0.1.0
|
4
13
|
|
5
14
|
### Minor Changes
|
@@ -44,6 +44,7 @@ export declare const oauthAuthorizationServerMetadataSchema: z.ZodObject<{
|
|
44
44
|
registration_endpoint: z.ZodOptional<z.ZodString>;
|
45
45
|
dpop_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
46
46
|
protected_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
47
|
+
client_id_metadata_document_supported: z.ZodOptional<z.ZodBoolean>;
|
47
48
|
}, "strip", z.ZodTypeAny, {
|
48
49
|
issuer: string;
|
49
50
|
authorization_endpoint: string;
|
@@ -86,6 +87,7 @@ export declare const oauthAuthorizationServerMetadataSchema: z.ZodObject<{
|
|
86
87
|
registration_endpoint?: string | undefined;
|
87
88
|
dpop_signing_alg_values_supported?: string[] | undefined;
|
88
89
|
protected_resources?: string[] | undefined;
|
90
|
+
client_id_metadata_document_supported?: boolean | undefined;
|
89
91
|
}, {
|
90
92
|
issuer: string;
|
91
93
|
authorization_endpoint: string;
|
@@ -128,6 +130,7 @@ export declare const oauthAuthorizationServerMetadataSchema: z.ZodObject<{
|
|
128
130
|
registration_endpoint?: string | undefined;
|
129
131
|
dpop_signing_alg_values_supported?: string[] | undefined;
|
130
132
|
protected_resources?: string[] | undefined;
|
133
|
+
client_id_metadata_document_supported?: boolean | undefined;
|
131
134
|
}>;
|
132
135
|
export type OAuthAuthorizationServerMetadata = z.infer<typeof oauthAuthorizationServerMetadataSchema>;
|
133
136
|
export declare const oauthAuthorizationServerMetadataValidator: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
@@ -172,6 +175,7 @@ export declare const oauthAuthorizationServerMetadataValidator: z.ZodEffects<z.Z
|
|
172
175
|
registration_endpoint: z.ZodOptional<z.ZodString>;
|
173
176
|
dpop_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
174
177
|
protected_resources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
178
|
+
client_id_metadata_document_supported: z.ZodOptional<z.ZodBoolean>;
|
175
179
|
}, "strip", z.ZodTypeAny, {
|
176
180
|
issuer: string;
|
177
181
|
authorization_endpoint: string;
|
@@ -214,6 +218,7 @@ export declare const oauthAuthorizationServerMetadataValidator: z.ZodEffects<z.Z
|
|
214
218
|
registration_endpoint?: string | undefined;
|
215
219
|
dpop_signing_alg_values_supported?: string[] | undefined;
|
216
220
|
protected_resources?: string[] | undefined;
|
221
|
+
client_id_metadata_document_supported?: boolean | undefined;
|
217
222
|
}, {
|
218
223
|
issuer: string;
|
219
224
|
authorization_endpoint: string;
|
@@ -256,6 +261,7 @@ export declare const oauthAuthorizationServerMetadataValidator: z.ZodEffects<z.Z
|
|
256
261
|
registration_endpoint?: string | undefined;
|
257
262
|
dpop_signing_alg_values_supported?: string[] | undefined;
|
258
263
|
protected_resources?: string[] | undefined;
|
264
|
+
client_id_metadata_document_supported?: boolean | undefined;
|
259
265
|
}>, {
|
260
266
|
issuer: string;
|
261
267
|
authorization_endpoint: string;
|
@@ -298,6 +304,7 @@ export declare const oauthAuthorizationServerMetadataValidator: z.ZodEffects<z.Z
|
|
298
304
|
registration_endpoint?: string | undefined;
|
299
305
|
dpop_signing_alg_values_supported?: string[] | undefined;
|
300
306
|
protected_resources?: string[] | undefined;
|
307
|
+
client_id_metadata_document_supported?: boolean | undefined;
|
301
308
|
}, {
|
302
309
|
issuer: string;
|
303
310
|
authorization_endpoint: string;
|
@@ -340,6 +347,7 @@ export declare const oauthAuthorizationServerMetadataValidator: z.ZodEffects<z.Z
|
|
340
347
|
registration_endpoint?: string | undefined;
|
341
348
|
dpop_signing_alg_values_supported?: string[] | undefined;
|
342
349
|
protected_resources?: string[] | undefined;
|
350
|
+
client_id_metadata_document_supported?: boolean | undefined;
|
343
351
|
}>, {
|
344
352
|
issuer: string;
|
345
353
|
authorization_endpoint: string;
|
@@ -382,6 +390,7 @@ export declare const oauthAuthorizationServerMetadataValidator: z.ZodEffects<z.Z
|
|
382
390
|
registration_endpoint?: string | undefined;
|
383
391
|
dpop_signing_alg_values_supported?: string[] | undefined;
|
384
392
|
protected_resources?: string[] | undefined;
|
393
|
+
client_id_metadata_document_supported?: boolean | undefined;
|
385
394
|
}, {
|
386
395
|
issuer: string;
|
387
396
|
authorization_endpoint: string;
|
@@ -424,5 +433,6 @@ export declare const oauthAuthorizationServerMetadataValidator: z.ZodEffects<z.Z
|
|
424
433
|
registration_endpoint?: string | undefined;
|
425
434
|
dpop_signing_alg_values_supported?: string[] | undefined;
|
426
435
|
protected_resources?: string[] | undefined;
|
436
|
+
client_id_metadata_document_supported?: boolean | undefined;
|
427
437
|
}>;
|
428
438
|
//# sourceMappingURL=oauth-authorization-server-metadata.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"oauth-authorization-server-metadata.d.ts","sourceRoot":"","sources":["../src/oauth-authorization-server-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB;;GAEG;AACH,eAAO,MAAM,sCAAsC
|
1
|
+
{"version":3,"file":"oauth-authorization-server-metadata.d.ts","sourceRoot":"","sources":["../src/oauth-authorization-server-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwEjD,CAAA;AAEF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAA;AAED,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBhD,CAAA"}
|
@@ -64,6 +64,8 @@ exports.oauthAuthorizationServerMetadataSchema = zod_1.z.object({
|
|
64
64
|
dpop_signing_alg_values_supported: zod_1.z.array(zod_1.z.string()).optional(),
|
65
65
|
// https://datatracker.ietf.org/doc/html/draft-ietf-oauth-resource-metadata-05#section-4
|
66
66
|
protected_resources: zod_1.z.array(zod_1.z.string().url()).optional(),
|
67
|
+
// https://drafts.aaronpk.com/draft-parecki-oauth-client-id-metadata-document/draft-parecki-oauth-client-id-metadata-document.html
|
68
|
+
client_id_metadata_document_supported: zod_1.z.boolean().optional(),
|
67
69
|
});
|
68
70
|
exports.oauthAuthorizationServerMetadataValidator = exports.oauthAuthorizationServerMetadataSchema
|
69
71
|
.superRefine((data, ctx) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"oauth-authorization-server-metadata.js","sourceRoot":"","sources":["../src/oauth-authorization-server-metadata.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,6EAA0E;AAE1E;;GAEG;AACU,QAAA,sCAAsC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7D,MAAM,EAAE,wDAA2B;IAEnC,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,wBAAwB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxD,0BAA0B,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClD,2BAA2B,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnD,+BAA+B,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACvD,gCAAgC,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACxD,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,uBAAuB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvD,wBAAwB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxD,wBAAwB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAA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+
"version": "0.1.1",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "OAuth typing & validation library",
|
6
6
|
"keywords": [
|
@@ -26,7 +26,7 @@
|
|
26
26
|
},
|
27
27
|
"dependencies": {
|
28
28
|
"zod": "^3.23.8",
|
29
|
-
"@atproto/jwk": "0.1.
|
29
|
+
"@atproto/jwk": "0.1.1"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
32
|
"typescript": "^5.3.3"
|
@@ -74,6 +74,9 @@ export const oauthAuthorizationServerMetadataSchema = z.object({
|
|
74
74
|
|
75
75
|
// https://datatracker.ietf.org/doc/html/draft-ietf-oauth-resource-metadata-05#section-4
|
76
76
|
protected_resources: z.array(z.string().url()).optional(),
|
77
|
+
|
78
|
+
// https://drafts.aaronpk.com/draft-parecki-oauth-client-id-metadata-document/draft-parecki-oauth-client-id-metadata-document.html
|
79
|
+
client_id_metadata_document_supported: z.boolean().optional(),
|
77
80
|
})
|
78
81
|
|
79
82
|
export type OAuthAuthorizationServerMetadata = z.infer<
|