(
body: SubmitFeedbackBody,
providerName?: string | undefined,
options: {
readonly oauthRef?: KimiOAuthTokenRef | undefined;
readonly baseUrl?: string | undefined;
} = {},
)
| 301 | } |
| 302 | |
| 303 | async submitFeedback( |
| 304 | body: SubmitFeedbackBody, |
| 305 | providerName?: string | undefined, |
| 306 | options: { |
| 307 | readonly oauthRef?: KimiOAuthTokenRef | undefined; |
| 308 | readonly baseUrl?: string | undefined; |
| 309 | } = {}, |
| 310 | ): Promise<FetchSubmitFeedbackResult> { |
| 311 | return this.withAccessToken( |
| 312 | providerName, |
| 313 | options, |
| 314 | (accessToken) => fetchSubmitFeedback(managedFeedbackUrl(options.baseUrl), accessToken, body), |
| 315 | ); |
| 316 | } |
| 317 | |
| 318 | private async withAccessToken<T>( |
| 319 | providerName: string | undefined, |
nothing calls this directly
no test coverage detected