@wildix/wilma-agents-client 1.0.1

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.
Files changed (130) hide show
  1. package/dist-cjs/WilmaAgents.js +57 -0
  2. package/dist-cjs/WilmaAgentsClient.js +49 -0
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
  5. package/dist-cjs/commands/CompareAgentVersionsCommand.js +20 -0
  6. package/dist-cjs/commands/CreateAgentApiKeyCommand.js +20 -0
  7. package/dist-cjs/commands/CreateAgentCommand.js +20 -0
  8. package/dist-cjs/commands/CreateGuardrailCommand.js +20 -0
  9. package/dist-cjs/commands/DeleteAgentAliasCommand.js +20 -0
  10. package/dist-cjs/commands/DeleteAgentApiKeyCommand.js +20 -0
  11. package/dist-cjs/commands/DeleteAgentCommand.js +20 -0
  12. package/dist-cjs/commands/DeleteGuardrailCommand.js +20 -0
  13. package/dist-cjs/commands/ExecuteAgentCommand.js +20 -0
  14. package/dist-cjs/commands/GetAgentCommand.js +20 -0
  15. package/dist-cjs/commands/GetAgentVersionCommand.js +20 -0
  16. package/dist-cjs/commands/GetGuardrailCommand.js +20 -0
  17. package/dist-cjs/commands/ListAgentAliasesCommand.js +20 -0
  18. package/dist-cjs/commands/ListAgentApiKeysCommand.js +20 -0
  19. package/dist-cjs/commands/ListAgentVersionsCommand.js +20 -0
  20. package/dist-cjs/commands/ListAgentsCommand.js +20 -0
  21. package/dist-cjs/commands/ListAgentsNamesCommand.js +20 -0
  22. package/dist-cjs/commands/ListAuditRecordsCommand.js +20 -0
  23. package/dist-cjs/commands/ListGuardrailsCommand.js +20 -0
  24. package/dist-cjs/commands/PublishAgentVersionCommand.js +20 -0
  25. package/dist-cjs/commands/PutAgentAliasCommand.js +20 -0
  26. package/dist-cjs/commands/UpdateAgentCommand.js +20 -0
  27. package/dist-cjs/commands/UpdateGuardrailCommand.js +20 -0
  28. package/dist-cjs/commands/index.js +26 -0
  29. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  30. package/dist-cjs/endpoint/bdd.js +28 -0
  31. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  32. package/dist-cjs/extensionConfiguration.js +2 -0
  33. package/dist-cjs/index.js +13 -0
  34. package/dist-cjs/models/WilmaAgentsServiceException.js +12 -0
  35. package/dist-cjs/models/enums.js +118 -0
  36. package/dist-cjs/models/errors.js +154 -0
  37. package/dist-cjs/models/models_0.js +2 -0
  38. package/dist-cjs/runtimeConfig.browser.js +32 -0
  39. package/dist-cjs/runtimeConfig.js +41 -0
  40. package/dist-cjs/runtimeConfig.native.js +15 -0
  41. package/dist-cjs/runtimeConfig.shared.js +41 -0
  42. package/dist-cjs/runtimeExtensions.js +12 -0
  43. package/dist-cjs/schemas/schemas_0.js +1168 -0
  44. package/dist-es/WilmaAgents.js +53 -0
  45. package/dist-es/WilmaAgentsClient.js +45 -0
  46. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  47. package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
  48. package/dist-es/commands/CompareAgentVersionsCommand.js +16 -0
  49. package/dist-es/commands/CreateAgentApiKeyCommand.js +16 -0
  50. package/dist-es/commands/CreateAgentCommand.js +16 -0
  51. package/dist-es/commands/CreateGuardrailCommand.js +16 -0
  52. package/dist-es/commands/DeleteAgentAliasCommand.js +16 -0
  53. package/dist-es/commands/DeleteAgentApiKeyCommand.js +16 -0
  54. package/dist-es/commands/DeleteAgentCommand.js +16 -0
  55. package/dist-es/commands/DeleteGuardrailCommand.js +16 -0
  56. package/dist-es/commands/ExecuteAgentCommand.js +16 -0
  57. package/dist-es/commands/GetAgentCommand.js +16 -0
  58. package/dist-es/commands/GetAgentVersionCommand.js +16 -0
  59. package/dist-es/commands/GetGuardrailCommand.js +16 -0
  60. package/dist-es/commands/ListAgentAliasesCommand.js +16 -0
  61. package/dist-es/commands/ListAgentApiKeysCommand.js +16 -0
  62. package/dist-es/commands/ListAgentVersionsCommand.js +16 -0
  63. package/dist-es/commands/ListAgentsCommand.js +16 -0
  64. package/dist-es/commands/ListAgentsNamesCommand.js +16 -0
  65. package/dist-es/commands/ListAuditRecordsCommand.js +16 -0
  66. package/dist-es/commands/ListGuardrailsCommand.js +16 -0
  67. package/dist-es/commands/PublishAgentVersionCommand.js +16 -0
  68. package/dist-es/commands/PutAgentAliasCommand.js +16 -0
  69. package/dist-es/commands/UpdateAgentCommand.js +16 -0
  70. package/dist-es/commands/UpdateGuardrailCommand.js +16 -0
  71. package/dist-es/commands/index.js +23 -0
  72. package/dist-es/endpoint/EndpointParameters.js +12 -0
  73. package/dist-es/endpoint/bdd.js +25 -0
  74. package/dist-es/endpoint/endpointResolver.js +12 -0
  75. package/dist-es/extensionConfiguration.js +1 -0
  76. package/dist-es/index.js +8 -0
  77. package/dist-es/models/WilmaAgentsServiceException.js +8 -0
  78. package/dist-es/models/enums.js +115 -0
  79. package/dist-es/models/errors.js +141 -0
  80. package/dist-es/models/models_0.js +1 -0
  81. package/dist-es/runtimeConfig.browser.js +27 -0
  82. package/dist-es/runtimeConfig.js +36 -0
  83. package/dist-es/runtimeConfig.native.js +11 -0
  84. package/dist-es/runtimeConfig.shared.js +37 -0
  85. package/dist-es/runtimeExtensions.js +8 -0
  86. package/dist-es/schemas/schemas_0.js +1162 -0
  87. package/dist-types/WilmaAgents.d.ts +182 -0
  88. package/dist-types/WilmaAgentsClient.d.ts +192 -0
  89. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  90. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  91. package/dist-types/commands/CompareAgentVersionsCommand.d.ts +91 -0
  92. package/dist-types/commands/CreateAgentApiKeyCommand.d.ts +96 -0
  93. package/dist-types/commands/CreateAgentCommand.d.ts +654 -0
  94. package/dist-types/commands/CreateGuardrailCommand.d.ts +172 -0
  95. package/dist-types/commands/DeleteAgentAliasCommand.d.ts +82 -0
  96. package/dist-types/commands/DeleteAgentApiKeyCommand.d.ts +82 -0
  97. package/dist-types/commands/DeleteAgentCommand.d.ts +77 -0
  98. package/dist-types/commands/DeleteGuardrailCommand.d.ts +80 -0
  99. package/dist-types/commands/ExecuteAgentCommand.d.ts +112 -0
  100. package/dist-types/commands/GetAgentCommand.d.ts +386 -0
  101. package/dist-types/commands/GetAgentVersionCommand.d.ts +365 -0
  102. package/dist-types/commands/GetGuardrailCommand.d.ts +135 -0
  103. package/dist-types/commands/ListAgentAliasesCommand.d.ts +99 -0
  104. package/dist-types/commands/ListAgentApiKeysCommand.d.ts +95 -0
  105. package/dist-types/commands/ListAgentVersionsCommand.d.ts +99 -0
  106. package/dist-types/commands/ListAgentsCommand.d.ts +391 -0
  107. package/dist-types/commands/ListAgentsNamesCommand.d.ts +90 -0
  108. package/dist-types/commands/ListAuditRecordsCommand.d.ts +109 -0
  109. package/dist-types/commands/ListGuardrailsCommand.d.ts +137 -0
  110. package/dist-types/commands/PublishAgentVersionCommand.d.ts +370 -0
  111. package/dist-types/commands/PutAgentAliasCommand.d.ts +107 -0
  112. package/dist-types/commands/UpdateAgentCommand.d.ts +661 -0
  113. package/dist-types/commands/UpdateGuardrailCommand.d.ts +175 -0
  114. package/dist-types/commands/index.d.ts +23 -0
  115. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  116. package/dist-types/endpoint/bdd.d.ts +2 -0
  117. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  118. package/dist-types/extensionConfiguration.d.ts +8 -0
  119. package/dist-types/index.d.ts +23 -0
  120. package/dist-types/models/WilmaAgentsServiceException.d.ts +14 -0
  121. package/dist-types/models/enums.d.ts +301 -0
  122. package/dist-types/models/errors.d.ts +129 -0
  123. package/dist-types/models/models_0.d.ts +2186 -0
  124. package/dist-types/runtimeConfig.browser.d.ts +55 -0
  125. package/dist-types/runtimeConfig.d.ts +55 -0
  126. package/dist-types/runtimeConfig.native.d.ts +54 -0
  127. package/dist-types/runtimeConfig.shared.d.ts +32 -0
  128. package/dist-types/runtimeExtensions.d.ts +17 -0
  129. package/dist-types/schemas/schemas_0.d.ts +160 -0
  130. package/package.json +57 -0
