@wildix/wilma-copilot-client 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/WilmaCopilot.js +75 -0
- package/dist-cjs/WilmaCopilotClient.js +49 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
- package/dist-cjs/commands/AttachProfileResourceCommand.js +20 -0
- package/dist-cjs/commands/CompareProfileVersionsCommand.js +20 -0
- package/dist-cjs/commands/CreateAssetCommand.js +20 -0
- package/dist-cjs/commands/CreateAutomationCommand.js +20 -0
- package/dist-cjs/commands/CreateEvaluationCommand.js +20 -0
- package/dist-cjs/commands/CreateIntentCommand.js +20 -0
- package/dist-cjs/commands/CreateProfileCommand.js +20 -0
- package/dist-cjs/commands/DeleteAssetCommand.js +20 -0
- package/dist-cjs/commands/DeleteAutomationCommand.js +20 -0
- package/dist-cjs/commands/DeleteEvaluationCommand.js +20 -0
- package/dist-cjs/commands/DeleteIntentCommand.js +20 -0
- package/dist-cjs/commands/DeleteProfileCommand.js +20 -0
- package/dist-cjs/commands/DeleteProfileResourceCommand.js +20 -0
- package/dist-cjs/commands/GetAssetCommand.js +20 -0
- package/dist-cjs/commands/GetAutomationCommand.js +20 -0
- package/dist-cjs/commands/GetEvaluationCommand.js +20 -0
- package/dist-cjs/commands/GetIntentCommand.js +20 -0
- package/dist-cjs/commands/GetProfileCommand.js +20 -0
- package/dist-cjs/commands/GetProfileVersionCommand.js +20 -0
- package/dist-cjs/commands/ListAssetsCommand.js +20 -0
- package/dist-cjs/commands/ListAutomationsCommand.js +20 -0
- package/dist-cjs/commands/ListEvaluationsCommand.js +20 -0
- package/dist-cjs/commands/ListIntentsCommand.js +20 -0
- package/dist-cjs/commands/ListProfileVersionsCommand.js +20 -0
- package/dist-cjs/commands/ListProfilesCommand.js +20 -0
- package/dist-cjs/commands/PublishProfileVersionCommand.js +20 -0
- package/dist-cjs/commands/RestoreProfileVersionToDraftCommand.js +20 -0
- package/dist-cjs/commands/UpdateAssetCommand.js +20 -0
- package/dist-cjs/commands/UpdateAutomationCommand.js +20 -0
- package/dist-cjs/commands/UpdateEvaluationCommand.js +20 -0
- package/dist-cjs/commands/UpdateIntentCommand.js +20 -0
- package/dist-cjs/commands/UpdateProfileCommand.js +20 -0
- package/dist-cjs/commands/index.js +35 -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/WilmaCopilotServiceException.js +12 -0
- package/dist-cjs/models/enums.js +95 -0
- package/dist-cjs/models/errors.js +287 -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 +1249 -0
- package/dist-es/WilmaCopilot.js +71 -0
- package/dist-es/WilmaCopilotClient.js +45 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
- package/dist-es/commands/AttachProfileResourceCommand.js +16 -0
- package/dist-es/commands/CompareProfileVersionsCommand.js +16 -0
- package/dist-es/commands/CreateAssetCommand.js +16 -0
- package/dist-es/commands/CreateAutomationCommand.js +16 -0
- package/dist-es/commands/CreateEvaluationCommand.js +16 -0
- package/dist-es/commands/CreateIntentCommand.js +16 -0
- package/dist-es/commands/CreateProfileCommand.js +16 -0
- package/dist-es/commands/DeleteAssetCommand.js +16 -0
- package/dist-es/commands/DeleteAutomationCommand.js +16 -0
- package/dist-es/commands/DeleteEvaluationCommand.js +16 -0
- package/dist-es/commands/DeleteIntentCommand.js +16 -0
- package/dist-es/commands/DeleteProfileCommand.js +16 -0
- package/dist-es/commands/DeleteProfileResourceCommand.js +16 -0
- package/dist-es/commands/GetAssetCommand.js +16 -0
- package/dist-es/commands/GetAutomationCommand.js +16 -0
- package/dist-es/commands/GetEvaluationCommand.js +16 -0
- package/dist-es/commands/GetIntentCommand.js +16 -0
- package/dist-es/commands/GetProfileCommand.js +16 -0
- package/dist-es/commands/GetProfileVersionCommand.js +16 -0
- package/dist-es/commands/ListAssetsCommand.js +16 -0
- package/dist-es/commands/ListAutomationsCommand.js +16 -0
- package/dist-es/commands/ListEvaluationsCommand.js +16 -0
- package/dist-es/commands/ListIntentsCommand.js +16 -0
- package/dist-es/commands/ListProfileVersionsCommand.js +16 -0
- package/dist-es/commands/ListProfilesCommand.js +16 -0
- package/dist-es/commands/PublishProfileVersionCommand.js +16 -0
- package/dist-es/commands/RestoreProfileVersionToDraftCommand.js +16 -0
- package/dist-es/commands/UpdateAssetCommand.js +16 -0
- package/dist-es/commands/UpdateAutomationCommand.js +16 -0
- package/dist-es/commands/UpdateEvaluationCommand.js +16 -0
- package/dist-es/commands/UpdateIntentCommand.js +16 -0
- package/dist-es/commands/UpdateProfileCommand.js +16 -0
- package/dist-es/commands/index.js +32 -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/WilmaCopilotServiceException.js +8 -0
- package/dist-es/models/enums.js +92 -0
- package/dist-es/models/errors.js +265 -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 +1243 -0
- package/dist-types/WilmaCopilot.d.ts +254 -0
- package/dist-types/WilmaCopilotClient.d.ts +209 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/AttachProfileResourceCommand.d.ts +165 -0
- package/dist-types/commands/CompareProfileVersionsCommand.d.ts +91 -0
- package/dist-types/commands/CreateAssetCommand.d.ts +328 -0
- package/dist-types/commands/CreateAutomationCommand.d.ts +176 -0
- package/dist-types/commands/CreateEvaluationCommand.d.ts +196 -0
- package/dist-types/commands/CreateIntentCommand.d.ts +202 -0
- package/dist-types/commands/CreateProfileCommand.d.ts +181 -0
- package/dist-types/commands/DeleteAssetCommand.d.ts +83 -0
- package/dist-types/commands/DeleteAutomationCommand.d.ts +83 -0
- package/dist-types/commands/DeleteEvaluationCommand.d.ts +83 -0
- package/dist-types/commands/DeleteIntentCommand.d.ts +83 -0
- package/dist-types/commands/DeleteProfileCommand.d.ts +79 -0
- package/dist-types/commands/DeleteProfileResourceCommand.d.ts +147 -0
- package/dist-types/commands/GetAssetCommand.d.ts +213 -0
- package/dist-types/commands/GetAutomationCommand.d.ts +137 -0
- package/dist-types/commands/GetEvaluationCommand.d.ts +147 -0
- package/dist-types/commands/GetIntentCommand.d.ts +150 -0
- package/dist-types/commands/GetProfileCommand.d.ts +141 -0
- package/dist-types/commands/GetProfileVersionCommand.d.ts +82 -0
- package/dist-types/commands/ListAssetsCommand.d.ts +107 -0
- package/dist-types/commands/ListAutomationsCommand.d.ts +103 -0
- package/dist-types/commands/ListEvaluationsCommand.d.ts +104 -0
- package/dist-types/commands/ListIntentsCommand.d.ts +103 -0
- package/dist-types/commands/ListProfileVersionsCommand.d.ts +95 -0
- package/dist-types/commands/ListProfilesCommand.d.ts +110 -0
- package/dist-types/commands/PublishProfileVersionCommand.d.ts +87 -0
- package/dist-types/commands/RestoreProfileVersionToDraftCommand.d.ts +146 -0
- package/dist-types/commands/UpdateAssetCommand.d.ts +335 -0
- package/dist-types/commands/UpdateAutomationCommand.d.ts +183 -0
- package/dist-types/commands/UpdateEvaluationCommand.d.ts +203 -0
- package/dist-types/commands/UpdateIntentCommand.d.ts +209 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +160 -0
- package/dist-types/commands/index.d.ts +32 -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 +31 -0
- package/dist-types/models/WilmaCopilotServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +287 -0
- package/dist-types/models/errors.d.ts +239 -0
- package/dist-types/models/models_0.d.ts +2808 -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 +182 -0
- package/package.json +57 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CreateAutomationInput, CreateAutomationOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WilmaCopilotClientResolvedConfig } from "../WilmaCopilotClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateAutomationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateAutomationCommandInput extends CreateAutomationInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateAutomationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateAutomationCommandOutput extends CreateAutomationOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateAutomationCommand_base: {
|
|
25
|
+
new (input: CreateAutomationCommandInput): import("@smithy/core/client").CommandImpl<CreateAutomationCommandInput, CreateAutomationCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateAutomationCommandInput): import("@smithy/core/client").CommandImpl<CreateAutomationCommandInput, CreateAutomationCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new reusable automation.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaCopilotClient, CreateAutomationCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaCopilotClient, CreateAutomationCommand } = require("@wildix/wilma-copilot-client"); // CommonJS import
|
|
36
|
+
* // import type { WilmaCopilotClientConfig } from "@wildix/wilma-copilot-client";
|
|
37
|
+
* const config = {}; // type is WilmaCopilotClientConfig
|
|
38
|
+
* const client = new WilmaCopilotClient(config);
|
|
39
|
+
* const input = { // CreateAutomationInput
|
|
40
|
+
* name: "STRING_VALUE", // required
|
|
41
|
+
* description: "STRING_VALUE",
|
|
42
|
+
* handler: { // AutomationHandler Union: only one key present
|
|
43
|
+
* agent: { // AgentAutomationHandler
|
|
44
|
+
* agentId: "STRING_VALUE", // required
|
|
45
|
+
* prompt: "STRING_VALUE",
|
|
46
|
+
* outputMode: "card" || "silent",
|
|
47
|
+
* parameters: [ // CopilotVariableBindingsList
|
|
48
|
+
* { // CopilotVariableBinding
|
|
49
|
+
* name: "STRING_VALUE", // required
|
|
50
|
+
* type: "STRING_VALUE",
|
|
51
|
+
* optional: true || false,
|
|
52
|
+
* variant: "auto" || "guided" || "predefined", // required
|
|
53
|
+
* description: "STRING_VALUE",
|
|
54
|
+
* value: "STRING_VALUE",
|
|
55
|
+
* },
|
|
56
|
+
* ],
|
|
57
|
+
* },
|
|
58
|
+
* tool: { // ToolAutomationHandler
|
|
59
|
+
* toolId: "STRING_VALUE",
|
|
60
|
+
* toolName: "STRING_VALUE", // required
|
|
61
|
+
* action: "STRING_VALUE",
|
|
62
|
+
* payloadTemplate: "STRING_VALUE",
|
|
63
|
+
* outputMode: "card" || "silent",
|
|
64
|
+
* parameters: [
|
|
65
|
+
* {
|
|
66
|
+
* name: "STRING_VALUE", // required
|
|
67
|
+
* type: "STRING_VALUE",
|
|
68
|
+
* optional: true || false,
|
|
69
|
+
* variant: "auto" || "guided" || "predefined", // required
|
|
70
|
+
* description: "STRING_VALUE",
|
|
71
|
+
* value: "STRING_VALUE",
|
|
72
|
+
* },
|
|
73
|
+
* ],
|
|
74
|
+
* },
|
|
75
|
+
* knowledgeBase: { // KnowledgeBaseAutomationHandler
|
|
76
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
77
|
+
* },
|
|
78
|
+
* },
|
|
79
|
+
* conditions: "DOCUMENT_VALUE",
|
|
80
|
+
* company: "STRING_VALUE",
|
|
81
|
+
* };
|
|
82
|
+
* const command = new CreateAutomationCommand(input);
|
|
83
|
+
* const response = await client.send(command);
|
|
84
|
+
* // { // CreateAutomationOutput
|
|
85
|
+
* // automation: { // Automation
|
|
86
|
+
* // name: "STRING_VALUE", // required
|
|
87
|
+
* // description: "STRING_VALUE",
|
|
88
|
+
* // handler: { // AutomationHandler Union: only one key present
|
|
89
|
+
* // agent: { // AgentAutomationHandler
|
|
90
|
+
* // agentId: "STRING_VALUE", // required
|
|
91
|
+
* // prompt: "STRING_VALUE",
|
|
92
|
+
* // outputMode: "card" || "silent",
|
|
93
|
+
* // parameters: [ // CopilotVariableBindingsList
|
|
94
|
+
* // { // CopilotVariableBinding
|
|
95
|
+
* // name: "STRING_VALUE", // required
|
|
96
|
+
* // type: "STRING_VALUE",
|
|
97
|
+
* // optional: true || false,
|
|
98
|
+
* // variant: "auto" || "guided" || "predefined", // required
|
|
99
|
+
* // description: "STRING_VALUE",
|
|
100
|
+
* // value: "STRING_VALUE",
|
|
101
|
+
* // },
|
|
102
|
+
* // ],
|
|
103
|
+
* // },
|
|
104
|
+
* // tool: { // ToolAutomationHandler
|
|
105
|
+
* // toolId: "STRING_VALUE",
|
|
106
|
+
* // toolName: "STRING_VALUE", // required
|
|
107
|
+
* // action: "STRING_VALUE",
|
|
108
|
+
* // payloadTemplate: "STRING_VALUE",
|
|
109
|
+
* // outputMode: "card" || "silent",
|
|
110
|
+
* // parameters: [
|
|
111
|
+
* // {
|
|
112
|
+
* // name: "STRING_VALUE", // required
|
|
113
|
+
* // type: "STRING_VALUE",
|
|
114
|
+
* // optional: true || false,
|
|
115
|
+
* // variant: "auto" || "guided" || "predefined", // required
|
|
116
|
+
* // description: "STRING_VALUE",
|
|
117
|
+
* // value: "STRING_VALUE",
|
|
118
|
+
* // },
|
|
119
|
+
* // ],
|
|
120
|
+
* // },
|
|
121
|
+
* // knowledgeBase: { // KnowledgeBaseAutomationHandler
|
|
122
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
123
|
+
* // },
|
|
124
|
+
* // },
|
|
125
|
+
* // conditions: "DOCUMENT_VALUE",
|
|
126
|
+
* // createdAt: "STRING_VALUE", // required
|
|
127
|
+
* // createdBy: { // Actor
|
|
128
|
+
* // type: "user" || "api_key" || "service", // required
|
|
129
|
+
* // id: "STRING_VALUE", // required
|
|
130
|
+
* // name: "STRING_VALUE",
|
|
131
|
+
* // },
|
|
132
|
+
* // updatedAt: "STRING_VALUE",
|
|
133
|
+
* // updatedBy: {
|
|
134
|
+
* // type: "user" || "api_key" || "service", // required
|
|
135
|
+
* // id: "STRING_VALUE", // required
|
|
136
|
+
* // name: "STRING_VALUE",
|
|
137
|
+
* // },
|
|
138
|
+
* // id: "STRING_VALUE", // required
|
|
139
|
+
* // revision: Number("int"), // required
|
|
140
|
+
* // executionsLast30Days: Number("int"),
|
|
141
|
+
* // },
|
|
142
|
+
* // };
|
|
143
|
+
*
|
|
144
|
+
* ```
|
|
145
|
+
*
|
|
146
|
+
* @param CreateAutomationCommandInput - {@link CreateAutomationCommandInput}
|
|
147
|
+
* @returns {@link CreateAutomationCommandOutput}
|
|
148
|
+
* @see {@link CreateAutomationCommandInput} for command's `input` shape.
|
|
149
|
+
* @see {@link CreateAutomationCommandOutput} for command's `response` shape.
|
|
150
|
+
* @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
|
|
151
|
+
*
|
|
152
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
153
|
+
*
|
|
154
|
+
* @throws {@link ValidationException} (client fault)
|
|
155
|
+
*
|
|
156
|
+
* @throws {@link AutomationNonUniqueNameException} (client fault)
|
|
157
|
+
*
|
|
158
|
+
* @throws {@link WilmaCopilotServiceException}
|
|
159
|
+
* <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
|
|
160
|
+
*
|
|
161
|
+
*
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
164
|
+
export declare class CreateAutomationCommand extends CreateAutomationCommand_base {
|
|
165
|
+
/** @internal type navigation helper, not in runtime. */
|
|
166
|
+
protected static __types: {
|
|
167
|
+
api: {
|
|
168
|
+
input: CreateAutomationInput;
|
|
169
|
+
output: CreateAutomationOutput;
|
|
170
|
+
};
|
|
171
|
+
sdk: {
|
|
172
|
+
input: CreateAutomationCommandInput;
|
|
173
|
+
output: CreateAutomationCommandOutput;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CreateEvaluationInput, CreateEvaluationOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WilmaCopilotClientResolvedConfig } from "../WilmaCopilotClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateEvaluationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateEvaluationCommandInput extends CreateEvaluationInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateEvaluationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateEvaluationCommandOutput extends CreateEvaluationOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateEvaluationCommand_base: {
|
|
25
|
+
new (input: CreateEvaluationCommandInput): import("@smithy/core/client").CommandImpl<CreateEvaluationCommandInput, CreateEvaluationCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateEvaluationCommandInput): import("@smithy/core/client").CommandImpl<CreateEvaluationCommandInput, CreateEvaluationCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new reusable evaluation.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaCopilotClient, CreateEvaluationCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaCopilotClient, CreateEvaluationCommand } = require("@wildix/wilma-copilot-client"); // CommonJS import
|
|
36
|
+
* // import type { WilmaCopilotClientConfig } from "@wildix/wilma-copilot-client";
|
|
37
|
+
* const config = {}; // type is WilmaCopilotClientConfig
|
|
38
|
+
* const client = new WilmaCopilotClient(config);
|
|
39
|
+
* const input = { // CreateEvaluationInput
|
|
40
|
+
* name: "STRING_VALUE", // required
|
|
41
|
+
* description: "STRING_VALUE",
|
|
42
|
+
* instructions: "STRING_VALUE", // required
|
|
43
|
+
* fields: [ // CopilotFieldsList
|
|
44
|
+
* { // CopilotField
|
|
45
|
+
* id: "STRING_VALUE", // required
|
|
46
|
+
* name: "STRING_VALUE", // required
|
|
47
|
+
* description: "STRING_VALUE",
|
|
48
|
+
* optional: true || false,
|
|
49
|
+
* parameter: { // CopilotFieldParameter Union: only one key present
|
|
50
|
+
* text: { // CopilotTextParameter
|
|
51
|
+
* examples: [ // StringList
|
|
52
|
+
* "STRING_VALUE",
|
|
53
|
+
* ],
|
|
54
|
+
* },
|
|
55
|
+
* multiline: { // CopilotMultilineParameter
|
|
56
|
+
* examples: [
|
|
57
|
+
* "STRING_VALUE",
|
|
58
|
+
* ],
|
|
59
|
+
* },
|
|
60
|
+
* number: { // CopilotNumberParameter
|
|
61
|
+
* min: Number("int"),
|
|
62
|
+
* max: Number("int"),
|
|
63
|
+
* },
|
|
64
|
+
* selection: { // CopilotSelectionParameter
|
|
65
|
+
* options: [ // required
|
|
66
|
+
* "STRING_VALUE",
|
|
67
|
+
* ],
|
|
68
|
+
* multi: true || false,
|
|
69
|
+
* adaptive: true || false,
|
|
70
|
+
* adaptiveOptions: [
|
|
71
|
+
* "STRING_VALUE",
|
|
72
|
+
* ],
|
|
73
|
+
* },
|
|
74
|
+
* },
|
|
75
|
+
* },
|
|
76
|
+
* ],
|
|
77
|
+
* triggers: { // EvaluationTriggers
|
|
78
|
+
* interval: { // EvaluationIntervalTrigger
|
|
79
|
+
* enabled: true || false, // required
|
|
80
|
+
* intervalSeconds: Number("int"),
|
|
81
|
+
* },
|
|
82
|
+
* customerEndSpeaking: true || false,
|
|
83
|
+
* agentEndSpeaking: true || false,
|
|
84
|
+
* immediatelyOncePerSession: true || false,
|
|
85
|
+
* },
|
|
86
|
+
* window: "new_transcript" || "new_with_prior" || "full_transcript", // required
|
|
87
|
+
* model: "STRING_VALUE",
|
|
88
|
+
* group: "STRING_VALUE",
|
|
89
|
+
* conditions: "DOCUMENT_VALUE",
|
|
90
|
+
* company: "STRING_VALUE",
|
|
91
|
+
* };
|
|
92
|
+
* const command = new CreateEvaluationCommand(input);
|
|
93
|
+
* const response = await client.send(command);
|
|
94
|
+
* // { // CreateEvaluationOutput
|
|
95
|
+
* // evaluation: { // Evaluation
|
|
96
|
+
* // name: "STRING_VALUE", // required
|
|
97
|
+
* // description: "STRING_VALUE",
|
|
98
|
+
* // instructions: "STRING_VALUE", // required
|
|
99
|
+
* // fields: [ // CopilotFieldsList
|
|
100
|
+
* // { // CopilotField
|
|
101
|
+
* // id: "STRING_VALUE", // required
|
|
102
|
+
* // name: "STRING_VALUE", // required
|
|
103
|
+
* // description: "STRING_VALUE",
|
|
104
|
+
* // optional: true || false,
|
|
105
|
+
* // parameter: { // CopilotFieldParameter Union: only one key present
|
|
106
|
+
* // text: { // CopilotTextParameter
|
|
107
|
+
* // examples: [ // StringList
|
|
108
|
+
* // "STRING_VALUE",
|
|
109
|
+
* // ],
|
|
110
|
+
* // },
|
|
111
|
+
* // multiline: { // CopilotMultilineParameter
|
|
112
|
+
* // examples: [
|
|
113
|
+
* // "STRING_VALUE",
|
|
114
|
+
* // ],
|
|
115
|
+
* // },
|
|
116
|
+
* // number: { // CopilotNumberParameter
|
|
117
|
+
* // min: Number("int"),
|
|
118
|
+
* // max: Number("int"),
|
|
119
|
+
* // },
|
|
120
|
+
* // selection: { // CopilotSelectionParameter
|
|
121
|
+
* // options: [ // required
|
|
122
|
+
* // "STRING_VALUE",
|
|
123
|
+
* // ],
|
|
124
|
+
* // multi: true || false,
|
|
125
|
+
* // adaptive: true || false,
|
|
126
|
+
* // adaptiveOptions: [
|
|
127
|
+
* // "STRING_VALUE",
|
|
128
|
+
* // ],
|
|
129
|
+
* // },
|
|
130
|
+
* // },
|
|
131
|
+
* // },
|
|
132
|
+
* // ],
|
|
133
|
+
* // triggers: { // EvaluationTriggers
|
|
134
|
+
* // interval: { // EvaluationIntervalTrigger
|
|
135
|
+
* // enabled: true || false, // required
|
|
136
|
+
* // intervalSeconds: Number("int"),
|
|
137
|
+
* // },
|
|
138
|
+
* // customerEndSpeaking: true || false,
|
|
139
|
+
* // agentEndSpeaking: true || false,
|
|
140
|
+
* // immediatelyOncePerSession: true || false,
|
|
141
|
+
* // },
|
|
142
|
+
* // window: "new_transcript" || "new_with_prior" || "full_transcript", // required
|
|
143
|
+
* // model: "STRING_VALUE",
|
|
144
|
+
* // group: "STRING_VALUE",
|
|
145
|
+
* // conditions: "DOCUMENT_VALUE",
|
|
146
|
+
* // createdAt: "STRING_VALUE", // required
|
|
147
|
+
* // createdBy: { // Actor
|
|
148
|
+
* // type: "user" || "api_key" || "service", // required
|
|
149
|
+
* // id: "STRING_VALUE", // required
|
|
150
|
+
* // name: "STRING_VALUE",
|
|
151
|
+
* // },
|
|
152
|
+
* // updatedAt: "STRING_VALUE",
|
|
153
|
+
* // updatedBy: {
|
|
154
|
+
* // type: "user" || "api_key" || "service", // required
|
|
155
|
+
* // id: "STRING_VALUE", // required
|
|
156
|
+
* // name: "STRING_VALUE",
|
|
157
|
+
* // },
|
|
158
|
+
* // id: "STRING_VALUE", // required
|
|
159
|
+
* // revision: Number("int"), // required
|
|
160
|
+
* // usageLast30Days: Number("int"),
|
|
161
|
+
* // },
|
|
162
|
+
* // };
|
|
163
|
+
*
|
|
164
|
+
* ```
|
|
165
|
+
*
|
|
166
|
+
* @param CreateEvaluationCommandInput - {@link CreateEvaluationCommandInput}
|
|
167
|
+
* @returns {@link CreateEvaluationCommandOutput}
|
|
168
|
+
* @see {@link CreateEvaluationCommandInput} for command's `input` shape.
|
|
169
|
+
* @see {@link CreateEvaluationCommandOutput} for command's `response` shape.
|
|
170
|
+
* @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
|
|
171
|
+
*
|
|
172
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
173
|
+
*
|
|
174
|
+
* @throws {@link ValidationException} (client fault)
|
|
175
|
+
*
|
|
176
|
+
* @throws {@link EvaluationNonUniqueNameException} (client fault)
|
|
177
|
+
*
|
|
178
|
+
* @throws {@link WilmaCopilotServiceException}
|
|
179
|
+
* <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
|
|
180
|
+
*
|
|
181
|
+
*
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
export declare class CreateEvaluationCommand extends CreateEvaluationCommand_base {
|
|
185
|
+
/** @internal type navigation helper, not in runtime. */
|
|
186
|
+
protected static __types: {
|
|
187
|
+
api: {
|
|
188
|
+
input: CreateEvaluationInput;
|
|
189
|
+
output: CreateEvaluationOutput;
|
|
190
|
+
};
|
|
191
|
+
sdk: {
|
|
192
|
+
input: CreateEvaluationCommandInput;
|
|
193
|
+
output: CreateEvaluationCommandOutput;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CreateIntentInput, CreateIntentOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, WilmaCopilotClientResolvedConfig } from "../WilmaCopilotClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateIntentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateIntentCommandInput extends CreateIntentInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateIntentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateIntentCommandOutput extends CreateIntentOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateIntentCommand_base: {
|
|
25
|
+
new (input: CreateIntentCommandInput): import("@smithy/core/client").CommandImpl<CreateIntentCommandInput, CreateIntentCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateIntentCommandInput): import("@smithy/core/client").CommandImpl<CreateIntentCommandInput, CreateIntentCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new reusable intent.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaCopilotClient, CreateIntentCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaCopilotClient, CreateIntentCommand } = require("@wildix/wilma-copilot-client"); // CommonJS import
|
|
36
|
+
* // import type { WilmaCopilotClientConfig } from "@wildix/wilma-copilot-client";
|
|
37
|
+
* const config = {}; // type is WilmaCopilotClientConfig
|
|
38
|
+
* const client = new WilmaCopilotClient(config);
|
|
39
|
+
* const input = { // CreateIntentInput
|
|
40
|
+
* name: "STRING_VALUE", // required
|
|
41
|
+
* description: "STRING_VALUE",
|
|
42
|
+
* handlers: { // IntentHandlers
|
|
43
|
+
* textMatch: { // IntentTextMatch
|
|
44
|
+
* enabled: true || false, // required
|
|
45
|
+
* options: [ // IntentTextMatchOptionsList
|
|
46
|
+
* { // IntentTextMatchOption
|
|
47
|
+
* id: "STRING_VALUE", // required
|
|
48
|
+
* value: "STRING_VALUE", // required
|
|
49
|
+
* mode: "exact" || "fuzzy" || "regex", // required
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* },
|
|
53
|
+
* aiMatch: { // IntentAiMatch
|
|
54
|
+
* enabled: true || false, // required
|
|
55
|
+
* instructions: "STRING_VALUE",
|
|
56
|
+
* fields: [ // CopilotFieldsList
|
|
57
|
+
* { // CopilotField
|
|
58
|
+
* id: "STRING_VALUE", // required
|
|
59
|
+
* name: "STRING_VALUE", // required
|
|
60
|
+
* description: "STRING_VALUE",
|
|
61
|
+
* optional: true || false,
|
|
62
|
+
* parameter: { // CopilotFieldParameter Union: only one key present
|
|
63
|
+
* text: { // CopilotTextParameter
|
|
64
|
+
* examples: [ // StringList
|
|
65
|
+
* "STRING_VALUE",
|
|
66
|
+
* ],
|
|
67
|
+
* },
|
|
68
|
+
* multiline: { // CopilotMultilineParameter
|
|
69
|
+
* examples: [
|
|
70
|
+
* "STRING_VALUE",
|
|
71
|
+
* ],
|
|
72
|
+
* },
|
|
73
|
+
* number: { // CopilotNumberParameter
|
|
74
|
+
* min: Number("int"),
|
|
75
|
+
* max: Number("int"),
|
|
76
|
+
* },
|
|
77
|
+
* selection: { // CopilotSelectionParameter
|
|
78
|
+
* options: [ // required
|
|
79
|
+
* "STRING_VALUE",
|
|
80
|
+
* ],
|
|
81
|
+
* multi: true || false,
|
|
82
|
+
* adaptive: true || false,
|
|
83
|
+
* adaptiveOptions: [
|
|
84
|
+
* "STRING_VALUE",
|
|
85
|
+
* ],
|
|
86
|
+
* },
|
|
87
|
+
* },
|
|
88
|
+
* },
|
|
89
|
+
* ],
|
|
90
|
+
* },
|
|
91
|
+
* },
|
|
92
|
+
* conditions: "DOCUMENT_VALUE",
|
|
93
|
+
* company: "STRING_VALUE",
|
|
94
|
+
* };
|
|
95
|
+
* const command = new CreateIntentCommand(input);
|
|
96
|
+
* const response = await client.send(command);
|
|
97
|
+
* // { // CreateIntentOutput
|
|
98
|
+
* // intent: { // Intent
|
|
99
|
+
* // name: "STRING_VALUE", // required
|
|
100
|
+
* // description: "STRING_VALUE",
|
|
101
|
+
* // handlers: { // IntentHandlers
|
|
102
|
+
* // textMatch: { // IntentTextMatch
|
|
103
|
+
* // enabled: true || false, // required
|
|
104
|
+
* // options: [ // IntentTextMatchOptionsList
|
|
105
|
+
* // { // IntentTextMatchOption
|
|
106
|
+
* // id: "STRING_VALUE", // required
|
|
107
|
+
* // value: "STRING_VALUE", // required
|
|
108
|
+
* // mode: "exact" || "fuzzy" || "regex", // required
|
|
109
|
+
* // },
|
|
110
|
+
* // ],
|
|
111
|
+
* // },
|
|
112
|
+
* // aiMatch: { // IntentAiMatch
|
|
113
|
+
* // enabled: true || false, // required
|
|
114
|
+
* // instructions: "STRING_VALUE",
|
|
115
|
+
* // fields: [ // CopilotFieldsList
|
|
116
|
+
* // { // CopilotField
|
|
117
|
+
* // id: "STRING_VALUE", // required
|
|
118
|
+
* // name: "STRING_VALUE", // required
|
|
119
|
+
* // description: "STRING_VALUE",
|
|
120
|
+
* // optional: true || false,
|
|
121
|
+
* // parameter: { // CopilotFieldParameter Union: only one key present
|
|
122
|
+
* // text: { // CopilotTextParameter
|
|
123
|
+
* // examples: [ // StringList
|
|
124
|
+
* // "STRING_VALUE",
|
|
125
|
+
* // ],
|
|
126
|
+
* // },
|
|
127
|
+
* // multiline: { // CopilotMultilineParameter
|
|
128
|
+
* // examples: [
|
|
129
|
+
* // "STRING_VALUE",
|
|
130
|
+
* // ],
|
|
131
|
+
* // },
|
|
132
|
+
* // number: { // CopilotNumberParameter
|
|
133
|
+
* // min: Number("int"),
|
|
134
|
+
* // max: Number("int"),
|
|
135
|
+
* // },
|
|
136
|
+
* // selection: { // CopilotSelectionParameter
|
|
137
|
+
* // options: [ // required
|
|
138
|
+
* // "STRING_VALUE",
|
|
139
|
+
* // ],
|
|
140
|
+
* // multi: true || false,
|
|
141
|
+
* // adaptive: true || false,
|
|
142
|
+
* // adaptiveOptions: [
|
|
143
|
+
* // "STRING_VALUE",
|
|
144
|
+
* // ],
|
|
145
|
+
* // },
|
|
146
|
+
* // },
|
|
147
|
+
* // },
|
|
148
|
+
* // ],
|
|
149
|
+
* // },
|
|
150
|
+
* // },
|
|
151
|
+
* // conditions: "DOCUMENT_VALUE",
|
|
152
|
+
* // createdAt: "STRING_VALUE", // required
|
|
153
|
+
* // createdBy: { // Actor
|
|
154
|
+
* // type: "user" || "api_key" || "service", // required
|
|
155
|
+
* // id: "STRING_VALUE", // required
|
|
156
|
+
* // name: "STRING_VALUE",
|
|
157
|
+
* // },
|
|
158
|
+
* // updatedAt: "STRING_VALUE",
|
|
159
|
+
* // updatedBy: {
|
|
160
|
+
* // type: "user" || "api_key" || "service", // required
|
|
161
|
+
* // id: "STRING_VALUE", // required
|
|
162
|
+
* // name: "STRING_VALUE",
|
|
163
|
+
* // },
|
|
164
|
+
* // id: "STRING_VALUE", // required
|
|
165
|
+
* // revision: Number("int"), // required
|
|
166
|
+
* // usageLast30Days: Number("int"),
|
|
167
|
+
* // },
|
|
168
|
+
* // };
|
|
169
|
+
*
|
|
170
|
+
* ```
|
|
171
|
+
*
|
|
172
|
+
* @param CreateIntentCommandInput - {@link CreateIntentCommandInput}
|
|
173
|
+
* @returns {@link CreateIntentCommandOutput}
|
|
174
|
+
* @see {@link CreateIntentCommandInput} for command's `input` shape.
|
|
175
|
+
* @see {@link CreateIntentCommandOutput} for command's `response` shape.
|
|
176
|
+
* @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
|
|
177
|
+
*
|
|
178
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
179
|
+
*
|
|
180
|
+
* @throws {@link ValidationException} (client fault)
|
|
181
|
+
*
|
|
182
|
+
* @throws {@link IntentNonUniqueNameException} (client fault)
|
|
183
|
+
*
|
|
184
|
+
* @throws {@link WilmaCopilotServiceException}
|
|
185
|
+
* <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
|
|
186
|
+
*
|
|
187
|
+
*
|
|
188
|
+
* @public
|
|
189
|
+
*/
|
|
190
|
+
export declare class CreateIntentCommand extends CreateIntentCommand_base {
|
|
191
|
+
/** @internal type navigation helper, not in runtime. */
|
|
192
|
+
protected static __types: {
|
|
193
|
+
api: {
|
|
194
|
+
input: CreateIntentInput;
|
|
195
|
+
output: CreateIntentOutput;
|
|
196
|
+
};
|
|
197
|
+
sdk: {
|
|
198
|
+
input: CreateIntentCommandInput;
|
|
199
|
+
output: CreateIntentCommandOutput;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
}
|