ultracart_rest_api_v2_typescript 4.1.31 → 4.1.33
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/README.md +4 -2
- package/dist/apis/ConversationApi.d.ts +31 -0
- package/dist/apis/ConversationApi.js +68 -1
- package/dist/models/ConversationAgentProfile.d.ts +18 -0
- package/dist/models/ConversationAgentProfile.js +6 -0
- package/package.json +1 -1
- package/src/apis/ConversationApi.ts +77 -1
- package/src/models/ConversationAgentProfile.ts +24 -0
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# UltraCart Typescript SDK
|
|
2
|
-
## ultracart_rest_api_v2_typescript@4.1.
|
|
2
|
+
## ultracart_rest_api_v2_typescript@4.1.33
|
|
3
3
|
|
|
4
4
|
Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
|
|
5
5
|
|
|
6
6
|
Installation
|
|
7
7
|
|
|
8
8
|
```
|
|
9
|
-
npm install ultracart_rest_api_v2_typescript@4.1.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.33 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,8 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.33 | 11/26/2025 | conversation - AI agent profile fields |
|
|
89
|
+
| 4.1.32 | 11/20/2025 | conversion api bug fix on incorrect signature |
|
|
88
90
|
| 4.1.31 | 11/20/2025 | conversation - AI agent mcp server tools function |
|
|
89
91
|
| 4.1.30 | 11/19/2025 | conversation - AI agent MCP server configuration methods |
|
|
90
92
|
| 4.1.29 | 11/13/2025 | conversations - AI capabilities flag for generate coupon |
|
|
@@ -211,6 +211,11 @@ export interface StartConversationRequest {
|
|
|
211
211
|
export interface UpdateAgentProfileRequest {
|
|
212
212
|
profileRequest: ConversationAgentProfile;
|
|
213
213
|
}
|
|
214
|
+
export interface UpdateAgentProfileMcpRequest {
|
|
215
|
+
userId: number;
|
|
216
|
+
mcpServerUuid: string;
|
|
217
|
+
mcpServer: ConversationMcpServer;
|
|
218
|
+
}
|
|
214
219
|
export interface UpdateConversationCannedMessageRequest {
|
|
215
220
|
conversationCannedMessageOid: number;
|
|
216
221
|
cannedMessage: ConversationCannedMessage;
|
|
@@ -1429,6 +1434,22 @@ export interface ConversationApiInterface {
|
|
|
1429
1434
|
* Update agent profile
|
|
1430
1435
|
*/
|
|
1431
1436
|
updateAgentProfile(requestParameters: UpdateAgentProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationAgentProfileResponse>;
|
|
1437
|
+
/**
|
|
1438
|
+
* Update an agent MCP server
|
|
1439
|
+
* @summary Update an agent MCP server
|
|
1440
|
+
* @param {number} userId
|
|
1441
|
+
* @param {string} mcpServerUuid
|
|
1442
|
+
* @param {ConversationMcpServer} mcpServer MCP Server
|
|
1443
|
+
* @param {*} [options] Override http request option.
|
|
1444
|
+
* @throws {RequiredError}
|
|
1445
|
+
* @memberof ConversationApiInterface
|
|
1446
|
+
*/
|
|
1447
|
+
updateAgentProfileMcpRaw(requestParameters: UpdateAgentProfileMcpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationMcpServerResponse>>;
|
|
1448
|
+
/**
|
|
1449
|
+
* Update an agent MCP server
|
|
1450
|
+
* Update an agent MCP server
|
|
1451
|
+
*/
|
|
1452
|
+
updateAgentProfileMcp(requestParameters: UpdateAgentProfileMcpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationMcpServerResponse>;
|
|
1432
1453
|
/**
|
|
1433
1454
|
* Update a canned message
|
|
1434
1455
|
* @summary Update a canned message
|
|
@@ -2472,6 +2493,16 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
|
|
|
2472
2493
|
* Update agent profile
|
|
2473
2494
|
*/
|
|
2474
2495
|
updateAgentProfile(requestParameters: UpdateAgentProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationAgentProfileResponse>;
|
|
2496
|
+
/**
|
|
2497
|
+
* Update an agent MCP server
|
|
2498
|
+
* Update an agent MCP server
|
|
2499
|
+
*/
|
|
2500
|
+
updateAgentProfileMcpRaw(requestParameters: UpdateAgentProfileMcpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationMcpServerResponse>>;
|
|
2501
|
+
/**
|
|
2502
|
+
* Update an agent MCP server
|
|
2503
|
+
* Update an agent MCP server
|
|
2504
|
+
*/
|
|
2505
|
+
updateAgentProfileMcp(requestParameters: UpdateAgentProfileMcpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationMcpServerResponse>;
|
|
2475
2506
|
/**
|
|
2476
2507
|
* Update a canned message
|
|
2477
2508
|
* Update a canned message
|
|
@@ -170,7 +170,7 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
170
170
|
}
|
|
171
171
|
return [4 /*yield*/, this.request({
|
|
172
172
|
path: "/conversation/agent/profiles/{user_id}/mcps/{mcp_server_uuid}".replace("{".concat("user_id", "}"), encodeURIComponent(String(requestParameters.userId))).replace("{".concat("mcp_server_uuid", "}"), encodeURIComponent(String(requestParameters.mcpServerUuid))),
|
|
173
|
-
method: '
|
|
173
|
+
method: 'DELETE',
|
|
174
174
|
headers: headerParameters,
|
|
175
175
|
query: queryParameters,
|
|
176
176
|
}, initOverrides)];
|
|
@@ -4963,6 +4963,73 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
4963
4963
|
});
|
|
4964
4964
|
});
|
|
4965
4965
|
};
|
|
4966
|
+
/**
|
|
4967
|
+
* Update an agent MCP server
|
|
4968
|
+
* Update an agent MCP server
|
|
4969
|
+
*/
|
|
4970
|
+
ConversationApi.prototype.updateAgentProfileMcpRaw = function (requestParameters, initOverrides) {
|
|
4971
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4972
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
4973
|
+
return __generator(this, function (_c) {
|
|
4974
|
+
switch (_c.label) {
|
|
4975
|
+
case 0:
|
|
4976
|
+
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
4977
|
+
throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling updateAgentProfileMcp.');
|
|
4978
|
+
}
|
|
4979
|
+
if (requestParameters.mcpServerUuid === null || requestParameters.mcpServerUuid === undefined) {
|
|
4980
|
+
throw new runtime.RequiredError('mcpServerUuid', 'Required parameter requestParameters.mcpServerUuid was null or undefined when calling updateAgentProfileMcp.');
|
|
4981
|
+
}
|
|
4982
|
+
if (requestParameters.mcpServer === null || requestParameters.mcpServer === undefined) {
|
|
4983
|
+
throw new runtime.RequiredError('mcpServer', 'Required parameter requestParameters.mcpServer was null or undefined when calling updateAgentProfileMcp.');
|
|
4984
|
+
}
|
|
4985
|
+
queryParameters = {};
|
|
4986
|
+
headerParameters = {};
|
|
4987
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4988
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
4989
|
+
// oauth required
|
|
4990
|
+
_a = headerParameters;
|
|
4991
|
+
_b = "Authorization";
|
|
4992
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["conversation_write"])];
|
|
4993
|
+
case 1:
|
|
4994
|
+
// oauth required
|
|
4995
|
+
_a[_b] = _c.sent();
|
|
4996
|
+
_c.label = 2;
|
|
4997
|
+
case 2:
|
|
4998
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
4999
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
5000
|
+
}
|
|
5001
|
+
return [4 /*yield*/, this.request({
|
|
5002
|
+
path: "/conversation/agent/profiles/{user_id}/mcps/{mcp_server_uuid}".replace("{".concat("user_id", "}"), encodeURIComponent(String(requestParameters.userId))).replace("{".concat("mcp_server_uuid", "}"), encodeURIComponent(String(requestParameters.mcpServerUuid))),
|
|
5003
|
+
method: 'POST',
|
|
5004
|
+
headers: headerParameters,
|
|
5005
|
+
query: queryParameters,
|
|
5006
|
+
body: (0, models_1.ConversationMcpServerToJSON)(requestParameters.mcpServer),
|
|
5007
|
+
}, initOverrides)];
|
|
5008
|
+
case 3:
|
|
5009
|
+
response = _c.sent();
|
|
5010
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationMcpServerResponseFromJSON)(jsonValue); })];
|
|
5011
|
+
}
|
|
5012
|
+
});
|
|
5013
|
+
});
|
|
5014
|
+
};
|
|
5015
|
+
/**
|
|
5016
|
+
* Update an agent MCP server
|
|
5017
|
+
* Update an agent MCP server
|
|
5018
|
+
*/
|
|
5019
|
+
ConversationApi.prototype.updateAgentProfileMcp = function (requestParameters, initOverrides) {
|
|
5020
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5021
|
+
var response;
|
|
5022
|
+
return __generator(this, function (_a) {
|
|
5023
|
+
switch (_a.label) {
|
|
5024
|
+
case 0: return [4 /*yield*/, this.updateAgentProfileMcpRaw(requestParameters, initOverrides)];
|
|
5025
|
+
case 1:
|
|
5026
|
+
response = _a.sent();
|
|
5027
|
+
return [4 /*yield*/, response.value()];
|
|
5028
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
5029
|
+
}
|
|
5030
|
+
});
|
|
5031
|
+
});
|
|
5032
|
+
};
|
|
4966
5033
|
/**
|
|
4967
5034
|
* Update a canned message
|
|
4968
5035
|
* Update a canned message
|
|
@@ -39,6 +39,12 @@ export interface ConversationAgentProfile {
|
|
|
39
39
|
* @memberof ConversationAgentProfile
|
|
40
40
|
*/
|
|
41
41
|
ai_sms_instructions?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Additional instructions for this AI when handling ticket draft replies
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ConversationAgentProfile
|
|
46
|
+
*/
|
|
47
|
+
ai_ticket_instructions?: string;
|
|
42
48
|
/**
|
|
43
49
|
* The number of engagement chats that can be pushed on them at any given time.
|
|
44
50
|
* @type {number}
|
|
@@ -87,6 +93,18 @@ export interface ConversationAgentProfile {
|
|
|
87
93
|
* @memberof ConversationAgentProfile
|
|
88
94
|
*/
|
|
89
95
|
user_id?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Restrict this agent to drafting replies only to tickets with these classifications
|
|
98
|
+
* @type {Array<string>}
|
|
99
|
+
* @memberof ConversationAgentProfile
|
|
100
|
+
*/
|
|
101
|
+
zohodesk_classifications?: Array<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Restrict this agent to drafting replies only to these department ids
|
|
104
|
+
* @type {Array<string>}
|
|
105
|
+
* @memberof ConversationAgentProfile
|
|
106
|
+
*/
|
|
107
|
+
zohodesk_departments?: Array<string>;
|
|
90
108
|
}
|
|
91
109
|
/**
|
|
92
110
|
* @export
|
|
@@ -44,6 +44,7 @@ function ConversationAgentProfileFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'ai_chat_instructions': !(0, runtime_1.exists)(json, 'ai_chat_instructions') ? undefined : json['ai_chat_instructions'],
|
|
45
45
|
'ai_persona': !(0, runtime_1.exists)(json, 'ai_persona') ? undefined : json['ai_persona'],
|
|
46
46
|
'ai_sms_instructions': !(0, runtime_1.exists)(json, 'ai_sms_instructions') ? undefined : json['ai_sms_instructions'],
|
|
47
|
+
'ai_ticket_instructions': !(0, runtime_1.exists)(json, 'ai_ticket_instructions') ? undefined : json['ai_ticket_instructions'],
|
|
47
48
|
'chat_limit': !(0, runtime_1.exists)(json, 'chat_limit') ? undefined : json['chat_limit'],
|
|
48
49
|
'default_language_iso_code': !(0, runtime_1.exists)(json, 'default_language_iso_code') ? undefined : json['default_language_iso_code'],
|
|
49
50
|
'default_status': !(0, runtime_1.exists)(json, 'default_status') ? undefined : json['default_status'],
|
|
@@ -52,6 +53,8 @@ function ConversationAgentProfileFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
53
|
'profile_image_upload_key': !(0, runtime_1.exists)(json, 'profile_image_upload_key') ? undefined : json['profile_image_upload_key'],
|
|
53
54
|
'profile_image_url': !(0, runtime_1.exists)(json, 'profile_image_url') ? undefined : json['profile_image_url'],
|
|
54
55
|
'user_id': !(0, runtime_1.exists)(json, 'user_id') ? undefined : json['user_id'],
|
|
56
|
+
'zohodesk_classifications': !(0, runtime_1.exists)(json, 'zohodesk_classifications') ? undefined : json['zohodesk_classifications'],
|
|
57
|
+
'zohodesk_departments': !(0, runtime_1.exists)(json, 'zohodesk_departments') ? undefined : json['zohodesk_departments'],
|
|
55
58
|
};
|
|
56
59
|
}
|
|
57
60
|
exports.ConversationAgentProfileFromJSONTyped = ConversationAgentProfileFromJSONTyped;
|
|
@@ -67,6 +70,7 @@ function ConversationAgentProfileToJSON(value) {
|
|
|
67
70
|
'ai_chat_instructions': value.ai_chat_instructions,
|
|
68
71
|
'ai_persona': value.ai_persona,
|
|
69
72
|
'ai_sms_instructions': value.ai_sms_instructions,
|
|
73
|
+
'ai_ticket_instructions': value.ai_ticket_instructions,
|
|
70
74
|
'chat_limit': value.chat_limit,
|
|
71
75
|
'default_language_iso_code': value.default_language_iso_code,
|
|
72
76
|
'default_status': value.default_status,
|
|
@@ -75,6 +79,8 @@ function ConversationAgentProfileToJSON(value) {
|
|
|
75
79
|
'profile_image_upload_key': value.profile_image_upload_key,
|
|
76
80
|
'profile_image_url': value.profile_image_url,
|
|
77
81
|
'user_id': value.user_id,
|
|
82
|
+
'zohodesk_classifications': value.zohodesk_classifications,
|
|
83
|
+
'zohodesk_departments': value.zohodesk_departments,
|
|
78
84
|
};
|
|
79
85
|
}
|
|
80
86
|
exports.ConversationAgentProfileToJSON = ConversationAgentProfileToJSON;
|
package/package.json
CHANGED
|
@@ -503,6 +503,12 @@ export interface UpdateAgentProfileRequest {
|
|
|
503
503
|
profileRequest: ConversationAgentProfile;
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
+
export interface UpdateAgentProfileMcpRequest {
|
|
507
|
+
userId: number;
|
|
508
|
+
mcpServerUuid: string;
|
|
509
|
+
mcpServer: ConversationMcpServer;
|
|
510
|
+
}
|
|
511
|
+
|
|
506
512
|
export interface UpdateConversationCannedMessageRequest {
|
|
507
513
|
conversationCannedMessageOid: number;
|
|
508
514
|
cannedMessage: ConversationCannedMessage;
|
|
@@ -1901,6 +1907,24 @@ export interface ConversationApiInterface {
|
|
|
1901
1907
|
*/
|
|
1902
1908
|
updateAgentProfile(requestParameters: UpdateAgentProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationAgentProfileResponse>;
|
|
1903
1909
|
|
|
1910
|
+
/**
|
|
1911
|
+
* Update an agent MCP server
|
|
1912
|
+
* @summary Update an agent MCP server
|
|
1913
|
+
* @param {number} userId
|
|
1914
|
+
* @param {string} mcpServerUuid
|
|
1915
|
+
* @param {ConversationMcpServer} mcpServer MCP Server
|
|
1916
|
+
* @param {*} [options] Override http request option.
|
|
1917
|
+
* @throws {RequiredError}
|
|
1918
|
+
* @memberof ConversationApiInterface
|
|
1919
|
+
*/
|
|
1920
|
+
updateAgentProfileMcpRaw(requestParameters: UpdateAgentProfileMcpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationMcpServerResponse>>;
|
|
1921
|
+
|
|
1922
|
+
/**
|
|
1923
|
+
* Update an agent MCP server
|
|
1924
|
+
* Update an agent MCP server
|
|
1925
|
+
*/
|
|
1926
|
+
updateAgentProfileMcp(requestParameters: UpdateAgentProfileMcpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationMcpServerResponse>;
|
|
1927
|
+
|
|
1904
1928
|
/**
|
|
1905
1929
|
* Update a canned message
|
|
1906
1930
|
* @summary Update a canned message
|
|
@@ -2217,7 +2241,7 @@ export class ConversationApi extends runtime.BaseAPI implements ConversationApiI
|
|
|
2217
2241
|
|
|
2218
2242
|
const response = await this.request({
|
|
2219
2243
|
path: `/conversation/agent/profiles/{user_id}/mcps/{mcp_server_uuid}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters.userId))).replace(`{${"mcp_server_uuid"}}`, encodeURIComponent(String(requestParameters.mcpServerUuid))),
|
|
2220
|
-
method: '
|
|
2244
|
+
method: 'DELETE',
|
|
2221
2245
|
headers: headerParameters,
|
|
2222
2246
|
query: queryParameters,
|
|
2223
2247
|
}, initOverrides);
|
|
@@ -5563,6 +5587,58 @@ export class ConversationApi extends runtime.BaseAPI implements ConversationApiI
|
|
|
5563
5587
|
return await response.value();
|
|
5564
5588
|
}
|
|
5565
5589
|
|
|
5590
|
+
/**
|
|
5591
|
+
* Update an agent MCP server
|
|
5592
|
+
* Update an agent MCP server
|
|
5593
|
+
*/
|
|
5594
|
+
async updateAgentProfileMcpRaw(requestParameters: UpdateAgentProfileMcpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationMcpServerResponse>> {
|
|
5595
|
+
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
5596
|
+
throw new runtime.RequiredError('userId','Required parameter requestParameters.userId was null or undefined when calling updateAgentProfileMcp.');
|
|
5597
|
+
}
|
|
5598
|
+
|
|
5599
|
+
if (requestParameters.mcpServerUuid === null || requestParameters.mcpServerUuid === undefined) {
|
|
5600
|
+
throw new runtime.RequiredError('mcpServerUuid','Required parameter requestParameters.mcpServerUuid was null or undefined when calling updateAgentProfileMcp.');
|
|
5601
|
+
}
|
|
5602
|
+
|
|
5603
|
+
if (requestParameters.mcpServer === null || requestParameters.mcpServer === undefined) {
|
|
5604
|
+
throw new runtime.RequiredError('mcpServer','Required parameter requestParameters.mcpServer was null or undefined when calling updateAgentProfileMcp.');
|
|
5605
|
+
}
|
|
5606
|
+
|
|
5607
|
+
const queryParameters: any = {};
|
|
5608
|
+
|
|
5609
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
5610
|
+
|
|
5611
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5612
|
+
|
|
5613
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5614
|
+
// oauth required
|
|
5615
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["conversation_write"]);
|
|
5616
|
+
}
|
|
5617
|
+
|
|
5618
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
5619
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
5620
|
+
}
|
|
5621
|
+
|
|
5622
|
+
const response = await this.request({
|
|
5623
|
+
path: `/conversation/agent/profiles/{user_id}/mcps/{mcp_server_uuid}`.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters.userId))).replace(`{${"mcp_server_uuid"}}`, encodeURIComponent(String(requestParameters.mcpServerUuid))),
|
|
5624
|
+
method: 'POST',
|
|
5625
|
+
headers: headerParameters,
|
|
5626
|
+
query: queryParameters,
|
|
5627
|
+
body: ConversationMcpServerToJSON(requestParameters.mcpServer),
|
|
5628
|
+
}, initOverrides);
|
|
5629
|
+
|
|
5630
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ConversationMcpServerResponseFromJSON(jsonValue));
|
|
5631
|
+
}
|
|
5632
|
+
|
|
5633
|
+
/**
|
|
5634
|
+
* Update an agent MCP server
|
|
5635
|
+
* Update an agent MCP server
|
|
5636
|
+
*/
|
|
5637
|
+
async updateAgentProfileMcp(requestParameters: UpdateAgentProfileMcpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationMcpServerResponse> {
|
|
5638
|
+
const response = await this.updateAgentProfileMcpRaw(requestParameters, initOverrides);
|
|
5639
|
+
return await response.value();
|
|
5640
|
+
}
|
|
5641
|
+
|
|
5566
5642
|
/**
|
|
5567
5643
|
* Update a canned message
|
|
5568
5644
|
* Update a canned message
|
|
@@ -43,6 +43,12 @@ export interface ConversationAgentProfile {
|
|
|
43
43
|
* @memberof ConversationAgentProfile
|
|
44
44
|
*/
|
|
45
45
|
ai_sms_instructions?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Additional instructions for this AI when handling ticket draft replies
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ConversationAgentProfile
|
|
50
|
+
*/
|
|
51
|
+
ai_ticket_instructions?: string;
|
|
46
52
|
/**
|
|
47
53
|
* The number of engagement chats that can be pushed on them at any given time.
|
|
48
54
|
* @type {number}
|
|
@@ -91,6 +97,18 @@ export interface ConversationAgentProfile {
|
|
|
91
97
|
* @memberof ConversationAgentProfile
|
|
92
98
|
*/
|
|
93
99
|
user_id?: number;
|
|
100
|
+
/**
|
|
101
|
+
* Restrict this agent to drafting replies only to tickets with these classifications
|
|
102
|
+
* @type {Array<string>}
|
|
103
|
+
* @memberof ConversationAgentProfile
|
|
104
|
+
*/
|
|
105
|
+
zohodesk_classifications?: Array<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Restrict this agent to drafting replies only to these department ids
|
|
108
|
+
* @type {Array<string>}
|
|
109
|
+
* @memberof ConversationAgentProfile
|
|
110
|
+
*/
|
|
111
|
+
zohodesk_departments?: Array<string>;
|
|
94
112
|
}
|
|
95
113
|
|
|
96
114
|
|
|
@@ -129,6 +147,7 @@ export function ConversationAgentProfileFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
129
147
|
'ai_chat_instructions': !exists(json, 'ai_chat_instructions') ? undefined : json['ai_chat_instructions'],
|
|
130
148
|
'ai_persona': !exists(json, 'ai_persona') ? undefined : json['ai_persona'],
|
|
131
149
|
'ai_sms_instructions': !exists(json, 'ai_sms_instructions') ? undefined : json['ai_sms_instructions'],
|
|
150
|
+
'ai_ticket_instructions': !exists(json, 'ai_ticket_instructions') ? undefined : json['ai_ticket_instructions'],
|
|
132
151
|
'chat_limit': !exists(json, 'chat_limit') ? undefined : json['chat_limit'],
|
|
133
152
|
'default_language_iso_code': !exists(json, 'default_language_iso_code') ? undefined : json['default_language_iso_code'],
|
|
134
153
|
'default_status': !exists(json, 'default_status') ? undefined : json['default_status'],
|
|
@@ -137,6 +156,8 @@ export function ConversationAgentProfileFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
137
156
|
'profile_image_upload_key': !exists(json, 'profile_image_upload_key') ? undefined : json['profile_image_upload_key'],
|
|
138
157
|
'profile_image_url': !exists(json, 'profile_image_url') ? undefined : json['profile_image_url'],
|
|
139
158
|
'user_id': !exists(json, 'user_id') ? undefined : json['user_id'],
|
|
159
|
+
'zohodesk_classifications': !exists(json, 'zohodesk_classifications') ? undefined : json['zohodesk_classifications'],
|
|
160
|
+
'zohodesk_departments': !exists(json, 'zohodesk_departments') ? undefined : json['zohodesk_departments'],
|
|
140
161
|
};
|
|
141
162
|
}
|
|
142
163
|
|
|
@@ -153,6 +174,7 @@ export function ConversationAgentProfileToJSON(value?: ConversationAgentProfile
|
|
|
153
174
|
'ai_chat_instructions': value.ai_chat_instructions,
|
|
154
175
|
'ai_persona': value.ai_persona,
|
|
155
176
|
'ai_sms_instructions': value.ai_sms_instructions,
|
|
177
|
+
'ai_ticket_instructions': value.ai_ticket_instructions,
|
|
156
178
|
'chat_limit': value.chat_limit,
|
|
157
179
|
'default_language_iso_code': value.default_language_iso_code,
|
|
158
180
|
'default_status': value.default_status,
|
|
@@ -161,6 +183,8 @@ export function ConversationAgentProfileToJSON(value?: ConversationAgentProfile
|
|
|
161
183
|
'profile_image_upload_key': value.profile_image_upload_key,
|
|
162
184
|
'profile_image_url': value.profile_image_url,
|
|
163
185
|
'user_id': value.user_id,
|
|
186
|
+
'zohodesk_classifications': value.zohodesk_classifications,
|
|
187
|
+
'zohodesk_departments': value.zohodesk_departments,
|
|
164
188
|
};
|
|
165
189
|
}
|
|
166
190
|
|