-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9444 from hicommonwealth/tim/api-key-auth-perf-im…
…provments
- Loading branch information
Showing
2,173 changed files
with
22,993 additions
and
15,308 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,47 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
import * as environments from "./environments"; | ||
import * as core from "./core"; | ||
import { Community } from "./api/resources/community/client/Client"; | ||
import { Comment } from "./api/resources/comment/client/Client"; | ||
import { Thread } from "./api/resources/thread/client/Client"; | ||
import { Reaction } from "./api/resources/reaction/client/Client"; | ||
import { Comment } from './api/resources/comment/client/Client'; | ||
import { Community } from './api/resources/community/client/Client'; | ||
import { Reaction } from './api/resources/reaction/client/Client'; | ||
import { Thread } from './api/resources/thread/client/Client'; | ||
import * as core from './core'; | ||
import * as environments from './environments'; | ||
|
||
export declare namespace CommonApiClient { | ||
interface Options { | ||
environment?: core.Supplier<environments.CommonApiEnvironment | string>; | ||
apiKey?: core.Supplier<string | undefined>; | ||
/** Override the address header */ | ||
address?: core.Supplier<string | undefined>; | ||
} | ||
interface RequestOptions { | ||
/** The maximum time to wait for a response in seconds. */ | ||
timeoutInSeconds?: number; | ||
/** The number of times to retry the request. Defaults to 2. */ | ||
maxRetries?: number; | ||
/** A hook to abort the request. */ | ||
abortSignal?: AbortSignal; | ||
/** Override the address header */ | ||
address?: string | undefined; | ||
} | ||
interface Options { | ||
environment?: core.Supplier<environments.CommonApiEnvironment | string>; | ||
apiKey: core.Supplier<string>; | ||
/** Override the address header */ | ||
address?: core.Supplier<string | undefined>; | ||
} | ||
|
||
interface RequestOptions { | ||
/** The maximum time to wait for a response in seconds. */ | ||
timeoutInSeconds?: number; | ||
/** The number of times to retry the request. Defaults to 2. */ | ||
maxRetries?: number; | ||
/** A hook to abort the request. */ | ||
abortSignal?: AbortSignal; | ||
/** Override the address header */ | ||
address?: string | undefined; | ||
} | ||
} | ||
|
||
export declare class CommonApiClient { | ||
protected readonly _options: CommonApiClient.Options; | ||
constructor(_options?: CommonApiClient.Options); | ||
protected _community: Community | undefined; | ||
get community(): Community; | ||
protected _comment: Comment | undefined; | ||
get comment(): Comment; | ||
protected _thread: Thread | undefined; | ||
get thread(): Thread; | ||
protected _reaction: Reaction | undefined; | ||
get reaction(): Reaction; | ||
protected readonly _options: CommonApiClient.Options; | ||
|
||
constructor(_options: CommonApiClient.Options); | ||
|
||
protected _community: Community | undefined; | ||
get community(): Community; | ||
|
||
protected _comment: Comment | undefined; | ||
get comment(): Comment; | ||
|
||
protected _thread: Thread | undefined; | ||
get thread(): Thread; | ||
|
||
protected _reaction: Reaction | undefined; | ||
get reaction(): Reaction; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./resources"; | ||
export * from './resources'; |
153 changes: 87 additions & 66 deletions
153
libs/api-client/src/api/resources/comment/client/Client.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,94 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
import * as environments from "../../../../environments"; | ||
import * as core from "../../../../core"; | ||
import * as CommonApi from "../../../index"; | ||
import * as core from '../../../../core'; | ||
import * as environments from '../../../../environments'; | ||
import * as CommonApi from '../../../index'; | ||
|
||
export declare namespace Comment { | ||
interface Options { | ||
environment?: core.Supplier<environments.CommonApiEnvironment | string>; | ||
apiKey?: core.Supplier<string | undefined>; | ||
/** Override the address header */ | ||
address?: core.Supplier<string | undefined>; | ||
} | ||
interface RequestOptions { | ||
/** The maximum time to wait for a response in seconds. */ | ||
timeoutInSeconds?: number; | ||
/** The number of times to retry the request. Defaults to 2. */ | ||
maxRetries?: number; | ||
/** A hook to abort the request. */ | ||
abortSignal?: AbortSignal; | ||
/** Override the address header */ | ||
address?: string | undefined; | ||
} | ||
interface Options { | ||
environment?: core.Supplier<environments.CommonApiEnvironment | string>; | ||
apiKey: core.Supplier<string>; | ||
/** Override the address header */ | ||
address?: core.Supplier<string | undefined>; | ||
} | ||
|
||
interface RequestOptions { | ||
/** The maximum time to wait for a response in seconds. */ | ||
timeoutInSeconds?: number; | ||
/** The number of times to retry the request. Defaults to 2. */ | ||
maxRetries?: number; | ||
/** A hook to abort the request. */ | ||
abortSignal?: AbortSignal; | ||
/** Override the address header */ | ||
address?: string | undefined; | ||
} | ||
} | ||
|
||
export declare class Comment { | ||
protected readonly _options: Comment.Options; | ||
constructor(_options?: Comment.Options); | ||
/** | ||
* @param {CommonApi.GetCommentsRequest} request | ||
* @param {Comment.RequestOptions} requestOptions - Request-specific configuration. | ||
* | ||
* @example | ||
* await client.comment.getComments({ | ||
* threadId: 1 | ||
* }) | ||
*/ | ||
getComments(request: CommonApi.GetCommentsRequest, requestOptions?: Comment.RequestOptions): Promise<CommonApi.GetCommentsResponse>; | ||
/** | ||
* @param {CommonApi.CreateCommentRequest} request | ||
* @param {Comment.RequestOptions} requestOptions - Request-specific configuration. | ||
* | ||
* @example | ||
* await client.comment.createComment({ | ||
* threadId: 1, | ||
* text: "text" | ||
* }) | ||
*/ | ||
createComment(request: CommonApi.CreateCommentRequest, requestOptions?: Comment.RequestOptions): Promise<CommonApi.CreateCommentResponse>; | ||
/** | ||
* @param {CommonApi.UpdateCommentRequest} request | ||
* @param {Comment.RequestOptions} requestOptions - Request-specific configuration. | ||
* | ||
* @example | ||
* await client.comment.updateComment({ | ||
* commentId: 1, | ||
* text: "text" | ||
* }) | ||
*/ | ||
updateComment(request: CommonApi.UpdateCommentRequest, requestOptions?: Comment.RequestOptions): Promise<CommonApi.UpdateCommentResponse>; | ||
/** | ||
* @param {CommonApi.DeleteCommentRequest} request | ||
* @param {Comment.RequestOptions} requestOptions - Request-specific configuration. | ||
* | ||
* @example | ||
* await client.comment.deleteComment({ | ||
* commentId: 1 | ||
* }) | ||
*/ | ||
deleteComment(request: CommonApi.DeleteCommentRequest, requestOptions?: Comment.RequestOptions): Promise<CommonApi.DeleteCommentResponse>; | ||
protected _getCustomAuthorizationHeaders(): Promise<{ | ||
"x-api-key": string | undefined; | ||
}>; | ||
protected readonly _options: Comment.Options; | ||
|
||
constructor(_options: Comment.Options); | ||
|
||
/** | ||
* @param {CommonApi.GetCommentsRequest} request | ||
* @param {Comment.RequestOptions} requestOptions - Request-specific configuration. | ||
* | ||
* @example | ||
* await client.comment.getComments({ | ||
* threadId: 1 | ||
* }) | ||
*/ | ||
getComments( | ||
request: CommonApi.GetCommentsRequest, | ||
requestOptions?: Comment.RequestOptions, | ||
): Promise<CommonApi.GetCommentsResponse>; | ||
|
||
/** | ||
* @param {CommonApi.CreateCommentRequest} request | ||
* @param {Comment.RequestOptions} requestOptions - Request-specific configuration. | ||
* | ||
* @example | ||
* await client.comment.createComment({ | ||
* threadId: 1, | ||
* text: "text" | ||
* }) | ||
*/ | ||
createComment( | ||
request: CommonApi.CreateCommentRequest, | ||
requestOptions?: Comment.RequestOptions, | ||
): Promise<CommonApi.CreateCommentResponse>; | ||
|
||
/** | ||
* @param {CommonApi.UpdateCommentRequest} request | ||
* @param {Comment.RequestOptions} requestOptions - Request-specific configuration. | ||
* | ||
* @example | ||
* await client.comment.updateComment({ | ||
* commentId: 1, | ||
* text: "text" | ||
* }) | ||
*/ | ||
updateComment( | ||
request: CommonApi.UpdateCommentRequest, | ||
requestOptions?: Comment.RequestOptions, | ||
): Promise<CommonApi.UpdateCommentResponse>; | ||
|
||
/** | ||
* @param {CommonApi.DeleteCommentRequest} request | ||
* @param {Comment.RequestOptions} requestOptions - Request-specific configuration. | ||
* | ||
* @example | ||
* await client.comment.deleteComment({ | ||
* commentId: 1 | ||
* }) | ||
*/ | ||
deleteComment( | ||
request: CommonApi.DeleteCommentRequest, | ||
requestOptions?: Comment.RequestOptions, | ||
): Promise<CommonApi.DeleteCommentResponse>; | ||
|
||
protected _getCustomAuthorizationHeaders(): Promise<{ | ||
'x-api-key': string; | ||
}>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./requests"; | ||
export * from './requests'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ | |
* } | ||
*/ | ||
export interface DeleteCommentRequest { | ||
commentId: number; | ||
commentId: number; | ||
} |
Oops, something went wrong.