botframework-connector
Advanced tools
Comparing version 4.7.2 to 4.8.0-preview-109324
@@ -44,1 +44,2 @@ /** | ||
} | ||
//# sourceMappingURL=appCredentials.d.ts.map |
@@ -23,1 +23,2 @@ /** | ||
} | ||
//# sourceMappingURL=authenticationConfiguration.d.ts.map |
@@ -125,1 +125,2 @@ /** | ||
} | ||
//# sourceMappingURL=authenticationConstants.d.ts.map |
@@ -19,1 +19,2 @@ /** | ||
} | ||
//# sourceMappingURL=certificateAppCredentials.d.ts.map |
@@ -47,1 +47,2 @@ /** | ||
} | ||
//# sourceMappingURL=channelValidation.d.ts.map |
@@ -29,1 +29,2 @@ /** | ||
} | ||
//# sourceMappingURL=claimsIdentity.d.ts.map |
@@ -79,1 +79,2 @@ /** | ||
} | ||
//# sourceMappingURL=credentialProvider.d.ts.map |
@@ -38,1 +38,2 @@ /** | ||
} | ||
//# sourceMappingURL=emulatorValidation.d.ts.map |
@@ -21,1 +21,2 @@ /** | ||
} | ||
//# sourceMappingURL=endorsementsValidator.d.ts.map |
@@ -42,1 +42,2 @@ /** | ||
} | ||
//# sourceMappingURL=enterpriseChannelValidation.d.ts.map |
@@ -45,1 +45,2 @@ /** | ||
} | ||
//# sourceMappingURL=governmentChannelValidation.d.ts.map |
@@ -34,1 +34,2 @@ /** | ||
} | ||
//# sourceMappingURL=governmentConstants.d.ts.map |
@@ -23,1 +23,2 @@ /** | ||
export * from './skillValidation'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -22,1 +22,2 @@ /** | ||
} | ||
//# sourceMappingURL=jwtTokenExtractor.d.ts.map |
@@ -42,1 +42,2 @@ /** | ||
} | ||
//# sourceMappingURL=jwtTokenValidation.d.ts.map |
@@ -18,1 +18,2 @@ /** | ||
} | ||
//# sourceMappingURL=microsoftAppCredentials.d.ts.map |
@@ -14,1 +14,2 @@ export declare class OpenIdMetadata { | ||
} | ||
//# sourceMappingURL=openIdMetadata.d.ts.map |
@@ -45,1 +45,2 @@ import { AuthenticationConfiguration } from './authenticationConfiguration'; | ||
} | ||
//# sourceMappingURL=skillValidation.d.ts.map |
@@ -18,1 +18,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
export { ConnectorClient, ConnectorClientContext, Models as ConnectorModels, Mappers as ConnectorMappers }; | ||
//# sourceMappingURL=connectorClient.d.ts.map |
@@ -12,1 +12,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
} | ||
//# sourceMappingURL=connectorClientContext.d.ts.map |
export { AttachmentInfo, AttachmentView, ErrorModel, ErrorResponse, InnerHttpError } from "../models/mappers"; | ||
//# sourceMappingURL=attachmentsMappers.d.ts.map |
export { Activity, Attachment, AttachmentData, CardAction, ChannelAccount, ConversationAccount, ConversationMembers, ConversationParameters, ConversationReference, ConversationResourceResponse, ConversationsResult, Entity, ErrorModel, ErrorResponse, InnerHttpError, MessageReaction, PagedMembersResult, ResourceResponse, SemanticAction, SuggestedActions, TextHighlight, Transcript } from "../models/mappers"; | ||
//# sourceMappingURL=conversationsMappers.d.ts.map |
@@ -255,1 +255,2 @@ /// <reference types="node" /> | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -105,1 +105,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
export declare const PaymentRequestUpdateResult: msRest.CompositeMapper; | ||
//# sourceMappingURL=mappers.d.ts.map |
@@ -9,1 +9,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
export declare const viewId: msRest.OperationURLParameter; | ||
//# sourceMappingURL=parameters.d.ts.map |
@@ -54,1 +54,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
} | ||
//# sourceMappingURL=attachments.d.ts.map |
@@ -361,1 +361,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
} | ||
//# sourceMappingURL=conversations.d.ts.map |
export * from "./attachments"; | ||
export * from "./conversations"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -12,1 +12,2 @@ /** | ||
} | ||
//# sourceMappingURL=emulatorApiClient.d.ts.map |
/** | ||
* @module botbuilder | ||
*/ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import './globals'; | ||
/** | ||
* @module botbuilder | ||
*/ | ||
export * from './auth'; | ||
@@ -10,1 +18,2 @@ export { ConnectorClient } from './connectorApi/connectorClient'; | ||
export * from './teams'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
/** | ||
* @module botbuilder | ||
*/ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
function __export(m) { | ||
@@ -6,3 +13,3 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
(new Function('require', 'if (!this.hasOwnProperty("FormData")) { this.FormData = require("form-data"); }; if (!this.hasOwnProperty("fetch")) { this.fetch = require("node-fetch"); }'))(require); | ||
require("./globals"); | ||
/** | ||
@@ -9,0 +16,0 @@ * @module botbuilder |
export * from './teamsConnectorClient'; | ||
export * from './teamsConnectorClientContext'; | ||
export * from './models'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -50,1 +50,2 @@ import { HttpResponse, ServiceClientOptions } from '@azure/ms-rest-js'; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -63,1 +63,2 @@ import * as msRest from '@azure/ms-rest-js'; | ||
export declare const AppBasedLinkQuery: msRest.CompositeMapper; | ||
//# sourceMappingURL=mappers.d.ts.map |
import * as msRest from '@azure/ms-rest-js'; | ||
export declare const teamId: msRest.OperationURLParameter; | ||
//# sourceMappingURL=parameters.d.ts.map |
export { ConversationList, ChannelInfo, TeamDetails } from './mappers'; | ||
//# sourceMappingURL=teamsMappers.d.ts.map |
export * from './teams'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -52,1 +52,2 @@ import * as msRest from '@azure/ms-rest-js'; | ||
} | ||
//# sourceMappingURL=teams.d.ts.map |
@@ -17,1 +17,2 @@ import { ServiceClientCredentials } from '@azure/ms-rest-js'; | ||
export * from './operations'; | ||
//# sourceMappingURL=teamsConnectorClient.d.ts.map |
@@ -12,1 +12,2 @@ import { ServiceClientCredentials, ServiceClient } from '@azure/ms-rest-js'; | ||
} | ||
//# sourceMappingURL=teamsConnectorClientContext.d.ts.map |
export {} from "../models/mappers"; | ||
//# sourceMappingURL=botSignInMappers.d.ts.map |
@@ -237,1 +237,2 @@ import { ServiceClientOptions } from "@azure/ms-rest-js"; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -8,1 +8,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
export declare const TokenStatus: msRest.CompositeMapper; | ||
//# sourceMappingURL=mappers.d.ts.map |
@@ -12,1 +12,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
export declare const userId: msRest.OperationQueryParameter; | ||
//# sourceMappingURL=parameters.d.ts.map |
export { AadResourceUrls, ErrorModel, ErrorResponse, InnerHttpError, TokenResponse, TokenStatus } from "../models/mappers"; | ||
//# sourceMappingURL=userTokenMappers.d.ts.map |
@@ -30,1 +30,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
} | ||
//# sourceMappingURL=botSignIn.d.ts.map |
export * from "./botSignIn"; | ||
export * from "./userToken"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -94,1 +94,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
} | ||
//# sourceMappingURL=userToken.d.ts.map |
@@ -18,1 +18,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
export * from "./operations"; | ||
//# sourceMappingURL=tokenApiClient.d.ts.map |
@@ -12,1 +12,2 @@ import * as msRest from "@azure/ms-rest-js"; | ||
} | ||
//# sourceMappingURL=tokenApiClientContext.d.ts.map |
@@ -5,3 +5,3 @@ { | ||
"description": "Bot Connector is autorest generated connector client.", | ||
"version": "4.7.2", | ||
"version": "4.8.0-preview-109324", | ||
"license": "MIT", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"base64url": "^3.0.0", | ||
"botframework-schema": "4.7.2", | ||
"botframework-schema": "4.8.0-preview-109324", | ||
"form-data": "^2.3.3", | ||
@@ -51,3 +51,3 @@ "jsonwebtoken": "8.0.1", | ||
"clean": "erase /q /s .\\lib", | ||
"set-version": "npm version --allow-same-version 4.7.2" | ||
"set-version": "npm version --allow-same-version 4.8.0-preview-109324" | ||
}, | ||
@@ -54,0 +54,0 @@ "files": [ |
@@ -26,24 +26,22 @@ # Microsoft Bot Framework Connector for Node.js | ||
````javascript | ||
var BotConnector = require('botframework-connector'); | ||
var { ConnectorClient, MicrosoftAppCredentials } = require('botframework-connector'); | ||
var credentials = new BotConnector.MicrosoftAppCredentials({ | ||
appId: '<your-app-id>', | ||
appPassword: '<your-app-password>' | ||
}); | ||
async function connectToSlack() { | ||
var credentials = new MicrosoftAppCredentials('<your-app-id>', '<your-app-password>'); | ||
var botId = '<bot-id>'; | ||
var recipientId = '<user-id>'; | ||
var botId = '<bot-id>'; | ||
var recipientId = '<user-id>'; | ||
var client = new BotConnector.ConnectorClient(credentials, 'https://slack.botframework.com') | ||
var client = new ConnectorClient(credentials, { baseUri: 'https://slack.botframework.com' }); | ||
client.conversations.createConversation({ | ||
bot: { id: botId }, | ||
members: [ | ||
{ id: recipientId } | ||
], | ||
isGroup: false | ||
}).then(result => { | ||
var conversationId = result.id; | ||
return client.conversations.sendToConversation(conversationId, { | ||
type: "message", | ||
var conversationResponse = await client.conversations.createConversation({ | ||
bot: { id: botId }, | ||
members: [ | ||
{ id: recipientId } | ||
], | ||
isGroup: false | ||
}); | ||
var acivityResponse = await client.conversations.sendToConversation(conversationResponse.id, { | ||
type: 'message', | ||
from: { id: botId }, | ||
@@ -53,6 +51,5 @@ recipient: { id: recipientId }, | ||
}); | ||
}).then(result => { | ||
var activityId = result.id; | ||
console.log('Sent reply with ActivityId:', activityId); | ||
}); | ||
console.log('Sent reply with ActivityId:', acivityResponse.id); | ||
} | ||
```` | ||
@@ -59,0 +56,0 @@ |
@@ -1,4 +0,11 @@ | ||
(new Function('require', 'if (!this.hasOwnProperty("FormData")) { this.FormData = require("form-data"); }; if (!this.hasOwnProperty("fetch")) { this.fetch = require("node-fetch"); }'))(require); | ||
/** | ||
* @module botbuilder | ||
*/ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
import { TokenResponse } from './connectorApi/models/mappers'; | ||
import './globals' | ||
@@ -5,0 +12,0 @@ /** |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
766272
253
18313
3
2
82
+ Addedbotframework-schema@4.8.0-preview-109324(transitive)
- Removedbotframework-schema@4.7.2(transitive)