@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.
Files changed (157) hide show
  1. package/dist-cjs/WilmaCopilot.js +75 -0
  2. package/dist-cjs/WilmaCopilotClient.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/AttachProfileResourceCommand.js +20 -0
  6. package/dist-cjs/commands/CompareProfileVersionsCommand.js +20 -0
  7. package/dist-cjs/commands/CreateAssetCommand.js +20 -0
  8. package/dist-cjs/commands/CreateAutomationCommand.js +20 -0
  9. package/dist-cjs/commands/CreateEvaluationCommand.js +20 -0
  10. package/dist-cjs/commands/CreateIntentCommand.js +20 -0
  11. package/dist-cjs/commands/CreateProfileCommand.js +20 -0
  12. package/dist-cjs/commands/DeleteAssetCommand.js +20 -0
  13. package/dist-cjs/commands/DeleteAutomationCommand.js +20 -0
  14. package/dist-cjs/commands/DeleteEvaluationCommand.js +20 -0
  15. package/dist-cjs/commands/DeleteIntentCommand.js +20 -0
  16. package/dist-cjs/commands/DeleteProfileCommand.js +20 -0
  17. package/dist-cjs/commands/DeleteProfileResourceCommand.js +20 -0
  18. package/dist-cjs/commands/GetAssetCommand.js +20 -0
  19. package/dist-cjs/commands/GetAutomationCommand.js +20 -0
  20. package/dist-cjs/commands/GetEvaluationCommand.js +20 -0
  21. package/dist-cjs/commands/GetIntentCommand.js +20 -0
  22. package/dist-cjs/commands/GetProfileCommand.js +20 -0
  23. package/dist-cjs/commands/GetProfileVersionCommand.js +20 -0
  24. package/dist-cjs/commands/ListAssetsCommand.js +20 -0
  25. package/dist-cjs/commands/ListAutomationsCommand.js +20 -0
  26. package/dist-cjs/commands/ListEvaluationsCommand.js +20 -0
  27. package/dist-cjs/commands/ListIntentsCommand.js +20 -0
  28. package/dist-cjs/commands/ListProfileVersionsCommand.js +20 -0
  29. package/dist-cjs/commands/ListProfilesCommand.js +20 -0
  30. package/dist-cjs/commands/PublishProfileVersionCommand.js +20 -0
  31. package/dist-cjs/commands/RestoreProfileVersionToDraftCommand.js +20 -0
  32. package/dist-cjs/commands/UpdateAssetCommand.js +20 -0
  33. package/dist-cjs/commands/UpdateAutomationCommand.js +20 -0
  34. package/dist-cjs/commands/UpdateEvaluationCommand.js +20 -0
  35. package/dist-cjs/commands/UpdateIntentCommand.js +20 -0
  36. package/dist-cjs/commands/UpdateProfileCommand.js +20 -0
  37. package/dist-cjs/commands/index.js +35 -0
  38. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  39. package/dist-cjs/endpoint/bdd.js +28 -0
  40. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  41. package/dist-cjs/extensionConfiguration.js +2 -0
  42. package/dist-cjs/index.js +13 -0
  43. package/dist-cjs/models/WilmaCopilotServiceException.js +12 -0
  44. package/dist-cjs/models/enums.js +95 -0
  45. package/dist-cjs/models/errors.js +287 -0
  46. package/dist-cjs/models/models_0.js +2 -0
  47. package/dist-cjs/runtimeConfig.browser.js +32 -0
  48. package/dist-cjs/runtimeConfig.js +41 -0
  49. package/dist-cjs/runtimeConfig.native.js +15 -0
  50. package/dist-cjs/runtimeConfig.shared.js +41 -0
  51. package/dist-cjs/runtimeExtensions.js +12 -0
  52. package/dist-cjs/schemas/schemas_0.js +1249 -0
  53. package/dist-es/WilmaCopilot.js +71 -0
  54. package/dist-es/WilmaCopilotClient.js +45 -0
  55. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  56. package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
  57. package/dist-es/commands/AttachProfileResourceCommand.js +16 -0
  58. package/dist-es/commands/CompareProfileVersionsCommand.js +16 -0
  59. package/dist-es/commands/CreateAssetCommand.js +16 -0
  60. package/dist-es/commands/CreateAutomationCommand.js +16 -0
  61. package/dist-es/commands/CreateEvaluationCommand.js +16 -0
  62. package/dist-es/commands/CreateIntentCommand.js +16 -0
  63. package/dist-es/commands/CreateProfileCommand.js +16 -0
  64. package/dist-es/commands/DeleteAssetCommand.js +16 -0
  65. package/dist-es/commands/DeleteAutomationCommand.js +16 -0
  66. package/dist-es/commands/DeleteEvaluationCommand.js +16 -0
  67. package/dist-es/commands/DeleteIntentCommand.js +16 -0
  68. package/dist-es/commands/DeleteProfileCommand.js +16 -0
  69. package/dist-es/commands/DeleteProfileResourceCommand.js +16 -0
  70. package/dist-es/commands/GetAssetCommand.js +16 -0
  71. package/dist-es/commands/GetAutomationCommand.js +16 -0
  72. package/dist-es/commands/GetEvaluationCommand.js +16 -0
  73. package/dist-es/commands/GetIntentCommand.js +16 -0
  74. package/dist-es/commands/GetProfileCommand.js +16 -0
  75. package/dist-es/commands/GetProfileVersionCommand.js +16 -0
  76. package/dist-es/commands/ListAssetsCommand.js +16 -0
  77. package/dist-es/commands/ListAutomationsCommand.js +16 -0
  78. package/dist-es/commands/ListEvaluationsCommand.js +16 -0
  79. package/dist-es/commands/ListIntentsCommand.js +16 -0
  80. package/dist-es/commands/ListProfileVersionsCommand.js +16 -0
  81. package/dist-es/commands/ListProfilesCommand.js +16 -0
  82. package/dist-es/commands/PublishProfileVersionCommand.js +16 -0
  83. package/dist-es/commands/RestoreProfileVersionToDraftCommand.js +16 -0
  84. package/dist-es/commands/UpdateAssetCommand.js +16 -0
  85. package/dist-es/commands/UpdateAutomationCommand.js +16 -0
  86. package/dist-es/commands/UpdateEvaluationCommand.js +16 -0
  87. package/dist-es/commands/UpdateIntentCommand.js +16 -0
  88. package/dist-es/commands/UpdateProfileCommand.js +16 -0
  89. package/dist-es/commands/index.js +32 -0
  90. package/dist-es/endpoint/EndpointParameters.js +12 -0
  91. package/dist-es/endpoint/bdd.js +25 -0
  92. package/dist-es/endpoint/endpointResolver.js +12 -0
  93. package/dist-es/extensionConfiguration.js +1 -0
  94. package/dist-es/index.js +8 -0
  95. package/dist-es/models/WilmaCopilotServiceException.js +8 -0
  96. package/dist-es/models/enums.js +92 -0
  97. package/dist-es/models/errors.js +265 -0
  98. package/dist-es/models/models_0.js +1 -0
  99. package/dist-es/runtimeConfig.browser.js +27 -0
  100. package/dist-es/runtimeConfig.js +36 -0
  101. package/dist-es/runtimeConfig.native.js +11 -0
  102. package/dist-es/runtimeConfig.shared.js +37 -0
  103. package/dist-es/runtimeExtensions.js +8 -0
  104. package/dist-es/schemas/schemas_0.js +1243 -0
  105. package/dist-types/WilmaCopilot.d.ts +254 -0
  106. package/dist-types/WilmaCopilotClient.d.ts +209 -0
  107. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  108. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  109. package/dist-types/commands/AttachProfileResourceCommand.d.ts +165 -0
  110. package/dist-types/commands/CompareProfileVersionsCommand.d.ts +91 -0
  111. package/dist-types/commands/CreateAssetCommand.d.ts +328 -0
  112. package/dist-types/commands/CreateAutomationCommand.d.ts +176 -0
  113. package/dist-types/commands/CreateEvaluationCommand.d.ts +196 -0
  114. package/dist-types/commands/CreateIntentCommand.d.ts +202 -0
  115. package/dist-types/commands/CreateProfileCommand.d.ts +181 -0
  116. package/dist-types/commands/DeleteAssetCommand.d.ts +83 -0
  117. package/dist-types/commands/DeleteAutomationCommand.d.ts +83 -0
  118. package/dist-types/commands/DeleteEvaluationCommand.d.ts +83 -0
  119. package/dist-types/commands/DeleteIntentCommand.d.ts +83 -0
  120. package/dist-types/commands/DeleteProfileCommand.d.ts +79 -0
  121. package/dist-types/commands/DeleteProfileResourceCommand.d.ts +147 -0
  122. package/dist-types/commands/GetAssetCommand.d.ts +213 -0
  123. package/dist-types/commands/GetAutomationCommand.d.ts +137 -0
  124. package/dist-types/commands/GetEvaluationCommand.d.ts +147 -0
  125. package/dist-types/commands/GetIntentCommand.d.ts +150 -0
  126. package/dist-types/commands/GetProfileCommand.d.ts +141 -0
  127. package/dist-types/commands/GetProfileVersionCommand.d.ts +82 -0
  128. package/dist-types/commands/ListAssetsCommand.d.ts +107 -0
  129. package/dist-types/commands/ListAutomationsCommand.d.ts +103 -0
  130. package/dist-types/commands/ListEvaluationsCommand.d.ts +104 -0
  131. package/dist-types/commands/ListIntentsCommand.d.ts +103 -0
  132. package/dist-types/commands/ListProfileVersionsCommand.d.ts +95 -0
  133. package/dist-types/commands/ListProfilesCommand.d.ts +110 -0
  134. package/dist-types/commands/PublishProfileVersionCommand.d.ts +87 -0
  135. package/dist-types/commands/RestoreProfileVersionToDraftCommand.d.ts +146 -0
  136. package/dist-types/commands/UpdateAssetCommand.d.ts +335 -0
  137. package/dist-types/commands/UpdateAutomationCommand.d.ts +183 -0
  138. package/dist-types/commands/UpdateEvaluationCommand.d.ts +203 -0
  139. package/dist-types/commands/UpdateIntentCommand.d.ts +209 -0
  140. package/dist-types/commands/UpdateProfileCommand.d.ts +160 -0
  141. package/dist-types/commands/index.d.ts +32 -0
  142. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  143. package/dist-types/endpoint/bdd.d.ts +2 -0
  144. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  145. package/dist-types/extensionConfiguration.d.ts +8 -0
  146. package/dist-types/index.d.ts +31 -0
  147. package/dist-types/models/WilmaCopilotServiceException.d.ts +14 -0
  148. package/dist-types/models/enums.d.ts +287 -0
  149. package/dist-types/models/errors.d.ts +239 -0
  150. package/dist-types/models/models_0.d.ts +2808 -0
  151. package/dist-types/runtimeConfig.browser.d.ts +55 -0
  152. package/dist-types/runtimeConfig.d.ts +55 -0
  153. package/dist-types/runtimeConfig.native.d.ts +54 -0
  154. package/dist-types/runtimeConfig.shared.d.ts +32 -0
  155. package/dist-types/runtimeExtensions.d.ts +17 -0
  156. package/dist-types/schemas/schemas_0.d.ts +182 -0
  157. package/package.json +57 -0
