Skip to content

Commit

Permalink
docs: add module tags to all entrypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Feb 22, 2025
1 parent af175ec commit a5687aa
Show file tree
Hide file tree
Showing 59 changed files with 239 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/jwe/compact/decrypt/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwe/compact/decrypt

Decrypting JSON Web Encryption (JWE) in Compact Serialization

## Index

### Interfaces
Expand Down
2 changes: 2 additions & 0 deletions docs/jwe/compact/encrypt/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwe/compact/encrypt

Encrypting JSON Web Encryption (JWE) in Compact Serialization

## Index

### Classes
Expand Down
2 changes: 2 additions & 0 deletions docs/jwe/flattened/decrypt/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwe/flattened/decrypt

Decrypting JSON Web Encryption (JWE) in Flattened JSON Serialization

## Index

### Interfaces
Expand Down
2 changes: 2 additions & 0 deletions docs/jwe/flattened/encrypt/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwe/flattened/encrypt

Encrypting JSON Web Encryption (JWE) in Flattened JSON Serialization

## Index

### Classes
Expand Down
2 changes: 2 additions & 0 deletions docs/jwe/general/decrypt/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwe/general/decrypt

Decrypting JSON Web Encryption (JWE) in General JSON Serialization

## Index

### Interfaces
Expand Down
2 changes: 2 additions & 0 deletions docs/jwe/general/encrypt/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwe/general/encrypt

Encrypting JSON Web Encryption (JWE) in General JSON Serialization

## Index

### Classes
Expand Down
2 changes: 2 additions & 0 deletions docs/jwk/embedded/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwk/embedded

Verification using a JWK Embedded in a JWS Header

## Index

### Functions
Expand Down
2 changes: 2 additions & 0 deletions docs/jwk/thumbprint/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwk/thumbprint

JSON Web Key Thumbprint and JSON Web Key Thumbprint URI

## Index

### Functions
Expand Down
2 changes: 2 additions & 0 deletions docs/jwks/local/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwks/local

Verification using a JSON Web Key Set (JWKS) available locally

## Index

### Functions
Expand Down
2 changes: 2 additions & 0 deletions docs/jwks/remote/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwks/remote

Verification using a JSON Web Key Set (JWKS) available on an HTTP(S) URL

## Index

### Functions
Expand Down
2 changes: 2 additions & 0 deletions docs/jws/compact/sign/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jws/compact/sign

Signing JSON Web Signature (JWS) in Compact Serialization

## Index

### Classes
Expand Down
2 changes: 2 additions & 0 deletions docs/jws/compact/verify/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jws/compact/verify

Verifying JSON Web Signature (JWS) in Compact Serialization

## Index

### Interfaces
Expand Down
2 changes: 2 additions & 0 deletions docs/jws/flattened/sign/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jws/flattened/sign

Signing JSON Web Signature (JWS) in Flattened JSON Serialization

## Index

### Classes
Expand Down
2 changes: 2 additions & 0 deletions docs/jws/flattened/verify/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jws/flattened/verify

Verifying JSON Web Signature (JWS) in Flattened JSON Serialization

## Index

### Interfaces
Expand Down
2 changes: 2 additions & 0 deletions docs/jws/general/sign/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jws/general/sign

Signing JSON Web Signature (JWS) in General JSON Serialization

## Index

### Classes
Expand Down
2 changes: 2 additions & 0 deletions docs/jws/general/verify/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jws/general/verify

Verifying JSON Web Signature (JWS) in General JSON Serialization

## Index

### Interfaces
Expand Down
2 changes: 2 additions & 0 deletions docs/jwt/decrypt/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwt/decrypt

JSON Web Token (JWT) Decryption (JWT is in JWE format)

## Index

### Interfaces
Expand Down
2 changes: 2 additions & 0 deletions docs/jwt/encrypt/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwt/encrypt

JSON Web Token (JWT) Encryption (JWT is in JWE format)

## Index

### Classes
Expand Down
2 changes: 2 additions & 0 deletions docs/jwt/sign/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwt/sign

JSON Web Token (JWT) Signing (JWT is in JWS format)

## Index

### Classes
Expand Down
2 changes: 2 additions & 0 deletions docs/jwt/unsecured/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwt/unsecured

Unsecured (unsigned & unencrypted) JSON Web Tokens (JWT)

## Index

### Classes
Expand Down
2 changes: 2 additions & 0 deletions docs/jwt/verify/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jwt/verify

JSON Web Token (JWT) Verification (JWT is in JWS format)

## Index

### Interfaces
Expand Down
2 changes: 2 additions & 0 deletions docs/key/export/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# key/export

Cryptographic key export functions

## Index

### Functions
Expand Down
2 changes: 2 additions & 0 deletions docs/key/generate_key_pair/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# key/generate\_key\_pair

Asymmetric key generation

## Index

### Interfaces
Expand Down
2 changes: 2 additions & 0 deletions docs/key/generate_secret/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# key/generate\_secret

Symmetric key generation

## Index

### Interfaces
Expand Down
2 changes: 2 additions & 0 deletions docs/key/import/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# key/import

Cryptographic key import functions

## Index

### Interfaces
Expand Down
2 changes: 2 additions & 0 deletions docs/util/base64url/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# util/base64url

Base64URL encoding and decoding utilities

## Index

### Functions
Expand Down
2 changes: 2 additions & 0 deletions docs/util/decode_jwt/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# util/decode\_jwt

JSON Web Token (JWT) Claims Set Decoding (no validation, no signature checking)

## Index

### Functions
Expand Down
2 changes: 2 additions & 0 deletions docs/util/decode_protected_header/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# util/decode\_protected\_header

