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
AccountManagerForAdminApiResponseProcessor.listAuthoritiesOfUserWithHttpInfo
public async listAuthoritiesOfUserWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Set<string> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Set<string> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Set<string>", "" ) as Set<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: Set<string> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Set<string>", "" ) as Set<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 listAuthoritiesOfUser * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AccountManagerForAdminApi.ts#L813-L833
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AccountManagerForAdminApiResponseProcessor.listTokensOfUserWithHttpInfo
public async listTokensOfUserWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<ApiTokenInfoDTO> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<ApiTokenInfoDTO> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<ApiTokenInfoDTO>", "" ) as Array<ApiTokenInfoDTO>; 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<ApiTokenInfoDTO> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<ApiTokenInfoDTO>", "" ) as Array<ApiTokenInfoDTO>; 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 listTokensOfUser * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AccountManagerForAdminApi.ts#L842-L862
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AccountManagerForAdminApiResponseProcessor.listUsersWithHttpInfo
public async listUsersWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<UserBasicInfoDTO> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<UserBasicInfoDTO> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<UserBasicInfoDTO>", "" ) as Array<UserBasicInfoDTO>; 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<UserBasicInfoDTO> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<UserBasicInfoDTO>", "" ) as Array<UserBasicInfoDTO>; 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 listUsers * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AccountManagerForAdminApi.ts#L871-L891
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AccountManagerForAdminApiResponseProcessor.listUsers1WithHttpInfo
public async listUsers1WithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<UserBasicInfoDTO> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<UserBasicInfoDTO> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<UserBasicInfoDTO>", "" ) as Array<UserBasicInfoDTO>; 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<UserBasicInfoDTO> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<UserBasicInfoDTO>", "" ) as Array<UserBasicInfoDTO>; 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 listUsers1 * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AccountManagerForAdminApi.ts#L900-L920
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AccountManagerForAdminApiResponseProcessor.listUsers2WithHttpInfo
public async listUsers2WithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<UserBasicInfoDTO> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<UserBasicInfoDTO> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<UserBasicInfoDTO>", "" ) as Array<UserBasicInfoDTO>; 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<UserBasicInfoDTO> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<UserBasicInfoDTO>", "" ) as Array<UserBasicInfoDTO>; 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 listUsers2 * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AccountManagerForAdminApi.ts#L929-L949
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AccountManagerForAdminApiResponseProcessor.updateAuthoritiesOfUserWithHttpInfo
public async updateAuthoritiesOfUserWithHttpInfo(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 updateAuthoritiesOfUser * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AccountManagerForAdminApi.ts#L958-L978
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AccountManagerForAdminApiResponseProcessor.updateUserWithHttpInfo
public async updateUserWithHttpInfo(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 updateUser * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AccountManagerForAdminApi.ts#L987-L1007
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.batchSearchAgentDetails
public async batchSearchAgentDetails(agentQueryDTO: Array<AgentQueryDTO>, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'agentQueryDTO' is not null or undefined if (agentQueryDTO === null || agentQueryDTO === undefined) { throw new RequiredError("AgentApi", "batchSearchAgentDetails", "agentQueryDTO"); } // Path Params const localVarPath = '/api/v2/agent/batch/details/search'; // 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(agentQueryDTO, "Array<AgentQueryDTO>", ""), 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; }
/** * Batch call shortcut for /api/v2/agent/details/search. * Batch Search Agent Details * @param agentQueryDTO Query conditions */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L28-L69
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.batchSearchAgentSummary
public async batchSearchAgentSummary(agentQueryDTO: Array<AgentQueryDTO>, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'agentQueryDTO' is not null or undefined if (agentQueryDTO === null || agentQueryDTO === undefined) { throw new RequiredError("AgentApi", "batchSearchAgentSummary", "agentQueryDTO"); } // Path Params const localVarPath = '/api/v2/agent/batch/search'; // 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(agentQueryDTO, "Array<AgentQueryDTO>", ""), 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; }
/** * Batch call shortcut for /api/v2/agent/search. * Batch Search Agent Summaries * @param agentQueryDTO Query conditions */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L76-L117
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.cloneAgent
public async cloneAgent(agentId: number, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'agentId' is not null or undefined if (agentId === null || agentId === undefined) { throw new RequiredError("AgentApi", "cloneAgent", "agentId"); } // Path Params const localVarPath = '/api/v2/agent/clone/{agentId}' .replace('{' + 'agentId' + '}', encodeURIComponent(String(agentId))); // 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; }
/** * Enter the agentId, generate a new record, the content is basically the same as the original agent, but the following fields are different: - Version number is 1 - Visibility is private - The parent agent is the source agentId - The creation time is the current moment. - All statistical indicators are zeroed. Return the new agentId. * Clone Agent * @param agentId The referenced agentId */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L124-L155
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.cloneAgents
public async cloneAgents(requestBody: Array<number>, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'requestBody' is not null or undefined if (requestBody === null || requestBody === undefined) { throw new RequiredError("AgentApi", "cloneAgents", "requestBody"); } // Path Params const localVarPath = '/api/v2/agent/batch/clone'; // 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(requestBody, "Array<number>", ""), 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; }
/** * Batch clone multiple agents. Ensure transactionality, return the agentId list after success. * Batch Clone Agents * @param requestBody List of agent information to be created */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L162-L203
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.countAgents
public async countAgents(agentQueryDTO: AgentQueryDTO, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'agentQueryDTO' is not null or undefined if (agentQueryDTO === null || agentQueryDTO === undefined) { throw new RequiredError("AgentApi", "countAgents", "agentQueryDTO"); } // Path Params const localVarPath = '/api/v2/agent/count'; // 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(agentQueryDTO, "AgentQueryDTO", ""), 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; }
/** * Calculate the number of agents according to the specified query conditions. * Calculate Number of Agents * @param agentQueryDTO Query conditions */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L210-L251
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.createAgent
public async createAgent(agentCreateDTO: AgentCreateDTO, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'agentCreateDTO' is not null or undefined if (agentCreateDTO === null || agentCreateDTO === undefined) { throw new RequiredError("AgentApi", "createAgent", "agentCreateDTO"); } // Path Params const localVarPath = '/api/v2/agent'; // 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(agentCreateDTO, "AgentCreateDTO", ""), 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 agent, ignore required fields: - Agent name - Agent configuration Limitations: - Description: 300 characters - Configuration: 2000 characters - Example: 2000 characters - Tags: 5 - Parameters: 10 * Create Agent * @param agentCreateDTO Information of the agent to be created */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L258-L299
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.createAgents
public async createAgents(agentCreateDTO: Array<AgentCreateDTO>, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'agentCreateDTO' is not null or undefined if (agentCreateDTO === null || agentCreateDTO === undefined) { throw new RequiredError("AgentApi", "createAgents", "agentCreateDTO"); } // Path Params const localVarPath = '/api/v2/agent/batch'; // 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(agentCreateDTO, "Array<AgentCreateDTO>", ""), 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; }
/** * Batch create multiple agents. Ensure transactionality, return the agentId list after success. * Batch Create Agents * @param agentCreateDTO List of agent information to be created */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L306-L347
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.deleteAgent
public async deleteAgent(agentId: number, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'agentId' is not null or undefined if (agentId === null || agentId === undefined) { throw new RequiredError("AgentApi", "deleteAgent", "agentId"); } // Path Params const localVarPath = '/api/v2/agent/{agentId}' .replace('{' + 'agentId' + '}', encodeURIComponent(String(agentId))); // 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 agent. Return success or failure. * Delete Agent * @param agentId AgentId to be deleted */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L354-L385
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.deleteAgents
public async deleteAgents(requestBody: Array<number>, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'requestBody' is not null or undefined if (requestBody === null || requestBody === undefined) { throw new RequiredError("AgentApi", "deleteAgents", "requestBody"); } // Path Params const localVarPath = '/api/v2/agent/batch/delete'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); 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(requestBody, "Array<number>", ""), 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; }
/** * Delete multiple agents. Ensure transactionality, return the list of successfully deleted agentId. * Batch Delete Agents * @param requestBody List of agentId to be deleted */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L392-L433
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.getAgentDetails
public async getAgentDetails(agentId: number, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'agentId' is not null or undefined if (agentId === null || agentId === undefined) { throw new RequiredError("AgentApi", "getAgentDetails", "agentId"); } // Path Params const localVarPath = '/api/v2/agent/details/{agentId}' .replace('{' + 'agentId' + '}', encodeURIComponent(String(agentId))); // 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 agent detailed information. * Get Agent Details * @param agentId AgentId to be obtained */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L440-L471
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.getAgentSummary
public async getAgentSummary(agentId: number, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'agentId' is not null or undefined if (agentId === null || agentId === undefined) { throw new RequiredError("AgentApi", "getAgentSummary", "agentId"); } // Path Params const localVarPath = '/api/v2/agent/summary/{agentId}' .replace('{' + 'agentId' + '}', encodeURIComponent(String(agentId))); // 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 agent summary information. * Get Agent Summary * @param agentId agentId to be obtained */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L478-L509
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.listAgentVersionsByName
public async listAgentVersionsByName(name: string, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { throw new RequiredError("AgentApi", "listAgentVersionsByName", "name"); } // Path Params const localVarPath = '/api/v2/agent/versions/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // 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; }
/** * List the versions and corresponding agentIds by agent name. * List Versions by Agent Name * @param name Agent name */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L516-L547
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.publishAgent
public async publishAgent(agentId: number, visibility: string, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'agentId' is not null or undefined if (agentId === null || agentId === undefined) { throw new RequiredError("AgentApi", "publishAgent", "agentId"); } // verify required parameter 'visibility' is not null or undefined if (visibility === null || visibility === undefined) { throw new RequiredError("AgentApi", "publishAgent", "visibility"); } // Path Params const localVarPath = '/api/v2/agent/publish/{agentId}/{visibility}' .replace('{' + 'agentId' + '}', encodeURIComponent(String(agentId))) .replace('{' + 'visibility' + '}', encodeURIComponent(String(visibility))); // 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; }
/** * Publish agent, draft content becomes formal content, version number increases by 1. After successful publication, a new agentId will be generated and returned. You need to specify the visibility for publication. * Publish Agent * @param agentId The agentId to be published * @param visibility Visibility: public | private | ... */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L555-L593
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.searchAgentDetails
public async searchAgentDetails(agentQueryDTO: AgentQueryDTO, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'agentQueryDTO' is not null or undefined if (agentQueryDTO === null || agentQueryDTO === undefined) { throw new RequiredError("AgentApi", "searchAgentDetails", "agentQueryDTO"); } // Path Params const localVarPath = '/api/v2/agent/details/search'; // 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(agentQueryDTO, "AgentQueryDTO", ""), 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; }
/** * Same as /api/v2/agent/search, but returns detailed information of the agent. * Search Agent Details * @param agentQueryDTO Query conditions */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L600-L641
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.searchAgentSummary
public async searchAgentSummary(agentQueryDTO: AgentQueryDTO, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'agentQueryDTO' is not null or undefined if (agentQueryDTO === null || agentQueryDTO === undefined) { throw new RequiredError("AgentApi", "searchAgentSummary", "agentQueryDTO"); } // Path Params const localVarPath = '/api/v2/agent/search'; // 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(agentQueryDTO, "AgentQueryDTO", ""), 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; }
/** * Search agents: - Specifiable query fields, and relationship: - Scope: private, public_org or public. Private can only search this account. - Username: exact match, only valid when searching public, public_org. If not specified, search all users. - Format: exact match, currently supported: langflow - Tags: exact match (support and, or logic). - Model type: exact match (support and, or logic). - Name: left match. - General: name, description, example, fuzzy match, one hit is enough; public scope + all user\'s general search does not guarantee timeliness. - A certain sorting rule can be specified, such as view count, reference count, rating, time, descending or ascending. - The search result is the agent summary content. - Support pagination. * Search Agent Summary * @param agentQueryDTO Query conditions */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L648-L689
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiRequestFactory.updateAgent
public async updateAgent(agentId: number, agentUpdateDTO: AgentUpdateDTO, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'agentId' is not null or undefined if (agentId === null || agentId === undefined) { throw new RequiredError("AgentApi", "updateAgent", "agentId"); } // verify required parameter 'agentUpdateDTO' is not null or undefined if (agentUpdateDTO === null || agentUpdateDTO === undefined) { throw new RequiredError("AgentApi", "updateAgent", "agentUpdateDTO"); } // Path Params const localVarPath = '/api/v2/agent/{agentId}' .replace('{' + 'agentId' + '}', encodeURIComponent(String(agentId))); // 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(agentUpdateDTO, "AgentUpdateDTO", ""), 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 agent, refer to /api/v2/agent/create, required field: agentId. Return success or failure. * Update Agent * @param agentId AgentId to be updated * @param agentUpdateDTO Agent information to be updated */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L697-L745
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.batchSearchAgentDetailsWithHttpInfo
public async batchSearchAgentDetailsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<Array<AgentDetailsDTO>> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<Array<AgentDetailsDTO>> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<Array<AgentDetailsDTO>>", "" ) as Array<Array<AgentDetailsDTO>>; 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<Array<AgentDetailsDTO>> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<Array<AgentDetailsDTO>>", "" ) as Array<Array<AgentDetailsDTO>>; 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 batchSearchAgentDetails * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L758-L778
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.batchSearchAgentSummaryWithHttpInfo
public async batchSearchAgentSummaryWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<Array<AgentSummaryDTO>> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<Array<AgentSummaryDTO>> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<Array<AgentSummaryDTO>>", "" ) as Array<Array<AgentSummaryDTO>>; 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<Array<AgentSummaryDTO>> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<Array<AgentSummaryDTO>>", "" ) as Array<Array<AgentSummaryDTO>>; 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 batchSearchAgentSummary * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L787-L807
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.cloneAgentWithHttpInfo
public async cloneAgentWithHttpInfo(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 cloneAgent * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L816-L836
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.cloneAgentsWithHttpInfo
public async cloneAgentsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<number> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<number> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<number>", "int64" ) as Array<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: Array<number> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<number>", "int64" ) as Array<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 cloneAgents * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L845-L865
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.countAgentsWithHttpInfo
public async countAgentsWithHttpInfo(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 countAgents * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L874-L894
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.createAgentWithHttpInfo
public async createAgentWithHttpInfo(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 createAgent * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L903-L923
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.createAgentsWithHttpInfo
public async createAgentsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<number> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<number> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<number>", "int64" ) as Array<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: Array<number> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<number>", "int64" ) as Array<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 createAgents * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L932-L952
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.deleteAgentWithHttpInfo
public async deleteAgentWithHttpInfo(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 deleteAgent * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L961-L981
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.deleteAgentsWithHttpInfo
public async deleteAgentsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<number> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<number> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<number>", "int64" ) as Array<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: Array<number> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<number>", "int64" ) as Array<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 deleteAgents * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L990-L1010
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.getAgentDetailsWithHttpInfo
public async getAgentDetailsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<AgentDetailsDTO >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: AgentDetailsDTO = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "AgentDetailsDTO", "" ) as AgentDetailsDTO; 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: AgentDetailsDTO = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "AgentDetailsDTO", "" ) as AgentDetailsDTO; 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 getAgentDetails * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L1019-L1039
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.getAgentSummaryWithHttpInfo
public async getAgentSummaryWithHttpInfo(response: ResponseContext): Promise<HttpInfo<AgentSummaryDTO >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: AgentSummaryDTO = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "AgentSummaryDTO", "" ) as AgentSummaryDTO; 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: AgentSummaryDTO = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "AgentSummaryDTO", "" ) as AgentSummaryDTO; 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 getAgentSummary * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L1048-L1068
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.listAgentVersionsByNameWithHttpInfo
public async listAgentVersionsByNameWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<AgentItemForNameDTO> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<AgentItemForNameDTO> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<AgentItemForNameDTO>", "" ) as Array<AgentItemForNameDTO>; 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<AgentItemForNameDTO> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<AgentItemForNameDTO>", "" ) as Array<AgentItemForNameDTO>; 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 listAgentVersionsByName * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L1077-L1097
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.publishAgentWithHttpInfo
public async publishAgentWithHttpInfo(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 publishAgent * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L1106-L1126
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.searchAgentDetailsWithHttpInfo
public async searchAgentDetailsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<AgentDetailsDTO> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<AgentDetailsDTO> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<AgentDetailsDTO>", "" ) as Array<AgentDetailsDTO>; 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<AgentDetailsDTO> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<AgentDetailsDTO>", "" ) as Array<AgentDetailsDTO>; 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 searchAgentDetails * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L1135-L1155
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.searchAgentSummaryWithHttpInfo
public async searchAgentSummaryWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<AgentSummaryDTO> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<AgentSummaryDTO> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<AgentSummaryDTO>", "" ) as Array<AgentSummaryDTO>; 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<AgentSummaryDTO> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<AgentSummaryDTO>", "" ) as Array<AgentSummaryDTO>; 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 searchAgentSummary * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L1164-L1184
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AgentApiResponseProcessor.updateAgentWithHttpInfo
public async updateAgentWithHttpInfo(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 updateAgent * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AgentApi.ts#L1193-L1213
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AppConfigForAdminApiRequestFactory.getDefaultConfig
public async getDefaultConfig(_options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // Path Params const localVarPath = '/api/v2/admin/app/configs/default'; // 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 default configuration information of the application. * Get Default Config */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AppConfigForAdminApi.ts#L21-L45
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AppConfigForAdminApiResponseProcessor.getDefaultConfigWithHttpInfo
public async getDefaultConfigWithHttpInfo(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 getDefaultConfig * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AppConfigForAdminApi.ts#L58-L78
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AppMetaForAdminApiRequestFactory.getAppMeta
public async getAppMeta(_options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // Path Params const localVarPath = '/api/v2/admin/app/meta'; // 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 application information to accurately locate the corresponding project version. * Get Application Information */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AppMetaForAdminApi.ts#L22-L46
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
AppMetaForAdminApiResponseProcessor.getAppMetaWithHttpInfo
public async getAppMetaWithHttpInfo(response: ResponseContext): Promise<HttpInfo<AppMetaDTO >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: AppMetaDTO = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "AppMetaDTO", "" ) as AppMetaDTO; 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: AppMetaDTO = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "AppMetaDTO", "" ) as AppMetaDTO; 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 getAppMeta * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/AppMetaForAdminApi.ts#L59-L79
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.addCharacterBackend
public async addCharacterBackend(characterUid: string, characterBackendDTO: CharacterBackendDTO, _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("CharacterApi", "addCharacterBackend", "characterUid"); } // verify required parameter 'characterBackendDTO' is not null or undefined if (characterBackendDTO === null || characterBackendDTO === undefined) { throw new RequiredError("CharacterApi", "addCharacterBackend", "characterBackendDTO"); } // Path Params const localVarPath = '/api/v2/character/backend/{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(characterBackendDTO, "CharacterBackendDTO", ""), 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; }
/** * Add a backend configuration for a character. * Add Character Backend * @param characterUid The characterUid to be added a backend * @param characterBackendDTO The character backend to be added */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L31-L79
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.batchSearchCharacterDetails
public async batchSearchCharacterDetails(characterQueryDTO: Array<CharacterQueryDTO>, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterQueryDTO' is not null or undefined if (characterQueryDTO === null || characterQueryDTO === undefined) { throw new RequiredError("CharacterApi", "batchSearchCharacterDetails", "characterQueryDTO"); } // Path Params const localVarPath = '/api/v2/character/batch/details/search'; // 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(characterQueryDTO, "Array<CharacterQueryDTO>", ""), 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; }
/** * Batch call shortcut for /api/v2/character/details/search. * Batch Search Character Details * @param characterQueryDTO Query conditions */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L86-L127
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.batchSearchCharacterSummary
public async batchSearchCharacterSummary(characterQueryDTO: Array<CharacterQueryDTO>, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterQueryDTO' is not null or undefined if (characterQueryDTO === null || characterQueryDTO === undefined) { throw new RequiredError("CharacterApi", "batchSearchCharacterSummary", "characterQueryDTO"); } // Path Params const localVarPath = '/api/v2/character/batch/search'; // 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(characterQueryDTO, "Array<CharacterQueryDTO>", ""), 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; }
/** * Batch call shortcut for /api/v2/character/search. * Batch Search Character Summaries * @param characterQueryDTO Query conditions */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L134-L175
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.cloneCharacter
public async cloneCharacter(characterId: number, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterId' is not null or undefined if (characterId === null || characterId === undefined) { throw new RequiredError("CharacterApi", "cloneCharacter", "characterId"); } // Path Params const localVarPath = '/api/v2/character/clone/{characterId}' .replace('{' + 'characterId' + '}', encodeURIComponent(String(characterId))); // 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; }
/** * Enter the characterId, generate a new record, the content is basically the same as the original character, but the following fields are different: - Version number is 1 - Visibility is private - The parent character is the source characterId - The creation time is the current moment. - All statistical indicators are zeroed. Return the new characterId. * Clone Character * @param characterId The referenced characterId */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L182-L213
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.countCharacters
public async countCharacters(characterQueryDTO: CharacterQueryDTO, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterQueryDTO' is not null or undefined if (characterQueryDTO === null || characterQueryDTO === undefined) { throw new RequiredError("CharacterApi", "countCharacters", "characterQueryDTO"); } // Path Params const localVarPath = '/api/v2/character/count'; // 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(characterQueryDTO, "CharacterQueryDTO", ""), 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; }
/** * Calculate the number of characters according to the specified query conditions. * Calculate Number of Characters * @param characterQueryDTO Query conditions */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L220-L261
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.countPublicCharacters
public async countPublicCharacters(characterQueryDTO: CharacterQueryDTO, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterQueryDTO' is not null or undefined if (characterQueryDTO === null || characterQueryDTO === undefined) { throw new RequiredError("CharacterApi", "countPublicCharacters", "characterQueryDTO"); } // Path Params const localVarPath = '/api/v2/public/character/count'; // 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(characterQueryDTO, "CharacterQueryDTO", ""), 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; }
/** * Calculate the number of characters according to the specified query conditions. * Calculate Number of Public Characters * @param characterQueryDTO Query conditions */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L268-L309
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.createCharacter
public async createCharacter(characterCreateDTO: CharacterCreateDTO, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterCreateDTO' is not null or undefined if (characterCreateDTO === null || characterCreateDTO === undefined) { throw new RequiredError("CharacterApi", "createCharacter", "characterCreateDTO"); } // Path Params const localVarPath = '/api/v2/character'; // 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(characterCreateDTO, "CharacterCreateDTO", ""), 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 character. * Create Character * @param characterCreateDTO Information of the character to be created */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L316-L357
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.deleteCharacter
public async deleteCharacter(characterId: number, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterId' is not null or undefined if (characterId === null || characterId === undefined) { throw new RequiredError("CharacterApi", "deleteCharacter", "characterId"); } // Path Params const localVarPath = '/api/v2/character/{characterId}' .replace('{' + 'characterId' + '}', encodeURIComponent(String(characterId))); // 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 character. Returns success or failure. * Delete Character * @param characterId The characterId to be deleted */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L364-L395
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.deleteCharacterByName
public async deleteCharacterByName(name: string, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { throw new RequiredError("CharacterApi", "deleteCharacterByName", "name"); } // Path Params const localVarPath = '/api/v2/character/name/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // 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 character by name. return the list of successfully deleted characterIds. * Delete Character by Name * @param name The character name to be deleted */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L402-L433
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.deleteCharacterByUid
public async deleteCharacterByUid(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("CharacterApi", "deleteCharacterByUid", "characterUid"); } // Path Params const localVarPath = '/api/v2/character/uid/{characterUid}' .replace('{' + 'characterUid' + '}', encodeURIComponent(String(characterUid))); // 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 character by uid. return the list of successfully deleted characterIds. * Delete Character by Uid * @param characterUid The character uid to be deleted */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L440-L471
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.deleteCharacterDocument
public async deleteCharacterDocument(key: string, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'key' is not null or undefined if (key === null || key === undefined) { throw new RequiredError("CharacterApi", "deleteCharacterDocument", "key"); } // Path Params const localVarPath = '/api/v2/character/document/{key}' .replace('{' + 'key' + '}', encodeURIComponent(String(key))); // 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 document of the character by key. * Delete Character Document * @param key Document key */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L478-L509
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.deleteCharacterPicture
public async deleteCharacterPicture(key: string, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'key' is not null or undefined if (key === null || key === undefined) { throw new RequiredError("CharacterApi", "deleteCharacterPicture", "key"); } // Path Params const localVarPath = '/api/v2/character/picture/{key}' .replace('{' + 'key' + '}', encodeURIComponent(String(key))); // 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 picture of the character by key. * Delete Character Picture * @param key Image key */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L516-L547
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.deleteCharacterVoice
public async deleteCharacterVoice(characterBackendId: string, key: string, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterBackendId' is not null or undefined if (characterBackendId === null || characterBackendId === undefined) { throw new RequiredError("CharacterApi", "deleteCharacterVoice", "characterBackendId"); } // verify required parameter 'key' is not null or undefined if (key === null || key === undefined) { throw new RequiredError("CharacterApi", "deleteCharacterVoice", "key"); } // Path Params const localVarPath = '/api/v2/character/voice/{characterBackendId}/{key}' .replace('{' + 'characterBackendId' + '}', encodeURIComponent(String(characterBackendId))) .replace('{' + 'key' + '}', encodeURIComponent(String(key))); // 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 voice of the character by key. * Delete Character Voice * @param characterBackendId The characterBackendId * @param key Voice key */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L555-L593
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.existsCharacterName
public async existsCharacterName(name: string, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { throw new RequiredError("CharacterApi", "existsCharacterName", "name"); } // Path Params const localVarPath = '/api/v2/character/exists/name/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // 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; }
/** * Check if the character name already exists. * Check If Character Name Exists * @param name Name */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L600-L631
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.exportCharacter
public async exportCharacter(characterId: number, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterId' is not null or undefined if (characterId === null || characterId === undefined) { throw new RequiredError("CharacterApi", "exportCharacter", "characterId"); } // Path Params const localVarPath = '/api/v2/character/export/{characterId}' .replace('{' + 'characterId' + '}', encodeURIComponent(String(characterId))); // 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; }
/** * Export character configuration in tar.gz format, including settings, documents and pictures. * Export Character Configuration * @param characterId Character identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L638-L669
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.getCharacterDetails
public async getCharacterDetails(characterId: number, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterId' is not null or undefined if (characterId === null || characterId === undefined) { throw new RequiredError("CharacterApi", "getCharacterDetails", "characterId"); } // Path Params const localVarPath = '/api/v2/character/details/{characterId}' .replace('{' + 'characterId' + '}', encodeURIComponent(String(characterId))); // 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 character detailed information. * Get Character Details * @param characterId CharacterId to be obtained */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L676-L707
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.getCharacterLatestIdByName
public async getCharacterLatestIdByName(name: string, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { throw new RequiredError("CharacterApi", "getCharacterLatestIdByName", "name"); } // Path Params const localVarPath = '/api/v2/character/latest/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // 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; }
/** * Get latest characterId by character name. * Get Latest Character Id by Name * @param name Character name */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L714-L745
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.getCharacterSummary
public async getCharacterSummary(characterId: number, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterId' is not null or undefined if (characterId === null || characterId === undefined) { throw new RequiredError("CharacterApi", "getCharacterSummary", "characterId"); } // Path Params const localVarPath = '/api/v2/character/summary/{characterId}' .replace('{' + 'characterId' + '}', encodeURIComponent(String(characterId))); // 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 character summary information. * Get Character Summary * @param characterId CharacterId to be obtained */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L752-L783
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.getDefaultCharacterBackend
public async getDefaultCharacterBackend(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("CharacterApi", "getDefaultCharacterBackend", "characterUid"); } // Path Params const localVarPath = '/api/v2/character/backend/default/{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; }
/** * Get the default backend configuration. * Get Default Character Backend * @param characterUid The characterUid to be queried */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L790-L821
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.importCharacter
public async importCharacter(file: HttpFile, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'file' is not null or undefined if (file === null || file === undefined) { throw new RequiredError("CharacterApi", "importCharacter", "file"); } // Path Params const localVarPath = '/api/v2/character/import'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Form Params const useForm = canConsumeForm([ 'multipart/form-data', ]); let localVarFormParams if (useForm) { localVarFormParams = new FormData(); } else { localVarFormParams = new URLSearchParams(); } if (file !== undefined) { // TODO: replace .append with .set if (localVarFormParams instanceof FormData) { localVarFormParams.append('file', file, file.name); } } requestContext.setBody(localVarFormParams); if(!useForm) { const contentType = ObjectSerializer.getPreferredMediaType([ "multipart/form-data" ]); requestContext.setHeaderParam("Content-Type", contentType); } 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; }
/** * Import character configuration from a tar.gz file. * Import Character Configuration * @param file Character avatar */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L828-L885
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.listCharacterBackendIds
public async listCharacterBackendIds(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("CharacterApi", "listCharacterBackendIds", "characterUid"); } // Path Params const localVarPath = '/api/v2/character/backend/ids/{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 character backend identifiers. * List Character Backend ids * @param characterUid The characterUid to be queried */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L892-L923
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.listCharacterBackends
public async listCharacterBackends(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("CharacterApi", "listCharacterBackends", "characterUid"); } // Path Params const localVarPath = '/api/v2/character/backends/{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 character backends. * List Character Backends * @param characterUid The characterUid to be queried */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L930-L961
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.listCharacterDocuments
public async listCharacterDocuments(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("CharacterApi", "listCharacterDocuments", "characterUid"); } // Path Params const localVarPath = '/api/v2/character/documents/{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 documents of the character. * List Character Documents * @param characterUid Character unique identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L968-L999
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.listCharacterPictures
public async listCharacterPictures(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("CharacterApi", "listCharacterPictures", "characterUid"); } // Path Params const localVarPath = '/api/v2/character/pictures/{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 pictures of the character. * List Character Pictures * @param characterUid Character unique identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1006-L1037
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.listCharacterVersionsByName
public async listCharacterVersionsByName(name: string, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { throw new RequiredError("CharacterApi", "listCharacterVersionsByName", "name"); } // Path Params const localVarPath = '/api/v2/character/versions/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // 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; }
/** * List the versions and corresponding characterIds by character name. * List Versions by Character Name * @param name Character name */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1044-L1075
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.listCharacterVoices
public async listCharacterVoices(characterBackendId: string, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterBackendId' is not null or undefined if (characterBackendId === null || characterBackendId === undefined) { throw new RequiredError("CharacterApi", "listCharacterVoices", "characterBackendId"); } // Path Params const localVarPath = '/api/v2/character/voices/{characterBackendId}' .replace('{' + 'characterBackendId' + '}', encodeURIComponent(String(characterBackendId))); // 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 voices of the character. * List Character Voices * @param characterBackendId The characterBackendId */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1082-L1113
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.newCharacterName
public async newCharacterName(desired: string, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'desired' is not null or undefined if (desired === null || desired === undefined) { throw new RequiredError("CharacterApi", "newCharacterName", "desired"); } // Path Params const localVarPath = '/api/v2/character/create/name/{desired}' .replace('{' + 'desired' + '}', encodeURIComponent(String(desired))); // 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; }
/** * Create a new character name starting with a desired name. * Create New Character Name * @param desired Desired name */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1120-L1151
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.publishCharacter
public async publishCharacter(characterId: number, visibility: string, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterId' is not null or undefined if (characterId === null || characterId === undefined) { throw new RequiredError("CharacterApi", "publishCharacter", "characterId"); } // verify required parameter 'visibility' is not null or undefined if (visibility === null || visibility === undefined) { throw new RequiredError("CharacterApi", "publishCharacter", "visibility"); } // Path Params const localVarPath = '/api/v2/character/publish/{characterId}/{visibility}' .replace('{' + 'characterId' + '}', encodeURIComponent(String(characterId))) .replace('{' + 'visibility' + '}', encodeURIComponent(String(visibility))); // 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; }
/** * Publish character, draft content becomes formal content, version number increases by 1. After successful publication, a new characterId will be generated and returned. You need to specify the visibility for publication. * Publish Character * @param characterId The characterId to be published * @param visibility Visibility: public | private | ... */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1159-L1197
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.publishCharacter1
public async publishCharacter1(characterId: number, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterId' is not null or undefined if (characterId === null || characterId === undefined) { throw new RequiredError("CharacterApi", "publishCharacter1", "characterId"); } // Path Params const localVarPath = '/api/v2/character/publish/{characterId}' .replace('{' + 'characterId' + '}', encodeURIComponent(String(characterId))); // 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; }
/** * Publish character, draft content becomes formal content, version number increases by 1. After successful publication, a new characterId will be generated and returned. You need to specify the visibility for publication. * Publish Character * @param characterId The characterId to be published */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1204-L1235
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.removeCharacterBackend
public async removeCharacterBackend(characterBackendId: string, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterBackendId' is not null or undefined if (characterBackendId === null || characterBackendId === undefined) { throw new RequiredError("CharacterApi", "removeCharacterBackend", "characterBackendId"); } // Path Params const localVarPath = '/api/v2/character/backend/{characterBackendId}' .replace('{' + 'characterBackendId' + '}', encodeURIComponent(String(characterBackendId))); // 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; }
/** * Remove a backend configuration. * Remove Character Backend * @param characterBackendId The characterBackendId to be removed */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1242-L1273
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.searchCharacterDetails
public async searchCharacterDetails(characterQueryDTO: CharacterQueryDTO, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterQueryDTO' is not null or undefined if (characterQueryDTO === null || characterQueryDTO === undefined) { throw new RequiredError("CharacterApi", "searchCharacterDetails", "characterQueryDTO"); } // Path Params const localVarPath = '/api/v2/character/details/search'; // 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(characterQueryDTO, "CharacterQueryDTO", ""), 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; }
/** * Same as /api/v2/character/search, but returns detailed information of the character. * Search Character Details * @param characterQueryDTO Query conditions */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1280-L1321
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.searchCharacterSummary
public async searchCharacterSummary(characterQueryDTO: CharacterQueryDTO, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterQueryDTO' is not null or undefined if (characterQueryDTO === null || characterQueryDTO === undefined) { throw new RequiredError("CharacterApi", "searchCharacterSummary", "characterQueryDTO"); } // Path Params const localVarPath = '/api/v2/character/search'; // 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(characterQueryDTO, "CharacterQueryDTO", ""), 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; }
/** * Search characters: - Specifiable query fields, and relationship: - Scope: private, public_org or public. Private can only search this account. - Username: exact match, only valid when searching public, public_org. If not specified, search all users. - Tags: exact match (support and, or logic). - Name: left match. - Language, exact match. - General: name, description, profile, chat style, experience, fuzzy match, one hit is enough; public scope + all user\'s general search does not guarantee timeliness. - A certain sorting rule can be specified, such as view count, reference count, rating, time, descending or ascending. - The search result is the character summary content. - Support pagination. * Search Character Summary * @param characterQueryDTO Query conditions */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1328-L1369
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.searchPublicCharacterSummary
public async searchPublicCharacterSummary(characterQueryDTO: CharacterQueryDTO, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterQueryDTO' is not null or undefined if (characterQueryDTO === null || characterQueryDTO === undefined) { throw new RequiredError("CharacterApi", "searchPublicCharacterSummary", "characterQueryDTO"); } // Path Params const localVarPath = '/api/v2/public/character/search'; // 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(characterQueryDTO, "CharacterQueryDTO", ""), 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; }
/** * Search characters: - Specifiable query fields, and relationship: - Scope: public(fixed). - Username: exact match. If not specified, search all users. - Tags: exact match (support and, or logic). - Name: left match. - Language, exact match. - General: name, description, profile, chat style, experience, fuzzy match, one hit is enough; public scope + all user\'s general search does not guarantee timeliness. - A certain sorting rule can be specified, such as view count, reference count, rating, time, descending or ascending. - The search result is the character summary content. - Support pagination. * Search Public Character Summary * @param characterQueryDTO Query conditions */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1376-L1417
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.setDefaultCharacterBackend
public async setDefaultCharacterBackend(characterBackendId: string, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterBackendId' is not null or undefined if (characterBackendId === null || characterBackendId === undefined) { throw new RequiredError("CharacterApi", "setDefaultCharacterBackend", "characterBackendId"); } // Path Params const localVarPath = '/api/v2/character/backend/default/{characterBackendId}' .replace('{' + 'characterBackendId' + '}', encodeURIComponent(String(characterBackendId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); 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; }
/** * Set the default backend configuration. * Set Default Character Backend * @param characterBackendId The characterBackendId to be set to default */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1424-L1455
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.updateCharacter
public async updateCharacter(characterId: number, characterUpdateDTO: CharacterUpdateDTO, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterId' is not null or undefined if (characterId === null || characterId === undefined) { throw new RequiredError("CharacterApi", "updateCharacter", "characterId"); } // verify required parameter 'characterUpdateDTO' is not null or undefined if (characterUpdateDTO === null || characterUpdateDTO === undefined) { throw new RequiredError("CharacterApi", "updateCharacter", "characterUpdateDTO"); } // Path Params const localVarPath = '/api/v2/character/{characterId}' .replace('{' + 'characterId' + '}', encodeURIComponent(String(characterId))); // 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(characterUpdateDTO, "CharacterUpdateDTO", ""), 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 character, refer to /api/v2/character/create, required field: characterId. Returns success or failure. * Update Character * @param characterId The characterId to be updated * @param characterUpdateDTO The character information to be updated */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1463-L1511
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.updateCharacterBackend
public async updateCharacterBackend(characterBackendId: string, characterBackendDTO: CharacterBackendDTO, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterBackendId' is not null or undefined if (characterBackendId === null || characterBackendId === undefined) { throw new RequiredError("CharacterApi", "updateCharacterBackend", "characterBackendId"); } // verify required parameter 'characterBackendDTO' is not null or undefined if (characterBackendDTO === null || characterBackendDTO === undefined) { throw new RequiredError("CharacterApi", "updateCharacterBackend", "characterBackendDTO"); } // Path Params const localVarPath = '/api/v2/character/backend/{characterBackendId}' .replace('{' + 'characterBackendId' + '}', encodeURIComponent(String(characterBackendId))); // 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(characterBackendDTO, "CharacterBackendDTO", ""), 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 backend configuration. * Update Character Backend * @param characterBackendId The characterBackendId to be updated * @param characterBackendDTO The character backend configuration to be updated */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1519-L1567
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.uploadCharacterAvatar
public async uploadCharacterAvatar(characterUid: string, file: HttpFile, _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("CharacterApi", "uploadCharacterAvatar", "characterUid"); } // verify required parameter 'file' is not null or undefined if (file === null || file === undefined) { throw new RequiredError("CharacterApi", "uploadCharacterAvatar", "file"); } // Path Params const localVarPath = '/api/v2/character/avatar/{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") // Form Params const useForm = canConsumeForm([ 'multipart/form-data', ]); let localVarFormParams if (useForm) { localVarFormParams = new FormData(); } else { localVarFormParams = new URLSearchParams(); } if (file !== undefined) { // TODO: replace .append with .set if (localVarFormParams instanceof FormData) { localVarFormParams.append('file', file, file.name); } } requestContext.setBody(localVarFormParams); if(!useForm) { const contentType = ObjectSerializer.getPreferredMediaType([ "multipart/form-data" ]); requestContext.setHeaderParam("Content-Type", contentType); } 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; }
/** * Upload an avatar of the character. * Upload Character Avatar * @param characterUid Character unique identifier * @param file Character avatar */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1575-L1639
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.uploadCharacterDocument
public async uploadCharacterDocument(characterUid: string, file: HttpFile, _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("CharacterApi", "uploadCharacterDocument", "characterUid"); } // verify required parameter 'file' is not null or undefined if (file === null || file === undefined) { throw new RequiredError("CharacterApi", "uploadCharacterDocument", "file"); } // Path Params const localVarPath = '/api/v2/character/document/{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") // Form Params const useForm = canConsumeForm([ 'multipart/form-data', ]); let localVarFormParams if (useForm) { localVarFormParams = new FormData(); } else { localVarFormParams = new URLSearchParams(); } if (file !== undefined) { // TODO: replace .append with .set if (localVarFormParams instanceof FormData) { localVarFormParams.append('file', file, file.name); } } requestContext.setBody(localVarFormParams); if(!useForm) { const contentType = ObjectSerializer.getPreferredMediaType([ "multipart/form-data" ]); requestContext.setHeaderParam("Content-Type", contentType); } 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; }
/** * Upload a document of the character. * Upload Character Document * @param characterUid Character unique identifier * @param file Character document */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1647-L1711
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.uploadCharacterPicture
public async uploadCharacterPicture(characterUid: string, file: HttpFile, _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("CharacterApi", "uploadCharacterPicture", "characterUid"); } // verify required parameter 'file' is not null or undefined if (file === null || file === undefined) { throw new RequiredError("CharacterApi", "uploadCharacterPicture", "file"); } // Path Params const localVarPath = '/api/v2/character/picture/{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") // Form Params const useForm = canConsumeForm([ 'multipart/form-data', ]); let localVarFormParams if (useForm) { localVarFormParams = new FormData(); } else { localVarFormParams = new URLSearchParams(); } if (file !== undefined) { // TODO: replace .append with .set if (localVarFormParams instanceof FormData) { localVarFormParams.append('file', file, file.name); } } requestContext.setBody(localVarFormParams); if(!useForm) { const contentType = ObjectSerializer.getPreferredMediaType([ "multipart/form-data" ]); requestContext.setHeaderParam("Content-Type", contentType); } 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; }
/** * Upload a picture of the character. * Upload Character Picture * @param characterUid Character unique identifier * @param file Character picture */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1719-L1783
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiRequestFactory.uploadCharacterVoice
public async uploadCharacterVoice(characterBackendId: string, file: HttpFile, _options?: Configuration): Promise<RequestContext> { let _config = _options || this.configuration; // verify required parameter 'characterBackendId' is not null or undefined if (characterBackendId === null || characterBackendId === undefined) { throw new RequiredError("CharacterApi", "uploadCharacterVoice", "characterBackendId"); } // verify required parameter 'file' is not null or undefined if (file === null || file === undefined) { throw new RequiredError("CharacterApi", "uploadCharacterVoice", "file"); } // Path Params const localVarPath = '/api/v2/character/voice/{characterBackendId}' .replace('{' + 'characterBackendId' + '}', encodeURIComponent(String(characterBackendId))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Form Params const useForm = canConsumeForm([ 'multipart/form-data', ]); let localVarFormParams if (useForm) { localVarFormParams = new FormData(); } else { localVarFormParams = new URLSearchParams(); } if (file !== undefined) { // TODO: replace .append with .set if (localVarFormParams instanceof FormData) { localVarFormParams.append('file', file, file.name); } } requestContext.setBody(localVarFormParams); if(!useForm) { const contentType = ObjectSerializer.getPreferredMediaType([ "multipart/form-data" ]); requestContext.setHeaderParam("Content-Type", contentType); } 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; }
/** * Upload a voice of the character. * Upload Character Voice * @param characterBackendId The characterBackendId * @param file Character voice */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1791-L1855
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.addCharacterBackendWithHttpInfo
public async addCharacterBackendWithHttpInfo(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 addCharacterBackend * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1868-L1888
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.batchSearchCharacterDetailsWithHttpInfo
public async batchSearchCharacterDetailsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<Array<CharacterDetailsDTO>> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<Array<CharacterDetailsDTO>> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<Array<CharacterDetailsDTO>>", "" ) as Array<Array<CharacterDetailsDTO>>; 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<Array<CharacterDetailsDTO>> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<Array<CharacterDetailsDTO>>", "" ) as Array<Array<CharacterDetailsDTO>>; 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 batchSearchCharacterDetails * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1897-L1917
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.batchSearchCharacterSummaryWithHttpInfo
public async batchSearchCharacterSummaryWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<Array<CharacterSummaryDTO>> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<Array<CharacterSummaryDTO>> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<Array<CharacterSummaryDTO>>", "" ) as Array<Array<CharacterSummaryDTO>>; 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<Array<CharacterSummaryDTO>> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<Array<CharacterSummaryDTO>>", "" ) as Array<Array<CharacterSummaryDTO>>; 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 batchSearchCharacterSummary * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1926-L1946
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.cloneCharacterWithHttpInfo
public async cloneCharacterWithHttpInfo(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 cloneCharacter * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1955-L1975
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.countCharactersWithHttpInfo
public async countCharactersWithHttpInfo(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 countCharacters * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L1984-L2004
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.countPublicCharactersWithHttpInfo
public async countPublicCharactersWithHttpInfo(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 countPublicCharacters * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L2013-L2033
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.createCharacterWithHttpInfo
public async createCharacterWithHttpInfo(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 createCharacter * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L2042-L2062
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.deleteCharacterWithHttpInfo
public async deleteCharacterWithHttpInfo(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 deleteCharacter * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L2071-L2091
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.deleteCharacterByNameWithHttpInfo
public async deleteCharacterByNameWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<number> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<number> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<number>", "int64" ) as Array<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: Array<number> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<number>", "int64" ) as Array<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 deleteCharacterByName * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L2100-L2120
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.deleteCharacterByUidWithHttpInfo
public async deleteCharacterByUidWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<number> >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: Array<number> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<number>", "int64" ) as Array<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: Array<number> = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "Array<number>", "int64" ) as Array<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 deleteCharacterByUid * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L2129-L2149
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.deleteCharacterDocumentWithHttpInfo
public async deleteCharacterDocumentWithHttpInfo(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 deleteCharacterDocument * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L2158-L2178
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.deleteCharacterPictureWithHttpInfo
public async deleteCharacterPictureWithHttpInfo(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 deleteCharacterPicture * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L2187-L2207
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.deleteCharacterVoiceWithHttpInfo
public async deleteCharacterVoiceWithHttpInfo(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 deleteCharacterVoice * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L2216-L2236
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.existsCharacterNameWithHttpInfo
public async existsCharacterNameWithHttpInfo(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 existsCharacterName * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L2245-L2265
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.exportCharacterWithHttpInfo
public async exportCharacterWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { return new HttpInfo(response.httpStatusCode, response.headers, response.body, undefined); } // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { const body: void = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "void", "" ) as void; 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 exportCharacter * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L2274-L2290
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.getCharacterDetailsWithHttpInfo
public async getCharacterDetailsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<CharacterDetailsDTO >> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: CharacterDetailsDTO = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "CharacterDetailsDTO", "" ) as CharacterDetailsDTO; 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: CharacterDetailsDTO = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "CharacterDetailsDTO", "" ) as CharacterDetailsDTO; 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 getCharacterDetails * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L2299-L2319
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
CharacterApiResponseProcessor.getCharacterLatestIdByNameWithHttpInfo
public async getCharacterLatestIdByNameWithHttpInfo(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 getCharacterLatestIdByName * @throws ApiException if the response code was not in [200, 299] */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/apis/CharacterApi.ts#L2328-L2348
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db