@wildix/wilma-agents-client 1.0.1 → 1.0.2
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/dist-cjs/WilmaAgents.js +12 -20
- package/dist-cjs/commands/{DeleteGuardrailCommand.js → CreateAgentDeploymentCommand.js} +6 -6
- package/dist-cjs/commands/{ExecuteAgentCommand.js → DeleteAgentDeploymentCommand.js} +6 -6
- package/dist-cjs/commands/{CreateGuardrailCommand.js → GetAgentDeploymentCommand.js} +6 -6
- package/dist-cjs/commands/{DeleteAgentAliasCommand.js → ListAgentDeploymentsCommand.js} +6 -6
- package/dist-cjs/commands/RestoreAgentVersionToDraftCommand.js +20 -0
- package/dist-cjs/commands/UpdateAgentDeploymentCommand.js +20 -0
- package/dist-cjs/commands/index.js +6 -10
- package/dist-cjs/models/enums.js +36 -81
- package/dist-cjs/models/errors.js +51 -36
- package/dist-cjs/schemas/schemas_0.js +358 -539
- package/dist-es/WilmaAgents.js +12 -20
- package/dist-es/commands/{DeleteAgentAliasCommand.js → CreateAgentDeploymentCommand.js} +5 -5
- package/dist-es/commands/{ExecuteAgentCommand.js → DeleteAgentDeploymentCommand.js} +5 -5
- package/dist-es/commands/{CreateGuardrailCommand.js → GetAgentDeploymentCommand.js} +5 -5
- package/dist-es/commands/{DeleteGuardrailCommand.js → ListAgentDeploymentsCommand.js} +5 -5
- package/dist-es/commands/RestoreAgentVersionToDraftCommand.js +16 -0
- package/dist-es/commands/UpdateAgentDeploymentCommand.js +16 -0
- package/dist-es/commands/index.js +6 -10
- package/dist-es/models/enums.js +35 -80
- package/dist-es/models/errors.js +42 -28
- package/dist-es/schemas/schemas_0.js +356 -536
- package/dist-types/WilmaAgents.d.ts +42 -71
- package/dist-types/WilmaAgentsClient.d.ts +16 -19
- package/dist-types/commands/CompareAgentVersionsCommand.d.ts +5 -5
- package/dist-types/commands/CreateAgentApiKeyCommand.d.ts +1 -3
- package/dist-types/commands/CreateAgentCommand.d.ts +451 -324
- package/dist-types/commands/CreateAgentDeploymentCommand.d.ts +116 -0
- package/dist-types/commands/DeleteAgentApiKeyCommand.d.ts +1 -3
- package/dist-types/commands/DeleteAgentCommand.d.ts +5 -4
- package/dist-types/commands/DeleteAgentDeploymentCommand.d.ts +83 -0
- package/dist-types/commands/GetAgentCommand.d.ts +237 -170
- package/dist-types/commands/GetAgentDeploymentCommand.d.ts +106 -0
- package/dist-types/commands/GetAgentVersionCommand.d.ts +219 -158
- package/dist-types/commands/ListAgentApiKeysCommand.d.ts +1 -3
- package/dist-types/commands/ListAgentDeploymentsCommand.d.ts +105 -0
- package/dist-types/commands/ListAgentVersionsCommand.d.ts +8 -7
- package/dist-types/commands/ListAgentsCommand.d.ts +241 -174
- package/dist-types/commands/ListAgentsNamesCommand.d.ts +6 -8
- package/dist-types/commands/PublishAgentVersionCommand.d.ts +221 -159
- package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +460 -0
- package/dist-types/commands/UpdateAgentCommand.d.ts +451 -324
- package/dist-types/commands/UpdateAgentDeploymentCommand.d.ts +120 -0
- package/dist-types/commands/index.d.ts +6 -10
- package/dist-types/index.d.ts +8 -7
- package/dist-types/models/enums.d.ts +126 -161
- package/dist-types/models/errors.d.ts +35 -22
- package/dist-types/models/models_0.d.ts +695 -741
- package/dist-types/schemas/schemas_0.d.ts +41 -61
- package/package.json +2 -2
- package/dist-cjs/commands/GetGuardrailCommand.js +0 -20
- package/dist-cjs/commands/ListAgentAliasesCommand.js +0 -20
- package/dist-cjs/commands/ListAuditRecordsCommand.js +0 -20
- package/dist-cjs/commands/ListGuardrailsCommand.js +0 -20
- package/dist-cjs/commands/PutAgentAliasCommand.js +0 -20
- package/dist-cjs/commands/UpdateGuardrailCommand.js +0 -20
- package/dist-es/commands/GetGuardrailCommand.js +0 -16
- package/dist-es/commands/ListAgentAliasesCommand.js +0 -16
- package/dist-es/commands/ListAuditRecordsCommand.js +0 -16
- package/dist-es/commands/ListGuardrailsCommand.js +0 -16
- package/dist-es/commands/PutAgentAliasCommand.js +0 -16
- package/dist-es/commands/UpdateGuardrailCommand.js +0 -16
- package/dist-types/commands/CreateGuardrailCommand.d.ts +0 -172
- package/dist-types/commands/DeleteAgentAliasCommand.d.ts +0 -82
- package/dist-types/commands/DeleteGuardrailCommand.d.ts +0 -80
- package/dist-types/commands/ExecuteAgentCommand.d.ts +0 -112
- package/dist-types/commands/GetGuardrailCommand.d.ts +0 -135
- package/dist-types/commands/ListAgentAliasesCommand.d.ts +0 -99
- package/dist-types/commands/ListAuditRecordsCommand.d.ts +0 -109
- package/dist-types/commands/ListGuardrailsCommand.d.ts +0 -137
- package/dist-types/commands/PutAgentAliasCommand.d.ts +0 -107
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +0 -175
package/dist-es/WilmaAgents.js
CHANGED
|
@@ -2,51 +2,43 @@ import { createAggregatedClient } from "@smithy/core/client";
|
|
|
2
2
|
import { CompareAgentVersionsCommand, } from "./commands/CompareAgentVersionsCommand";
|
|
3
3
|
import { CreateAgentApiKeyCommand, } from "./commands/CreateAgentApiKeyCommand";
|
|
4
4
|
import { CreateAgentCommand, } from "./commands/CreateAgentCommand";
|
|
5
|
-
import {
|
|
6
|
-
import { DeleteAgentAliasCommand, } from "./commands/DeleteAgentAliasCommand";
|
|
5
|
+
import { CreateAgentDeploymentCommand, } from "./commands/CreateAgentDeploymentCommand";
|
|
7
6
|
import { DeleteAgentApiKeyCommand, } from "./commands/DeleteAgentApiKeyCommand";
|
|
8
7
|
import { DeleteAgentCommand, } from "./commands/DeleteAgentCommand";
|
|
9
|
-
import {
|
|
10
|
-
import { ExecuteAgentCommand, } from "./commands/ExecuteAgentCommand";
|
|
8
|
+
import { DeleteAgentDeploymentCommand, } from "./commands/DeleteAgentDeploymentCommand";
|
|
11
9
|
import { GetAgentCommand } from "./commands/GetAgentCommand";
|
|
10
|
+
import { GetAgentDeploymentCommand, } from "./commands/GetAgentDeploymentCommand";
|
|
12
11
|
import { GetAgentVersionCommand, } from "./commands/GetAgentVersionCommand";
|
|
13
|
-
import { GetGuardrailCommand, } from "./commands/GetGuardrailCommand";
|
|
14
|
-
import { ListAgentAliasesCommand, } from "./commands/ListAgentAliasesCommand";
|
|
15
12
|
import { ListAgentApiKeysCommand, } from "./commands/ListAgentApiKeysCommand";
|
|
13
|
+
import { ListAgentDeploymentsCommand, } from "./commands/ListAgentDeploymentsCommand";
|
|
16
14
|
import { ListAgentsCommand, } from "./commands/ListAgentsCommand";
|
|
17
15
|
import { ListAgentsNamesCommand, } from "./commands/ListAgentsNamesCommand";
|
|
18
16
|
import { ListAgentVersionsCommand, } from "./commands/ListAgentVersionsCommand";
|
|
19
|
-
import { ListAuditRecordsCommand, } from "./commands/ListAuditRecordsCommand";
|
|
20
|
-
import { ListGuardrailsCommand, } from "./commands/ListGuardrailsCommand";
|
|
21
17
|
import { PublishAgentVersionCommand, } from "./commands/PublishAgentVersionCommand";
|
|
22
|
-
import {
|
|
18
|
+
import { RestoreAgentVersionToDraftCommand, } from "./commands/RestoreAgentVersionToDraftCommand";
|
|
23
19
|
import { UpdateAgentCommand, } from "./commands/UpdateAgentCommand";
|
|
24
|
-
import {
|
|
20
|
+
import { UpdateAgentDeploymentCommand, } from "./commands/UpdateAgentDeploymentCommand";
|
|
25
21
|
import { WilmaAgentsClient } from "./WilmaAgentsClient";
|
|
26
22
|
const commands = {
|
|
27
23
|
CompareAgentVersionsCommand,
|
|
28
24
|
CreateAgentCommand,
|
|
29
25
|
CreateAgentApiKeyCommand,
|
|
30
|
-
|
|
26
|
+
CreateAgentDeploymentCommand,
|
|
31
27
|
DeleteAgentCommand,
|
|
32
|
-
DeleteAgentAliasCommand,
|
|
33
28
|
DeleteAgentApiKeyCommand,
|
|
34
|
-
|
|
35
|
-
ExecuteAgentCommand,
|
|
29
|
+
DeleteAgentDeploymentCommand,
|
|
36
30
|
GetAgentCommand,
|
|
31
|
+
GetAgentDeploymentCommand,
|
|
37
32
|
GetAgentVersionCommand,
|
|
38
|
-
GetGuardrailCommand,
|
|
39
|
-
ListAgentAliasesCommand,
|
|
40
33
|
ListAgentApiKeysCommand,
|
|
34
|
+
ListAgentDeploymentsCommand,
|
|
41
35
|
ListAgentsCommand,
|
|
42
36
|
ListAgentsNamesCommand,
|
|
43
37
|
ListAgentVersionsCommand,
|
|
44
|
-
ListAuditRecordsCommand,
|
|
45
|
-
ListGuardrailsCommand,
|
|
46
38
|
PublishAgentVersionCommand,
|
|
47
|
-
|
|
39
|
+
RestoreAgentVersionToDraftCommand,
|
|
48
40
|
UpdateAgentCommand,
|
|
49
|
-
|
|
41
|
+
UpdateAgentDeploymentCommand,
|
|
50
42
|
};
|
|
51
43
|
export class WilmaAgents extends WilmaAgentsClient {
|
|
52
44
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import {
|
|
4
|
+
import { CreateAgentDeployment$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
|
-
export class
|
|
6
|
+
export class CreateAgentDeploymentCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
8
8
|
.ep(commonParams)
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
11
|
})
|
|
12
|
-
.s("WilmaAgents", "
|
|
13
|
-
.n("WilmaAgentsClient", "
|
|
14
|
-
.sc(
|
|
12
|
+
.s("WilmaAgents", "CreateAgentDeployment", {})
|
|
13
|
+
.n("WilmaAgentsClient", "CreateAgentDeploymentCommand")
|
|
14
|
+
.sc(CreateAgentDeployment$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import {
|
|
4
|
+
import { DeleteAgentDeployment$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
|
-
export class
|
|
6
|
+
export class DeleteAgentDeploymentCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
8
8
|
.ep(commonParams)
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
11
|
})
|
|
12
|
-
.s("WilmaAgents", "
|
|
13
|
-
.n("WilmaAgentsClient", "
|
|
14
|
-
.sc(
|
|
12
|
+
.s("WilmaAgents", "DeleteAgentDeployment", {})
|
|
13
|
+
.n("WilmaAgentsClient", "DeleteAgentDeploymentCommand")
|
|
14
|
+
.sc(DeleteAgentDeployment$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import {
|
|
4
|
+
import { GetAgentDeployment$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
|
-
export class
|
|
6
|
+
export class GetAgentDeploymentCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
8
8
|
.ep(commonParams)
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
11
|
})
|
|
12
|
-
.s("WilmaAgents", "
|
|
13
|
-
.n("WilmaAgentsClient", "
|
|
14
|
-
.sc(
|
|
12
|
+
.s("WilmaAgents", "GetAgentDeployment", {})
|
|
13
|
+
.n("WilmaAgentsClient", "GetAgentDeploymentCommand")
|
|
14
|
+
.sc(GetAgentDeployment$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import {
|
|
4
|
+
import { ListAgentDeployments$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
|
-
export class
|
|
6
|
+
export class ListAgentDeploymentsCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
8
8
|
.ep(commonParams)
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
11
|
})
|
|
12
|
-
.s("WilmaAgents", "
|
|
13
|
-
.n("WilmaAgentsClient", "
|
|
14
|
-
.sc(
|
|
12
|
+
.s("WilmaAgents", "ListAgentDeployments", {})
|
|
13
|
+
.n("WilmaAgentsClient", "ListAgentDeploymentsCommand")
|
|
14
|
+
.sc(ListAgentDeployments$)
|
|
15
15
|
.build() {
|
|
16
16
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { RestoreAgentVersionToDraft$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class RestoreAgentVersionToDraftCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaAgents", "RestoreAgentVersionToDraft", {})
|
|
13
|
+
.n("WilmaAgentsClient", "RestoreAgentVersionToDraftCommand")
|
|
14
|
+
.sc(RestoreAgentVersionToDraft$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateAgentDeployment$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UpdateAgentDeploymentCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("WilmaAgents", "UpdateAgentDeployment", {})
|
|
13
|
+
.n("WilmaAgentsClient", "UpdateAgentDeploymentCommand")
|
|
14
|
+
.sc(UpdateAgentDeployment$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
export * from "./CompareAgentVersionsCommand";
|
|
2
2
|
export * from "./CreateAgentApiKeyCommand";
|
|
3
3
|
export * from "./CreateAgentCommand";
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./DeleteAgentAliasCommand";
|
|
4
|
+
export * from "./CreateAgentDeploymentCommand";
|
|
6
5
|
export * from "./DeleteAgentApiKeyCommand";
|
|
7
6
|
export * from "./DeleteAgentCommand";
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./ExecuteAgentCommand";
|
|
7
|
+
export * from "./DeleteAgentDeploymentCommand";
|
|
10
8
|
export * from "./GetAgentCommand";
|
|
9
|
+
export * from "./GetAgentDeploymentCommand";
|
|
11
10
|
export * from "./GetAgentVersionCommand";
|
|
12
|
-
export * from "./GetGuardrailCommand";
|
|
13
|
-
export * from "./ListAgentAliasesCommand";
|
|
14
11
|
export * from "./ListAgentApiKeysCommand";
|
|
12
|
+
export * from "./ListAgentDeploymentsCommand";
|
|
15
13
|
export * from "./ListAgentVersionsCommand";
|
|
16
14
|
export * from "./ListAgentsCommand";
|
|
17
15
|
export * from "./ListAgentsNamesCommand";
|
|
18
|
-
export * from "./ListAuditRecordsCommand";
|
|
19
|
-
export * from "./ListGuardrailsCommand";
|
|
20
16
|
export * from "./PublishAgentVersionCommand";
|
|
21
|
-
export * from "./
|
|
17
|
+
export * from "./RestoreAgentVersionToDraftCommand";
|
|
22
18
|
export * from "./UpdateAgentCommand";
|
|
23
|
-
export * from "./
|
|
19
|
+
export * from "./UpdateAgentDeploymentCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -1,33 +1,51 @@
|
|
|
1
|
+
export const AgentVisibility = {
|
|
2
|
+
EXPLICIT: "explicit",
|
|
3
|
+
ORGANIZATION: "organization",
|
|
4
|
+
};
|
|
1
5
|
export const ActorType = {
|
|
2
6
|
API_KEY: "api_key",
|
|
3
7
|
SERVICE: "service",
|
|
4
8
|
USER: "user",
|
|
5
9
|
};
|
|
6
|
-
export const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
VIEW: "view",
|
|
10
|
+
export const AgentDeploymentStatus = {
|
|
11
|
+
ACTIVE: "active",
|
|
12
|
+
PAUSED: "paused",
|
|
10
13
|
};
|
|
11
|
-
export const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
export const AgentHandoverPipelineType = {
|
|
15
|
+
HANDOVER: "handover",
|
|
16
|
+
REPLY_AND_HANDOVER: "reply_and_handover",
|
|
17
|
+
REPLY_INSTRUCTED_AND_HANDOVER: "reply_instructed_and_handover",
|
|
14
18
|
};
|
|
15
|
-
export const
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
export const AgentHandoverVariant = {
|
|
20
|
+
AGENT: "agent",
|
|
21
|
+
SERVICE: "service",
|
|
18
22
|
};
|
|
19
|
-
export const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
POST: "post",
|
|
24
|
-
PUT: "put",
|
|
23
|
+
export const AgentHangupPipelineType = {
|
|
24
|
+
HANGUP: "hangup",
|
|
25
|
+
REPLY_AND_HANGUP: "reply_and_hangup",
|
|
26
|
+
REPLY_INSTRUCTED_AND_HANGUP: "reply_instructed_and_hangup",
|
|
25
27
|
};
|
|
26
28
|
export const SandboxNetworkAccess = {
|
|
27
29
|
ALL: "allow-all",
|
|
28
30
|
ALLOWLIST: "allowlist",
|
|
29
31
|
NONE: "deny-all",
|
|
30
32
|
};
|
|
33
|
+
export const AgentToolPipelineType = {
|
|
34
|
+
ASYNC_REQUEST: "async_request",
|
|
35
|
+
ASYNC_REQUEST_GUIDED: "async_request_guided",
|
|
36
|
+
BLOCKING_REQUEST: "blocking_request",
|
|
37
|
+
BLOCKING_REQUEST_GUIDED: "blocking_request_guided",
|
|
38
|
+
};
|
|
39
|
+
export const AgentTransferPipelineType = {
|
|
40
|
+
REPLY_AND_TRANSFER: "reply_and_transfer",
|
|
41
|
+
REPLY_INSTRUCTED_AND_TRANSFER: "reply_instructed_and_transfer",
|
|
42
|
+
TRANSFER: "transfer",
|
|
43
|
+
};
|
|
44
|
+
export const AgentTransferVariant = {
|
|
45
|
+
DIRECTORY: "directory",
|
|
46
|
+
DYNAMIC: "dynamic",
|
|
47
|
+
PREDEFINED: "predefined",
|
|
48
|
+
};
|
|
31
49
|
export const WebSearchContextSize = {
|
|
32
50
|
HIGH: "high",
|
|
33
51
|
LOW: "low",
|
|
@@ -42,74 +60,11 @@ export const AgentVariableType = {
|
|
|
42
60
|
};
|
|
43
61
|
export const AgentStatus = {
|
|
44
62
|
ACTIVE: "active",
|
|
45
|
-
ARCHIVED: "archived",
|
|
46
63
|
DRAFT: "draft",
|
|
47
64
|
};
|
|
48
|
-
export const AgentFileScope = {
|
|
49
|
-
AGENT: "agent",
|
|
50
|
-
USER: "user",
|
|
51
|
-
};
|
|
52
65
|
export const ChannelType = {
|
|
53
|
-
API: "api",
|
|
54
66
|
ASSISTANT: "assistant",
|
|
67
|
+
AUTONOMOUS: "autonomous",
|
|
55
68
|
CHAT: "chat",
|
|
56
69
|
VOICE: "voice",
|
|
57
70
|
};
|
|
58
|
-
export const AuditAction = {
|
|
59
|
-
ALIAS_DELETED: "alias_deleted",
|
|
60
|
-
ALIAS_UPDATED: "alias_updated",
|
|
61
|
-
API_KEY_CREATED: "api_key_created",
|
|
62
|
-
API_KEY_DELETED: "api_key_deleted",
|
|
63
|
-
ARCHIVED: "archived",
|
|
64
|
-
CREATED: "created",
|
|
65
|
-
DELETED: "deleted",
|
|
66
|
-
EVALUATION_CANCELLED: "evaluation_cancelled",
|
|
67
|
-
EVALUATION_STARTED: "evaluation_started",
|
|
68
|
-
PUBLISHED: "published",
|
|
69
|
-
UPDATED: "updated",
|
|
70
|
-
};
|
|
71
|
-
export const AuditResourceType = {
|
|
72
|
-
AGENT: "agent",
|
|
73
|
-
AGENT_ALIAS: "agent_alias",
|
|
74
|
-
AGENT_API_KEY: "agent_api_key",
|
|
75
|
-
AGENT_VERSION: "agent_version",
|
|
76
|
-
DATASET: "dataset",
|
|
77
|
-
EVALUATION: "evaluation",
|
|
78
|
-
EVALUATOR: "evaluator",
|
|
79
|
-
GUARDRAIL: "guardrail",
|
|
80
|
-
SKILL: "skill",
|
|
81
|
-
TEST_CASE: "test_case",
|
|
82
|
-
};
|
|
83
|
-
export const GuardrailContentCategory = {
|
|
84
|
-
HATE: "hate",
|
|
85
|
-
INSULTS: "insults",
|
|
86
|
-
MISCONDUCT: "misconduct",
|
|
87
|
-
PROMPT_ATTACK: "prompt_attack",
|
|
88
|
-
SEXUAL: "sexual",
|
|
89
|
-
VIOLENCE: "violence",
|
|
90
|
-
};
|
|
91
|
-
export const GuardrailFilterStrength = {
|
|
92
|
-
HIGH: "high",
|
|
93
|
-
LOW: "low",
|
|
94
|
-
MEDIUM: "medium",
|
|
95
|
-
NONE: "none",
|
|
96
|
-
};
|
|
97
|
-
export const GuardrailPiiAction = {
|
|
98
|
-
ANONYMIZE: "anonymize",
|
|
99
|
-
BLOCK: "block",
|
|
100
|
-
};
|
|
101
|
-
export const GuardrailPiiEntityType = {
|
|
102
|
-
ADDRESS: "address",
|
|
103
|
-
CREDIT_CARD: "credit_card",
|
|
104
|
-
CUSTOM: "custom",
|
|
105
|
-
EMAIL: "email",
|
|
106
|
-
IBAN: "iban",
|
|
107
|
-
NAME: "name",
|
|
108
|
-
NATIONAL_ID: "national_id",
|
|
109
|
-
PASSWORD: "password",
|
|
110
|
-
PHONE_NUMBER: "phone_number",
|
|
111
|
-
};
|
|
112
|
-
export const GuardrailAction = {
|
|
113
|
-
BLOCK: "block",
|
|
114
|
-
DETECT: "detect",
|
|
115
|
-
};
|
package/dist-es/models/errors.js
CHANGED
|
@@ -11,101 +11,115 @@ export class ValidationException extends __BaseException {
|
|
|
11
11
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export class
|
|
15
|
-
name = "
|
|
14
|
+
export class AgentApiKeyNotFoundException extends __BaseException {
|
|
15
|
+
name = "AgentApiKeyNotFoundException";
|
|
16
16
|
$fault = "client";
|
|
17
17
|
type;
|
|
18
18
|
constructor(opts) {
|
|
19
19
|
super({
|
|
20
|
-
name: "
|
|
20
|
+
name: "AgentApiKeyNotFoundException",
|
|
21
21
|
$fault: "client",
|
|
22
22
|
...opts,
|
|
23
23
|
});
|
|
24
|
-
Object.setPrototypeOf(this,
|
|
24
|
+
Object.setPrototypeOf(this, AgentApiKeyNotFoundException.prototype);
|
|
25
25
|
this.type = opts.type;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
export class
|
|
29
|
-
name = "
|
|
28
|
+
export class AgentDeploymentInUseException extends __BaseException {
|
|
29
|
+
name = "AgentDeploymentInUseException";
|
|
30
30
|
$fault = "client";
|
|
31
31
|
type;
|
|
32
32
|
constructor(opts) {
|
|
33
33
|
super({
|
|
34
|
-
name: "
|
|
34
|
+
name: "AgentDeploymentInUseException",
|
|
35
35
|
$fault: "client",
|
|
36
36
|
...opts,
|
|
37
37
|
});
|
|
38
|
-
Object.setPrototypeOf(this,
|
|
38
|
+
Object.setPrototypeOf(this, AgentDeploymentInUseException.prototype);
|
|
39
39
|
this.type = opts.type;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
export class
|
|
43
|
-
name = "
|
|
42
|
+
export class AgentDeploymentNonUniqueNameException extends __BaseException {
|
|
43
|
+
name = "AgentDeploymentNonUniqueNameException";
|
|
44
44
|
$fault = "client";
|
|
45
45
|
type;
|
|
46
46
|
constructor(opts) {
|
|
47
47
|
super({
|
|
48
|
-
name: "
|
|
48
|
+
name: "AgentDeploymentNonUniqueNameException",
|
|
49
49
|
$fault: "client",
|
|
50
50
|
...opts,
|
|
51
51
|
});
|
|
52
|
-
Object.setPrototypeOf(this,
|
|
52
|
+
Object.setPrototypeOf(this, AgentDeploymentNonUniqueNameException.prototype);
|
|
53
53
|
this.type = opts.type;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
export class
|
|
57
|
-
name = "
|
|
56
|
+
export class AgentDeploymentNotFoundException extends __BaseException {
|
|
57
|
+
name = "AgentDeploymentNotFoundException";
|
|
58
58
|
$fault = "client";
|
|
59
59
|
type;
|
|
60
60
|
constructor(opts) {
|
|
61
61
|
super({
|
|
62
|
-
name: "
|
|
62
|
+
name: "AgentDeploymentNotFoundException",
|
|
63
63
|
$fault: "client",
|
|
64
64
|
...opts,
|
|
65
65
|
});
|
|
66
|
-
Object.setPrototypeOf(this,
|
|
66
|
+
Object.setPrototypeOf(this, AgentDeploymentNotFoundException.prototype);
|
|
67
67
|
this.type = opts.type;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
export class
|
|
71
|
-
name = "
|
|
70
|
+
export class AgentInUseException extends __BaseException {
|
|
71
|
+
name = "AgentInUseException";
|
|
72
72
|
$fault = "client";
|
|
73
73
|
type;
|
|
74
74
|
constructor(opts) {
|
|
75
75
|
super({
|
|
76
|
-
name: "
|
|
76
|
+
name: "AgentInUseException",
|
|
77
77
|
$fault: "client",
|
|
78
78
|
...opts,
|
|
79
79
|
});
|
|
80
|
-
Object.setPrototypeOf(this,
|
|
80
|
+
Object.setPrototypeOf(this, AgentInUseException.prototype);
|
|
81
|
+
this.type = opts.type;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
export class AgentNonUniqueNameException extends __BaseException {
|
|
85
|
+
name = "AgentNonUniqueNameException";
|
|
86
|
+
$fault = "client";
|
|
87
|
+
type;
|
|
88
|
+
constructor(opts) {
|
|
89
|
+
super({
|
|
90
|
+
name: "AgentNonUniqueNameException",
|
|
91
|
+
$fault: "client",
|
|
92
|
+
...opts,
|
|
93
|
+
});
|
|
94
|
+
Object.setPrototypeOf(this, AgentNonUniqueNameException.prototype);
|
|
81
95
|
this.type = opts.type;
|
|
82
96
|
}
|
|
83
97
|
}
|
|
84
|
-
export class
|
|
85
|
-
name = "
|
|
98
|
+
export class AgentNotFoundException extends __BaseException {
|
|
99
|
+
name = "AgentNotFoundException";
|
|
86
100
|
$fault = "client";
|
|
87
101
|
type;
|
|
88
102
|
constructor(opts) {
|
|
89
103
|
super({
|
|
90
|
-
name: "
|
|
104
|
+
name: "AgentNotFoundException",
|
|
91
105
|
$fault: "client",
|
|
92
106
|
...opts,
|
|
93
107
|
});
|
|
94
|
-
Object.setPrototypeOf(this,
|
|
108
|
+
Object.setPrototypeOf(this, AgentNotFoundException.prototype);
|
|
95
109
|
this.type = opts.type;
|
|
96
110
|
}
|
|
97
111
|
}
|
|
98
|
-
export class
|
|
99
|
-
name = "
|
|
112
|
+
export class AgentVersionNotFoundException extends __BaseException {
|
|
113
|
+
name = "AgentVersionNotFoundException";
|
|
100
114
|
$fault = "client";
|
|
101
115
|
type;
|
|
102
116
|
constructor(opts) {
|
|
103
117
|
super({
|
|
104
|
-
name: "
|
|
118
|
+
name: "AgentVersionNotFoundException",
|
|
105
119
|
$fault: "client",
|
|
106
120
|
...opts,
|
|
107
121
|
});
|
|
108
|
-
Object.setPrototypeOf(this,
|
|
122
|
+
Object.setPrototypeOf(this, AgentVersionNotFoundException.prototype);
|
|
109
123
|
this.type = opts.type;
|
|
110
124
|
}
|
|
111
125
|
}
|