Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atproto/oauth-types

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atproto/oauth-types - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

6

CHANGELOG.md
# @atproto/oauth-types
## 0.1.3
### Patch Changes
- [#2729](https://github.com/bluesky-social/atproto/pull/2729) [`35a126429`](https://github.com/bluesky-social/atproto/commit/35a1264297bc22acaa6e5ed3f4aed8c351be8bbb) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Avoid code duplication in the definition of OAuthEndpointName
## 0.1.2

@@ -4,0 +10,0 @@

1

dist/constants.d.ts

@@ -8,3 +8,2 @@ /**

export declare const CLIENT_ASSERTION_TYPE_JWT_BEARER = "urn:ietf:params:oauth:client-assertion-type:jwt-bearer";
export declare const OAUTH_AUTHENTICATED_ENDPOINT_NAMES: readonly ["token", "revocation", "introspection", "pushed_authorization_request"];
//# sourceMappingURL=constants.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OAUTH_AUTHENTICATED_ENDPOINT_NAMES = exports.CLIENT_ASSERTION_TYPE_JWT_BEARER = exports.ALLOW_UNSECURE_ORIGINS = void 0;
exports.CLIENT_ASSERTION_TYPE_JWT_BEARER = exports.ALLOW_UNSECURE_ORIGINS = void 0;
/**

@@ -21,8 +21,2 @@ * A variable that allows to determine if unsecure origins should be allowed

exports.CLIENT_ASSERTION_TYPE_JWT_BEARER = 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer';
exports.OAUTH_AUTHENTICATED_ENDPOINT_NAMES = [
'token',
'revocation',
'introspection',
'pushed_authorization_request',
];
//# sourceMappingURL=constants.js.map

@@ -33,10 +33,4 @@ import { z } from 'zod';

revocation_endpoint: z.ZodOptional<z.ZodString>;
revocation_endpoint_auth_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
revocation_endpoint_auth_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
introspection_endpoint: z.ZodOptional<z.ZodString>;
introspection_endpoint_auth_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
introspection_endpoint_auth_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
pushed_authorization_request_endpoint: z.ZodOptional<z.ZodString>;
pushed_authorization_request_endpoint_auth_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
pushed_authorization_request_endpoint_auth_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
require_pushed_authorization_requests: z.ZodOptional<z.ZodBoolean>;

@@ -77,10 +71,4 @@ userinfo_endpoint: z.ZodOptional<z.ZodString>;

revocation_endpoint?: string | undefined;
revocation_endpoint_auth_methods_supported?: string[] | undefined;
revocation_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
introspection_endpoint?: string | undefined;
introspection_endpoint_auth_methods_supported?: string[] | undefined;
introspection_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
pushed_authorization_request_endpoint?: string | undefined;
pushed_authorization_request_endpoint_auth_methods_supported?: string[] | undefined;
pushed_authorization_request_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
require_pushed_authorization_requests?: boolean | undefined;

@@ -121,10 +109,4 @@ userinfo_endpoint?: string | undefined;

revocation_endpoint?: string | undefined;
revocation_endpoint_auth_methods_supported?: string[] | undefined;
revocation_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
introspection_endpoint?: string | undefined;
introspection_endpoint_auth_methods_supported?: string[] | undefined;
introspection_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
pushed_authorization_request_endpoint?: string | undefined;
pushed_authorization_request_endpoint_auth_methods_supported?: string[] | undefined;
pushed_authorization_request_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
require_pushed_authorization_requests?: boolean | undefined;

@@ -167,10 +149,4 @@ userinfo_endpoint?: string | undefined;

revocation_endpoint: z.ZodOptional<z.ZodString>;
revocation_endpoint_auth_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
revocation_endpoint_auth_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
introspection_endpoint: z.ZodOptional<z.ZodString>;
introspection_endpoint_auth_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
introspection_endpoint_auth_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
pushed_authorization_request_endpoint: z.ZodOptional<z.ZodString>;
pushed_authorization_request_endpoint_auth_methods_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
pushed_authorization_request_endpoint_auth_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
require_pushed_authorization_requests: z.ZodOptional<z.ZodBoolean>;

@@ -211,10 +187,4 @@ userinfo_endpoint: z.ZodOptional<z.ZodString>;

revocation_endpoint?: string | undefined;
revocation_endpoint_auth_methods_supported?: string[] | undefined;
revocation_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
introspection_endpoint?: string | undefined;
introspection_endpoint_auth_methods_supported?: string[] | undefined;
introspection_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
pushed_authorization_request_endpoint?: string | undefined;
pushed_authorization_request_endpoint_auth_methods_supported?: string[] | undefined;
pushed_authorization_request_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
require_pushed_authorization_requests?: boolean | undefined;

@@ -255,10 +225,4 @@ userinfo_endpoint?: string | undefined;

revocation_endpoint?: string | undefined;
revocation_endpoint_auth_methods_supported?: string[] | undefined;
revocation_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
introspection_endpoint?: string | undefined;
introspection_endpoint_auth_methods_supported?: string[] | undefined;
introspection_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
pushed_authorization_request_endpoint?: string | undefined;
pushed_authorization_request_endpoint_auth_methods_supported?: string[] | undefined;
pushed_authorization_request_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
require_pushed_authorization_requests?: boolean | undefined;

@@ -299,10 +263,4 @@ userinfo_endpoint?: string | undefined;

revocation_endpoint?: string | undefined;
revocation_endpoint_auth_methods_supported?: string[] | undefined;
revocation_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
introspection_endpoint?: string | undefined;
introspection_endpoint_auth_methods_supported?: string[] | undefined;
introspection_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
pushed_authorization_request_endpoint?: string | undefined;
pushed_authorization_request_endpoint_auth_methods_supported?: string[] | undefined;
pushed_authorization_request_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
require_pushed_authorization_requests?: boolean | undefined;

@@ -343,10 +301,4 @@ userinfo_endpoint?: string | undefined;

revocation_endpoint?: string | undefined;
revocation_endpoint_auth_methods_supported?: string[] | undefined;
revocation_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
introspection_endpoint?: string | undefined;
introspection_endpoint_auth_methods_supported?: string[] | undefined;
introspection_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
pushed_authorization_request_endpoint?: string | undefined;
pushed_authorization_request_endpoint_auth_methods_supported?: string[] | undefined;
pushed_authorization_request_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
require_pushed_authorization_requests?: boolean | undefined;

@@ -387,10 +339,4 @@ userinfo_endpoint?: string | undefined;

revocation_endpoint?: string | undefined;
revocation_endpoint_auth_methods_supported?: string[] | undefined;
revocation_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
introspection_endpoint?: string | undefined;
introspection_endpoint_auth_methods_supported?: string[] | undefined;
introspection_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
pushed_authorization_request_endpoint?: string | undefined;
pushed_authorization_request_endpoint_auth_methods_supported?: string[] | undefined;
pushed_authorization_request_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
require_pushed_authorization_requests?: boolean | undefined;

@@ -431,10 +377,4 @@ userinfo_endpoint?: string | undefined;

revocation_endpoint?: string | undefined;
revocation_endpoint_auth_methods_supported?: string[] | undefined;
revocation_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
introspection_endpoint?: string | undefined;
introspection_endpoint_auth_methods_supported?: string[] | undefined;
introspection_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
pushed_authorization_request_endpoint?: string | undefined;
pushed_authorization_request_endpoint_auth_methods_supported?: string[] | undefined;
pushed_authorization_request_endpoint_auth_signing_alg_values_supported?: string[] | undefined;
require_pushed_authorization_requests?: boolean | undefined;

@@ -441,0 +381,0 @@ userinfo_endpoint?: string | undefined;

@@ -43,18 +43,4 @@ "use strict";

revocation_endpoint: zod_1.z.string().url().optional(),
revocation_endpoint_auth_methods_supported: zod_1.z.array(zod_1.z.string()).optional(),
revocation_endpoint_auth_signing_alg_values_supported: zod_1.z
.array(zod_1.z.string())
.optional(),
introspection_endpoint: zod_1.z.string().url().optional(),
introspection_endpoint_auth_methods_supported: zod_1.z.array(zod_1.z.string()).optional(),
introspection_endpoint_auth_signing_alg_values_supported: zod_1.z
.array(zod_1.z.string())
.optional(),
pushed_authorization_request_endpoint: zod_1.z.string().url().optional(),
pushed_authorization_request_endpoint_auth_methods_supported: zod_1.z
.array(zod_1.z.string())
.optional(),
pushed_authorization_request_endpoint_auth_signing_alg_values_supported: zod_1.z
.array(zod_1.z.string())
.optional(),
require_pushed_authorization_requests: zod_1.z.boolean().optional(),

@@ -61,0 +47,0 @@ userinfo_endpoint: zod_1.z.string().url().optional(),

@@ -31,8 +31,2 @@ "use strict";

token_endpoint_auth_signing_alg: zod_1.z.string().optional(),
introspection_endpoint_auth_method: oauth_endpoint_auth_method_js_1.oauthEndpointAuthMethod.optional(),
introspection_endpoint_auth_signing_alg: zod_1.z.string().optional(),
revocation_endpoint_auth_method: oauth_endpoint_auth_method_js_1.oauthEndpointAuthMethod.optional(),
revocation_endpoint_auth_signing_alg: zod_1.z.string().optional(),
pushed_authorization_request_endpoint_auth_method: oauth_endpoint_auth_method_js_1.oauthEndpointAuthMethod.optional(),
pushed_authorization_request_endpoint_auth_signing_alg: zod_1.z.string().optional(),
userinfo_signed_response_alg: zod_1.z.string().optional(),

@@ -39,0 +33,0 @@ userinfo_encrypted_response_alg: zod_1.z.string().optional(),

@@ -1,2 +0,3 @@

export type OAuthEndpointName = 'token' | 'revocation' | 'introspection' | 'pushed_authorization_request';
export declare const OAUTH_ENDPOINT_NAMES: readonly ["token", "revocation", "introspection", "pushed_authorization_request"];
export type OAuthEndpointName = (typeof OAUTH_ENDPOINT_NAMES)[number];
//# sourceMappingURL=oauth-endpoint-name.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OAUTH_ENDPOINT_NAMES = void 0;
exports.OAUTH_ENDPOINT_NAMES = [
'token',
'revocation',
'introspection',
'pushed_authorization_request',
];
//# sourceMappingURL=oauth-endpoint-name.js.map
{
"name": "@atproto/oauth-types",
"version": "0.1.2",
"version": "0.1.3",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "OAuth typing & validation library",

@@ -19,8 +19,1 @@ /**

'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'
export const OAUTH_AUTHENTICATED_ENDPOINT_NAMES = [
'token',
'revocation',
'introspection',
'pushed_authorization_request',
] as const

@@ -47,20 +47,4 @@ import { z } from 'zod'

revocation_endpoint: z.string().url().optional(),
revocation_endpoint_auth_methods_supported: z.array(z.string()).optional(),
revocation_endpoint_auth_signing_alg_values_supported: z
.array(z.string())
.optional(),
introspection_endpoint: z.string().url().optional(),
introspection_endpoint_auth_methods_supported: z.array(z.string()).optional(),
introspection_endpoint_auth_signing_alg_values_supported: z
.array(z.string())
.optional(),
pushed_authorization_request_endpoint: z.string().url().optional(),
pushed_authorization_request_endpoint_auth_methods_supported: z
.array(z.string())
.optional(),
pushed_authorization_request_endpoint_auth_signing_alg_values_supported: z
.array(z.string())
.optional(),

@@ -67,0 +51,0 @@ require_pushed_authorization_requests: z.boolean().optional(),

@@ -30,9 +30,2 @@ import { jwksPubSchema } from '@atproto/jwk'

token_endpoint_auth_signing_alg: z.string().optional(),
introspection_endpoint_auth_method: oauthEndpointAuthMethod.optional(),
introspection_endpoint_auth_signing_alg: z.string().optional(),
revocation_endpoint_auth_method: oauthEndpointAuthMethod.optional(),
revocation_endpoint_auth_signing_alg: z.string().optional(),
pushed_authorization_request_endpoint_auth_method:
oauthEndpointAuthMethod.optional(),
pushed_authorization_request_endpoint_auth_signing_alg: z.string().optional(),
userinfo_signed_response_alg: z.string().optional(),

@@ -39,0 +32,0 @@ userinfo_encrypted_response_alg: z.string().optional(),

@@ -1,5 +0,8 @@

export type OAuthEndpointName =
| 'token'
| 'revocation'
| 'introspection'
| 'pushed_authorization_request'
export const OAUTH_ENDPOINT_NAMES = [
'token',
'revocation',
'introspection',
'pushed_authorization_request',
] as const
export type OAuthEndpointName = (typeof OAUTH_ENDPOINT_NAMES)[number]

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc