UNPKG

@microsoft/teams.apps

Version:

<p> <a href="https://www.npmjs.com/package/@microsoft/teams.apps" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.apps/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.apps?activeTab=code

100 lines (99 loc) • 3.7 kB
/** * @internal * Private span names used by Teams apps diagnostics instrumentation. */ export declare const APP_SPAN_NAMES: { readonly activityProcess: "microsoft.teams.activity.process"; readonly handler: "microsoft.teams.handler"; readonly oauth: "microsoft.teams.oauth"; readonly stateLoad: "microsoft.teams.state.load"; readonly stateSave: "microsoft.teams.state.save"; readonly stateDelete: "microsoft.teams.state.delete"; }; /** * @internal * Private metric names used by Teams apps diagnostics instrumentation. */ export declare const APP_METRIC_NAMES: { readonly activitiesReceived: "microsoft.teams.activities.received"; readonly activityProcessDuration: "microsoft.teams.activity.process.duration"; readonly handlerDispatched: "microsoft.teams.handler.dispatched"; readonly handlerDuration: "microsoft.teams.handler.duration"; readonly handlerFailures: "microsoft.teams.handler.failures"; readonly handlerUnmatched: "microsoft.teams.handler.unmatched"; readonly oauthOperations: "microsoft.teams.oauth.operations"; readonly oauthOperationDuration: "microsoft.teams.oauth.operation.duration"; readonly oauthErrors: "microsoft.teams.oauth.errors"; }; /** * @internal * Private attribute names used by Teams apps diagnostics instrumentation. */ export declare const APP_ATTRIBUTE_NAMES: { readonly activityType: "activity.type"; readonly activityId: "activity.id"; readonly conversationId: "conversation.id"; readonly channelId: "channel.id"; readonly botId: "bot.id"; readonly serviceUrl: "service.url"; readonly handlerType: "handler.type"; readonly handlerDispatch: "handler.dispatch"; readonly invokeName: "invoke.name"; readonly oauthConnection: "oauth.connection"; readonly oauthOperation: "oauth.operation"; readonly oauthResult: "oauth.result"; readonly invokeResponseStatus: "invoke.response.status"; readonly oauthCallbackInvoked: "oauth.callback.invoked"; readonly oauthErrorType: "oauth.error.type"; readonly oauthFailureCode: "oauth.failure.code"; }; /** * @internal * Private handler dispatch category values used by Teams apps diagnostics instrumentation. */ export declare const APP_HANDLER_DISPATCH: { readonly type: "type"; readonly invoke: "invoke"; readonly catchall: "catchall"; }; /** * @internal * Private OAuth operation values used by Teams apps diagnostics instrumentation. */ export declare const APP_OAUTH_OPERATION: { readonly tokenExchange: "token_exchange"; readonly verifyState: "verify_state"; readonly signinFailure: "signin_failure"; readonly signIn: "signin"; readonly signOut: "signout"; readonly getToken: "get_token"; readonly connectionStatus: "connection_status"; }; /** * @internal * Private OAuth result values used by Teams apps diagnostics instrumentation. */ export declare const APP_OAUTH_RESULT: { readonly cached: "token_cached"; readonly cardSent: "signin_card_sent"; readonly hit: "token_found"; readonly miss: "token_not_found"; readonly success: "operation_succeeded"; readonly failure: "operation_failed"; readonly duplicate: "request_deduplicated"; readonly noToken: "connection_not_matched"; readonly notified: "failure_callback_notified"; }; /** * @internal * Private OAuth error type values used by Teams apps diagnostics instrumentation. */ export declare const APP_OAUTH_ERROR_TYPE: { readonly httpError: "http_error"; readonly exception: "exception"; }; /** * @internal * OAuth connection value used for operations spanning every connection. */ export declare const APP_OAUTH_ALL_CONNECTIONS = "all";