@cognigy/rest-api-client 2026.2.0-rc1 → 2026.3.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/README.md +0 -15
- package/build/apigroups/ResourcesAPIGroup_2_0.js +384 -134
- package/build/shared/errors/ErrorCode.js +1 -2
- package/build/shared/errors/ErrorCollection.js +0 -1
- package/build/shared/interfaces/handover.js +0 -1
- package/build/shared/interfaces/resources/IAuditEvent.js +13 -1
- package/build/shared/interfaces/resources/TResourceType.js +2 -0
- package/build/shared/interfaces/user.js +2 -0
- package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +384 -134
- package/dist/esm/shared/errors/ErrorCode.js +1 -2
- package/dist/esm/shared/errors/ErrorCollection.js +0 -1
- package/dist/esm/shared/interfaces/handover.js +0 -1
- package/dist/esm/shared/interfaces/resources/IAuditEvent.js +13 -1
- package/dist/esm/shared/interfaces/resources/TResourceType.js +2 -0
- package/dist/esm/shared/interfaces/user.js +2 -0
- package/package.json +3 -6
- package/types/index.d.ts +44 -425
- package/build/apigroups/aiAgentsV2/agent.js +0 -3
- package/build/apigroups/aiAgentsV2/agentAPI.js +0 -38
- package/build/apigroups/aiAgentsV2/agentPersona.js +0 -3
- package/build/apigroups/aiAgentsV2/agentPersonaAPI.js +0 -38
- package/build/apigroups/aiAgentsV2/tool.js +0 -3
- package/build/apigroups/aiAgentsV2/toolAPI.js +0 -35
- package/build/apigroups/aiAgentsV2/toolDescriptor.js +0 -3
- package/build/apigroups/aiAgentsV2/toolDescriptorAPI.js +0 -13
- package/build/spec/aiAgentV2.spec.js +0 -564
- package/dist/esm/apigroups/aiAgentsV2/agent.js +0 -2
- package/dist/esm/apigroups/aiAgentsV2/agentAPI.js +0 -24
- package/dist/esm/apigroups/aiAgentsV2/agentPersona.js +0 -2
- package/dist/esm/apigroups/aiAgentsV2/agentPersonaAPI.js +0 -24
- package/dist/esm/apigroups/aiAgentsV2/aiAgentV2API.js +0 -2
- package/dist/esm/apigroups/aiAgentsV2/tool.js +0 -2
- package/dist/esm/apigroups/aiAgentsV2/toolAPI.js +0 -21
- package/dist/esm/apigroups/aiAgentsV2/toolDescriptor.js +0 -2
- package/dist/esm/apigroups/aiAgentsV2/toolDescriptorAPI.js +0 -9
- package/dist/esm/spec/aiAgentV2.spec.js +0 -563
|
@@ -6,10 +6,9 @@ var ErrorCode;
|
|
|
6
6
|
ErrorCode[ErrorCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
7
7
|
ErrorCode[ErrorCode["UNAUTHORIZED_ERROR"] = 401] = "UNAUTHORIZED_ERROR";
|
|
8
8
|
ErrorCode[ErrorCode["PAYMENT_REQUIRED_ERROR"] = 402] = "PAYMENT_REQUIRED_ERROR";
|
|
9
|
-
ErrorCode[ErrorCode["FORBIDDEN_ERROR"] = 403] = "FORBIDDEN_ERROR";
|
|
10
|
-
ErrorCode[ErrorCode["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
11
9
|
ErrorCode[ErrorCode["PAYLOAD_TOO_LARGE_ERROR"] = 413] = "PAYLOAD_TOO_LARGE_ERROR";
|
|
12
10
|
ErrorCode[ErrorCode["TOO_MANY_REQUESTS_ERROR"] = 429] = "TOO_MANY_REQUESTS_ERROR";
|
|
11
|
+
ErrorCode[ErrorCode["FORBIDDEN_ERROR"] = 403] = "FORBIDDEN_ERROR";
|
|
13
12
|
ErrorCode[ErrorCode["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
14
13
|
ErrorCode[ErrorCode["SERVICE_UNAVAILABLE_ERROR"] = 503] = "SERVICE_UNAVAILABLE_ERROR";
|
|
15
14
|
ErrorCode[ErrorCode["GATEWAY_TIMEOUT_ERROR"] = 504] = "GATEWAY_TIMEOUT_ERROR";
|
|
@@ -51,7 +51,6 @@ exports.ErrorCollection = {
|
|
|
51
51
|
[ErrorCode_1.ErrorCode.METHOD_NOT_ALLOWED_ERROR]: MethodNotAllowedError_1.MethodNotAllowedError,
|
|
52
52
|
[ErrorCode_1.ErrorCode.MISSING_ARGUMENT_ERROR]: missingArgument_1.MissingArgumentError,
|
|
53
53
|
[ErrorCode_1.ErrorCode.NETWORK_ERROR]: NetworkError_1.NetworkError,
|
|
54
|
-
[ErrorCode_1.ErrorCode.NOT_FOUND]: resourceNotFound_1.ResourceNotFoundError,
|
|
55
54
|
[ErrorCode_1.ErrorCode.NOT_IMPLEMENTED_ERROR]: notImplementedError_1.NotImplementedError,
|
|
56
55
|
[ErrorCode_1.ErrorCode.PAYLOAD_TOO_LARGE_ERROR]: PayloadTooLargeError_1.PayloadTooLargeError,
|
|
57
56
|
[ErrorCode_1.ErrorCode.PROCESS_ERROR]: process_1.ProcessError,
|
|
@@ -122,7 +122,6 @@ exports.handoverSettingsSchema = {
|
|
|
122
122
|
redactTranscriptTileMessages: { type: "boolean" },
|
|
123
123
|
enableAgentCopilotAuthentication: { type: "boolean" },
|
|
124
124
|
agentCopilotAuthentication: { type: "string" },
|
|
125
|
-
blockNonJWTRequests: { type: "boolean" },
|
|
126
125
|
oAuth2Connection: { type: "string" },
|
|
127
126
|
}
|
|
128
127
|
}
|
|
@@ -118,7 +118,19 @@ exports.actionTypes = [
|
|
|
118
118
|
"loginError",
|
|
119
119
|
"unauthorized",
|
|
120
120
|
"disableCreditCardRedaction",
|
|
121
|
-
"runKnowledgeConnector"
|
|
121
|
+
"runKnowledgeConnector",
|
|
122
|
+
"createSimulation",
|
|
123
|
+
"updateSimulation",
|
|
124
|
+
"deleteSimulation",
|
|
125
|
+
"scheduleSimulation",
|
|
126
|
+
"cloneSimulation",
|
|
127
|
+
"createScheduler",
|
|
128
|
+
"updateScheduler",
|
|
129
|
+
"deleteScheduler",
|
|
130
|
+
"generatePersonaPackages",
|
|
131
|
+
"regeneratePersonaField",
|
|
132
|
+
"bulkGeneratePersonaPackages",
|
|
133
|
+
"createScenarioFromTranscript",
|
|
122
134
|
];
|
|
123
135
|
exports.auditEventSchema = {
|
|
124
136
|
title: "auditEventSchema",
|
|
@@ -14,6 +14,8 @@ exports.userDataSchema = {
|
|
|
14
14
|
acceptedTOS: { type: "boolean" },
|
|
15
15
|
disabled: { type: "boolean" },
|
|
16
16
|
roles: { type: "array", additionalItems: false, items: { type: "string", format: "organisation-wide-role" } },
|
|
17
|
+
cxoneEmail: { type: "string", format: "email" },
|
|
18
|
+
cxoneId: { type: "string", format: "uuid" },
|
|
17
19
|
}
|
|
18
20
|
};
|
|
19
21
|
exports.userSchema = {
|