JOSE Protected Header Decoding (JWE, JWS, all serialization syntaxes)

## Index

### Type Aliases
Expand Down
2 changes: 2 additions & 0 deletions docs/util/errors/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# util/errors

JOSE module errors and error codes

## Index

### Classes
Expand Down
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other
* Web-interoperable runtimes
*
* @module jose
*/

export { compactDecrypt } from './jwe/compact/decrypt.js'
export type { CompactDecryptGetKey } from './jwe/compact/decrypt.js'
export { flattenedDecrypt } from './jwe/flattened/decrypt.js'
Expand Down
6 changes: 6 additions & 0 deletions src/jwe/compact/decrypt.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Decrypting JSON Web Encryption (JWE) in Compact Serialization
*
* @module
*/

import { flattenedDecrypt } from '../flattened/decrypt.js'
import { JWEInvalid } from '../../util/errors.js'
import { decoder } from '../../lib/buffer_utils.js'
Expand Down
6 changes: 6 additions & 0 deletions src/jwe/compact/encrypt.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Encrypting JSON Web Encryption (JWE) in Compact Serialization
*
* @module
*/

import type * as types from '../../types.d.ts'
import { FlattenedEncrypt } from '../flattened/encrypt.js'

Expand Down
6 changes: 6 additions & 0 deletions src/jwe/flattened/decrypt.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Decrypting JSON Web Encryption (JWE) in Flattened JSON Serialization
*
* @module
*/

import type * as types from '../../types.d.ts'
import { decode as base64url } from '../../lib/base64url.js'
import decrypt from '../../lib/decrypt.js'
Expand Down
6 changes: 6 additions & 0 deletions src/jwe/flattened/encrypt.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Encrypting JSON Web Encryption (JWE) in Flattened JSON Serialization
*
* @module
*/

import { encode as base64url } from '../../lib/base64url.js'
import { unprotected } from '../../lib/private_symbols.js'
import encrypt from '../../lib/encrypt.js'
Expand Down
6 changes: 6 additions & 0 deletions src/jwe/general/decrypt.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Decrypting JSON Web Encryption (JWE) in General JSON Serialization
*
* @module
*/

import { flattenedDecrypt } from '../flattened/decrypt.js'
import { JWEDecryptionFailed, JWEInvalid } from '../../util/errors.js'
import type * as types from '../../types.d.ts'
Expand Down
6 changes: 6 additions & 0 deletions src/jwe/general/encrypt.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Encrypting JSON Web Encryption (JWE) in General JSON Serialization
*
* @module
*/

import type * as types from '../../types.d.ts'
import { FlattenedEncrypt } from '../flattened/encrypt.js'
import { unprotected } from '../../lib/private_symbols.js'
Expand Down
6 changes: 6 additions & 0 deletions src/jwk/embedded.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Verification using a JWK Embedded in a JWS Header
*
* @module
*/

import type * as types from '../types.d.ts'
import { importJWK } from '../key/import.js'
import isObject from '../lib/is_object.js'
Expand Down
6 changes: 6 additions & 0 deletions src/jwk/thumbprint.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* JSON Web Key Thumbprint and JSON Web Key Thumbprint URI
*
* @module
*/

import digest from '../lib/digest.js'
import { encode as base64url } from '../lib/base64url.js'

Expand Down
6 changes: 6 additions & 0 deletions src/jwks/local.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Verification using a JSON Web Key Set (JWKS) available locally
*
* @module
*/

import type * as types from '../types.d.ts'
import { importJWK } from '../key/import.js'
import {
Expand Down
6 changes: 6 additions & 0 deletions src/jwks/remote.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Verification using a JSON Web Key Set (JWKS) available on an HTTP(S) URL
*
* @module
*/

import type * as types from '../types.d.ts'
import { JOSEError, JWKSNoMatchingKey, JWKSTimeout } from '../util/errors.js'

Expand Down
6 changes: 6 additions & 0 deletions src/jws/compact/sign.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Signing JSON Web Signature (JWS) in Compact Serialization
*
* @module
*/

import type * as types from '../../types.d.ts'
import { FlattenedSign } from '../flattened/sign.js'

Expand Down
6 changes: 6 additions & 0 deletions src/jws/compact/verify.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Verifying JSON Web Signature (JWS) in Compact Serialization
*
* @module
*/

import type * as types from '../../types.d.ts'
import { flattenedVerify } from '../flattened/verify.js'
import { JWSInvalid } from '../../util/errors.js'
Expand Down
6 changes: 6 additions & 0 deletions src/jws/flattened/sign.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Signing JSON Web Signature (JWS) in Flattened JSON Serialization
*
* @module
*/

import type * as types from '../../types.d.ts'
import { encode as base64url } from '../../lib/base64url.js'
import sign from '../../lib/sign.js'
Expand Down
6 changes: 6 additions & 0 deletions src/jws/flattened/verify.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Verifying JSON Web Signature (JWS) in Flattened JSON Serialization
*
* @module
*/

import type * as types from '../../types.d.ts'
import { decode as base64url } from '../../lib/base64url.js'
import verify from '../../lib/verify.js'
Expand Down
6 changes: 6 additions & 0 deletions src/jws/general/sign.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Signing JSON Web Signature (JWS) in General JSON Serialization
*
* @module
*/

import type * as types from '../../types.d.ts'
import { FlattenedSign } from '../flattened/sign.js'
import { JWSInvalid } from '../../util/errors.js'
Expand Down
Loading

0 comments on commit a5687aa

Please sign in to comment.