@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
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
-
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { ListGuardrailsInput, ListGuardrailsOutput } from "../models/models_0";
|
|
4
|
-
import type { ServiceInputTypes, ServiceOutputTypes, WilmaAgentsClientResolvedConfig } from "../WilmaAgentsClient";
|
|
5
|
-
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
|
-
/**
|
|
11
|
-
* @public
|
|
12
|
-
*
|
|
13
|
-
* The input for {@link ListGuardrailsCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface ListGuardrailsCommandInput extends ListGuardrailsInput {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link ListGuardrailsCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface ListGuardrailsCommandOutput extends ListGuardrailsOutput, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const ListGuardrailsCommand_base: {
|
|
25
|
-
new (input: ListGuardrailsCommandInput): import("@smithy/core/client").CommandImpl<ListGuardrailsCommandInput, ListGuardrailsCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (...[input]: [] | [ListGuardrailsCommandInput]): import("@smithy/core/client").CommandImpl<ListGuardrailsCommandInput, ListGuardrailsCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions(): {
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Lists guardrails for the specified company.
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { WilmaAgentsClient, ListGuardrailsCommand } from "@wildix/wilma-agents-client"; // ES Modules import
|
|
37
|
-
* // const { WilmaAgentsClient, ListGuardrailsCommand } = require("@wildix/wilma-agents-client"); // CommonJS import
|
|
38
|
-
* // import type { WilmaAgentsClientConfig } from "@wildix/wilma-agents-client";
|
|
39
|
-
* const config = {}; // type is WilmaAgentsClientConfig
|
|
40
|
-
* const client = new WilmaAgentsClient(config);
|
|
41
|
-
* const input = { // ListGuardrailsInput
|
|
42
|
-
* company: "STRING_VALUE",
|
|
43
|
-
* limit: Number("int"),
|
|
44
|
-
* nextToken: "STRING_VALUE",
|
|
45
|
-
* };
|
|
46
|
-
* const command = new ListGuardrailsCommand(input);
|
|
47
|
-
* const response = await client.send(command);
|
|
48
|
-
* // { // ListGuardrailsOutput
|
|
49
|
-
* // guardrails: [ // GuardrailsList // required
|
|
50
|
-
* // { // Guardrail
|
|
51
|
-
* // name: "STRING_VALUE", // required
|
|
52
|
-
* // description: "STRING_VALUE",
|
|
53
|
-
* // topicPolicy: { // GuardrailTopicPolicy
|
|
54
|
-
* // topics: [ // GuardrailTopicsList // required
|
|
55
|
-
* // { // GuardrailTopic
|
|
56
|
-
* // name: "STRING_VALUE", // required
|
|
57
|
-
* // definition: "STRING_VALUE", // required
|
|
58
|
-
* // examples: [ // GuardrailPhrasesList
|
|
59
|
-
* // "STRING_VALUE",
|
|
60
|
-
* // ],
|
|
61
|
-
* // action: "block" || "detect", // required
|
|
62
|
-
* // },
|
|
63
|
-
* // ],
|
|
64
|
-
* // },
|
|
65
|
-
* // contentPolicy: { // GuardrailContentPolicy
|
|
66
|
-
* // filters: [ // GuardrailContentFiltersList // required
|
|
67
|
-
* // { // GuardrailContentFilter
|
|
68
|
-
* // category: "hate" || "insults" || "sexual" || "violence" || "misconduct" || "prompt_attack", // required
|
|
69
|
-
* // inputStrength: "none" || "low" || "medium" || "high",
|
|
70
|
-
* // outputStrength: "none" || "low" || "medium" || "high",
|
|
71
|
-
* // },
|
|
72
|
-
* // ],
|
|
73
|
-
* // },
|
|
74
|
-
* // wordPolicy: { // GuardrailWordPolicy
|
|
75
|
-
* // blockedWords: [
|
|
76
|
-
* // "STRING_VALUE",
|
|
77
|
-
* // ],
|
|
78
|
-
* // profanity: true || false,
|
|
79
|
-
* // },
|
|
80
|
-
* // piiPolicy: { // GuardrailPiiPolicy
|
|
81
|
-
* // entities: [ // GuardrailPiiEntitiesList // required
|
|
82
|
-
* // { // GuardrailPiiEntity
|
|
83
|
-
* // entityType: "email" || "phone_number" || "name" || "address" || "credit_card" || "iban" || "national_id" || "password" || "custom", // required
|
|
84
|
-
* // pattern: "STRING_VALUE",
|
|
85
|
-
* // action: "block" || "anonymize", // required
|
|
86
|
-
* // },
|
|
87
|
-
* // ],
|
|
88
|
-
* // },
|
|
89
|
-
* // blockedInputMessage: "STRING_VALUE",
|
|
90
|
-
* // blockedOutputMessage: "STRING_VALUE",
|
|
91
|
-
* // createdAt: "STRING_VALUE", // required
|
|
92
|
-
* // createdBy: { // Actor
|
|
93
|
-
* // type: "user" || "api_key" || "service", // required
|
|
94
|
-
* // id: "STRING_VALUE", // required
|
|
95
|
-
* // name: "STRING_VALUE",
|
|
96
|
-
* // },
|
|
97
|
-
* // updatedAt: "STRING_VALUE",
|
|
98
|
-
* // updatedBy: {
|
|
99
|
-
* // type: "user" || "api_key" || "service", // required
|
|
100
|
-
* // id: "STRING_VALUE", // required
|
|
101
|
-
* // name: "STRING_VALUE",
|
|
102
|
-
* // },
|
|
103
|
-
* // id: "STRING_VALUE", // required
|
|
104
|
-
* // },
|
|
105
|
-
* // ],
|
|
106
|
-
* // nextToken: "STRING_VALUE",
|
|
107
|
-
* // };
|
|
108
|
-
*
|
|
109
|
-
* ```
|
|
110
|
-
*
|
|
111
|
-
* @param ListGuardrailsCommandInput - {@link ListGuardrailsCommandInput}
|
|
112
|
-
* @returns {@link ListGuardrailsCommandOutput}
|
|
113
|
-
* @see {@link ListGuardrailsCommandInput} for command's `input` shape.
|
|
114
|
-
* @see {@link ListGuardrailsCommandOutput} for command's `response` shape.
|
|
115
|
-
* @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
|
|
116
|
-
*
|
|
117
|
-
* @throws {@link ValidationException} (client fault)
|
|
118
|
-
*
|
|
119
|
-
* @throws {@link WilmaAgentsServiceException}
|
|
120
|
-
* <p>Base exception class for all service exceptions from WilmaAgents service.</p>
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* @public
|
|
124
|
-
*/
|
|
125
|
-
export declare class ListGuardrailsCommand extends ListGuardrailsCommand_base {
|
|
126
|
-
/** @internal type navigation helper, not in runtime. */
|
|
127
|
-
protected static __types: {
|
|
128
|
-
api: {
|
|
129
|
-
input: ListGuardrailsInput;
|
|
130
|
-
output: ListGuardrailsOutput;
|
|
131
|
-
};
|
|
132
|
-
sdk: {
|
|
133
|
-
input: ListGuardrailsCommandInput;
|
|
134
|
-
output: ListGuardrailsCommandOutput;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
-
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { PutAgentAliasInput, PutAgentAliasOutput } from "../models/models_0";
|
|
4
|
-
import type { ServiceInputTypes, ServiceOutputTypes, WilmaAgentsClientResolvedConfig } from "../WilmaAgentsClient";
|
|
5
|
-
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
|
-
/**
|
|
11
|
-
* @public
|
|
12
|
-
*
|
|
13
|
-
* The input for {@link PutAgentAliasCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface PutAgentAliasCommandInput extends PutAgentAliasInput {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link PutAgentAliasCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface PutAgentAliasCommandOutput extends PutAgentAliasOutput, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const PutAgentAliasCommand_base: {
|
|
25
|
-
new (input: PutAgentAliasCommandInput): import("@smithy/core/client").CommandImpl<PutAgentAliasCommandInput, PutAgentAliasCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: PutAgentAliasCommandInput): import("@smithy/core/client").CommandImpl<PutAgentAliasCommandInput, PutAgentAliasCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions(): {
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Creates or updates an alias: a named pointer routing traffic to one or more published versions with weights. Repointing 'production' to an older version is a rollback; two weighted routes make a canary.
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { WilmaAgentsClient, PutAgentAliasCommand } from "@wildix/wilma-agents-client"; // ES Modules import
|
|
37
|
-
* // const { WilmaAgentsClient, PutAgentAliasCommand } = require("@wildix/wilma-agents-client"); // CommonJS import
|
|
38
|
-
* // import type { WilmaAgentsClientConfig } from "@wildix/wilma-agents-client";
|
|
39
|
-
* const config = {}; // type is WilmaAgentsClientConfig
|
|
40
|
-
* const client = new WilmaAgentsClient(config);
|
|
41
|
-
* const input = { // PutAgentAliasInput
|
|
42
|
-
* company: "STRING_VALUE",
|
|
43
|
-
* agentId: "STRING_VALUE", // required
|
|
44
|
-
* aliasName: "STRING_VALUE", // required
|
|
45
|
-
* description: "STRING_VALUE",
|
|
46
|
-
* routing: [ // AgentAliasRoutesList // required
|
|
47
|
-
* { // AgentAliasRoute
|
|
48
|
-
* version: Number("int"), // required
|
|
49
|
-
* weight: Number("int"), // required
|
|
50
|
-
* },
|
|
51
|
-
* ],
|
|
52
|
-
* };
|
|
53
|
-
* const command = new PutAgentAliasCommand(input);
|
|
54
|
-
* const response = await client.send(command);
|
|
55
|
-
* // { // PutAgentAliasOutput
|
|
56
|
-
* // alias: { // AgentAlias
|
|
57
|
-
* // name: "STRING_VALUE", // required
|
|
58
|
-
* // agentId: "STRING_VALUE", // required
|
|
59
|
-
* // description: "STRING_VALUE",
|
|
60
|
-
* // routing: [ // AgentAliasRoutesList // required
|
|
61
|
-
* // { // AgentAliasRoute
|
|
62
|
-
* // version: Number("int"), // required
|
|
63
|
-
* // weight: Number("int"), // required
|
|
64
|
-
* // },
|
|
65
|
-
* // ],
|
|
66
|
-
* // updatedAt: "STRING_VALUE", // required
|
|
67
|
-
* // updatedBy: { // Actor
|
|
68
|
-
* // type: "user" || "api_key" || "service", // required
|
|
69
|
-
* // id: "STRING_VALUE", // required
|
|
70
|
-
* // name: "STRING_VALUE",
|
|
71
|
-
* // },
|
|
72
|
-
* // },
|
|
73
|
-
* // };
|
|
74
|
-
*
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* @param PutAgentAliasCommandInput - {@link PutAgentAliasCommandInput}
|
|
78
|
-
* @returns {@link PutAgentAliasCommandOutput}
|
|
79
|
-
* @see {@link PutAgentAliasCommandInput} for command's `input` shape.
|
|
80
|
-
* @see {@link PutAgentAliasCommandOutput} for command's `response` shape.
|
|
81
|
-
* @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
|
|
82
|
-
*
|
|
83
|
-
* @throws {@link AgentNotFoundException} (client fault)
|
|
84
|
-
*
|
|
85
|
-
* @throws {@link AgentVersionNotFoundException} (client fault)
|
|
86
|
-
*
|
|
87
|
-
* @throws {@link ValidationException} (client fault)
|
|
88
|
-
*
|
|
89
|
-
* @throws {@link WilmaAgentsServiceException}
|
|
90
|
-
* <p>Base exception class for all service exceptions from WilmaAgents service.</p>
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* @public
|
|
94
|
-
*/
|
|
95
|
-
export declare class PutAgentAliasCommand extends PutAgentAliasCommand_base {
|
|
96
|
-
/** @internal type navigation helper, not in runtime. */
|
|
97
|
-
protected static __types: {
|
|
98
|
-
api: {
|
|
99
|
-
input: PutAgentAliasInput;
|
|
100
|
-
output: PutAgentAliasOutput;
|
|
101
|
-
};
|
|
102
|
-
sdk: {
|
|
103
|
-
input: PutAgentAliasCommandInput;
|
|
104
|
-
output: PutAgentAliasCommandOutput;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
-
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { UpdateGuardrailInput, UpdateGuardrailOutput } from "../models/models_0";
|
|
4
|
-
import type { ServiceInputTypes, ServiceOutputTypes, WilmaAgentsClientResolvedConfig } from "../WilmaAgentsClient";
|
|
5
|
-
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
|
-
/**
|
|
11
|
-
* @public
|
|
12
|
-
*
|
|
13
|
-
* The input for {@link UpdateGuardrailCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface UpdateGuardrailCommandInput extends UpdateGuardrailInput {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link UpdateGuardrailCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface UpdateGuardrailCommandOutput extends UpdateGuardrailOutput, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const UpdateGuardrailCommand_base: {
|
|
25
|
-
new (input: UpdateGuardrailCommandInput): import("@smithy/core/client").CommandImpl<UpdateGuardrailCommandInput, UpdateGuardrailCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: UpdateGuardrailCommandInput): import("@smithy/core/client").CommandImpl<UpdateGuardrailCommandInput, UpdateGuardrailCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions(): {
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Updates a guardrail. The change applies to every agent referencing it.
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { WilmaAgentsClient, UpdateGuardrailCommand } from "@wildix/wilma-agents-client"; // ES Modules import
|
|
37
|
-
* // const { WilmaAgentsClient, UpdateGuardrailCommand } = require("@wildix/wilma-agents-client"); // CommonJS import
|
|
38
|
-
* // import type { WilmaAgentsClientConfig } from "@wildix/wilma-agents-client";
|
|
39
|
-
* const config = {}; // type is WilmaAgentsClientConfig
|
|
40
|
-
* const client = new WilmaAgentsClient(config);
|
|
41
|
-
* const input = { // UpdateGuardrailInput
|
|
42
|
-
* name: "STRING_VALUE", // required
|
|
43
|
-
* description: "STRING_VALUE",
|
|
44
|
-
* topicPolicy: { // GuardrailTopicPolicy
|
|
45
|
-
* topics: [ // GuardrailTopicsList // required
|
|
46
|
-
* { // GuardrailTopic
|
|
47
|
-
* name: "STRING_VALUE", // required
|
|
48
|
-
* definition: "STRING_VALUE", // required
|
|
49
|
-
* examples: [ // GuardrailPhrasesList
|
|
50
|
-
* "STRING_VALUE",
|
|
51
|
-
* ],
|
|
52
|
-
* action: "block" || "detect", // required
|
|
53
|
-
* },
|
|
54
|
-
* ],
|
|
55
|
-
* },
|
|
56
|
-
* contentPolicy: { // GuardrailContentPolicy
|
|
57
|
-
* filters: [ // GuardrailContentFiltersList // required
|
|
58
|
-
* { // GuardrailContentFilter
|
|
59
|
-
* category: "hate" || "insults" || "sexual" || "violence" || "misconduct" || "prompt_attack", // required
|
|
60
|
-
* inputStrength: "none" || "low" || "medium" || "high",
|
|
61
|
-
* outputStrength: "none" || "low" || "medium" || "high",
|
|
62
|
-
* },
|
|
63
|
-
* ],
|
|
64
|
-
* },
|
|
65
|
-
* wordPolicy: { // GuardrailWordPolicy
|
|
66
|
-
* blockedWords: [
|
|
67
|
-
* "STRING_VALUE",
|
|
68
|
-
* ],
|
|
69
|
-
* profanity: true || false,
|
|
70
|
-
* },
|
|
71
|
-
* piiPolicy: { // GuardrailPiiPolicy
|
|
72
|
-
* entities: [ // GuardrailPiiEntitiesList // required
|
|
73
|
-
* { // GuardrailPiiEntity
|
|
74
|
-
* entityType: "email" || "phone_number" || "name" || "address" || "credit_card" || "iban" || "national_id" || "password" || "custom", // required
|
|
75
|
-
* pattern: "STRING_VALUE",
|
|
76
|
-
* action: "block" || "anonymize", // required
|
|
77
|
-
* },
|
|
78
|
-
* ],
|
|
79
|
-
* },
|
|
80
|
-
* blockedInputMessage: "STRING_VALUE",
|
|
81
|
-
* blockedOutputMessage: "STRING_VALUE",
|
|
82
|
-
* company: "STRING_VALUE",
|
|
83
|
-
* guardrailId: "STRING_VALUE", // required
|
|
84
|
-
* };
|
|
85
|
-
* const command = new UpdateGuardrailCommand(input);
|
|
86
|
-
* const response = await client.send(command);
|
|
87
|
-
* // { // UpdateGuardrailOutput
|
|
88
|
-
* // guardrail: { // Guardrail
|
|
89
|
-
* // name: "STRING_VALUE", // required
|
|
90
|
-
* // description: "STRING_VALUE",
|
|
91
|
-
* // topicPolicy: { // GuardrailTopicPolicy
|
|
92
|
-
* // topics: [ // GuardrailTopicsList // required
|
|
93
|
-
* // { // GuardrailTopic
|
|
94
|
-
* // name: "STRING_VALUE", // required
|
|
95
|
-
* // definition: "STRING_VALUE", // required
|
|
96
|
-
* // examples: [ // GuardrailPhrasesList
|
|
97
|
-
* // "STRING_VALUE",
|
|
98
|
-
* // ],
|
|
99
|
-
* // action: "block" || "detect", // required
|
|
100
|
-
* // },
|
|
101
|
-
* // ],
|
|
102
|
-
* // },
|
|
103
|
-
* // contentPolicy: { // GuardrailContentPolicy
|
|
104
|
-
* // filters: [ // GuardrailContentFiltersList // required
|
|
105
|
-
* // { // GuardrailContentFilter
|
|
106
|
-
* // category: "hate" || "insults" || "sexual" || "violence" || "misconduct" || "prompt_attack", // required
|
|
107
|
-
* // inputStrength: "none" || "low" || "medium" || "high",
|
|
108
|
-
* // outputStrength: "none" || "low" || "medium" || "high",
|
|
109
|
-
* // },
|
|
110
|
-
* // ],
|
|
111
|
-
* // },
|
|
112
|
-
* // wordPolicy: { // GuardrailWordPolicy
|
|
113
|
-
* // blockedWords: [
|
|
114
|
-
* // "STRING_VALUE",
|
|
115
|
-
* // ],
|
|
116
|
-
* // profanity: true || false,
|
|
117
|
-
* // },
|
|
118
|
-
* // piiPolicy: { // GuardrailPiiPolicy
|
|
119
|
-
* // entities: [ // GuardrailPiiEntitiesList // required
|
|
120
|
-
* // { // GuardrailPiiEntity
|
|
121
|
-
* // entityType: "email" || "phone_number" || "name" || "address" || "credit_card" || "iban" || "national_id" || "password" || "custom", // required
|
|
122
|
-
* // pattern: "STRING_VALUE",
|
|
123
|
-
* // action: "block" || "anonymize", // required
|
|
124
|
-
* // },
|
|
125
|
-
* // ],
|
|
126
|
-
* // },
|
|
127
|
-
* // blockedInputMessage: "STRING_VALUE",
|
|
128
|
-
* // blockedOutputMessage: "STRING_VALUE",
|
|
129
|
-
* // createdAt: "STRING_VALUE", // required
|
|
130
|
-
* // createdBy: { // Actor
|
|
131
|
-
* // type: "user" || "api_key" || "service", // required
|
|
132
|
-
* // id: "STRING_VALUE", // required
|
|
133
|
-
* // name: "STRING_VALUE",
|
|
134
|
-
* // },
|
|
135
|
-
* // updatedAt: "STRING_VALUE",
|
|
136
|
-
* // updatedBy: {
|
|
137
|
-
* // type: "user" || "api_key" || "service", // required
|
|
138
|
-
* // id: "STRING_VALUE", // required
|
|
139
|
-
* // name: "STRING_VALUE",
|
|
140
|
-
* // },
|
|
141
|
-
* // id: "STRING_VALUE", // required
|
|
142
|
-
* // },
|
|
143
|
-
* // };
|
|
144
|
-
*
|
|
145
|
-
* ```
|
|
146
|
-
*
|
|
147
|
-
* @param UpdateGuardrailCommandInput - {@link UpdateGuardrailCommandInput}
|
|
148
|
-
* @returns {@link UpdateGuardrailCommandOutput}
|
|
149
|
-
* @see {@link UpdateGuardrailCommandInput} for command's `input` shape.
|
|
150
|
-
* @see {@link UpdateGuardrailCommandOutput} for command's `response` shape.
|
|
151
|
-
* @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
|
|
152
|
-
*
|
|
153
|
-
* @throws {@link GuardrailNotFoundException} (client fault)
|
|
154
|
-
*
|
|
155
|
-
* @throws {@link ValidationException} (client fault)
|
|
156
|
-
*
|
|
157
|
-
* @throws {@link WilmaAgentsServiceException}
|
|
158
|
-
* <p>Base exception class for all service exceptions from WilmaAgents service.</p>
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
* @public
|
|
162
|
-
*/
|
|
163
|
-
export declare class UpdateGuardrailCommand extends UpdateGuardrailCommand_base {
|
|
164
|
-
/** @internal type navigation helper, not in runtime. */
|
|
165
|
-
protected static __types: {
|
|
166
|
-
api: {
|
|
167
|
-
input: UpdateGuardrailInput;
|
|
168
|
-
output: UpdateGuardrailOutput;
|
|
169
|
-
};
|
|
170
|
-
sdk: {
|
|
171
|
-
input: UpdateGuardrailCommandInput;
|
|
172
|
-
output: UpdateGuardrailCommandOutput;
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
}
|