mavenagi 1.2.61 → 1.2.62
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/BaseClient.js +2 -2
- package/Client.d.ts +6 -0
- package/Client.js +40 -30
- package/api/resources/actions/client/Client.d.ts +16 -0
- package/api/resources/actions/client/Client.js +16 -0
- package/api/resources/capabilities/client/Client.d.ts +118 -0
- package/api/resources/capabilities/client/Client.js +521 -0
- package/api/resources/capabilities/client/index.d.ts +1 -0
- package/api/resources/capabilities/client/index.js +17 -0
- package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +36 -0
- package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +3 -0
- package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.d.ts +18 -0
- package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.js +3 -0
- package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +22 -0
- package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.js +3 -0
- package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +24 -0
- package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +3 -0
- package/api/resources/capabilities/client/requests/index.d.ts +4 -0
- package/api/resources/capabilities/client/requests/index.js +2 -0
- package/api/resources/capabilities/exports.d.ts +2 -0
- package/api/resources/capabilities/exports.js +21 -0
- package/api/resources/capabilities/index.d.ts +2 -0
- package/api/resources/capabilities/index.js +18 -0
- package/api/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +43 -0
- package/api/resources/capabilities/types/CapabilitiesSearchResponse.js +3 -0
- package/api/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
- package/api/resources/capabilities/types/CapabilityResponse.js +3 -0
- package/api/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
- package/api/resources/capabilities/types/CapabilitySortField.js +10 -0
- package/api/resources/capabilities/types/CapabilitySummary.d.ts +28 -0
- package/api/resources/capabilities/types/CapabilitySummary.js +3 -0
- package/api/resources/capabilities/types/index.d.ts +4 -0
- package/api/resources/capabilities/types/index.js +20 -0
- package/api/resources/charters/types/CharterSearchFilter.d.ts +12 -9
- package/api/resources/commons/types/ActionResponse.d.ts +11 -2
- package/api/resources/commons/types/BaseConversationResponse.d.ts +6 -0
- package/api/resources/commons/types/CapabilityBase.d.ts +23 -0
- package/api/resources/commons/types/CapabilityBase.js +3 -0
- package/api/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +6 -3
- package/api/resources/{intelligentFields/types/IntelligentFieldStatus.js → commons/types/CapabilityStatus.js} +6 -3
- package/api/resources/commons/types/CapabilityType.d.ts +8 -0
- package/api/resources/commons/types/CapabilityType.js +11 -0
- package/api/resources/commons/types/EntityType.d.ts +5 -1
- package/api/resources/commons/types/EntityType.js +5 -1
- package/api/resources/commons/types/ErrorMessage.d.ts +3 -0
- package/api/resources/commons/types/ErrorReason.d.ts +31 -0
- package/api/resources/commons/types/ErrorReason.js +34 -0
- package/api/resources/commons/types/index.d.ts +4 -0
- package/api/resources/commons/types/index.js +4 -0
- package/api/resources/conversation/client/Client.d.ts +1 -0
- package/api/resources/conversation/client/Client.js +1 -0
- package/api/resources/conversationKickoffs/client/Client.d.ts +45 -0
- package/api/resources/conversationKickoffs/client/Client.js +175 -0
- package/api/resources/conversationKickoffs/client/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/client/index.js +17 -0
- package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +22 -0
- package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +3 -0
- package/api/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/client/requests/index.js +2 -0
- package/api/resources/conversationKickoffs/exports.d.ts +2 -0
- package/api/resources/conversationKickoffs/exports.js +21 -0
- package/api/resources/conversationKickoffs/index.d.ts +2 -0
- package/api/resources/conversationKickoffs/index.js +18 -0
- package/api/resources/conversationKickoffs/types/ConversationKickoff.d.ts +27 -0
- package/api/resources/conversationKickoffs/types/ConversationKickoff.js +3 -0
- package/api/resources/conversationKickoffs/types/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/types/index.js +17 -0
- package/api/resources/index.d.ts +6 -0
- package/api/resources/index.js +7 -1
- package/api/resources/intelligentFields/client/Client.d.ts +13 -1
- package/api/resources/intelligentFields/client/Client.js +13 -1
- package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.d.ts +1 -1
- package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +1 -1
- package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +2 -2
- package/api/resources/intelligentFields/types/EnumOption.d.ts +5 -0
- package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -4
- package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +6 -1
- package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -8
- package/api/resources/intelligentFields/types/index.d.ts +0 -1
- package/api/resources/intelligentFields/types/index.js +0 -1
- package/api/resources/knowledge/client/Client.d.ts +3 -0
- package/api/resources/knowledge/client/Client.js +3 -0
- package/api/resources/triggers/client/Client.d.ts +21 -0
- package/api/resources/triggers/client/Client.js +21 -0
- package/api/resources/triggers/types/EventTriggerBase.d.ts +0 -4
- package/api/resources/triggers/types/EventTriggerRequest.d.ts +4 -0
- package/api/resources/triggers/types/EventTriggerResponse.d.ts +11 -3
- package/package.json +1 -1
- package/reference.md +461 -1
- package/serialization/resources/capabilities/client/index.d.ts +1 -0
- package/serialization/resources/capabilities/client/index.js +17 -0
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +21 -0
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +55 -0
- package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +10 -0
- package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +42 -0
- package/serialization/resources/capabilities/client/requests/index.d.ts +2 -0
- package/serialization/resources/capabilities/client/requests/index.js +7 -0
- package/serialization/resources/capabilities/index.d.ts +2 -0
- package/serialization/resources/capabilities/index.js +18 -0
- package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +11 -0
- package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.js +45 -0
- package/serialization/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
- package/serialization/resources/capabilities/types/CapabilityResponse.js +53 -0
- package/serialization/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
- package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.js → capabilities/types/CapabilitySortField.js} +2 -2
- package/serialization/resources/capabilities/types/CapabilitySummary.d.ts +13 -0
- package/serialization/resources/capabilities/types/CapabilitySummary.js +47 -0
- package/serialization/resources/capabilities/types/index.d.ts +4 -0
- package/serialization/resources/capabilities/types/index.js +20 -0
- package/serialization/resources/charters/types/CharterSearchFilter.d.ts +1 -0
- package/serialization/resources/charters/types/CharterSearchFilter.js +1 -0
- package/serialization/resources/commons/types/ActionResponse.d.ts +3 -2
- package/serialization/resources/commons/types/ActionResponse.js +4 -2
- package/serialization/resources/commons/types/BaseConversationResponse.d.ts +1 -0
- package/serialization/resources/commons/types/BaseConversationResponse.js +1 -0
- package/serialization/resources/commons/types/CapabilityBase.d.ts +14 -0
- package/serialization/resources/commons/types/CapabilityBase.js +46 -0
- package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +2 -2
- package/serialization/resources/commons/types/CapabilityStatus.js +39 -0
- package/serialization/resources/commons/types/CapabilityType.d.ts +7 -0
- package/serialization/resources/commons/types/CapabilityType.js +39 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +1 -1
- package/serialization/resources/commons/types/ErrorMessage.d.ts +2 -0
- package/serialization/resources/commons/types/ErrorMessage.js +2 -0
- package/serialization/resources/commons/types/ErrorReason.d.ts +7 -0
- package/serialization/resources/commons/types/ErrorReason.js +49 -0
- package/serialization/resources/commons/types/index.d.ts +4 -0
- package/serialization/resources/commons/types/index.js +4 -0
- package/serialization/resources/conversationKickoffs/client/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/client/index.js +17 -0
- package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +12 -0
- package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +44 -0
- package/serialization/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/client/requests/index.js +5 -0
- package/serialization/resources/conversationKickoffs/index.d.ts +2 -0
- package/serialization/resources/conversationKickoffs/index.js +18 -0
- package/serialization/resources/conversationKickoffs/types/ConversationKickoff.d.ts +11 -0
- package/serialization/resources/conversationKickoffs/types/ConversationKickoff.js +45 -0
- package/serialization/resources/conversationKickoffs/types/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/types/index.js +17 -0
- package/serialization/resources/index.d.ts +6 -0
- package/serialization/resources/index.js +7 -1
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +2 -2
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +2 -2
- package/serialization/resources/intelligentFields/types/EnumOption.d.ts +1 -0
- package/serialization/resources/intelligentFields/types/EnumOption.js +1 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -2
- package/serialization/resources/intelligentFields/types/IntelligentFieldCore.js +0 -2
- package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +2 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.js +2 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -5
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -5
- package/serialization/resources/intelligentFields/types/index.d.ts +0 -1
- package/serialization/resources/intelligentFields/types/index.js +0 -1
- package/serialization/resources/triggers/types/EventTriggerBase.d.ts +0 -2
- package/serialization/resources/triggers/types/EventTriggerBase.js +0 -2
- package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +2 -0
- package/serialization/resources/triggers/types/EventTriggerRequest.js +2 -0
- package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +2 -1
- package/serialization/resources/triggers/types/EventTriggerResponse.js +3 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/BaseClient.js
CHANGED
|
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
|
|
|
44
44
|
const headers = (0, headers_1.mergeHeaders)({
|
|
45
45
|
"X-Fern-Language": "JavaScript",
|
|
46
46
|
"X-Fern-SDK-Name": "mavenagi",
|
|
47
|
-
"X-Fern-SDK-Version": "1.2.
|
|
48
|
-
"User-Agent": "mavenagi/1.2.
|
|
47
|
+
"X-Fern-SDK-Version": "1.2.62",
|
|
48
|
+
"User-Agent": "mavenagi/1.2.62",
|
|
49
49
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
50
50
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
51
51
|
"X-Organization-Id": options === null || options === void 0 ? void 0 : options.organizationId,
|
package/Client.d.ts
CHANGED
|
@@ -4,8 +4,10 @@ import { AnalyticsClient } from "./api/resources/analytics/client/Client";
|
|
|
4
4
|
import { AppDirectoryClient } from "./api/resources/appDirectory/client/Client";
|
|
5
5
|
import { AppSettingsClient } from "./api/resources/appSettings/client/Client";
|
|
6
6
|
import { AssetsClient } from "./api/resources/assets/client/Client";
|
|
7
|
+
import { CapabilitiesClient } from "./api/resources/capabilities/client/Client";
|
|
7
8
|
import { ChartersClient } from "./api/resources/charters/client/Client";
|
|
8
9
|
import { ConversationClient } from "./api/resources/conversation/client/Client";
|
|
10
|
+
import { ConversationKickoffsClient } from "./api/resources/conversationKickoffs/client/Client";
|
|
9
11
|
import { CustomersClient } from "./api/resources/customers/client/Client";
|
|
10
12
|
import { EventsClient } from "./api/resources/events/client/Client";
|
|
11
13
|
import { InboxClient } from "./api/resources/inbox/client/Client";
|
|
@@ -35,7 +37,9 @@ export declare class MavenAGIClient {
|
|
|
35
37
|
protected _appDirectory: AppDirectoryClient | undefined;
|
|
36
38
|
protected _appSettings: AppSettingsClient | undefined;
|
|
37
39
|
protected _assets: AssetsClient | undefined;
|
|
40
|
+
protected _capabilities: CapabilitiesClient | undefined;
|
|
38
41
|
protected _charters: ChartersClient | undefined;
|
|
42
|
+
protected _conversationKickoffs: ConversationKickoffsClient | undefined;
|
|
39
43
|
protected _conversation: ConversationClient | undefined;
|
|
40
44
|
protected _customers: CustomersClient | undefined;
|
|
41
45
|
protected _events: EventsClient | undefined;
|
|
@@ -57,7 +61,9 @@ export declare class MavenAGIClient {
|
|
|
57
61
|
get appDirectory(): AppDirectoryClient;
|
|
58
62
|
get appSettings(): AppSettingsClient;
|
|
59
63
|
get assets(): AssetsClient;
|
|
64
|
+
get capabilities(): CapabilitiesClient;
|
|
60
65
|
get charters(): ChartersClient;
|
|
66
|
+
get conversationKickoffs(): ConversationKickoffsClient;
|
|
61
67
|
get conversation(): ConversationClient;
|
|
62
68
|
get customers(): CustomersClient;
|
|
63
69
|
get events(): EventsClient;
|
package/Client.js
CHANGED
|
@@ -50,21 +50,23 @@ const Client_3 = require("./api/resources/analytics/client/Client");
|
|
|
50
50
|
const Client_4 = require("./api/resources/appDirectory/client/Client");
|
|
51
51
|
const Client_5 = require("./api/resources/appSettings/client/Client");
|
|
52
52
|
const Client_6 = require("./api/resources/assets/client/Client");
|
|
53
|
-
const Client_7 = require("./api/resources/
|
|
54
|
-
const Client_8 = require("./api/resources/
|
|
55
|
-
const Client_9 = require("./api/resources/
|
|
56
|
-
const Client_10 = require("./api/resources/
|
|
57
|
-
const Client_11 = require("./api/resources/
|
|
58
|
-
const Client_12 = require("./api/resources/
|
|
59
|
-
const Client_13 = require("./api/resources/
|
|
60
|
-
const Client_14 = require("./api/resources/
|
|
61
|
-
const Client_15 = require("./api/resources/
|
|
62
|
-
const Client_16 = require("./api/resources/
|
|
63
|
-
const Client_17 = require("./api/resources/
|
|
64
|
-
const Client_18 = require("./api/resources/
|
|
65
|
-
const Client_19 = require("./api/resources/
|
|
66
|
-
const Client_20 = require("./api/resources/
|
|
67
|
-
const Client_21 = require("./api/resources/
|
|
53
|
+
const Client_7 = require("./api/resources/capabilities/client/Client");
|
|
54
|
+
const Client_8 = require("./api/resources/charters/client/Client");
|
|
55
|
+
const Client_9 = require("./api/resources/conversation/client/Client");
|
|
56
|
+
const Client_10 = require("./api/resources/conversationKickoffs/client/Client");
|
|
57
|
+
const Client_11 = require("./api/resources/customers/client/Client");
|
|
58
|
+
const Client_12 = require("./api/resources/events/client/Client");
|
|
59
|
+
const Client_13 = require("./api/resources/inbox/client/Client");
|
|
60
|
+
const Client_14 = require("./api/resources/integrations/client/Client");
|
|
61
|
+
const Client_15 = require("./api/resources/intelligentFields/client/Client");
|
|
62
|
+
const Client_16 = require("./api/resources/knowledge/client/Client");
|
|
63
|
+
const Client_17 = require("./api/resources/organizations/client/Client");
|
|
64
|
+
const Client_18 = require("./api/resources/segments/client/Client");
|
|
65
|
+
const Client_19 = require("./api/resources/translations/client/Client");
|
|
66
|
+
const Client_20 = require("./api/resources/triggers/client/Client");
|
|
67
|
+
const Client_21 = require("./api/resources/users/client/Client");
|
|
68
|
+
const Client_22 = require("./api/resources/voice/client/Client");
|
|
69
|
+
const Client_23 = require("./api/resources/voiceConversations/client/Client");
|
|
68
70
|
const BaseClient_1 = require("./BaseClient");
|
|
69
71
|
const core = __importStar(require("./core"));
|
|
70
72
|
class MavenAGIClient {
|
|
@@ -95,65 +97,73 @@ class MavenAGIClient {
|
|
|
95
97
|
var _a;
|
|
96
98
|
return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_6.AssetsClient(this._options)));
|
|
97
99
|
}
|
|
100
|
+
get capabilities() {
|
|
101
|
+
var _a;
|
|
102
|
+
return ((_a = this._capabilities) !== null && _a !== void 0 ? _a : (this._capabilities = new Client_7.CapabilitiesClient(this._options)));
|
|
103
|
+
}
|
|
98
104
|
get charters() {
|
|
99
105
|
var _a;
|
|
100
|
-
return ((_a = this._charters) !== null && _a !== void 0 ? _a : (this._charters = new
|
|
106
|
+
return ((_a = this._charters) !== null && _a !== void 0 ? _a : (this._charters = new Client_8.ChartersClient(this._options)));
|
|
107
|
+
}
|
|
108
|
+
get conversationKickoffs() {
|
|
109
|
+
var _a;
|
|
110
|
+
return ((_a = this._conversationKickoffs) !== null && _a !== void 0 ? _a : (this._conversationKickoffs = new Client_10.ConversationKickoffsClient(this._options)));
|
|
101
111
|
}
|
|
102
112
|
get conversation() {
|
|
103
113
|
var _a;
|
|
104
|
-
return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new
|
|
114
|
+
return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Client_9.ConversationClient(this._options)));
|
|
105
115
|
}
|
|
106
116
|
get customers() {
|
|
107
117
|
var _a;
|
|
108
|
-
return ((_a = this._customers) !== null && _a !== void 0 ? _a : (this._customers = new
|
|
118
|
+
return ((_a = this._customers) !== null && _a !== void 0 ? _a : (this._customers = new Client_11.CustomersClient(this._options)));
|
|
109
119
|
}
|
|
110
120
|
get events() {
|
|
111
121
|
var _a;
|
|
112
|
-
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new
|
|
122
|
+
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_12.EventsClient(this._options)));
|
|
113
123
|
}
|
|
114
124
|
get inbox() {
|
|
115
125
|
var _a;
|
|
116
|
-
return ((_a = this._inbox) !== null && _a !== void 0 ? _a : (this._inbox = new
|
|
126
|
+
return ((_a = this._inbox) !== null && _a !== void 0 ? _a : (this._inbox = new Client_13.InboxClient(this._options)));
|
|
117
127
|
}
|
|
118
128
|
get integrations() {
|
|
119
129
|
var _a;
|
|
120
|
-
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new
|
|
130
|
+
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_14.IntegrationsClient(this._options)));
|
|
121
131
|
}
|
|
122
132
|
get intelligentFields() {
|
|
123
133
|
var _a;
|
|
124
|
-
return ((_a = this._intelligentFields) !== null && _a !== void 0 ? _a : (this._intelligentFields = new
|
|
134
|
+
return ((_a = this._intelligentFields) !== null && _a !== void 0 ? _a : (this._intelligentFields = new Client_15.IntelligentFieldsClient(this._options)));
|
|
125
135
|
}
|
|
126
136
|
get knowledge() {
|
|
127
137
|
var _a;
|
|
128
|
-
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new
|
|
138
|
+
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_16.KnowledgeClient(this._options)));
|
|
129
139
|
}
|
|
130
140
|
get organizations() {
|
|
131
141
|
var _a;
|
|
132
|
-
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new
|
|
142
|
+
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_17.OrganizationsClient(this._options)));
|
|
133
143
|
}
|
|
134
144
|
get segments() {
|
|
135
145
|
var _a;
|
|
136
|
-
return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new
|
|
146
|
+
return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_18.SegmentsClient(this._options)));
|
|
137
147
|
}
|
|
138
148
|
get translations() {
|
|
139
149
|
var _a;
|
|
140
|
-
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new
|
|
150
|
+
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_19.TranslationsClient(this._options)));
|
|
141
151
|
}
|
|
142
152
|
get triggers() {
|
|
143
153
|
var _a;
|
|
144
|
-
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new
|
|
154
|
+
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_20.TriggersClient(this._options)));
|
|
145
155
|
}
|
|
146
156
|
get users() {
|
|
147
157
|
var _a;
|
|
148
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
158
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_21.UsersClient(this._options)));
|
|
149
159
|
}
|
|
150
160
|
get voiceConversations() {
|
|
151
161
|
var _a;
|
|
152
|
-
return ((_a = this._voiceConversations) !== null && _a !== void 0 ? _a : (this._voiceConversations = new
|
|
162
|
+
return ((_a = this._voiceConversations) !== null && _a !== void 0 ? _a : (this._voiceConversations = new Client_23.VoiceConversationsClient(this._options)));
|
|
153
163
|
}
|
|
154
164
|
get voice() {
|
|
155
165
|
var _a;
|
|
156
|
-
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new
|
|
166
|
+
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_22.VoiceClient(this._options)));
|
|
157
167
|
}
|
|
158
168
|
/**
|
|
159
169
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
@@ -11,6 +11,12 @@ export declare class ActionsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<ActionsClient.Options>;
|
|
12
12
|
constructor(options: ActionsClient.Options);
|
|
13
13
|
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
*
|
|
16
|
+
* Deprecated. Use `POST /v1/capabilities/search`, which searches every kind of capability
|
|
17
|
+
* at once. It returns the fields every capability shares rather than the whole Action;
|
|
18
|
+
* fetch one by its kind and reference ID for the rest.
|
|
19
|
+
*
|
|
14
20
|
* @param {MavenAGI.ActionsSearchRequest} request
|
|
15
21
|
* @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
22
|
*
|
|
@@ -67,6 +73,11 @@ export declare class ActionsClient {
|
|
|
67
73
|
createOrUpdate(request: MavenAGI.ActionRequest, requestOptions?: ActionsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.ActionResponse>;
|
|
68
74
|
private __createOrUpdate;
|
|
69
75
|
/**
|
|
76
|
+
* @deprecated
|
|
77
|
+
*
|
|
78
|
+
* Deprecated. Use `GET /v1/capabilities/ACTION/{referenceId}`, which returns this same
|
|
79
|
+
* object for an action and the equivalent for every other kind of capability.
|
|
80
|
+
*
|
|
70
81
|
* Get an action by its supplied ID
|
|
71
82
|
*
|
|
72
83
|
* @param {string} actionReferenceId - The reference ID of the action to get. All other entity ID fields are inferred from the request.
|
|
@@ -120,6 +131,11 @@ export declare class ActionsClient {
|
|
|
120
131
|
patch(actionReferenceId: string, request?: MavenAGI.ActionPatchRequest, requestOptions?: ActionsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.ActionResponse>;
|
|
121
132
|
private __patch;
|
|
122
133
|
/**
|
|
134
|
+
* @deprecated
|
|
135
|
+
*
|
|
136
|
+
* Deprecated. Use `DELETE /v1/capabilities/ACTION/{referenceId}`, which deletes any kind of
|
|
137
|
+
* capability the same way.
|
|
138
|
+
*
|
|
123
139
|
* Delete an action
|
|
124
140
|
*
|
|
125
141
|
* @param {string} actionReferenceId - The reference ID of the action to unregister. All other entity ID fields are inferred from the request.
|
|
@@ -58,6 +58,12 @@ class ActionsClient {
|
|
|
58
58
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
+
* @deprecated
|
|
62
|
+
*
|
|
63
|
+
* Deprecated. Use `POST /v1/capabilities/search`, which searches every kind of capability
|
|
64
|
+
* at once. It returns the fields every capability shares rather than the whole Action;
|
|
65
|
+
* fetch one by its kind and reference ID for the rest.
|
|
66
|
+
*
|
|
61
67
|
* @param {MavenAGI.ActionsSearchRequest} request
|
|
62
68
|
* @param {ActionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
69
|
*
|
|
@@ -278,6 +284,11 @@ class ActionsClient {
|
|
|
278
284
|
});
|
|
279
285
|
}
|
|
280
286
|
/**
|
|
287
|
+
* @deprecated
|
|
288
|
+
*
|
|
289
|
+
* Deprecated. Use `GET /v1/capabilities/ACTION/{referenceId}`, which returns this same
|
|
290
|
+
* object for an action and the equivalent for every other kind of capability.
|
|
291
|
+
*
|
|
281
292
|
* Get an action by its supplied ID
|
|
282
293
|
*
|
|
283
294
|
* @param {string} actionReferenceId - The reference ID of the action to get. All other entity ID fields are inferred from the request.
|
|
@@ -500,6 +511,11 @@ class ActionsClient {
|
|
|
500
511
|
});
|
|
501
512
|
}
|
|
502
513
|
/**
|
|
514
|
+
* @deprecated
|
|
515
|
+
*
|
|
516
|
+
* Deprecated. Use `DELETE /v1/capabilities/ACTION/{referenceId}`, which deletes any kind of
|
|
517
|
+
* capability the same way.
|
|
518
|
+
*
|
|
503
519
|
* Delete an action
|
|
504
520
|
*
|
|
505
521
|
* @param {string} actionReferenceId - The reference ID of the action to unregister. All other entity ID fields are inferred from the request.
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../core";
|
|
4
|
+
import * as MavenAGI from "../../../index";
|
|
5
|
+
export declare namespace CapabilitiesClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class CapabilitiesClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<CapabilitiesClient.Options>;
|
|
12
|
+
constructor(options: CapabilitiesClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Fetch one of an agent's capabilities by its type and reference ID.
|
|
15
|
+
*
|
|
16
|
+
* The response carries the same fields the capability's own API returns, so an Action read
|
|
17
|
+
* here and an Action read from the Actions API are the same object. Intelligent Fields are the
|
|
18
|
+
* one exception: their own API also returns the charters referencing the field, which this
|
|
19
|
+
* endpoint leaves out.
|
|
20
|
+
*
|
|
21
|
+
* @param {MavenAGI.CapabilityType} capabilityType - Which kind of capability to fetch.
|
|
22
|
+
* @param {string} referenceId - The capability's reference ID, unique within its type and app.
|
|
23
|
+
* @param {MavenAGI.GetCapabilityByTypeRequest} request
|
|
24
|
+
* @param {CapabilitiesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
+
*
|
|
26
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
27
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
28
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
29
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
30
|
+
* @throws {@link MavenAGI.ServerError}
|
|
31
|
+
* @throws {@link errors.MavenAGIError}
|
|
32
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await client.capabilities.getCapability("ACTION", "referenceId")
|
|
36
|
+
*/
|
|
37
|
+
getCapability(capabilityType: MavenAGI.CapabilityType, referenceId: string, request?: MavenAGI.GetCapabilityByTypeRequest, requestOptions?: CapabilitiesClient.RequestOptions): core.HttpResponsePromise<MavenAGI.CapabilityResponse>;
|
|
38
|
+
private __getCapability;
|
|
39
|
+
/**
|
|
40
|
+
* Set whether the agent uses a capability, whatever kind it is. This is the publish and
|
|
41
|
+
* unpublish operation, and it works the same way for every capability type.
|
|
42
|
+
*
|
|
43
|
+
* Everything else about a capability -- its name, its description, and any settings
|
|
44
|
+
* particular to its kind -- is changed through that capability's own API.
|
|
45
|
+
*
|
|
46
|
+
* @param {MavenAGI.CapabilityType} capabilityType - Which kind of capability to update.
|
|
47
|
+
* @param {string} referenceId - The capability's reference ID, unique within its type and app.
|
|
48
|
+
* @param {MavenAGI.PatchCapabilityByTypeRequest} request
|
|
49
|
+
* @param {CapabilitiesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
52
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
53
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
54
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
55
|
+
* @throws {@link MavenAGI.ServerError}
|
|
56
|
+
* @throws {@link errors.MavenAGIError}
|
|
57
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* await client.capabilities.patchCapability("ACTION", "referenceId")
|
|
61
|
+
*/
|
|
62
|
+
patchCapability(capabilityType: MavenAGI.CapabilityType, referenceId: string, request?: MavenAGI.PatchCapabilityByTypeRequest, requestOptions?: CapabilitiesClient.RequestOptions): core.HttpResponsePromise<MavenAGI.CapabilityResponse>;
|
|
63
|
+
private __patchCapability;
|
|
64
|
+
/**
|
|
65
|
+
* Delete one of an agent's capabilities. The agent stops using it, and it stops being
|
|
66
|
+
* addressable: a later get, patch or delete of the same capability is a 404, and it no longer
|
|
67
|
+
* appears in search.
|
|
68
|
+
*
|
|
69
|
+
* With `variantReferenceId`, an intelligent field's delete is staged in that variant instead,
|
|
70
|
+
* and takes effect when the variant is committed. Until then the agent keeps using the field,
|
|
71
|
+
* and only a later patch or delete through the same variant is a 404.
|
|
72
|
+
*
|
|
73
|
+
* @param {MavenAGI.CapabilityType} capabilityType - Which kind of capability to delete.
|
|
74
|
+
* @param {string} referenceId - The capability's reference ID, unique within its type and app.
|
|
75
|
+
* @param {MavenAGI.DeleteCapabilityByTypeRequest} request
|
|
76
|
+
* @param {CapabilitiesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
79
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
80
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
81
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
82
|
+
* @throws {@link MavenAGI.ServerError}
|
|
83
|
+
* @throws {@link errors.MavenAGIError}
|
|
84
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* await client.capabilities.deleteCapability("ACTION", "referenceId")
|
|
88
|
+
*/
|
|
89
|
+
deleteCapability(capabilityType: MavenAGI.CapabilityType, referenceId: string, request?: MavenAGI.DeleteCapabilityByTypeRequest, requestOptions?: CapabilitiesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
90
|
+
private __deleteCapability;
|
|
91
|
+
/**
|
|
92
|
+
* Search an agent's capabilities of every kind at once, newest first by default.
|
|
93
|
+
*
|
|
94
|
+
* Returns the fields every capability shares. Fetch one by its type and reference ID for the
|
|
95
|
+
* settings particular to its kind.
|
|
96
|
+
*
|
|
97
|
+
* Sorting by `NAME` or `TYPE` instead orders ascending unless `sortDesc` says otherwise;
|
|
98
|
+
* `sortDesc` overrides the default either way.
|
|
99
|
+
*
|
|
100
|
+
* Deleted capabilities are never returned.
|
|
101
|
+
*
|
|
102
|
+
* @param {MavenAGI.CapabilitiesSearchRequest} request
|
|
103
|
+
* @param {CapabilitiesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
106
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
107
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
108
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
109
|
+
* @throws {@link MavenAGI.ServerError}
|
|
110
|
+
* @throws {@link errors.MavenAGIError}
|
|
111
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* await client.capabilities.searchCapabilities()
|
|
115
|
+
*/
|
|
116
|
+
searchCapabilities(request?: MavenAGI.CapabilitiesSearchRequest, requestOptions?: CapabilitiesClient.RequestOptions): core.HttpResponsePromise<MavenAGI.CapabilitiesSearchResponse>;
|
|
117
|
+
private __searchCapabilities;
|
|
118
|
+
}
|