neet/masto.js

View on GitHub
src/mastodon/entities/v1/application.ts

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Represents an application that interfaces with the REST API to access accounts or post statuses.
 * @see https://docs.joinmastodon.org/entities/application/
 */
export interface Application {
  /** The name of your application. */
  name: string;
  /** The website associated with your application. */
  website?: string | null;
  /** Used for Push Streaming API. Returned with POST /api/v1/apps. Equivalent to PushSubscription#server_key */
  vapidKey?: string | null;
}

export interface Client extends Application {
  /** Client ID key, to be used for obtaining OAuth tokens */
  clientId?: string | null;
  /** Client secret key, to be used for obtaining OAuth tokens */
  clientSecret?: string | null;
}