/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { incidentMembershipsCreate } from "../funcs/incidentMembershipsCreate.js"; import { incidentMembershipsRevoke } from "../funcs/incidentMembershipsRevoke.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class IncidentMemberships extends ClientSDK { /** * Create Incident Memberships V1 * * @remarks * Makes a user a member of a private incident */ async create( request: components.CreateRequestBody6, options?: RequestOptions, ): Promise { return unwrapAsync(incidentMembershipsCreate( this, request, options, )); } /** * Revoke Incident Memberships V1 * * @remarks * Revoke a user's membership of a private incident */ async revoke( request: components.CreateRequestBody6, options?: RequestOptions, ): Promise { return unwrapAsync(incidentMembershipsRevoke( this, request, options, )); } }