@@ -0,0 +1,172 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { CreateGuardrailInput, CreateGuardrailOutput } 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 CreateGuardrailCommand}.
14
+ */
15
+ export interface CreateGuardrailCommandInput extends CreateGuardrailInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateGuardrailCommand}.
21
+ */
22
+ export interface CreateGuardrailCommandOutput extends CreateGuardrailOutput, __MetadataBearer {
23
+ }
24
+ declare const CreateGuardrailCommand_base: {
25
+ new (input: CreateGuardrailCommandInput): import("@smithy/core/client").CommandImpl<CreateGuardrailCommandInput, CreateGuardrailCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateGuardrailCommandInput): import("@smithy/core/client").CommandImpl<CreateGuardrailCommandInput, CreateGuardrailCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * Creates a reusable guardrail policy that agents can reference.
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { WilmaAgentsClient, CreateGuardrailCommand } from "@wildix/wilma-agents-client"; // ES Modules import
37
+ * // const { WilmaAgentsClient, CreateGuardrailCommand } = 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 = { // CreateGuardrailInput
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
+ * };
84
+ * const command = new CreateGuardrailCommand(input);
85
+ * const response = await client.send(command);
86
+ * // { // CreateGuardrailOutput
87
+ * // guardrail: { // Guardrail
88
+ * // name: "STRING_VALUE", // required
89
+ * // description: "STRING_VALUE",
90
+ * // topicPolicy: { // GuardrailTopicPolicy
91
+ * // topics: [ // GuardrailTopicsList // required
92
+ * // { // GuardrailTopic
93
+ * // name: "STRING_VALUE", // required
94
+ * // definition: "STRING_VALUE", // required
95
+ * // examples: [ // GuardrailPhrasesList
96
+ * // "STRING_VALUE",
97
+ * // ],
98
+ * // action: "block" || "detect", // required
99
+ * // },
100
+ * // ],
101
+ * // },
102
+ * // contentPolicy: { // GuardrailContentPolicy
103
+ * // filters: [ // GuardrailContentFiltersList // required
104
+ * // { // GuardrailContentFilter
105
+ * // category: "hate" || "insults" || "sexual" || "violence" || "misconduct" || "prompt_attack", // required
106
+ * // inputStrength: "none" || "low" || "medium" || "high",
107
+ * // outputStrength: "none" || "low" || "medium" || "high",
108
+ * // },
109
+ * // ],
110
+ * // },
111
+ * // wordPolicy: { // GuardrailWordPolicy
112
+ * // blockedWords: [
113
+ * // "STRING_VALUE",
114
+ * // ],
115
+ * // profanity: true || false,
116
+ * // },
117
+ * // piiPolicy: { // GuardrailPiiPolicy
118
+ * // entities: [ // GuardrailPiiEntitiesList // required
119
+ * // { // GuardrailPiiEntity
120
+ * // entityType: "email" || "phone_number" || "name" || "address" || "credit_card" || "iban" || "national_id" || "password" || "custom", // required
121
+ * // pattern: "STRING_VALUE",
122
+ * // action: "block" || "anonymize", // required
123
+ * // },
124
+ * // ],
125
+ * // },
126
+ * // blockedInputMessage: "STRING_VALUE",
127
+ * // blockedOutputMessage: "STRING_VALUE",
128
+ * // createdAt: "STRING_VALUE", // required
129
+ * // createdBy: { // Actor
130
+ * // type: "user" || "api_key" || "service", // required
131
+ * // id: "STRING_VALUE", // required
132
+ * // name: "STRING_VALUE",
133
+ * // },
134
+ * // updatedAt: "STRING_VALUE",
135
+ * // updatedBy: {
136
+ * // type: "user" || "api_key" || "service", // required
137
+ * // id: "STRING_VALUE", // required
138
+ * // name: "STRING_VALUE",
139
+ * // },
140
+ * // id: "STRING_VALUE", // required
141
+ * // },
142
+ * // };
143
+ *
144
+ * ```
145
+ *
146
+ * @param CreateGuardrailCommandInput - {@link CreateGuardrailCommandInput}
147
+ * @returns {@link CreateGuardrailCommandOutput}
148
+ * @see {@link CreateGuardrailCommandInput} for command's `input` shape.
149
+ * @see {@link CreateGuardrailCommandOutput} for command's `response` shape.
150
+ * @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
151
+ *
152
+ * @throws {@link ValidationException} (client fault)
153
+ *
154
+ * @throws {@link WilmaAgentsServiceException}
155
+ * <p>Base exception class for all service exceptions from WilmaAgents service.</p>
156
+ *
157
+ *
158
+ * @public
159
+ */
160
+ export declare class CreateGuardrailCommand extends CreateGuardrailCommand_base {
161
+ /** @internal type navigation helper, not in runtime. */
162
+ protected static __types: {
163
+ api: {
164
+ input: CreateGuardrailInput;
165
+ output: CreateGuardrailOutput;
166
+ };
167
+ sdk: {
168
+ input: CreateGuardrailCommandInput;
169
+ output: CreateGuardrailCommandOutput;
170
+ };
171
+ };
172
+ }
@@ -0,0 +1,82 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DeleteAgentAliasInput, DeleteAgentAliasOutput } 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 DeleteAgentAliasCommand}.
14
+ */
15
+ export interface DeleteAgentAliasCommandInput extends DeleteAgentAliasInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteAgentAliasCommand}.
21
+ */
22
+ export interface DeleteAgentAliasCommandOutput extends DeleteAgentAliasOutput, __MetadataBearer {
23
+ }
24
+ declare const DeleteAgentAliasCommand_base: {
25
+ new (input: DeleteAgentAliasCommandInput): import("@smithy/core/client").CommandImpl<DeleteAgentAliasCommandInput, DeleteAgentAliasCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteAgentAliasCommandInput): import("@smithy/core/client").CommandImpl<DeleteAgentAliasCommandInput, DeleteAgentAliasCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * Deletes an alias. The 'production' alias cannot be deleted while any channel is enabled.
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { WilmaAgentsClient, DeleteAgentAliasCommand } from "@wildix/wilma-agents-client"; // ES Modules import
37
+ * // const { WilmaAgentsClient, DeleteAgentAliasCommand } = 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 = { // DeleteAgentAliasInput
42
+ * company: "STRING_VALUE",
43
+ * agentId: "STRING_VALUE", // required
44
+ * aliasName: "STRING_VALUE", // required
45
+ * };
46
+ * const command = new DeleteAgentAliasCommand(input);
47
+ * const response = await client.send(command);
48
+ * // {};
49
+ *
50
+ * ```
51
+ *
52
+ * @param DeleteAgentAliasCommandInput - {@link DeleteAgentAliasCommandInput}
53
+ * @returns {@link DeleteAgentAliasCommandOutput}
54
+ * @see {@link DeleteAgentAliasCommandInput} for command's `input` shape.
55
+ * @see {@link DeleteAgentAliasCommandOutput} for command's `response` shape.
56
+ * @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
57
+ *
58
+ * @throws {@link AgentNotFoundException} (client fault)
59
+ *
60
+ * @throws {@link AgentAliasNotFoundException} (client fault)
61
+ *
62
+ * @throws {@link ValidationException} (client fault)
63
+ *
64
+ * @throws {@link WilmaAgentsServiceException}
65
+ * <p>Base exception class for all service exceptions from WilmaAgents service.</p>
66
+ *
67
+ *
68
+ * @public
69
+ */
70
+ export declare class DeleteAgentAliasCommand extends DeleteAgentAliasCommand_base {
71
+ /** @internal type navigation helper, not in runtime. */
72
+ protected static __types: {
73
+ api: {
74
+ input: DeleteAgentAliasInput;
75
+ output: {};
76
+ };
77
+ sdk: {
78
+ input: DeleteAgentAliasCommandInput;
79
+ output: DeleteAgentAliasCommandOutput;
80
+ };
81
+ };
82
+ }
@@ -0,0 +1,82 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DeleteAgentApiKeyInput, DeleteAgentApiKeyOutput } 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 DeleteAgentApiKeyCommand}.
14
+ */
15
+ export interface DeleteAgentApiKeyCommandInput extends DeleteAgentApiKeyInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteAgentApiKeyCommand}.
21
+ */
22
+ export interface DeleteAgentApiKeyCommandOutput extends DeleteAgentApiKeyOutput, __MetadataBearer {
23
+ }
24
+ declare const DeleteAgentApiKeyCommand_base: {
25
+ new (input: DeleteAgentApiKeyCommandInput): import("@smithy/core/client").CommandImpl<DeleteAgentApiKeyCommandInput, DeleteAgentApiKeyCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteAgentApiKeyCommandInput): import("@smithy/core/client").CommandImpl<DeleteAgentApiKeyCommandInput, DeleteAgentApiKeyCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * Revokes an API key.
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { WilmaAgentsClient, DeleteAgentApiKeyCommand } from "@wildix/wilma-agents-client"; // ES Modules import
37
+ * // const { WilmaAgentsClient, DeleteAgentApiKeyCommand } = 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 = { // DeleteAgentApiKeyInput
42
+ * company: "STRING_VALUE",
43
+ * agentId: "STRING_VALUE", // required
44
+ * keyId: "STRING_VALUE", // required
45
+ * };
46
+ * const command = new DeleteAgentApiKeyCommand(input);
47
+ * const response = await client.send(command);
48
+ * // {};
49
+ *
50
+ * ```
51
+ *
52
+ * @param DeleteAgentApiKeyCommandInput - {@link DeleteAgentApiKeyCommandInput}
53
+ * @returns {@link DeleteAgentApiKeyCommandOutput}
54
+ * @see {@link DeleteAgentApiKeyCommandInput} for command's `input` shape.
55
+ * @see {@link DeleteAgentApiKeyCommandOutput} for command's `response` shape.
56
+ * @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
57
+ *
58
+ * @throws {@link AgentNotFoundException} (client fault)
59
+ *
60
+ * @throws {@link AgentApiKeyNotFoundException} (client fault)
61
+ *
62
+ * @throws {@link ValidationException} (client fault)
63
+ *
64
+ * @throws {@link WilmaAgentsServiceException}
65
+ * <p>Base exception class for all service exceptions from WilmaAgents service.</p>
66
+ *
67
+ *
68
+ * @public
69
+ */
70
+ export declare class DeleteAgentApiKeyCommand extends DeleteAgentApiKeyCommand_base {
71
+ /** @internal type navigation helper, not in runtime. */
72
+ protected static __types: {
73
+ api: {
74
+ input: DeleteAgentApiKeyInput;
75
+ output: {};
76
+ };
77
+ sdk: {
78
+ input: DeleteAgentApiKeyCommandInput;
79
+ output: DeleteAgentApiKeyCommandOutput;
80
+ };
81
+ };
82
+ }
@@ -0,0 +1,77 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DeleteAgentInput, DeleteAgentOutput } 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 DeleteAgentCommand}.
14
+ */
15
+ export interface DeleteAgentCommandInput extends DeleteAgentInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteAgentCommand}.
21
+ */
22
+ export interface DeleteAgentCommandOutput extends DeleteAgentOutput, __MetadataBearer {
23
+ }
24
+ declare const DeleteAgentCommand_base: {
25
+ new (input: DeleteAgentCommandInput): import("@smithy/core/client").CommandImpl<DeleteAgentCommandInput, DeleteAgentCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteAgentCommandInput): import("@smithy/core/client").CommandImpl<DeleteAgentCommandInput, DeleteAgentCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * Deletes an agent, its versions, API keys and channel deployments.
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { WilmaAgentsClient, DeleteAgentCommand } from "@wildix/wilma-agents-client"; // ES Modules import
37
+ * // const { WilmaAgentsClient, DeleteAgentCommand } = 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 = { // DeleteAgentInput
42
+ * company: "STRING_VALUE",
43
+ * agentId: "STRING_VALUE", // required
44
+ * };
45
+ * const command = new DeleteAgentCommand(input);
46
+ * const response = await client.send(command);
47
+ * // {};
48
+ *
49
+ * ```
50
+ *
51
+ * @param DeleteAgentCommandInput - {@link DeleteAgentCommandInput}
52
+ * @returns {@link DeleteAgentCommandOutput}
53
+ * @see {@link DeleteAgentCommandInput} for command's `input` shape.
54
+ * @see {@link DeleteAgentCommandOutput} for command's `response` shape.
55
+ * @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
56
+ *
57
+ * @throws {@link ValidationException} (client fault)
58
+ *
59
+ * @throws {@link WilmaAgentsServiceException}
60
+ * <p>Base exception class for all service exceptions from WilmaAgents service.</p>
61
+ *
62
+ *
63
+ * @public
64
+ */
65
+ export declare class DeleteAgentCommand extends DeleteAgentCommand_base {
66
+ /** @internal type navigation helper, not in runtime. */
67
+ protected static __types: {
68
+ api: {
69
+ input: DeleteAgentInput;
70
+ output: {};
71
+ };
72
+ sdk: {
73
+ input: DeleteAgentCommandInput;
74
+ output: DeleteAgentCommandOutput;
75
+ };
76
+ };
77
+ }
@@ -0,0 +1,80 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DeleteGuardrailInput, DeleteGuardrailOutput } 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 DeleteGuardrailCommand}.
14
+ */
15
+ export interface DeleteGuardrailCommandInput extends DeleteGuardrailInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteGuardrailCommand}.
21
+ */
22
+ export interface DeleteGuardrailCommandOutput extends DeleteGuardrailOutput, __MetadataBearer {
23
+ }
24
+ declare const DeleteGuardrailCommand_base: {
25
+ new (input: DeleteGuardrailCommandInput): import("@smithy/core/client").CommandImpl<DeleteGuardrailCommandInput, DeleteGuardrailCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteGuardrailCommandInput): import("@smithy/core/client").CommandImpl<DeleteGuardrailCommandInput, DeleteGuardrailCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * Deletes a guardrail. Fails while any agent still references it.
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { WilmaAgentsClient, DeleteGuardrailCommand } from "@wildix/wilma-agents-client"; // ES Modules import
37
+ * // const { WilmaAgentsClient, DeleteGuardrailCommand } = 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 = { // DeleteGuardrailInput
42
+ * company: "STRING_VALUE",
43
+ * guardrailId: "STRING_VALUE", // required
44
+ * };
45
+ * const command = new DeleteGuardrailCommand(input);
46
+ * const response = await client.send(command);
47
+ * // {};
48
+ *
49
+ * ```
50
+ *
51
+ * @param DeleteGuardrailCommandInput - {@link DeleteGuardrailCommandInput}
52
+ * @returns {@link DeleteGuardrailCommandOutput}
53
+ * @see {@link DeleteGuardrailCommandInput} for command's `input` shape.
54
+ * @see {@link DeleteGuardrailCommandOutput} for command's `response` shape.
55
+ * @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
56
+ *
57
+ * @throws {@link GuardrailInUseException} (client fault)
58
+ * The guardrail is referenced by at least one agent and cannot be deleted.
59
+ *
60
+ * @throws {@link ValidationException} (client fault)
61
+ *
62
+ * @throws {@link WilmaAgentsServiceException}
63
+ * <p>Base exception class for all service exceptions from WilmaAgents service.</p>
64
+ *
65
+ *
66
+ * @public
67
+ */
68
+ export declare class DeleteGuardrailCommand extends DeleteGuardrailCommand_base {
69
+ /** @internal type navigation helper, not in runtime. */
70
+ protected static __types: {
71
+ api: {
72
+ input: DeleteGuardrailInput;
73
+ output: {};
74
+ };
75
+ sdk: {
76
+ input: DeleteGuardrailCommandInput;
77
+ output: DeleteGuardrailCommandOutput;
78
+ };
79
+ };
80
+ }
@@ -0,0 +1,112 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ExecuteAgentInput, ExecuteAgentOutput } 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 ExecuteAgentCommand}.
14
+ */
15
+ export interface ExecuteAgentCommandInput extends ExecuteAgentInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ExecuteAgentCommand}.
21
+ */
22
+ export interface ExecuteAgentCommandOutput extends ExecuteAgentOutput, __MetadataBearer {
23
+ }
24
+ declare const ExecuteAgentCommand_base: {
25
+ new (input: ExecuteAgentCommandInput): import("@smithy/core/client").CommandImpl<ExecuteAgentCommandInput, ExecuteAgentCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ExecuteAgentCommandInput): import("@smithy/core/client").CommandImpl<ExecuteAgentCommandInput, ExecuteAgentCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * Executes an agent over the API channel and returns the result. By default the 'production' alias is resolved; pass alias or version to execute another alias, a specific version, or the draft (for testing).
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { WilmaAgentsClient, ExecuteAgentCommand } from "@wildix/wilma-agents-client"; // ES Modules import
37
+ * // const { WilmaAgentsClient, ExecuteAgentCommand } = 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 = { // ExecuteAgentInput
42
+ * company: "STRING_VALUE",
43
+ * agentId: "STRING_VALUE", // required
44
+ * input: "STRING_VALUE", // required
45
+ * variables: "DOCUMENT_VALUE",
46
+ * alias: "STRING_VALUE",
47
+ * version: Number("int"),
48
+ * user: "STRING_VALUE",
49
+ * parentAgentId: "STRING_VALUE",
50
+ * parentTraceId: "STRING_VALUE",
51
+ * files: [ // FileIdList
52
+ * "STRING_VALUE",
53
+ * ],
54
+ * };
55
+ * const command = new ExecuteAgentCommand(input);
56
+ * const response = await client.send(command);
57
+ * // { // ExecuteAgentOutput
58
+ * // result: { // AgentExecutionResult
59
+ * // output: "DOCUMENT_VALUE",
60
+ * // error: { // AgentExecutionError
61
+ * // message: "STRING_VALUE", // required
62
+ * // code: "STRING_VALUE",
63
+ * // },
64
+ * // files: [ // AgentFileList
65
+ * // { // AgentFile
66
+ * // id: "STRING_VALUE", // required
67
+ * // name: "STRING_VALUE", // required
68
+ * // contentType: "STRING_VALUE",
69
+ * // size: Number("long"),
70
+ * // scope: "user" || "agent",
71
+ * // agentId: "STRING_VALUE",
72
+ * // sessionId: "STRING_VALUE",
73
+ * // createdAt: "STRING_VALUE", // required
74
+ * // },
75
+ * // ],
76
+ * // traceId: "STRING_VALUE",
77
+ * // },
78
+ * // };
79
+ *
80
+ * ```
81
+ *
82
+ * @param ExecuteAgentCommandInput - {@link ExecuteAgentCommandInput}
83
+ * @returns {@link ExecuteAgentCommandOutput}
84
+ * @see {@link ExecuteAgentCommandInput} for command's `input` shape.
85
+ * @see {@link ExecuteAgentCommandOutput} for command's `response` shape.
86
+ * @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
87
+ *
88
+ * @throws {@link AgentNotFoundException} (client fault)
89
+ *
90
+ * @throws {@link AgentVersionNotFoundException} (client fault)
91
+ *
92
+ * @throws {@link ValidationException} (client fault)
93
+ *
94
+ * @throws {@link WilmaAgentsServiceException}
95
+ * <p>Base exception class for all service exceptions from WilmaAgents service.</p>
96
+ *
97
+ *
98
+ * @public
99
+ */
100
+ export declare class ExecuteAgentCommand extends ExecuteAgentCommand_base {
101
+ /** @internal type navigation helper, not in runtime. */
102
+ protected static __types: {
103
+ api: {
104
+ input: ExecuteAgentInput;
105
+ output: ExecuteAgentOutput;
106
+ };
107
+ sdk: {
108
+ input: ExecuteAgentCommandInput;
109
+ output: ExecuteAgentCommandOutput;
110
+ };
111
+ };
112
+ }