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 | ObjectPromptApi.searchPromptSummaryWithHttpInfo | public searchPromptSummaryWithHttpInfo(param: PromptApiSearchPromptSummaryRequest, options?: Configuration): Promise<HttpInfo<Array<PromptSummaryDTO>>> {
return this.api.searchPromptSummaryWithHttpInfo(param.promptQueryDTO, options).toPromise();
} | /**
* Search prompts: - 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). - Model type: exact match (support and, or logic). - Name: left match. - Type, exact match: string (default) | chat. - Language, exact match. - General: name, description, template, 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 prompt summary content. - Support pagination.
* Search Prompt Summary
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5643-L5645 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptApi.searchPromptSummary | public searchPromptSummary(param: PromptApiSearchPromptSummaryRequest, options?: Configuration): Promise<Array<PromptSummaryDTO>> {
return this.api.searchPromptSummary(param.promptQueryDTO, options).toPromise();
} | /**
* Search prompts: - 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). - Model type: exact match (support and, or logic). - Name: left match. - Type, exact match: string (default) | chat. - Language, exact match. - General: name, description, template, 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 prompt summary content. - Support pagination.
* Search Prompt Summary
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5652-L5654 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptApi.searchPublicPromptSummaryWithHttpInfo | public searchPublicPromptSummaryWithHttpInfo(param: PromptApiSearchPublicPromptSummaryRequest, options?: Configuration): Promise<HttpInfo<Array<PromptSummaryDTO>>> {
return this.api.searchPublicPromptSummaryWithHttpInfo(param.promptQueryDTO, options).toPromise();
} | /**
* Search prompts: - Specifiable query fields, and relationship: - Scope: public(fixed). - Username: exact match. If not specified, search all users. - Tags: exact match (support and, or logic). - Model type: exact match (support and, or logic). - Name: left match. - Type, exact match: string (default) | chat. - Language, exact match. - General: name, description, template, 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 prompt summary content. - Support pagination.
* Search Public Prompt Summary
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5661-L5663 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptApi.searchPublicPromptSummary | public searchPublicPromptSummary(param: PromptApiSearchPublicPromptSummaryRequest, options?: Configuration): Promise<Array<PromptSummaryDTO>> {
return this.api.searchPublicPromptSummary(param.promptQueryDTO, options).toPromise();
} | /**
* Search prompts: - Specifiable query fields, and relationship: - Scope: public(fixed). - Username: exact match. If not specified, search all users. - Tags: exact match (support and, or logic). - Model type: exact match (support and, or logic). - Name: left match. - Type, exact match: string (default) | chat. - Language, exact match. - General: name, description, template, 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 prompt summary content. - Support pagination.
* Search Public Prompt Summary
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5670-L5672 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptApi.sendPromptWithHttpInfo | public sendPromptWithHttpInfo(param: PromptApiSendPromptRequest, options?: Configuration): Promise<HttpInfo<LlmResultDTO>> {
return this.api.sendPromptWithHttpInfo(param.promptAiParamDTO, options).toPromise();
} | /**
* Send the prompt to the AI service. Note that if the embedding model is called, the return is an embedding array, placed in the details field of the result; the original text is in the text field of the result.
* Send Prompt
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5679-L5681 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptApi.sendPrompt | public sendPrompt(param: PromptApiSendPromptRequest, options?: Configuration): Promise<LlmResultDTO> {
return this.api.sendPrompt(param.promptAiParamDTO, options).toPromise();
} | /**
* Send the prompt to the AI service. Note that if the embedding model is called, the return is an embedding array, placed in the details field of the result; the original text is in the text field of the result.
* Send Prompt
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5688-L5690 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptApi.streamSendPromptWithHttpInfo | public streamSendPromptWithHttpInfo(param: PromptApiStreamSendPromptRequest, options?: Configuration): Promise<HttpInfo<SseEmitter>> {
return this.api.streamSendPromptWithHttpInfo(param.promptAiParamDTO, options).toPromise();
} | /**
* Refer to /api/v2/prompt/send, stream back chunks of the response.
* Send Prompt by Streaming Back
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5697-L5699 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptApi.streamSendPrompt | public streamSendPrompt(param: PromptApiStreamSendPromptRequest, options?: Configuration): Promise<SseEmitter> {
return this.api.streamSendPrompt(param.promptAiParamDTO, options).toPromise();
} | /**
* Refer to /api/v2/prompt/send, stream back chunks of the response.
* Send Prompt by Streaming Back
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5706-L5708 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptApi.updatePromptWithHttpInfo | public updatePromptWithHttpInfo(param: PromptApiUpdatePromptRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.updatePromptWithHttpInfo(param.promptId, param.promptUpdateDTO, options).toPromise();
} | /**
* Update prompt, refer to /api/v2/prompt/create, required field: promptId. Returns success or failure.
* Update Prompt
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5715-L5717 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptApi.updatePrompt | public updatePrompt(param: PromptApiUpdatePromptRequest, options?: Configuration): Promise<boolean> {
return this.api.updatePrompt(param.promptId, param.promptUpdateDTO, options).toPromise();
} | /**
* Update prompt, refer to /api/v2/prompt/create, required field: promptId. Returns success or failure.
* Update Prompt
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5724-L5726 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptTaskApi.createPromptTaskWithHttpInfo | public createPromptTaskWithHttpInfo(param: PromptTaskApiCreatePromptTaskRequest, options?: Configuration): Promise<HttpInfo<string>> {
return this.api.createPromptTaskWithHttpInfo(param.promptTaskDTO, options).toPromise();
} | /**
* Create a prompt task.
* Create Prompt Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5790-L5792 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptTaskApi.createPromptTask | public createPromptTask(param: PromptTaskApiCreatePromptTaskRequest, options?: Configuration): Promise<string> {
return this.api.createPromptTask(param.promptTaskDTO, options).toPromise();
} | /**
* Create a prompt task.
* Create Prompt Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5799-L5801 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptTaskApi.deletePromptTaskWithHttpInfo | public deletePromptTaskWithHttpInfo(param: PromptTaskApiDeletePromptTaskRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.deletePromptTaskWithHttpInfo(param.promptTaskId, options).toPromise();
} | /**
* Delete a prompt task.
* Delete Prompt Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5808-L5810 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptTaskApi.deletePromptTask | public deletePromptTask(param: PromptTaskApiDeletePromptTaskRequest, options?: Configuration): Promise<boolean> {
return this.api.deletePromptTask(param.promptTaskId, options).toPromise();
} | /**
* Delete a prompt task.
* Delete Prompt Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5817-L5819 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptTaskApi.getPromptTaskWithHttpInfo | public getPromptTaskWithHttpInfo(param: PromptTaskApiGetPromptTaskRequest, options?: Configuration): Promise<HttpInfo<PromptTaskDetailsDTO>> {
return this.api.getPromptTaskWithHttpInfo(param.promptTaskId, options).toPromise();
} | /**
* Get the prompt task details.
* Get Prompt Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5826-L5828 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptTaskApi.getPromptTask | public getPromptTask(param: PromptTaskApiGetPromptTaskRequest, options?: Configuration): Promise<PromptTaskDetailsDTO> {
return this.api.getPromptTask(param.promptTaskId, options).toPromise();
} | /**
* Get the prompt task details.
* Get Prompt Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5835-L5837 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptTaskApi.updatePromptTaskWithHttpInfo | public updatePromptTaskWithHttpInfo(param: PromptTaskApiUpdatePromptTaskRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.updatePromptTaskWithHttpInfo(param.promptTaskId, param.promptTaskDTO, options).toPromise();
} | /**
* Update a prompt task.
* Update Prompt Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5844-L5846 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectPromptTaskApi.updatePromptTask | public updatePromptTask(param: PromptTaskApiUpdatePromptTaskRequest, options?: Configuration): Promise<boolean> {
return this.api.updatePromptTask(param.promptTaskId, param.promptTaskDTO, options).toPromise();
} | /**
* Update a prompt task.
* Update Prompt Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5853-L5855 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.cancelRagTaskWithHttpInfo | public cancelRagTaskWithHttpInfo(param: RagApiCancelRagTaskRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.cancelRagTaskWithHttpInfo(param.taskId, options).toPromise();
} | /**
* Cancel a RAG task.
* Cancel RAG Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5966-L5968 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.cancelRagTask | public cancelRagTask(param: RagApiCancelRagTaskRequest, options?: Configuration): Promise<boolean> {
return this.api.cancelRagTask(param.taskId, options).toPromise();
} | /**
* Cancel a RAG task.
* Cancel RAG Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5975-L5977 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.createRagTaskWithHttpInfo | public createRagTaskWithHttpInfo(param: RagApiCreateRagTaskRequest, options?: Configuration): Promise<HttpInfo<number>> {
return this.api.createRagTaskWithHttpInfo(param.characterUid, param.ragTaskDTO, options).toPromise();
} | /**
* Create a RAG task.
* Create RAG Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5984-L5986 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.createRagTask | public createRagTask(param: RagApiCreateRagTaskRequest, options?: Configuration): Promise<number> {
return this.api.createRagTask(param.characterUid, param.ragTaskDTO, options).toPromise();
} | /**
* Create a RAG task.
* Create RAG Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L5993-L5995 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.deleteRagTaskWithHttpInfo | public deleteRagTaskWithHttpInfo(param: RagApiDeleteRagTaskRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.deleteRagTaskWithHttpInfo(param.taskId, options).toPromise();
} | /**
* Delete a RAG task.
* Delete RAG Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6002-L6004 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.deleteRagTask | public deleteRagTask(param: RagApiDeleteRagTaskRequest, options?: Configuration): Promise<boolean> {
return this.api.deleteRagTask(param.taskId, options).toPromise();
} | /**
* Delete a RAG task.
* Delete RAG Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6011-L6013 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.getRagTaskWithHttpInfo | public getRagTaskWithHttpInfo(param: RagApiGetRagTaskRequest, options?: Configuration): Promise<HttpInfo<RagTaskDetailsDTO>> {
return this.api.getRagTaskWithHttpInfo(param.taskId, options).toPromise();
} | /**
* Get the RAG task details.
* Get RAG Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6020-L6022 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.getRagTask | public getRagTask(param: RagApiGetRagTaskRequest, options?: Configuration): Promise<RagTaskDetailsDTO> {
return this.api.getRagTask(param.taskId, options).toPromise();
} | /**
* Get the RAG task details.
* Get RAG Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6029-L6031 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.getRagTaskStatusWithHttpInfo | public getRagTaskStatusWithHttpInfo(param: RagApiGetRagTaskStatusRequest, options?: Configuration): Promise<HttpInfo<string>> {
return this.api.getRagTaskStatusWithHttpInfo(param.taskId, options).toPromise();
} | /**
* Get the RAG task execution status: pending | running | succeeded | failed | canceled.
* Get RAG Task Status
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6038-L6040 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.getRagTaskStatus | public getRagTaskStatus(param: RagApiGetRagTaskStatusRequest, options?: Configuration): Promise<string> {
return this.api.getRagTaskStatus(param.taskId, options).toPromise();
} | /**
* Get the RAG task execution status: pending | running | succeeded | failed | canceled.
* Get RAG Task Status
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6047-L6049 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.listRagTasksWithHttpInfo | public listRagTasksWithHttpInfo(param: RagApiListRagTasksRequest, options?: Configuration): Promise<HttpInfo<Array<RagTaskDetailsDTO>>> {
return this.api.listRagTasksWithHttpInfo(param.characterUid, options).toPromise();
} | /**
* List the RAG tasks by characterId.
* List RAG Tasks
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6056-L6058 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.listRagTasks | public listRagTasks(param: RagApiListRagTasksRequest, options?: Configuration): Promise<Array<RagTaskDetailsDTO>> {
return this.api.listRagTasks(param.characterUid, options).toPromise();
} | /**
* List the RAG tasks by characterId.
* List RAG Tasks
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6065-L6067 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.startRagTaskWithHttpInfo | public startRagTaskWithHttpInfo(param: RagApiStartRagTaskRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.startRagTaskWithHttpInfo(param.taskId, options).toPromise();
} | /**
* Start a RAG task.
* Start RAG Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6074-L6076 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.startRagTask | public startRagTask(param: RagApiStartRagTaskRequest, options?: Configuration): Promise<boolean> {
return this.api.startRagTask(param.taskId, options).toPromise();
} | /**
* Start a RAG task.
* Start RAG Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6083-L6085 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.updateRagTaskWithHttpInfo | public updateRagTaskWithHttpInfo(param: RagApiUpdateRagTaskRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.updateRagTaskWithHttpInfo(param.taskId, param.ragTaskDTO, options).toPromise();
} | /**
* Update a RAG task.
* Update RAG Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6092-L6094 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectRagApi.updateRagTask | public updateRagTask(param: RagApiUpdateRagTaskRequest, options?: Configuration): Promise<boolean> {
return this.api.updateRagTask(param.taskId, param.ragTaskDTO, options).toPromise();
} | /**
* Update a RAG task.
* Update RAG Task
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6101-L6103 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectTTSServiceApi.listTtsBuiltinSpeakersWithHttpInfo | public listTtsBuiltinSpeakersWithHttpInfo(param: TTSServiceApiListTtsBuiltinSpeakersRequest = {}, options?: Configuration): Promise<HttpInfo<Array<string>>> {
return this.api.listTtsBuiltinSpeakersWithHttpInfo( options).toPromise();
} | /**
* Return builtin TTS speakers.
* List Builtin Speakers
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6152-L6154 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectTTSServiceApi.listTtsBuiltinSpeakers | public listTtsBuiltinSpeakers(param: TTSServiceApiListTtsBuiltinSpeakersRequest = {}, options?: Configuration): Promise<Array<string>> {
return this.api.listTtsBuiltinSpeakers( options).toPromise();
} | /**
* Return builtin TTS speakers.
* List Builtin Speakers
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6161-L6163 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectTTSServiceApi.playSampleWithHttpInfo | public playSampleWithHttpInfo(param: TTSServiceApiPlaySampleRequest, options?: Configuration): Promise<HttpInfo<any>> {
return this.api.playSampleWithHttpInfo(param.speakerType, param.speaker, options).toPromise();
} | /**
* Play TTS sample audio of the builtin/custom speaker.
* Play Sample Audio
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6170-L6172 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectTTSServiceApi.playSample | public playSample(param: TTSServiceApiPlaySampleRequest, options?: Configuration): Promise<any> {
return this.api.playSample(param.speakerType, param.speaker, options).toPromise();
} | /**
* Play TTS sample audio of the builtin/custom speaker.
* Play Sample Audio
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6179-L6181 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectTTSServiceApi.speakMessageWithHttpInfo | public speakMessageWithHttpInfo(param: TTSServiceApiSpeakMessageRequest, options?: Configuration): Promise<HttpInfo<any>> {
return this.api.speakMessageWithHttpInfo(param.messageId, options).toPromise();
} | /**
* Read out the message.
* Speak Message
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6188-L6190 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectTTSServiceApi.speakMessage | public speakMessage(param: TTSServiceApiSpeakMessageRequest, options?: Configuration): Promise<any> {
return this.api.speakMessage(param.messageId, options).toPromise();
} | /**
* Read out the message.
* Speak Message
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6197-L6199 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectTagManagerForBizAdminApi.createTagWithHttpInfo | public createTagWithHttpInfo(param: TagManagerForBizAdminApiCreateTagRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.createTagWithHttpInfo(param.referType, param.referId, param.tag, options).toPromise();
} | /**
* Create a tag, tags created by the administrator cannot be deleted by ordinary users.
* Create Tag
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6266-L6268 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectTagManagerForBizAdminApi.createTag | public createTag(param: TagManagerForBizAdminApiCreateTagRequest, options?: Configuration): Promise<boolean> {
return this.api.createTag(param.referType, param.referId, param.tag, options).toPromise();
} | /**
* Create a tag, tags created by the administrator cannot be deleted by ordinary users.
* Create Tag
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6275-L6277 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectTagManagerForBizAdminApi.deleteTagWithHttpInfo | public deleteTagWithHttpInfo(param: TagManagerForBizAdminApiDeleteTagRequest, options?: Configuration): Promise<HttpInfo<boolean>> {
return this.api.deleteTagWithHttpInfo(param.referType, param.referId, param.tag, options).toPromise();
} | /**
* Delete a tag, any tag created by anyone can be deleted.
* Delete Tag
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6284-L6286 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObjectTagManagerForBizAdminApi.deleteTag | public deleteTag(param: TagManagerForBizAdminApiDeleteTagRequest, options?: Configuration): Promise<boolean> {
return this.api.deleteTag(param.referType, param.referId, param.tag, options).toPromise();
} | /**
* Delete a tag, any tag created by anyone can be deleted.
* Delete Tag
* @param param the request object
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObjectParamAPI.ts#L6293-L6295 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIManagerForBizAdminApi.createOrUpdateAiModelInfoWithHttpInfo | public createOrUpdateAiModelInfoWithHttpInfo(aiModelInfoUpdateDTO: AiModelInfoUpdateDTO, _options?: Configuration): Observable<HttpInfo<string>> {
const requestContextPromise = this.requestFactory.createOrUpdateAiModelInfo(aiModelInfoUpdateDTO, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createOrUpdateAiModelInfoWithHttpInfo(rsp)));
}));
} | /**
* Create or update model information. If no modelId is passed or the modelId does not exist in the database, create a new one (keep the same modelId); otherwise update. Return modelId if successful.
* Create or Update Model Information
* @param aiModelInfoUpdateDTO Model information
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L91-L108 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIManagerForBizAdminApi.createOrUpdateAiModelInfo | public createOrUpdateAiModelInfo(aiModelInfoUpdateDTO: AiModelInfoUpdateDTO, _options?: Configuration): Observable<string> {
return this.createOrUpdateAiModelInfoWithHttpInfo(aiModelInfoUpdateDTO, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data));
} | /**
* Create or update model information. If no modelId is passed or the modelId does not exist in the database, create a new one (keep the same modelId); otherwise update. Return modelId if successful.
* Create or Update Model Information
* @param aiModelInfoUpdateDTO Model information
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L115-L117 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIManagerForBizAdminApi.deleteAiModelInfoWithHttpInfo | public deleteAiModelInfoWithHttpInfo(modelId: string, _options?: Configuration): Observable<HttpInfo<boolean>> {
const requestContextPromise = this.requestFactory.deleteAiModelInfo(modelId, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteAiModelInfoWithHttpInfo(rsp)));
}));
} | /**
* Delete model information based on modelId.
* Delete Model Information
* @param modelId Model identifier
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L124-L141 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIManagerForBizAdminApi.deleteAiModelInfo | public deleteAiModelInfo(modelId: string, _options?: Configuration): Observable<boolean> {
return this.deleteAiModelInfoWithHttpInfo(modelId, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data));
} | /**
* Delete model information based on modelId.
* Delete Model Information
* @param modelId Model identifier
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L148-L150 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.addAiApiKeyWithHttpInfo | public addAiApiKeyWithHttpInfo(aiApiKeyCreateDTO: AiApiKeyCreateDTO, _options?: Configuration): Observable<HttpInfo<number>> {
const requestContextPromise = this.requestFactory.addAiApiKey(aiApiKeyCreateDTO, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.addAiApiKeyWithHttpInfo(rsp)));
}));
} | /**
* Add a credential for the model service.
* Add Model Provider Credential
* @param aiApiKeyCreateDTO Model call credential information
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L175-L192 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.addAiApiKey | public addAiApiKey(aiApiKeyCreateDTO: AiApiKeyCreateDTO, _options?: Configuration): Observable<number> {
return this.addAiApiKeyWithHttpInfo(aiApiKeyCreateDTO, _options).pipe(map((apiResponse: HttpInfo<number>) => apiResponse.data));
} | /**
* Add a credential for the model service.
* Add Model Provider Credential
* @param aiApiKeyCreateDTO Model call credential information
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L199-L201 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.deleteAiApiKeyWithHttpInfo | public deleteAiApiKeyWithHttpInfo(id: number, _options?: Configuration): Observable<HttpInfo<boolean>> {
const requestContextPromise = this.requestFactory.deleteAiApiKey(id, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteAiApiKeyWithHttpInfo(rsp)));
}));
} | /**
* Delete the credential information of the model provider.
* Delete Credential of Model Provider
* @param id Credential identifier
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L208-L225 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.deleteAiApiKey | public deleteAiApiKey(id: number, _options?: Configuration): Observable<boolean> {
return this.deleteAiApiKeyWithHttpInfo(id, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data));
} | /**
* Delete the credential information of the model provider.
* Delete Credential of Model Provider
* @param id Credential identifier
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L232-L234 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.disableAiApiKeyWithHttpInfo | public disableAiApiKeyWithHttpInfo(id: number, _options?: Configuration): Observable<HttpInfo<boolean>> {
const requestContextPromise = this.requestFactory.disableAiApiKey(id, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.disableAiApiKeyWithHttpInfo(rsp)));
}));
} | /**
* Disable the credential information of the model provider.
* Disable Model Provider Credential
* @param id Credential identifier
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L241-L258 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.disableAiApiKey | public disableAiApiKey(id: number, _options?: Configuration): Observable<boolean> {
return this.disableAiApiKeyWithHttpInfo(id, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data));
} | /**
* Disable the credential information of the model provider.
* Disable Model Provider Credential
* @param id Credential identifier
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L265-L267 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.enableAiApiKeyWithHttpInfo | public enableAiApiKeyWithHttpInfo(id: number, _options?: Configuration): Observable<HttpInfo<boolean>> {
const requestContextPromise = this.requestFactory.enableAiApiKey(id, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.enableAiApiKeyWithHttpInfo(rsp)));
}));
} | /**
* Enable the credential information of the model provider.
* Enable Model Provider Credential
* @param id Credential identifier
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L274-L291 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.enableAiApiKey | public enableAiApiKey(id: number, _options?: Configuration): Observable<boolean> {
return this.enableAiApiKeyWithHttpInfo(id, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data));
} | /**
* Enable the credential information of the model provider.
* Enable Model Provider Credential
* @param id Credential identifier
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L298-L300 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.getAiApiKeyWithHttpInfo | public getAiApiKeyWithHttpInfo(id: number, _options?: Configuration): Observable<HttpInfo<AiApiKeyInfoDTO>> {
const requestContextPromise = this.requestFactory.getAiApiKey(id, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAiApiKeyWithHttpInfo(rsp)));
}));
} | /**
* Get the credential information of the model provider.
* Get credential of Model Provider
* @param id Credential identifier
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L307-L324 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.getAiApiKey | public getAiApiKey(id: number, _options?: Configuration): Observable<AiApiKeyInfoDTO> {
return this.getAiApiKeyWithHttpInfo(id, _options).pipe(map((apiResponse: HttpInfo<AiApiKeyInfoDTO>) => apiResponse.data));
} | /**
* Get the credential information of the model provider.
* Get credential of Model Provider
* @param id Credential identifier
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L331-L333 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.getAiModelInfoWithHttpInfo | public getAiModelInfoWithHttpInfo(modelId: string, _options?: Configuration): Observable<HttpInfo<AiModelInfoDTO>> {
const requestContextPromise = this.requestFactory.getAiModelInfo(modelId, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAiModelInfoWithHttpInfo(rsp)));
}));
} | /**
* Return specific model information.
* Get Model Information
* @param modelId Model identifier
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L340-L357 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.getAiModelInfo | public getAiModelInfo(modelId: string, _options?: Configuration): Observable<AiModelInfoDTO> {
return this.getAiModelInfoWithHttpInfo(modelId, _options).pipe(map((apiResponse: HttpInfo<AiModelInfoDTO>) => apiResponse.data));
} | /**
* Return specific model information.
* Get Model Information
* @param modelId Model identifier
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L364-L366 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.listAiApiKeysWithHttpInfo | public listAiApiKeysWithHttpInfo(provider: string, _options?: Configuration): Observable<HttpInfo<Array<AiApiKeyInfoDTO>>> {
const requestContextPromise = this.requestFactory.listAiApiKeys(provider, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listAiApiKeysWithHttpInfo(rsp)));
}));
} | /**
* List all credential information of the model provider.
* List Credentials of Model Provider
* @param provider Model provider
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L373-L390 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.listAiApiKeys | public listAiApiKeys(provider: string, _options?: Configuration): Observable<Array<AiApiKeyInfoDTO>> {
return this.listAiApiKeysWithHttpInfo(provider, _options).pipe(map((apiResponse: HttpInfo<Array<AiApiKeyInfoDTO>>) => apiResponse.data));
} | /**
* List all credential information of the model provider.
* List Credentials of Model Provider
* @param provider Model provider
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L397-L399 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.listAiModelInfoWithHttpInfo | public listAiModelInfoWithHttpInfo(_options?: Configuration): Observable<HttpInfo<Array<AiModelInfoDTO>>> {
const requestContextPromise = this.requestFactory.listAiModelInfo(_options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listAiModelInfoWithHttpInfo(rsp)));
}));
} | /**
* Return model information by page, return the pageNum page, up to pageSize model information.
* List Models
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L405-L422 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.listAiModelInfo | public listAiModelInfo(_options?: Configuration): Observable<Array<AiModelInfoDTO>> {
return this.listAiModelInfoWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo<Array<AiModelInfoDTO>>) => apiResponse.data));
} | /**
* Return model information by page, return the pageNum page, up to pageSize model information.
* List Models
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L428-L430 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.listAiModelInfo1WithHttpInfo | public listAiModelInfo1WithHttpInfo(pageSize: number, _options?: Configuration): Observable<HttpInfo<Array<AiModelInfoDTO>>> {
const requestContextPromise = this.requestFactory.listAiModelInfo1(pageSize, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listAiModelInfo1WithHttpInfo(rsp)));
}));
} | /**
* Return model information by page, return the pageNum page, up to pageSize model information.
* List Models
* @param pageSize Maximum quantity
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L437-L454 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.listAiModelInfo1 | public listAiModelInfo1(pageSize: number, _options?: Configuration): Observable<Array<AiModelInfoDTO>> {
return this.listAiModelInfo1WithHttpInfo(pageSize, _options).pipe(map((apiResponse: HttpInfo<Array<AiModelInfoDTO>>) => apiResponse.data));
} | /**
* Return model information by page, return the pageNum page, up to pageSize model information.
* List Models
* @param pageSize Maximum quantity
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L461-L463 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.listAiModelInfo2WithHttpInfo | public listAiModelInfo2WithHttpInfo(pageSize: number, pageNum: number, _options?: Configuration): Observable<HttpInfo<Array<AiModelInfoDTO>>> {
const requestContextPromise = this.requestFactory.listAiModelInfo2(pageSize, pageNum, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listAiModelInfo2WithHttpInfo(rsp)));
}));
} | /**
* Return model information by page, return the pageNum page, up to pageSize model information.
* List Models
* @param pageSize Maximum quantity
* @param pageNum Current page number
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L471-L488 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAIServiceApi.listAiModelInfo2 | public listAiModelInfo2(pageSize: number, pageNum: number, _options?: Configuration): Observable<Array<AiModelInfoDTO>> {
return this.listAiModelInfo2WithHttpInfo(pageSize, pageNum, _options).pipe(map((apiResponse: HttpInfo<Array<AiModelInfoDTO>>) => apiResponse.data));
} | /**
* Return model information by page, return the pageNum page, up to pageSize model information.
* List Models
* @param pageSize Maximum quantity
* @param pageNum Current page number
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L496-L498 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.createTokenWithHttpInfo | public createTokenWithHttpInfo(duration: number, _options?: Configuration): Observable<HttpInfo<string>> {
const requestContextPromise = this.requestFactory.createToken(duration, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createTokenWithHttpInfo(rsp)));
}));
} | /**
* Create a timed API Token, valid for {duration} seconds.
* Create API Token
* @param duration Token validity duration (seconds)
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L523-L540 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.createToken | public createToken(duration: number, _options?: Configuration): Observable<string> {
return this.createTokenWithHttpInfo(duration, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data));
} | /**
* Create a timed API Token, valid for {duration} seconds.
* Create API Token
* @param duration Token validity duration (seconds)
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L547-L549 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.createToken1WithHttpInfo | public createToken1WithHttpInfo(_options?: Configuration): Observable<HttpInfo<string>> {
const requestContextPromise = this.requestFactory.createToken1(_options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createToken1WithHttpInfo(rsp)));
}));
} | /**
* Create a timed API Token, valid for {duration} seconds.
* Create API Token
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L555-L572 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.createToken1 | public createToken1(_options?: Configuration): Observable<string> {
return this.createToken1WithHttpInfo(_options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data));
} | /**
* Create a timed API Token, valid for {duration} seconds.
* Create API Token
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L578-L580 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.deleteTokenWithHttpInfo | public deleteTokenWithHttpInfo(token: string, _options?: Configuration): Observable<HttpInfo<string>> {
const requestContextPromise = this.requestFactory.deleteToken(token, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteTokenWithHttpInfo(rsp)));
}));
} | /**
* Delete an API Token.
* Delete API Token
* @param token Token content
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L587-L604 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.deleteToken | public deleteToken(token: string, _options?: Configuration): Observable<string> {
return this.deleteTokenWithHttpInfo(token, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data));
} | /**
* Delete an API Token.
* Delete API Token
* @param token Token content
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L611-L613 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.deleteTokenByIdWithHttpInfo | public deleteTokenByIdWithHttpInfo(id: number, _options?: Configuration): Observable<HttpInfo<boolean>> {
const requestContextPromise = this.requestFactory.deleteTokenById(id, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteTokenByIdWithHttpInfo(rsp)));
}));
} | /**
* Delete the API token by id.
* Delete API Token by Id
* @param id Token id
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L620-L637 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.deleteTokenById | public deleteTokenById(id: number, _options?: Configuration): Observable<boolean> {
return this.deleteTokenByIdWithHttpInfo(id, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data));
} | /**
* Delete the API token by id.
* Delete API Token by Id
* @param id Token id
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L644-L646 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.disableTokenWithHttpInfo | public disableTokenWithHttpInfo(token: string, _options?: Configuration): Observable<HttpInfo<string>> {
const requestContextPromise = this.requestFactory.disableToken(token, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.disableTokenWithHttpInfo(rsp)));
}));
} | /**
* Disable an API Token, the token is not deleted.
* Disable API Token
* @param token Token content
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L653-L670 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.disableToken | public disableToken(token: string, _options?: Configuration): Observable<string> {
return this.disableTokenWithHttpInfo(token, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data));
} | /**
* Disable an API Token, the token is not deleted.
* Disable API Token
* @param token Token content
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L677-L679 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.disableTokenByIdWithHttpInfo | public disableTokenByIdWithHttpInfo(id: number, _options?: Configuration): Observable<HttpInfo<boolean>> {
const requestContextPromise = this.requestFactory.disableTokenById(id, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.disableTokenByIdWithHttpInfo(rsp)));
}));
} | /**
* Disable the API token by id.
* Disable API Token by Id
* @param id Token id
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L686-L703 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.disableTokenById | public disableTokenById(id: number, _options?: Configuration): Observable<boolean> {
return this.disableTokenByIdWithHttpInfo(id, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data));
} | /**
* Disable the API token by id.
* Disable API Token by Id
* @param id Token id
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L710-L712 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.getTokenByIdWithHttpInfo | public getTokenByIdWithHttpInfo(id: number, _options?: Configuration): Observable<HttpInfo<string>> {
const requestContextPromise = this.requestFactory.getTokenById(id, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getTokenByIdWithHttpInfo(rsp)));
}));
} | /**
* Get the API token by id.
* Get API Token by Id
* @param id Token id
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L719-L736 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.getTokenById | public getTokenById(id: number, _options?: Configuration): Observable<string> {
return this.getTokenByIdWithHttpInfo(id, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data));
} | /**
* Get the API token by id.
* Get API Token by Id
* @param id Token id
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L743-L745 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.getUserBasicWithHttpInfo | public getUserBasicWithHttpInfo(username: string, _options?: Configuration): Observable<HttpInfo<UserBasicInfoDTO>> {
const requestContextPromise = this.requestFactory.getUserBasic(username, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getUserBasicWithHttpInfo(rsp)));
}));
} | /**
* Return user basic information, including: username, nickname, avatar link.
* Get User Basic Information
* @param username Username
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L752-L769 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.getUserBasic | public getUserBasic(username: string, _options?: Configuration): Observable<UserBasicInfoDTO> {
return this.getUserBasicWithHttpInfo(username, _options).pipe(map((apiResponse: HttpInfo<UserBasicInfoDTO>) => apiResponse.data));
} | /**
* Return user basic information, including: username, nickname, avatar link.
* Get User Basic Information
* @param username Username
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L776-L778 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.getUserBasic1WithHttpInfo | public getUserBasic1WithHttpInfo(_options?: Configuration): Observable<HttpInfo<UserBasicInfoDTO>> {
const requestContextPromise = this.requestFactory.getUserBasic1(_options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getUserBasic1WithHttpInfo(rsp)));
}));
} | /**
* Return user basic information, including: username, nickname, avatar link.
* Get User Basic Information
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L784-L801 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.getUserBasic1 | public getUserBasic1(_options?: Configuration): Observable<UserBasicInfoDTO> {
return this.getUserBasic1WithHttpInfo(_options).pipe(map((apiResponse: HttpInfo<UserBasicInfoDTO>) => apiResponse.data));
} | /**
* Return user basic information, including: username, nickname, avatar link.
* Get User Basic Information
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L807-L809 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.getUserDetailsWithHttpInfo | public getUserDetailsWithHttpInfo(_options?: Configuration): Observable<HttpInfo<UserDetailsDTO>> {
const requestContextPromise = this.requestFactory.getUserDetails(_options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getUserDetailsWithHttpInfo(rsp)));
}));
} | /**
* Return the detailed user information of the current account, the fields refer to the [standard claims](https://openid.net/specs/openid-connect-core-1_0.html#Claims) of OpenID Connect (OIDC).
* Get User Details
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L815-L832 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.getUserDetails | public getUserDetails(_options?: Configuration): Observable<UserDetailsDTO> {
return this.getUserDetailsWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo<UserDetailsDTO>) => apiResponse.data));
} | /**
* Return the detailed user information of the current account, the fields refer to the [standard claims](https://openid.net/specs/openid-connect-core-1_0.html#Claims) of OpenID Connect (OIDC).
* Get User Details
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L838-L840 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.listTokensWithHttpInfo | public listTokensWithHttpInfo(_options?: Configuration): Observable<HttpInfo<Array<ApiTokenInfoDTO>>> {
const requestContextPromise = this.requestFactory.listTokens(_options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listTokensWithHttpInfo(rsp)));
}));
} | /**
* List currently valid tokens.
* List API Tokens
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L846-L863 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.listTokens | public listTokens(_options?: Configuration): Observable<Array<ApiTokenInfoDTO>> {
return this.listTokensWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo<Array<ApiTokenInfoDTO>>) => apiResponse.data));
} | /**
* List currently valid tokens.
* List API Tokens
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L869-L871 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.updateUserInfoWithHttpInfo | public updateUserInfoWithHttpInfo(userDetailsDTO: UserDetailsDTO, _options?: Configuration): Observable<HttpInfo<boolean>> {
const requestContextPromise = this.requestFactory.updateUserInfo(userDetailsDTO, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.updateUserInfoWithHttpInfo(rsp)));
}));
} | /**
* Update the detailed user information of the current account.
* Update User Details
* @param userDetailsDTO User information
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L878-L895 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.updateUserInfo | public updateUserInfo(userDetailsDTO: UserDetailsDTO, _options?: Configuration): Observable<boolean> {
return this.updateUserInfoWithHttpInfo(userDetailsDTO, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data));
} | /**
* Update the detailed user information of the current account.
* Update User Details
* @param userDetailsDTO User information
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L902-L904 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.uploadUserPictureWithHttpInfo | public uploadUserPictureWithHttpInfo(file: HttpFile, _options?: Configuration): Observable<HttpInfo<string>> {
const requestContextPromise = this.requestFactory.uploadUserPicture(file, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.uploadUserPictureWithHttpInfo(rsp)));
}));
} | /**
* Upload a picture of the user.
* Upload User Picture
* @param file User picture
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L911-L928 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountApi.uploadUserPicture | public uploadUserPicture(file: HttpFile, _options?: Configuration): Observable<string> {
return this.uploadUserPictureWithHttpInfo(file, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data));
} | /**
* Upload a picture of the user.
* Upload User Picture
* @param file User picture
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L935-L937 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountManagerForAdminApi.createTokenForUserWithHttpInfo | public createTokenForUserWithHttpInfo(username: string, duration: number, _options?: Configuration): Observable<HttpInfo<string>> {
const requestContextPromise = this.requestFactory.createTokenForUser(username, duration, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createTokenForUserWithHttpInfo(rsp)));
}));
} | /**
* Create an API Token for a specified user, valid for duration seconds.
* Create API Token for User.
* @param username Username
* @param duration Validity period (seconds)
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L963-L980 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountManagerForAdminApi.createTokenForUser | public createTokenForUser(username: string, duration: number, _options?: Configuration): Observable<string> {
return this.createTokenForUserWithHttpInfo(username, duration, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data));
} | /**
* Create an API Token for a specified user, valid for duration seconds.
* Create API Token for User.
* @param username Username
* @param duration Validity period (seconds)
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L988-L990 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountManagerForAdminApi.createUserWithHttpInfo | public createUserWithHttpInfo(userFullDetailsDTO: UserFullDetailsDTO, _options?: Configuration): Observable<HttpInfo<boolean>> {
const requestContextPromise = this.requestFactory.createUser(userFullDetailsDTO, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createUserWithHttpInfo(rsp)));
}));
} | /**
* Create user.
* Create User
* @param userFullDetailsDTO User information
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L997-L1014 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountManagerForAdminApi.createUser | public createUser(userFullDetailsDTO: UserFullDetailsDTO, _options?: Configuration): Observable<boolean> {
return this.createUserWithHttpInfo(userFullDetailsDTO, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data));
} | /**
* Create user.
* Create User
* @param userFullDetailsDTO User information
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L1021-L1023 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountManagerForAdminApi.deleteTokenForUserWithHttpInfo | public deleteTokenForUserWithHttpInfo(token: string, _options?: Configuration): Observable<HttpInfo<boolean>> {
const requestContextPromise = this.requestFactory.deleteTokenForUser(token, _options);
// build promise chain
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
for (const middleware of this.configuration.middleware) {
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
}
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
pipe(mergeMap((response: ResponseContext) => {
let middlewarePostObservable = of(response);
for (const middleware of this.configuration.middleware) {
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
}
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteTokenForUserWithHttpInfo(rsp)));
}));
} | /**
* Delete the specified API Token.
* Delete API Token
* @param token API Token
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L1030-L1047 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
freechat | github_2023 | freechat-fun | typescript | ObservableAccountManagerForAdminApi.deleteTokenForUser | public deleteTokenForUser(token: string, _options?: Configuration): Observable<boolean> {
return this.deleteTokenForUserWithHttpInfo(token, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data));
} | /**
* Delete the specified API Token.
* Delete API Token
* @param token API Token
*/ | https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L1054-L1056 | cb80c3708b85cf52c02a91bdc0c9e9ddc14856db |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.