"use strict"; /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.MistralJobs = void 0; const batchJobsCancel_js_1 = require("../funcs/batchJobsCancel.js"); const batchJobsCreate_js_1 = require("../funcs/batchJobsCreate.js"); const batchJobsGet_js_1 = require("../funcs/batchJobsGet.js"); const batchJobsList_js_1 = require("../funcs/batchJobsList.js"); const sdks_js_1 = require("../lib/sdks.js"); const fp_js_1 = require("../types/fp.js"); class MistralJobs extends sdks_js_1.ClientSDK { /** * Get Batch Jobs * * @remarks * Get a list of batch jobs for your organization and user. */ async list(request, options) { return (0, fp_js_1.unwrapAsync)((0, batchJobsList_js_1.batchJobsList)(this, request, options)); } /** * Create Batch Job * * @remarks * Create a new batch job, it will be queued for processing. */ async create(request, options) { return (0, fp_js_1.unwrapAsync)((0, batchJobsCreate_js_1.batchJobsCreate)(this, request, options)); } /** * Get Batch Job * * @remarks * Get a batch job details by its UUID. */ async get(request, options) { return (0, fp_js_1.unwrapAsync)((0, batchJobsGet_js_1.batchJobsGet)(this, request, options)); } /** * Cancel Batch Job * * @remarks * Request the cancellation of a batch job. */ async cancel(request, options) { return (0, fp_js_1.unwrapAsync)((0, batchJobsCancel_js_1.batchJobsCancel)(this, request, options)); } } exports.MistralJobs = MistralJobs; //# sourceMappingURL=mistraljobs.js.map