Skip to content

Commit

Permalink
update botbuilder-core api signature
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Nov 7, 2023
1 parent a75380e commit cb8d59e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 26 deletions.
2 changes: 1 addition & 1 deletion libraries/botbuilder-core/etc/botbuilder-core.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export abstract class BotComponent {
// (undocumented)
abstract configureServices(services: ServiceCollection, configuration: Configuration): void;
// (undocumented)
static z: z.ZodType<BotComponent, z.ZodTypeDef, BotComponent>;
static z: z.ZodType<BotComponent, z.ZodTypeDef>;
}

export { BotFrameworkClient }
Expand Down
32 changes: 7 additions & 25 deletions libraries/botbuilder/etc/botbuilder.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
```ts

import { AceRequest } from 'botbuilder-core';
import { Activity } from 'botbuilder-core';
import { ActivityHandler } from 'botbuilder-core';
import { ActivityHandlerBase } from 'botbuilder-core';
Expand All @@ -23,7 +22,6 @@ import { BotFrameworkClient } from 'botbuilder-core';
import { BotFrameworkSkill } from 'botbuilder-core';
import { BotState } from 'botbuilder-core';
import { CancelOperationResponse } from 'botframework-connector';
import { CardViewResponse } from 'botbuilder-core';
import { ChannelAccount } from 'botbuilder-core';
import { ChannelInfo } from 'botbuilder-core';
import { ClaimsIdentity } from 'botframework-connector';
Expand All @@ -41,8 +39,6 @@ import { ConversationState } from 'botbuilder-core';
import { CoreAppCredentials } from 'botbuilder-core';
import { ExtendedUserTokenProvider } from 'botbuilder-core';
import { FileConsentCardResponse } from 'botbuilder-core';
import { GetPropertyPaneConfigurationResponse } from 'botbuilder-core';
import { HandleActionResponse } from 'botbuilder-core';
import { HttpClient } from '@azure/ms-rest-js';
import { HttpOperationResponse } from '@azure/ms-rest-js';
import { ICredentialProvider } from 'botframework-connector';
Expand All @@ -67,11 +63,9 @@ import { O365ConnectorCardActionQuery } from 'botbuilder-core';
import { OnBehalfOf } from 'botbuilder-core';
import { PagedMembersResult } from 'botbuilder-core';
import { PagedResult } from 'botbuilder-core';
import { QuickViewResponse } from 'botbuilder-core';
import { ReadReceiptInfo } from 'botframework-connector';
import { RequestHandler } from 'botframework-streaming';
import { ResourceResponse } from 'botbuilder-core';
import { SetPropertyPaneConfigurationResponse } from 'botbuilder-core';
import { SigninStateVerificationQuery } from 'botbuilder-core';
import { SignInUrlResponse } from 'botframework-connector';
import { SimpleCredentialProvider } from 'botframework-connector';
Expand Down Expand Up @@ -167,7 +161,7 @@ export class BotFrameworkAdapter extends BotAdapter implements BotFrameworkHttpA
updateActivity(context: TurnContext, activity: Partial<Activity>): Promise<ResourceResponse | void>;
useNamedPipe(logic: (context: TurnContext) => Promise<any>, pipeName?: string, retryCount?: number, onListen?: () => void): Promise<void>;
useWebSocket(req: WebRequest, socket: INodeSocket, head: INodeBuffer, logic: (context: TurnContext) => Promise<any>): Promise<void>;
}
}

// @public @deprecated (undocumented)
export interface BotFrameworkAdapterSettings {
Expand Down Expand Up @@ -206,7 +200,7 @@ export class ChannelServiceHandler extends ChannelServiceHandlerBase {
protected authenticate(authHeader: string): Promise<ClaimsIdentity>;
// (undocumented)
protected readonly channelService: string;
}
}

// @public
export abstract class ChannelServiceHandlerBase {
Expand Down Expand Up @@ -280,7 +274,7 @@ export class FileTranscriptStore implements TranscriptStore {
getTranscriptActivities(channelId: string, conversationId: string, continuationToken?: string, startDate?: Date): Promise<PagedResult<Activity>>;
listTranscripts(channelId: string, continuationToken?: string): Promise<PagedResult<TranscriptInfo>>;
logActivity(activity: Activity): Promise<void>;
}
}

// @public
export class HandoffEventNames {
Expand All @@ -299,7 +293,7 @@ export class InspectionMiddleware extends InterceptionMiddleware {
protected outbound(turnContext: TurnContext, traceActivities: Partial<Activity>[]): Promise<any>;
processCommand(turnContext: TurnContext): Promise<any>;
protected traceState(turnContext: TurnContext): Promise<any>;
}
}

// @public @deprecated
export class InspectionState extends BotState {
Expand All @@ -316,7 +310,6 @@ interface Request_2<Body extends Record<string, unknown> = Record<string, unknow
// (undocumented)
method?: string;
}

export { Request_2 as Request }

// @public (undocumented)
Expand All @@ -332,7 +325,6 @@ interface Response_2 {
// (undocumented)
status(code: number): unknown;
}

export { Response_2 as Response }

// @public (undocumented)
Expand All @@ -342,16 +334,6 @@ export type RouteHandler = (request: WebRequest, response: WebResponse) => void;
export class SetSpeakMiddleware implements Middleware {
constructor(voiceName: string | null, fallbackToTextForSpeak: boolean);
onTurn(turnContext: TurnContext, next: () => Promise<void>): Promise<void>;
}

// @public
export class SharePointActivityHandler extends ActivityHandler {
protected onInvokeActivity(context: TurnContext): Promise<InvokeResponse>;
protected onSharePointTaskGetCardViewAsync(_context: TurnContext, _aceRequest: AceRequest): Promise<CardViewResponse>;
protected onSharePointTaskGetPropertyPaneConfigurationAsync(_context: TurnContext, _aceRequest: AceRequest): Promise<GetPropertyPaneConfigurationResponse>;
protected onSharePointTaskGetQuickViewAsync(_context: TurnContext, _aceRequest: AceRequest): Promise<QuickViewResponse>;
protected onSharePointTaskHandleActionAsync(_context: TurnContext, _aceRequest: AceRequest): Promise<HandleActionResponse>;
protected onSharePointTaskSetPropertyPaneConfigurationAsync(_context: TurnContext, _aceRequest: AceRequest): Promise<SetPropertyPaneConfigurationResponse>;
}

// @public @deprecated (undocumented)
Expand Down Expand Up @@ -383,7 +365,7 @@ export class StatusCodeError extends Error {
export class StreamingHttpClient implements HttpClient {
constructor(server: IStreamingTransportServer);
sendRequest(httpRequest: WebResource): Promise<HttpOperationResponse>;
}
}

// @public
export class TeamsActivityHandler extends ActivityHandler {
Expand Down Expand Up @@ -513,12 +495,12 @@ export function teamsNotifyUser(activity: Partial<Activity>, alertInMeeting?: bo
export class TeamsSSOTokenExchangeMiddleware implements Middleware {
constructor(storage: Storage_2, oAuthConnectionName: string);
onTurn(context: TurnContext, next: () => Promise<void>): Promise<void>;
}
}

// @public
export class TokenResolver {
static checkForOAuthCards(adapter: BotFrameworkAdapter, context: TurnContext, activity: Activity, log?: string[]): void;
}
}

// @public
export interface WebRequest {
Expand Down

0 comments on commit cb8d59e

Please sign in to comment.