@eigenpal/sdk 0.16.3 → 0.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/client.ts +47 -9
- package/src/generated/index.ts +2 -2
- package/src/generated/sdk.gen.ts +41 -4
- package/src/generated/types.gen.ts +210 -1
- package/src/index.ts +7 -1
- package/src/lib/fetch-body.ts +92 -0
- package/src/lib/files.ts +154 -8
- package/src/lib/upload-presigned-multipart.ts +285 -0
- package/src/resources/files.ts +345 -26
- package/src/telemetry.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @eigenpal/sdk
|
|
2
2
|
|
|
3
|
+
## 0.16.4
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1c48a4a: The TypeScript and Python SDKs now upload large files through resumable multipart sessions, streaming from a path or seekable source so callers do not have to load the whole object into memory.
|
|
8
|
+
|
|
3
9
|
## 0.16.2
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -10,7 +10,12 @@ import {
|
|
|
10
10
|
buildRunMultipart,
|
|
11
11
|
hasFileInput,
|
|
12
12
|
isFileInput,
|
|
13
|
+
isPathFileInput,
|
|
14
|
+
isReadStream,
|
|
13
15
|
resolveFileBlob,
|
|
16
|
+
statUploadSize,
|
|
17
|
+
type FileInput,
|
|
18
|
+
type PathFileInput,
|
|
14
19
|
} from './lib/files';
|
|
15
20
|
import { DEFAULT_MULTIPART_MAX_BYTES, keysRequiringPreUpload } from './lib/upload-limits';
|
|
16
21
|
import { AuthResource } from './resources/auth';
|
|
@@ -273,22 +278,51 @@ export class EigenpalClient {
|
|
|
273
278
|
private async prepareRunFileInputs(input: RunInput, signal?: AbortSignal): Promise<RunInput> {
|
|
274
279
|
if (!hasFileInput(input)) return input;
|
|
275
280
|
|
|
276
|
-
const resolved: Array<{ key: string;
|
|
281
|
+
const resolved: Array<{ key: string; file: FileInput; filename: string; size: number }> = [];
|
|
277
282
|
for (const [key, value] of Object.entries(input)) {
|
|
278
283
|
if (!isFileInput(value)) continue;
|
|
284
|
+
if (isPathFileInput(value)) {
|
|
285
|
+
try {
|
|
286
|
+
const meta = await statUploadSize(value);
|
|
287
|
+
resolved.push({
|
|
288
|
+
key,
|
|
289
|
+
file: value,
|
|
290
|
+
filename: meta.filename,
|
|
291
|
+
size: meta.size,
|
|
292
|
+
});
|
|
293
|
+
continue;
|
|
294
|
+
} catch {
|
|
295
|
+
// Fake or unreadable stream paths still drain, matching prior SDK behavior.
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
if (isReadStream(value) && typeof value.path === 'string') {
|
|
299
|
+
try {
|
|
300
|
+
const meta = await statUploadSize(value);
|
|
301
|
+
const pathInput: PathFileInput = { path: value.path };
|
|
302
|
+
resolved.push({
|
|
303
|
+
key,
|
|
304
|
+
file: pathInput,
|
|
305
|
+
filename: meta.filename,
|
|
306
|
+
size: meta.size,
|
|
307
|
+
});
|
|
308
|
+
continue;
|
|
309
|
+
} catch {
|
|
310
|
+
// Fake or unreadable stream paths still drain, matching prior SDK behavior.
|
|
311
|
+
}
|
|
312
|
+
}
|
|
279
313
|
const { blob, filename } = await resolveFileBlob(value);
|
|
280
|
-
resolved.push({ key, blob, filename });
|
|
314
|
+
resolved.push({ key, file: blob, filename, size: blob.size });
|
|
281
315
|
}
|
|
282
316
|
|
|
283
317
|
const preUploadKeys = keysRequiringPreUpload(
|
|
284
|
-
resolved.map(({ key,
|
|
318
|
+
resolved.map(({ key, size }) => ({ key, size })),
|
|
285
319
|
this.multipartMaxBytes
|
|
286
320
|
);
|
|
287
321
|
|
|
288
322
|
const next: RunInput = { ...input };
|
|
289
|
-
for (const { key,
|
|
323
|
+
for (const { key, file, filename } of resolved) {
|
|
290
324
|
if (preUploadKeys.has(key)) {
|
|
291
|
-
const uploaded = await this.files.upload(
|
|
325
|
+
const uploaded = await this.files.upload(file, {
|
|
292
326
|
filename,
|
|
293
327
|
signal,
|
|
294
328
|
purpose: 'run-input',
|
|
@@ -297,10 +331,14 @@ export class EigenpalClient {
|
|
|
297
331
|
continue;
|
|
298
332
|
}
|
|
299
333
|
// Prefer a concrete Blob/File so drained streams can still be multiparted.
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
334
|
+
if (typeof Blob !== 'undefined' && file instanceof Blob) {
|
|
335
|
+
next[key] =
|
|
336
|
+
typeof File !== 'undefined'
|
|
337
|
+
? new File([file], filename, { type: file.type || 'application/octet-stream' })
|
|
338
|
+
: file;
|
|
339
|
+
continue;
|
|
340
|
+
}
|
|
341
|
+
next[key] = file;
|
|
304
342
|
}
|
|
305
343
|
return next;
|
|
306
344
|
}
|
package/src/generated/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
export { authCheck, automationsDatasetExport, automationsDatasetImport, automationsEvaluatorsGet, automationsEvaluatorsUpdate, automationsExamplesCreate, automationsExamplesDelete, automationsExamplesExpectedFileDelete, automationsExamplesExpectedFileGet, automationsExamplesExpectedFilesCreate, automationsExamplesExpectedFilesList, automationsExamplesExpectedFileUpdate, automationsExamplesGet, automationsExamplesInputFileDelete, automationsExamplesInputFileGet, automationsExamplesInputFilesCreate, automationsExamplesInputFilesList, automationsExamplesInputFileUpdate, automationsExamplesList, automationsExamplesRun, automationsExamplesUpdate, automationsExperimentsCancel, automationsExperimentsCreate, automationsExperimentsCreateStream, automationsExperimentsExport, automationsExperimentsExportAll, automationsExperimentsGet, automationsExperimentsList, automationsGet, automationsList, automationsReviewsHealth, automationsSync, automationsTriggersGet, automationsVersionsCreate, automationsVersionsList, automationsVersionsPromote, automationsVersionsRestore, emailServersCreate, emailServersDelete, emailServersGet, emailServersList, emailServersTest, emailServersUpdate, experimentsResolve, filesContentGet, filesCreate, filesDelete, filesGet, filesUploadsAbort, filesUploadsComplete, filesUploadsCreate, humanReviewsApprove, humanReviewsConfirmField, humanReviewsFilesContentGet, humanReviewsGet, humanReviewsList, humanReviewsReject, modelsList, type Options, runsArtifactsGet, runsArtifactsList, runsCancel, runsEventsList, runsGet, runsList, runsPromote, runsRerun, runsReviewsClear, runsReviewsExpectedCreate, runsReviewsExpectedFileDelete, runsReviewsExpectedFileGet, runsReviewsExpectedFileUpdate, runsReviewsExpectedGet, runsReviewsGet, runsReviewsUpdate, runsScoresList, runsStart, runsStepsList, runsTraceGet, runsUsageGet, templatesContentGet, templatesCreate, templatesDelete, templatesGet, templatesList, templatesReplace, templatesStaging } from './sdk.gen';
|
|
4
|
-
export type { AbortFileUploadResponse, AgentRunExecution, ApiErrorEnvelope, ApiErrorIssue, AuthCheckData, AuthCheckError, AuthCheckErrors, AuthCheckResponse, AuthCheckResponse2, AuthCheckResponses, AutomationDatasetImportMultipartRequest, AutomationDetail, AutomationsDatasetExportData, AutomationsDatasetExportError, AutomationsDatasetExportErrors, AutomationsDatasetExportResponse, AutomationsDatasetExportResponses, AutomationsDatasetImportData, AutomationsDatasetImportError, AutomationsDatasetImportErrors, AutomationsDatasetImportResponse, AutomationsDatasetImportResponses, AutomationsEvaluatorsGetData, AutomationsEvaluatorsGetError, AutomationsEvaluatorsGetErrors, AutomationsEvaluatorsGetResponse, AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsUpdateData, AutomationsEvaluatorsUpdateError, AutomationsEvaluatorsUpdateErrors, AutomationsEvaluatorsUpdateResponse, AutomationsEvaluatorsUpdateResponses, AutomationsExamplesCreateData, AutomationsExamplesCreateError, AutomationsExamplesCreateErrors, AutomationsExamplesCreateResponse, AutomationsExamplesCreateResponses, AutomationsExamplesDeleteData, AutomationsExamplesDeleteError, AutomationsExamplesDeleteErrors, AutomationsExamplesDeleteResponse, AutomationsExamplesDeleteResponses, AutomationsExamplesExpectedFileDeleteData, AutomationsExamplesExpectedFileDeleteError, AutomationsExamplesExpectedFileDeleteErrors, AutomationsExamplesExpectedFileDeleteResponses, AutomationsExamplesExpectedFileGetData, AutomationsExamplesExpectedFileGetError, AutomationsExamplesExpectedFileGetErrors, AutomationsExamplesExpectedFileGetResponse, AutomationsExamplesExpectedFileGetResponses, AutomationsExamplesExpectedFilesCreateData, AutomationsExamplesExpectedFilesCreateError, AutomationsExamplesExpectedFilesCreateErrors, AutomationsExamplesExpectedFilesCreateResponse, AutomationsExamplesExpectedFilesCreateResponses, AutomationsExamplesExpectedFilesListData, AutomationsExamplesExpectedFilesListError, AutomationsExamplesExpectedFilesListErrors, AutomationsExamplesExpectedFilesListResponse, AutomationsExamplesExpectedFilesListResponses, AutomationsExamplesExpectedFileUpdateData, AutomationsExamplesExpectedFileUpdateError, AutomationsExamplesExpectedFileUpdateErrors, AutomationsExamplesExpectedFileUpdateResponse, AutomationsExamplesExpectedFileUpdateResponses, AutomationsExamplesGetData, AutomationsExamplesGetError, AutomationsExamplesGetErrors, AutomationsExamplesGetResponse, AutomationsExamplesGetResponses, AutomationsExamplesInputFileDeleteData, AutomationsExamplesInputFileDeleteError, AutomationsExamplesInputFileDeleteErrors, AutomationsExamplesInputFileDeleteResponses, AutomationsExamplesInputFileGetData, AutomationsExamplesInputFileGetError, AutomationsExamplesInputFileGetErrors, AutomationsExamplesInputFileGetResponse, AutomationsExamplesInputFileGetResponses, AutomationsExamplesInputFilesCreateData, AutomationsExamplesInputFilesCreateError, AutomationsExamplesInputFilesCreateErrors, AutomationsExamplesInputFilesCreateResponse, AutomationsExamplesInputFilesCreateResponses, AutomationsExamplesInputFilesListData, AutomationsExamplesInputFilesListError, AutomationsExamplesInputFilesListErrors, AutomationsExamplesInputFilesListResponse, AutomationsExamplesInputFilesListResponses, AutomationsExamplesInputFileUpdateData, AutomationsExamplesInputFileUpdateError, AutomationsExamplesInputFileUpdateErrors, AutomationsExamplesInputFileUpdateResponse, AutomationsExamplesInputFileUpdateResponses, AutomationsExamplesListData, AutomationsExamplesListError, AutomationsExamplesListErrors, AutomationsExamplesListResponse, AutomationsExamplesListResponses, AutomationsExamplesRunData, AutomationsExamplesRunError, AutomationsExamplesRunErrors, AutomationsExamplesRunResponse, AutomationsExamplesRunResponses, AutomationsExamplesUpdateData, AutomationsExamplesUpdateError, AutomationsExamplesUpdateErrors, AutomationsExamplesUpdateResponse, AutomationsExamplesUpdateResponses, AutomationsExperimentsCancelData, AutomationsExperimentsCancelError, AutomationsExperimentsCancelErrors, AutomationsExperimentsCancelResponse, AutomationsExperimentsCancelResponses, AutomationsExperimentsCreateData, AutomationsExperimentsCreateError, AutomationsExperimentsCreateErrors, AutomationsExperimentsCreateResponse, AutomationsExperimentsCreateResponses, AutomationsExperimentsCreateStreamData, AutomationsExperimentsCreateStreamError, AutomationsExperimentsCreateStreamErrors, AutomationsExperimentsCreateStreamResponse, AutomationsExperimentsCreateStreamResponses, AutomationsExperimentsExportAllData, AutomationsExperimentsExportAllError, AutomationsExperimentsExportAllErrors, AutomationsExperimentsExportAllResponse, AutomationsExperimentsExportAllResponses, AutomationsExperimentsExportData, AutomationsExperimentsExportError, AutomationsExperimentsExportErrors, AutomationsExperimentsExportResponse, AutomationsExperimentsExportResponses, AutomationsExperimentsGetData, AutomationsExperimentsGetError, AutomationsExperimentsGetErrors, AutomationsExperimentsGetResponse, AutomationsExperimentsGetResponses, AutomationsExperimentsListData, AutomationsExperimentsListError, AutomationsExperimentsListErrors, AutomationsExperimentsListResponse, AutomationsExperimentsListResponses, AutomationsGetData, AutomationsGetError, AutomationsGetErrors, AutomationsGetResponse, AutomationsGetResponses, AutomationsListData, AutomationsListError, AutomationsListErrors, AutomationsListResponse, AutomationsListResponses, AutomationsReviewsHealthData, AutomationsReviewsHealthError, AutomationsReviewsHealthErrors, AutomationsReviewsHealthResponse, AutomationsReviewsHealthResponses, AutomationsSyncData, AutomationsSyncError, AutomationsSyncErrors, AutomationsSyncResponse, AutomationsSyncResponses, AutomationsTriggersGetData, AutomationsTriggersGetError, AutomationsTriggersGetErrors, AutomationsTriggersGetResponse, AutomationsTriggersGetResponses, AutomationSummary, AutomationsVersionsCreateData, AutomationsVersionsCreateError, AutomationsVersionsCreateErrors, AutomationsVersionsCreateResponse, AutomationsVersionsCreateResponses, AutomationsVersionsListData, AutomationsVersionsListError, AutomationsVersionsListErrors, AutomationsVersionsListResponse, AutomationsVersionsListResponses, AutomationsVersionsPromoteData, AutomationsVersionsPromoteError, AutomationsVersionsPromoteErrors, AutomationsVersionsPromoteResponse, AutomationsVersionsPromoteResponses, AutomationsVersionsRestoreData, AutomationsVersionsRestoreError, AutomationsVersionsRestoreErrors, AutomationsVersionsRestoreResponse, AutomationsVersionsRestoreResponses, AutomationTriggersResponse, AutomationTriggerState, AutomationType, AutomationVersion, ClientOptions, CreateAutomationVersionRequest, CreatedTemplate, CreateEmailServerRequest, CreateFileMultipartRequest, CreateFileUploadSessionRequest, DatasetExample, DatasetExampleExpectedFileList, DatasetExampleExpectedFileRenameRequest, DatasetExampleExpectedFileRenameResponse, DatasetExampleExpectedFileUploadRequest, DatasetExampleExpectedFileUploadResponse, DatasetExampleInputFileList, DatasetExampleInputFileRenameRequest, DatasetExampleInputFileRenameResponse, DatasetExampleInputFileUploadRequest, DatasetExampleInputFileUploadResponse, DatasetExampleList, DatasetExampleMutation, DatasetExampleUpdate, DatasetImportResponse, DeleteEmailServerResponse, DeleteFileResponse, DeleteTemplateResponse, EmailServer, EmailServersCreateData, EmailServersCreateError, EmailServersCreateErrors, EmailServersCreateResponse, EmailServersCreateResponses, EmailServersDeleteData, EmailServersDeleteError, EmailServersDeleteErrors, EmailServersDeleteResponse, EmailServersDeleteResponses, EmailServersGetData, EmailServersGetError, EmailServersGetErrors, EmailServersGetResponse, EmailServersGetResponses, EmailServersListData, EmailServersListError, EmailServersListErrors, EmailServersListResponse, EmailServersListResponses, EmailServersTestData, EmailServersTestError, EmailServersTestErrors, EmailServersTestResponse, EmailServersTestResponses, EmailServersUpdateData, EmailServersUpdateError, EmailServersUpdateErrors, EmailServersUpdateResponse, EmailServersUpdateResponses, EvalResult, EvaluatorConfigResponse, EvaluatorConfigUpdate, ExampleRunResponse, ExecutionStatus, Experiment, ExperimentCreate, ExperimentCreateResponse, ExperimentDetail, ExperimentRef, ExperimentsResolveData, ExperimentsResolveError, ExperimentsResolveErrors, ExperimentsResolveResponse, ExperimentsResolveResponses, File, FilesContentGetData, FilesContentGetError, FilesContentGetErrors, FilesContentGetResponses, FilesCreateData, FilesCreateError, FilesCreateErrors, FilesCreateResponse, FilesCreateResponses, FilesDeleteData, FilesDeleteError, FilesDeleteErrors, FilesDeleteResponse, FilesDeleteResponses, FilesGetData, FilesGetError, FilesGetErrors, FilesGetResponse, FilesGetResponses, FilesUploadsAbortData, FilesUploadsAbortError, FilesUploadsAbortErrors, FilesUploadsAbortResponse, FilesUploadsAbortResponses, FilesUploadsCompleteData, FilesUploadsCompleteError, FilesUploadsCompleteErrors, FilesUploadsCompleteResponse, FilesUploadsCompleteResponses, FilesUploadsCreateData, FilesUploadsCreateError, FilesUploadsCreateErrors, FilesUploadsCreateResponse, FilesUploadsCreateResponses, HumanReviewApproveResponse, HumanReviewFieldResponse, HumanReviewListResponse, HumanReviewRejectResponse, HumanReviewsApproveData, HumanReviewsApproveError, HumanReviewsApproveErrors, HumanReviewsApproveResponse, HumanReviewsApproveResponses, HumanReviewsConfirmFieldData, HumanReviewsConfirmFieldError, HumanReviewsConfirmFieldErrors, HumanReviewsConfirmFieldResponse, HumanReviewsConfirmFieldResponses, HumanReviewsFilesContentGetData, HumanReviewsFilesContentGetError, HumanReviewsFilesContentGetErrors, HumanReviewsFilesContentGetResponses, HumanReviewsGetData, HumanReviewsGetError, HumanReviewsGetErrors, HumanReviewsGetResponse, HumanReviewsGetResponses, HumanReviewsListData, HumanReviewsListError, HumanReviewsListErrors, HumanReviewsListResponse, HumanReviewsListResponses, HumanReviewsRejectData, HumanReviewsRejectError, HumanReviewsRejectErrors, HumanReviewsRejectResponse, HumanReviewsRejectResponses, HumanReviewTaskDetail, HumanReviewTaskResponse, ListAutomationsResponse, ListAutomationVersionsResponse, ListEmailServersResponse, ListModelsResponse, ListTemplatesResponse, ModelsListData, ModelsListError, ModelsListErrors, ModelsListResponse, ModelsListResponses, MultipartFileUploadFallback, PresignedFileUploadSession, PromoteRunRequest, PromoteRunResponse, PublicModel, PublicModelCost, PublicModelLimits, PublicResendEmailServer, PublicSmtpEmailServer, RestoreAutomationVersionRequest, Run, RunAccepted, RunArtifact, RunArtifactsResponse, RunCancelResponse, RunDebug, RunError, RunEval, RunEvent, RunEventsResponse, RunExecution, RunExecutionMeta, RunExecutionRetry, RunFile, RunHumanReviewSummary, RunInput, RunListItem, RunReview, RunReviewCorrection, RunReviewDetail, RunReviewExpectedArtifacts, RunReviewExpectedFileCopyRequest, RunReviewExpectedFileMutationResponse, RunReviewExpectedFileUpdateRequest, RunReviewExpectedFileUpdateResponse, RunReviewExpectedFileUploadRequest, RunReviewHealthBucket, RunReviewHealthConfidence, RunReviewHealthResponse, RunReviewHealthRollingPoint, RunReviewHealthSummary, RunReviewRequest, RunReviewSummary, RunsArtifactsGetData, RunsArtifactsGetError, RunsArtifactsGetErrors, RunsArtifactsGetResponses, RunsArtifactsListData, RunsArtifactsListError, RunsArtifactsListErrors, RunsArtifactsListResponse, RunsArtifactsListResponses, RunsCancelData, RunsCancelError, RunsCancelErrors, RunsCancelResponse, RunsCancelResponses, RunScoresResponse, RunsEventsListData, RunsEventsListError, RunsEventsListErrors, RunsEventsListResponse, RunsEventsListResponses, RunsGetData, RunsGetError, RunsGetErrors, RunsGetResponse, RunsGetResponses, RunsListData, RunsListError, RunsListErrors, RunsListResponse, RunsListResponse2, RunsListResponses, RunSource, RunSourceGit, RunsPromoteData, RunsPromoteError, RunsPromoteErrors, RunsPromoteResponse, RunsPromoteResponses, RunsRerunData, RunsRerunError, RunsRerunErrors, RunsRerunResponse, RunsRerunResponses, RunsReviewsClearData, RunsReviewsClearError, RunsReviewsClearErrors, RunsReviewsClearResponse, RunsReviewsClearResponses, RunsReviewsExpectedCreateData, RunsReviewsExpectedCreateError, RunsReviewsExpectedCreateErrors, RunsReviewsExpectedCreateResponse, RunsReviewsExpectedCreateResponses, RunsReviewsExpectedFileDeleteData, RunsReviewsExpectedFileDeleteError, RunsReviewsExpectedFileDeleteErrors, RunsReviewsExpectedFileDeleteResponse, RunsReviewsExpectedFileDeleteResponses, RunsReviewsExpectedFileGetData, RunsReviewsExpectedFileGetError, RunsReviewsExpectedFileGetErrors, RunsReviewsExpectedFileGetResponse, RunsReviewsExpectedFileGetResponses, RunsReviewsExpectedFileUpdateData, RunsReviewsExpectedFileUpdateError, RunsReviewsExpectedFileUpdateErrors, RunsReviewsExpectedFileUpdateResponse, RunsReviewsExpectedFileUpdateResponses, RunsReviewsExpectedGetData, RunsReviewsExpectedGetError, RunsReviewsExpectedGetErrors, RunsReviewsExpectedGetResponse, RunsReviewsExpectedGetResponses, RunsReviewsGetData, RunsReviewsGetError, RunsReviewsGetErrors, RunsReviewsGetResponse, RunsReviewsGetResponses, RunsReviewsUpdateData, RunsReviewsUpdateError, RunsReviewsUpdateErrors, RunsReviewsUpdateResponse, RunsReviewsUpdateResponses, RunsScoresListData, RunsScoresListError, RunsScoresListErrors, RunsScoresListResponse, RunsScoresListResponses, RunsStartData, RunsStartError, RunsStartErrors, RunsStartResponse, RunsStartResponses, RunsStepsListData, RunsStepsListError, RunsStepsListErrors, RunsStepsListResponse, RunsStepsListResponses, RunStartBody, RunStartMultipartRequest, RunStepsResponse, RunsTraceGetData, RunsTraceGetError, RunsTraceGetErrors, RunsTraceGetResponse, RunsTraceGetResponses, RunsUsageGetData, RunsUsageGetError, RunsUsageGetErrors, RunsUsageGetResponse, RunsUsageGetResponses, RunTiming, RunTraceEvent, RunTraceResponse, RunTrigger, RunUsage, RunUsageResponse, Template, TemplateFileReferenceRequest, TemplateReplaceRequest, TemplateRevision, TemplatesContentGetData, TemplatesContentGetError, TemplatesContentGetErrors, TemplatesContentGetResponse, TemplatesContentGetResponses, TemplatesCreateData, TemplatesCreateError, TemplatesCreateErrors, TemplatesCreateResponse, TemplatesCreateResponses, TemplatesDeleteData, TemplatesDeleteError, TemplatesDeleteErrors, TemplatesDeleteResponse, TemplatesDeleteResponses, TemplatesGetData, TemplatesGetError, TemplatesGetErrors, TemplatesGetResponse, TemplatesGetResponses, TemplatesListData, TemplatesListError, TemplatesListErrors, TemplatesListResponse, TemplatesListResponses, TemplatesReplaceData, TemplatesReplaceError, TemplatesReplaceErrors, TemplatesReplaceResponse, TemplatesReplaceResponses, TemplatesStagingData, TemplatesStagingError, TemplatesStagingErrors, TemplatesStagingResponse, TemplatesStagingResponses, TemplateStagingRequest, TemplateStagingResponse, TestEmailServerRequest, TestEmailServerResponse, UpdateEmailServerRequest, WorkflowRunExecution } from './types.gen';
|
|
3
|
+
export { authCheck, automationsDatasetExport, automationsDatasetImport, automationsEvaluatorsGet, automationsEvaluatorsUpdate, automationsExamplesCreate, automationsExamplesDelete, automationsExamplesExpectedFileDelete, automationsExamplesExpectedFileGet, automationsExamplesExpectedFilesCreate, automationsExamplesExpectedFilesList, automationsExamplesExpectedFileUpdate, automationsExamplesGet, automationsExamplesInputFileDelete, automationsExamplesInputFileGet, automationsExamplesInputFilesCreate, automationsExamplesInputFilesList, automationsExamplesInputFileUpdate, automationsExamplesList, automationsExamplesRun, automationsExamplesUpdate, automationsExperimentsCancel, automationsExperimentsCreate, automationsExperimentsCreateStream, automationsExperimentsExport, automationsExperimentsExportAll, automationsExperimentsGet, automationsExperimentsList, automationsGet, automationsList, automationsReviewsHealth, automationsSync, automationsTriggersGet, automationsVersionsCreate, automationsVersionsList, automationsVersionsPromote, automationsVersionsRestore, emailServersCreate, emailServersDelete, emailServersGet, emailServersList, emailServersTest, emailServersUpdate, experimentsResolve, filesContentGet, filesCreate, filesDelete, filesGet, filesUploadsAbort, filesUploadsComplete, filesUploadsCreate, filesUploadsGet, filesUploadsPartsList, filesUploadsPartsPresign, humanReviewsApprove, humanReviewsConfirmField, humanReviewsFilesContentGet, humanReviewsGet, humanReviewsList, humanReviewsReject, modelsList, type Options, runsArtifactsGet, runsArtifactsList, runsCancel, runsEventsList, runsGet, runsList, runsPromote, runsRerun, runsReviewsClear, runsReviewsExpectedCreate, runsReviewsExpectedFileDelete, runsReviewsExpectedFileGet, runsReviewsExpectedFileUpdate, runsReviewsExpectedGet, runsReviewsGet, runsReviewsUpdate, runsScoresList, runsStart, runsStepsList, runsTraceGet, runsUsageGet, templatesContentGet, templatesCreate, templatesDelete, templatesGet, templatesList, templatesReplace, templatesStaging } from './sdk.gen';
|
|
4
|
+
export type { AbortFileUploadResponse, AgentRunExecution, ApiErrorEnvelope, ApiErrorIssue, AuthCheckData, AuthCheckError, AuthCheckErrors, AuthCheckResponse, AuthCheckResponse2, AuthCheckResponses, AutomationDatasetImportMultipartRequest, AutomationDetail, AutomationsDatasetExportData, AutomationsDatasetExportError, AutomationsDatasetExportErrors, AutomationsDatasetExportResponse, AutomationsDatasetExportResponses, AutomationsDatasetImportData, AutomationsDatasetImportError, AutomationsDatasetImportErrors, AutomationsDatasetImportResponse, AutomationsDatasetImportResponses, AutomationsEvaluatorsGetData, AutomationsEvaluatorsGetError, AutomationsEvaluatorsGetErrors, AutomationsEvaluatorsGetResponse, AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsUpdateData, AutomationsEvaluatorsUpdateError, AutomationsEvaluatorsUpdateErrors, AutomationsEvaluatorsUpdateResponse, AutomationsEvaluatorsUpdateResponses, AutomationsExamplesCreateData, AutomationsExamplesCreateError, AutomationsExamplesCreateErrors, AutomationsExamplesCreateResponse, AutomationsExamplesCreateResponses, AutomationsExamplesDeleteData, AutomationsExamplesDeleteError, AutomationsExamplesDeleteErrors, AutomationsExamplesDeleteResponse, AutomationsExamplesDeleteResponses, AutomationsExamplesExpectedFileDeleteData, AutomationsExamplesExpectedFileDeleteError, AutomationsExamplesExpectedFileDeleteErrors, AutomationsExamplesExpectedFileDeleteResponses, AutomationsExamplesExpectedFileGetData, AutomationsExamplesExpectedFileGetError, AutomationsExamplesExpectedFileGetErrors, AutomationsExamplesExpectedFileGetResponse, AutomationsExamplesExpectedFileGetResponses, AutomationsExamplesExpectedFilesCreateData, AutomationsExamplesExpectedFilesCreateError, AutomationsExamplesExpectedFilesCreateErrors, AutomationsExamplesExpectedFilesCreateResponse, AutomationsExamplesExpectedFilesCreateResponses, AutomationsExamplesExpectedFilesListData, AutomationsExamplesExpectedFilesListError, AutomationsExamplesExpectedFilesListErrors, AutomationsExamplesExpectedFilesListResponse, AutomationsExamplesExpectedFilesListResponses, AutomationsExamplesExpectedFileUpdateData, AutomationsExamplesExpectedFileUpdateError, AutomationsExamplesExpectedFileUpdateErrors, AutomationsExamplesExpectedFileUpdateResponse, AutomationsExamplesExpectedFileUpdateResponses, AutomationsExamplesGetData, AutomationsExamplesGetError, AutomationsExamplesGetErrors, AutomationsExamplesGetResponse, AutomationsExamplesGetResponses, AutomationsExamplesInputFileDeleteData, AutomationsExamplesInputFileDeleteError, AutomationsExamplesInputFileDeleteErrors, AutomationsExamplesInputFileDeleteResponses, AutomationsExamplesInputFileGetData, AutomationsExamplesInputFileGetError, AutomationsExamplesInputFileGetErrors, AutomationsExamplesInputFileGetResponse, AutomationsExamplesInputFileGetResponses, AutomationsExamplesInputFilesCreateData, AutomationsExamplesInputFilesCreateError, AutomationsExamplesInputFilesCreateErrors, AutomationsExamplesInputFilesCreateResponse, AutomationsExamplesInputFilesCreateResponses, AutomationsExamplesInputFilesListData, AutomationsExamplesInputFilesListError, AutomationsExamplesInputFilesListErrors, AutomationsExamplesInputFilesListResponse, AutomationsExamplesInputFilesListResponses, AutomationsExamplesInputFileUpdateData, AutomationsExamplesInputFileUpdateError, AutomationsExamplesInputFileUpdateErrors, AutomationsExamplesInputFileUpdateResponse, AutomationsExamplesInputFileUpdateResponses, AutomationsExamplesListData, AutomationsExamplesListError, AutomationsExamplesListErrors, AutomationsExamplesListResponse, AutomationsExamplesListResponses, AutomationsExamplesRunData, AutomationsExamplesRunError, AutomationsExamplesRunErrors, AutomationsExamplesRunResponse, AutomationsExamplesRunResponses, AutomationsExamplesUpdateData, AutomationsExamplesUpdateError, AutomationsExamplesUpdateErrors, AutomationsExamplesUpdateResponse, AutomationsExamplesUpdateResponses, AutomationsExperimentsCancelData, AutomationsExperimentsCancelError, AutomationsExperimentsCancelErrors, AutomationsExperimentsCancelResponse, AutomationsExperimentsCancelResponses, AutomationsExperimentsCreateData, AutomationsExperimentsCreateError, AutomationsExperimentsCreateErrors, AutomationsExperimentsCreateResponse, AutomationsExperimentsCreateResponses, AutomationsExperimentsCreateStreamData, AutomationsExperimentsCreateStreamError, AutomationsExperimentsCreateStreamErrors, AutomationsExperimentsCreateStreamResponse, AutomationsExperimentsCreateStreamResponses, AutomationsExperimentsExportAllData, AutomationsExperimentsExportAllError, AutomationsExperimentsExportAllErrors, AutomationsExperimentsExportAllResponse, AutomationsExperimentsExportAllResponses, AutomationsExperimentsExportData, AutomationsExperimentsExportError, AutomationsExperimentsExportErrors, AutomationsExperimentsExportResponse, AutomationsExperimentsExportResponses, AutomationsExperimentsGetData, AutomationsExperimentsGetError, AutomationsExperimentsGetErrors, AutomationsExperimentsGetResponse, AutomationsExperimentsGetResponses, AutomationsExperimentsListData, AutomationsExperimentsListError, AutomationsExperimentsListErrors, AutomationsExperimentsListResponse, AutomationsExperimentsListResponses, AutomationsGetData, AutomationsGetError, AutomationsGetErrors, AutomationsGetResponse, AutomationsGetResponses, AutomationsListData, AutomationsListError, AutomationsListErrors, AutomationsListResponse, AutomationsListResponses, AutomationsReviewsHealthData, AutomationsReviewsHealthError, AutomationsReviewsHealthErrors, AutomationsReviewsHealthResponse, AutomationsReviewsHealthResponses, AutomationsSyncData, AutomationsSyncError, AutomationsSyncErrors, AutomationsSyncResponse, AutomationsSyncResponses, AutomationsTriggersGetData, AutomationsTriggersGetError, AutomationsTriggersGetErrors, AutomationsTriggersGetResponse, AutomationsTriggersGetResponses, AutomationSummary, AutomationsVersionsCreateData, AutomationsVersionsCreateError, AutomationsVersionsCreateErrors, AutomationsVersionsCreateResponse, AutomationsVersionsCreateResponses, AutomationsVersionsListData, AutomationsVersionsListError, AutomationsVersionsListErrors, AutomationsVersionsListResponse, AutomationsVersionsListResponses, AutomationsVersionsPromoteData, AutomationsVersionsPromoteError, AutomationsVersionsPromoteErrors, AutomationsVersionsPromoteResponse, AutomationsVersionsPromoteResponses, AutomationsVersionsRestoreData, AutomationsVersionsRestoreError, AutomationsVersionsRestoreErrors, AutomationsVersionsRestoreResponse, AutomationsVersionsRestoreResponses, AutomationTriggersResponse, AutomationTriggerState, AutomationType, AutomationVersion, ClientOptions, CreateAutomationVersionRequest, CreatedTemplate, CreateEmailServerRequest, CreateFileMultipartRequest, CreateFileUploadSessionRequest, DatasetExample, DatasetExampleExpectedFileList, DatasetExampleExpectedFileRenameRequest, DatasetExampleExpectedFileRenameResponse, DatasetExampleExpectedFileUploadRequest, DatasetExampleExpectedFileUploadResponse, DatasetExampleInputFileList, DatasetExampleInputFileRenameRequest, DatasetExampleInputFileRenameResponse, DatasetExampleInputFileUploadRequest, DatasetExampleInputFileUploadResponse, DatasetExampleList, DatasetExampleMutation, DatasetExampleUpdate, DatasetImportResponse, DeleteEmailServerResponse, DeleteFileResponse, DeleteTemplateResponse, EmailServer, EmailServersCreateData, EmailServersCreateError, EmailServersCreateErrors, EmailServersCreateResponse, EmailServersCreateResponses, EmailServersDeleteData, EmailServersDeleteError, EmailServersDeleteErrors, EmailServersDeleteResponse, EmailServersDeleteResponses, EmailServersGetData, EmailServersGetError, EmailServersGetErrors, EmailServersGetResponse, EmailServersGetResponses, EmailServersListData, EmailServersListError, EmailServersListErrors, EmailServersListResponse, EmailServersListResponses, EmailServersTestData, EmailServersTestError, EmailServersTestErrors, EmailServersTestResponse, EmailServersTestResponses, EmailServersUpdateData, EmailServersUpdateError, EmailServersUpdateErrors, EmailServersUpdateResponse, EmailServersUpdateResponses, EvalResult, EvaluatorConfigResponse, EvaluatorConfigUpdate, ExampleRunResponse, ExecutionStatus, Experiment, ExperimentCreate, ExperimentCreateResponse, ExperimentDetail, ExperimentRef, ExperimentsResolveData, ExperimentsResolveError, ExperimentsResolveErrors, ExperimentsResolveResponse, ExperimentsResolveResponses, File, FilesContentGetData, FilesContentGetError, FilesContentGetErrors, FilesContentGetResponses, FilesCreateData, FilesCreateError, FilesCreateErrors, FilesCreateResponse, FilesCreateResponses, FilesDeleteData, FilesDeleteError, FilesDeleteErrors, FilesDeleteResponse, FilesDeleteResponses, FilesGetData, FilesGetError, FilesGetErrors, FilesGetResponse, FilesGetResponses, FilesUploadsAbortData, FilesUploadsAbortError, FilesUploadsAbortErrors, FilesUploadsAbortResponse, FilesUploadsAbortResponses, FilesUploadsCompleteData, FilesUploadsCompleteError, FilesUploadsCompleteErrors, FilesUploadsCompleteResponse, FilesUploadsCompleteResponses, FilesUploadsCreateData, FilesUploadsCreateError, FilesUploadsCreateErrors, FilesUploadsCreateResponse, FilesUploadsCreateResponses, FilesUploadsGetData, FilesUploadsGetError, FilesUploadsGetErrors, FilesUploadsGetResponse, FilesUploadsGetResponses, FilesUploadsPartsListData, FilesUploadsPartsListError, FilesUploadsPartsListErrors, FilesUploadsPartsListResponse, FilesUploadsPartsListResponses, FilesUploadsPartsPresignData, FilesUploadsPartsPresignError, FilesUploadsPartsPresignErrors, FilesUploadsPartsPresignResponse, FilesUploadsPartsPresignResponses, FileUploadSession, HumanReviewApproveResponse, HumanReviewFieldResponse, HumanReviewListResponse, HumanReviewRejectResponse, HumanReviewsApproveData, HumanReviewsApproveError, HumanReviewsApproveErrors, HumanReviewsApproveResponse, HumanReviewsApproveResponses, HumanReviewsConfirmFieldData, HumanReviewsConfirmFieldError, HumanReviewsConfirmFieldErrors, HumanReviewsConfirmFieldResponse, HumanReviewsConfirmFieldResponses, HumanReviewsFilesContentGetData, HumanReviewsFilesContentGetError, HumanReviewsFilesContentGetErrors, HumanReviewsFilesContentGetResponses, HumanReviewsGetData, HumanReviewsGetError, HumanReviewsGetErrors, HumanReviewsGetResponse, HumanReviewsGetResponses, HumanReviewsListData, HumanReviewsListError, HumanReviewsListErrors, HumanReviewsListResponse, HumanReviewsListResponses, HumanReviewsRejectData, HumanReviewsRejectError, HumanReviewsRejectErrors, HumanReviewsRejectResponse, HumanReviewsRejectResponses, HumanReviewTaskDetail, HumanReviewTaskResponse, ListAutomationsResponse, ListAutomationVersionsResponse, ListEmailServersResponse, ListFileUploadPartsResponse, ListModelsResponse, ListTemplatesResponse, ModelsListData, ModelsListError, ModelsListErrors, ModelsListResponse, ModelsListResponses, MultipartFileUploadFallback, PresignedFileUploadSession, PresignedMultipartFileUploadSession, PresignFileUploadPartRequest, PresignFileUploadPartResponse, PromoteRunRequest, PromoteRunResponse, PublicModel, PublicModelCost, PublicModelLimits, PublicResendEmailServer, PublicSmtpEmailServer, RestoreAutomationVersionRequest, Run, RunAccepted, RunArtifact, RunArtifactsResponse, RunCancelResponse, RunDebug, RunError, RunEval, RunEvent, RunEventsResponse, RunExecution, RunExecutionMeta, RunExecutionRetry, RunFile, RunHumanReviewSummary, RunInput, RunListItem, RunReview, RunReviewCorrection, RunReviewDetail, RunReviewExpectedArtifacts, RunReviewExpectedFileCopyRequest, RunReviewExpectedFileMutationResponse, RunReviewExpectedFileUpdateRequest, RunReviewExpectedFileUpdateResponse, RunReviewExpectedFileUploadRequest, RunReviewHealthBucket, RunReviewHealthConfidence, RunReviewHealthResponse, RunReviewHealthRollingPoint, RunReviewHealthSummary, RunReviewRequest, RunReviewSummary, RunsArtifactsGetData, RunsArtifactsGetError, RunsArtifactsGetErrors, RunsArtifactsGetResponses, RunsArtifactsListData, RunsArtifactsListError, RunsArtifactsListErrors, RunsArtifactsListResponse, RunsArtifactsListResponses, RunsCancelData, RunsCancelError, RunsCancelErrors, RunsCancelResponse, RunsCancelResponses, RunScoresResponse, RunsEventsListData, RunsEventsListError, RunsEventsListErrors, RunsEventsListResponse, RunsEventsListResponses, RunsGetData, RunsGetError, RunsGetErrors, RunsGetResponse, RunsGetResponses, RunsListData, RunsListError, RunsListErrors, RunsListResponse, RunsListResponse2, RunsListResponses, RunSource, RunSourceGit, RunsPromoteData, RunsPromoteError, RunsPromoteErrors, RunsPromoteResponse, RunsPromoteResponses, RunsRerunData, RunsRerunError, RunsRerunErrors, RunsRerunResponse, RunsRerunResponses, RunsReviewsClearData, RunsReviewsClearError, RunsReviewsClearErrors, RunsReviewsClearResponse, RunsReviewsClearResponses, RunsReviewsExpectedCreateData, RunsReviewsExpectedCreateError, RunsReviewsExpectedCreateErrors, RunsReviewsExpectedCreateResponse, RunsReviewsExpectedCreateResponses, RunsReviewsExpectedFileDeleteData, RunsReviewsExpectedFileDeleteError, RunsReviewsExpectedFileDeleteErrors, RunsReviewsExpectedFileDeleteResponse, RunsReviewsExpectedFileDeleteResponses, RunsReviewsExpectedFileGetData, RunsReviewsExpectedFileGetError, RunsReviewsExpectedFileGetErrors, RunsReviewsExpectedFileGetResponse, RunsReviewsExpectedFileGetResponses, RunsReviewsExpectedFileUpdateData, RunsReviewsExpectedFileUpdateError, RunsReviewsExpectedFileUpdateErrors, RunsReviewsExpectedFileUpdateResponse, RunsReviewsExpectedFileUpdateResponses, RunsReviewsExpectedGetData, RunsReviewsExpectedGetError, RunsReviewsExpectedGetErrors, RunsReviewsExpectedGetResponse, RunsReviewsExpectedGetResponses, RunsReviewsGetData, RunsReviewsGetError, RunsReviewsGetErrors, RunsReviewsGetResponse, RunsReviewsGetResponses, RunsReviewsUpdateData, RunsReviewsUpdateError, RunsReviewsUpdateErrors, RunsReviewsUpdateResponse, RunsReviewsUpdateResponses, RunsScoresListData, RunsScoresListError, RunsScoresListErrors, RunsScoresListResponse, RunsScoresListResponses, RunsStartData, RunsStartError, RunsStartErrors, RunsStartResponse, RunsStartResponses, RunsStepsListData, RunsStepsListError, RunsStepsListErrors, RunsStepsListResponse, RunsStepsListResponses, RunStartBody, RunStartMultipartRequest, RunStepsResponse, RunsTraceGetData, RunsTraceGetError, RunsTraceGetErrors, RunsTraceGetResponse, RunsTraceGetResponses, RunsUsageGetData, RunsUsageGetError, RunsUsageGetErrors, RunsUsageGetResponse, RunsUsageGetResponses, RunTiming, RunTraceEvent, RunTraceResponse, RunTrigger, RunUsage, RunUsageResponse, Template, TemplateFileReferenceRequest, TemplateReplaceRequest, TemplateRevision, TemplatesContentGetData, TemplatesContentGetError, TemplatesContentGetErrors, TemplatesContentGetResponse, TemplatesContentGetResponses, TemplatesCreateData, TemplatesCreateError, TemplatesCreateErrors, TemplatesCreateResponse, TemplatesCreateResponses, TemplatesDeleteData, TemplatesDeleteError, TemplatesDeleteErrors, TemplatesDeleteResponse, TemplatesDeleteResponses, TemplatesGetData, TemplatesGetError, TemplatesGetErrors, TemplatesGetResponse, TemplatesGetResponses, TemplatesListData, TemplatesListError, TemplatesListErrors, TemplatesListResponse, TemplatesListResponses, TemplatesReplaceData, TemplatesReplaceError, TemplatesReplaceErrors, TemplatesReplaceResponse, TemplatesReplaceResponses, TemplatesStagingData, TemplatesStagingError, TemplatesStagingErrors, TemplatesStagingResponse, TemplatesStagingResponses, TemplateStagingRequest, TemplateStagingResponse, TestEmailServerRequest, TestEmailServerResponse, UpdateEmailServerRequest, WorkflowRunExecution } from './types.gen';
|
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { type Client, formDataBodySerializer, type Options as Options2, type TDataShape } from './client';
|
|
4
4
|
import { client } from './client.gen';
|
|
5
|
-
import type { AuthCheckData, AuthCheckErrors, AuthCheckResponses, AutomationsDatasetExportData, AutomationsDatasetExportErrors, AutomationsDatasetExportResponses, AutomationsDatasetImportData, AutomationsDatasetImportErrors, AutomationsDatasetImportResponses, AutomationsEvaluatorsGetData, AutomationsEvaluatorsGetErrors, AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsUpdateData, AutomationsEvaluatorsUpdateErrors, AutomationsEvaluatorsUpdateResponses, AutomationsExamplesCreateData, AutomationsExamplesCreateErrors, AutomationsExamplesCreateResponses, AutomationsExamplesDeleteData, AutomationsExamplesDeleteErrors, AutomationsExamplesDeleteResponses, AutomationsExamplesExpectedFileDeleteData, AutomationsExamplesExpectedFileDeleteErrors, AutomationsExamplesExpectedFileDeleteResponses, AutomationsExamplesExpectedFileGetData, AutomationsExamplesExpectedFileGetErrors, AutomationsExamplesExpectedFileGetResponses, AutomationsExamplesExpectedFilesCreateData, AutomationsExamplesExpectedFilesCreateErrors, AutomationsExamplesExpectedFilesCreateResponses, AutomationsExamplesExpectedFilesListData, AutomationsExamplesExpectedFilesListErrors, AutomationsExamplesExpectedFilesListResponses, AutomationsExamplesExpectedFileUpdateData, AutomationsExamplesExpectedFileUpdateErrors, AutomationsExamplesExpectedFileUpdateResponses, AutomationsExamplesGetData, AutomationsExamplesGetErrors, AutomationsExamplesGetResponses, AutomationsExamplesInputFileDeleteData, AutomationsExamplesInputFileDeleteErrors, AutomationsExamplesInputFileDeleteResponses, AutomationsExamplesInputFileGetData, AutomationsExamplesInputFileGetErrors, AutomationsExamplesInputFileGetResponses, AutomationsExamplesInputFilesCreateData, AutomationsExamplesInputFilesCreateErrors, AutomationsExamplesInputFilesCreateResponses, AutomationsExamplesInputFilesListData, AutomationsExamplesInputFilesListErrors, AutomationsExamplesInputFilesListResponses, AutomationsExamplesInputFileUpdateData, AutomationsExamplesInputFileUpdateErrors, AutomationsExamplesInputFileUpdateResponses, AutomationsExamplesListData, AutomationsExamplesListErrors, AutomationsExamplesListResponses, AutomationsExamplesRunData, AutomationsExamplesRunErrors, AutomationsExamplesRunResponses, AutomationsExamplesUpdateData, AutomationsExamplesUpdateErrors, AutomationsExamplesUpdateResponses, AutomationsExperimentsCancelData, AutomationsExperimentsCancelErrors, AutomationsExperimentsCancelResponses, AutomationsExperimentsCreateData, AutomationsExperimentsCreateErrors, AutomationsExperimentsCreateResponses, AutomationsExperimentsCreateStreamData, AutomationsExperimentsCreateStreamErrors, AutomationsExperimentsCreateStreamResponses, AutomationsExperimentsExportAllData, AutomationsExperimentsExportAllErrors, AutomationsExperimentsExportAllResponses, AutomationsExperimentsExportData, AutomationsExperimentsExportErrors, AutomationsExperimentsExportResponses, AutomationsExperimentsGetData, AutomationsExperimentsGetErrors, AutomationsExperimentsGetResponses, AutomationsExperimentsListData, AutomationsExperimentsListErrors, AutomationsExperimentsListResponses, AutomationsGetData, AutomationsGetErrors, AutomationsGetResponses, AutomationsListData, AutomationsListErrors, AutomationsListResponses, AutomationsReviewsHealthData, AutomationsReviewsHealthErrors, AutomationsReviewsHealthResponses, AutomationsSyncData, AutomationsSyncErrors, AutomationsSyncResponses, AutomationsTriggersGetData, AutomationsTriggersGetErrors, AutomationsTriggersGetResponses, AutomationsVersionsCreateData, AutomationsVersionsCreateErrors, AutomationsVersionsCreateResponses, AutomationsVersionsListData, AutomationsVersionsListErrors, AutomationsVersionsListResponses, AutomationsVersionsPromoteData, AutomationsVersionsPromoteErrors, AutomationsVersionsPromoteResponses, AutomationsVersionsRestoreData, AutomationsVersionsRestoreErrors, AutomationsVersionsRestoreResponses, EmailServersCreateData, EmailServersCreateErrors, EmailServersCreateResponses, EmailServersDeleteData, EmailServersDeleteErrors, EmailServersDeleteResponses, EmailServersGetData, EmailServersGetErrors, EmailServersGetResponses, EmailServersListData, EmailServersListErrors, EmailServersListResponses, EmailServersTestData, EmailServersTestErrors, EmailServersTestResponses, EmailServersUpdateData, EmailServersUpdateErrors, EmailServersUpdateResponses, ExperimentsResolveData, ExperimentsResolveErrors, ExperimentsResolveResponses, FilesContentGetData, FilesContentGetErrors, FilesContentGetResponses, FilesCreateData, FilesCreateErrors, FilesCreateResponses, FilesDeleteData, FilesDeleteErrors, FilesDeleteResponses, FilesGetData, FilesGetErrors, FilesGetResponses, FilesUploadsAbortData, FilesUploadsAbortErrors, FilesUploadsAbortResponses, FilesUploadsCompleteData, FilesUploadsCompleteErrors, FilesUploadsCompleteResponses, FilesUploadsCreateData, FilesUploadsCreateErrors, FilesUploadsCreateResponses, HumanReviewsApproveData, HumanReviewsApproveErrors, HumanReviewsApproveResponses, HumanReviewsConfirmFieldData, HumanReviewsConfirmFieldErrors, HumanReviewsConfirmFieldResponses, HumanReviewsFilesContentGetData, HumanReviewsFilesContentGetErrors, HumanReviewsFilesContentGetResponses, HumanReviewsGetData, HumanReviewsGetErrors, HumanReviewsGetResponses, HumanReviewsListData, HumanReviewsListErrors, HumanReviewsListResponses, HumanReviewsRejectData, HumanReviewsRejectErrors, HumanReviewsRejectResponses, ModelsListData, ModelsListErrors, ModelsListResponses, RunsArtifactsGetData, RunsArtifactsGetErrors, RunsArtifactsGetResponses, RunsArtifactsListData, RunsArtifactsListErrors, RunsArtifactsListResponses, RunsCancelData, RunsCancelErrors, RunsCancelResponses, RunsEventsListData, RunsEventsListErrors, RunsEventsListResponses, RunsGetData, RunsGetErrors, RunsGetResponses, RunsListData, RunsListErrors, RunsListResponses, RunsPromoteData, RunsPromoteErrors, RunsPromoteResponses, RunsRerunData, RunsRerunErrors, RunsRerunResponses, RunsReviewsClearData, RunsReviewsClearErrors, RunsReviewsClearResponses, RunsReviewsExpectedCreateData, RunsReviewsExpectedCreateErrors, RunsReviewsExpectedCreateResponses, RunsReviewsExpectedFileDeleteData, RunsReviewsExpectedFileDeleteErrors, RunsReviewsExpectedFileDeleteResponses, RunsReviewsExpectedFileGetData, RunsReviewsExpectedFileGetErrors, RunsReviewsExpectedFileGetResponses, RunsReviewsExpectedFileUpdateData, RunsReviewsExpectedFileUpdateErrors, RunsReviewsExpectedFileUpdateResponses, RunsReviewsExpectedGetData, RunsReviewsExpectedGetErrors, RunsReviewsExpectedGetResponses, RunsReviewsGetData, RunsReviewsGetErrors, RunsReviewsGetResponses, RunsReviewsUpdateData, RunsReviewsUpdateErrors, RunsReviewsUpdateResponses, RunsScoresListData, RunsScoresListErrors, RunsScoresListResponses, RunsStartData, RunsStartErrors, RunsStartResponses, RunsStepsListData, RunsStepsListErrors, RunsStepsListResponses, RunsTraceGetData, RunsTraceGetErrors, RunsTraceGetResponses, RunsUsageGetData, RunsUsageGetErrors, RunsUsageGetResponses, TemplatesContentGetData, TemplatesContentGetErrors, TemplatesContentGetResponses, TemplatesCreateData, TemplatesCreateErrors, TemplatesCreateResponses, TemplatesDeleteData, TemplatesDeleteErrors, TemplatesDeleteResponses, TemplatesGetData, TemplatesGetErrors, TemplatesGetResponses, TemplatesListData, TemplatesListErrors, TemplatesListResponses, TemplatesReplaceData, TemplatesReplaceErrors, TemplatesReplaceResponses, TemplatesStagingData, TemplatesStagingErrors, TemplatesStagingResponses } from './types.gen';
|
|
5
|
+
import type { AuthCheckData, AuthCheckErrors, AuthCheckResponses, AutomationsDatasetExportData, AutomationsDatasetExportErrors, AutomationsDatasetExportResponses, AutomationsDatasetImportData, AutomationsDatasetImportErrors, AutomationsDatasetImportResponses, AutomationsEvaluatorsGetData, AutomationsEvaluatorsGetErrors, AutomationsEvaluatorsGetResponses, AutomationsEvaluatorsUpdateData, AutomationsEvaluatorsUpdateErrors, AutomationsEvaluatorsUpdateResponses, AutomationsExamplesCreateData, AutomationsExamplesCreateErrors, AutomationsExamplesCreateResponses, AutomationsExamplesDeleteData, AutomationsExamplesDeleteErrors, AutomationsExamplesDeleteResponses, AutomationsExamplesExpectedFileDeleteData, AutomationsExamplesExpectedFileDeleteErrors, AutomationsExamplesExpectedFileDeleteResponses, AutomationsExamplesExpectedFileGetData, AutomationsExamplesExpectedFileGetErrors, AutomationsExamplesExpectedFileGetResponses, AutomationsExamplesExpectedFilesCreateData, AutomationsExamplesExpectedFilesCreateErrors, AutomationsExamplesExpectedFilesCreateResponses, AutomationsExamplesExpectedFilesListData, AutomationsExamplesExpectedFilesListErrors, AutomationsExamplesExpectedFilesListResponses, AutomationsExamplesExpectedFileUpdateData, AutomationsExamplesExpectedFileUpdateErrors, AutomationsExamplesExpectedFileUpdateResponses, AutomationsExamplesGetData, AutomationsExamplesGetErrors, AutomationsExamplesGetResponses, AutomationsExamplesInputFileDeleteData, AutomationsExamplesInputFileDeleteErrors, AutomationsExamplesInputFileDeleteResponses, AutomationsExamplesInputFileGetData, AutomationsExamplesInputFileGetErrors, AutomationsExamplesInputFileGetResponses, AutomationsExamplesInputFilesCreateData, AutomationsExamplesInputFilesCreateErrors, AutomationsExamplesInputFilesCreateResponses, AutomationsExamplesInputFilesListData, AutomationsExamplesInputFilesListErrors, AutomationsExamplesInputFilesListResponses, AutomationsExamplesInputFileUpdateData, AutomationsExamplesInputFileUpdateErrors, AutomationsExamplesInputFileUpdateResponses, AutomationsExamplesListData, AutomationsExamplesListErrors, AutomationsExamplesListResponses, AutomationsExamplesRunData, AutomationsExamplesRunErrors, AutomationsExamplesRunResponses, AutomationsExamplesUpdateData, AutomationsExamplesUpdateErrors, AutomationsExamplesUpdateResponses, AutomationsExperimentsCancelData, AutomationsExperimentsCancelErrors, AutomationsExperimentsCancelResponses, AutomationsExperimentsCreateData, AutomationsExperimentsCreateErrors, AutomationsExperimentsCreateResponses, AutomationsExperimentsCreateStreamData, AutomationsExperimentsCreateStreamErrors, AutomationsExperimentsCreateStreamResponses, AutomationsExperimentsExportAllData, AutomationsExperimentsExportAllErrors, AutomationsExperimentsExportAllResponses, AutomationsExperimentsExportData, AutomationsExperimentsExportErrors, AutomationsExperimentsExportResponses, AutomationsExperimentsGetData, AutomationsExperimentsGetErrors, AutomationsExperimentsGetResponses, AutomationsExperimentsListData, AutomationsExperimentsListErrors, AutomationsExperimentsListResponses, AutomationsGetData, AutomationsGetErrors, AutomationsGetResponses, AutomationsListData, AutomationsListErrors, AutomationsListResponses, AutomationsReviewsHealthData, AutomationsReviewsHealthErrors, AutomationsReviewsHealthResponses, AutomationsSyncData, AutomationsSyncErrors, AutomationsSyncResponses, AutomationsTriggersGetData, AutomationsTriggersGetErrors, AutomationsTriggersGetResponses, AutomationsVersionsCreateData, AutomationsVersionsCreateErrors, AutomationsVersionsCreateResponses, AutomationsVersionsListData, AutomationsVersionsListErrors, AutomationsVersionsListResponses, AutomationsVersionsPromoteData, AutomationsVersionsPromoteErrors, AutomationsVersionsPromoteResponses, AutomationsVersionsRestoreData, AutomationsVersionsRestoreErrors, AutomationsVersionsRestoreResponses, EmailServersCreateData, EmailServersCreateErrors, EmailServersCreateResponses, EmailServersDeleteData, EmailServersDeleteErrors, EmailServersDeleteResponses, EmailServersGetData, EmailServersGetErrors, EmailServersGetResponses, EmailServersListData, EmailServersListErrors, EmailServersListResponses, EmailServersTestData, EmailServersTestErrors, EmailServersTestResponses, EmailServersUpdateData, EmailServersUpdateErrors, EmailServersUpdateResponses, ExperimentsResolveData, ExperimentsResolveErrors, ExperimentsResolveResponses, FilesContentGetData, FilesContentGetErrors, FilesContentGetResponses, FilesCreateData, FilesCreateErrors, FilesCreateResponses, FilesDeleteData, FilesDeleteErrors, FilesDeleteResponses, FilesGetData, FilesGetErrors, FilesGetResponses, FilesUploadsAbortData, FilesUploadsAbortErrors, FilesUploadsAbortResponses, FilesUploadsCompleteData, FilesUploadsCompleteErrors, FilesUploadsCompleteResponses, FilesUploadsCreateData, FilesUploadsCreateErrors, FilesUploadsCreateResponses, FilesUploadsGetData, FilesUploadsGetErrors, FilesUploadsGetResponses, FilesUploadsPartsListData, FilesUploadsPartsListErrors, FilesUploadsPartsListResponses, FilesUploadsPartsPresignData, FilesUploadsPartsPresignErrors, FilesUploadsPartsPresignResponses, HumanReviewsApproveData, HumanReviewsApproveErrors, HumanReviewsApproveResponses, HumanReviewsConfirmFieldData, HumanReviewsConfirmFieldErrors, HumanReviewsConfirmFieldResponses, HumanReviewsFilesContentGetData, HumanReviewsFilesContentGetErrors, HumanReviewsFilesContentGetResponses, HumanReviewsGetData, HumanReviewsGetErrors, HumanReviewsGetResponses, HumanReviewsListData, HumanReviewsListErrors, HumanReviewsListResponses, HumanReviewsRejectData, HumanReviewsRejectErrors, HumanReviewsRejectResponses, ModelsListData, ModelsListErrors, ModelsListResponses, RunsArtifactsGetData, RunsArtifactsGetErrors, RunsArtifactsGetResponses, RunsArtifactsListData, RunsArtifactsListErrors, RunsArtifactsListResponses, RunsCancelData, RunsCancelErrors, RunsCancelResponses, RunsEventsListData, RunsEventsListErrors, RunsEventsListResponses, RunsGetData, RunsGetErrors, RunsGetResponses, RunsListData, RunsListErrors, RunsListResponses, RunsPromoteData, RunsPromoteErrors, RunsPromoteResponses, RunsRerunData, RunsRerunErrors, RunsRerunResponses, RunsReviewsClearData, RunsReviewsClearErrors, RunsReviewsClearResponses, RunsReviewsExpectedCreateData, RunsReviewsExpectedCreateErrors, RunsReviewsExpectedCreateResponses, RunsReviewsExpectedFileDeleteData, RunsReviewsExpectedFileDeleteErrors, RunsReviewsExpectedFileDeleteResponses, RunsReviewsExpectedFileGetData, RunsReviewsExpectedFileGetErrors, RunsReviewsExpectedFileGetResponses, RunsReviewsExpectedFileUpdateData, RunsReviewsExpectedFileUpdateErrors, RunsReviewsExpectedFileUpdateResponses, RunsReviewsExpectedGetData, RunsReviewsExpectedGetErrors, RunsReviewsExpectedGetResponses, RunsReviewsGetData, RunsReviewsGetErrors, RunsReviewsGetResponses, RunsReviewsUpdateData, RunsReviewsUpdateErrors, RunsReviewsUpdateResponses, RunsScoresListData, RunsScoresListErrors, RunsScoresListResponses, RunsStartData, RunsStartErrors, RunsStartResponses, RunsStepsListData, RunsStepsListErrors, RunsStepsListResponses, RunsTraceGetData, RunsTraceGetErrors, RunsTraceGetResponses, RunsUsageGetData, RunsUsageGetErrors, RunsUsageGetResponses, TemplatesContentGetData, TemplatesContentGetErrors, TemplatesContentGetResponses, TemplatesCreateData, TemplatesCreateErrors, TemplatesCreateResponses, TemplatesDeleteData, TemplatesDeleteErrors, TemplatesDeleteResponses, TemplatesGetData, TemplatesGetErrors, TemplatesGetResponses, TemplatesListData, TemplatesListErrors, TemplatesListResponses, TemplatesReplaceData, TemplatesReplaceErrors, TemplatesReplaceResponses, TemplatesStagingData, TemplatesStagingErrors, TemplatesStagingResponses } from './types.gen';
|
|
6
6
|
|
|
7
7
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
8
8
|
/**
|
|
@@ -584,7 +584,7 @@ export const filesCreate = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
584
584
|
/**
|
|
585
585
|
* Delete file
|
|
586
586
|
*
|
|
587
|
-
* Delete a reusable uploaded file.
|
|
587
|
+
* Delete a reusable uploaded file. Past runs that referenced it stay readable until those runs are deleted.
|
|
588
588
|
*/
|
|
589
589
|
export const filesDelete = <ThrowOnError extends boolean = false>(options: Options<FilesDeleteData, ThrowOnError>) => (options.client ?? client).delete<FilesDeleteResponses, FilesDeleteErrors, ThrowOnError>({
|
|
590
590
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
@@ -617,7 +617,7 @@ export const filesContentGet = <ThrowOnError extends boolean = false>(options: O
|
|
|
617
617
|
/**
|
|
618
618
|
* Prepare file upload
|
|
619
619
|
*
|
|
620
|
-
* Negotiate multipart
|
|
620
|
+
* Negotiate HTTP multipart for small bodies, a short-lived signed PUT under the single-object ceiling, or storage-direct multipart (presigned-multipart) for larger files when storage supports MPU. The response transport is authoritative; clients must not guess from file size alone.
|
|
621
621
|
*/
|
|
622
622
|
export const filesUploadsCreate = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsCreateData, ThrowOnError>) => (options.client ?? client).post<FilesUploadsCreateResponses, FilesUploadsCreateErrors, ThrowOnError>({
|
|
623
623
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
@@ -632,7 +632,7 @@ export const filesUploadsCreate = <ThrowOnError extends boolean = false>(options
|
|
|
632
632
|
/**
|
|
633
633
|
* Abort file upload
|
|
634
634
|
*
|
|
635
|
-
* Abort a pending storage-direct upload
|
|
635
|
+
* Abort a pending storage-direct upload. Multipart sessions call AbortMultipartUpload; pending PUT objects are deleted. Completed canonical files are never deleted.
|
|
636
636
|
*/
|
|
637
637
|
export const filesUploadsAbort = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsAbortData, ThrowOnError>) => (options.client ?? client).delete<FilesUploadsAbortResponses, FilesUploadsAbortErrors, ThrowOnError>({
|
|
638
638
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
@@ -640,6 +640,17 @@ export const filesUploadsAbort = <ThrowOnError extends boolean = false>(options:
|
|
|
640
640
|
...options
|
|
641
641
|
});
|
|
642
642
|
|
|
643
|
+
/**
|
|
644
|
+
* Get file upload session
|
|
645
|
+
*
|
|
646
|
+
* Return session status for resume. Multipart sessions include authoritative uploaded parts from storage, not client-reported ETags.
|
|
647
|
+
*/
|
|
648
|
+
export const filesUploadsGet = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsGetData, ThrowOnError>) => (options.client ?? client).get<FilesUploadsGetResponses, FilesUploadsGetErrors, ThrowOnError>({
|
|
649
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
650
|
+
url: '/v1/files/uploads/{uploadId}',
|
|
651
|
+
...options
|
|
652
|
+
});
|
|
653
|
+
|
|
643
654
|
/**
|
|
644
655
|
* Complete file upload
|
|
645
656
|
*
|
|
@@ -651,6 +662,32 @@ export const filesUploadsComplete = <ThrowOnError extends boolean = false>(optio
|
|
|
651
662
|
...options
|
|
652
663
|
});
|
|
653
664
|
|
|
665
|
+
/**
|
|
666
|
+
* List uploaded multipart parts
|
|
667
|
+
*
|
|
668
|
+
* List authoritative uploaded parts from storage for resume. Do not trust client-only ETags.
|
|
669
|
+
*/
|
|
670
|
+
export const filesUploadsPartsList = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsPartsListData, ThrowOnError>) => (options.client ?? client).get<FilesUploadsPartsListResponses, FilesUploadsPartsListErrors, ThrowOnError>({
|
|
671
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
672
|
+
url: '/v1/files/uploads/{uploadId}/parts',
|
|
673
|
+
...options
|
|
674
|
+
});
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Presign one multipart upload part
|
|
678
|
+
*
|
|
679
|
+
* Mint a short-lived signed UploadPart URL for one validated part. Part URLs are not issued at session create.
|
|
680
|
+
*/
|
|
681
|
+
export const filesUploadsPartsPresign = <ThrowOnError extends boolean = false>(options: Options<FilesUploadsPartsPresignData, ThrowOnError>) => (options.client ?? client).post<FilesUploadsPartsPresignResponses, FilesUploadsPartsPresignErrors, ThrowOnError>({
|
|
682
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
683
|
+
url: '/v1/files/uploads/{uploadId}/parts',
|
|
684
|
+
...options,
|
|
685
|
+
headers: {
|
|
686
|
+
'Content-Type': 'application/json',
|
|
687
|
+
...options.headers
|
|
688
|
+
}
|
|
689
|
+
});
|
|
690
|
+
|
|
654
691
|
/**
|
|
655
692
|
* List pending human review tasks
|
|
656
693
|
*
|
|
@@ -260,6 +260,10 @@ export type CreateFileUploadSessionRequest = {
|
|
|
260
260
|
idempotencyKey?: string;
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
+
export type PresignFileUploadPartRequest = {
|
|
264
|
+
partNumber: number;
|
|
265
|
+
};
|
|
266
|
+
|
|
263
267
|
/**
|
|
264
268
|
* Run envelope. Declare provenance with the `X-Eigenpal-Trigger` header (`api` or `cli`). Legacy 0.5.12 body shapes remain accepted.
|
|
265
269
|
*/
|
|
@@ -1153,16 +1157,68 @@ export type PresignedFileUploadSession = {
|
|
|
1153
1157
|
maxFileSizeBytes: number;
|
|
1154
1158
|
};
|
|
1155
1159
|
|
|
1160
|
+
export type PresignedMultipartFileUploadSession = {
|
|
1161
|
+
transport: 'presigned-multipart';
|
|
1162
|
+
uploadId: string;
|
|
1163
|
+
fileId: string;
|
|
1164
|
+
partSizeBytes: number;
|
|
1165
|
+
partCount: number;
|
|
1166
|
+
partsUrl: string;
|
|
1167
|
+
completeUrl: string;
|
|
1168
|
+
expiresAt: string;
|
|
1169
|
+
maxFileSizeBytes: number;
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1156
1172
|
export type MultipartFileUploadFallback = {
|
|
1157
1173
|
transport: 'multipart';
|
|
1158
1174
|
url: string;
|
|
1159
1175
|
maxFileSizeBytes: number;
|
|
1160
1176
|
};
|
|
1161
1177
|
|
|
1178
|
+
export type FileUploadSession = {
|
|
1179
|
+
uploadId: string;
|
|
1180
|
+
fileId: string;
|
|
1181
|
+
transport: 'presigned-put' | 'presigned-multipart';
|
|
1182
|
+
status: string;
|
|
1183
|
+
expiresAt: string;
|
|
1184
|
+
partSizeBytes?: number | null;
|
|
1185
|
+
partCount?: number | null;
|
|
1186
|
+
parts?: Array<{
|
|
1187
|
+
partNumber: number;
|
|
1188
|
+
size?: number;
|
|
1189
|
+
etag: string;
|
|
1190
|
+
}>;
|
|
1191
|
+
};
|
|
1192
|
+
|
|
1162
1193
|
export type AbortFileUploadResponse = {
|
|
1163
1194
|
aborted: true;
|
|
1164
1195
|
};
|
|
1165
1196
|
|
|
1197
|
+
export type ListFileUploadPartsResponse = {
|
|
1198
|
+
transport: 'presigned-multipart';
|
|
1199
|
+
uploadId: string;
|
|
1200
|
+
fileId: string;
|
|
1201
|
+
partSizeBytes: number;
|
|
1202
|
+
partCount: number;
|
|
1203
|
+
expiresAt: string;
|
|
1204
|
+
parts: Array<{
|
|
1205
|
+
partNumber: number;
|
|
1206
|
+
size?: number;
|
|
1207
|
+
etag: string;
|
|
1208
|
+
}>;
|
|
1209
|
+
};
|
|
1210
|
+
|
|
1211
|
+
export type PresignFileUploadPartResponse = {
|
|
1212
|
+
transport: 'presigned-multipart';
|
|
1213
|
+
partNumber: number;
|
|
1214
|
+
url: string;
|
|
1215
|
+
headers: {
|
|
1216
|
+
[key: string]: string;
|
|
1217
|
+
};
|
|
1218
|
+
expiresAt: string;
|
|
1219
|
+
partSizeBytes: number;
|
|
1220
|
+
};
|
|
1221
|
+
|
|
1166
1222
|
export type HumanReviewListResponse = {
|
|
1167
1223
|
tasks: Array<{
|
|
1168
1224
|
id: string;
|
|
@@ -4895,7 +4951,7 @@ export type FilesUploadsCreateResponses = {
|
|
|
4895
4951
|
/**
|
|
4896
4952
|
* Negotiated upload transport
|
|
4897
4953
|
*/
|
|
4898
|
-
200: PresignedFileUploadSession | MultipartFileUploadFallback;
|
|
4954
|
+
200: PresignedFileUploadSession | PresignedMultipartFileUploadSession | MultipartFileUploadFallback;
|
|
4899
4955
|
};
|
|
4900
4956
|
|
|
4901
4957
|
export type FilesUploadsCreateResponse = FilesUploadsCreateResponses[keyof FilesUploadsCreateResponses];
|
|
@@ -4951,6 +5007,57 @@ export type FilesUploadsAbortResponses = {
|
|
|
4951
5007
|
|
|
4952
5008
|
export type FilesUploadsAbortResponse = FilesUploadsAbortResponses[keyof FilesUploadsAbortResponses];
|
|
4953
5009
|
|
|
5010
|
+
export type FilesUploadsGetData = {
|
|
5011
|
+
body?: never;
|
|
5012
|
+
path: {
|
|
5013
|
+
uploadId: string;
|
|
5014
|
+
};
|
|
5015
|
+
query?: never;
|
|
5016
|
+
url: '/v1/files/uploads/{uploadId}';
|
|
5017
|
+
};
|
|
5018
|
+
|
|
5019
|
+
export type FilesUploadsGetErrors = {
|
|
5020
|
+
/**
|
|
5021
|
+
* Validation error. Request shape did not match the spec.
|
|
5022
|
+
*/
|
|
5023
|
+
400: ApiErrorEnvelope;
|
|
5024
|
+
/**
|
|
5025
|
+
* Missing or invalid API key
|
|
5026
|
+
*/
|
|
5027
|
+
401: ApiErrorEnvelope;
|
|
5028
|
+
/**
|
|
5029
|
+
* API key lacks required scope
|
|
5030
|
+
*/
|
|
5031
|
+
403: ApiErrorEnvelope;
|
|
5032
|
+
/**
|
|
5033
|
+
* Resource not found
|
|
5034
|
+
*/
|
|
5035
|
+
404: ApiErrorEnvelope;
|
|
5036
|
+
/**
|
|
5037
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
5038
|
+
*/
|
|
5039
|
+
413: ApiErrorEnvelope;
|
|
5040
|
+
/**
|
|
5041
|
+
* Rate limit exceeded
|
|
5042
|
+
*/
|
|
5043
|
+
429: ApiErrorEnvelope;
|
|
5044
|
+
/**
|
|
5045
|
+
* Internal server error
|
|
5046
|
+
*/
|
|
5047
|
+
500: ApiErrorEnvelope;
|
|
5048
|
+
};
|
|
5049
|
+
|
|
5050
|
+
export type FilesUploadsGetError = FilesUploadsGetErrors[keyof FilesUploadsGetErrors];
|
|
5051
|
+
|
|
5052
|
+
export type FilesUploadsGetResponses = {
|
|
5053
|
+
/**
|
|
5054
|
+
* Upload session
|
|
5055
|
+
*/
|
|
5056
|
+
200: FileUploadSession;
|
|
5057
|
+
};
|
|
5058
|
+
|
|
5059
|
+
export type FilesUploadsGetResponse = FilesUploadsGetResponses[keyof FilesUploadsGetResponses];
|
|
5060
|
+
|
|
4954
5061
|
export type FilesUploadsCompleteData = {
|
|
4955
5062
|
body?: never;
|
|
4956
5063
|
path: {
|
|
@@ -5002,6 +5109,108 @@ export type FilesUploadsCompleteResponses = {
|
|
|
5002
5109
|
|
|
5003
5110
|
export type FilesUploadsCompleteResponse = FilesUploadsCompleteResponses[keyof FilesUploadsCompleteResponses];
|
|
5004
5111
|
|
|
5112
|
+
export type FilesUploadsPartsListData = {
|
|
5113
|
+
body?: never;
|
|
5114
|
+
path: {
|
|
5115
|
+
uploadId: string;
|
|
5116
|
+
};
|
|
5117
|
+
query?: never;
|
|
5118
|
+
url: '/v1/files/uploads/{uploadId}/parts';
|
|
5119
|
+
};
|
|
5120
|
+
|
|
5121
|
+
export type FilesUploadsPartsListErrors = {
|
|
5122
|
+
/**
|
|
5123
|
+
* Validation error. Request shape did not match the spec.
|
|
5124
|
+
*/
|
|
5125
|
+
400: ApiErrorEnvelope;
|
|
5126
|
+
/**
|
|
5127
|
+
* Missing or invalid API key
|
|
5128
|
+
*/
|
|
5129
|
+
401: ApiErrorEnvelope;
|
|
5130
|
+
/**
|
|
5131
|
+
* API key lacks required scope
|
|
5132
|
+
*/
|
|
5133
|
+
403: ApiErrorEnvelope;
|
|
5134
|
+
/**
|
|
5135
|
+
* Resource not found
|
|
5136
|
+
*/
|
|
5137
|
+
404: ApiErrorEnvelope;
|
|
5138
|
+
/**
|
|
5139
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
5140
|
+
*/
|
|
5141
|
+
413: ApiErrorEnvelope;
|
|
5142
|
+
/**
|
|
5143
|
+
* Rate limit exceeded
|
|
5144
|
+
*/
|
|
5145
|
+
429: ApiErrorEnvelope;
|
|
5146
|
+
/**
|
|
5147
|
+
* Internal server error
|
|
5148
|
+
*/
|
|
5149
|
+
500: ApiErrorEnvelope;
|
|
5150
|
+
};
|
|
5151
|
+
|
|
5152
|
+
export type FilesUploadsPartsListError = FilesUploadsPartsListErrors[keyof FilesUploadsPartsListErrors];
|
|
5153
|
+
|
|
5154
|
+
export type FilesUploadsPartsListResponses = {
|
|
5155
|
+
/**
|
|
5156
|
+
* Uploaded parts
|
|
5157
|
+
*/
|
|
5158
|
+
200: ListFileUploadPartsResponse;
|
|
5159
|
+
};
|
|
5160
|
+
|
|
5161
|
+
export type FilesUploadsPartsListResponse = FilesUploadsPartsListResponses[keyof FilesUploadsPartsListResponses];
|
|
5162
|
+
|
|
5163
|
+
export type FilesUploadsPartsPresignData = {
|
|
5164
|
+
body: PresignFileUploadPartRequest;
|
|
5165
|
+
path: {
|
|
5166
|
+
uploadId: string;
|
|
5167
|
+
};
|
|
5168
|
+
query?: never;
|
|
5169
|
+
url: '/v1/files/uploads/{uploadId}/parts';
|
|
5170
|
+
};
|
|
5171
|
+
|
|
5172
|
+
export type FilesUploadsPartsPresignErrors = {
|
|
5173
|
+
/**
|
|
5174
|
+
* Validation error. Request shape did not match the spec.
|
|
5175
|
+
*/
|
|
5176
|
+
400: ApiErrorEnvelope;
|
|
5177
|
+
/**
|
|
5178
|
+
* Missing or invalid API key
|
|
5179
|
+
*/
|
|
5180
|
+
401: ApiErrorEnvelope;
|
|
5181
|
+
/**
|
|
5182
|
+
* API key lacks required scope
|
|
5183
|
+
*/
|
|
5184
|
+
403: ApiErrorEnvelope;
|
|
5185
|
+
/**
|
|
5186
|
+
* Resource not found
|
|
5187
|
+
*/
|
|
5188
|
+
404: ApiErrorEnvelope;
|
|
5189
|
+
/**
|
|
5190
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
5191
|
+
*/
|
|
5192
|
+
413: ApiErrorEnvelope;
|
|
5193
|
+
/**
|
|
5194
|
+
* Rate limit exceeded
|
|
5195
|
+
*/
|
|
5196
|
+
429: ApiErrorEnvelope;
|
|
5197
|
+
/**
|
|
5198
|
+
* Internal server error
|
|
5199
|
+
*/
|
|
5200
|
+
500: ApiErrorEnvelope;
|
|
5201
|
+
};
|
|
5202
|
+
|
|
5203
|
+
export type FilesUploadsPartsPresignError = FilesUploadsPartsPresignErrors[keyof FilesUploadsPartsPresignErrors];
|
|
5204
|
+
|
|
5205
|
+
export type FilesUploadsPartsPresignResponses = {
|
|
5206
|
+
/**
|
|
5207
|
+
* Signed part upload
|
|
5208
|
+
*/
|
|
5209
|
+
200: PresignFileUploadPartResponse;
|
|
5210
|
+
};
|
|
5211
|
+
|
|
5212
|
+
export type FilesUploadsPartsPresignResponse = FilesUploadsPartsPresignResponses[keyof FilesUploadsPartsPresignResponses];
|
|
5213
|
+
|
|
5005
5214
|
export type HumanReviewsListData = {
|
|
5006
5215
|
body?: never;
|
|
5007
5216
|
path?: never;
|
package/src/index.ts
CHANGED
|
@@ -40,7 +40,13 @@ export {
|
|
|
40
40
|
} from './errors';
|
|
41
41
|
|
|
42
42
|
export { toFile } from './lib/files';
|
|
43
|
-
export type {
|
|
43
|
+
export type {
|
|
44
|
+
FileDescriptor,
|
|
45
|
+
FileInput,
|
|
46
|
+
NodeReadableStream,
|
|
47
|
+
PathFileInput,
|
|
48
|
+
StreamFactoryFileInput,
|
|
49
|
+
} from './lib/files';
|
|
44
50
|
export type { ListEmailServersOptions } from './resources/email-servers';
|
|
45
51
|
export type { ListRunsOptions, RunExpand, RunExpandSection } from './resources/runs';
|
|
46
52
|
|