public class AIApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url| Constructor and Description |
|---|
AIApi(Credentials credentials) |
AIApi(Credentials credentials,
ClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
ResponseObject<AiFileTranslation> |
addAiFileTranslation(java.lang.Long userId,
AiFileTranslationAddRequest request) |
ResponseObject<AiPrompt> |
addAiPrompt(java.lang.Long userId,
AiPromptAddRequest request) |
ResponseObject<AiProvider> |
addAiProviders(java.lang.Long userId,
AiProviderRequest request) |
ResponseObject<CustomPlaceholder> |
addAiSnippet(java.lang.Long userId,
CustomPlaceholderRequest request) |
ResponseObject<CustomPlaceholder> |
addCustomPlaceholder(java.lang.Long userId,
CustomPlaceholderRequest request)
Deprecated.
deprecated in the API, use
addAiSnippet(Long, CustomPlaceholderRequest) instead |
void |
aiGatewayDelete(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path)
Deprecated.
the gateway returns the raw provider response, which this method discards;
use
aiGatewayDeleteRaw(Long, Long, String) instead |
java.lang.Object |
aiGatewayDeleteJson(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path)
Sends a DELETE request through the AI gateway and returns the provider response body as any JSON value.
|
java.util.Map<java.lang.String,java.lang.Object> |
aiGatewayDeleteRaw(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path)
Sends a DELETE request through the AI gateway and returns the raw provider response body.
|
ResponseObject<java.util.Map<java.lang.String,java.lang.Object>> |
aiGatewayGet(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path)
Deprecated.
the gateway response is not wrapped in
data, so this method cannot return it;
use aiGatewayGetRaw(Long, Long, String) instead |
java.lang.Object |
aiGatewayGetJson(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path)
Sends a GET request through the AI gateway and returns the provider response body as any JSON value.
|
java.util.Map<java.lang.String,java.lang.Object> |
aiGatewayGetRaw(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path)
Sends a GET request through the AI gateway and returns the raw provider response body.
|
ResponseObject<java.util.Map<java.lang.String,java.lang.Object>> |
aiGatewayPatch(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
Deprecated.
the gateway response is not wrapped in
data, so this method cannot return it;
use aiGatewayPatchRaw(Long, Long, String, Map) instead |
java.lang.Object |
aiGatewayPatchJson(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
Sends a PATCH request through the AI gateway and returns the provider response body as any JSON value.
|
java.util.Map<java.lang.String,java.lang.Object> |
aiGatewayPatchRaw(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
Sends a PATCH request through the AI gateway and returns the raw provider response body.
|
ResponseObject<java.util.Map<java.lang.String,java.lang.Object>> |
aiGatewayPost(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
Deprecated.
the gateway response is not wrapped in
data, so this method cannot return it;
use aiGatewayPostRaw(Long, Long, String, Map) instead |
java.lang.Object |
aiGatewayPostJson(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
Sends a POST request through the AI gateway and returns the provider response body as any JSON value.
|
java.util.Map<java.lang.String,java.lang.Object> |
aiGatewayPostRaw(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
Sends a POST request through the AI gateway and returns the raw provider response body.
|
ResponseObject<java.util.Map<java.lang.String,java.lang.Object>> |
aiGatewayPut(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
Deprecated.
the gateway response is not wrapped in
data, so this method cannot return it;
use aiGatewayPutRaw(Long, Long, String, Map) instead |
java.lang.Object |
aiGatewayPutJson(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
Sends a PUT request through the AI gateway and returns the provider response body as any JSON value.
|
java.util.Map<java.lang.String,java.lang.Object> |
aiGatewayPutRaw(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
Sends a PUT request through the AI gateway and returns the raw provider response body.
|
ResponseObject<AiTranslate> |
aiTranslateStrings(java.lang.Long userId,
AiTranslateRequest request) |
void |
cancelAiFileTranslation(java.lang.Long userId,
java.lang.String jobIdentifier) |
void |
cancelPromptCompletion(java.lang.Long userId,
long aiPromptId,
java.lang.String completionId) |
ResponseObject<AiReportGenerate> |
checkAiReportGenerationStatus(java.lang.Long userId,
java.lang.String aiReportId) |
ResponseObject<AiRequestLogExport> |
checkAiRequestLogsExportStatus(java.lang.Long userId,
java.lang.String exportId) |
ResponseObject<AiPrompt> |
cloneAiPrompt(java.lang.Long userId,
long aiPromptId,
AiPromptCloneRequest request) |
ResponseObject<FineTuningJob> |
createFineTuningJob(java.lang.Long userId,
java.lang.Long aiPromptId,
FineTuningJobRequest request) |
ResponseObject<java.util.Map<java.lang.String,java.lang.Object>> |
createProxyChatCompletion(java.lang.Long userId,
java.lang.Long aiProviderId,
java.util.Map<java.lang.String,java.lang.Object> request) |
void |
deleteAiPrompt(java.lang.Long userId,
long aiPromptId) |
void |
deleteAiProvider(java.lang.Long userId,
java.lang.Long aiProviderId) |
void |
deleteAiSnippet(java.lang.Long userId,
long aiSnippetId) |
void |
deleteCustomPlaceholder(java.lang.Long userId,
long aiCustomPlaceholderId)
Deprecated.
deprecated in the API, use
deleteAiSnippet(Long, long) instead |
ResponseObject<DownloadLink> |
downloadAiFileTranslation(java.lang.Long userId,
java.lang.String jobIdentifier) |
ResponseObject<DownloadLink> |
downloadAiFileTranslationStrings(java.lang.Long userId,
java.lang.String jobIdentifier) |
ResponseObject<DownloadLink> |
downloadAiReport(java.lang.Long userId,
java.lang.String reportId) |
ResponseObject<DownloadLink> |
downloadAiRequestLogsExport(java.lang.Long userId,
java.lang.String exportId) |
ResponseObject<FineTuningDatasetDownload> |
downloadFineTuningDataset(java.lang.Long userId,
long aiPromptId,
java.lang.String jobIdentifier) |
ResponseObject<DownloadLink> |
downloadPromptCompletion(java.lang.Long userId,
long aiPromptId,
java.lang.String completionId) |
ResponseObject<AiPrompt> |
editAiPrompt(java.lang.Long userId,
long aiPromptId,
java.util.List<PatchRequest> request) |
ResponseObject<AiProvider> |
editAiProvider(java.lang.Long userId,
java.lang.Long aiProviderId,
java.util.List<PatchRequest> requests) |
ResponseObject<AiSetting> |
editAiSetting(java.lang.Long userId,
java.util.List<PatchRequest> request) |
ResponseObject<CustomPlaceholder> |
editAiSnippet(java.lang.Long userId,
long aiSnippetId,
java.util.List<PatchRequest> request) |
ResponseObject<CustomPlaceholder> |
editCustomPlaceholder(java.lang.Long userId,
long aiCustomPlaceholderId,
java.util.List<PatchRequest> request)
Deprecated.
deprecated in the API, use
editAiSnippet(Long, long, List) instead |
ResponseObject<AiRequestLogExport> |
exportAiRequestLogs(java.lang.Long userId,
AiRequestLogExportRequest request) |
ResponseObject<AiReportGenerate> |
generateAiReport(java.lang.Long userId,
GenerateAiReportRequest request) |
ResponseObject<FineTuningDatasetResponse.FineTuningDatasetData> |
generateFineTuningDataset(java.lang.Long userId,
java.lang.Long aiPromptId,
FineTuningDatasetRequest request) |
ResponseObject<AiPromptCompletionResponse.AiPromptCompletionData> |
generatePromptCompletion(java.lang.Long userId,
long aiPromptId,
AiPromptCompletionRequest request) |
ResponseObject<AiFileTranslation> |
getAiFileTranslationStatus(java.lang.Long userId,
java.lang.String jobIdentifier) |
ResponseObject<AiPrompt> |
getAiPrompt(java.lang.Long userId,
long aiPromptId) |
ResponseObject<AiProvider> |
getAiProvider(java.lang.Long userId,
java.lang.Long aiProviderId) |
ResponseObject<AiSetting> |
getAiSetting(java.lang.Long userId) |
ResponseObject<CustomPlaceholder> |
getAiSnippet(java.lang.Long userId,
long aiSnippetId) |
ResponseObject<AiUsageMember> |
getAiUsageMember(java.lang.Long userId,
java.lang.Long memberId) |
ResponseObject<CustomPlaceholder> |
getCustomPlaceholder(java.lang.Long userId,
long aiCustomPlaceholderId)
Deprecated.
deprecated in the API, use
getAiSnippet(Long, long) instead |
ResponseObject<FineTuningDatasetResponse.FineTuningDatasetData> |
getFineTuningDatasetGenerationStatus(java.lang.Long userId,
java.lang.Long aiPromptId,
java.lang.String jobIdentifier) |
ResponseList<FineTuningEvent> |
getFineTuningEventList(java.lang.Long userId,
java.lang.Long aiPromptId,
java.lang.String jobIdentifier) |
ResponseList<FineTuningJob> |
getFineTuningJobList(java.lang.Long userId,
java.lang.Integer limit,
java.lang.Integer offset,
java.lang.String statuses,
java.lang.String orderBy) |
ResponseObject<FineTuningJob> |
getFineTuningJobStatus(java.lang.Long userId,
java.lang.Long aiPromptId,
java.lang.String jobIdentifier) |
ResponseObject<ProjectAiSettings> |
getProjectAiSettings(java.lang.Long projectId) |
ResponseObject<AiPromptCompletionResponse.AiPromptCompletionData> |
getPromptCompletionStatus(java.lang.Long userId,
long aiPromptId,
java.lang.String completionId) |
ResponseList<AiPrompt> |
listAiPrompts(java.lang.Long userId,
java.lang.Long projectId,
java.lang.String action,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<AiProviderModel> |
listAiProviderModels(java.lang.Long userId,
java.lang.Long aiProviderId) |
ResponseList<AiProvider> |
listAiProviders(java.lang.Long userId,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<AiRequestLog> |
listAiRequestLogs(java.lang.Long userId,
ListAiRequestLogsParams params) |
ResponseList<CustomPlaceholder> |
listAiSnippets(java.lang.Long userId,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<AiUsageMember> |
listAiUsageMembers(java.lang.Long userId,
java.lang.Integer limit,
java.lang.Integer offset,
java.util.List<java.lang.Long> userIds,
java.lang.String orderBy) |
ResponseList<AiProviderModel> |
listAllAiProviderModels(java.lang.Long userId)
List models of all AI providers available to the user (not paginated).
|
ResponseList<CustomPlaceholder> |
listCustomPlaceholders(java.lang.Long userId,
java.lang.Integer limit,
java.lang.Integer offset)
Deprecated.
deprecated in the API, use
listAiSnippets(Long, Integer, Integer) instead |
ResponseList<AiSupportedModel> |
listSupportedAiProviderModels(java.lang.Long userId,
java.lang.Integer limit,
java.lang.Integer offset,
java.lang.String providerType,
java.lang.Boolean enabled,
java.lang.String orderBy) |
graphql, graphqlpublic AIApi(Credentials credentials)
public AIApi(Credentials credentials, ClientConfig clientConfig)
@Deprecated public ResponseList<CustomPlaceholder> listCustomPlaceholders(java.lang.Long userId, java.lang.Integer limit, java.lang.Integer offset)
listAiSnippets(Long, Integer, Integer) insteaduserId - user identifierlimit - query limitoffset - query offset@Deprecated public ResponseObject<CustomPlaceholder> addCustomPlaceholder(java.lang.Long userId, CustomPlaceholderRequest request)
addAiSnippet(Long, CustomPlaceholderRequest) insteaduserId - user identifierrequest - request@Deprecated public ResponseObject<CustomPlaceholder> getCustomPlaceholder(java.lang.Long userId, long aiCustomPlaceholderId)
getAiSnippet(Long, long) insteaduserId - user identifieraiCustomPlaceholderId - aiCustomPlaceholderId identifier@Deprecated
public void deleteCustomPlaceholder(java.lang.Long userId,
long aiCustomPlaceholderId)
deleteAiSnippet(Long, long) insteaduserId - user identifieraiCustomPlaceholderId - aiCustomPlaceholderId identifier@Deprecated public ResponseObject<CustomPlaceholder> editCustomPlaceholder(java.lang.Long userId, long aiCustomPlaceholderId, java.util.List<PatchRequest> request)
editAiSnippet(Long, long, List) insteaduserId - user identifieraiCustomPlaceholderId - aiCustomPlaceholderId identifierrequest - requestpublic ResponseList<CustomPlaceholder> listAiSnippets(java.lang.Long userId, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
userId - user identifier; should be null for Crowdin Enterpriselimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)HttpExceptionHttpBadRequestExceptionpublic ResponseObject<CustomPlaceholder> addAiSnippet(java.lang.Long userId, CustomPlaceholderRequest request) throws HttpException, HttpBadRequestException
userId - user identifier; should be null for Crowdin Enterpriserequest - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseObject<CustomPlaceholder> getAiSnippet(java.lang.Long userId, long aiSnippetId) throws HttpException, HttpBadRequestException
userId - user identifier; should be null for Crowdin EnterpriseaiSnippetId - AI snippet identifierHttpExceptionHttpBadRequestExceptionpublic void deleteAiSnippet(java.lang.Long userId,
long aiSnippetId)
throws HttpException,
HttpBadRequestException
userId - user identifier; should be null for Crowdin EnterpriseaiSnippetId - AI snippet identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<CustomPlaceholder> editAiSnippet(java.lang.Long userId, long aiSnippetId, java.util.List<PatchRequest> request) throws HttpException, HttpBadRequestException
userId - user identifier; should be null for Crowdin EnterpriseaiSnippetId - AI snippet identifierrequest - list of patch operationsHttpExceptionHttpBadRequestExceptionpublic ResponseObject<FineTuningDatasetResponse.FineTuningDatasetData> getFineTuningDatasetGenerationStatus(java.lang.Long userId, java.lang.Long aiPromptId, java.lang.String jobIdentifier)
userId - user identifieraiPromptId - AI prompt identifierjobIdentifier - AI prompt fine-tuning dataset generation identifier, consists of 36 characterspublic ResponseObject<FineTuningDatasetResponse.FineTuningDatasetData> generateFineTuningDataset(java.lang.Long userId, java.lang.Long aiPromptId, FineTuningDatasetRequest request)
userId - user identifieraiPromptId - AI prompt identifierrequest - request bodypublic ResponseList<FineTuningEvent> getFineTuningEventList(java.lang.Long userId, java.lang.Long aiPromptId, java.lang.String jobIdentifier)
userId - user identifieraiPromptId - AI prompt identifierjobIdentifier - AI prompt fine-tuning dataset generation identifier, consists of 36 characterspublic ResponseList<FineTuningJob> getFineTuningJobList(java.lang.Long userId, java.lang.Integer limit, java.lang.Integer offset, java.lang.String statuses, java.lang.String orderBy)
userId - user identifierpublic ResponseObject<FineTuningJob> createFineTuningJob(java.lang.Long userId, java.lang.Long aiPromptId, FineTuningJobRequest request)
userId - user identifieraiPromptId - AI prompt identifierrequest - request bodypublic ResponseObject<FineTuningJob> getFineTuningJobStatus(java.lang.Long userId, java.lang.Long aiPromptId, java.lang.String jobIdentifier)
userId - user identifieraiPromptId - AI prompt identifierjobIdentifier - AI prompt fine-tuning dataset generation identifier, consists of 36 characterspublic ResponseObject<FineTuningDatasetDownload> downloadFineTuningDataset(java.lang.Long userId, long aiPromptId, java.lang.String jobIdentifier)
userId - user identifieraiPromptId - AI prompt identifierjobIdentifier - AI prompt fine-tuning dataset generation identifier, consists of 36 characterspublic ResponseObject<AiPrompt> cloneAiPrompt(java.lang.Long userId, long aiPromptId, AiPromptCloneRequest request)
userId - user identifieraiPromptId - AI prompt identifierrequest - requestpublic ResponseList<AiPrompt> listAiPrompts(java.lang.Long userId, java.lang.Long projectId, java.lang.String action, java.lang.Integer limit, java.lang.Integer offset)
userId - user identifierprojectId - project identifieraction - actionlimit - query limitoffset - query offsetpublic ResponseObject<AiPrompt> addAiPrompt(java.lang.Long userId, AiPromptAddRequest request)
userId - user identifierrequest - requestpublic ResponseObject<AiPromptCompletionResponse.AiPromptCompletionData> generatePromptCompletion(java.lang.Long userId, long aiPromptId, AiPromptCompletionRequest request)
userId - user identifieraiPromptId - aiPrompt identifierrequest - requestpublic ResponseObject<AiPromptCompletionResponse.AiPromptCompletionData> getPromptCompletionStatus(java.lang.Long userId, long aiPromptId, java.lang.String completionId)
userId - user identifieraiPromptId - aiPrompt identifiercompletionId - completion identifierpublic void cancelPromptCompletion(java.lang.Long userId,
long aiPromptId,
java.lang.String completionId)
userId - user identifieraiPromptId - aiPrompt identifiercompletionId - completion identifierpublic ResponseObject<DownloadLink> downloadPromptCompletion(java.lang.Long userId, long aiPromptId, java.lang.String completionId)
userId - user identifieraiPromptId - aiPrompt identifiercompletionId - completion identifierpublic ResponseObject<AiPrompt> getAiPrompt(java.lang.Long userId, long aiPromptId)
userId - user identifieraiPromptId - aiPrompt identifierpublic void deleteAiPrompt(java.lang.Long userId,
long aiPromptId)
userId - user identifieraiPromptId - aiPrompt identifierpublic ResponseObject<AiPrompt> editAiPrompt(java.lang.Long userId, long aiPromptId, java.util.List<PatchRequest> request)
userId - user identifieraiPromptId - aiPrompt identifierrequest - requestpublic ResponseObject<AiReportGenerate> generateAiReport(java.lang.Long userId, GenerateAiReportRequest request) throws HttpException, HttpBadRequestException
userId - user identifierrequest - request objectHttpExceptionHttpBadRequestExceptionpublic ResponseObject<AiReportGenerate> checkAiReportGenerationStatus(java.lang.Long userId, java.lang.String aiReportId) throws HttpException, HttpBadRequestException
userId - user identifieraiReportId - AI report identifier, consists of 36 charactersHttpExceptionHttpBadRequestExceptionpublic ResponseObject<DownloadLink> downloadAiReport(java.lang.Long userId, java.lang.String reportId) throws HttpException, HttpBadRequestException
userId - user identifierreportId - AI report identifier, consists of 36 charactersHttpExceptionHttpBadRequestExceptionpublic ResponseList<AiRequestLog> listAiRequestLogs(java.lang.Long userId, ListAiRequestLogsParams params) throws HttpException, HttpBadRequestException
userId - user identifier; should be null for Crowdin Enterpriseparams - query parametersHttpExceptionHttpBadRequestExceptionpublic ResponseObject<AiSetting> getAiSetting(java.lang.Long userId)
userId - user identifierpublic ResponseObject<AiSetting> editAiSetting(java.lang.Long userId, java.util.List<PatchRequest> request)
userId - user identifierpublic ResponseList<AiProvider> listAiProviders(java.lang.Long userId, java.lang.Integer limit, java.lang.Integer offset)
userId - user identifierlimit - limitoffset - offsetpublic ResponseObject<AiProvider> addAiProviders(java.lang.Long userId, AiProviderRequest request)
userId - user identifierrequest - AiProviderJobRequestpublic ResponseObject<AiProvider> getAiProvider(java.lang.Long userId, java.lang.Long aiProviderId)
userId - user identifieraiProviderId - id of AiProviderpublic void deleteAiProvider(java.lang.Long userId,
java.lang.Long aiProviderId)
userId - user identifieraiProviderId - id of AiProviderpublic ResponseObject<AiProvider> editAiProvider(java.lang.Long userId, java.lang.Long aiProviderId, java.util.List<PatchRequest> requests)
userId - user identifieraiProviderId - id of AiProviderrequests - list of PatchRequestpublic ResponseList<AiProviderModel> listAiProviderModels(java.lang.Long userId, java.lang.Long aiProviderId)
userId - user identifieraiProviderId - id of AiProviderpublic ResponseList<AiProviderModel> listAllAiProviderModels(java.lang.Long userId) throws HttpException, HttpBadRequestException
userId - user identifier; should be null for Crowdin EnterpriseHttpExceptionHttpBadRequestExceptionpublic ResponseObject<java.util.Map<java.lang.String,java.lang.Object>> createProxyChatCompletion(java.lang.Long userId, java.lang.Long aiProviderId, java.util.Map<java.lang.String,java.lang.Object> request)
userId - user identifieraiProviderId - id of AiProviderrequest - requestpublic ResponseList<AiSupportedModel> listSupportedAiProviderModels(java.lang.Long userId, java.lang.Integer limit, java.lang.Integer offset, java.lang.String providerType, java.lang.Boolean enabled, java.lang.String orderBy) throws HttpException, HttpBadRequestException
userId - user identifierlimit - maximum numbers of items to retrieve (default 25)offset - starting offset in the collection (default 0)providerType - provider (e.g. open_ai)enabled - filter by enabled providersorderBy - HttpExceptionHttpBadRequestExceptionpublic ResponseObject<AiTranslate> aiTranslateStrings(java.lang.Long userId, AiTranslateRequest request)
userId - user identifierrequest - AiTranslateRequest@Deprecated public ResponseObject<java.util.Map<java.lang.String,java.lang.Object>> aiGatewayGet(java.lang.Long userId, java.lang.Long aiProviderId, java.lang.String path)
data, so this method cannot return it;
use aiGatewayGetRaw(Long, Long, String) insteaduserId - user identifieraiProviderId - id of AiProviderpath - downstream endpoint path (e.g. chat/completions)data property of the provider response (usually null), since the gateway response has no data wrapperpublic ResponseObject<AiFileTranslation> addAiFileTranslation(java.lang.Long userId, AiFileTranslationAddRequest request)
userId - user identifierrequest - request body@Deprecated public ResponseObject<java.util.Map<java.lang.String,java.lang.Object>> aiGatewayPost(java.lang.Long userId, java.lang.Long aiProviderId, java.lang.String path, java.util.Map<java.lang.String,java.lang.Object> request)
data, so this method cannot return it;
use aiGatewayPostRaw(Long, Long, String, Map) insteaduserId - user identifieraiProviderId - id of AiProviderpath - downstream endpoint pathrequest - request bodydata property of the provider response (usually null), since the gateway response has no data wrapperpublic ResponseObject<AiFileTranslation> getAiFileTranslationStatus(java.lang.Long userId, java.lang.String jobIdentifier)
userId - user identifierjobIdentifier - AI file translation job identifier@Deprecated public ResponseObject<java.util.Map<java.lang.String,java.lang.Object>> aiGatewayPut(java.lang.Long userId, java.lang.Long aiProviderId, java.lang.String path, java.util.Map<java.lang.String,java.lang.Object> request)
data, so this method cannot return it;
use aiGatewayPutRaw(Long, Long, String, Map) insteaduserId - user identifieraiProviderId - id of AiProviderpath - downstream endpoint pathrequest - request bodydata property of the provider response (usually null), since the gateway response has no data wrapperpublic void cancelAiFileTranslation(java.lang.Long userId,
java.lang.String jobIdentifier)
userId - user identifierjobIdentifier - AI file translation job identifier@Deprecated
public void aiGatewayDelete(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path)
aiGatewayDeleteRaw(Long, Long, String) insteaduserId - user identifieraiProviderId - id of AiProviderpath - downstream endpoint pathpublic ResponseObject<DownloadLink> downloadAiFileTranslation(java.lang.Long userId, java.lang.String jobIdentifier)
userId - user identifierjobIdentifier - AI file translation job identifierpublic ResponseObject<DownloadLink> downloadAiFileTranslationStrings(java.lang.Long userId, java.lang.String jobIdentifier)
userId - user identifierjobIdentifier - AI file translation job identifier@Deprecated public ResponseObject<java.util.Map<java.lang.String,java.lang.Object>> aiGatewayPatch(java.lang.Long userId, java.lang.Long aiProviderId, java.lang.String path, java.util.Map<java.lang.String,java.lang.Object> request)
data, so this method cannot return it;
use aiGatewayPatchRaw(Long, Long, String, Map) insteaduserId - user identifieraiProviderId - id of AiProviderpath - downstream endpoint pathrequest - request bodydata property of the provider response (usually null), since the gateway response has no data wrapperpublic java.util.Map<java.lang.String,java.lang.Object> aiGatewayGetRaw(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path)
throws HttpException,
HttpBadRequestException
aiGatewayGetJson(java.lang.Long, java.lang.Long, java.lang.String).userId - user identifier; should be null for Crowdin EnterpriseaiProviderId - id of AiProviderpath - downstream endpoint path (e.g. models)HttpExceptionHttpBadRequestExceptionpublic java.util.Map<java.lang.String,java.lang.Object> aiGatewayPostRaw(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
throws HttpException,
HttpBadRequestException
aiGatewayPostJson(java.lang.Long, java.lang.Long, java.lang.String, java.util.Map<java.lang.String, java.lang.Object>).userId - user identifier; should be null for Crowdin EnterpriseaiProviderId - id of AiProviderpath - downstream endpoint path (e.g. chat/completions)request - raw provider request bodyHttpExceptionHttpBadRequestExceptionpublic java.util.Map<java.lang.String,java.lang.Object> aiGatewayPutRaw(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
throws HttpException,
HttpBadRequestException
aiGatewayPutJson(java.lang.Long, java.lang.Long, java.lang.String, java.util.Map<java.lang.String, java.lang.Object>).userId - user identifier; should be null for Crowdin EnterpriseaiProviderId - id of AiProviderpath - downstream endpoint pathrequest - raw provider request bodyHttpExceptionHttpBadRequestExceptionpublic java.util.Map<java.lang.String,java.lang.Object> aiGatewayPatchRaw(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
throws HttpException,
HttpBadRequestException
aiGatewayPatchJson(java.lang.Long, java.lang.Long, java.lang.String, java.util.Map<java.lang.String, java.lang.Object>).userId - user identifier; should be null for Crowdin EnterpriseaiProviderId - id of AiProviderpath - downstream endpoint pathrequest - raw provider request bodyHttpExceptionHttpBadRequestExceptionpublic java.util.Map<java.lang.String,java.lang.Object> aiGatewayDeleteRaw(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path)
throws HttpException,
HttpBadRequestException
aiGatewayDeleteJson(java.lang.Long, java.lang.Long, java.lang.String).userId - user identifier; should be null for Crowdin EnterpriseaiProviderId - id of AiProviderpath - downstream endpoint pathHttpExceptionHttpBadRequestExceptionpublic java.lang.Object aiGatewayGetJson(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path)
throws HttpException,
HttpBadRequestException
The AI gateway is a transparent proxy, so the response format depends on the provider and endpoint. The whole body is read into memory: streamed responses (e.g. server-sent events) and non-JSON bodies are not supported, and an HTTP 204 (No Content) response cannot be read by the default HTTP client.
userId - user identifier; should be null for Crowdin EnterpriseaiProviderId - id of AiProviderpath - downstream endpoint path (e.g. models)Map for an object, List for an array,
String, Number or Boolean for a scalar, null for JSON null or an empty bodyHttpException - if the request fails or the response body is not valid JSONHttpBadRequestExceptionpublic java.lang.Object aiGatewayPostJson(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
throws HttpException,
HttpBadRequestException
The AI gateway is a transparent proxy, so the response format depends on the provider and endpoint. The whole body is read into memory: streamed responses (e.g. server-sent events) and non-JSON bodies are not supported, and an HTTP 204 (No Content) response cannot be read by the default HTTP client.
userId - user identifier; should be null for Crowdin EnterpriseaiProviderId - id of AiProviderpath - downstream endpoint path (e.g. models)request - request body sent to the providerMap for an object, List for an array,
String, Number or Boolean for a scalar, null for JSON null or an empty bodyHttpException - if the request fails or the response body is not valid JSONHttpBadRequestExceptionpublic java.lang.Object aiGatewayPutJson(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
throws HttpException,
HttpBadRequestException
The AI gateway is a transparent proxy, so the response format depends on the provider and endpoint. The whole body is read into memory: streamed responses (e.g. server-sent events) and non-JSON bodies are not supported, and an HTTP 204 (No Content) response cannot be read by the default HTTP client.
userId - user identifier; should be null for Crowdin EnterpriseaiProviderId - id of AiProviderpath - downstream endpoint path (e.g. models)request - request body sent to the providerMap for an object, List for an array,
String, Number or Boolean for a scalar, null for JSON null or an empty bodyHttpException - if the request fails or the response body is not valid JSONHttpBadRequestExceptionpublic java.lang.Object aiGatewayPatchJson(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> request)
throws HttpException,
HttpBadRequestException
The AI gateway is a transparent proxy, so the response format depends on the provider and endpoint. The whole body is read into memory: streamed responses (e.g. server-sent events) and non-JSON bodies are not supported, and an HTTP 204 (No Content) response cannot be read by the default HTTP client.
userId - user identifier; should be null for Crowdin EnterpriseaiProviderId - id of AiProviderpath - downstream endpoint path (e.g. models)request - request body sent to the providerMap for an object, List for an array,
String, Number or Boolean for a scalar, null for JSON null or an empty bodyHttpException - if the request fails or the response body is not valid JSONHttpBadRequestExceptionpublic java.lang.Object aiGatewayDeleteJson(java.lang.Long userId,
java.lang.Long aiProviderId,
java.lang.String path)
throws HttpException,
HttpBadRequestException
The AI gateway is a transparent proxy, so the response format depends on the provider and endpoint. The whole body is read into memory: streamed responses (e.g. server-sent events) and non-JSON bodies are not supported, and an HTTP 204 (No Content) response cannot be read by the default HTTP client.
userId - user identifier; should be null for Crowdin EnterpriseaiProviderId - id of AiProviderpath - downstream endpoint path (e.g. models)Map for an object, List for an array,
String, Number or Boolean for a scalar, null for JSON null or an empty bodyHttpException - if the request fails or the response body is not valid JSONHttpBadRequestExceptionpublic ResponseObject<AiRequestLogExport> exportAiRequestLogs(java.lang.Long userId, AiRequestLogExportRequest request) throws HttpException, HttpBadRequestException
userId - user identifier; should be null for Crowdin Enterpriserequest - export filtersHttpExceptionHttpBadRequestExceptionpublic ResponseObject<AiRequestLogExport> checkAiRequestLogsExportStatus(java.lang.Long userId, java.lang.String exportId) throws HttpException, HttpBadRequestException
userId - user identifier; should be null for Crowdin EnterpriseexportId - AI request logs export identifier, consists of 36 charactersHttpExceptionHttpBadRequestExceptionpublic ResponseObject<DownloadLink> downloadAiRequestLogsExport(java.lang.Long userId, java.lang.String exportId) throws HttpException, HttpBadRequestException
userId - user identifier; should be null for Crowdin EnterpriseexportId - AI request logs export identifier, consists of 36 charactersHttpExceptionHttpBadRequestExceptionpublic ResponseList<AiUsageMember> listAiUsageMembers(java.lang.Long userId, java.lang.Integer limit, java.lang.Integer offset, java.util.List<java.lang.Long> userIds, java.lang.String orderBy) throws HttpException, HttpBadRequestException
userId - user identifier; should be null for Crowdin Enterpriselimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)userIds - filter by user identifiersorderBy - sorting rules, e.g. id descHttpExceptionHttpBadRequestExceptionpublic ResponseObject<AiUsageMember> getAiUsageMember(java.lang.Long userId, java.lang.Long memberId) throws HttpException, HttpBadRequestException
userId - user identifier; should be null for Crowdin EnterprisememberId - member (user) identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<ProjectAiSettings> getProjectAiSettings(java.lang.Long projectId) throws HttpException, HttpBadRequestException
projectId - project identifierHttpExceptionHttpBadRequestException