import * as Utils from '@datocms/rest-client-utils'; import BaseResource from '../../BaseResource.js'; import type * as ApiTypes from '../ApiTypes.js'; import type * as RawApiTypes from '../RawApiTypes.js'; export default class Session extends BaseResource { static readonly TYPE = 'session' as const; /** * Create a new session * * @throws {ApiError} * @throws {TimeoutError} */ rawCreate( body: RawApiTypes.SessionCreateSchema, ): Promise { return this.client.request({ method: 'POST', url: '/sessions', body, }); } }