@@ -0,0 +1,165 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { AttachProfileResourceInput, AttachProfileResourceOutput } 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 AttachProfileResourceCommand}.
14
+ */
15
+ export interface AttachProfileResourceCommandInput extends AttachProfileResourceInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link AttachProfileResourceCommand}.
21
+ */
22
+ export interface AttachProfileResourceCommandOutput extends AttachProfileResourceOutput, __MetadataBearer {
23
+ }
24
+ declare const AttachProfileResourceCommand_base: {
25
+ new (input: AttachProfileResourceCommandInput): import("@smithy/core/client").CommandImpl<AttachProfileResourceCommandInput, AttachProfileResourceCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: AttachProfileResourceCommandInput): import("@smithy/core/client").CommandImpl<AttachProfileResourceCommandInput, AttachProfileResourceCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Attaches one feature or reusable library resource to the profile draft. Attaching an already attached resource is idempotent; an existing feature of the same type is updated with the supplied configuration. Does not affect live conversations until the draft is published.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaCopilotClient, AttachProfileResourceCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
35
+ * // const { WilmaCopilotClient, AttachProfileResourceCommand } = 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 = { // AttachProfileResourceInput
40
+ * company: "STRING_VALUE",
41
+ * profileId: "STRING_VALUE", // required
42
+ * revision: Number("int"), // required
43
+ * resource: { // ProfileResource Union: only one key present
44
+ * feature: { // CopilotFeature Union: only one key present
45
+ * csat: {},
46
+ * sentiment: {},
47
+ * talkRatio: {},
48
+ * topics: {},
49
+ * contextualKnowledgeAnswers: { // ContextualKnowledgeAnswersFeatureConfiguration
50
+ * source: "knowledge_bases" || "agent", // required
51
+ * knowledgeBaseIds: [ // KnowledgeBaseIdList
52
+ * "STRING_VALUE",
53
+ * ],
54
+ * agentId: "STRING_VALUE",
55
+ * mode: "suggest_action" || "automatic_answer", // required
56
+ * },
57
+ * },
58
+ * asset: "STRING_VALUE",
59
+ * automation: "STRING_VALUE",
60
+ * intent: "STRING_VALUE",
61
+ * evaluation: "STRING_VALUE",
62
+ * },
63
+ * };
64
+ * const command = new AttachProfileResourceCommand(input);
65
+ * const response = await client.send(command);
66
+ * // { // AttachProfileResourceOutput
67
+ * // profile: { // Profile
68
+ * // name: "STRING_VALUE", // required
69
+ * // description: "STRING_VALUE",
70
+ * // channel: "calls" || "chats" || "any", // required
71
+ * // conditions: "DOCUMENT_VALUE",
72
+ * // access: { // CopilotAccess
73
+ * // visibility: "explicit" || "organization",
74
+ * // grants: [ // CopilotGrantPrincipalList
75
+ * // { // CopilotGrantPrincipal Union: only one key present
76
+ * // userId: "STRING_VALUE",
77
+ * // groupId: "STRING_VALUE",
78
+ * // },
79
+ * // ],
80
+ * // },
81
+ * // features: [ // CopilotFeaturesList
82
+ * // { // CopilotFeature Union: only one key present
83
+ * // csat: {},
84
+ * // sentiment: {},
85
+ * // talkRatio: {},
86
+ * // topics: {},
87
+ * // contextualKnowledgeAnswers: { // ContextualKnowledgeAnswersFeatureConfiguration
88
+ * // source: "knowledge_bases" || "agent", // required
89
+ * // knowledgeBaseIds: [ // KnowledgeBaseIdList
90
+ * // "STRING_VALUE",
91
+ * // ],
92
+ * // agentId: "STRING_VALUE",
93
+ * // mode: "suggest_action" || "automatic_answer", // required
94
+ * // },
95
+ * // },
96
+ * // ],
97
+ * // assets: [ // AssetIdList
98
+ * // "STRING_VALUE",
99
+ * // ],
100
+ * // intents: [ // IntentIdList
101
+ * // "STRING_VALUE",
102
+ * // ],
103
+ * // evaluations: [ // EvaluationIdList
104
+ * // "STRING_VALUE",
105
+ * // ],
106
+ * // automations: [ // AutomationIdList
107
+ * // "STRING_VALUE",
108
+ * // ],
109
+ * // createdAt: "STRING_VALUE", // required
110
+ * // createdBy: { // Actor
111
+ * // type: "user" || "api_key" || "service", // required
112
+ * // id: "STRING_VALUE", // required
113
+ * // name: "STRING_VALUE",
114
+ * // },
115
+ * // updatedAt: "STRING_VALUE",
116
+ * // updatedBy: {
117
+ * // type: "user" || "api_key" || "service", // required
118
+ * // id: "STRING_VALUE", // required
119
+ * // name: "STRING_VALUE",
120
+ * // },
121
+ * // id: "STRING_VALUE", // required
122
+ * // status: "draft" || "active", // required
123
+ * // revision: Number("int"), // required
124
+ * // latestVersion: Number("int"),
125
+ * // draftBaseVersion: Number("int"),
126
+ * // live: true || false, // required
127
+ * // },
128
+ * // };
129
+ *
130
+ * ```
131
+ *
132
+ * @param AttachProfileResourceCommandInput - {@link AttachProfileResourceCommandInput}
133
+ * @returns {@link AttachProfileResourceCommandOutput}
134
+ * @see {@link AttachProfileResourceCommandInput} for command's `input` shape.
135
+ * @see {@link AttachProfileResourceCommandOutput} for command's `response` shape.
136
+ * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
137
+ *
138
+ * @throws {@link ForbiddenException} (client fault)
139
+ *
140
+ * @throws {@link ValidationException} (client fault)
141
+ *
142
+ * @throws {@link ProfileNotFoundException} (client fault)
143
+ *
144
+ * @throws {@link RevisionConflictException} (client fault)
145
+ * The resource was modified concurrently; re-read it and retry with the latest revision.
146
+ *
147
+ * @throws {@link WilmaCopilotServiceException}
148
+ * <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
149
+ *
150
+ *
151
+ * @public
152
+ */
153
+ export declare class AttachProfileResourceCommand extends AttachProfileResourceCommand_base {
154
+ /** @internal type navigation helper, not in runtime. */
155
+ protected static __types: {
156
+ api: {
157
+ input: AttachProfileResourceInput;
158
+ output: AttachProfileResourceOutput;
159
+ };
160
+ sdk: {
161
+ input: AttachProfileResourceCommandInput;
162
+ output: AttachProfileResourceCommandOutput;
163
+ };
164
+ };
165
+ }
@@ -0,0 +1,91 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { CompareProfileVersionsInput, CompareProfileVersionsOutput } 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 CompareProfileVersionsCommand}.
14
+ */
15
+ export interface CompareProfileVersionsCommandInput extends CompareProfileVersionsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CompareProfileVersionsCommand}.
21
+ */
22
+ export interface CompareProfileVersionsCommandOutput extends CompareProfileVersionsOutput, __MetadataBearer {
23
+ }
24
+ declare const CompareProfileVersionsCommand_base: {
25
+ new (input: CompareProfileVersionsCommandInput): import("@smithy/core/client").CommandImpl<CompareProfileVersionsCommandInput, CompareProfileVersionsCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CompareProfileVersionsCommandInput): import("@smithy/core/client").CommandImpl<CompareProfileVersionsCommandInput, CompareProfileVersionsCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Returns the field-level differences between two versions, or between a version and the current draft.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaCopilotClient, CompareProfileVersionsCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
35
+ * // const { WilmaCopilotClient, CompareProfileVersionsCommand } = 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 = { // CompareProfileVersionsInput
40
+ * company: "STRING_VALUE",
41
+ * profileId: "STRING_VALUE", // required
42
+ * from: Number("int"),
43
+ * fromDraft: true || false,
44
+ * to: Number("int"),
45
+ * toDraft: true || false,
46
+ * };
47
+ * const command = new CompareProfileVersionsCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // CompareProfileVersionsOutput
50
+ * // changes: [ // ProfileVersionChangesList // required
51
+ * // { // ProfileVersionChange
52
+ * // path: "STRING_VALUE", // required
53
+ * // before: "DOCUMENT_VALUE",
54
+ * // after: "DOCUMENT_VALUE",
55
+ * // },
56
+ * // ],
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param CompareProfileVersionsCommandInput - {@link CompareProfileVersionsCommandInput}
62
+ * @returns {@link CompareProfileVersionsCommandOutput}
63
+ * @see {@link CompareProfileVersionsCommandInput} for command's `input` shape.
64
+ * @see {@link CompareProfileVersionsCommandOutput} for command's `response` shape.
65
+ * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
66
+ *
67
+ * @throws {@link ProfileNotFoundException} (client fault)
68
+ *
69
+ * @throws {@link ProfileVersionNotFoundException} (client fault)
70
+ *
71
+ * @throws {@link ValidationException} (client fault)
72
+ *
73
+ * @throws {@link WilmaCopilotServiceException}
74
+ * <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
75
+ *
76
+ *
77
+ * @public
78
+ */
79
+ export declare class CompareProfileVersionsCommand extends CompareProfileVersionsCommand_base {
80
+ /** @internal type navigation helper, not in runtime. */
81
+ protected static __types: {
82
+ api: {
83
+ input: CompareProfileVersionsInput;
84
+ output: CompareProfileVersionsOutput;
85
+ };
86
+ sdk: {
87
+ input: CompareProfileVersionsCommandInput;
88
+ output: CompareProfileVersionsCommandOutput;
89
+ };
90
+ };
91
+ }
@@ -0,0 +1,328 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { CreateAssetInput, CreateAssetOutput } 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 CreateAssetCommand}.
14
+ */
15
+ export interface CreateAssetCommandInput extends CreateAssetInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateAssetCommand}.
21
+ */
22
+ export interface CreateAssetCommandOutput extends CreateAssetOutput, __MetadataBearer {
23
+ }
24
+ declare const CreateAssetCommand_base: {
25
+ new (input: CreateAssetCommandInput): import("@smithy/core/client").CommandImpl<CreateAssetCommandInput, CreateAssetCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateAssetCommandInput): import("@smithy/core/client").CommandImpl<CreateAssetCommandInput, CreateAssetCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Creates a new reusable asset.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaCopilotClient, CreateAssetCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
35
+ * // const { WilmaCopilotClient, CreateAssetCommand } = 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 = { // CreateAssetInput
40
+ * key: "STRING_VALUE",
41
+ * name: "STRING_VALUE", // required
42
+ * description: "STRING_VALUE",
43
+ * enabled: true || false,
44
+ * type: "guidance" || "next_best_action" || "battle_card" || "playbook" || "knowledge",
45
+ * title: "STRING_VALUE",
46
+ * subtitle: "STRING_VALUE",
47
+ * markdown: "STRING_VALUE",
48
+ * footer: "STRING_VALUE",
49
+ * severity: "neutral" || "success" || "warning" || "danger",
50
+ * icon: "info" || "lightbulb" || "shield" || "book_open" || "alert" || "sparkles",
51
+ * sticky: true || false,
52
+ * content: { // AssetContent Union: only one key present
53
+ * card: { // AssetCard
54
+ * content: { // CardContent Union: only one key present
55
+ * static: { // CardStaticContent
56
+ * markdown: "STRING_VALUE",
57
+ * },
58
+ * agent: { // CardAgentContent
59
+ * agentId: "STRING_VALUE", // required
60
+ * variables: [ // CopilotVariableBindingsList
61
+ * { // CopilotVariableBinding
62
+ * name: "STRING_VALUE", // required
63
+ * type: "STRING_VALUE",
64
+ * optional: true || false,
65
+ * variant: "auto" || "guided" || "predefined", // required
66
+ * description: "STRING_VALUE",
67
+ * value: "STRING_VALUE",
68
+ * },
69
+ * ],
70
+ * },
71
+ * },
72
+ * },
73
+ * playbook: { // AssetPlaybook
74
+ * goal: "STRING_VALUE",
75
+ * steps: [ // PlaybookStepsList
76
+ * { // PlaybookStep
77
+ * id: "STRING_VALUE", // required
78
+ * title: "STRING_VALUE", // required
79
+ * markdown: "STRING_VALUE",
80
+ * required: true || false,
81
+ * autoComplete: true || false,
82
+ * autoCompleteInstructions: "STRING_VALUE",
83
+ * },
84
+ * ],
85
+ * completionCriteria: { // PlaybookCompletionCriteria Union: only one key present
86
+ * manual: { // PlaybookManualCompletion
87
+ * allowAgentMarkComplete: true || false, // required
88
+ * },
89
+ * semantic: { // PlaybookSemanticCompletion
90
+ * description: "STRING_VALUE", // required
91
+ * examples: [ // StringList
92
+ * "STRING_VALUE",
93
+ * ],
94
+ * },
95
+ * },
96
+ * },
97
+ * smartAction: { // AssetSmartActions
98
+ * actions: [ // SmartActionItemsList // required
99
+ * { // SmartActionItem
100
+ * id: "STRING_VALUE", // required
101
+ * label: "STRING_VALUE", // required
102
+ * description: "STRING_VALUE",
103
+ * action: { // SmartAction Union: only one key present
104
+ * openUrl: { // SmartActionOpenUrl
105
+ * url: "STRING_VALUE", // required
106
+ * openInNewTab: true || false,
107
+ * },
108
+ * runAgent: { // SmartActionRunAgent
109
+ * agentId: "STRING_VALUE", // required
110
+ * variables: [
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
+ * resultMode: "show_card" || "silent", // required
121
+ * requireConfirmation: true || false,
122
+ * },
123
+ * runTool: { // SmartActionRunTool
124
+ * toolId: "STRING_VALUE", // required
125
+ * variables: [
126
+ * {
127
+ * name: "STRING_VALUE", // required
128
+ * type: "STRING_VALUE",
129
+ * optional: true || false,
130
+ * variant: "auto" || "guided" || "predefined", // required
131
+ * description: "STRING_VALUE",
132
+ * value: "STRING_VALUE",
133
+ * },
134
+ * ],
135
+ * resultMode: "show_card" || "silent", // required
136
+ * requireConfirmation: true || false,
137
+ * },
138
+ * transfer: { // SmartActionTransfer
139
+ * destination: "STRING_VALUE", // required
140
+ * },
141
+ * handover: { // SmartActionHandover
142
+ * handoverVariant: "agent" || "service", // required
143
+ * assignee: "STRING_VALUE",
144
+ * service: "STRING_VALUE",
145
+ * },
146
+ * },
147
+ * },
148
+ * ],
149
+ * },
150
+ * knowledge: { // AssetKnowledge
151
+ * summary: "STRING_VALUE",
152
+ * sources: "STRING_VALUE",
153
+ * },
154
+ * },
155
+ * conditions: "DOCUMENT_VALUE",
156
+ * company: "STRING_VALUE",
157
+ * };
158
+ * const command = new CreateAssetCommand(input);
159
+ * const response = await client.send(command);
160
+ * // { // CreateAssetOutput
161
+ * // asset: { // Asset
162
+ * // key: "STRING_VALUE",
163
+ * // name: "STRING_VALUE", // required
164
+ * // description: "STRING_VALUE",
165
+ * // enabled: true || false,
166
+ * // type: "guidance" || "next_best_action" || "battle_card" || "playbook" || "knowledge",
167
+ * // title: "STRING_VALUE",
168
+ * // subtitle: "STRING_VALUE",
169
+ * // markdown: "STRING_VALUE",
170
+ * // footer: "STRING_VALUE",
171
+ * // severity: "neutral" || "success" || "warning" || "danger",
172
+ * // icon: "info" || "lightbulb" || "shield" || "book_open" || "alert" || "sparkles",
173
+ * // sticky: true || false,
174
+ * // content: { // AssetContent Union: only one key present
175
+ * // card: { // AssetCard
176
+ * // content: { // CardContent Union: only one key present
177
+ * // static: { // CardStaticContent
178
+ * // markdown: "STRING_VALUE",
179
+ * // },
180
+ * // agent: { // CardAgentContent
181
+ * // agentId: "STRING_VALUE", // required
182
+ * // variables: [ // CopilotVariableBindingsList
183
+ * // { // CopilotVariableBinding
184
+ * // name: "STRING_VALUE", // required
185
+ * // type: "STRING_VALUE",
186
+ * // optional: true || false,
187
+ * // variant: "auto" || "guided" || "predefined", // required
188
+ * // description: "STRING_VALUE",
189
+ * // value: "STRING_VALUE",
190
+ * // },
191
+ * // ],
192
+ * // },
193
+ * // },
194
+ * // },
195
+ * // playbook: { // AssetPlaybook
196
+ * // goal: "STRING_VALUE",
197
+ * // steps: [ // PlaybookStepsList
198
+ * // { // PlaybookStep
199
+ * // id: "STRING_VALUE", // required
200
+ * // title: "STRING_VALUE", // required
201
+ * // markdown: "STRING_VALUE",
202
+ * // required: true || false,
203
+ * // autoComplete: true || false,
204
+ * // autoCompleteInstructions: "STRING_VALUE",
205
+ * // },
206
+ * // ],
207
+ * // completionCriteria: { // PlaybookCompletionCriteria Union: only one key present
208
+ * // manual: { // PlaybookManualCompletion
209
+ * // allowAgentMarkComplete: true || false, // required
210
+ * // },
211
+ * // semantic: { // PlaybookSemanticCompletion
212
+ * // description: "STRING_VALUE", // required
213
+ * // examples: [ // StringList
214
+ * // "STRING_VALUE",
215
+ * // ],
216
+ * // },
217
+ * // },
218
+ * // },
219
+ * // smartAction: { // AssetSmartActions
220
+ * // actions: [ // SmartActionItemsList // required
221
+ * // { // SmartActionItem
222
+ * // id: "STRING_VALUE", // required
223
+ * // label: "STRING_VALUE", // required
224
+ * // description: "STRING_VALUE",
225
+ * // action: { // SmartAction Union: only one key present
226
+ * // openUrl: { // SmartActionOpenUrl
227
+ * // url: "STRING_VALUE", // required
228
+ * // openInNewTab: true || false,
229
+ * // },
230
+ * // runAgent: { // SmartActionRunAgent
231
+ * // agentId: "STRING_VALUE", // required
232
+ * // variables: [
233
+ * // {
234
+ * // name: "STRING_VALUE", // required
235
+ * // type: "STRING_VALUE",
236
+ * // optional: true || false,
237
+ * // variant: "auto" || "guided" || "predefined", // required
238
+ * // description: "STRING_VALUE",
239
+ * // value: "STRING_VALUE",
240
+ * // },
241
+ * // ],
242
+ * // resultMode: "show_card" || "silent", // required
243
+ * // requireConfirmation: true || false,
244
+ * // },
245
+ * // runTool: { // SmartActionRunTool
246
+ * // toolId: "STRING_VALUE", // required
247
+ * // variables: [
248
+ * // {
249
+ * // name: "STRING_VALUE", // required
250
+ * // type: "STRING_VALUE",
251
+ * // optional: true || false,
252
+ * // variant: "auto" || "guided" || "predefined", // required
253
+ * // description: "STRING_VALUE",
254
+ * // value: "STRING_VALUE",
255
+ * // },
256
+ * // ],
257
+ * // resultMode: "show_card" || "silent", // required
258
+ * // requireConfirmation: true || false,
259
+ * // },
260
+ * // transfer: { // SmartActionTransfer
261
+ * // destination: "STRING_VALUE", // required
262
+ * // },
263
+ * // handover: { // SmartActionHandover
264
+ * // handoverVariant: "agent" || "service", // required
265
+ * // assignee: "STRING_VALUE",
266
+ * // service: "STRING_VALUE",
267
+ * // },
268
+ * // },
269
+ * // },
270
+ * // ],
271
+ * // },
272
+ * // knowledge: { // AssetKnowledge
273
+ * // summary: "STRING_VALUE",
274
+ * // sources: "STRING_VALUE",
275
+ * // },
276
+ * // },
277
+ * // conditions: "DOCUMENT_VALUE",
278
+ * // createdAt: "STRING_VALUE", // required
279
+ * // createdBy: { // Actor
280
+ * // type: "user" || "api_key" || "service", // required
281
+ * // id: "STRING_VALUE", // required
282
+ * // name: "STRING_VALUE",
283
+ * // },
284
+ * // updatedAt: "STRING_VALUE",
285
+ * // updatedBy: {
286
+ * // type: "user" || "api_key" || "service", // required
287
+ * // id: "STRING_VALUE", // required
288
+ * // name: "STRING_VALUE",
289
+ * // },
290
+ * // id: "STRING_VALUE", // required
291
+ * // revision: Number("int"), // required
292
+ * // usageLast30Days: Number("int"),
293
+ * // },
294
+ * // };
295
+ *
296
+ * ```
297
+ *
298
+ * @param CreateAssetCommandInput - {@link CreateAssetCommandInput}
299
+ * @returns {@link CreateAssetCommandOutput}
300
+ * @see {@link CreateAssetCommandInput} for command's `input` shape.
301
+ * @see {@link CreateAssetCommandOutput} for command's `response` shape.
302
+ * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
303
+ *
304
+ * @throws {@link ForbiddenException} (client fault)
305
+ *
306
+ * @throws {@link ValidationException} (client fault)
307
+ *
308
+ * @throws {@link AssetNonUniqueNameException} (client fault)
309
+ *
310
+ * @throws {@link WilmaCopilotServiceException}
311
+ * <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
312
+ *
313
+ *
314
+ * @public
315
+ */
316
+ export declare class CreateAssetCommand extends CreateAssetCommand_base {
317
+ /** @internal type navigation helper, not in runtime. */
318
+ protected static __types: {
319
+ api: {
320
+ input: CreateAssetInput;
321
+ output: CreateAssetOutput;
322
+ };
323
+ sdk: {
324
+ input: CreateAssetCommandInput;
325
+ output: CreateAssetCommandOutput;
326
+ };
327
+ };
328
+ }