@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
48 lines • 1.93 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import { userGetAuthUser } from "../funcs/userGetAuthUser.js";
import { userListEventTypes } from "../funcs/userListEventTypes.js";
import { userListUserEvents } from "../funcs/userListUserEvents.js";
import { userRequestDelete } from "../funcs/userRequestDelete.js";
import { ClientSDK } from "../lib/sdks.js";
import { unwrapAsync } from "../types/fp.js";
export class User extends ClientSDK {
/**
* List User Events
*
* @remarks
* Retrieves a list of "events" generated by the User on Vercel. Events are generated when the User performs a particular action, such as logging in, creating a deployment, and joining a Team (just to name a few). When the `teamId` parameter is supplied, then the events that are returned will be in relation to the Team that was specified.
*/
async listUserEvents(request, options) {
return unwrapAsync(userListUserEvents(this, request, options));
}
/**
* List Event Types
*
* @remarks
* Returns the list of user-facing event types with descriptions.
*/
async listEventTypes(request, options) {
return unwrapAsync(userListEventTypes(this, request, options));
}
/**
* Get the User
*
* @remarks
* Retrieves information related to the currently authenticated User.
*/
async getAuthUser(options) {
return unwrapAsync(userGetAuthUser(this, options));
}
/**
* Delete User Account
*
* @remarks
* Initiates the deletion process for the currently authenticated User, by sending a deletion confirmation email. The email contains a link that the user needs to visit in order to proceed with the deletion process.
*/
async requestDelete(request, options) {
return unwrapAsync(userRequestDelete(this, request, options));
}
}
//# sourceMappingURL=user.js.map