JSR

Built and signed on GitHub Actions

Works with

This package works with Cloudflare Workers, Node.js, Deno, Bun

This package works with Cloudflare Workers

This package works with Node.js

This package works with Deno

This package works with Bun

JSR Score100%

License

MIT

Downloads198/wk

Published5 days ago (2.3.6)

Vocabularies library for Fedify

Contents of Actor's endpoints.

Constructors

new Endpoints(

values: { id?: URL | null; proxyUrl?: URL | null; oauthAuthorizationEndpoint?: URL | null; oauthTokenEndpoint?: URL | null; provideClientKey?: URL | null; signClientKey?: URL | null; sharedInbox?: URL | null; },

options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; tracerProvider?: TracerProvider; }

)

View code

Constructs a new instance of Endpoints with the given values.

Parameters

values: { id?: URL | null; proxyUrl?: URL | null; oauthAuthorizationEndpoint?: URL | null; oauthTokenEndpoint?: URL | null; provideClientKey?: URL | null; signClientKey?: URL | null; sharedInbox?: URL | null; }

View code

The values to initialize the instance with.

The options to use for initialization.

Static Properties

The type URI of Endpoints: https://www.w3.org/ns/activitystreams#Endpoints.

Static Methods

Converts a JSON-LD structure to an object of this type.

Properties

If OAuth 2.0 bearer tokens [RFC 6749] [RFC 6750] are being used for authenticating client to server interactions, this endpoint specifies a URI at which a browser-authenticated user may obtain a new authorization grant.

If OAuth 2.0 bearer tokens [RFC 6749] [RFC 6750] are being used for authenticating client to server interactions, this endpoint specifies a URI at which a client may acquire an access token.

If Linked Data Signatures and HTTP Signatures are being used for authentication and authorization, this endpoint specifies a URI at which browser-authenticated users may authorize a client's public key for client to server interactions.

Endpoint URI so this actor's clients may access remote ActivityStreams objects which require authentication to access. To use this endpoint, the client posts an x-www-form-urlencoded id parameter with the value being the id of the requested ActivityStreams object.

If Linked Data Signatures and HTTP Signatures are being used for authentication and authorization, this endpoint specifies a URI at which a client key may be signed by the actor's key for a time window to act on behalf of the actor in interacting with foreign servers.

Methods

clone(

values?: { id?: URL | null; proxyUrl?: URL | null; oauthAuthorizationEndpoint?: URL | null; oauthTokenEndpoint?: URL | null; provideClientKey?: URL | null; signClientKey?: URL | null; sharedInbox?: URL | null; },

options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; }

): Endpoints

View code

Clones this instance, optionally updating it with the given values.

Converts this object to a JSON-LD structure.

Read the original on jsr.io ↗