@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,147 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DeleteProfileResourceInput, DeleteProfileResourceOutput } 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 DeleteProfileResourceCommand}.
14
+ */
15
+ export interface DeleteProfileResourceCommandInput extends DeleteProfileResourceInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteProfileResourceCommand}.
21
+ */
22
+ export interface DeleteProfileResourceCommandOutput extends DeleteProfileResourceOutput, __MetadataBearer {
23
+ }
24
+ declare const DeleteProfileResourceCommand_base: {
25
+ new (input: DeleteProfileResourceCommandInput): import("@smithy/core/client").CommandImpl<DeleteProfileResourceCommandInput, DeleteProfileResourceCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteProfileResourceCommandInput): import("@smithy/core/client").CommandImpl<DeleteProfileResourceCommandInput, DeleteProfileResourceCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Deletes one feature or reusable library-resource attachment from the profile draft. Deleting an already absent resource is idempotent. 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, DeleteProfileResourceCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
35
+ * // const { WilmaCopilotClient, DeleteProfileResourceCommand } = 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 = { // DeleteProfileResourceInput
40
+ * company: "STRING_VALUE",
41
+ * profileId: "STRING_VALUE", // required
42
+ * resourceType: "feature" || "asset" || "automation" || "intent" || "evaluation", // required
43
+ * resourceId: "STRING_VALUE", // required
44
+ * revision: Number("int"), // required
45
+ * };
46
+ * const command = new DeleteProfileResourceCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // DeleteProfileResourceOutput
49
+ * // profile: { // Profile
50
+ * // name: "STRING_VALUE", // required
51
+ * // description: "STRING_VALUE",
52
+ * // channel: "calls" || "chats" || "any", // required
53
+ * // conditions: "DOCUMENT_VALUE",
54
+ * // access: { // CopilotAccess
55
+ * // visibility: "explicit" || "organization",
56
+ * // grants: [ // CopilotGrantPrincipalList
57
+ * // { // CopilotGrantPrincipal Union: only one key present
58
+ * // userId: "STRING_VALUE",
59
+ * // groupId: "STRING_VALUE",
60
+ * // },
61
+ * // ],
62
+ * // },
63
+ * // features: [ // CopilotFeaturesList
64
+ * // { // CopilotFeature Union: only one key present
65
+ * // csat: {},
66
+ * // sentiment: {},
67
+ * // talkRatio: {},
68
+ * // topics: {},
69
+ * // contextualKnowledgeAnswers: { // ContextualKnowledgeAnswersFeatureConfiguration
70
+ * // source: "knowledge_bases" || "agent", // required
71
+ * // knowledgeBaseIds: [ // KnowledgeBaseIdList
72
+ * // "STRING_VALUE",
73
+ * // ],
74
+ * // agentId: "STRING_VALUE",
75
+ * // mode: "suggest_action" || "automatic_answer", // required
76
+ * // },
77
+ * // },
78
+ * // ],
79
+ * // assets: [ // AssetIdList
80
+ * // "STRING_VALUE",
81
+ * // ],
82
+ * // intents: [ // IntentIdList
83
+ * // "STRING_VALUE",
84
+ * // ],
85
+ * // evaluations: [ // EvaluationIdList
86
+ * // "STRING_VALUE",
87
+ * // ],
88
+ * // automations: [ // AutomationIdList
89
+ * // "STRING_VALUE",
90
+ * // ],
91
+ * // createdAt: "STRING_VALUE", // required
92
+ * // createdBy: { // Actor
93
+ * // type: "user" || "api_key" || "service", // required
94
+ * // id: "STRING_VALUE", // required
95
+ * // name: "STRING_VALUE",
96
+ * // },
97
+ * // updatedAt: "STRING_VALUE",
98
+ * // updatedBy: {
99
+ * // type: "user" || "api_key" || "service", // required
100
+ * // id: "STRING_VALUE", // required
101
+ * // name: "STRING_VALUE",
102
+ * // },
103
+ * // id: "STRING_VALUE", // required
104
+ * // status: "draft" || "active", // required
105
+ * // revision: Number("int"), // required
106
+ * // latestVersion: Number("int"),
107
+ * // draftBaseVersion: Number("int"),
108
+ * // live: true || false, // required
109
+ * // },
110
+ * // };
111
+ *
112
+ * ```
113
+ *
114
+ * @param DeleteProfileResourceCommandInput - {@link DeleteProfileResourceCommandInput}
115
+ * @returns {@link DeleteProfileResourceCommandOutput}
116
+ * @see {@link DeleteProfileResourceCommandInput} for command's `input` shape.
117
+ * @see {@link DeleteProfileResourceCommandOutput} for command's `response` shape.
118
+ * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
119
+ *
120
+ * @throws {@link ForbiddenException} (client fault)
121
+ *
122
+ * @throws {@link ValidationException} (client fault)
123
+ *
124
+ * @throws {@link ProfileNotFoundException} (client fault)
125
+ *
126
+ * @throws {@link RevisionConflictException} (client fault)
127
+ * The resource was modified concurrently; re-read it and retry with the latest revision.
128
+ *
129
+ * @throws {@link WilmaCopilotServiceException}
130
+ * <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
131
+ *
132
+ *
133
+ * @public
134
+ */
135
+ export declare class DeleteProfileResourceCommand extends DeleteProfileResourceCommand_base {
136
+ /** @internal type navigation helper, not in runtime. */
137
+ protected static __types: {
138
+ api: {
139
+ input: DeleteProfileResourceInput;
140
+ output: DeleteProfileResourceOutput;
141
+ };
142
+ sdk: {
143
+ input: DeleteProfileResourceCommandInput;
144
+ output: DeleteProfileResourceCommandOutput;
145
+ };
146
+ };
147
+ }
@@ -0,0 +1,213 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GetAssetInput, GetAssetOutput } 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 GetAssetCommand}.
14
+ */
15
+ export interface GetAssetCommandInput extends GetAssetInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetAssetCommand}.
21
+ */
22
+ export interface GetAssetCommandOutput extends GetAssetOutput, __MetadataBearer {
23
+ }
24
+ declare const GetAssetCommand_base: {
25
+ new (input: GetAssetCommandInput): import("@smithy/core/client").CommandImpl<GetAssetCommandInput, GetAssetCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetAssetCommandInput): import("@smithy/core/client").CommandImpl<GetAssetCommandInput, GetAssetCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Gets an asset.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaCopilotClient, GetAssetCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
35
+ * // const { WilmaCopilotClient, GetAssetCommand } = 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 = { // GetAssetInput
40
+ * company: "STRING_VALUE",
41
+ * assetId: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new GetAssetCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetAssetOutput
46
+ * // asset: { // Asset
47
+ * // key: "STRING_VALUE",
48
+ * // name: "STRING_VALUE", // required
49
+ * // description: "STRING_VALUE",
50
+ * // enabled: true || false,
51
+ * // type: "guidance" || "next_best_action" || "battle_card" || "playbook" || "knowledge",
52
+ * // title: "STRING_VALUE",
53
+ * // subtitle: "STRING_VALUE",
54
+ * // markdown: "STRING_VALUE",
55
+ * // footer: "STRING_VALUE",
56
+ * // severity: "neutral" || "success" || "warning" || "danger",
57
+ * // icon: "info" || "lightbulb" || "shield" || "book_open" || "alert" || "sparkles",
58
+ * // sticky: true || false,
59
+ * // content: { // AssetContent Union: only one key present
60
+ * // card: { // AssetCard
61
+ * // content: { // CardContent Union: only one key present
62
+ * // static: { // CardStaticContent
63
+ * // markdown: "STRING_VALUE",
64
+ * // },
65
+ * // agent: { // CardAgentContent
66
+ * // agentId: "STRING_VALUE", // required
67
+ * // variables: [ // CopilotVariableBindingsList
68
+ * // { // CopilotVariableBinding
69
+ * // name: "STRING_VALUE", // required
70
+ * // type: "STRING_VALUE",
71
+ * // optional: true || false,
72
+ * // variant: "auto" || "guided" || "predefined", // required
73
+ * // description: "STRING_VALUE",
74
+ * // value: "STRING_VALUE",
75
+ * // },
76
+ * // ],
77
+ * // },
78
+ * // },
79
+ * // },
80
+ * // playbook: { // AssetPlaybook
81
+ * // goal: "STRING_VALUE",
82
+ * // steps: [ // PlaybookStepsList
83
+ * // { // PlaybookStep
84
+ * // id: "STRING_VALUE", // required
85
+ * // title: "STRING_VALUE", // required
86
+ * // markdown: "STRING_VALUE",
87
+ * // required: true || false,
88
+ * // autoComplete: true || false,
89
+ * // autoCompleteInstructions: "STRING_VALUE",
90
+ * // },
91
+ * // ],
92
+ * // completionCriteria: { // PlaybookCompletionCriteria Union: only one key present
93
+ * // manual: { // PlaybookManualCompletion
94
+ * // allowAgentMarkComplete: true || false, // required
95
+ * // },
96
+ * // semantic: { // PlaybookSemanticCompletion
97
+ * // description: "STRING_VALUE", // required
98
+ * // examples: [ // StringList
99
+ * // "STRING_VALUE",
100
+ * // ],
101
+ * // },
102
+ * // },
103
+ * // },
104
+ * // smartAction: { // AssetSmartActions
105
+ * // actions: [ // SmartActionItemsList // required
106
+ * // { // SmartActionItem
107
+ * // id: "STRING_VALUE", // required
108
+ * // label: "STRING_VALUE", // required
109
+ * // description: "STRING_VALUE",
110
+ * // action: { // SmartAction Union: only one key present
111
+ * // openUrl: { // SmartActionOpenUrl
112
+ * // url: "STRING_VALUE", // required
113
+ * // openInNewTab: true || false,
114
+ * // },
115
+ * // runAgent: { // SmartActionRunAgent
116
+ * // agentId: "STRING_VALUE", // required
117
+ * // variables: [
118
+ * // {
119
+ * // name: "STRING_VALUE", // required
120
+ * // type: "STRING_VALUE",
121
+ * // optional: true || false,
122
+ * // variant: "auto" || "guided" || "predefined", // required
123
+ * // description: "STRING_VALUE",
124
+ * // value: "STRING_VALUE",
125
+ * // },
126
+ * // ],
127
+ * // resultMode: "show_card" || "silent", // required
128
+ * // requireConfirmation: true || false,
129
+ * // },
130
+ * // runTool: { // SmartActionRunTool
131
+ * // toolId: "STRING_VALUE", // required
132
+ * // variables: [
133
+ * // {
134
+ * // name: "STRING_VALUE", // required
135
+ * // type: "STRING_VALUE",
136
+ * // optional: true || false,
137
+ * // variant: "auto" || "guided" || "predefined", // required
138
+ * // description: "STRING_VALUE",
139
+ * // value: "STRING_VALUE",
140
+ * // },
141
+ * // ],
142
+ * // resultMode: "show_card" || "silent", // required
143
+ * // requireConfirmation: true || false,
144
+ * // },
145
+ * // transfer: { // SmartActionTransfer
146
+ * // destination: "STRING_VALUE", // required
147
+ * // },
148
+ * // handover: { // SmartActionHandover
149
+ * // handoverVariant: "agent" || "service", // required
150
+ * // assignee: "STRING_VALUE",
151
+ * // service: "STRING_VALUE",
152
+ * // },
153
+ * // },
154
+ * // },
155
+ * // ],
156
+ * // },
157
+ * // knowledge: { // AssetKnowledge
158
+ * // summary: "STRING_VALUE",
159
+ * // sources: "STRING_VALUE",
160
+ * // },
161
+ * // },
162
+ * // conditions: "DOCUMENT_VALUE",
163
+ * // createdAt: "STRING_VALUE", // required
164
+ * // createdBy: { // Actor
165
+ * // type: "user" || "api_key" || "service", // required
166
+ * // id: "STRING_VALUE", // required
167
+ * // name: "STRING_VALUE",
168
+ * // },
169
+ * // updatedAt: "STRING_VALUE",
170
+ * // updatedBy: {
171
+ * // type: "user" || "api_key" || "service", // required
172
+ * // id: "STRING_VALUE", // required
173
+ * // name: "STRING_VALUE",
174
+ * // },
175
+ * // id: "STRING_VALUE", // required
176
+ * // revision: Number("int"), // required
177
+ * // usageLast30Days: Number("int"),
178
+ * // },
179
+ * // };
180
+ *
181
+ * ```
182
+ *
183
+ * @param GetAssetCommandInput - {@link GetAssetCommandInput}
184
+ * @returns {@link GetAssetCommandOutput}
185
+ * @see {@link GetAssetCommandInput} for command's `input` shape.
186
+ * @see {@link GetAssetCommandOutput} for command's `response` shape.
187
+ * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
188
+ *
189
+ * @throws {@link ForbiddenException} (client fault)
190
+ *
191
+ * @throws {@link AssetNotFoundException} (client fault)
192
+ *
193
+ * @throws {@link ValidationException} (client fault)
194
+ *
195
+ * @throws {@link WilmaCopilotServiceException}
196
+ * <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
197
+ *
198
+ *
199
+ * @public
200
+ */
201
+ export declare class GetAssetCommand extends GetAssetCommand_base {
202
+ /** @internal type navigation helper, not in runtime. */
203
+ protected static __types: {
204
+ api: {
205
+ input: GetAssetInput;
206
+ output: GetAssetOutput;
207
+ };
208
+ sdk: {
209
+ input: GetAssetCommandInput;
210
+ output: GetAssetCommandOutput;
211
+ };
212
+ };
213
+ }
@@ -0,0 +1,137 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GetAutomationInput, GetAutomationOutput } 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 GetAutomationCommand}.
14
+ */
15
+ export interface GetAutomationCommandInput extends GetAutomationInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetAutomationCommand}.
21
+ */
22
+ export interface GetAutomationCommandOutput extends GetAutomationOutput, __MetadataBearer {
23
+ }
24
+ declare const GetAutomationCommand_base: {
25
+ new (input: GetAutomationCommandInput): import("@smithy/core/client").CommandImpl<GetAutomationCommandInput, GetAutomationCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetAutomationCommandInput): import("@smithy/core/client").CommandImpl<GetAutomationCommandInput, GetAutomationCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Gets an automation.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaCopilotClient, GetAutomationCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
35
+ * // const { WilmaCopilotClient, GetAutomationCommand } = 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 = { // GetAutomationInput
40
+ * company: "STRING_VALUE",
41
+ * automationId: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new GetAutomationCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetAutomationOutput
46
+ * // automation: { // Automation
47
+ * // name: "STRING_VALUE", // required
48
+ * // description: "STRING_VALUE",
49
+ * // handler: { // AutomationHandler Union: only one key present
50
+ * // agent: { // AgentAutomationHandler
51
+ * // agentId: "STRING_VALUE", // required
52
+ * // prompt: "STRING_VALUE",
53
+ * // outputMode: "card" || "silent",
54
+ * // parameters: [ // CopilotVariableBindingsList
55
+ * // { // CopilotVariableBinding
56
+ * // name: "STRING_VALUE", // required
57
+ * // type: "STRING_VALUE",
58
+ * // optional: true || false,
59
+ * // variant: "auto" || "guided" || "predefined", // required
60
+ * // description: "STRING_VALUE",
61
+ * // value: "STRING_VALUE",
62
+ * // },
63
+ * // ],
64
+ * // },
65
+ * // tool: { // ToolAutomationHandler
66
+ * // toolId: "STRING_VALUE",
67
+ * // toolName: "STRING_VALUE", // required
68
+ * // action: "STRING_VALUE",
69
+ * // payloadTemplate: "STRING_VALUE",
70
+ * // outputMode: "card" || "silent",
71
+ * // parameters: [
72
+ * // {
73
+ * // name: "STRING_VALUE", // required
74
+ * // type: "STRING_VALUE",
75
+ * // optional: true || false,
76
+ * // variant: "auto" || "guided" || "predefined", // required
77
+ * // description: "STRING_VALUE",
78
+ * // value: "STRING_VALUE",
79
+ * // },
80
+ * // ],
81
+ * // },
82
+ * // knowledgeBase: { // KnowledgeBaseAutomationHandler
83
+ * // knowledgeBaseId: "STRING_VALUE", // required
84
+ * // },
85
+ * // },
86
+ * // conditions: "DOCUMENT_VALUE",
87
+ * // createdAt: "STRING_VALUE", // required
88
+ * // createdBy: { // Actor
89
+ * // type: "user" || "api_key" || "service", // required
90
+ * // id: "STRING_VALUE", // required
91
+ * // name: "STRING_VALUE",
92
+ * // },
93
+ * // updatedAt: "STRING_VALUE",
94
+ * // updatedBy: {
95
+ * // type: "user" || "api_key" || "service", // required
96
+ * // id: "STRING_VALUE", // required
97
+ * // name: "STRING_VALUE",
98
+ * // },
99
+ * // id: "STRING_VALUE", // required
100
+ * // revision: Number("int"), // required
101
+ * // executionsLast30Days: Number("int"),
102
+ * // },
103
+ * // };
104
+ *
105
+ * ```
106
+ *
107
+ * @param GetAutomationCommandInput - {@link GetAutomationCommandInput}
108
+ * @returns {@link GetAutomationCommandOutput}
109
+ * @see {@link GetAutomationCommandInput} for command's `input` shape.
110
+ * @see {@link GetAutomationCommandOutput} for command's `response` shape.
111
+ * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
112
+ *
113
+ * @throws {@link ForbiddenException} (client fault)
114
+ *
115
+ * @throws {@link AutomationNotFoundException} (client fault)
116
+ *
117
+ * @throws {@link ValidationException} (client fault)
118
+ *
119
+ * @throws {@link WilmaCopilotServiceException}
120
+ * <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
121
+ *
122
+ *
123
+ * @public
124
+ */
125
+ export declare class GetAutomationCommand extends GetAutomationCommand_base {
126
+ /** @internal type navigation helper, not in runtime. */
127
+ protected static __types: {
128
+ api: {
129
+ input: GetAutomationInput;
130
+ output: GetAutomationOutput;
131
+ };
132
+ sdk: {
133
+ input: GetAutomationCommandInput;
134
+ output: GetAutomationCommandOutput;
135
+ };
136
+ };
137
+ }
@@ -0,0 +1,147 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GetEvaluationInput, GetEvaluationOutput } 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 GetEvaluationCommand}.
14
+ */
15
+ export interface GetEvaluationCommandInput extends GetEvaluationInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetEvaluationCommand}.
21
+ */
22
+ export interface GetEvaluationCommandOutput extends GetEvaluationOutput, __MetadataBearer {
23
+ }
24
+ declare const GetEvaluationCommand_base: {
25
+ new (input: GetEvaluationCommandInput): import("@smithy/core/client").CommandImpl<GetEvaluationCommandInput, GetEvaluationCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetEvaluationCommandInput): import("@smithy/core/client").CommandImpl<GetEvaluationCommandInput, GetEvaluationCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Gets an evaluation.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaCopilotClient, GetEvaluationCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
35
+ * // const { WilmaCopilotClient, GetEvaluationCommand } = 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 = { // GetEvaluationInput
40
+ * company: "STRING_VALUE",
41
+ * evaluationId: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new GetEvaluationCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetEvaluationOutput
46
+ * // evaluation: { // Evaluation
47
+ * // name: "STRING_VALUE", // required
48
+ * // description: "STRING_VALUE",
49
+ * // instructions: "STRING_VALUE", // required
50
+ * // fields: [ // CopilotFieldsList
51
+ * // { // CopilotField
52
+ * // id: "STRING_VALUE", // required
53
+ * // name: "STRING_VALUE", // required
54
+ * // description: "STRING_VALUE",
55
+ * // optional: true || false,
56
+ * // parameter: { // CopilotFieldParameter Union: only one key present
57
+ * // text: { // CopilotTextParameter
58
+ * // examples: [ // StringList
59
+ * // "STRING_VALUE",
60
+ * // ],
61
+ * // },
62
+ * // multiline: { // CopilotMultilineParameter
63
+ * // examples: [
64
+ * // "STRING_VALUE",
65
+ * // ],
66
+ * // },
67
+ * // number: { // CopilotNumberParameter
68
+ * // min: Number("int"),
69
+ * // max: Number("int"),
70
+ * // },
71
+ * // selection: { // CopilotSelectionParameter
72
+ * // options: [ // required
73
+ * // "STRING_VALUE",
74
+ * // ],
75
+ * // multi: true || false,
76
+ * // adaptive: true || false,
77
+ * // adaptiveOptions: [
78
+ * // "STRING_VALUE",
79
+ * // ],
80
+ * // },
81
+ * // },
82
+ * // },
83
+ * // ],
84
+ * // triggers: { // EvaluationTriggers
85
+ * // interval: { // EvaluationIntervalTrigger
86
+ * // enabled: true || false, // required
87
+ * // intervalSeconds: Number("int"),
88
+ * // },
89
+ * // customerEndSpeaking: true || false,
90
+ * // agentEndSpeaking: true || false,
91
+ * // immediatelyOncePerSession: true || false,
92
+ * // },
93
+ * // window: "new_transcript" || "new_with_prior" || "full_transcript", // required
94
+ * // model: "STRING_VALUE",
95
+ * // group: "STRING_VALUE",
96
+ * // conditions: "DOCUMENT_VALUE",
97
+ * // createdAt: "STRING_VALUE", // required
98
+ * // createdBy: { // Actor
99
+ * // type: "user" || "api_key" || "service", // required
100
+ * // id: "STRING_VALUE", // required
101
+ * // name: "STRING_VALUE",
102
+ * // },
103
+ * // updatedAt: "STRING_VALUE",
104
+ * // updatedBy: {
105
+ * // type: "user" || "api_key" || "service", // required
106
+ * // id: "STRING_VALUE", // required
107
+ * // name: "STRING_VALUE",
108
+ * // },
109
+ * // id: "STRING_VALUE", // required
110
+ * // revision: Number("int"), // required
111
+ * // usageLast30Days: Number("int"),
112
+ * // },
113
+ * // };
114
+ *
115
+ * ```
116
+ *
117
+ * @param GetEvaluationCommandInput - {@link GetEvaluationCommandInput}
118
+ * @returns {@link GetEvaluationCommandOutput}
119
+ * @see {@link GetEvaluationCommandInput} for command's `input` shape.
120
+ * @see {@link GetEvaluationCommandOutput} for command's `response` shape.
121
+ * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
122
+ *
123
+ * @throws {@link ForbiddenException} (client fault)
124
+ *
125
+ * @throws {@link EvaluationNotFoundException} (client fault)
126
+ *
127
+ * @throws {@link ValidationException} (client fault)
128
+ *
129
+ * @throws {@link WilmaCopilotServiceException}
130
+ * <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
131
+ *
132
+ *
133
+ * @public
134
+ */
135
+ export declare class GetEvaluationCommand extends GetEvaluationCommand_base {
136
+ /** @internal type navigation helper, not in runtime. */
137
+ protected static __types: {
138
+ api: {
139
+ input: GetEvaluationInput;
140
+ output: GetEvaluationOutput;
141
+ };
142
+ sdk: {
143
+ input: GetEvaluationCommandInput;
144
+ output: GetEvaluationCommandOutput;
145
+ };
146
+ };
147
+ }