@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,150 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { GetIntentInput, GetIntentOutput } 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 GetIntentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetIntentCommandInput extends GetIntentInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetIntentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetIntentCommandOutput extends GetIntentOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetIntentCommand_base: {
|
|
25
|
+
new (input: GetIntentCommandInput): import("@smithy/core/client").CommandImpl<GetIntentCommandInput, GetIntentCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetIntentCommandInput): import("@smithy/core/client").CommandImpl<GetIntentCommandInput, GetIntentCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Gets an intent.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaCopilotClient, GetIntentCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaCopilotClient, GetIntentCommand } = 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 = { // GetIntentInput
|
|
40
|
+
* company: "STRING_VALUE",
|
|
41
|
+
* intentId: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new GetIntentCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // GetIntentOutput
|
|
46
|
+
* // intent: { // Intent
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // description: "STRING_VALUE",
|
|
49
|
+
* // handlers: { // IntentHandlers
|
|
50
|
+
* // textMatch: { // IntentTextMatch
|
|
51
|
+
* // enabled: true || false, // required
|
|
52
|
+
* // options: [ // IntentTextMatchOptionsList
|
|
53
|
+
* // { // IntentTextMatchOption
|
|
54
|
+
* // id: "STRING_VALUE", // required
|
|
55
|
+
* // value: "STRING_VALUE", // required
|
|
56
|
+
* // mode: "exact" || "fuzzy" || "regex", // required
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // },
|
|
60
|
+
* // aiMatch: { // IntentAiMatch
|
|
61
|
+
* // enabled: true || false, // required
|
|
62
|
+
* // instructions: "STRING_VALUE",
|
|
63
|
+
* // fields: [ // CopilotFieldsList
|
|
64
|
+
* // { // CopilotField
|
|
65
|
+
* // id: "STRING_VALUE", // required
|
|
66
|
+
* // name: "STRING_VALUE", // required
|
|
67
|
+
* // description: "STRING_VALUE",
|
|
68
|
+
* // optional: true || false,
|
|
69
|
+
* // parameter: { // CopilotFieldParameter Union: only one key present
|
|
70
|
+
* // text: { // CopilotTextParameter
|
|
71
|
+
* // examples: [ // StringList
|
|
72
|
+
* // "STRING_VALUE",
|
|
73
|
+
* // ],
|
|
74
|
+
* // },
|
|
75
|
+
* // multiline: { // CopilotMultilineParameter
|
|
76
|
+
* // examples: [
|
|
77
|
+
* // "STRING_VALUE",
|
|
78
|
+
* // ],
|
|
79
|
+
* // },
|
|
80
|
+
* // number: { // CopilotNumberParameter
|
|
81
|
+
* // min: Number("int"),
|
|
82
|
+
* // max: Number("int"),
|
|
83
|
+
* // },
|
|
84
|
+
* // selection: { // CopilotSelectionParameter
|
|
85
|
+
* // options: [ // required
|
|
86
|
+
* // "STRING_VALUE",
|
|
87
|
+
* // ],
|
|
88
|
+
* // multi: true || false,
|
|
89
|
+
* // adaptive: true || false,
|
|
90
|
+
* // adaptiveOptions: [
|
|
91
|
+
* // "STRING_VALUE",
|
|
92
|
+
* // ],
|
|
93
|
+
* // },
|
|
94
|
+
* // },
|
|
95
|
+
* // },
|
|
96
|
+
* // ],
|
|
97
|
+
* // },
|
|
98
|
+
* // },
|
|
99
|
+
* // conditions: "DOCUMENT_VALUE",
|
|
100
|
+
* // createdAt: "STRING_VALUE", // required
|
|
101
|
+
* // createdBy: { // Actor
|
|
102
|
+
* // type: "user" || "api_key" || "service", // required
|
|
103
|
+
* // id: "STRING_VALUE", // required
|
|
104
|
+
* // name: "STRING_VALUE",
|
|
105
|
+
* // },
|
|
106
|
+
* // updatedAt: "STRING_VALUE",
|
|
107
|
+
* // updatedBy: {
|
|
108
|
+
* // type: "user" || "api_key" || "service", // required
|
|
109
|
+
* // id: "STRING_VALUE", // required
|
|
110
|
+
* // name: "STRING_VALUE",
|
|
111
|
+
* // },
|
|
112
|
+
* // id: "STRING_VALUE", // required
|
|
113
|
+
* // revision: Number("int"), // required
|
|
114
|
+
* // usageLast30Days: Number("int"),
|
|
115
|
+
* // },
|
|
116
|
+
* // };
|
|
117
|
+
*
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* @param GetIntentCommandInput - {@link GetIntentCommandInput}
|
|
121
|
+
* @returns {@link GetIntentCommandOutput}
|
|
122
|
+
* @see {@link GetIntentCommandInput} for command's `input` shape.
|
|
123
|
+
* @see {@link GetIntentCommandOutput} for command's `response` shape.
|
|
124
|
+
* @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link IntentNotFoundException} (client fault)
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link ValidationException} (client fault)
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link WilmaCopilotServiceException}
|
|
133
|
+
* <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
|
|
134
|
+
*
|
|
135
|
+
*
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
export declare class GetIntentCommand extends GetIntentCommand_base {
|
|
139
|
+
/** @internal type navigation helper, not in runtime. */
|
|
140
|
+
protected static __types: {
|
|
141
|
+
api: {
|
|
142
|
+
input: GetIntentInput;
|
|
143
|
+
output: GetIntentOutput;
|
|
144
|
+
};
|
|
145
|
+
sdk: {
|
|
146
|
+
input: GetIntentCommandInput;
|
|
147
|
+
output: GetIntentCommandOutput;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { GetProfileInput, GetProfileOutput } 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 GetProfileCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetProfileCommandInput extends GetProfileInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetProfileCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetProfileCommandOutput extends GetProfileOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetProfileCommand_base: {
|
|
25
|
+
new (input: GetProfileCommandInput): import("@smithy/core/client").CommandImpl<GetProfileCommandInput, GetProfileCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetProfileCommandInput): import("@smithy/core/client").CommandImpl<GetProfileCommandInput, GetProfileCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Gets a profile draft, including metadata, referenced library resource ids and version state.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaCopilotClient, GetProfileCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaCopilotClient, GetProfileCommand } = 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 = { // GetProfileInput
|
|
40
|
+
* company: "STRING_VALUE",
|
|
41
|
+
* profileId: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new GetProfileCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // GetProfileOutput
|
|
46
|
+
* // profile: { // Profile
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // description: "STRING_VALUE",
|
|
49
|
+
* // channel: "calls" || "chats" || "any", // required
|
|
50
|
+
* // conditions: "DOCUMENT_VALUE",
|
|
51
|
+
* // access: { // CopilotAccess
|
|
52
|
+
* // visibility: "explicit" || "organization",
|
|
53
|
+
* // grants: [ // CopilotGrantPrincipalList
|
|
54
|
+
* // { // CopilotGrantPrincipal Union: only one key present
|
|
55
|
+
* // userId: "STRING_VALUE",
|
|
56
|
+
* // groupId: "STRING_VALUE",
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // },
|
|
60
|
+
* // features: [ // CopilotFeaturesList
|
|
61
|
+
* // { // CopilotFeature Union: only one key present
|
|
62
|
+
* // csat: {},
|
|
63
|
+
* // sentiment: {},
|
|
64
|
+
* // talkRatio: {},
|
|
65
|
+
* // topics: {},
|
|
66
|
+
* // contextualKnowledgeAnswers: { // ContextualKnowledgeAnswersFeatureConfiguration
|
|
67
|
+
* // source: "knowledge_bases" || "agent", // required
|
|
68
|
+
* // knowledgeBaseIds: [ // KnowledgeBaseIdList
|
|
69
|
+
* // "STRING_VALUE",
|
|
70
|
+
* // ],
|
|
71
|
+
* // agentId: "STRING_VALUE",
|
|
72
|
+
* // mode: "suggest_action" || "automatic_answer", // required
|
|
73
|
+
* // },
|
|
74
|
+
* // },
|
|
75
|
+
* // ],
|
|
76
|
+
* // assets: [ // AssetIdList
|
|
77
|
+
* // "STRING_VALUE",
|
|
78
|
+
* // ],
|
|
79
|
+
* // intents: [ // IntentIdList
|
|
80
|
+
* // "STRING_VALUE",
|
|
81
|
+
* // ],
|
|
82
|
+
* // evaluations: [ // EvaluationIdList
|
|
83
|
+
* // "STRING_VALUE",
|
|
84
|
+
* // ],
|
|
85
|
+
* // automations: [ // AutomationIdList
|
|
86
|
+
* // "STRING_VALUE",
|
|
87
|
+
* // ],
|
|
88
|
+
* // createdAt: "STRING_VALUE", // required
|
|
89
|
+
* // createdBy: { // Actor
|
|
90
|
+
* // type: "user" || "api_key" || "service", // required
|
|
91
|
+
* // id: "STRING_VALUE", // required
|
|
92
|
+
* // name: "STRING_VALUE",
|
|
93
|
+
* // },
|
|
94
|
+
* // updatedAt: "STRING_VALUE",
|
|
95
|
+
* // updatedBy: {
|
|
96
|
+
* // type: "user" || "api_key" || "service", // required
|
|
97
|
+
* // id: "STRING_VALUE", // required
|
|
98
|
+
* // name: "STRING_VALUE",
|
|
99
|
+
* // },
|
|
100
|
+
* // id: "STRING_VALUE", // required
|
|
101
|
+
* // status: "draft" || "active", // required
|
|
102
|
+
* // revision: Number("int"), // required
|
|
103
|
+
* // latestVersion: Number("int"),
|
|
104
|
+
* // draftBaseVersion: Number("int"),
|
|
105
|
+
* // live: true || false, // required
|
|
106
|
+
* // },
|
|
107
|
+
* // };
|
|
108
|
+
*
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* @param GetProfileCommandInput - {@link GetProfileCommandInput}
|
|
112
|
+
* @returns {@link GetProfileCommandOutput}
|
|
113
|
+
* @see {@link GetProfileCommandInput} for command's `input` shape.
|
|
114
|
+
* @see {@link GetProfileCommandOutput} for command's `response` shape.
|
|
115
|
+
* @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
|
|
116
|
+
*
|
|
117
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link ProfileNotFoundException} (client fault)
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link ValidationException} (client fault)
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link WilmaCopilotServiceException}
|
|
124
|
+
* <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
|
|
125
|
+
*
|
|
126
|
+
*
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
export declare class GetProfileCommand extends GetProfileCommand_base {
|
|
130
|
+
/** @internal type navigation helper, not in runtime. */
|
|
131
|
+
protected static __types: {
|
|
132
|
+
api: {
|
|
133
|
+
input: GetProfileInput;
|
|
134
|
+
output: GetProfileOutput;
|
|
135
|
+
};
|
|
136
|
+
sdk: {
|
|
137
|
+
input: GetProfileCommandInput;
|
|
138
|
+
output: GetProfileCommandOutput;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
}
|
|
@@ -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 { GetProfileVersionInput, GetProfileVersionOutput } 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 GetProfileVersionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetProfileVersionCommandInput extends GetProfileVersionInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetProfileVersionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetProfileVersionCommandOutput extends GetProfileVersionOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetProfileVersionCommand_base: {
|
|
25
|
+
new (input: GetProfileVersionCommandInput): import("@smithy/core/client").CommandImpl<GetProfileVersionCommandInput, GetProfileVersionCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetProfileVersionCommandInput): import("@smithy/core/client").CommandImpl<GetProfileVersionCommandInput, GetProfileVersionCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves a published profile version, including its full immutable definition snapshot with resolved library resources.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaCopilotClient, GetProfileVersionCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaCopilotClient, GetProfileVersionCommand } = 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 = { // GetProfileVersionInput
|
|
40
|
+
* company: "STRING_VALUE",
|
|
41
|
+
* profileId: "STRING_VALUE", // required
|
|
42
|
+
* version: Number("int"), // required
|
|
43
|
+
* };
|
|
44
|
+
* const command = new GetProfileVersionCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // GetProfileVersionOutput
|
|
47
|
+
* // version: Number("int"), // required
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param GetProfileVersionCommandInput - {@link GetProfileVersionCommandInput}
|
|
53
|
+
* @returns {@link GetProfileVersionCommandOutput}
|
|
54
|
+
* @see {@link GetProfileVersionCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link GetProfileVersionCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ProfileNotFoundException} (client fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ProfileVersionNotFoundException} (client fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ValidationException} (client fault)
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link WilmaCopilotServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
|
|
66
|
+
*
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
export declare class GetProfileVersionCommand extends GetProfileVersionCommand_base {
|
|
71
|
+
/** @internal type navigation helper, not in runtime. */
|
|
72
|
+
protected static __types: {
|
|
73
|
+
api: {
|
|
74
|
+
input: GetProfileVersionInput;
|
|
75
|
+
output: GetProfileVersionOutput;
|
|
76
|
+
};
|
|
77
|
+
sdk: {
|
|
78
|
+
input: GetProfileVersionCommandInput;
|
|
79
|
+
output: GetProfileVersionCommandOutput;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { ListAssetsInput, ListAssetsOutput } 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 ListAssetsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAssetsCommandInput extends ListAssetsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAssetsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAssetsCommandOutput extends ListAssetsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListAssetsCommand_base: {
|
|
25
|
+
new (input: ListAssetsCommandInput): import("@smithy/core/client").CommandImpl<ListAssetsCommandInput, ListAssetsCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListAssetsCommandInput]): import("@smithy/core/client").CommandImpl<ListAssetsCommandInput, ListAssetsCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Lists reusable assets in the company.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaCopilotClient, ListAssetsCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaCopilotClient, ListAssetsCommand } = 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 = { // ListAssetsInput
|
|
40
|
+
* company: "STRING_VALUE",
|
|
41
|
+
* contentType: "card" || "playbook" || "smart_action" || "knowledge",
|
|
42
|
+
* type: "guidance" || "next_best_action" || "battle_card" || "playbook" || "knowledge",
|
|
43
|
+
* enabled: true || false,
|
|
44
|
+
* search: "STRING_VALUE",
|
|
45
|
+
* limit: Number("int"),
|
|
46
|
+
* cursor: "STRING_VALUE",
|
|
47
|
+
* };
|
|
48
|
+
* const command = new ListAssetsCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // ListAssetsOutput
|
|
51
|
+
* // assets: [ // AssetInfoList // required
|
|
52
|
+
* // { // AssetInfo
|
|
53
|
+
* // createdAt: "STRING_VALUE", // required
|
|
54
|
+
* // createdBy: { // Actor
|
|
55
|
+
* // type: "user" || "api_key" || "service", // required
|
|
56
|
+
* // id: "STRING_VALUE", // required
|
|
57
|
+
* // name: "STRING_VALUE",
|
|
58
|
+
* // },
|
|
59
|
+
* // updatedAt: "STRING_VALUE",
|
|
60
|
+
* // updatedBy: {
|
|
61
|
+
* // type: "user" || "api_key" || "service", // required
|
|
62
|
+
* // id: "STRING_VALUE", // required
|
|
63
|
+
* // name: "STRING_VALUE",
|
|
64
|
+
* // },
|
|
65
|
+
* // id: "STRING_VALUE", // required
|
|
66
|
+
* // name: "STRING_VALUE", // required
|
|
67
|
+
* // description: "STRING_VALUE",
|
|
68
|
+
* // enabled: true || false, // required
|
|
69
|
+
* // type: "guidance" || "next_best_action" || "battle_card" || "playbook" || "knowledge",
|
|
70
|
+
* // contentType: "card" || "playbook" || "smart_action" || "knowledge", // required
|
|
71
|
+
* // usageLast30Days: Number("int"),
|
|
72
|
+
* // },
|
|
73
|
+
* // ],
|
|
74
|
+
* // nextCursor: "STRING_VALUE",
|
|
75
|
+
* // };
|
|
76
|
+
*
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @param ListAssetsCommandInput - {@link ListAssetsCommandInput}
|
|
80
|
+
* @returns {@link ListAssetsCommandOutput}
|
|
81
|
+
* @see {@link ListAssetsCommandInput} for command's `input` shape.
|
|
82
|
+
* @see {@link ListAssetsCommandOutput} for command's `response` shape.
|
|
83
|
+
* @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ValidationException} (client fault)
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link WilmaCopilotServiceException}
|
|
90
|
+
* <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
|
|
91
|
+
*
|
|
92
|
+
*
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export declare class ListAssetsCommand extends ListAssetsCommand_base {
|
|
96
|
+
/** @internal type navigation helper, not in runtime. */
|
|
97
|
+
protected static __types: {
|
|
98
|
+
api: {
|
|
99
|
+
input: ListAssetsInput;
|
|
100
|
+
output: ListAssetsOutput;
|
|
101
|
+
};
|
|
102
|
+
sdk: {
|
|
103
|
+
input: ListAssetsCommandInput;
|
|
104
|
+
output: ListAssetsCommandOutput;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { ListAutomationsInput, ListAutomationsOutput } 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 ListAutomationsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAutomationsCommandInput extends ListAutomationsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAutomationsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAutomationsCommandOutput extends ListAutomationsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListAutomationsCommand_base: {
|
|
25
|
+
new (input: ListAutomationsCommandInput): import("@smithy/core/client").CommandImpl<ListAutomationsCommandInput, ListAutomationsCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListAutomationsCommandInput]): import("@smithy/core/client").CommandImpl<ListAutomationsCommandInput, ListAutomationsCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Lists reusable automations in the company.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaCopilotClient, ListAutomationsCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaCopilotClient, ListAutomationsCommand } = 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 = { // ListAutomationsInput
|
|
40
|
+
* company: "STRING_VALUE",
|
|
41
|
+
* handlerType: "agent" || "tool" || "knowledge_base",
|
|
42
|
+
* search: "STRING_VALUE",
|
|
43
|
+
* limit: Number("int"),
|
|
44
|
+
* cursor: "STRING_VALUE",
|
|
45
|
+
* };
|
|
46
|
+
* const command = new ListAutomationsCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // ListAutomationsOutput
|
|
49
|
+
* // automations: [ // AutomationInfoList // required
|
|
50
|
+
* // { // AutomationInfo
|
|
51
|
+
* // createdAt: "STRING_VALUE", // required
|
|
52
|
+
* // createdBy: { // Actor
|
|
53
|
+
* // type: "user" || "api_key" || "service", // required
|
|
54
|
+
* // id: "STRING_VALUE", // required
|
|
55
|
+
* // name: "STRING_VALUE",
|
|
56
|
+
* // },
|
|
57
|
+
* // updatedAt: "STRING_VALUE",
|
|
58
|
+
* // updatedBy: {
|
|
59
|
+
* // type: "user" || "api_key" || "service", // required
|
|
60
|
+
* // id: "STRING_VALUE", // required
|
|
61
|
+
* // name: "STRING_VALUE",
|
|
62
|
+
* // },
|
|
63
|
+
* // id: "STRING_VALUE", // required
|
|
64
|
+
* // name: "STRING_VALUE", // required
|
|
65
|
+
* // description: "STRING_VALUE",
|
|
66
|
+
* // handlerType: "agent" || "tool" || "knowledge_base", // required
|
|
67
|
+
* // executionsLast30Days: Number("int"),
|
|
68
|
+
* // },
|
|
69
|
+
* // ],
|
|
70
|
+
* // nextCursor: "STRING_VALUE",
|
|
71
|
+
* // };
|
|
72
|
+
*
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @param ListAutomationsCommandInput - {@link ListAutomationsCommandInput}
|
|
76
|
+
* @returns {@link ListAutomationsCommandOutput}
|
|
77
|
+
* @see {@link ListAutomationsCommandInput} for command's `input` shape.
|
|
78
|
+
* @see {@link ListAutomationsCommandOutput} for command's `response` shape.
|
|
79
|
+
* @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ValidationException} (client fault)
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link WilmaCopilotServiceException}
|
|
86
|
+
* <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export declare class ListAutomationsCommand extends ListAutomationsCommand_base {
|
|
92
|
+
/** @internal type navigation helper, not in runtime. */
|
|
93
|
+
protected static __types: {
|
|
94
|
+
api: {
|
|
95
|
+
input: ListAutomationsInput;
|
|
96
|
+
output: ListAutomationsOutput;
|
|
97
|
+
};
|
|
98
|
+
sdk: {
|
|
99
|
+
input: ListAutomationsCommandInput;
|
|
100
|
+
output: ListAutomationsCommandOutput;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}
|