@proficient/client
Advanced tools
Comparing version 0.15.0 to 0.16.0
@@ -20,3 +20,3 @@ /** | ||
/** | ||
* Returns a list of agents that belong to the current organization. The agents are returned sorted by creation date, with the most recently created agents appearing first. | ||
* Returns a list of agents that belong to the current project. The agents are returned sorted by creation date, with the most recently created agents appearing first. | ||
* @throws {Proficient.InternalError} | ||
@@ -23,0 +23,0 @@ */ |
@@ -44,3 +44,3 @@ "use strict"; | ||
/** | ||
* Returns a list of agents that belong to the current organization. The agents are returned sorted by creation date, with the most recently created agents appearing first. | ||
* Returns a list of agents that belong to the current project. The agents are returned sorted by creation date, with the most recently created agents appearing first. | ||
* @throws {Proficient.InternalError} | ||
@@ -47,0 +47,0 @@ */ |
@@ -0,1 +1,2 @@ | ||
export * from "./InvalidRequestError"; | ||
export * from "./ForbiddenError"; | ||
@@ -2,0 +3,0 @@ export * from "./ResourceNotFoundError"; |
@@ -17,2 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./InvalidRequestError"), exports); | ||
__exportStar(require("./ForbiddenError"), exports); | ||
@@ -19,0 +20,0 @@ __exportStar(require("./ResourceNotFoundError"), exports); |
@@ -6,3 +6,3 @@ /** | ||
/** | ||
* <p>An _agent_ is an AI entity that exists to serve your organization. Agents are intelligent, configurable and context-aware and can interact with your users via a messaging system enabled by the Proficient API.</p> | ||
* <p>An _agent_ is an AI entity that exists to serve your project's users. Agents are intelligent, configurable and context-aware and can interact with your users via a messaging system enabled by the Proficient API.</p> | ||
* | ||
@@ -9,0 +9,0 @@ * @example |
@@ -9,2 +9,4 @@ export * as agents from "./agents"; | ||
export * from "./coreMessage/types"; | ||
export * as coreUser from "./coreUser"; | ||
export * from "./coreUser/types"; | ||
export * as core from "./core"; | ||
@@ -17,3 +19,4 @@ export * from "./core/types"; | ||
export * from "./core/errors"; | ||
export * as users from "./users"; | ||
export * from "./interactions/client/requests"; | ||
export * from "./messages/client/requests"; |
@@ -29,3 +29,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.messages = exports.interactions = exports.core = exports.coreMessage = exports.coreInteraction = exports.coreAgent = exports.agents = void 0; | ||
exports.users = exports.messages = exports.interactions = exports.core = exports.coreUser = exports.coreMessage = exports.coreInteraction = exports.coreAgent = exports.agents = void 0; | ||
exports.agents = __importStar(require("./agents")); | ||
@@ -39,2 +39,4 @@ __exportStar(require("./agents/types"), exports); | ||
__exportStar(require("./coreMessage/types"), exports); | ||
exports.coreUser = __importStar(require("./coreUser")); | ||
__exportStar(require("./coreUser/types"), exports); | ||
exports.core = __importStar(require("./core")); | ||
@@ -47,3 +49,4 @@ __exportStar(require("./core/types"), exports); | ||
__exportStar(require("./core/errors"), exports); | ||
exports.users = __importStar(require("./users")); | ||
__exportStar(require("./interactions/client/requests"), exports); | ||
__exportStar(require("./messages/client/requests"), exports); |
@@ -9,2 +9,3 @@ /** | ||
import { Messages } from "./api/resources/messages/client/Client"; | ||
import { Users } from "./api/resources/users/client/Client"; | ||
export declare namespace ProficientClient { | ||
@@ -28,2 +29,4 @@ interface Options { | ||
get messages(): Messages; | ||
private _users; | ||
get users(): Users; | ||
} |
@@ -10,2 +10,3 @@ "use strict"; | ||
const Client_3 = require("./api/resources/messages/client/Client"); | ||
const Client_4 = require("./api/resources/users/client/Client"); | ||
class ProficientClient { | ||
@@ -28,3 +29,7 @@ options; | ||
} | ||
_users; | ||
get users() { | ||
return (this._users ??= new Client_4.Users(this.options)); | ||
} | ||
} | ||
exports.ProficientClient = ProficientClient; |
@@ -9,2 +9,4 @@ export * as agents from "./agents"; | ||
export * from "./coreMessage/types"; | ||
export * as coreUser from "./coreUser"; | ||
export * from "./coreUser/types"; | ||
export * as core from "./core"; | ||
@@ -11,0 +13,0 @@ export * from "./core/types"; |
@@ -29,3 +29,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.messages = exports.interactions = exports.core = exports.coreMessage = exports.coreInteraction = exports.coreAgent = exports.agents = void 0; | ||
exports.messages = exports.interactions = exports.core = exports.coreUser = exports.coreMessage = exports.coreInteraction = exports.coreAgent = exports.agents = void 0; | ||
exports.agents = __importStar(require("./agents")); | ||
@@ -39,2 +39,4 @@ __exportStar(require("./agents/types"), exports); | ||
__exportStar(require("./coreMessage/types"), exports); | ||
exports.coreUser = __importStar(require("./coreUser")); | ||
__exportStar(require("./coreUser/types"), exports); | ||
exports.core = __importStar(require("./core")); | ||
@@ -41,0 +43,0 @@ __exportStar(require("./core/types"), exports); |
{ | ||
"name": "@proficient/client", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"license": "MIT", | ||
@@ -8,5 +8,2 @@ "main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
"build": "rm -rf dist && tsc" | ||
}, | ||
"files": [ | ||
@@ -16,2 +13,5 @@ "dist/**", | ||
], | ||
"scripts": { | ||
"build": "rm -rf dist && tsc" | ||
}, | ||
"dependencies": { | ||
@@ -18,0 +18,0 @@ "@ungap/url-search-params": "^0.2.2", |
308363
421
7269