@eigenpal/sdk 0.15.0 → 0.16.0
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 +4 -0
- package/src/generated/index.ts +2 -2
- package/src/generated/sdk.gen.ts +79 -1
- package/src/generated/types.gen.ts +444 -0
- package/src/index.ts +10 -0
- package/src/resources/email-servers.ts +95 -0
- package/src/telemetry.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @eigenpal/sdk
|
|
2
2
|
|
|
3
|
+
## 0.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4464686: TypeScript and Python SDKs now manage organization email servers: list, create, inspect, update, delete, and send a connectivity test. Stored credentials are never returned.
|
|
8
|
+
|
|
3
9
|
## 0.13.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
import { DEFAULT_MULTIPART_MAX_BYTES, keysRequiringPreUpload } from './lib/upload-limits';
|
|
16
16
|
import { AuthResource } from './resources/auth';
|
|
17
17
|
import { AutomationsResource } from './resources/automations';
|
|
18
|
+
import { EmailServersResource } from './resources/email-servers';
|
|
18
19
|
import { FilesResource } from './resources/files';
|
|
19
20
|
import { ModelsResource } from './resources/models';
|
|
20
21
|
import { RunsResource } from './resources/runs';
|
|
@@ -151,6 +152,8 @@ export class EigenpalClient {
|
|
|
151
152
|
public readonly files: FilesResource;
|
|
152
153
|
/** Tenant-scoped DOCX/XLSX templates with immutable content revisions. */
|
|
153
154
|
public readonly templates: TemplatesResource;
|
|
155
|
+
/** Outbound email servers for workflow Email actions. Secrets are never returned. */
|
|
156
|
+
public readonly emailServers: EmailServersResource;
|
|
154
157
|
|
|
155
158
|
/** Underlying hey-api client. Use `getRawClient()` for advanced cases. */
|
|
156
159
|
private readonly client: Client;
|
|
@@ -199,6 +202,7 @@ export class EigenpalClient {
|
|
|
199
202
|
this.runs = new RunsResource(this.client, this._request.bind(this));
|
|
200
203
|
this.files = new FilesResource(this.client, this._request.bind(this));
|
|
201
204
|
this.templates = new TemplatesResource(this.client, this._request.bind(this), this.files);
|
|
205
|
+
this.emailServers = new EmailServersResource(this.client, this._request.bind(this));
|
|
202
206
|
}
|
|
203
207
|
|
|
204
208
|
/** Expose the underlying hey-api client for advanced use (custom interceptors, etc.). */
|
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, experimentsResolve, filesContentGet, filesCreate, filesDelete, filesGet, filesUploadsAbort, filesUploadsComplete, filesUploadsCreate, 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, CreateFileMultipartRequest, CreateFileUploadSessionRequest, DatasetExample, DatasetExampleExpectedFileList, DatasetExampleExpectedFileRenameRequest, DatasetExampleExpectedFileRenameResponse, DatasetExampleExpectedFileUploadRequest, DatasetExampleExpectedFileUploadResponse, DatasetExampleInputFileList, DatasetExampleInputFileRenameRequest, DatasetExampleInputFileRenameResponse, DatasetExampleInputFileUploadRequest, DatasetExampleInputFileUploadResponse, DatasetExampleList, DatasetExampleMutation, DatasetExampleUpdate, DatasetImportResponse, DeleteFileResponse, DeleteTemplateResponse, 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, ListAutomationsResponse, ListAutomationVersionsResponse, ListModelsResponse, ListTemplatesResponse, ModelsListData, ModelsListError, ModelsListErrors, ModelsListResponse, ModelsListResponses, MultipartFileUploadFallback, PresignedFileUploadSession, PromoteRunRequest, PromoteRunResponse, PublicModel, PublicModelCost, PublicModelLimits, RestoreAutomationVersionRequest, Run, RunAccepted, RunArtifact, RunArtifactsResponse, RunCancelResponse, RunDebug, RunError, RunEval, RunEvent, RunEventsResponse, RunExecution, RunExecutionMeta, RunExecutionRetry, RunFile, 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, 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, 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, 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, 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, ExperimentsResolveData, ExperimentsResolveErrors, ExperimentsResolveResponses, FilesContentGetData, FilesContentGetErrors, FilesContentGetResponses, FilesCreateData, FilesCreateErrors, FilesCreateResponses, FilesDeleteData, FilesDeleteErrors, FilesDeleteResponses, FilesGetData, FilesGetErrors, FilesGetResponses, FilesUploadsAbortData, FilesUploadsAbortErrors, FilesUploadsAbortResponses, FilesUploadsCompleteData, FilesUploadsCompleteErrors, FilesUploadsCompleteResponses, FilesUploadsCreateData, FilesUploadsCreateErrors, FilesUploadsCreateResponses, 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, 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
|
/**
|
|
@@ -476,6 +476,84 @@ export const automationsVersionsRestore = <ThrowOnError extends boolean = false>
|
|
|
476
476
|
}
|
|
477
477
|
});
|
|
478
478
|
|
|
479
|
+
/**
|
|
480
|
+
* List email servers
|
|
481
|
+
*
|
|
482
|
+
* List outbound email servers for the current workspace. Secrets are never returned; each server includes configuration flags instead of credentials.
|
|
483
|
+
*/
|
|
484
|
+
export const emailServersList = <ThrowOnError extends boolean = false>(options?: Options<EmailServersListData, ThrowOnError>) => (options?.client ?? client).get<EmailServersListResponses, EmailServersListErrors, ThrowOnError>({
|
|
485
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
486
|
+
url: '/v1/email-servers',
|
|
487
|
+
...options
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Create email server
|
|
492
|
+
*
|
|
493
|
+
* Create an outbound email server. Secrets are encrypted at rest and never returned. Names must be unique among live servers in the workspace.
|
|
494
|
+
*/
|
|
495
|
+
export const emailServersCreate = <ThrowOnError extends boolean = false>(options: Options<EmailServersCreateData, ThrowOnError>) => (options.client ?? client).post<EmailServersCreateResponses, EmailServersCreateErrors, ThrowOnError>({
|
|
496
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
497
|
+
url: '/v1/email-servers',
|
|
498
|
+
...options,
|
|
499
|
+
headers: {
|
|
500
|
+
'Content-Type': 'application/json',
|
|
501
|
+
...options.headers
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Delete email server
|
|
507
|
+
*
|
|
508
|
+
* Soft-delete an outbound email server. Deleted ids are indistinguishable from missing.
|
|
509
|
+
*/
|
|
510
|
+
export const emailServersDelete = <ThrowOnError extends boolean = false>(options: Options<EmailServersDeleteData, ThrowOnError>) => (options.client ?? client).delete<EmailServersDeleteResponses, EmailServersDeleteErrors, ThrowOnError>({
|
|
511
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
512
|
+
url: '/v1/email-servers/{id}',
|
|
513
|
+
...options
|
|
514
|
+
});
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Get email server
|
|
518
|
+
*
|
|
519
|
+
* Inspect a stored outbound email server. Cross-tenant and deleted ids are indistinguishable from missing. Secrets are never returned.
|
|
520
|
+
*/
|
|
521
|
+
export const emailServersGet = <ThrowOnError extends boolean = false>(options: Options<EmailServersGetData, ThrowOnError>) => (options.client ?? client).get<EmailServersGetResponses, EmailServersGetErrors, ThrowOnError>({
|
|
522
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
523
|
+
url: '/v1/email-servers/{id}',
|
|
524
|
+
...options
|
|
525
|
+
});
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Update email server
|
|
529
|
+
*
|
|
530
|
+
* Rename, enable/disable, or replace transport configuration. Omitted secrets are retained only when the existing transport is compatible and, for SMTP, the host and username are unchanged. Changing transport or SMTP destination requires a complete valid target; a new password or explicit auth clearing is required when host or username changes.
|
|
531
|
+
*/
|
|
532
|
+
export const emailServersUpdate = <ThrowOnError extends boolean = false>(options: Options<EmailServersUpdateData, ThrowOnError>) => (options.client ?? client).patch<EmailServersUpdateResponses, EmailServersUpdateErrors, ThrowOnError>({
|
|
533
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
534
|
+
url: '/v1/email-servers/{id}',
|
|
535
|
+
...options,
|
|
536
|
+
headers: {
|
|
537
|
+
'Content-Type': 'application/json',
|
|
538
|
+
...options.headers
|
|
539
|
+
}
|
|
540
|
+
});
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Test email server
|
|
544
|
+
*
|
|
545
|
+
* Send a concise connectivity email through the selected stored server. Disabled servers conflict. Provider failures are returned as a generic outcome and never include credentials or the test recipient.
|
|
546
|
+
*/
|
|
547
|
+
export const emailServersTest = <ThrowOnError extends boolean = false>(options: Options<EmailServersTestData, ThrowOnError>) => (options.client ?? client).post<EmailServersTestResponses, EmailServersTestErrors, ThrowOnError>({
|
|
548
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
549
|
+
url: '/v1/email-servers/{id}/test',
|
|
550
|
+
...options,
|
|
551
|
+
headers: {
|
|
552
|
+
'Content-Type': 'application/json',
|
|
553
|
+
...options.headers
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
|
|
479
557
|
/**
|
|
480
558
|
* Resolve experiment by id
|
|
481
559
|
*
|
|
@@ -192,6 +192,55 @@ export type RestoreAutomationVersionRequest = {
|
|
|
192
192
|
message?: string;
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
+
export type CreateEmailServerRequest = {
|
|
196
|
+
name: string;
|
|
197
|
+
enabled?: boolean;
|
|
198
|
+
transport: 'resend';
|
|
199
|
+
apiKey: string;
|
|
200
|
+
fromEmail: string;
|
|
201
|
+
fromName: string;
|
|
202
|
+
} | {
|
|
203
|
+
name: string;
|
|
204
|
+
enabled?: boolean;
|
|
205
|
+
transport: 'smtp';
|
|
206
|
+
host: string;
|
|
207
|
+
port?: number;
|
|
208
|
+
security?: 'starttls' | 'tls' | 'none';
|
|
209
|
+
username?: string;
|
|
210
|
+
password?: string;
|
|
211
|
+
caPem?: string;
|
|
212
|
+
fromEmail: string;
|
|
213
|
+
fromName: string;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
export type UpdateEmailServerRequest = {
|
|
217
|
+
name?: string;
|
|
218
|
+
enabled?: boolean;
|
|
219
|
+
transport: 'resend';
|
|
220
|
+
apiKey?: string;
|
|
221
|
+
fromEmail: string;
|
|
222
|
+
fromName: string;
|
|
223
|
+
} | {
|
|
224
|
+
name?: string;
|
|
225
|
+
enabled?: boolean;
|
|
226
|
+
transport: 'smtp';
|
|
227
|
+
host: string;
|
|
228
|
+
port: number;
|
|
229
|
+
security: 'starttls' | 'tls' | 'none';
|
|
230
|
+
username?: string | null;
|
|
231
|
+
password?: string;
|
|
232
|
+
caPem?: string | null;
|
|
233
|
+
fromEmail: string;
|
|
234
|
+
fromName: string;
|
|
235
|
+
} | {
|
|
236
|
+
name?: string;
|
|
237
|
+
enabled?: boolean;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
export type TestEmailServerRequest = {
|
|
241
|
+
to: string;
|
|
242
|
+
};
|
|
243
|
+
|
|
195
244
|
export type CreateFileMultipartRequest = {
|
|
196
245
|
/**
|
|
197
246
|
* Binary file field
|
|
@@ -1015,6 +1064,62 @@ export type AutomationVersion = {
|
|
|
1015
1064
|
createdAt?: string;
|
|
1016
1065
|
};
|
|
1017
1066
|
|
|
1067
|
+
export type ListEmailServersResponse = {
|
|
1068
|
+
data: Array<EmailServer>;
|
|
1069
|
+
total: number;
|
|
1070
|
+
limit: number;
|
|
1071
|
+
offset: number;
|
|
1072
|
+
};
|
|
1073
|
+
|
|
1074
|
+
export type EmailServer = ({
|
|
1075
|
+
transport: 'resend';
|
|
1076
|
+
} & PublicResendEmailServer) | ({
|
|
1077
|
+
transport: 'smtp';
|
|
1078
|
+
} & PublicSmtpEmailServer);
|
|
1079
|
+
|
|
1080
|
+
export type PublicResendEmailServer = {
|
|
1081
|
+
id: string;
|
|
1082
|
+
name: string;
|
|
1083
|
+
enabled: boolean;
|
|
1084
|
+
createdAt: string;
|
|
1085
|
+
updatedAt: string;
|
|
1086
|
+
transport: 'resend';
|
|
1087
|
+
fromEmail: string;
|
|
1088
|
+
fromName: string;
|
|
1089
|
+
apiKeyConfigured: true;
|
|
1090
|
+
};
|
|
1091
|
+
|
|
1092
|
+
export type PublicSmtpEmailServer = {
|
|
1093
|
+
id: string;
|
|
1094
|
+
name: string;
|
|
1095
|
+
enabled: boolean;
|
|
1096
|
+
createdAt: string;
|
|
1097
|
+
updatedAt: string;
|
|
1098
|
+
transport: 'smtp';
|
|
1099
|
+
fromEmail: string;
|
|
1100
|
+
fromName: string;
|
|
1101
|
+
host: string;
|
|
1102
|
+
port: number;
|
|
1103
|
+
security: 'starttls' | 'tls' | 'none';
|
|
1104
|
+
username: string | null;
|
|
1105
|
+
passwordConfigured: boolean;
|
|
1106
|
+
caPemConfigured: boolean;
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1109
|
+
export type DeleteEmailServerResponse = {
|
|
1110
|
+
deleted: true;
|
|
1111
|
+
id: string;
|
|
1112
|
+
};
|
|
1113
|
+
|
|
1114
|
+
export type TestEmailServerResponse = {
|
|
1115
|
+
ok: true;
|
|
1116
|
+
transport: 'resend' | 'smtp';
|
|
1117
|
+
messageId: string;
|
|
1118
|
+
} | {
|
|
1119
|
+
ok: false;
|
|
1120
|
+
error: string;
|
|
1121
|
+
};
|
|
1122
|
+
|
|
1018
1123
|
export type ExperimentRef = {
|
|
1019
1124
|
id: string;
|
|
1020
1125
|
automationId: string;
|
|
@@ -1087,6 +1192,10 @@ export type PublicModel = {
|
|
|
1087
1192
|
cost?: PublicModelCost;
|
|
1088
1193
|
aliases: Array<string>;
|
|
1089
1194
|
tags: Array<string>;
|
|
1195
|
+
/**
|
|
1196
|
+
* Optional picker rank. Higher is more capable. Omitted on catalog rows that do not set it. Does not change role defaults.
|
|
1197
|
+
*/
|
|
1198
|
+
capabilityRank?: number;
|
|
1090
1199
|
};
|
|
1091
1200
|
|
|
1092
1201
|
export type PublicModelLimits = {
|
|
@@ -3987,6 +4096,341 @@ export type AutomationsVersionsRestoreResponses = {
|
|
|
3987
4096
|
|
|
3988
4097
|
export type AutomationsVersionsRestoreResponse = AutomationsVersionsRestoreResponses[keyof AutomationsVersionsRestoreResponses];
|
|
3989
4098
|
|
|
4099
|
+
export type EmailServersListData = {
|
|
4100
|
+
body?: never;
|
|
4101
|
+
path?: never;
|
|
4102
|
+
query?: {
|
|
4103
|
+
/**
|
|
4104
|
+
* Maximum number of email servers to return (1–100).
|
|
4105
|
+
*/
|
|
4106
|
+
limit?: number;
|
|
4107
|
+
/**
|
|
4108
|
+
* Zero-based offset for paging through email servers.
|
|
4109
|
+
*/
|
|
4110
|
+
offset?: number;
|
|
4111
|
+
};
|
|
4112
|
+
url: '/v1/email-servers';
|
|
4113
|
+
};
|
|
4114
|
+
|
|
4115
|
+
export type EmailServersListErrors = {
|
|
4116
|
+
/**
|
|
4117
|
+
* Validation error. Request shape did not match the spec.
|
|
4118
|
+
*/
|
|
4119
|
+
400: ApiErrorEnvelope;
|
|
4120
|
+
/**
|
|
4121
|
+
* Missing or invalid API key
|
|
4122
|
+
*/
|
|
4123
|
+
401: ApiErrorEnvelope;
|
|
4124
|
+
/**
|
|
4125
|
+
* API key lacks required scope
|
|
4126
|
+
*/
|
|
4127
|
+
403: ApiErrorEnvelope;
|
|
4128
|
+
/**
|
|
4129
|
+
* Resource not found
|
|
4130
|
+
*/
|
|
4131
|
+
404: ApiErrorEnvelope;
|
|
4132
|
+
/**
|
|
4133
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
4134
|
+
*/
|
|
4135
|
+
413: ApiErrorEnvelope;
|
|
4136
|
+
/**
|
|
4137
|
+
* Rate limit exceeded
|
|
4138
|
+
*/
|
|
4139
|
+
429: ApiErrorEnvelope;
|
|
4140
|
+
/**
|
|
4141
|
+
* Internal server error
|
|
4142
|
+
*/
|
|
4143
|
+
500: ApiErrorEnvelope;
|
|
4144
|
+
};
|
|
4145
|
+
|
|
4146
|
+
export type EmailServersListError = EmailServersListErrors[keyof EmailServersListErrors];
|
|
4147
|
+
|
|
4148
|
+
export type EmailServersListResponses = {
|
|
4149
|
+
/**
|
|
4150
|
+
* Page of email servers
|
|
4151
|
+
*/
|
|
4152
|
+
200: ListEmailServersResponse;
|
|
4153
|
+
};
|
|
4154
|
+
|
|
4155
|
+
export type EmailServersListResponse = EmailServersListResponses[keyof EmailServersListResponses];
|
|
4156
|
+
|
|
4157
|
+
export type EmailServersCreateData = {
|
|
4158
|
+
body: CreateEmailServerRequest;
|
|
4159
|
+
path?: never;
|
|
4160
|
+
query?: never;
|
|
4161
|
+
url: '/v1/email-servers';
|
|
4162
|
+
};
|
|
4163
|
+
|
|
4164
|
+
export type EmailServersCreateErrors = {
|
|
4165
|
+
/**
|
|
4166
|
+
* Validation error. Request shape did not match the spec.
|
|
4167
|
+
*/
|
|
4168
|
+
400: ApiErrorEnvelope;
|
|
4169
|
+
/**
|
|
4170
|
+
* Missing or invalid API key
|
|
4171
|
+
*/
|
|
4172
|
+
401: ApiErrorEnvelope;
|
|
4173
|
+
/**
|
|
4174
|
+
* API key lacks required scope
|
|
4175
|
+
*/
|
|
4176
|
+
403: ApiErrorEnvelope;
|
|
4177
|
+
/**
|
|
4178
|
+
* Resource not found
|
|
4179
|
+
*/
|
|
4180
|
+
404: ApiErrorEnvelope;
|
|
4181
|
+
/**
|
|
4182
|
+
* Conflict. The resource is in a state that forbids the request.
|
|
4183
|
+
*/
|
|
4184
|
+
409: ApiErrorEnvelope;
|
|
4185
|
+
/**
|
|
4186
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
4187
|
+
*/
|
|
4188
|
+
413: ApiErrorEnvelope;
|
|
4189
|
+
/**
|
|
4190
|
+
* Rate limit exceeded
|
|
4191
|
+
*/
|
|
4192
|
+
429: ApiErrorEnvelope;
|
|
4193
|
+
/**
|
|
4194
|
+
* Internal server error
|
|
4195
|
+
*/
|
|
4196
|
+
500: ApiErrorEnvelope;
|
|
4197
|
+
};
|
|
4198
|
+
|
|
4199
|
+
export type EmailServersCreateError = EmailServersCreateErrors[keyof EmailServersCreateErrors];
|
|
4200
|
+
|
|
4201
|
+
export type EmailServersCreateResponses = {
|
|
4202
|
+
/**
|
|
4203
|
+
* Created email server
|
|
4204
|
+
*/
|
|
4205
|
+
201: EmailServer;
|
|
4206
|
+
};
|
|
4207
|
+
|
|
4208
|
+
export type EmailServersCreateResponse = EmailServersCreateResponses[keyof EmailServersCreateResponses];
|
|
4209
|
+
|
|
4210
|
+
export type EmailServersDeleteData = {
|
|
4211
|
+
body?: never;
|
|
4212
|
+
path: {
|
|
4213
|
+
/**
|
|
4214
|
+
* Email server id (`ems_…`).
|
|
4215
|
+
*/
|
|
4216
|
+
id: string;
|
|
4217
|
+
};
|
|
4218
|
+
query?: never;
|
|
4219
|
+
url: '/v1/email-servers/{id}';
|
|
4220
|
+
};
|
|
4221
|
+
|
|
4222
|
+
export type EmailServersDeleteErrors = {
|
|
4223
|
+
/**
|
|
4224
|
+
* Validation error. Request shape did not match the spec.
|
|
4225
|
+
*/
|
|
4226
|
+
400: ApiErrorEnvelope;
|
|
4227
|
+
/**
|
|
4228
|
+
* Missing or invalid API key
|
|
4229
|
+
*/
|
|
4230
|
+
401: ApiErrorEnvelope;
|
|
4231
|
+
/**
|
|
4232
|
+
* API key lacks required scope
|
|
4233
|
+
*/
|
|
4234
|
+
403: ApiErrorEnvelope;
|
|
4235
|
+
/**
|
|
4236
|
+
* Resource not found
|
|
4237
|
+
*/
|
|
4238
|
+
404: ApiErrorEnvelope;
|
|
4239
|
+
/**
|
|
4240
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
4241
|
+
*/
|
|
4242
|
+
413: ApiErrorEnvelope;
|
|
4243
|
+
/**
|
|
4244
|
+
* Rate limit exceeded
|
|
4245
|
+
*/
|
|
4246
|
+
429: ApiErrorEnvelope;
|
|
4247
|
+
/**
|
|
4248
|
+
* Internal server error
|
|
4249
|
+
*/
|
|
4250
|
+
500: ApiErrorEnvelope;
|
|
4251
|
+
};
|
|
4252
|
+
|
|
4253
|
+
export type EmailServersDeleteError = EmailServersDeleteErrors[keyof EmailServersDeleteErrors];
|
|
4254
|
+
|
|
4255
|
+
export type EmailServersDeleteResponses = {
|
|
4256
|
+
/**
|
|
4257
|
+
* Email server deleted
|
|
4258
|
+
*/
|
|
4259
|
+
200: DeleteEmailServerResponse;
|
|
4260
|
+
};
|
|
4261
|
+
|
|
4262
|
+
export type EmailServersDeleteResponse = EmailServersDeleteResponses[keyof EmailServersDeleteResponses];
|
|
4263
|
+
|
|
4264
|
+
export type EmailServersGetData = {
|
|
4265
|
+
body?: never;
|
|
4266
|
+
path: {
|
|
4267
|
+
/**
|
|
4268
|
+
* Email server id (`ems_…`).
|
|
4269
|
+
*/
|
|
4270
|
+
id: string;
|
|
4271
|
+
};
|
|
4272
|
+
query?: never;
|
|
4273
|
+
url: '/v1/email-servers/{id}';
|
|
4274
|
+
};
|
|
4275
|
+
|
|
4276
|
+
export type EmailServersGetErrors = {
|
|
4277
|
+
/**
|
|
4278
|
+
* Validation error. Request shape did not match the spec.
|
|
4279
|
+
*/
|
|
4280
|
+
400: ApiErrorEnvelope;
|
|
4281
|
+
/**
|
|
4282
|
+
* Missing or invalid API key
|
|
4283
|
+
*/
|
|
4284
|
+
401: ApiErrorEnvelope;
|
|
4285
|
+
/**
|
|
4286
|
+
* API key lacks required scope
|
|
4287
|
+
*/
|
|
4288
|
+
403: ApiErrorEnvelope;
|
|
4289
|
+
/**
|
|
4290
|
+
* Resource not found
|
|
4291
|
+
*/
|
|
4292
|
+
404: ApiErrorEnvelope;
|
|
4293
|
+
/**
|
|
4294
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
4295
|
+
*/
|
|
4296
|
+
413: ApiErrorEnvelope;
|
|
4297
|
+
/**
|
|
4298
|
+
* Rate limit exceeded
|
|
4299
|
+
*/
|
|
4300
|
+
429: ApiErrorEnvelope;
|
|
4301
|
+
/**
|
|
4302
|
+
* Internal server error
|
|
4303
|
+
*/
|
|
4304
|
+
500: ApiErrorEnvelope;
|
|
4305
|
+
};
|
|
4306
|
+
|
|
4307
|
+
export type EmailServersGetError = EmailServersGetErrors[keyof EmailServersGetErrors];
|
|
4308
|
+
|
|
4309
|
+
export type EmailServersGetResponses = {
|
|
4310
|
+
/**
|
|
4311
|
+
* Email server
|
|
4312
|
+
*/
|
|
4313
|
+
200: EmailServer;
|
|
4314
|
+
};
|
|
4315
|
+
|
|
4316
|
+
export type EmailServersGetResponse = EmailServersGetResponses[keyof EmailServersGetResponses];
|
|
4317
|
+
|
|
4318
|
+
export type EmailServersUpdateData = {
|
|
4319
|
+
body: UpdateEmailServerRequest;
|
|
4320
|
+
path: {
|
|
4321
|
+
/**
|
|
4322
|
+
* Email server id (`ems_…`).
|
|
4323
|
+
*/
|
|
4324
|
+
id: string;
|
|
4325
|
+
};
|
|
4326
|
+
query?: never;
|
|
4327
|
+
url: '/v1/email-servers/{id}';
|
|
4328
|
+
};
|
|
4329
|
+
|
|
4330
|
+
export type EmailServersUpdateErrors = {
|
|
4331
|
+
/**
|
|
4332
|
+
* Validation error. Request shape did not match the spec.
|
|
4333
|
+
*/
|
|
4334
|
+
400: ApiErrorEnvelope;
|
|
4335
|
+
/**
|
|
4336
|
+
* Missing or invalid API key
|
|
4337
|
+
*/
|
|
4338
|
+
401: ApiErrorEnvelope;
|
|
4339
|
+
/**
|
|
4340
|
+
* API key lacks required scope
|
|
4341
|
+
*/
|
|
4342
|
+
403: ApiErrorEnvelope;
|
|
4343
|
+
/**
|
|
4344
|
+
* Resource not found
|
|
4345
|
+
*/
|
|
4346
|
+
404: ApiErrorEnvelope;
|
|
4347
|
+
/**
|
|
4348
|
+
* Conflict. The resource is in a state that forbids the request.
|
|
4349
|
+
*/
|
|
4350
|
+
409: ApiErrorEnvelope;
|
|
4351
|
+
/**
|
|
4352
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
4353
|
+
*/
|
|
4354
|
+
413: ApiErrorEnvelope;
|
|
4355
|
+
/**
|
|
4356
|
+
* Rate limit exceeded
|
|
4357
|
+
*/
|
|
4358
|
+
429: ApiErrorEnvelope;
|
|
4359
|
+
/**
|
|
4360
|
+
* Internal server error
|
|
4361
|
+
*/
|
|
4362
|
+
500: ApiErrorEnvelope;
|
|
4363
|
+
};
|
|
4364
|
+
|
|
4365
|
+
export type EmailServersUpdateError = EmailServersUpdateErrors[keyof EmailServersUpdateErrors];
|
|
4366
|
+
|
|
4367
|
+
export type EmailServersUpdateResponses = {
|
|
4368
|
+
/**
|
|
4369
|
+
* Updated email server
|
|
4370
|
+
*/
|
|
4371
|
+
200: EmailServer;
|
|
4372
|
+
};
|
|
4373
|
+
|
|
4374
|
+
export type EmailServersUpdateResponse = EmailServersUpdateResponses[keyof EmailServersUpdateResponses];
|
|
4375
|
+
|
|
4376
|
+
export type EmailServersTestData = {
|
|
4377
|
+
body: TestEmailServerRequest;
|
|
4378
|
+
path: {
|
|
4379
|
+
/**
|
|
4380
|
+
* Email server id (`ems_…`).
|
|
4381
|
+
*/
|
|
4382
|
+
id: string;
|
|
4383
|
+
};
|
|
4384
|
+
query?: never;
|
|
4385
|
+
url: '/v1/email-servers/{id}/test';
|
|
4386
|
+
};
|
|
4387
|
+
|
|
4388
|
+
export type EmailServersTestErrors = {
|
|
4389
|
+
/**
|
|
4390
|
+
* Validation error. Request shape did not match the spec.
|
|
4391
|
+
*/
|
|
4392
|
+
400: ApiErrorEnvelope;
|
|
4393
|
+
/**
|
|
4394
|
+
* Missing or invalid API key
|
|
4395
|
+
*/
|
|
4396
|
+
401: ApiErrorEnvelope;
|
|
4397
|
+
/**
|
|
4398
|
+
* API key lacks required scope
|
|
4399
|
+
*/
|
|
4400
|
+
403: ApiErrorEnvelope;
|
|
4401
|
+
/**
|
|
4402
|
+
* Resource not found
|
|
4403
|
+
*/
|
|
4404
|
+
404: ApiErrorEnvelope;
|
|
4405
|
+
/**
|
|
4406
|
+
* Conflict. The resource is in a state that forbids the request.
|
|
4407
|
+
*/
|
|
4408
|
+
409: ApiErrorEnvelope;
|
|
4409
|
+
/**
|
|
4410
|
+
* Payload too large. Upload exceeded the per-request size cap.
|
|
4411
|
+
*/
|
|
4412
|
+
413: ApiErrorEnvelope;
|
|
4413
|
+
/**
|
|
4414
|
+
* Rate limit exceeded
|
|
4415
|
+
*/
|
|
4416
|
+
429: ApiErrorEnvelope;
|
|
4417
|
+
/**
|
|
4418
|
+
* Internal server error
|
|
4419
|
+
*/
|
|
4420
|
+
500: ApiErrorEnvelope;
|
|
4421
|
+
};
|
|
4422
|
+
|
|
4423
|
+
export type EmailServersTestError = EmailServersTestErrors[keyof EmailServersTestErrors];
|
|
4424
|
+
|
|
4425
|
+
export type EmailServersTestResponses = {
|
|
4426
|
+
/**
|
|
4427
|
+
* Test send result
|
|
4428
|
+
*/
|
|
4429
|
+
200: TestEmailServerResponse;
|
|
4430
|
+
};
|
|
4431
|
+
|
|
4432
|
+
export type EmailServersTestResponse = EmailServersTestResponses[keyof EmailServersTestResponses];
|
|
4433
|
+
|
|
3990
4434
|
export type ExperimentsResolveData = {
|
|
3991
4435
|
body?: never;
|
|
3992
4436
|
path: {
|
package/src/index.ts
CHANGED
|
@@ -41,6 +41,7 @@ export {
|
|
|
41
41
|
|
|
42
42
|
export { toFile } from './lib/files';
|
|
43
43
|
export type { FileDescriptor, FileInput, NodeReadableStream } from './lib/files';
|
|
44
|
+
export type { ListEmailServersOptions } from './resources/email-servers';
|
|
44
45
|
export type { ListRunsOptions, RunExpand, RunExpandSection } from './resources/runs';
|
|
45
46
|
|
|
46
47
|
// Re-export the canonical generated types so users can type their own
|
|
@@ -55,12 +56,18 @@ export type {
|
|
|
55
56
|
AutomationTriggersResponse,
|
|
56
57
|
AutomationVersion,
|
|
57
58
|
CreateAutomationVersionRequest,
|
|
59
|
+
CreateEmailServerRequest,
|
|
60
|
+
DeleteEmailServerResponse,
|
|
61
|
+
EmailServer,
|
|
58
62
|
ExecutionStatus,
|
|
59
63
|
File,
|
|
64
|
+
ListEmailServersResponse,
|
|
60
65
|
ListModelsResponse,
|
|
61
66
|
PublicModel,
|
|
62
67
|
PublicModelCost,
|
|
63
68
|
PublicModelLimits,
|
|
69
|
+
PublicResendEmailServer,
|
|
70
|
+
PublicSmtpEmailServer,
|
|
64
71
|
RestoreAutomationVersionRequest,
|
|
65
72
|
Run,
|
|
66
73
|
RunAccepted,
|
|
@@ -87,4 +94,7 @@ export type {
|
|
|
87
94
|
RunsTraceGetResponse,
|
|
88
95
|
Template,
|
|
89
96
|
TemplateRevision,
|
|
97
|
+
TestEmailServerRequest,
|
|
98
|
+
TestEmailServerResponse,
|
|
99
|
+
UpdateEmailServerRequest,
|
|
90
100
|
} from './generated/types.gen';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { OperationResult } from '../client';
|
|
2
|
+
import type { Client } from '../generated/client';
|
|
3
|
+
import {
|
|
4
|
+
emailServersCreate,
|
|
5
|
+
emailServersDelete,
|
|
6
|
+
emailServersGet,
|
|
7
|
+
emailServersList,
|
|
8
|
+
emailServersTest,
|
|
9
|
+
emailServersUpdate,
|
|
10
|
+
} from '../generated/sdk.gen';
|
|
11
|
+
import type {
|
|
12
|
+
CreateEmailServerRequest,
|
|
13
|
+
DeleteEmailServerResponse,
|
|
14
|
+
EmailServer,
|
|
15
|
+
EmailServersListData,
|
|
16
|
+
ListEmailServersResponse,
|
|
17
|
+
TestEmailServerRequest,
|
|
18
|
+
TestEmailServerResponse,
|
|
19
|
+
UpdateEmailServerRequest,
|
|
20
|
+
} from '../generated/types.gen';
|
|
21
|
+
|
|
22
|
+
type Dispatch = <T>(call: () => Promise<OperationResult<T>>) => Promise<T>;
|
|
23
|
+
type SignalOptions = { signal?: AbortSignal };
|
|
24
|
+
|
|
25
|
+
export type ListEmailServersOptions = NonNullable<EmailServersListData['query']> & SignalOptions;
|
|
26
|
+
|
|
27
|
+
export class EmailServersResource {
|
|
28
|
+
constructor(
|
|
29
|
+
private readonly client: Client,
|
|
30
|
+
private readonly dispatch: Dispatch
|
|
31
|
+
) {}
|
|
32
|
+
|
|
33
|
+
async list(options: ListEmailServersOptions = {}): Promise<ListEmailServersResponse> {
|
|
34
|
+
const { signal, ...query } = options;
|
|
35
|
+
return this.dispatch(() =>
|
|
36
|
+
emailServersList({
|
|
37
|
+
client: this.client,
|
|
38
|
+
query,
|
|
39
|
+
signal,
|
|
40
|
+
})
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
async get(id: string, options: SignalOptions = {}): Promise<EmailServer> {
|
|
45
|
+
return this.dispatch(() =>
|
|
46
|
+
emailServersGet({ client: this.client, path: { id }, signal: options.signal })
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async create(body: CreateEmailServerRequest, options: SignalOptions = {}): Promise<EmailServer> {
|
|
51
|
+
return this.dispatch(() =>
|
|
52
|
+
emailServersCreate({
|
|
53
|
+
client: this.client,
|
|
54
|
+
body,
|
|
55
|
+
signal: options.signal,
|
|
56
|
+
})
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async update(
|
|
61
|
+
id: string,
|
|
62
|
+
body: UpdateEmailServerRequest,
|
|
63
|
+
options: SignalOptions = {}
|
|
64
|
+
): Promise<EmailServer> {
|
|
65
|
+
return this.dispatch(() =>
|
|
66
|
+
emailServersUpdate({
|
|
67
|
+
client: this.client,
|
|
68
|
+
path: { id },
|
|
69
|
+
body,
|
|
70
|
+
signal: options.signal,
|
|
71
|
+
})
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async delete(id: string, options: SignalOptions = {}): Promise<DeleteEmailServerResponse> {
|
|
76
|
+
return this.dispatch(() =>
|
|
77
|
+
emailServersDelete({ client: this.client, path: { id }, signal: options.signal })
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
async test(
|
|
82
|
+
id: string,
|
|
83
|
+
body: TestEmailServerRequest,
|
|
84
|
+
options: SignalOptions = {}
|
|
85
|
+
): Promise<TestEmailServerResponse> {
|
|
86
|
+
return this.dispatch(() =>
|
|
87
|
+
emailServersTest({
|
|
88
|
+
client: this.client,
|
|
89
|
+
path: { id },
|
|
90
|
+
body,
|
|
91
|
+
signal: options.signal,
|
|
92
|
+
})
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
}
|
package/src/telemetry.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
export const SDK_LANGUAGE = 'typescript';
|
|
20
20
|
// Rewritten at publish time by scripts/release/platform/render-sdk-versions.sh.
|
|
21
21
|
// Keep this string literal exactly stable — sed matches on it.
|
|
22
|
-
export const SDK_VERSION = '0.
|
|
22
|
+
export const SDK_VERSION = '0.16.0';
|
|
23
23
|
|
|
24
24
|
function detectRuntime(): string {
|
|
25
25
|
const g = globalThis as unknown as {
|