@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.
- package/dist-cjs/WilmaAgents.js +57 -0
- package/dist-cjs/WilmaAgentsClient.js +49 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
- package/dist-cjs/commands/CompareAgentVersionsCommand.js +20 -0
- package/dist-cjs/commands/CreateAgentApiKeyCommand.js +20 -0
- package/dist-cjs/commands/CreateAgentCommand.js +20 -0
- package/dist-cjs/commands/CreateGuardrailCommand.js +20 -0
- package/dist-cjs/commands/DeleteAgentAliasCommand.js +20 -0
- package/dist-cjs/commands/DeleteAgentApiKeyCommand.js +20 -0
- package/dist-cjs/commands/DeleteAgentCommand.js +20 -0
- package/dist-cjs/commands/DeleteGuardrailCommand.js +20 -0
- package/dist-cjs/commands/ExecuteAgentCommand.js +20 -0
- package/dist-cjs/commands/GetAgentCommand.js +20 -0
- package/dist-cjs/commands/GetAgentVersionCommand.js +20 -0
- package/dist-cjs/commands/GetGuardrailCommand.js +20 -0
- package/dist-cjs/commands/ListAgentAliasesCommand.js +20 -0
- package/dist-cjs/commands/ListAgentApiKeysCommand.js +20 -0
- package/dist-cjs/commands/ListAgentVersionsCommand.js +20 -0
- package/dist-cjs/commands/ListAgentsCommand.js +20 -0
- package/dist-cjs/commands/ListAgentsNamesCommand.js +20 -0
- package/dist-cjs/commands/ListAuditRecordsCommand.js +20 -0
- package/dist-cjs/commands/ListGuardrailsCommand.js +20 -0
- package/dist-cjs/commands/PublishAgentVersionCommand.js +20 -0
- package/dist-cjs/commands/PutAgentAliasCommand.js +20 -0
- package/dist-cjs/commands/UpdateAgentCommand.js +20 -0
- package/dist-cjs/commands/UpdateGuardrailCommand.js +20 -0
- package/dist-cjs/commands/index.js +26 -0
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +13 -0
- package/dist-cjs/models/WilmaAgentsServiceException.js +12 -0
- package/dist-cjs/models/enums.js +118 -0
- package/dist-cjs/models/errors.js +154 -0
- package/dist-cjs/models/models_0.js +2 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +41 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +41 -0
- package/dist-cjs/runtimeExtensions.js +12 -0
- package/dist-cjs/schemas/schemas_0.js +1168 -0
- package/dist-es/WilmaAgents.js +53 -0
- package/dist-es/WilmaAgentsClient.js +45 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
- package/dist-es/commands/CompareAgentVersionsCommand.js +16 -0
- package/dist-es/commands/CreateAgentApiKeyCommand.js +16 -0
- package/dist-es/commands/CreateAgentCommand.js +16 -0
- package/dist-es/commands/CreateGuardrailCommand.js +16 -0
- package/dist-es/commands/DeleteAgentAliasCommand.js +16 -0
- package/dist-es/commands/DeleteAgentApiKeyCommand.js +16 -0
- package/dist-es/commands/DeleteAgentCommand.js +16 -0
- package/dist-es/commands/DeleteGuardrailCommand.js +16 -0
- package/dist-es/commands/ExecuteAgentCommand.js +16 -0
- package/dist-es/commands/GetAgentCommand.js +16 -0
- package/dist-es/commands/GetAgentVersionCommand.js +16 -0
- package/dist-es/commands/GetGuardrailCommand.js +16 -0
- package/dist-es/commands/ListAgentAliasesCommand.js +16 -0
- package/dist-es/commands/ListAgentApiKeysCommand.js +16 -0
- package/dist-es/commands/ListAgentVersionsCommand.js +16 -0
- package/dist-es/commands/ListAgentsCommand.js +16 -0
- package/dist-es/commands/ListAgentsNamesCommand.js +16 -0
- package/dist-es/commands/ListAuditRecordsCommand.js +16 -0
- package/dist-es/commands/ListGuardrailsCommand.js +16 -0
- package/dist-es/commands/PublishAgentVersionCommand.js +16 -0
- package/dist-es/commands/PutAgentAliasCommand.js +16 -0
- package/dist-es/commands/UpdateAgentCommand.js +16 -0
- package/dist-es/commands/UpdateGuardrailCommand.js +16 -0
- package/dist-es/commands/index.js +23 -0
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +8 -0
- package/dist-es/models/WilmaAgentsServiceException.js +8 -0
- package/dist-es/models/enums.js +115 -0
- package/dist-es/models/errors.js +141 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +36 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +37 -0
- package/dist-es/runtimeExtensions.js +8 -0
- package/dist-es/schemas/schemas_0.js +1162 -0
- package/dist-types/WilmaAgents.d.ts +182 -0
- package/dist-types/WilmaAgentsClient.d.ts +192 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/CompareAgentVersionsCommand.d.ts +91 -0
- package/dist-types/commands/CreateAgentApiKeyCommand.d.ts +96 -0
- package/dist-types/commands/CreateAgentCommand.d.ts +654 -0
- package/dist-types/commands/CreateGuardrailCommand.d.ts +172 -0
- package/dist-types/commands/DeleteAgentAliasCommand.d.ts +82 -0
- package/dist-types/commands/DeleteAgentApiKeyCommand.d.ts +82 -0
- package/dist-types/commands/DeleteAgentCommand.d.ts +77 -0
- package/dist-types/commands/DeleteGuardrailCommand.d.ts +80 -0
- package/dist-types/commands/ExecuteAgentCommand.d.ts +112 -0
- package/dist-types/commands/GetAgentCommand.d.ts +386 -0
- package/dist-types/commands/GetAgentVersionCommand.d.ts +365 -0
- package/dist-types/commands/GetGuardrailCommand.d.ts +135 -0
- package/dist-types/commands/ListAgentAliasesCommand.d.ts +99 -0
- package/dist-types/commands/ListAgentApiKeysCommand.d.ts +95 -0
- package/dist-types/commands/ListAgentVersionsCommand.d.ts +99 -0
- package/dist-types/commands/ListAgentsCommand.d.ts +391 -0
- package/dist-types/commands/ListAgentsNamesCommand.d.ts +90 -0
- package/dist-types/commands/ListAuditRecordsCommand.d.ts +109 -0
- package/dist-types/commands/ListGuardrailsCommand.d.ts +137 -0
- package/dist-types/commands/PublishAgentVersionCommand.d.ts +370 -0
- package/dist-types/commands/PutAgentAliasCommand.d.ts +107 -0
- package/dist-types/commands/UpdateAgentCommand.d.ts +661 -0
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +175 -0
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +23 -0
- package/dist-types/models/WilmaAgentsServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +301 -0
- package/dist-types/models/errors.d.ts +129 -0
- package/dist-types/models/models_0.d.ts +2186 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +32 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +160 -0
- package/package.json +57 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CreateAgentApiKeyInput, CreateAgentApiKeyOutput } 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 CreateAgentApiKeyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateAgentApiKeyCommandInput extends CreateAgentApiKeyInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateAgentApiKeyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateAgentApiKeyCommandOutput extends CreateAgentApiKeyOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateAgentApiKeyCommand_base: {
|
|
25
|
+
new (input: CreateAgentApiKeyCommandInput): import("@smithy/core/client").CommandImpl<CreateAgentApiKeyCommandInput, CreateAgentApiKeyCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateAgentApiKeyCommandInput): import("@smithy/core/client").CommandImpl<CreateAgentApiKeyCommandInput, CreateAgentApiKeyCommandOutput, WilmaAgentsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Creates a new API key for an agent. The secret is returned only in this response and cannot be retrieved later.
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { WilmaAgentsClient, CreateAgentApiKeyCommand } from "@wildix/wilma-agents-client"; // ES Modules import
|
|
37
|
+
* // const { WilmaAgentsClient, CreateAgentApiKeyCommand } = 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 = { // CreateAgentApiKeyInput
|
|
42
|
+
* company: "STRING_VALUE",
|
|
43
|
+
* agentId: "STRING_VALUE", // required
|
|
44
|
+
* name: "STRING_VALUE",
|
|
45
|
+
* expiresAt: "STRING_VALUE",
|
|
46
|
+
* };
|
|
47
|
+
* const command = new CreateAgentApiKeyCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // CreateAgentApiKeyOutput
|
|
50
|
+
* // key: { // AgentApiKey
|
|
51
|
+
* // id: "STRING_VALUE", // required
|
|
52
|
+
* // name: "STRING_VALUE",
|
|
53
|
+
* // prefix: "STRING_VALUE", // required
|
|
54
|
+
* // createdAt: "STRING_VALUE", // required
|
|
55
|
+
* // createdBy: { // Actor
|
|
56
|
+
* // type: "user" || "api_key" || "service", // required
|
|
57
|
+
* // id: "STRING_VALUE", // required
|
|
58
|
+
* // name: "STRING_VALUE",
|
|
59
|
+
* // },
|
|
60
|
+
* // expiresAt: "STRING_VALUE",
|
|
61
|
+
* // lastUsedAt: "STRING_VALUE",
|
|
62
|
+
* // },
|
|
63
|
+
* // secret: "STRING_VALUE", // required
|
|
64
|
+
* // };
|
|
65
|
+
*
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @param CreateAgentApiKeyCommandInput - {@link CreateAgentApiKeyCommandInput}
|
|
69
|
+
* @returns {@link CreateAgentApiKeyCommandOutput}
|
|
70
|
+
* @see {@link CreateAgentApiKeyCommandInput} for command's `input` shape.
|
|
71
|
+
* @see {@link CreateAgentApiKeyCommandOutput} for command's `response` shape.
|
|
72
|
+
* @see {@link WilmaAgentsClientResolvedConfig | config} for WilmaAgentsClient's `config` shape.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link AgentNotFoundException} (client fault)
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ValidationException} (client fault)
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link WilmaAgentsServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from WilmaAgents service.</p>
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class CreateAgentApiKeyCommand extends CreateAgentApiKeyCommand_base {
|
|
85
|
+
/** @internal type navigation helper, not in runtime. */
|
|
86
|
+
protected static __types: {
|
|
87
|
+
api: {
|
|
88
|
+
input: CreateAgentApiKeyInput;
|
|
89
|
+
output: CreateAgentApiKeyOutput;
|
|
90
|
+
};
|
|
91
|
+
sdk: {
|
|
92
|
+
input: CreateAgentApiKeyCommandInput;
|
|
93
|
+
output: CreateAgentApiKeyCommandOutput;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}
|