@microsoft/teams.api
Version:
<p> <a href="https://www.npmjs.com/package/@microsoft/teams.api" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.api/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.api?activeTab=code" t
65 lines (63 loc) • 2.12 kB
TypeScript
/**
* @internal
* Private span names used by API diagnostics instrumentation.
*/
declare const API_SPAN_NAMES: {
readonly apiClient: "microsoft.teams.api.client";
readonly authOutbound: "microsoft.teams.auth.outbound";
};
/**
* @internal
* Private metric names used by API diagnostics instrumentation.
*/
declare const API_METRIC_NAMES: {
readonly outboundCalls: "microsoft.teams.outbound.calls";
readonly outboundErrors: "microsoft.teams.outbound.errors";
};
/**
* @internal
* Private attribute names used by API diagnostics instrumentation.
*/
declare const API_ATTRIBUTE_NAMES: {
readonly operation: "operation";
readonly serviceUrl: "service.url";
readonly conversationId: "conversation.id";
readonly activityType: "activity.type";
readonly activityId: "activity.id";
readonly authFlow: "auth.flow";
};
/**
* @internal
* Private conversation activity operation values used by API outbound diagnostics.
*/
declare const OUTBOUND_OPERATIONS: {
readonly create: "create";
readonly update: "update";
readonly reply: "reply";
readonly createReplyChain: "create_reply_chain";
readonly createTargetedReplyChain: "create_targeted_reply_chain";
readonly delete: "delete";
readonly createTargeted: "create_targeted";
readonly updateTargeted: "update_targeted";
readonly deleteTargeted: "delete_targeted";
};
/**
* @internal
* Private auth flow values used by API auth diagnostics.
*/
declare const AUTH_FLOWS: {
readonly appOnly: "app_only";
readonly agenticUser: "agentic_user";
readonly agenticApp: "agentic_app";
};
/**
* @internal
* Supported operation name values for API outbound conversation activity diagnostics.
*/
type ConversationActivityOperation = (typeof OUTBOUND_OPERATIONS)[keyof typeof OUTBOUND_OPERATIONS];
/**
* @internal
* Supported auth flow values for API auth diagnostics.
*/
type AuthFlow = (typeof AUTH_FLOWS)[keyof typeof AUTH_FLOWS];
export { API_ATTRIBUTE_NAMES, API_METRIC_NAMES, API_SPAN_NAMES, AUTH_FLOWS, type AuthFlow, type ConversationActivityOperation, OUTBOUND_OPERATIONS };