@cognigy/rest-api-client 4.96.0 → 4.97.0
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/CHANGELOG.md +3 -3
- package/build/apigroups/ManagementAPIGroup_2_0.js +2 -1
- package/build/apigroups/ResourcesAPIGroup_2_0.js +9 -0
- package/build/authentication/AuthenticationAPI.js +6 -1
- package/build/authentication/JWT/IJwtTokenAuthentication.js +3 -0
- package/build/authentication/JWT/JwtTokenAuthentication.js +22 -0
- package/build/shared/charts/descriptors/allFields.js +6 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +6 -2
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAICompatibleProviderConnection.js +11 -0
- package/build/shared/charts/descriptors/connectionNodes/speechProviders/deepgramSpeechProviderConnection.js +11 -0
- package/build/shared/charts/descriptors/connectionNodes/speechProviders/index.js +2 -0
- package/build/shared/charts/descriptors/index.js +6 -0
- package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +5 -1
- package/build/shared/charts/descriptors/message/question/question.js +21 -13
- package/build/shared/charts/descriptors/message/say.js +25 -2
- package/build/shared/charts/descriptors/service/GPTPrompt.js +1 -1
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +40 -28
- package/build/shared/charts/descriptors/service/checkAgentAvailability.js +63 -3
- package/build/shared/charts/descriptors/service/handoverConnections.js +51 -0
- package/build/shared/charts/descriptors/service/handoverV2.js +124 -64
- package/build/shared/charts/descriptors/service/index.js +8 -1
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +2 -0
- package/build/shared/interfaces/handover.js +74 -10
- package/build/shared/interfaces/handoverProviders.js +23 -0
- package/build/shared/interfaces/messageAPI/handover.js +22 -2
- package/build/shared/interfaces/resources/IExternalModel.js +3 -0
- package/build/shared/interfaces/resources/IHandoverProvider.js +3 -0
- package/build/shared/interfaces/resources/ILargeLanguageModel.js +13 -2
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +9 -5
- package/build/shared/interfaces/resources/TResourceType.js +6 -0
- package/build/shared/interfaces/resources/settings/IAudioPreviewSettings.js +8 -2
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/ICreateHandoverProviderRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IDeleteHandoverProviderRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IHandoverProvider_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IHandoverService_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IIndexHandoverProvidersRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IIndexHandoverServicesRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IReadHandoverProviderRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IUpdateHandoverProviderRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/index.js +3 -0
- package/build/shared/interfaces/security/IPermission.js +2 -0
- package/build/shared/interfaces/security/IRole.js +2 -0
- package/build/shared/interfaces/security/index.js +1 -1
- package/dist/esm/apigroups/ManagementAPIGroup_2_0.js +2 -1
- package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +9 -0
- package/dist/esm/authentication/AuthenticationAPI.js +6 -1
- package/dist/esm/authentication/JWT/IJwtTokenAuthentication.js +2 -0
- package/dist/esm/authentication/JWT/JwtTokenAuthentication.js +21 -0
- package/dist/esm/shared/charts/descriptors/allFields.js +6 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +4 -1
- package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAICompatibleProviderConnection.js +8 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/speechProviders/deepgramSpeechProviderConnection.js +8 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/speechProviders/index.js +2 -0
- package/dist/esm/shared/charts/descriptors/index.js +7 -1
- package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +5 -1
- package/dist/esm/shared/charts/descriptors/message/question/question.js +21 -13
- package/dist/esm/shared/charts/descriptors/message/say.js +25 -2
- package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +1 -1
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +40 -28
- package/dist/esm/shared/charts/descriptors/service/checkAgentAvailability.js +63 -3
- package/dist/esm/shared/charts/descriptors/service/handoverConnections.js +48 -0
- package/dist/esm/shared/charts/descriptors/service/handoverV2.js +124 -64
- package/dist/esm/shared/charts/descriptors/service/index.js +1 -0
- package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +2 -0
- package/dist/esm/shared/interfaces/handover.js +73 -9
- package/dist/esm/shared/interfaces/handoverProviders.js +20 -0
- package/dist/esm/shared/interfaces/messageAPI/handover.js +22 -2
- package/dist/esm/shared/interfaces/resources/IExternalModel.js +2 -0
- package/dist/esm/shared/interfaces/resources/IHandoverProvider.js +2 -0
- package/dist/esm/shared/interfaces/resources/ILargeLanguageModel.js +12 -1
- package/dist/esm/shared/interfaces/resources/INodeDescriptorSet.js +9 -5
- package/dist/esm/shared/interfaces/resources/TResourceType.js +6 -0
- package/dist/esm/shared/interfaces/resources/settings/IAudioPreviewSettings.js +8 -2
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/ICreateHandoverProviderRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IDeleteHandoverProviderRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IHandoverProvider_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IHandoverService_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IIndexHandoverProvidersRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IIndexHandoverServicesRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IReadHandoverProviderRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IUpdateHandoverProviderRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/index.js +2 -0
- package/dist/esm/shared/interfaces/security/IPermission.js +2 -0
- package/dist/esm/shared/interfaces/security/IRole.js +2 -0
- package/dist/esm/shared/interfaces/security/index.js +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +546 -19
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.genesysCloudOMSettingsSchema = exports.genesysCloudSettingsSchema = exports.liveAgentSettingsSchema = exports.salesforceSettingsSchema = exports.chatwootSettingsSchema = exports.handoverAgentReplySchema = exports.queueUpdateOptionsSchema = exports.eightByEightSettingsSchema = exports.rceSettingsSchema = exports.foreignSessionDataSchema = exports.handoverRequestSettingsSchema = exports.handoverSettingsSchema = exports.copilotType = exports.whisperAssistConfigurations = exports.handoverProviders = exports.internalHandoverProviders = exports.externalHandoverProviders = void 0;
|
|
3
|
+
exports.genesysCloudOMSettingsSchema = exports.genesysCloudSettingsSchema = exports.liveAgentSettingsSchema = exports.salesforceMIAWSettingsSchema = exports.salesforceSettingsSchema = exports.chatwootSettingsSchema = exports.handoverAgentReplySchema = exports.queueUpdateOptionsSchema = exports.eightByEightSettingsSchema = exports.rceSettingsSchema = exports.foreignSessionDataSchema = exports.handoverRequestSettingsSchema = exports.handoverSettingsSchema = exports.copilotType = exports.whisperAssistConfigurations = exports.handoverProviders = exports.internalHandoverProviders = exports.externalHandoverProviders = void 0;
|
|
4
4
|
exports.externalHandoverProviders = [
|
|
5
5
|
"rce",
|
|
6
6
|
"chatwoot",
|
|
7
7
|
"salesforce",
|
|
8
|
+
"salesforceMIAW",
|
|
8
9
|
"liveAgent",
|
|
9
10
|
"genesysCloud",
|
|
10
11
|
"genesysCloudOM",
|
|
@@ -41,6 +42,7 @@ exports.handoverSettingsSchema = {
|
|
|
41
42
|
"cognigy",
|
|
42
43
|
"rce",
|
|
43
44
|
"salesforce",
|
|
45
|
+
"salesforceMIAW",
|
|
44
46
|
"liveAgent",
|
|
45
47
|
"genesysCloud",
|
|
46
48
|
"genesysCloudOM",
|
|
@@ -83,7 +85,15 @@ exports.handoverSettingsSchema = {
|
|
|
83
85
|
queue: { type: "string" },
|
|
84
86
|
queueId: { type: "string" },
|
|
85
87
|
sendProfile: { type: "boolean" },
|
|
86
|
-
sessionDuration: { type: "number" }
|
|
88
|
+
sessionDuration: { type: "number" },
|
|
89
|
+
esDeveloperName: { type: "string" },
|
|
90
|
+
capabilitiesVersion: { type: "string" },
|
|
91
|
+
rceConnection: { type: "string" },
|
|
92
|
+
eightByEightConnection: { type: "string" },
|
|
93
|
+
chatwootConnection: { type: "string" },
|
|
94
|
+
liveAgentConnection: { type: "string" },
|
|
95
|
+
genesysCloudConnection: { type: "string" },
|
|
96
|
+
genesysCloudOMConnection: { type: "string" }
|
|
87
97
|
}
|
|
88
98
|
}
|
|
89
99
|
]
|
|
@@ -133,6 +143,8 @@ exports.foreignSessionDataSchema = {
|
|
|
133
143
|
integrationId: { type: "string" },
|
|
134
144
|
conversationId: { type: "string" },
|
|
135
145
|
clientPollTimeout: { type: "number" },
|
|
146
|
+
accessToken: { type: "string" },
|
|
147
|
+
lastEventId: { type: "string" },
|
|
136
148
|
}
|
|
137
149
|
};
|
|
138
150
|
exports.rceSettingsSchema = {
|
|
@@ -140,12 +152,9 @@ exports.rceSettingsSchema = {
|
|
|
140
152
|
"type": "object",
|
|
141
153
|
"additionalProperties": false,
|
|
142
154
|
"required": [
|
|
143
|
-
"apiAccessToken",
|
|
144
155
|
"baseApiUrl",
|
|
145
156
|
"forwardOnlyHandoverConversations",
|
|
146
|
-
"realtimeAccessToken",
|
|
147
157
|
"realtimeEndpointUrl",
|
|
148
|
-
"webhookSecret",
|
|
149
158
|
"agentCategoryId",
|
|
150
159
|
"botCategoryId"
|
|
151
160
|
],
|
|
@@ -178,6 +187,10 @@ exports.rceSettingsSchema = {
|
|
|
178
187
|
},
|
|
179
188
|
"botCategoryId": {
|
|
180
189
|
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
192
|
+
"rceConnection": {
|
|
193
|
+
"type": "string"
|
|
181
194
|
}
|
|
182
195
|
}
|
|
183
196
|
};
|
|
@@ -187,7 +200,6 @@ exports.eightByEightSettingsSchema = {
|
|
|
187
200
|
"additionalProperties": false,
|
|
188
201
|
"required": [
|
|
189
202
|
"baseUrl",
|
|
190
|
-
"apiKey",
|
|
191
203
|
"apiTenant"
|
|
192
204
|
],
|
|
193
205
|
"properties": {
|
|
@@ -205,6 +217,10 @@ exports.eightByEightSettingsSchema = {
|
|
|
205
217
|
"forwardOnlyHandoverConversations": {
|
|
206
218
|
"type": "boolean"
|
|
207
219
|
},
|
|
220
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
221
|
+
"eightByEightConnection": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
}
|
|
208
224
|
}
|
|
209
225
|
};
|
|
210
226
|
exports.queueUpdateOptionsSchema = {
|
|
@@ -274,12 +290,12 @@ exports.chatwootSettingsSchema = {
|
|
|
274
290
|
required: [
|
|
275
291
|
"baseUrl",
|
|
276
292
|
"accountId",
|
|
277
|
-
"apiKey",
|
|
278
293
|
],
|
|
279
294
|
properties: {
|
|
280
295
|
accountId: {
|
|
281
296
|
type: "string"
|
|
282
297
|
},
|
|
298
|
+
// TODO: remove once we have migrated all providers to the new connection ids
|
|
283
299
|
apiKey: {
|
|
284
300
|
type: "string"
|
|
285
301
|
},
|
|
@@ -293,6 +309,10 @@ exports.chatwootSettingsSchema = {
|
|
|
293
309
|
forwardOnlyHandoverConversations: {
|
|
294
310
|
"type": "boolean",
|
|
295
311
|
},
|
|
312
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
313
|
+
chatwootConnection: {
|
|
314
|
+
"type": "string"
|
|
315
|
+
}
|
|
296
316
|
}
|
|
297
317
|
};
|
|
298
318
|
exports.salesforceSettingsSchema = {
|
|
@@ -331,6 +351,38 @@ exports.salesforceSettingsSchema = {
|
|
|
331
351
|
},
|
|
332
352
|
}
|
|
333
353
|
};
|
|
354
|
+
exports.salesforceMIAWSettingsSchema = {
|
|
355
|
+
title: "salesforceMIAWSettingsSchema",
|
|
356
|
+
type: "object",
|
|
357
|
+
additionalProperties: false,
|
|
358
|
+
required: [
|
|
359
|
+
"baseUrl",
|
|
360
|
+
"capabilitiesVersion",
|
|
361
|
+
"organizationId",
|
|
362
|
+
"esDeveloperName"
|
|
363
|
+
],
|
|
364
|
+
properties: {
|
|
365
|
+
baseUrl: {
|
|
366
|
+
type: "string",
|
|
367
|
+
format: "url"
|
|
368
|
+
},
|
|
369
|
+
capabilitiesVersion: {
|
|
370
|
+
type: "string"
|
|
371
|
+
},
|
|
372
|
+
organizationId: {
|
|
373
|
+
type: "string",
|
|
374
|
+
},
|
|
375
|
+
esDeveloperName: {
|
|
376
|
+
type: "string",
|
|
377
|
+
},
|
|
378
|
+
forwardOnlyHandoverConversations: {
|
|
379
|
+
"type": "boolean",
|
|
380
|
+
},
|
|
381
|
+
forwardUnknownEventsToFlow: {
|
|
382
|
+
type: "boolean"
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
};
|
|
334
386
|
exports.liveAgentSettingsSchema = {
|
|
335
387
|
title: "liveAgentSettingsSchema",
|
|
336
388
|
type: "object",
|
|
@@ -338,12 +390,12 @@ exports.liveAgentSettingsSchema = {
|
|
|
338
390
|
required: [
|
|
339
391
|
"baseUrl",
|
|
340
392
|
"accountId",
|
|
341
|
-
"apiKey",
|
|
342
393
|
],
|
|
343
394
|
properties: {
|
|
344
395
|
accountId: {
|
|
345
396
|
type: "string"
|
|
346
397
|
},
|
|
398
|
+
// TODO: remove once we have migrated all providers to the new connection ids
|
|
347
399
|
apiKey: {
|
|
348
400
|
type: "string"
|
|
349
401
|
},
|
|
@@ -359,6 +411,10 @@ exports.liveAgentSettingsSchema = {
|
|
|
359
411
|
},
|
|
360
412
|
usePlatformToken: {
|
|
361
413
|
"type": "boolean",
|
|
414
|
+
},
|
|
415
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
416
|
+
liveAgentConnection: {
|
|
417
|
+
"type": "string"
|
|
362
418
|
}
|
|
363
419
|
}
|
|
364
420
|
};
|
|
@@ -398,8 +454,13 @@ exports.genesysCloudSettingsSchema = {
|
|
|
398
454
|
forwardOnlyHandoverConversations: {
|
|
399
455
|
"type": "boolean",
|
|
400
456
|
},
|
|
457
|
+
// TODO: remove once we have migrated all providers to the new connection ids
|
|
401
458
|
oAuth2Connection: {
|
|
402
459
|
type: "string"
|
|
460
|
+
},
|
|
461
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
462
|
+
genesysCloudConnection: {
|
|
463
|
+
"type": "string"
|
|
403
464
|
}
|
|
404
465
|
}
|
|
405
466
|
};
|
|
@@ -411,8 +472,6 @@ exports.genesysCloudOMSettingsSchema = {
|
|
|
411
472
|
"host",
|
|
412
473
|
"deploymentName",
|
|
413
474
|
"queue",
|
|
414
|
-
"clientId",
|
|
415
|
-
"clientSecret"
|
|
416
475
|
],
|
|
417
476
|
properties: {
|
|
418
477
|
host: {
|
|
@@ -424,6 +483,7 @@ exports.genesysCloudOMSettingsSchema = {
|
|
|
424
483
|
queue: {
|
|
425
484
|
type: "string"
|
|
426
485
|
},
|
|
486
|
+
// TODO: remove once we have migrated all providers to the new connection ids
|
|
427
487
|
webhookSecret: {
|
|
428
488
|
type: "string"
|
|
429
489
|
},
|
|
@@ -436,6 +496,10 @@ exports.genesysCloudOMSettingsSchema = {
|
|
|
436
496
|
clientSecret: {
|
|
437
497
|
type: "string"
|
|
438
498
|
},
|
|
499
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
500
|
+
genesysCloudOMConnection: {
|
|
501
|
+
"type": "string"
|
|
502
|
+
},
|
|
439
503
|
forwardOnlyHandoverConversations: {
|
|
440
504
|
"type": "boolean",
|
|
441
505
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handoverServices = exports.internalHandoverServices = exports.externalHandoverServices = void 0;
|
|
4
|
+
exports.externalHandoverServices = [
|
|
5
|
+
"rce",
|
|
6
|
+
"chatwoot",
|
|
7
|
+
"salesforce",
|
|
8
|
+
"liveAgent",
|
|
9
|
+
"genesysCloud",
|
|
10
|
+
"genesysCloudOM",
|
|
11
|
+
"eightByEight",
|
|
12
|
+
"salesforceMIAW"
|
|
13
|
+
];
|
|
14
|
+
exports.internalHandoverServices = [
|
|
15
|
+
"cognigy",
|
|
16
|
+
"none"
|
|
17
|
+
];
|
|
18
|
+
exports.handoverServices = [
|
|
19
|
+
...exports.internalHandoverServices,
|
|
20
|
+
...exports.externalHandoverServices
|
|
21
|
+
];
|
|
22
|
+
;
|
|
23
|
+
//# sourceMappingURL=handoverProviders.js.map
|
|
@@ -19,6 +19,12 @@ exports.createHandoverRequestDataSchema = {
|
|
|
19
19
|
"type": "string",
|
|
20
20
|
"format": "mongo-id",
|
|
21
21
|
},
|
|
22
|
+
"handoverProvider": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
},
|
|
25
|
+
"handoverProviderConfig": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
},
|
|
22
28
|
"organisation": {
|
|
23
29
|
"type": "string",
|
|
24
30
|
"format": "mongo-id",
|
|
@@ -40,7 +46,7 @@ exports.createHandoverRequestDataSchema = {
|
|
|
40
46
|
"type": "object"
|
|
41
47
|
},
|
|
42
48
|
// We cannot set format: endpoint-channel, since the channel can be
|
|
43
|
-
//
|
|
49
|
+
// overridden by the customer (e.g. for their website)
|
|
44
50
|
"channel": {
|
|
45
51
|
"type": "string",
|
|
46
52
|
},
|
|
@@ -80,6 +86,10 @@ exports.createHandoverRequestDataSchema = {
|
|
|
80
86
|
"liveAgentAllowAgentInject": {
|
|
81
87
|
"type": "boolean"
|
|
82
88
|
},
|
|
89
|
+
// Temporary field for live agent
|
|
90
|
+
"allowAgentInject": {
|
|
91
|
+
"type": "boolean"
|
|
92
|
+
},
|
|
83
93
|
"sendTranscriptAsFirstMessage": {
|
|
84
94
|
"type": "boolean"
|
|
85
95
|
},
|
|
@@ -255,7 +265,8 @@ exports.pollEventSchema = {
|
|
|
255
265
|
traceId: { type: "string" },
|
|
256
266
|
disableSensitiveLogging: { type: "boolean" },
|
|
257
267
|
pollingTimeoutAt: { type: "number" },
|
|
258
|
-
sequence: { type: "number" }
|
|
268
|
+
sequence: { type: "number" },
|
|
269
|
+
lastEventId: { type: "string" }
|
|
259
270
|
},
|
|
260
271
|
};
|
|
261
272
|
exports.handleHandoverRpcEventSchema = {
|
|
@@ -301,4 +312,13 @@ exports.getQueueUpdateEventsSchema = {
|
|
|
301
312
|
disableSensitiveLogging: { type: "boolean" }
|
|
302
313
|
},
|
|
303
314
|
};
|
|
315
|
+
;
|
|
316
|
+
;
|
|
317
|
+
;
|
|
318
|
+
;
|
|
319
|
+
;
|
|
320
|
+
[];
|
|
321
|
+
;
|
|
322
|
+
;
|
|
323
|
+
;
|
|
304
324
|
//# sourceMappingURL=handover.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.largeLanguageModelQuerySchema = exports.largeLanguageModelSchema = exports.largeLanguageModelDataSchema = exports.llmFallbackSchema = exports.googleGeminiMetaSchema = exports.googleVertexAIMetaSchema = exports.azureOpenAIMetaSchema = exports.openAIMetaSchema = exports.alephAlphaMetaSchema = exports.awsBedrockMetaSchema = exports.anthropicMetaSchema = void 0;
|
|
3
|
+
exports.largeLanguageModelQuerySchema = exports.largeLanguageModelSchema = exports.largeLanguageModelDataSchema = exports.llmFallbackSchema = exports.googleGeminiMetaSchema = exports.googleVertexAIMetaSchema = exports.azureOpenAIMetaSchema = exports.openAICompatibleMetaSchema = exports.openAIMetaSchema = exports.alephAlphaMetaSchema = exports.awsBedrockMetaSchema = exports.anthropicMetaSchema = void 0;
|
|
4
4
|
/* Custom Modules */
|
|
5
5
|
const createQuerySchema_1 = require("../../helper/createQuerySchema");
|
|
6
6
|
const IEntityMeta_1 = require("./IEntityMeta");
|
|
@@ -37,7 +37,17 @@ exports.openAIMetaSchema = {
|
|
|
37
37
|
type: "object",
|
|
38
38
|
additionalProperties: false,
|
|
39
39
|
properties: {
|
|
40
|
-
customModel: { type: ["string", "null"] }
|
|
40
|
+
customModel: { type: ["string", "null"] },
|
|
41
|
+
baseCustomUrl: { type: ["string", "null"] }
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.openAICompatibleMetaSchema = {
|
|
45
|
+
title: "openAICompatibleMetaSchema",
|
|
46
|
+
type: "object",
|
|
47
|
+
additionalProperties: false,
|
|
48
|
+
properties: {
|
|
49
|
+
customModel: { type: "string" },
|
|
50
|
+
baseCustomUrl: { type: "string" },
|
|
41
51
|
}
|
|
42
52
|
};
|
|
43
53
|
exports.azureOpenAIMetaSchema = {
|
|
@@ -116,6 +126,7 @@ exports.largeLanguageModelDataSchema = {
|
|
|
116
126
|
connectionId: { type: "string", format: "uuid" },
|
|
117
127
|
isDefault: { type: "boolean" },
|
|
118
128
|
openAI: exports.openAIMetaSchema,
|
|
129
|
+
openAICompatible: exports.openAICompatibleMetaSchema,
|
|
119
130
|
azureOpenAI: exports.azureOpenAIMetaSchema,
|
|
120
131
|
googleVertexAI: exports.googleVertexAIMetaSchema,
|
|
121
132
|
googleGemini: exports.googleGeminiMetaSchema,
|
|
@@ -92,10 +92,13 @@ const nodeDependenciesSchema = {
|
|
|
92
92
|
exports.nodeFieldTypes = [
|
|
93
93
|
"adaptivecard",
|
|
94
94
|
"agentAssistConfig",
|
|
95
|
+
"aiAgentSelect",
|
|
95
96
|
"appTemplate",
|
|
96
97
|
"backgroundSelector",
|
|
97
98
|
"caseNode",
|
|
98
99
|
"checkbox",
|
|
100
|
+
"checkAgentAvailabilityProvider",
|
|
101
|
+
"checkAgentAvailabilityConfig",
|
|
99
102
|
"chipInput",
|
|
100
103
|
"code",
|
|
101
104
|
"cognigyLLMText",
|
|
@@ -110,16 +113,16 @@ exports.nodeFieldTypes = [
|
|
|
110
113
|
"flow",
|
|
111
114
|
"flowNode",
|
|
112
115
|
"function",
|
|
116
|
+
"goalAndStepsSelect",
|
|
117
|
+
"handoverProvider",
|
|
118
|
+
"handoverProviderConfig",
|
|
113
119
|
"json",
|
|
114
120
|
"keyValuePairs",
|
|
115
|
-
"
|
|
121
|
+
"knowledgeSourceTags",
|
|
116
122
|
"knowledgeStore",
|
|
117
123
|
"knowledgeStoreSelect",
|
|
118
|
-
"knowledgeSourceTags",
|
|
119
|
-
"llmSelect",
|
|
120
|
-
"aiAgentSelect",
|
|
121
|
-
"goalAndStepsSelect",
|
|
122
124
|
"lexicon",
|
|
125
|
+
"llmSelect",
|
|
123
126
|
"localeField",
|
|
124
127
|
"node",
|
|
125
128
|
"number",
|
|
@@ -139,6 +142,7 @@ exports.nodeFieldTypes = [
|
|
|
139
142
|
"textArray",
|
|
140
143
|
"time",
|
|
141
144
|
"toggle",
|
|
145
|
+
"toolParameters",
|
|
142
146
|
"ttsSelect",
|
|
143
147
|
"typescript",
|
|
144
148
|
"xml"
|
|
@@ -23,6 +23,7 @@ exports.pinnableResourceTypes = exports.primaryResourceTypes = exports.packageab
|
|
|
23
23
|
* - flowSettings
|
|
24
24
|
* - flowState
|
|
25
25
|
* - function
|
|
26
|
+
* - handoverProvider
|
|
26
27
|
* - intent
|
|
27
28
|
* - intentDefaultReply
|
|
28
29
|
* - intentLearningSentence
|
|
@@ -59,6 +60,7 @@ exports.arrayTResourceType = [
|
|
|
59
60
|
"flowSettings",
|
|
60
61
|
"flowState",
|
|
61
62
|
"function",
|
|
63
|
+
"handoverProvider",
|
|
62
64
|
"intent",
|
|
63
65
|
"intentDefaultReply",
|
|
64
66
|
"intentLearningSentence",
|
|
@@ -98,6 +100,7 @@ exports.arrayTSnapshottableResourceType = [
|
|
|
98
100
|
"flowSettings",
|
|
99
101
|
"flowState",
|
|
100
102
|
"function",
|
|
103
|
+
"handoverProvider",
|
|
101
104
|
"intent",
|
|
102
105
|
"intentDefaultReply",
|
|
103
106
|
"intentRelation",
|
|
@@ -135,6 +138,7 @@ exports.chartableResourceTypes = [...exports.arrayTChartableResourceType];
|
|
|
135
138
|
* - function
|
|
136
139
|
* - lexicon
|
|
137
140
|
* - goal
|
|
141
|
+
* - handoverProvider
|
|
138
142
|
* - nluconnector
|
|
139
143
|
* - playbook
|
|
140
144
|
* - project
|
|
@@ -167,6 +171,7 @@ exports.packageableResourceTypes = [
|
|
|
167
171
|
"lexicon",
|
|
168
172
|
"locale",
|
|
169
173
|
"goal",
|
|
174
|
+
"handoverProvider",
|
|
170
175
|
"nluconnector",
|
|
171
176
|
"playbook",
|
|
172
177
|
"snippet",
|
|
@@ -186,6 +191,7 @@ exports.primaryResourceTypes = [
|
|
|
186
191
|
"nluconnector",
|
|
187
192
|
"playbook",
|
|
188
193
|
"snippet",
|
|
194
|
+
"handoverProvider",
|
|
189
195
|
];
|
|
190
196
|
exports.pinnableResourceTypes = [
|
|
191
197
|
"project"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.audioPreviewSettingsDataSchema = exports.audioPreviewProviders = void 0;
|
|
4
|
-
exports.audioPreviewProviders = ["microsoft", "google", "aws"];
|
|
4
|
+
exports.audioPreviewProviders = ["microsoft", "google", "aws", "deepgram"];
|
|
5
5
|
exports.audioPreviewSettingsDataSchema = {
|
|
6
6
|
title: "audioPreviewSettingsDataSchema",
|
|
7
7
|
type: ["object", "null"],
|
|
@@ -28,7 +28,13 @@ exports.audioPreviewSettingsDataSchema = {
|
|
|
28
28
|
properties: {
|
|
29
29
|
connectionId: { type: ["string", "null"], format: "uuid" }
|
|
30
30
|
}
|
|
31
|
-
}
|
|
31
|
+
},
|
|
32
|
+
deepgram: {
|
|
33
|
+
type: "object",
|
|
34
|
+
properties: {
|
|
35
|
+
connectionId: { type: ["string", "null"], format: "uuid" }
|
|
36
|
+
}
|
|
37
|
+
},
|
|
32
38
|
}
|
|
33
39
|
}
|
|
34
40
|
}
|
|
@@ -61,6 +61,7 @@ exports.organisationWidePermissions = [
|
|
|
61
61
|
* - memberDetails
|
|
62
62
|
* - members
|
|
63
63
|
* - goals
|
|
64
|
+
* - handoverProviders
|
|
64
65
|
* - nluConnectors
|
|
65
66
|
* - packages
|
|
66
67
|
* - playbooks
|
|
@@ -100,6 +101,7 @@ exports.projectWidePermissions = [
|
|
|
100
101
|
"memberDetails",
|
|
101
102
|
"members",
|
|
102
103
|
"goals",
|
|
104
|
+
"handoverProviders",
|
|
103
105
|
"nluConnectors",
|
|
104
106
|
"packages",
|
|
105
107
|
"playbooks",
|
|
@@ -66,6 +66,7 @@ exports.organisationWideRoles = [
|
|
|
66
66
|
* - flowNodeComments
|
|
67
67
|
* - flowNodeDescriptions
|
|
68
68
|
* - followUser
|
|
69
|
+
* - handoverProviderAdmin
|
|
69
70
|
* - intents
|
|
70
71
|
* - data_privacy_admin
|
|
71
72
|
* - data_privacy_editor
|
|
@@ -109,6 +110,7 @@ exports.projectWideRoles = [
|
|
|
109
110
|
"followUser",
|
|
110
111
|
"function_admin",
|
|
111
112
|
"function_editor",
|
|
113
|
+
"handoverProviderAdmin",
|
|
112
114
|
"intents",
|
|
113
115
|
"knowledgeAdmin",
|
|
114
116
|
"large_language_model_admin",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.identityProviderSchema = exports.oidcIdentityProviderDataSchema = exports.samlIdentityProviderDataSchema = exports.operations = exports.availableRoles = exports.projectWideRoles = exports.organisationWideRoles = exports.availablePermissions = exports.COMPUTED_ACL_HASH_VERSION = void 0;
|
|
4
|
-
exports.COMPUTED_ACL_HASH_VERSION = "
|
|
4
|
+
exports.COMPUTED_ACL_HASH_VERSION = "v19";
|
|
5
5
|
var IPermission_1 = require("./IPermission");
|
|
6
6
|
Object.defineProperty(exports, "availablePermissions", { enumerable: true, get: function () { return IPermission_1.availablePermissions; } });
|
|
7
7
|
var IRole_1 = require("./IRole");
|
|
@@ -28,7 +28,8 @@ export function ManagementAPIGroup_2_0(instance) {
|
|
|
28
28
|
deleteUserManagement: ({ userId }, options) => GenericAPIFn(`/new/management/v2.0/users/${userId}`, "DELETE", self)(undefined, options),
|
|
29
29
|
impersonateUserManagement: ({ userId }, options) => GenericAPIFn(`/new/management/v2.0/users/${userId}/impersonate`, "POST", self)(undefined, options),
|
|
30
30
|
createApiKeyManagement: (args, options) => GenericAPIFn("/new/management/v2.0/organisations/apikeys", "POST", self)(args, options),
|
|
31
|
-
createSystemMessage: (args, options) => GenericAPIFn("/new/management/v2.0/system/createsystemmessage", "POST", self)(args, options)
|
|
31
|
+
createSystemMessage: (args, options) => GenericAPIFn("/new/management/v2.0/system/createsystemmessage", "POST", self)(args, options),
|
|
32
|
+
generateAuthenticationToken: (args, options) => GenericAPIFn("/new/management/auth/token", "POST", self)(args, options)
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
//# sourceMappingURL=ManagementAPIGroup_2_0.js.map
|
|
@@ -172,6 +172,15 @@ export const ResourcesAPIGroup_2_0 = (instance) => {
|
|
|
172
172
|
return GenericAPIFn(`/new/v2.0/goals/${goalId}`, "PATCH", self)(args, options);
|
|
173
173
|
},
|
|
174
174
|
deleteGoal: (args, options) => GenericAPIFn(`/new/v2.0/goals/${args.goalId}`, "DELETE", self)(undefined, options),
|
|
175
|
+
indexHandoverServices: (args, options) => GenericAPIFn(`/new/v2.0/handover/services?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
176
|
+
indexHandoverProviders: (args, options) => GenericAPIFn(`/new/v2.0/handover/providers?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
177
|
+
createHandoverProvider: (args, options) => GenericAPIFn("/new/v2.0/handover/providers", "POST", self)(args, options),
|
|
178
|
+
readHandoverProvider: (args, options) => GenericAPIFn(`/new/v2.0/handover/providers/${args.handoverProviderId}`, "GET", self)(undefined, options),
|
|
179
|
+
updateHandoverProvider: (_a, options) => {
|
|
180
|
+
var { handoverProviderId } = _a, args = __rest(_a, ["handoverProviderId"]);
|
|
181
|
+
return GenericAPIFn(`/new/v2.0/handover/providers/${handoverProviderId}`, "PATCH", self)(args, options);
|
|
182
|
+
},
|
|
183
|
+
deleteHandoverProvider: (args, options) => GenericAPIFn(`/new/v2.0/handover/providers/${args.handoverProviderId}?${stringifyQuery({ projectId: args.projectId })}`, "DELETE", self)(undefined, options),
|
|
175
184
|
indexPlaybooks: (args, options) => GenericAPIFn(`/new/v2.0/playbooks?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
176
185
|
batchPlaybooks: (_a, options) => {
|
|
177
186
|
var { projectId } = _a, args = __rest(_a, ["projectId"]);
|
|
@@ -4,6 +4,7 @@ import { GenericAPIFn } from "../GenericAPIFn";
|
|
|
4
4
|
import { ApiKeyAuthentication } from "./ApiKey/ApiKeyAuthentication";
|
|
5
5
|
import { BasicAuthentication } from "./BasicAuthentication/BasicAuthentication";
|
|
6
6
|
import { OAuth2Authentication } from "./OAuth2/OAuth2Authentication";
|
|
7
|
+
import JwtTokenAuthentication from "./JWT/JwtTokenAuthentication";
|
|
7
8
|
import { stringifyQuery } from "../shared/helper/rest";
|
|
8
9
|
export function AuthenticationAPI(instance) {
|
|
9
10
|
const self = instance;
|
|
@@ -19,6 +20,9 @@ export function AuthenticationAPI(instance) {
|
|
|
19
20
|
case "OAuth2":
|
|
20
21
|
self.authenticationHandler = new OAuth2Authentication(credentials, self);
|
|
21
22
|
break;
|
|
23
|
+
case "JWT":
|
|
24
|
+
self.authenticationHandler = new JwtTokenAuthentication(credentials, self);
|
|
25
|
+
break;
|
|
22
26
|
}
|
|
23
27
|
},
|
|
24
28
|
login: (data) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -50,7 +54,8 @@ export function AuthenticationAPI(instance) {
|
|
|
50
54
|
exchangeOneTimeTokenForRefreshToken: (_a, options) => {
|
|
51
55
|
var { loginToken } = _a, args = __rest(_a, ["loginToken"]);
|
|
52
56
|
return GenericAPIFn(`/auth/exchangetoken?${stringifyQuery({ loginToken })}`, "GET", self)(args, Object.assign({ withAuthentication: false }, options));
|
|
53
|
-
}
|
|
57
|
+
},
|
|
58
|
+
generateManagementUIAuthToken: (args, options) => GenericAPIFn("/new/management/auth/token", "POST", self)(args, options)
|
|
54
59
|
};
|
|
55
60
|
}
|
|
56
61
|
//# sourceMappingURL=AuthenticationAPI.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
const JwtTokenAuthentication = function (credentials, self) {
|
|
3
|
+
if (!(this instanceof JwtTokenAuthentication)) {
|
|
4
|
+
return new JwtTokenAuthentication(credentials, self);
|
|
5
|
+
}
|
|
6
|
+
else {
|
|
7
|
+
self.credentials = {
|
|
8
|
+
token: credentials.token,
|
|
9
|
+
type: credentials.type
|
|
10
|
+
};
|
|
11
|
+
const JwtTokenAuthentication = function () { };
|
|
12
|
+
JwtTokenAuthentication.prototype.getAuthenticationHeaders = () => __awaiter(this, void 0, void 0, function* () {
|
|
13
|
+
const headers = {};
|
|
14
|
+
headers["Authorization"] = `Bearer ${credentials.token}`;
|
|
15
|
+
return headers;
|
|
16
|
+
});
|
|
17
|
+
return new JwtTokenAuthentication(credentials, self);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export default JwtTokenAuthentication;
|
|
21
|
+
//# sourceMappingURL=JwtTokenAuthentication.js.map
|
|
@@ -67,6 +67,12 @@ export const ALL_FIELDS = createNodeDescriptor({
|
|
|
67
67
|
locale: "de-DE",
|
|
68
68
|
},
|
|
69
69
|
},
|
|
70
|
+
{
|
|
71
|
+
key: "handoverProvider",
|
|
72
|
+
type: "handoverProvider",
|
|
73
|
+
label: "Handover Provider Configuration",
|
|
74
|
+
description: "Select and configure a handover provider",
|
|
75
|
+
},
|
|
70
76
|
{
|
|
71
77
|
key: "select",
|
|
72
78
|
type: "select",
|