repo_name string | dataset string | owner string | lang string | func_name string | code string | docstring string | url string | sha string |
|---|---|---|---|---|---|---|---|---|
freechat | github_2023 | freechat-fun | typescript | PromptTaskApiResponseProcessor.deletePromptTaskWithHttpInfo | public async deletePromptTaskWithHttpInfo(response: ResponseContext): Promise<HttpInfo<boolean >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to deletePromptTask
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/PromptTaskApi.ts#L239-L259 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | PromptTaskApiResponseProcessor.getPromptTaskWithHttpInfo | public async getPromptTaskWithHttpInfo(response: ResponseContext): Promise<HttpInfo<PromptTaskDetailsDTO >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: PromptTaskDetailsDTO = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"PromptTaskDetailsDTO", ""
) as PromptTaskDetailsDTO;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: PromptTaskDetailsDTO = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"PromptTaskDetailsDTO", ""
) as PromptTaskDetailsDTO;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to getPromptTask
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/PromptTaskApi.ts#L268-L288 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | PromptTaskApiResponseProcessor.updatePromptTaskWithHttpInfo | public async updatePromptTaskWithHttpInfo(response: ResponseContext): Promise<HttpInfo<boolean >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to updatePromptTask
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/PromptTaskApi.ts#L297-L317 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiRequestFactory.cancelRagTask | public async cancelRagTask(taskId: number, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'taskId' is not null or undefined
if (taskId === null || taskId === undefined) {
throw new RequiredError("RagApi", "cancelRagTask", "taskId");
}
// Path Params
const localVarPath = '/api/v2/rag/task/cancel/{taskId}'
.replace('{' + 'taskId' + '}', encodeURIComponent(String(taskId)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["bearerAuth"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
} | /**
* Cancel a RAG task.
* Cancel RAG Task
* @param taskId The taskId to be canceled
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L24-L55 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiRequestFactory.createRagTask | public async createRagTask(characterUid: string, ragTaskDTO: RagTaskDTO, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'characterUid' is not null or undefined
if (characterUid === null || characterUid === undefined) {
throw new RequiredError("RagApi", "createRagTask", "characterUid");
}
// verify required parameter 'ragTaskDTO' is not null or undefined
if (ragTaskDTO === null || ragTaskDTO === undefined) {
throw new RequiredError("RagApi", "createRagTask", "ragTaskDTO");
}
// Path Params
const localVarPath = '/api/v2/rag/task/{characterUid}'
.replace('{' + 'characterUid' + '}', encodeURIComponent(String(characterUid)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(ragTaskDTO, "RagTaskDTO", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["bearerAuth"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
} | /**
* Create a RAG task.
* Create RAG Task
* @param characterUid The characterUid to be added a RAG task
* @param ragTaskDTO The RAG task to be added
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L63-L111 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiRequestFactory.deleteRagTask | public async deleteRagTask(taskId: number, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'taskId' is not null or undefined
if (taskId === null || taskId === undefined) {
throw new RequiredError("RagApi", "deleteRagTask", "taskId");
}
// Path Params
const localVarPath = '/api/v2/rag/task/{taskId}'
.replace('{' + 'taskId' + '}', encodeURIComponent(String(taskId)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["bearerAuth"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
} | /**
* Delete a RAG task.
* Delete RAG Task
* @param taskId The taskId to be deleted
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L118-L149 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiRequestFactory.getRagTask | public async getRagTask(taskId: number, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'taskId' is not null or undefined
if (taskId === null || taskId === undefined) {
throw new RequiredError("RagApi", "getRagTask", "taskId");
}
// Path Params
const localVarPath = '/api/v2/rag/task/{taskId}'
.replace('{' + 'taskId' + '}', encodeURIComponent(String(taskId)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["bearerAuth"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
} | /**
* Get the RAG task details.
* Get RAG Task
* @param taskId The taskId to be queried
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L156-L187 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiRequestFactory.getRagTaskStatus | public async getRagTaskStatus(taskId: number, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'taskId' is not null or undefined
if (taskId === null || taskId === undefined) {
throw new RequiredError("RagApi", "getRagTaskStatus", "taskId");
}
// Path Params
const localVarPath = '/api/v2/rag/task/status/{taskId}'
.replace('{' + 'taskId' + '}', encodeURIComponent(String(taskId)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["bearerAuth"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
} | /**
* Get the RAG task execution status: pending | running | succeeded | failed | canceled.
* Get RAG Task Status
* @param taskId The taskId to be queried status
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L194-L225 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiRequestFactory.listRagTasks | public async listRagTasks(characterUid: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'characterUid' is not null or undefined
if (characterUid === null || characterUid === undefined) {
throw new RequiredError("RagApi", "listRagTasks", "characterUid");
}
// Path Params
const localVarPath = '/api/v2/rag/tasks/{characterUid}'
.replace('{' + 'characterUid' + '}', encodeURIComponent(String(characterUid)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["bearerAuth"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
} | /**
* List the RAG tasks by characterId.
* List RAG Tasks
* @param characterUid The characterUid to be queried
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L232-L263 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiRequestFactory.startRagTask | public async startRagTask(taskId: number, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'taskId' is not null or undefined
if (taskId === null || taskId === undefined) {
throw new RequiredError("RagApi", "startRagTask", "taskId");
}
// Path Params
const localVarPath = '/api/v2/rag/task/start/{taskId}'
.replace('{' + 'taskId' + '}', encodeURIComponent(String(taskId)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["bearerAuth"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
} | /**
* Start a RAG task.
* Start RAG Task
* @param taskId The taskId to be started
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L270-L301 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiRequestFactory.updateRagTask | public async updateRagTask(taskId: number, ragTaskDTO: RagTaskDTO, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'taskId' is not null or undefined
if (taskId === null || taskId === undefined) {
throw new RequiredError("RagApi", "updateRagTask", "taskId");
}
// verify required parameter 'ragTaskDTO' is not null or undefined
if (ragTaskDTO === null || ragTaskDTO === undefined) {
throw new RequiredError("RagApi", "updateRagTask", "ragTaskDTO");
}
// Path Params
const localVarPath = '/api/v2/rag/task/{taskId}'
.replace('{' + 'taskId' + '}', encodeURIComponent(String(taskId)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
// Body Params
const contentType = ObjectSerializer.getPreferredMediaType([
"application/json"
]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = ObjectSerializer.stringify(
ObjectSerializer.serialize(ragTaskDTO, "RagTaskDTO", ""),
contentType
);
requestContext.setBody(serializedBody);
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["bearerAuth"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
} | /**
* Update a RAG task.
* Update RAG Task
* @param taskId The taskId to be updated
* @param ragTaskDTO The prompt task info to be updated
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L309-L357 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiResponseProcessor.cancelRagTaskWithHttpInfo | public async cancelRagTaskWithHttpInfo(response: ResponseContext): Promise<HttpInfo<boolean >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to cancelRagTask
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L370-L390 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiResponseProcessor.createRagTaskWithHttpInfo | public async createRagTaskWithHttpInfo(response: ResponseContext): Promise<HttpInfo<number >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: number = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"number", "int64"
) as number;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: number = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"number", "int64"
) as number;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to createRagTask
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L399-L419 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiResponseProcessor.deleteRagTaskWithHttpInfo | public async deleteRagTaskWithHttpInfo(response: ResponseContext): Promise<HttpInfo<boolean >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to deleteRagTask
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L428-L448 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiResponseProcessor.getRagTaskWithHttpInfo | public async getRagTaskWithHttpInfo(response: ResponseContext): Promise<HttpInfo<RagTaskDetailsDTO >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: RagTaskDetailsDTO = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"RagTaskDetailsDTO", ""
) as RagTaskDetailsDTO;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: RagTaskDetailsDTO = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"RagTaskDetailsDTO", ""
) as RagTaskDetailsDTO;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to getRagTask
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L457-L477 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiResponseProcessor.getRagTaskStatusWithHttpInfo | public async getRagTaskStatusWithHttpInfo(response: ResponseContext): Promise<HttpInfo<string >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: string = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"string", ""
) as string;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: string = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"string", ""
) as string;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to getRagTaskStatus
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L486-L506 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiResponseProcessor.listRagTasksWithHttpInfo | public async listRagTasksWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<RagTaskDetailsDTO> >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: Array<RagTaskDetailsDTO> = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"Array<RagTaskDetailsDTO>", ""
) as Array<RagTaskDetailsDTO>;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: Array<RagTaskDetailsDTO> = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"Array<RagTaskDetailsDTO>", ""
) as Array<RagTaskDetailsDTO>;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to listRagTasks
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L515-L535 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiResponseProcessor.startRagTaskWithHttpInfo | public async startRagTaskWithHttpInfo(response: ResponseContext): Promise<HttpInfo<boolean >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to startRagTask
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L544-L564 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RagApiResponseProcessor.updateRagTaskWithHttpInfo | public async updateRagTaskWithHttpInfo(response: ResponseContext): Promise<HttpInfo<boolean >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to updateRagTask
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/RagApi.ts#L573-L593 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | TTSServiceApiRequestFactory.listTtsBuiltinSpeakers | public async listTtsBuiltinSpeakers(_options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// Path Params
const localVarPath = '/api/v2/public/tts/builtin/speakers';
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["bearerAuth"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
} | /**
* Return builtin TTS speakers.
* List Builtin Speakers
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/TTSServiceApi.ts#L21-L45 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | TTSServiceApiRequestFactory.playSample | public async playSample(speakerType: string, speaker: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'speakerType' is not null or undefined
if (speakerType === null || speakerType === undefined) {
throw new RequiredError("TTSServiceApi", "playSample", "speakerType");
}
// verify required parameter 'speaker' is not null or undefined
if (speaker === null || speaker === undefined) {
throw new RequiredError("TTSServiceApi", "playSample", "speaker");
}
// Path Params
const localVarPath = '/api/v2/public/tts/play/sample/{speakerType}/{speaker}'
.replace('{' + 'speakerType' + '}', encodeURIComponent(String(speakerType)))
.replace('{' + 'speaker' + '}', encodeURIComponent(String(speaker)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["bearerAuth"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
} | /**
* Play TTS sample audio of the builtin/custom speaker.
* Play Sample Audio
* @param speakerType The speaker type
* @param speaker The speaker
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/TTSServiceApi.ts#L53-L91 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | TTSServiceApiRequestFactory.speakMessage | public async speakMessage(messageId: number, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'messageId' is not null or undefined
if (messageId === null || messageId === undefined) {
throw new RequiredError("TTSServiceApi", "speakMessage", "messageId");
}
// Path Params
const localVarPath = '/api/v2/tts/speak/{messageId}'
.replace('{' + 'messageId' + '}', encodeURIComponent(String(messageId)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["bearerAuth"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
} | /**
* Read out the message.
* Speak Message
* @param messageId The message id
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/TTSServiceApi.ts#L98-L129 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | TTSServiceApiResponseProcessor.listTtsBuiltinSpeakersWithHttpInfo | public async listTtsBuiltinSpeakersWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<string> >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: Array<string> = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"Array<string>", ""
) as Array<string>;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: Array<string> = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"Array<string>", ""
) as Array<string>;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to listTtsBuiltinSpeakers
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/TTSServiceApi.ts#L142-L162 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | TTSServiceApiResponseProcessor.playSampleWithHttpInfo | public async playSampleWithHttpInfo(response: ResponseContext): Promise<HttpInfo<any >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to playSample
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/TTSServiceApi.ts#L171-L191 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | TTSServiceApiResponseProcessor.speakMessageWithHttpInfo | public async speakMessageWithHttpInfo(response: ResponseContext): Promise<HttpInfo<any >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to speakMessage
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/TTSServiceApi.ts#L200-L220 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | TagManagerForBizAdminApiRequestFactory.createTag | public async createTag(referType: string, referId: string, tag: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'referType' is not null or undefined
if (referType === null || referType === undefined) {
throw new RequiredError("TagManagerForBizAdminApi", "createTag", "referType");
}
// verify required parameter 'referId' is not null or undefined
if (referId === null || referId === undefined) {
throw new RequiredError("TagManagerForBizAdminApi", "createTag", "referId");
}
// verify required parameter 'tag' is not null or undefined
if (tag === null || tag === undefined) {
throw new RequiredError("TagManagerForBizAdminApi", "createTag", "tag");
}
// Path Params
const localVarPath = '/api/v2/biz/admin/tag/{referType}/{referId}/{tag}'
.replace('{' + 'referType' + '}', encodeURIComponent(String(referType)))
.replace('{' + 'referId' + '}', encodeURIComponent(String(referId)))
.replace('{' + 'tag' + '}', encodeURIComponent(String(tag)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["bearerAuth"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
} | /**
* Create a tag, tags created by the administrator cannot be deleted by ordinary users.
* Create Tag
* @param referType Tag type (prompt, agent, plugin...)
* @param referId Resource identifier of the tag
* @param tag Tag content
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/TagManagerForBizAdminApi.ts#L24-L69 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | TagManagerForBizAdminApiRequestFactory.deleteTag | public async deleteTag(referType: string, referId: string, tag: string, _options?: Configuration): Promise<RequestContext> {
let _config = _options || this.configuration;
// verify required parameter 'referType' is not null or undefined
if (referType === null || referType === undefined) {
throw new RequiredError("TagManagerForBizAdminApi", "deleteTag", "referType");
}
// verify required parameter 'referId' is not null or undefined
if (referId === null || referId === undefined) {
throw new RequiredError("TagManagerForBizAdminApi", "deleteTag", "referId");
}
// verify required parameter 'tag' is not null or undefined
if (tag === null || tag === undefined) {
throw new RequiredError("TagManagerForBizAdminApi", "deleteTag", "tag");
}
// Path Params
const localVarPath = '/api/v2/biz/admin/tag/{referType}/{referId}/{tag}'
.replace('{' + 'referType' + '}', encodeURIComponent(String(referType)))
.replace('{' + 'referId' + '}', encodeURIComponent(String(referId)))
.replace('{' + 'tag' + '}', encodeURIComponent(String(tag)));
// Make Request Context
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
let authMethod: SecurityAuthentication | undefined;
// Apply auth methods
authMethod = _config.authMethods["bearerAuth"]
if (authMethod?.applySecurityAuthentication) {
await authMethod?.applySecurityAuthentication(requestContext);
}
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
if (defaultAuth?.applySecurityAuthentication) {
await defaultAuth?.applySecurityAuthentication(requestContext);
}
return requestContext;
} | /**
* Delete a tag, any tag created by anyone can be deleted.
* Delete Tag
* @param referType Tag type (prompt, agent, plugin...)
* @param referId Resource identifier of the tag
* @param tag Tag content
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/TagManagerForBizAdminApi.ts#L78-L123 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | TagManagerForBizAdminApiResponseProcessor.createTagWithHttpInfo | public async createTagWithHttpInfo(response: ResponseContext): Promise<HttpInfo<boolean >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to createTag
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/TagManagerForBizAdminApi.ts#L136-L156 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | TagManagerForBizAdminApiResponseProcessor.deleteTagWithHttpInfo | public async deleteTagWithHttpInfo(response: ResponseContext): Promise<HttpInfo<boolean >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: boolean = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"boolean", ""
) as boolean;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
} | /**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to deleteTag
* @throws ApiException if the response code was not in [200, 299]
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/TagManagerForBizAdminApi.ts#L165-L185 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | BearerAuthAuthentication.constructor | public constructor(private tokenProvider: TokenProvider) {} | /**
* Configures the http authentication with the required details.
*
* @param tokenProvider service that can provide the up-to-date token when needed
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/auth/auth.ts#L33-L33 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RequestContext.constructor | public constructor(url: string, private httpMethod: HttpMethod) {
this.url = new URL(ensureAbsoluteUrl(url));
} | /**
* Creates the request context using a http method and request resource url
*
* @param url url of the requested resource
* @param httpMethod http method
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/http/http.ts#L59-L61 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RequestContext.getUrl | public getUrl(): string {
return this.url.toString().endsWith("/") ?
this.url.toString().slice(0, -1)
: this.url.toString();
} | /*
* Returns the url set in the constructor including the query string
*
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/http/http.ts#L67-L71 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RequestContext.setUrl | public setUrl(url: string) {
this.url = new URL(ensureAbsoluteUrl(url));
} | /**
* Replaces the url set in the constructor with this url.
*
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/http/http.ts#L77-L79 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RequestContext.setBody | public setBody(body: RequestBody) {
this.body = body;
} | /**
* Sets the body of the http request either as a string or FormData
*
* Note that setting a body on a HTTP GET, HEAD, DELETE, CONNECT or TRACE
* request is discouraged.
* https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#rfc.section.7.3.1
*
* @param body the body of the request
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/http/http.ts#L90-L92 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | RequestContext.addCookie | public addCookie(name: string, value: string): void {
if (!this.headers["Cookie"]) {
this.headers["Cookie"] = "";
}
this.headers["Cookie"] += name + "=" + value + "; ";
} | /**
* Sets a cookie with the name and value. NO check for duplicate cookies is performed
*
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/http/http.ts#L118-L123 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ResponseContext.getParsedHeader | public getParsedHeader(headerName: string): Headers {
const result: Headers = {};
if (!this.headers[headerName]) {
return result;
}
const parameters = this.headers[headerName]!.split(";");
for (const parameter of parameters) {
let [key, value] = parameter.split("=", 2);
if (!key) {
continue;
}
key = key.toLowerCase().trim();
if (value === undefined) {
result[""] = key;
} else {
value = value.trim();
if (value.startsWith('"') && value.endsWith('"')) {
value = value.substring(1, value.length - 1);
}
result[key] = value;
}
}
return result;
} | /**
* Parse header value in the form `value; param1="value1"`
*
* E.g. for Content-Type or Content-Disposition
* Parameter names are converted to lower case
* The first parameter is returned with the key `""`
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/http/http.ts#L176-L200 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ResponseContext.getBodyAsAny | public getBodyAsAny(): Promise<string | Blob | undefined> {
try {
return this.body.text();
} catch {}
try {
return this.body.binary();
} catch {}
return Promise.resolve(undefined);
} | /**
* Use a heuristic to get a body of unknown data structure.
* Return as string if possible, otherwise as binary.
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/http/http.ts#L221-L231 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | parseMimeType | const parseMimeType = (mimeType: string): MimeTypeDescriptor => {
const [type = '', subtype = ''] = mimeType.split('/');
return {
type,
subtype,
subtypeTokens: subtype.split('+'),
};
}; | /**
* Every mime-type consists of a type, subtype, and optional parameters.
* The subtype can be composite, including information about the content format.
* For example: `application/json-patch+json`, `application/merge-patch+json`.
*
* This helper transforms a string mime-type into an internal representation.
* This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying
* the payload.
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/models/ObjectSerializer.ts#L228-L235 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | mimeTypePredicateFactory | const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); | // This factory creates a predicate function that checks a string mime-type against defined rules. | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/models/ObjectSerializer.ts#L240-L240 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | mimeTypeSimplePredicateFactory | const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => {
if (descriptor.type !== type) return false;
if (subtype != null && descriptor.subtype !== subtype) return false;
return true;
}); | // Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/models/ObjectSerializer.ts#L243-L247 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectSerializer.normalizeMediaType | public static normalizeMediaType(mediaType: string | undefined): string | undefined {
if (mediaType === undefined) {
return undefined;
}
return (mediaType.split(";")[0] ?? '').trim().toLowerCase();
} | /**
* Normalize media type
*
* We currently do not handle any media types attributes, i.e. anything
* after a semicolon. All content is assumed to be UTF-8 compatible.
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/models/ObjectSerializer.ts#L432-L437 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectSerializer.getPreferredMediaType | public static getPreferredMediaType(mediaTypes: Array<string>): string {
/** According to OAS 3 we should default to json */
if (mediaTypes.length === 0) {
return "application/json";
}
const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType);
for (const predicate of supportedMimeTypePredicatesWithPriority) {
for (const mediaType of normalMediaTypes) {
if (mediaType != null && predicate(mediaType)) {
return mediaType;
}
}
}
throw new Error("None of the given media types are supported: " + mediaTypes.join(", "));
} | /**
* From a list of possible media types, choose the one we can handle best.
*
* The order of the given media types does not have any impact on the choice
* made.
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/models/ObjectSerializer.ts#L445-L462 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectSerializer.stringify | public static stringify(data: any, mediaType: string): string {
if (isTextLikeMimeType(mediaType)) {
return String(data);
}
if (isJsonLikeMimeType(mediaType)) {
return JSON.stringify(data);
}
throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify.");
} | /**
* Convert data to a string according the given media type
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/models/ObjectSerializer.ts#L467-L477 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectSerializer.parse | public static parse(rawData: string, mediaType: string | undefined) {
if (mediaType === undefined) {
throw new Error("Cannot parse content. No Content-Type defined.");
}
if (isTextLikeMimeType(mediaType)) {
return rawData;
}
if (isJsonLikeMimeType(mediaType)) {
return JSON.parse(rawData);
}
throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse.");
} | /**
* Parse data from a string according to the given media type
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/models/ObjectSerializer.ts#L482-L496 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIManagerForBizAdminApi.createOrUpdateAiModelInfoWithHttpInfo | public createOrUpdateAiModelInfoWithHttpInfo(param: AIManagerForBizAdminApiCreateOrUpdateAiModelInfoRequest, options?: Configuration): Promise<HttpInfo<string>> {
return this.api.createOrUpdateAiModelInfoWithHttpInfo(param.aiModelInfoUpdateDTO, options).toPromise();
} | /**
* Create or update model information. If no modelId is passed or the modelId does not exist in the database, create a new one (keep the same modelId); otherwise update. Return modelId if successful.
* Create or Update Model Information
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L103-L105 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIManagerForBizAdminApi.createOrUpdateAiModelInfo | public createOrUpdateAiModelInfo(param: AIManagerForBizAdminApiCreateOrUpdateAiModelInfoRequest, options?: Configuration): Promise<string> {
return this.api.createOrUpdateAiModelInfo(param.aiModelInfoUpdateDTO, options).toPromise();
} | /**
* Create or update model information. If no modelId is passed or the modelId does not exist in the database, create a new one (keep the same modelId); otherwise update. Return modelId if successful.
* Create or Update Model Information
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L112-L114 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIManagerForBizAdminApi.deleteAiModelInfoWithHttpInfo | public deleteAiModelInfoWithHttpInfo(param: AIManagerForBizAdminApiDeleteAiModelInfoRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.deleteAiModelInfoWithHttpInfo(param.modelId, options).toPromise();
} | /**
* Delete model information based on modelId.
* Delete Model Information
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L121-L123 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIManagerForBizAdminApi.deleteAiModelInfo | public deleteAiModelInfo(param: AIManagerForBizAdminApiDeleteAiModelInfoRequest, options?: Configuration): Promise<boolean> {
return this.api.deleteAiModelInfo(param.modelId, options).toPromise();
} | /**
* Delete model information based on modelId.
* Delete Model Information
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L130-L132 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.addAiApiKeyWithHttpInfo | public addAiApiKeyWithHttpInfo(param: AIServiceApiAddAiApiKeyRequest, options?: Configuration): Promise<HttpInfo<number>> {
return this.api.addAiApiKeyWithHttpInfo(param.aiApiKeyCreateDTO, options).toPromise();
} | /**
* Add a credential for the model service.
* Add Model Provider Credential
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L250-L252 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.addAiApiKey | public addAiApiKey(param: AIServiceApiAddAiApiKeyRequest, options?: Configuration): Promise<number> {
return this.api.addAiApiKey(param.aiApiKeyCreateDTO, options).toPromise();
} | /**
* Add a credential for the model service.
* Add Model Provider Credential
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L259-L261 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.deleteAiApiKeyWithHttpInfo | public deleteAiApiKeyWithHttpInfo(param: AIServiceApiDeleteAiApiKeyRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.deleteAiApiKeyWithHttpInfo(param.id, options).toPromise();
} | /**
* Delete the credential information of the model provider.
* Delete Credential of Model Provider
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L268-L270 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.deleteAiApiKey | public deleteAiApiKey(param: AIServiceApiDeleteAiApiKeyRequest, options?: Configuration): Promise<boolean> {
return this.api.deleteAiApiKey(param.id, options).toPromise();
} | /**
* Delete the credential information of the model provider.
* Delete Credential of Model Provider
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L277-L279 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.disableAiApiKeyWithHttpInfo | public disableAiApiKeyWithHttpInfo(param: AIServiceApiDisableAiApiKeyRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.disableAiApiKeyWithHttpInfo(param.id, options).toPromise();
} | /**
* Disable the credential information of the model provider.
* Disable Model Provider Credential
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L286-L288 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.disableAiApiKey | public disableAiApiKey(param: AIServiceApiDisableAiApiKeyRequest, options?: Configuration): Promise<boolean> {
return this.api.disableAiApiKey(param.id, options).toPromise();
} | /**
* Disable the credential information of the model provider.
* Disable Model Provider Credential
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L295-L297 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.enableAiApiKeyWithHttpInfo | public enableAiApiKeyWithHttpInfo(param: AIServiceApiEnableAiApiKeyRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.enableAiApiKeyWithHttpInfo(param.id, options).toPromise();
} | /**
* Enable the credential information of the model provider.
* Enable Model Provider Credential
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L304-L306 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.enableAiApiKey | public enableAiApiKey(param: AIServiceApiEnableAiApiKeyRequest, options?: Configuration): Promise<boolean> {
return this.api.enableAiApiKey(param.id, options).toPromise();
} | /**
* Enable the credential information of the model provider.
* Enable Model Provider Credential
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L313-L315 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.getAiApiKeyWithHttpInfo | public getAiApiKeyWithHttpInfo(param: AIServiceApiGetAiApiKeyRequest, options?: Configuration): Promise<HttpInfo<AiApiKeyInfoDTO>> {
return this.api.getAiApiKeyWithHttpInfo(param.id, options).toPromise();
} | /**
* Get the credential information of the model provider.
* Get credential of Model Provider
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L322-L324 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.getAiApiKey | public getAiApiKey(param: AIServiceApiGetAiApiKeyRequest, options?: Configuration): Promise<AiApiKeyInfoDTO> {
return this.api.getAiApiKey(param.id, options).toPromise();
} | /**
* Get the credential information of the model provider.
* Get credential of Model Provider
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L331-L333 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.getAiModelInfoWithHttpInfo | public getAiModelInfoWithHttpInfo(param: AIServiceApiGetAiModelInfoRequest, options?: Configuration): Promise<HttpInfo<AiModelInfoDTO>> {
return this.api.getAiModelInfoWithHttpInfo(param.modelId, options).toPromise();
} | /**
* Return specific model information.
* Get Model Information
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L340-L342 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.getAiModelInfo | public getAiModelInfo(param: AIServiceApiGetAiModelInfoRequest, options?: Configuration): Promise<AiModelInfoDTO> {
return this.api.getAiModelInfo(param.modelId, options).toPromise();
} | /**
* Return specific model information.
* Get Model Information
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L349-L351 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.listAiApiKeysWithHttpInfo | public listAiApiKeysWithHttpInfo(param: AIServiceApiListAiApiKeysRequest, options?: Configuration): Promise<HttpInfo<Array<AiApiKeyInfoDTO>>> {
return this.api.listAiApiKeysWithHttpInfo(param.provider, options).toPromise();
} | /**
* List all credential information of the model provider.
* List Credentials of Model Provider
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L358-L360 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.listAiApiKeys | public listAiApiKeys(param: AIServiceApiListAiApiKeysRequest, options?: Configuration): Promise<Array<AiApiKeyInfoDTO>> {
return this.api.listAiApiKeys(param.provider, options).toPromise();
} | /**
* List all credential information of the model provider.
* List Credentials of Model Provider
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L367-L369 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.listAiModelInfoWithHttpInfo | public listAiModelInfoWithHttpInfo(param: AIServiceApiListAiModelInfoRequest = {}, options?: Configuration): Promise<HttpInfo<Array<AiModelInfoDTO>>> {
return this.api.listAiModelInfoWithHttpInfo( options).toPromise();
} | /**
* Return model information by page, return the pageNum page, up to pageSize model information.
* List Models
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L376-L378 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.listAiModelInfo | public listAiModelInfo(param: AIServiceApiListAiModelInfoRequest = {}, options?: Configuration): Promise<Array<AiModelInfoDTO>> {
return this.api.listAiModelInfo( options).toPromise();
} | /**
* Return model information by page, return the pageNum page, up to pageSize model information.
* List Models
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L385-L387 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.listAiModelInfo1WithHttpInfo | public listAiModelInfo1WithHttpInfo(param: AIServiceApiListAiModelInfo1Request, options?: Configuration): Promise<HttpInfo<Array<AiModelInfoDTO>>> {
return this.api.listAiModelInfo1WithHttpInfo(param.pageSize, options).toPromise();
} | /**
* Return model information by page, return the pageNum page, up to pageSize model information.
* List Models
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L394-L396 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.listAiModelInfo1 | public listAiModelInfo1(param: AIServiceApiListAiModelInfo1Request, options?: Configuration): Promise<Array<AiModelInfoDTO>> {
return this.api.listAiModelInfo1(param.pageSize, options).toPromise();
} | /**
* Return model information by page, return the pageNum page, up to pageSize model information.
* List Models
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L403-L405 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.listAiModelInfo2WithHttpInfo | public listAiModelInfo2WithHttpInfo(param: AIServiceApiListAiModelInfo2Request, options?: Configuration): Promise<HttpInfo<Array<AiModelInfoDTO>>> {
return this.api.listAiModelInfo2WithHttpInfo(param.pageSize, param.pageNum, options).toPromise();
} | /**
* Return model information by page, return the pageNum page, up to pageSize model information.
* List Models
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L412-L414 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAIServiceApi.listAiModelInfo2 | public listAiModelInfo2(param: AIServiceApiListAiModelInfo2Request, options?: Configuration): Promise<Array<AiModelInfoDTO>> {
return this.api.listAiModelInfo2(param.pageSize, param.pageNum, options).toPromise();
} | /**
* Return model information by page, return the pageNum page, up to pageSize model information.
* List Models
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L421-L423 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.createTokenWithHttpInfo | public createTokenWithHttpInfo(param: AccountApiCreateTokenRequest, options?: Configuration): Promise<HttpInfo<string>> {
return this.api.createTokenWithHttpInfo(param.duration, options).toPromise();
} | /**
* Create a timed API Token, valid for {duration} seconds.
* Create API Token
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L543-L545 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.createToken | public createToken(param: AccountApiCreateTokenRequest, options?: Configuration): Promise<string> {
return this.api.createToken(param.duration, options).toPromise();
} | /**
* Create a timed API Token, valid for {duration} seconds.
* Create API Token
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L552-L554 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.createToken1WithHttpInfo | public createToken1WithHttpInfo(param: AccountApiCreateToken1Request = {}, options?: Configuration): Promise<HttpInfo<string>> {
return this.api.createToken1WithHttpInfo( options).toPromise();
} | /**
* Create a timed API Token, valid for {duration} seconds.
* Create API Token
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L561-L563 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.createToken1 | public createToken1(param: AccountApiCreateToken1Request = {}, options?: Configuration): Promise<string> {
return this.api.createToken1( options).toPromise();
} | /**
* Create a timed API Token, valid for {duration} seconds.
* Create API Token
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L570-L572 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.deleteTokenWithHttpInfo | public deleteTokenWithHttpInfo(param: AccountApiDeleteTokenRequest, options?: Configuration): Promise<HttpInfo<string>> {
return this.api.deleteTokenWithHttpInfo(param.token, options).toPromise();
} | /**
* Delete an API Token.
* Delete API Token
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L579-L581 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.deleteToken | public deleteToken(param: AccountApiDeleteTokenRequest, options?: Configuration): Promise<string> {
return this.api.deleteToken(param.token, options).toPromise();
} | /**
* Delete an API Token.
* Delete API Token
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L588-L590 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.deleteTokenByIdWithHttpInfo | public deleteTokenByIdWithHttpInfo(param: AccountApiDeleteTokenByIdRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.deleteTokenByIdWithHttpInfo(param.id, options).toPromise();
} | /**
* Delete the API token by id.
* Delete API Token by Id
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L597-L599 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.deleteTokenById | public deleteTokenById(param: AccountApiDeleteTokenByIdRequest, options?: Configuration): Promise<boolean> {
return this.api.deleteTokenById(param.id, options).toPromise();
} | /**
* Delete the API token by id.
* Delete API Token by Id
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L606-L608 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.disableTokenWithHttpInfo | public disableTokenWithHttpInfo(param: AccountApiDisableTokenRequest, options?: Configuration): Promise<HttpInfo<string>> {
return this.api.disableTokenWithHttpInfo(param.token, options).toPromise();
} | /**
* Disable an API Token, the token is not deleted.
* Disable API Token
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L615-L617 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.disableToken | public disableToken(param: AccountApiDisableTokenRequest, options?: Configuration): Promise<string> {
return this.api.disableToken(param.token, options).toPromise();
} | /**
* Disable an API Token, the token is not deleted.
* Disable API Token
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L624-L626 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.disableTokenByIdWithHttpInfo | public disableTokenByIdWithHttpInfo(param: AccountApiDisableTokenByIdRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.disableTokenByIdWithHttpInfo(param.id, options).toPromise();
} | /**
* Disable the API token by id.
* Disable API Token by Id
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L633-L635 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.disableTokenById | public disableTokenById(param: AccountApiDisableTokenByIdRequest, options?: Configuration): Promise<boolean> {
return this.api.disableTokenById(param.id, options).toPromise();
} | /**
* Disable the API token by id.
* Disable API Token by Id
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L642-L644 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.getTokenByIdWithHttpInfo | public getTokenByIdWithHttpInfo(param: AccountApiGetTokenByIdRequest, options?: Configuration): Promise<HttpInfo<string>> {
return this.api.getTokenByIdWithHttpInfo(param.id, options).toPromise();
} | /**
* Get the API token by id.
* Get API Token by Id
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L651-L653 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.getTokenById | public getTokenById(param: AccountApiGetTokenByIdRequest, options?: Configuration): Promise<string> {
return this.api.getTokenById(param.id, options).toPromise();
} | /**
* Get the API token by id.
* Get API Token by Id
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L660-L662 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.getUserBasicWithHttpInfo | public getUserBasicWithHttpInfo(param: AccountApiGetUserBasicRequest, options?: Configuration): Promise<HttpInfo<UserBasicInfoDTO>> {
return this.api.getUserBasicWithHttpInfo(param.username, options).toPromise();
} | /**
* Return user basic information, including: username, nickname, avatar link.
* Get User Basic Information
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L669-L671 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.getUserBasic | public getUserBasic(param: AccountApiGetUserBasicRequest, options?: Configuration): Promise<UserBasicInfoDTO> {
return this.api.getUserBasic(param.username, options).toPromise();
} | /**
* Return user basic information, including: username, nickname, avatar link.
* Get User Basic Information
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L678-L680 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.getUserBasic1WithHttpInfo | public getUserBasic1WithHttpInfo(param: AccountApiGetUserBasic1Request = {}, options?: Configuration): Promise<HttpInfo<UserBasicInfoDTO>> {
return this.api.getUserBasic1WithHttpInfo( options).toPromise();
} | /**
* Return user basic information, including: username, nickname, avatar link.
* Get User Basic Information
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L687-L689 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.getUserBasic1 | public getUserBasic1(param: AccountApiGetUserBasic1Request = {}, options?: Configuration): Promise<UserBasicInfoDTO> {
return this.api.getUserBasic1( options).toPromise();
} | /**
* Return user basic information, including: username, nickname, avatar link.
* Get User Basic Information
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L696-L698 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.getUserDetailsWithHttpInfo | public getUserDetailsWithHttpInfo(param: AccountApiGetUserDetailsRequest = {}, options?: Configuration): Promise<HttpInfo<UserDetailsDTO>> {
return this.api.getUserDetailsWithHttpInfo( options).toPromise();
} | /**
* Return the detailed user information of the current account, the fields refer to the [standard claims](https://openid.net/specs/openid-connect-core-1_0.html#Claims) of OpenID Connect (OIDC).
* Get User Details
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L705-L707 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.getUserDetails | public getUserDetails(param: AccountApiGetUserDetailsRequest = {}, options?: Configuration): Promise<UserDetailsDTO> {
return this.api.getUserDetails( options).toPromise();
} | /**
* Return the detailed user information of the current account, the fields refer to the [standard claims](https://openid.net/specs/openid-connect-core-1_0.html#Claims) of OpenID Connect (OIDC).
* Get User Details
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L714-L716 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.listTokensWithHttpInfo | public listTokensWithHttpInfo(param: AccountApiListTokensRequest = {}, options?: Configuration): Promise<HttpInfo<Array<ApiTokenInfoDTO>>> {
return this.api.listTokensWithHttpInfo( options).toPromise();
} | /**
* List currently valid tokens.
* List API Tokens
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L723-L725 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.listTokens | public listTokens(param: AccountApiListTokensRequest = {}, options?: Configuration): Promise<Array<ApiTokenInfoDTO>> {
return this.api.listTokens( options).toPromise();
} | /**
* List currently valid tokens.
* List API Tokens
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L732-L734 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.updateUserInfoWithHttpInfo | public updateUserInfoWithHttpInfo(param: AccountApiUpdateUserInfoRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.updateUserInfoWithHttpInfo(param.userDetailsDTO, options).toPromise();
} | /**
* Update the detailed user information of the current account.
* Update User Details
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L741-L743 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.updateUserInfo | public updateUserInfo(param: AccountApiUpdateUserInfoRequest, options?: Configuration): Promise<boolean> {
return this.api.updateUserInfo(param.userDetailsDTO, options).toPromise();
} | /**
* Update the detailed user information of the current account.
* Update User Details
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L750-L752 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.uploadUserPictureWithHttpInfo | public uploadUserPictureWithHttpInfo(param: AccountApiUploadUserPictureRequest, options?: Configuration): Promise<HttpInfo<string>> {
return this.api.uploadUserPictureWithHttpInfo(param.file, options).toPromise();
} | /**
* Upload a picture of the user.
* Upload User Picture
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L759-L761 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountApi.uploadUserPicture | public uploadUserPicture(param: AccountApiUploadUserPictureRequest, options?: Configuration): Promise<string> {
return this.api.uploadUserPicture(param.file, options).toPromise();
} | /**
* Upload a picture of the user.
* Upload User Picture
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L768-L770 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountManagerForAdminApi.createTokenForUserWithHttpInfo | public createTokenForUserWithHttpInfo(param: AccountManagerForAdminApiCreateTokenForUserRequest, options?: Configuration): Promise<HttpInfo<string>> {
return this.api.createTokenForUserWithHttpInfo(param.username, param.duration, options).toPromise();
} | /**
* Create an API Token for a specified user, valid for duration seconds.
* Create API Token for User.
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L941-L943 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountManagerForAdminApi.createTokenForUser | public createTokenForUser(param: AccountManagerForAdminApiCreateTokenForUserRequest, options?: Configuration): Promise<string> {
return this.api.createTokenForUser(param.username, param.duration, options).toPromise();
} | /**
* Create an API Token for a specified user, valid for duration seconds.
* Create API Token for User.
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L950-L952 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountManagerForAdminApi.createUserWithHttpInfo | public createUserWithHttpInfo(param: AccountManagerForAdminApiCreateUserRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.createUserWithHttpInfo(param.userFullDetailsDTO, options).toPromise();
} | /**
* Create user.
* Create User
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L959-L961 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountManagerForAdminApi.createUser | public createUser(param: AccountManagerForAdminApiCreateUserRequest, options?: Configuration): Promise<boolean> {
return this.api.createUser(param.userFullDetailsDTO, options).toPromise();
} | /**
* Create user.
* Create User
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L968-L970 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountManagerForAdminApi.deleteTokenForUserWithHttpInfo | public deleteTokenForUserWithHttpInfo(param: AccountManagerForAdminApiDeleteTokenForUserRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.deleteTokenForUserWithHttpInfo(param.token, options).toPromise();
} | /**
* Delete the specified API Token.
* Delete API Token
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L977-L979 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectAccountManagerForAdminApi.deleteTokenForUser | public deleteTokenForUser(param: AccountManagerForAdminApiDeleteTokenForUserRequest, options?: Configuration): Promise<boolean> {
return this.api.deleteTokenForUser(param.token, options).toPromise();
} | /**
* Delete the specified API Token.
* Delete API Token
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L986-L988 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.