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
ObservableCharacterApi.listCharacterBackendsWithHttpInfo
public listCharacterBackendsWithHttpInfo(characterUid: string, _options?: Configuration): Observable<HttpInfo<Array<CharacterBackendDetailsDTO>>> { const requestContextPromise = this.requestFactory.listCharacterBackends(characterUid, _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.listCharacterBackendsWithHttpInfo(rsp))); })); }
/** * List character backends. * List Character Backends * @param characterUid The characterUid to be queried */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L2791-L2808
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.listCharacterBackends
public listCharacterBackends(characterUid: string, _options?: Configuration): Observable<Array<CharacterBackendDetailsDTO>> { return this.listCharacterBackendsWithHttpInfo(characterUid, _options).pipe(map((apiResponse: HttpInfo<Array<CharacterBackendDetailsDTO>>) => apiResponse.data)); }
/** * List character backends. * List Character Backends * @param characterUid The characterUid to be queried */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L2815-L2817
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.listCharacterDocumentsWithHttpInfo
public listCharacterDocumentsWithHttpInfo(characterUid: string, _options?: Configuration): Observable<HttpInfo<Array<string>>> { const requestContextPromise = this.requestFactory.listCharacterDocuments(characterUid, _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.listCharacterDocumentsWithHttpInfo(rsp))); })); }
/** * List documents of the character. * List Character Documents * @param characterUid Character unique identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L2824-L2841
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.listCharacterDocuments
public listCharacterDocuments(characterUid: string, _options?: Configuration): Observable<Array<string>> { return this.listCharacterDocumentsWithHttpInfo(characterUid, _options).pipe(map((apiResponse: HttpInfo<Array<string>>) => apiResponse.data)); }
/** * List documents of the character. * List Character Documents * @param characterUid Character unique identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L2848-L2850
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.listCharacterPicturesWithHttpInfo
public listCharacterPicturesWithHttpInfo(characterUid: string, _options?: Configuration): Observable<HttpInfo<Array<string>>> { const requestContextPromise = this.requestFactory.listCharacterPictures(characterUid, _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.listCharacterPicturesWithHttpInfo(rsp))); })); }
/** * List pictures of the character. * List Character Pictures * @param characterUid Character unique identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L2857-L2874
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.listCharacterPictures
public listCharacterPictures(characterUid: string, _options?: Configuration): Observable<Array<string>> { return this.listCharacterPicturesWithHttpInfo(characterUid, _options).pipe(map((apiResponse: HttpInfo<Array<string>>) => apiResponse.data)); }
/** * List pictures of the character. * List Character Pictures * @param characterUid Character unique identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L2881-L2883
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.listCharacterVersionsByNameWithHttpInfo
public listCharacterVersionsByNameWithHttpInfo(name: string, _options?: Configuration): Observable<HttpInfo<Array<CharacterItemForNameDTO>>> { const requestContextPromise = this.requestFactory.listCharacterVersionsByName(name, _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.listCharacterVersionsByNameWithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L2890-L2907
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.listCharacterVersionsByName
public listCharacterVersionsByName(name: string, _options?: Configuration): Observable<Array<CharacterItemForNameDTO>> { return this.listCharacterVersionsByNameWithHttpInfo(name, _options).pipe(map((apiResponse: HttpInfo<Array<CharacterItemForNameDTO>>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L2914-L2916
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.listCharacterVoicesWithHttpInfo
public listCharacterVoicesWithHttpInfo(characterBackendId: string, _options?: Configuration): Observable<HttpInfo<Array<string>>> { const requestContextPromise = this.requestFactory.listCharacterVoices(characterBackendId, _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.listCharacterVoicesWithHttpInfo(rsp))); })); }
/** * List voices of the character. * List Character Voices * @param characterBackendId The characterBackendId */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L2923-L2940
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.listCharacterVoices
public listCharacterVoices(characterBackendId: string, _options?: Configuration): Observable<Array<string>> { return this.listCharacterVoicesWithHttpInfo(characterBackendId, _options).pipe(map((apiResponse: HttpInfo<Array<string>>) => apiResponse.data)); }
/** * List voices of the character. * List Character Voices * @param characterBackendId The characterBackendId */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L2947-L2949
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.newCharacterNameWithHttpInfo
public newCharacterNameWithHttpInfo(desired: string, _options?: Configuration): Observable<HttpInfo<string>> { const requestContextPromise = this.requestFactory.newCharacterName(desired, _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.newCharacterNameWithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L2956-L2973
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.newCharacterName
public newCharacterName(desired: string, _options?: Configuration): Observable<string> { return this.newCharacterNameWithHttpInfo(desired, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L2980-L2982
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.publishCharacterWithHttpInfo
public publishCharacterWithHttpInfo(characterId: number, visibility: string, _options?: Configuration): Observable<HttpInfo<number>> { const requestContextPromise = this.requestFactory.publishCharacter(characterId, visibility, _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.publishCharacterWithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L2990-L3007
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.publishCharacter
public publishCharacter(characterId: number, visibility: string, _options?: Configuration): Observable<number> { return this.publishCharacterWithHttpInfo(characterId, visibility, _options).pipe(map((apiResponse: HttpInfo<number>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L3015-L3017
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.publishCharacter1WithHttpInfo
public publishCharacter1WithHttpInfo(characterId: number, _options?: Configuration): Observable<HttpInfo<number>> { const requestContextPromise = this.requestFactory.publishCharacter1(characterId, _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.publishCharacter1WithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L3024-L3041
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.publishCharacter1
public publishCharacter1(characterId: number, _options?: Configuration): Observable<number> { return this.publishCharacter1WithHttpInfo(characterId, _options).pipe(map((apiResponse: HttpInfo<number>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L3048-L3050
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.removeCharacterBackendWithHttpInfo
public removeCharacterBackendWithHttpInfo(characterBackendId: string, _options?: Configuration): Observable<HttpInfo<boolean>> { const requestContextPromise = this.requestFactory.removeCharacterBackend(characterBackendId, _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.removeCharacterBackendWithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L3057-L3074
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.removeCharacterBackend
public removeCharacterBackend(characterBackendId: string, _options?: Configuration): Observable<boolean> { return this.removeCharacterBackendWithHttpInfo(characterBackendId, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L3081-L3083
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.searchCharacterDetailsWithHttpInfo
public searchCharacterDetailsWithHttpInfo(characterQueryDTO: CharacterQueryDTO, _options?: Configuration): Observable<HttpInfo<Array<CharacterDetailsDTO>>> { const requestContextPromise = this.requestFactory.searchCharacterDetails(characterQueryDTO, _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.searchCharacterDetailsWithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L3090-L3107
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.searchCharacterDetails
public searchCharacterDetails(characterQueryDTO: CharacterQueryDTO, _options?: Configuration): Observable<Array<CharacterDetailsDTO>> { return this.searchCharacterDetailsWithHttpInfo(characterQueryDTO, _options).pipe(map((apiResponse: HttpInfo<Array<CharacterDetailsDTO>>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L3114-L3116
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.searchCharacterSummaryWithHttpInfo
public searchCharacterSummaryWithHttpInfo(characterQueryDTO: CharacterQueryDTO, _options?: Configuration): Observable<HttpInfo<Array<CharacterSummaryDTO>>> { const requestContextPromise = this.requestFactory.searchCharacterSummary(characterQueryDTO, _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.searchCharacterSummaryWithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L3123-L3140
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.searchCharacterSummary
public searchCharacterSummary(characterQueryDTO: CharacterQueryDTO, _options?: Configuration): Observable<Array<CharacterSummaryDTO>> { return this.searchCharacterSummaryWithHttpInfo(characterQueryDTO, _options).pipe(map((apiResponse: HttpInfo<Array<CharacterSummaryDTO>>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L3147-L3149
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.searchPublicCharacterSummaryWithHttpInfo
public searchPublicCharacterSummaryWithHttpInfo(characterQueryDTO: CharacterQueryDTO, _options?: Configuration): Observable<HttpInfo<Array<CharacterSummaryDTO>>> { const requestContextPromise = this.requestFactory.searchPublicCharacterSummary(characterQueryDTO, _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.searchPublicCharacterSummaryWithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L3156-L3173
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.searchPublicCharacterSummary
public searchPublicCharacterSummary(characterQueryDTO: CharacterQueryDTO, _options?: Configuration): Observable<Array<CharacterSummaryDTO>> { return this.searchPublicCharacterSummaryWithHttpInfo(characterQueryDTO, _options).pipe(map((apiResponse: HttpInfo<Array<CharacterSummaryDTO>>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L3180-L3182
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.setDefaultCharacterBackendWithHttpInfo
public setDefaultCharacterBackendWithHttpInfo(characterBackendId: string, _options?: Configuration): Observable<HttpInfo<boolean>> { const requestContextPromise = this.requestFactory.setDefaultCharacterBackend(characterBackendId, _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.setDefaultCharacterBackendWithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L3189-L3206
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.setDefaultCharacterBackend
public setDefaultCharacterBackend(characterBackendId: string, _options?: Configuration): Observable<boolean> { return this.setDefaultCharacterBackendWithHttpInfo(characterBackendId, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L3213-L3215
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.updateCharacterWithHttpInfo
public updateCharacterWithHttpInfo(characterId: number, characterUpdateDTO: CharacterUpdateDTO, _options?: Configuration): Observable<HttpInfo<boolean>> { const requestContextPromise = this.requestFactory.updateCharacter(characterId, characterUpdateDTO, _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.updateCharacterWithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L3223-L3240
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.updateCharacter
public updateCharacter(characterId: number, characterUpdateDTO: CharacterUpdateDTO, _options?: Configuration): Observable<boolean> { return this.updateCharacterWithHttpInfo(characterId, characterUpdateDTO, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L3248-L3250
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.updateCharacterBackendWithHttpInfo
public updateCharacterBackendWithHttpInfo(characterBackendId: string, characterBackendDTO: CharacterBackendDTO, _options?: Configuration): Observable<HttpInfo<boolean>> { const requestContextPromise = this.requestFactory.updateCharacterBackend(characterBackendId, characterBackendDTO, _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.updateCharacterBackendWithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L3258-L3275
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.updateCharacterBackend
public updateCharacterBackend(characterBackendId: string, characterBackendDTO: CharacterBackendDTO, _options?: Configuration): Observable<boolean> { return this.updateCharacterBackendWithHttpInfo(characterBackendId, characterBackendDTO, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L3283-L3285
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.uploadCharacterAvatarWithHttpInfo
public uploadCharacterAvatarWithHttpInfo(characterUid: string, file: HttpFile, _options?: Configuration): Observable<HttpInfo<string>> { const requestContextPromise = this.requestFactory.uploadCharacterAvatar(characterUid, 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.uploadCharacterAvatarWithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L3293-L3310
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.uploadCharacterAvatar
public uploadCharacterAvatar(characterUid: string, file: HttpFile, _options?: Configuration): Observable<string> { return this.uploadCharacterAvatarWithHttpInfo(characterUid, file, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L3318-L3320
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.uploadCharacterDocumentWithHttpInfo
public uploadCharacterDocumentWithHttpInfo(characterUid: string, file: HttpFile, _options?: Configuration): Observable<HttpInfo<string>> { const requestContextPromise = this.requestFactory.uploadCharacterDocument(characterUid, 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.uploadCharacterDocumentWithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L3328-L3345
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.uploadCharacterDocument
public uploadCharacterDocument(characterUid: string, file: HttpFile, _options?: Configuration): Observable<string> { return this.uploadCharacterDocumentWithHttpInfo(characterUid, file, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L3353-L3355
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.uploadCharacterPictureWithHttpInfo
public uploadCharacterPictureWithHttpInfo(characterUid: string, file: HttpFile, _options?: Configuration): Observable<HttpInfo<string>> { const requestContextPromise = this.requestFactory.uploadCharacterPicture(characterUid, 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.uploadCharacterPictureWithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L3363-L3380
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.uploadCharacterPicture
public uploadCharacterPicture(characterUid: string, file: HttpFile, _options?: Configuration): Observable<string> { return this.uploadCharacterPictureWithHttpInfo(characterUid, file, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L3388-L3390
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.uploadCharacterVoiceWithHttpInfo
public uploadCharacterVoiceWithHttpInfo(characterBackendId: string, file: HttpFile, _options?: Configuration): Observable<HttpInfo<string>> { const requestContextPromise = this.requestFactory.uploadCharacterVoice(characterBackendId, 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.uploadCharacterVoiceWithHttpInfo(rsp))); })); }
/** * 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/types/ObservableAPI.ts#L3398-L3415
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableCharacterApi.uploadCharacterVoice
public uploadCharacterVoice(characterBackendId: string, file: HttpFile, _options?: Configuration): Observable<string> { return this.uploadCharacterVoiceWithHttpInfo(characterBackendId, file, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data)); }
/** * 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/types/ObservableAPI.ts#L3423-L3425
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.clearMemoryWithHttpInfo
public clearMemoryWithHttpInfo(chatId: string, _options?: Configuration): Observable<HttpInfo<Array<ChatMessageRecordDTO>>> { const requestContextPromise = this.requestFactory.clearMemory(chatId, _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.clearMemoryWithHttpInfo(rsp))); })); }
/** * Clear memory of the chat session. * Clear Memory * @param chatId Chat session identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3450-L3467
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.clearMemory
public clearMemory(chatId: string, _options?: Configuration): Observable<Array<ChatMessageRecordDTO>> { return this.clearMemoryWithHttpInfo(chatId, _options).pipe(map((apiResponse: HttpInfo<Array<ChatMessageRecordDTO>>) => apiResponse.data)); }
/** * Clear memory of the chat session. * Clear Memory * @param chatId Chat session identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3474-L3476
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.deleteChatWithHttpInfo
public deleteChatWithHttpInfo(chatId: string, _options?: Configuration): Observable<HttpInfo<boolean>> { const requestContextPromise = this.requestFactory.deleteChat(chatId, _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.deleteChatWithHttpInfo(rsp))); })); }
/** * Delete the chat session. * Delete Chat Session * @param chatId Chat session identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3483-L3500
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.deleteChat
public deleteChat(chatId: string, _options?: Configuration): Observable<boolean> { return this.deleteChatWithHttpInfo(chatId, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data)); }
/** * Delete the chat session. * Delete Chat Session * @param chatId Chat session identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3507-L3509
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.getDefaultChatIdWithHttpInfo
public getDefaultChatIdWithHttpInfo(characterUid: string, _options?: Configuration): Observable<HttpInfo<string>> { const requestContextPromise = this.requestFactory.getDefaultChatId(characterUid, _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.getDefaultChatIdWithHttpInfo(rsp))); })); }
/** * Get default chat id of current user and the character. * Get Default Chat * @param characterUid Character uid */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3516-L3533
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.getDefaultChatId
public getDefaultChatId(characterUid: string, _options?: Configuration): Observable<string> { return this.getDefaultChatIdWithHttpInfo(characterUid, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data)); }
/** * Get default chat id of current user and the character. * Get Default Chat * @param characterUid Character uid */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3540-L3542
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.getMemoryUsageWithHttpInfo
public getMemoryUsageWithHttpInfo(chatId: string, _options?: Configuration): Observable<HttpInfo<MemoryUsageDTO>> { const requestContextPromise = this.requestFactory.getMemoryUsage(chatId, _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.getMemoryUsageWithHttpInfo(rsp))); })); }
/** * Get memory usage of a chat. * Get Memory Usage * @param chatId Chat session identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3549-L3566
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.getMemoryUsage
public getMemoryUsage(chatId: string, _options?: Configuration): Observable<MemoryUsageDTO> { return this.getMemoryUsageWithHttpInfo(chatId, _options).pipe(map((apiResponse: HttpInfo<MemoryUsageDTO>) => apiResponse.data)); }
/** * Get memory usage of a chat. * Get Memory Usage * @param chatId Chat session identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3573-L3575
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.listChatsWithHttpInfo
public listChatsWithHttpInfo(_options?: Configuration): Observable<HttpInfo<Array<ChatSessionDTO>>> { const requestContextPromise = this.requestFactory.listChats(_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.listChatsWithHttpInfo(rsp))); })); }
/** * List chats of current user. * List Chats */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3581-L3598
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.listChats
public listChats(_options?: Configuration): Observable<Array<ChatSessionDTO>> { return this.listChatsWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo<Array<ChatSessionDTO>>) => apiResponse.data)); }
/** * List chats of current user. * List Chats */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3604-L3606
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.listDebugMessagesWithHttpInfo
public listDebugMessagesWithHttpInfo(chatId: string, limit: number, _options?: Configuration): Observable<HttpInfo<Array<ChatMessageRecordDTO>>> { const requestContextPromise = this.requestFactory.listDebugMessages(chatId, limit, _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.listDebugMessagesWithHttpInfo(rsp))); })); }
/** * List debug messages of a chat. * List Chat Debug Messages * @param chatId Chat session identifier * @param limit Messages limit */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3614-L3631
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.listDebugMessages
public listDebugMessages(chatId: string, limit: number, _options?: Configuration): Observable<Array<ChatMessageRecordDTO>> { return this.listDebugMessagesWithHttpInfo(chatId, limit, _options).pipe(map((apiResponse: HttpInfo<Array<ChatMessageRecordDTO>>) => apiResponse.data)); }
/** * List debug messages of a chat. * List Chat Debug Messages * @param chatId Chat session identifier * @param limit Messages limit */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3639-L3641
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.listDebugMessages1WithHttpInfo
public listDebugMessages1WithHttpInfo(chatId: string, limit: number, offset: number, _options?: Configuration): Observable<HttpInfo<Array<ChatMessageRecordDTO>>> { const requestContextPromise = this.requestFactory.listDebugMessages1(chatId, limit, offset, _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.listDebugMessages1WithHttpInfo(rsp))); })); }
/** * List debug messages of a chat. * List Chat Debug Messages * @param chatId Chat session identifier * @param limit Messages limit * @param offset Messages offset (from new to old) */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3650-L3667
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.listDebugMessages1
public listDebugMessages1(chatId: string, limit: number, offset: number, _options?: Configuration): Observable<Array<ChatMessageRecordDTO>> { return this.listDebugMessages1WithHttpInfo(chatId, limit, offset, _options).pipe(map((apiResponse: HttpInfo<Array<ChatMessageRecordDTO>>) => apiResponse.data)); }
/** * List debug messages of a chat. * List Chat Debug Messages * @param chatId Chat session identifier * @param limit Messages limit * @param offset Messages offset (from new to old) */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3676-L3678
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.listDebugMessages2WithHttpInfo
public listDebugMessages2WithHttpInfo(chatId: string, _options?: Configuration): Observable<HttpInfo<Array<ChatMessageRecordDTO>>> { const requestContextPromise = this.requestFactory.listDebugMessages2(chatId, _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.listDebugMessages2WithHttpInfo(rsp))); })); }
/** * List debug messages of a chat. * List Chat Debug Messages * @param chatId Chat session identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3685-L3702
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.listDebugMessages2
public listDebugMessages2(chatId: string, _options?: Configuration): Observable<Array<ChatMessageRecordDTO>> { return this.listDebugMessages2WithHttpInfo(chatId, _options).pipe(map((apiResponse: HttpInfo<Array<ChatMessageRecordDTO>>) => apiResponse.data)); }
/** * List debug messages of a chat. * List Chat Debug Messages * @param chatId Chat session identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3709-L3711
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.listMessagesWithHttpInfo
public listMessagesWithHttpInfo(chatId: string, limit: number, _options?: Configuration): Observable<HttpInfo<Array<ChatMessageRecordDTO>>> { const requestContextPromise = this.requestFactory.listMessages(chatId, limit, _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.listMessagesWithHttpInfo(rsp))); })); }
/** * List messages of a chat. * List Chat Messages * @param chatId Chat session identifier * @param limit Messages limit */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3719-L3736
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.listMessages
public listMessages(chatId: string, limit: number, _options?: Configuration): Observable<Array<ChatMessageRecordDTO>> { return this.listMessagesWithHttpInfo(chatId, limit, _options).pipe(map((apiResponse: HttpInfo<Array<ChatMessageRecordDTO>>) => apiResponse.data)); }
/** * List messages of a chat. * List Chat Messages * @param chatId Chat session identifier * @param limit Messages limit */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3744-L3746
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.listMessages1WithHttpInfo
public listMessages1WithHttpInfo(chatId: string, limit: number, offset: number, _options?: Configuration): Observable<HttpInfo<Array<ChatMessageRecordDTO>>> { const requestContextPromise = this.requestFactory.listMessages1(chatId, limit, offset, _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.listMessages1WithHttpInfo(rsp))); })); }
/** * List messages of a chat. * List Chat Messages * @param chatId Chat session identifier * @param limit Messages limit * @param offset Messages offset (from new to old) */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3755-L3772
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.listMessages1
public listMessages1(chatId: string, limit: number, offset: number, _options?: Configuration): Observable<Array<ChatMessageRecordDTO>> { return this.listMessages1WithHttpInfo(chatId, limit, offset, _options).pipe(map((apiResponse: HttpInfo<Array<ChatMessageRecordDTO>>) => apiResponse.data)); }
/** * List messages of a chat. * List Chat Messages * @param chatId Chat session identifier * @param limit Messages limit * @param offset Messages offset (from new to old) */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3781-L3783
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.listMessages2WithHttpInfo
public listMessages2WithHttpInfo(chatId: string, _options?: Configuration): Observable<HttpInfo<Array<ChatMessageRecordDTO>>> { const requestContextPromise = this.requestFactory.listMessages2(chatId, _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.listMessages2WithHttpInfo(rsp))); })); }
/** * List messages of a chat. * List Chat Messages * @param chatId Chat session identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3790-L3807
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.listMessages2
public listMessages2(chatId: string, _options?: Configuration): Observable<Array<ChatMessageRecordDTO>> { return this.listMessages2WithHttpInfo(chatId, _options).pipe(map((apiResponse: HttpInfo<Array<ChatMessageRecordDTO>>) => apiResponse.data)); }
/** * List messages of a chat. * List Chat Messages * @param chatId Chat session identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3814-L3816
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.rollbackMessagesWithHttpInfo
public rollbackMessagesWithHttpInfo(chatId: string, count: number, _options?: Configuration): Observable<HttpInfo<Array<number>>> { const requestContextPromise = this.requestFactory.rollbackMessages(chatId, count, _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.rollbackMessagesWithHttpInfo(rsp))); })); }
/** * Rollback messages of a chat. * Rollback Chat Messages * @param chatId Chat session identifier * @param count Message count to be rolled back */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3824-L3841
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.rollbackMessages
public rollbackMessages(chatId: string, count: number, _options?: Configuration): Observable<Array<number>> { return this.rollbackMessagesWithHttpInfo(chatId, count, _options).pipe(map((apiResponse: HttpInfo<Array<number>>) => apiResponse.data)); }
/** * Rollback messages of a chat. * Rollback Chat Messages * @param chatId Chat session identifier * @param count Message count to be rolled back */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3849-L3851
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.sendAssistantWithHttpInfo
public sendAssistantWithHttpInfo(chatId: string, assistantUid: string, _options?: Configuration): Observable<HttpInfo<LlmResultDTO>> { const requestContextPromise = this.requestFactory.sendAssistant(chatId, assistantUid, _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.sendAssistantWithHttpInfo(rsp))); })); }
/** * Send a message to assistant for a new chat message. * Send Assistant for Chat Message * @param chatId Chat session identifier * @param assistantUid Assistant uid */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3859-L3876
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.sendAssistant
public sendAssistant(chatId: string, assistantUid: string, _options?: Configuration): Observable<LlmResultDTO> { return this.sendAssistantWithHttpInfo(chatId, assistantUid, _options).pipe(map((apiResponse: HttpInfo<LlmResultDTO>) => apiResponse.data)); }
/** * Send a message to assistant for a new chat message. * Send Assistant for Chat Message * @param chatId Chat session identifier * @param assistantUid Assistant uid */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3884-L3886
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.sendMessageWithHttpInfo
public sendMessageWithHttpInfo(chatId: string, chatMessageDTO: ChatMessageDTO, _options?: Configuration): Observable<HttpInfo<LlmResultDTO>> { const requestContextPromise = this.requestFactory.sendMessage(chatId, chatMessageDTO, _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.sendMessageWithHttpInfo(rsp))); })); }
/** * Send a chat message to character. * Send Chat Message * @param chatId Chat session identifier * @param chatMessageDTO Chat message */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3894-L3911
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.sendMessage
public sendMessage(chatId: string, chatMessageDTO: ChatMessageDTO, _options?: Configuration): Observable<LlmResultDTO> { return this.sendMessageWithHttpInfo(chatId, chatMessageDTO, _options).pipe(map((apiResponse: HttpInfo<LlmResultDTO>) => apiResponse.data)); }
/** * Send a chat message to character. * Send Chat Message * @param chatId Chat session identifier * @param chatMessageDTO Chat message */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3919-L3921
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.startChatWithHttpInfo
public startChatWithHttpInfo(chatCreateDTO: ChatCreateDTO, _options?: Configuration): Observable<HttpInfo<string>> { const requestContextPromise = this.requestFactory.startChat(chatCreateDTO, _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.startChatWithHttpInfo(rsp))); })); }
/** * Start a chat session. * Start Chat Session * @param chatCreateDTO Parameters for starting a chat session */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3928-L3945
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.startChat
public startChat(chatCreateDTO: ChatCreateDTO, _options?: Configuration): Observable<string> { return this.startChatWithHttpInfo(chatCreateDTO, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data)); }
/** * Start a chat session. * Start Chat Session * @param chatCreateDTO Parameters for starting a chat session */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3952-L3954
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.streamSendAssistantWithHttpInfo
public streamSendAssistantWithHttpInfo(chatId: string, assistantUid: string, _options?: Configuration): Observable<HttpInfo<SseEmitter>> { const requestContextPromise = this.requestFactory.streamSendAssistant(chatId, assistantUid, _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.streamSendAssistantWithHttpInfo(rsp))); })); }
/** * Refer to /api/v2/chat/send/assistant/{chatId}/{assistantUid}, stream back chunks of the response. * Send Assistant for Chat Message by Streaming Back * @param chatId Chat session identifier * @param assistantUid Assistant uid */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3962-L3979
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.streamSendAssistant
public streamSendAssistant(chatId: string, assistantUid: string, _options?: Configuration): Observable<SseEmitter> { return this.streamSendAssistantWithHttpInfo(chatId, assistantUid, _options).pipe(map((apiResponse: HttpInfo<SseEmitter>) => apiResponse.data)); }
/** * Refer to /api/v2/chat/send/assistant/{chatId}/{assistantUid}, stream back chunks of the response. * Send Assistant for Chat Message by Streaming Back * @param chatId Chat session identifier * @param assistantUid Assistant uid */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3987-L3989
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.streamSendMessageWithHttpInfo
public streamSendMessageWithHttpInfo(chatId: string, chatMessageDTO: ChatMessageDTO, _options?: Configuration): Observable<HttpInfo<SseEmitter>> { const requestContextPromise = this.requestFactory.streamSendMessage(chatId, chatMessageDTO, _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.streamSendMessageWithHttpInfo(rsp))); })); }
/** * Refer to /api/v2/chat/send/{chatId}, stream back chunks of the response. * Send Chat Message by Streaming Back * @param chatId Chat session identifier * @param chatMessageDTO Chat message */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L3997-L4014
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.streamSendMessage
public streamSendMessage(chatId: string, chatMessageDTO: ChatMessageDTO, _options?: Configuration): Observable<SseEmitter> { return this.streamSendMessageWithHttpInfo(chatId, chatMessageDTO, _options).pipe(map((apiResponse: HttpInfo<SseEmitter>) => apiResponse.data)); }
/** * Refer to /api/v2/chat/send/{chatId}, stream back chunks of the response. * Send Chat Message by Streaming Back * @param chatId Chat session identifier * @param chatMessageDTO Chat message */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4022-L4024
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.updateChatWithHttpInfo
public updateChatWithHttpInfo(chatId: string, chatUpdateDTO: ChatUpdateDTO, _options?: Configuration): Observable<HttpInfo<boolean>> { const requestContextPromise = this.requestFactory.updateChat(chatId, chatUpdateDTO, _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.updateChatWithHttpInfo(rsp))); })); }
/** * Update the chat session. * Update Chat Session * @param chatId Chat session identifier * @param chatUpdateDTO The chat session information to be updated */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4032-L4049
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableChatApi.updateChat
public updateChat(chatId: string, chatUpdateDTO: ChatUpdateDTO, _options?: Configuration): Observable<boolean> { return this.updateChatWithHttpInfo(chatId, chatUpdateDTO, _options).pipe(map((apiResponse: HttpInfo<boolean>) => apiResponse.data)); }
/** * Update the chat session. * Update Chat Session * @param chatId Chat session identifier * @param chatUpdateDTO The chat session information to be updated */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4057-L4059
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableEncryptionManagerForAdminApi.encryptTextWithHttpInfo
public encryptTextWithHttpInfo(text: string, _options?: Configuration): Observable<HttpInfo<string>> { const requestContextPromise = this.requestFactory.encryptText(text, _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.encryptTextWithHttpInfo(rsp))); })); }
/** * Encrypt a piece of text with the built-in key. * Encrypt Text * @param text Text to be encrypted */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4084-L4101
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableEncryptionManagerForAdminApi.encryptText
public encryptText(text: string, _options?: Configuration): Observable<string> { return this.encryptTextWithHttpInfo(text, _options).pipe(map((apiResponse: HttpInfo<string>) => apiResponse.data)); }
/** * Encrypt a piece of text with the built-in key. * Encrypt Text * @param text Text to be encrypted */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4108-L4110
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.addStatisticWithHttpInfo
public addStatisticWithHttpInfo(infoType: string, infoId: string, statsType: string, delta: number, _options?: Configuration): Observable<HttpInfo<number>> { const requestContextPromise = this.requestFactory.addStatistic(infoType, infoId, statsType, delta, _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.addStatisticWithHttpInfo(rsp))); })); }
/** * Add the statistics of the corresponding metrics of the corresponding resources. The increment can be negative. Return the latest statistics. * Add Statistics * @param infoType Info type: prompt | agent | plugin | character * @param infoId Unique resource identifier * @param statsType Statistics type: view_count | refer_count | recommend_count | score * @param delta Delta in statistical value */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4138-L4155
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.addStatistic
public addStatistic(infoType: string, infoId: string, statsType: string, delta: number, _options?: Configuration): Observable<number> { return this.addStatisticWithHttpInfo(infoType, infoId, statsType, delta, _options).pipe(map((apiResponse: HttpInfo<number>) => apiResponse.data)); }
/** * Add the statistics of the corresponding metrics of the corresponding resources. The increment can be negative. Return the latest statistics. * Add Statistics * @param infoType Info type: prompt | agent | plugin | character * @param infoId Unique resource identifier * @param statsType Statistics type: view_count | refer_count | recommend_count | score * @param delta Delta in statistical value */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4165-L4167
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.getScoreWithHttpInfo
public getScoreWithHttpInfo(infoType: string, infoId: string, _options?: Configuration): Observable<HttpInfo<number>> { const requestContextPromise = this.requestFactory.getScore(infoType, infoId, _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.getScoreWithHttpInfo(rsp))); })); }
/** * Get the current user\'s score for the corresponding resource. * Get Score for Resource * @param infoType Info type: prompt | agent | plugin | character * @param infoId Unique resource identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4175-L4192
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.getScore
public getScore(infoType: string, infoId: string, _options?: Configuration): Observable<number> { return this.getScoreWithHttpInfo(infoType, infoId, _options).pipe(map((apiResponse: HttpInfo<number>) => apiResponse.data)); }
/** * Get the current user\'s score for the corresponding resource. * Get Score for Resource * @param infoType Info type: prompt | agent | plugin | character * @param infoId Unique resource identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4200-L4202
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.getStatisticWithHttpInfo
public getStatisticWithHttpInfo(infoType: string, infoId: string, statsType: string, _options?: Configuration): Observable<HttpInfo<number>> { const requestContextPromise = this.requestFactory.getStatistic(infoType, infoId, statsType, _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.getStatisticWithHttpInfo(rsp))); })); }
/** * Get the statistics of the corresponding metrics of the corresponding resources. * Get Statistics * @param infoType Info type: prompt | agent | plugin | character * @param infoId Unique resource identifier * @param statsType Statistics type: view_count | refer_count | recommend_count | score */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4211-L4228
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.getStatistic
public getStatistic(infoType: string, infoId: string, statsType: string, _options?: Configuration): Observable<number> { return this.getStatisticWithHttpInfo(infoType, infoId, statsType, _options).pipe(map((apiResponse: HttpInfo<number>) => apiResponse.data)); }
/** * Get the statistics of the corresponding metrics of the corresponding resources. * Get Statistics * @param infoType Info type: prompt | agent | plugin | character * @param infoId Unique resource identifier * @param statsType Statistics type: view_count | refer_count | recommend_count | score */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4237-L4239
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.getStatisticsWithHttpInfo
public getStatisticsWithHttpInfo(infoType: string, infoId: string, _options?: Configuration): Observable<HttpInfo<InteractiveStatsDTO>> { const requestContextPromise = this.requestFactory.getStatistics(infoType, infoId, _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.getStatisticsWithHttpInfo(rsp))); })); }
/** * Get all statistics of the corresponding resources. * Get All Statistics * @param infoType Info type: prompt | agent | plugin | character * @param infoId Unique resource identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4247-L4264
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.getStatistics
public getStatistics(infoType: string, infoId: string, _options?: Configuration): Observable<InteractiveStatsDTO> { return this.getStatisticsWithHttpInfo(infoType, infoId, _options).pipe(map((apiResponse: HttpInfo<InteractiveStatsDTO>) => apiResponse.data)); }
/** * Get all statistics of the corresponding resources. * Get All Statistics * @param infoType Info type: prompt | agent | plugin | character * @param infoId Unique resource identifier */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4272-L4274
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.increaseStatisticWithHttpInfo
public increaseStatisticWithHttpInfo(infoType: string, infoId: string, statsType: string, _options?: Configuration): Observable<HttpInfo<number>> { const requestContextPromise = this.requestFactory.increaseStatistic(infoType, infoId, statsType, _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.increaseStatisticWithHttpInfo(rsp))); })); }
/** * Increase the statistics of the corresponding metrics of the corresponding resources by one. Return the latest statistics. * Increase Statistics * @param infoType Info type: prompt | agent | plugin | character * @param infoId Unique resource identifier * @param statsType Statistics type: view_count | refer_count | recommend_count | score */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4283-L4300
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.increaseStatistic
public increaseStatistic(infoType: string, infoId: string, statsType: string, _options?: Configuration): Observable<number> { return this.increaseStatisticWithHttpInfo(infoType, infoId, statsType, _options).pipe(map((apiResponse: HttpInfo<number>) => apiResponse.data)); }
/** * Increase the statistics of the corresponding metrics of the corresponding resources by one. Return the latest statistics. * Increase Statistics * @param infoType Info type: prompt | agent | plugin | character * @param infoId Unique resource identifier * @param statsType Statistics type: view_count | refer_count | recommend_count | score */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4309-L4311
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.listAgentsByStatisticWithHttpInfo
public listAgentsByStatisticWithHttpInfo(statsType: string, pageSize: number, asc?: string, _options?: Configuration): Observable<HttpInfo<Array<AgentSummaryStatsDTO>>> { const requestContextPromise = this.requestFactory.listAgentsByStatistic(statsType, pageSize, asc, _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.listAgentsByStatisticWithHttpInfo(rsp))); })); }
/** * List agents based on statistics, including interactive statistical data. * List Agents by Statistics * @param statsType Statistics type: view_count | refer_count | recommend_count | score * @param pageSize Maximum quantity * @param [asc] Default is descending order, set asc&#x3D;1 for ascending order */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4320-L4337
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.listAgentsByStatistic
public listAgentsByStatistic(statsType: string, pageSize: number, asc?: string, _options?: Configuration): Observable<Array<AgentSummaryStatsDTO>> { return this.listAgentsByStatisticWithHttpInfo(statsType, pageSize, asc, _options).pipe(map((apiResponse: HttpInfo<Array<AgentSummaryStatsDTO>>) => apiResponse.data)); }
/** * List agents based on statistics, including interactive statistical data. * List Agents by Statistics * @param statsType Statistics type: view_count | refer_count | recommend_count | score * @param pageSize Maximum quantity * @param [asc] Default is descending order, set asc&#x3D;1 for ascending order */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4346-L4348
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.listAgentsByStatistic1WithHttpInfo
public listAgentsByStatistic1WithHttpInfo(statsType: string, pageSize: number, pageNum: number, asc?: string, _options?: Configuration): Observable<HttpInfo<Array<AgentSummaryStatsDTO>>> { const requestContextPromise = this.requestFactory.listAgentsByStatistic1(statsType, pageSize, pageNum, asc, _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.listAgentsByStatistic1WithHttpInfo(rsp))); })); }
/** * List agents based on statistics, including interactive statistical data. * List Agents by Statistics * @param statsType Statistics type: view_count | refer_count | recommend_count | score * @param pageSize Maximum quantity * @param pageNum Current page number * @param [asc] Default is descending order, set asc&#x3D;1 for ascending order */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4358-L4375
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.listAgentsByStatistic1
public listAgentsByStatistic1(statsType: string, pageSize: number, pageNum: number, asc?: string, _options?: Configuration): Observable<Array<AgentSummaryStatsDTO>> { return this.listAgentsByStatistic1WithHttpInfo(statsType, pageSize, pageNum, asc, _options).pipe(map((apiResponse: HttpInfo<Array<AgentSummaryStatsDTO>>) => apiResponse.data)); }
/** * List agents based on statistics, including interactive statistical data. * List Agents by Statistics * @param statsType Statistics type: view_count | refer_count | recommend_count | score * @param pageSize Maximum quantity * @param pageNum Current page number * @param [asc] Default is descending order, set asc&#x3D;1 for ascending order */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4385-L4387
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.listAgentsByStatistic2WithHttpInfo
public listAgentsByStatistic2WithHttpInfo(statsType: string, asc?: string, _options?: Configuration): Observable<HttpInfo<Array<AgentSummaryStatsDTO>>> { const requestContextPromise = this.requestFactory.listAgentsByStatistic2(statsType, asc, _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.listAgentsByStatistic2WithHttpInfo(rsp))); })); }
/** * List agents based on statistics, including interactive statistical data. * List Agents by Statistics * @param statsType Statistics type: view_count | refer_count | recommend_count | score * @param [asc] Default is descending order, set asc&#x3D;1 for ascending order */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4395-L4412
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.listAgentsByStatistic2
public listAgentsByStatistic2(statsType: string, asc?: string, _options?: Configuration): Observable<Array<AgentSummaryStatsDTO>> { return this.listAgentsByStatistic2WithHttpInfo(statsType, asc, _options).pipe(map((apiResponse: HttpInfo<Array<AgentSummaryStatsDTO>>) => apiResponse.data)); }
/** * List agents based on statistics, including interactive statistical data. * List Agents by Statistics * @param statsType Statistics type: view_count | refer_count | recommend_count | score * @param [asc] Default is descending order, set asc&#x3D;1 for ascending order */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4420-L4422
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.listCharactersByStatisticWithHttpInfo
public listCharactersByStatisticWithHttpInfo(statsType: string, asc?: string, _options?: Configuration): Observable<HttpInfo<Array<CharacterSummaryStatsDTO>>> { const requestContextPromise = this.requestFactory.listCharactersByStatistic(statsType, asc, _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.listCharactersByStatisticWithHttpInfo(rsp))); })); }
/** * List characters based on statistics, including interactive statistical data. * List Characters by Statistics * @param statsType Statistics type: view_count | refer_count | recommend_count | score * @param [asc] Default is descending order, set asc&#x3D;1 for ascending order */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4430-L4447
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.listCharactersByStatistic
public listCharactersByStatistic(statsType: string, asc?: string, _options?: Configuration): Observable<Array<CharacterSummaryStatsDTO>> { return this.listCharactersByStatisticWithHttpInfo(statsType, asc, _options).pipe(map((apiResponse: HttpInfo<Array<CharacterSummaryStatsDTO>>) => apiResponse.data)); }
/** * List characters based on statistics, including interactive statistical data. * List Characters by Statistics * @param statsType Statistics type: view_count | refer_count | recommend_count | score * @param [asc] Default is descending order, set asc&#x3D;1 for ascending order */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4455-L4457
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.listCharactersByStatistic1WithHttpInfo
public listCharactersByStatistic1WithHttpInfo(statsType: string, pageSize: number, asc?: string, _options?: Configuration): Observable<HttpInfo<Array<CharacterSummaryStatsDTO>>> { const requestContextPromise = this.requestFactory.listCharactersByStatistic1(statsType, pageSize, asc, _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.listCharactersByStatistic1WithHttpInfo(rsp))); })); }
/** * List characters based on statistics, including interactive statistical data. * List Characters by Statistics * @param statsType Statistics type: view_count | refer_count | recommend_count | score * @param pageSize Maximum quantity * @param [asc] Default is descending order, set asc&#x3D;1 for ascending order */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4466-L4483
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.listCharactersByStatistic1
public listCharactersByStatistic1(statsType: string, pageSize: number, asc?: string, _options?: Configuration): Observable<Array<CharacterSummaryStatsDTO>> { return this.listCharactersByStatistic1WithHttpInfo(statsType, pageSize, asc, _options).pipe(map((apiResponse: HttpInfo<Array<CharacterSummaryStatsDTO>>) => apiResponse.data)); }
/** * List characters based on statistics, including interactive statistical data. * List Characters by Statistics * @param statsType Statistics type: view_count | refer_count | recommend_count | score * @param pageSize Maximum quantity * @param [asc] Default is descending order, set asc&#x3D;1 for ascending order */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4492-L4494
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.listCharactersByStatistic2WithHttpInfo
public listCharactersByStatistic2WithHttpInfo(statsType: string, pageSize: number, pageNum: number, asc?: string, _options?: Configuration): Observable<HttpInfo<Array<CharacterSummaryStatsDTO>>> { const requestContextPromise = this.requestFactory.listCharactersByStatistic2(statsType, pageSize, pageNum, asc, _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.listCharactersByStatistic2WithHttpInfo(rsp))); })); }
/** * List characters based on statistics, including interactive statistical data. * List Characters by Statistics * @param statsType Statistics type: view_count | refer_count | recommend_count | score * @param pageSize Maximum quantity * @param pageNum Current page number * @param [asc] Default is descending order, set asc&#x3D;1 for ascending order */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4504-L4521
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.listCharactersByStatistic2
public listCharactersByStatistic2(statsType: string, pageSize: number, pageNum: number, asc?: string, _options?: Configuration): Observable<Array<CharacterSummaryStatsDTO>> { return this.listCharactersByStatistic2WithHttpInfo(statsType, pageSize, pageNum, asc, _options).pipe(map((apiResponse: HttpInfo<Array<CharacterSummaryStatsDTO>>) => apiResponse.data)); }
/** * List characters based on statistics, including interactive statistical data. * List Characters by Statistics * @param statsType Statistics type: view_count | refer_count | recommend_count | score * @param pageSize Maximum quantity * @param pageNum Current page number * @param [asc] Default is descending order, set asc&#x3D;1 for ascending order */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4531-L4533
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.listHotTagsWithHttpInfo
public listHotTagsWithHttpInfo(infoType: string, pageSize: number, text?: string, _options?: Configuration): Observable<HttpInfo<Array<HotTagDTO>>> { const requestContextPromise = this.requestFactory.listHotTags(infoType, pageSize, text, _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.listHotTagsWithHttpInfo(rsp))); })); }
/** * Get popular tags for a specified info type. * Hot Tags * @param infoType Info type: prompt | agent | plugin | character * @param pageSize Maximum quantity * @param [text] Key word */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4542-L4559
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db
freechat
github_2023
freechat-fun
typescript
ObservableInteractiveStatisticsApi.listHotTags
public listHotTags(infoType: string, pageSize: number, text?: string, _options?: Configuration): Observable<Array<HotTagDTO>> { return this.listHotTagsWithHttpInfo(infoType, pageSize, text, _options).pipe(map((apiResponse: HttpInfo<Array<HotTagDTO>>) => apiResponse.data)); }
/** * Get popular tags for a specified info type. * Hot Tags * @param infoType Info type: prompt | agent | plugin | character * @param pageSize Maximum quantity * @param [text] Key word */
https://github.com/freechat-fun/freechat/blob/cb80c3708b85cf52c02a91bdc0c9e9ddc14856db/freechat-sdk/typescript/types/ObservableAPI.ts#L4568-L4570
cb80c3708b85cf52c02a91bdc0c9e9ddc14856db