@microsoft/agents-hosting-express 1.0.0-ge4831811bf → 1.0.3-g444d99f704

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@microsoft/agents-hosting-express",
4
- "version": "1.0.0-ge4831811bf",
4
+ "version": "1.0.3-g444d99f704",
5
5
  "homepage": "https://github.com/microsoft/Agents-for-js",
6
6
  "repository": {
7
7
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "main": "dist/src/index.js",
20
20
  "types": "dist/src/index.d.ts",
21
21
  "dependencies": {
22
- "@microsoft/agents-hosting": "1.0.0-ge4831811bf",
22
+ "@microsoft/agents-hosting": "1.0.3-g444d99f704",
23
23
  "express": "^5.1.0"
24
24
  },
25
25
  "license": "MIT",
@@ -4,7 +4,12 @@
4
4
  */
5
5
  import { ActivityHandler, AgentApplication, AuthConfiguration, TurnState } from '@microsoft/agents-hosting';
6
6
  /**
7
- * @summary Starts an Express server for handling Agent requests.
7
+ * Starts an Express server for handling Agent requests.
8
+ *
9
+ * @param agent - The AgentApplication or ActivityHandler instance to process incoming activities.
10
+ * @param authConfiguration - Optional custom authentication configuration. If not provided,
11
+ * configuration will be loaded from environment variables using loadAuthConfigFromEnv().
12
+ * @returns void - This function does not return a value as it starts a long-running server process.
8
13
  *
9
14
  * @remarks
10
15
  * This function sets up an Express server with the necessary middleware and routes for handling
@@ -25,10 +30,5 @@ import { ActivityHandler, AgentApplication, AuthConfiguration, TurnState } from
25
30
  * startServer(app);
26
31
  * ```
27
32
  *
28
- * @param agent - The AgentApplication or ActivityHandler instance to process incoming activities.
29
- * @param authConfiguration - Optional custom authentication configuration. If not provided,
30
- * configuration will be loaded from environment variables using loadAuthConfigFromEnv().
31
- * @returns void - This function does not return a value as it starts a long-running server process.
32
- *
33
33
  */
34
34
  export declare const startServer: (agent: AgentApplication<TurnState<any, any>> | ActivityHandler, authConfiguration?: AuthConfiguration) => void;
@@ -12,7 +12,12 @@ const express_1 = __importDefault(require("express"));
12
12
  const agents_hosting_1 = require("@microsoft/agents-hosting");
13
13
  const package_json_1 = require("@microsoft/agents-hosting/package.json");
14
14
  /**
15
- * @summary Starts an Express server for handling Agent requests.
15
+ * Starts an Express server for handling Agent requests.
16
+ *
17
+ * @param agent - The AgentApplication or ActivityHandler instance to process incoming activities.
18
+ * @param authConfiguration - Optional custom authentication configuration. If not provided,
19
+ * configuration will be loaded from environment variables using loadAuthConfigFromEnv().
20
+ * @returns void - This function does not return a value as it starts a long-running server process.
16
21
  *
17
22
  * @remarks
18
23
  * This function sets up an Express server with the necessary middleware and routes for handling
@@ -33,11 +38,6 @@ const package_json_1 = require("@microsoft/agents-hosting/package.json");
33
38
  * startServer(app);
34
39
  * ```
35
40
  *
36
- * @param agent - The AgentApplication or ActivityHandler instance to process incoming activities.
37
- * @param authConfiguration - Optional custom authentication configuration. If not provided,
38
- * configuration will be loaded from environment variables using loadAuthConfigFromEnv().
39
- * @returns void - This function does not return a value as it starts a long-running server process.
40
- *
41
41
  */
42
42
  const startServer = (agent, authConfiguration) => {
43
43
  const authConfig = authConfiguration !== null && authConfiguration !== void 0 ? authConfiguration : (0, agents_hosting_1.loadAuthConfigFromEnv)();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@microsoft/agents-hosting-express",
4
- "version": "1.0.0-ge4831811bf",
4
+ "version": "1.0.3-g444d99f704",
5
5
  "homepage": "https://github.com/microsoft/Agents-for-js",
6
6
  "repository": {
7
7
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "main": "dist/src/index.js",
20
20
  "types": "dist/src/index.d.ts",
21
21
  "dependencies": {
22
- "@microsoft/agents-hosting": "1.0.0-ge4831811bf",
22
+ "@microsoft/agents-hosting": "1.0.3-g444d99f704",
23
23
  "express": "^5.1.0"
24
24
  },
25
25
  "license": "MIT",
@@ -7,7 +7,12 @@ import express, { Response } from 'express'
7
7
  import { ActivityHandler, AgentApplication, AuthConfiguration, authorizeJWT, CloudAdapter, loadAuthConfigFromEnv, Request, TurnState } from '@microsoft/agents-hosting'
8
8
  import { version } from '@microsoft/agents-hosting/package.json'
9
9
  /**
10
- * @summary Starts an Express server for handling Agent requests.
10
+ * Starts an Express server for handling Agent requests.
11
+ *
12
+ * @param agent - The AgentApplication or ActivityHandler instance to process incoming activities.
13
+ * @param authConfiguration - Optional custom authentication configuration. If not provided,
14
+ * configuration will be loaded from environment variables using loadAuthConfigFromEnv().
15
+ * @returns void - This function does not return a value as it starts a long-running server process.
11
16
  *
12
17
  * @remarks
13
18
  * This function sets up an Express server with the necessary middleware and routes for handling
@@ -28,11 +33,6 @@ import { version } from '@microsoft/agents-hosting/package.json'
28
33
  * startServer(app);
29
34
  * ```
30
35
  *
31
- * @param agent - The AgentApplication or ActivityHandler instance to process incoming activities.
32
- * @param authConfiguration - Optional custom authentication configuration. If not provided,
33
- * configuration will be loaded from environment variables using loadAuthConfigFromEnv().
34
- * @returns void - This function does not return a value as it starts a long-running server process.
35
- *
36
36
  */
37
37
  export const startServer = (agent: AgentApplication<TurnState<any, any>> | ActivityHandler, authConfiguration?: AuthConfiguration) => {
38
38
  const authConfig: AuthConfiguration = authConfiguration ?? loadAuthConfigFromEnv()