@wildix/wilma-copilot-client 1.0.10 → 1.0.11

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 (35) hide show
  1. package/dist-cjs/models/errors.js +27 -226
  2. package/dist-cjs/schemas/schemas_0.js +20 -113
  3. package/dist-es/models/errors.js +24 -210
  4. package/dist-es/schemas/schemas_0.js +17 -110
  5. package/dist-types/commands/AttachProfileResourceCommand.d.ts +1 -1
  6. package/dist-types/commands/CompareProfileVersionsCommand.d.ts +1 -3
  7. package/dist-types/commands/CreateAssetCommand.d.ts +2 -1
  8. package/dist-types/commands/CreateAutomationCommand.d.ts +2 -1
  9. package/dist-types/commands/CreateEvaluationCommand.d.ts +2 -1
  10. package/dist-types/commands/CreateIntentCommand.d.ts +2 -1
  11. package/dist-types/commands/CreateProfileCommand.d.ts +2 -1
  12. package/dist-types/commands/DeleteAssetCommand.d.ts +4 -4
  13. package/dist-types/commands/DeleteAutomationCommand.d.ts +4 -4
  14. package/dist-types/commands/DeleteEvaluationCommand.d.ts +4 -4
  15. package/dist-types/commands/DeleteIntentCommand.d.ts +4 -4
  16. package/dist-types/commands/DeleteProfileCommand.d.ts +1 -1
  17. package/dist-types/commands/DeleteProfileResourceCommand.d.ts +1 -1
  18. package/dist-types/commands/GetAssetCommand.d.ts +1 -1
  19. package/dist-types/commands/GetAutomationCommand.d.ts +1 -1
  20. package/dist-types/commands/GetEvaluationCommand.d.ts +1 -1
  21. package/dist-types/commands/GetIntentCommand.d.ts +1 -1
  22. package/dist-types/commands/GetProfileCommand.d.ts +1 -1
  23. package/dist-types/commands/GetProfileVersionCommand.d.ts +1 -3
  24. package/dist-types/commands/ListProfileVersionsCommand.d.ts +1 -1
  25. package/dist-types/commands/PublishProfileVersionCommand.d.ts +1 -1
  26. package/dist-types/commands/RestoreProfileVersionToDraftCommand.d.ts +1 -3
  27. package/dist-types/commands/UpdateAssetCommand.d.ts +3 -2
  28. package/dist-types/commands/UpdateAutomationCommand.d.ts +3 -2
  29. package/dist-types/commands/UpdateEvaluationCommand.d.ts +3 -2
  30. package/dist-types/commands/UpdateIntentCommand.d.ts +3 -2
  31. package/dist-types/commands/UpdateProfileCommand.d.ts +3 -2
  32. package/dist-types/models/errors.d.ts +23 -184
  33. package/dist-types/models/models_0.d.ts +4 -4
  34. package/dist-types/schemas/schemas_0.d.ts +2 -15
  35. package/package.json +1 -1
@@ -121,7 +121,7 @@ declare const GetEvaluationCommand_base: {
121
121
  *
122
122
  * @throws {@link ForbiddenException} (client fault)
123
123
  *
124
- * @throws {@link EvaluationNotFoundException} (client fault)
124
+ * @throws {@link NotFoundException} (client fault)
125
125
  *
126
126
  * @throws {@link ValidationException} (client fault)
127
127
  *
@@ -125,7 +125,7 @@ declare const GetIntentCommand_base: {
125
125
  *
126
126
  * @throws {@link ForbiddenException} (client fault)
127
127
  *
128
- * @throws {@link IntentNotFoundException} (client fault)
128
+ * @throws {@link NotFoundException} (client fault)
129
129
  *
130
130
  * @throws {@link ValidationException} (client fault)
131
131
  *
@@ -116,7 +116,7 @@ declare const GetProfileCommand_base: {
116
116
  *
117
117
  * @throws {@link ForbiddenException} (client fault)
118
118
  *
119
- * @throws {@link ProfileNotFoundException} (client fault)
119
+ * @throws {@link NotFoundException} (client fault)
120
120
  *
121
121
  * @throws {@link ValidationException} (client fault)
122
122
  *
@@ -55,9 +55,7 @@ declare const GetProfileVersionCommand_base: {
55
55
  * @see {@link GetProfileVersionCommandOutput} for command's `response` shape.
56
56
  * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
57
57
  *
58
- * @throws {@link ProfileNotFoundException} (client fault)
59
- *
60
- * @throws {@link ProfileVersionNotFoundException} (client fault)
58
+ * @throws {@link NotFoundException} (client fault)
61
59
  *
62
60
  * @throws {@link ValidationException} (client fault)
63
61
  *
@@ -70,7 +70,7 @@ declare const ListProfileVersionsCommand_base: {
70
70
  * @see {@link ListProfileVersionsCommandOutput} for command's `response` shape.
71
71
  * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
72
72
  *
73
- * @throws {@link ProfileNotFoundException} (client fault)
73
+ * @throws {@link NotFoundException} (client fault)
74
74
  *
75
75
  * @throws {@link ValidationException} (client fault)
76
76
  *
@@ -56,7 +56,7 @@ declare const PublishProfileVersionCommand_base: {
56
56
  * @see {@link PublishProfileVersionCommandOutput} for command's `response` shape.
57
57
  * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
58
58
  *
59
- * @throws {@link ProfileNotFoundException} (client fault)
59
+ * @throws {@link NotFoundException} (client fault)
60
60
  *
61
61
  * @throws {@link NothingToPublishException} (client fault)
62
62
  * The draft has not changed since the last published version; there is nothing to publish.
@@ -116,9 +116,7 @@ declare const RestoreProfileVersionToDraftCommand_base: {
116
116
  * @see {@link RestoreProfileVersionToDraftCommandOutput} for command's `response` shape.
117
117
  * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
118
118
  *
119
- * @throws {@link ProfileNotFoundException} (client fault)
120
- *
121
- * @throws {@link ProfileVersionNotFoundException} (client fault)
119
+ * @throws {@link NotFoundException} (client fault)
122
120
  *
123
121
  * @throws {@link RevisionConflictException} (client fault)
124
122
  * The resource was modified concurrently; re-read it and retry with the latest revision.
@@ -305,9 +305,10 @@ declare const UpdateAssetCommand_base: {
305
305
  *
306
306
  * @throws {@link ValidationException} (client fault)
307
307
  *
308
- * @throws {@link AssetNotFoundException} (client fault)
308
+ * @throws {@link NotFoundException} (client fault)
309
309
  *
310
- * @throws {@link AssetNonUniqueNameException} (client fault)
310
+ * @throws {@link ConflictException} (client fault)
311
+ * The request conflicts with the current state of the resource, e.g. a duplicate name, a resource still in use, or an unmet precondition.
311
312
  *
312
313
  * @throws {@link RevisionConflictException} (client fault)
313
314
  * The resource was modified concurrently; re-read it and retry with the latest revision.
@@ -114,9 +114,10 @@ declare const UpdateAutomationCommand_base: {
114
114
  *
115
115
  * @throws {@link ValidationException} (client fault)
116
116
  *
117
- * @throws {@link AutomationNotFoundException} (client fault)
117
+ * @throws {@link NotFoundException} (client fault)
118
118
  *
119
- * @throws {@link AutomationNonUniqueNameException} (client fault)
119
+ * @throws {@link ConflictException} (client fault)
120
+ * The request conflicts with the current state of the resource, e.g. a duplicate name, a resource still in use, or an unmet precondition.
120
121
  *
121
122
  * @throws {@link RevisionConflictException} (client fault)
122
123
  * The resource was modified concurrently; re-read it and retry with the latest revision.
@@ -173,9 +173,10 @@ declare const UpdateEvaluationCommand_base: {
173
173
  *
174
174
  * @throws {@link ValidationException} (client fault)
175
175
  *
176
- * @throws {@link EvaluationNotFoundException} (client fault)
176
+ * @throws {@link NotFoundException} (client fault)
177
177
  *
178
- * @throws {@link EvaluationNonUniqueNameException} (client fault)
178
+ * @throws {@link ConflictException} (client fault)
179
+ * The request conflicts with the current state of the resource, e.g. a duplicate name, a resource still in use, or an unmet precondition.
179
180
  *
180
181
  * @throws {@link RevisionConflictException} (client fault)
181
182
  * The resource was modified concurrently; re-read it and retry with the latest revision.
@@ -181,9 +181,10 @@ declare const UpdateIntentCommand_base: {
181
181
  *
182
182
  * @throws {@link ValidationException} (client fault)
183
183
  *
184
- * @throws {@link IntentNotFoundException} (client fault)
184
+ * @throws {@link NotFoundException} (client fault)
185
185
  *
186
- * @throws {@link IntentNonUniqueNameException} (client fault)
186
+ * @throws {@link ConflictException} (client fault)
187
+ * The request conflicts with the current state of the resource, e.g. a duplicate name, a resource still in use, or an unmet precondition.
187
188
  *
188
189
  * @throws {@link RevisionConflictException} (client fault)
189
190
  * The resource was modified concurrently; re-read it and retry with the latest revision.
@@ -132,9 +132,10 @@ declare const UpdateProfileCommand_base: {
132
132
  *
133
133
  * @throws {@link ValidationException} (client fault)
134
134
  *
135
- * @throws {@link ProfileNotFoundException} (client fault)
135
+ * @throws {@link NotFoundException} (client fault)
136
136
  *
137
- * @throws {@link ProfileNonUniqueNameException} (client fault)
137
+ * @throws {@link ConflictException} (client fault)
138
+ * The request conflicts with the current state of the resource, e.g. a duplicate name, a resource still in use, or an unmet precondition.
138
139
  *
139
140
  * @throws {@link RevisionConflictException} (client fault)
140
141
  * The resource was modified concurrently; re-read it and retry with the latest revision.
@@ -1,5 +1,17 @@
1
1
  import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
2
  import { WilmaCopilotServiceException as __BaseException } from "./WilmaCopilotServiceException";
3
+ /**
4
+ * The request conflicts with the current state of the resource, e.g. a duplicate name, a resource still in use, or an unmet precondition.
5
+ * @public
6
+ */
7
+ export declare class ConflictException extends __BaseException {
8
+ readonly name: "ConflictException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
14
+ }
3
15
  /**
4
16
  * @public
5
17
  */
@@ -11,6 +23,17 @@ export declare class ForbiddenException extends __BaseException {
11
23
  */
12
24
  constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
13
25
  }
26
+ /**
27
+ * @public
28
+ */
29
+ export declare class NotFoundException extends __BaseException {
30
+ readonly name: "NotFoundException";
31
+ readonly $fault: "client";
32
+ /**
33
+ * @internal
34
+ */
35
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
36
+ }
14
37
  /**
15
38
  * @public
16
39
  */
@@ -53,187 +76,3 @@ export declare class RevisionConflictException extends __BaseException {
53
76
  */
54
77
  constructor(opts: __ExceptionOptionType<RevisionConflictException, __BaseException>);
55
78
  }
56
- /**
57
- * The asset cannot be deleted: it is still referenced by at least one profile draft. Retry with detach=true to remove the references.
58
- * @public
59
- */
60
- export declare class AssetInUseException extends __BaseException {
61
- readonly name: "AssetInUseException";
62
- readonly $fault: "client";
63
- type?: string | undefined;
64
- /**
65
- * @internal
66
- */
67
- constructor(opts: __ExceptionOptionType<AssetInUseException, __BaseException>);
68
- }
69
- /**
70
- * @public
71
- */
72
- export declare class AssetNonUniqueNameException extends __BaseException {
73
- readonly name: "AssetNonUniqueNameException";
74
- readonly $fault: "client";
75
- type?: string | undefined;
76
- /**
77
- * @internal
78
- */
79
- constructor(opts: __ExceptionOptionType<AssetNonUniqueNameException, __BaseException>);
80
- }
81
- /**
82
- * @public
83
- */
84
- export declare class AssetNotFoundException extends __BaseException {
85
- readonly name: "AssetNotFoundException";
86
- readonly $fault: "client";
87
- type?: string | undefined;
88
- /**
89
- * @internal
90
- */
91
- constructor(opts: __ExceptionOptionType<AssetNotFoundException, __BaseException>);
92
- }
93
- /**
94
- * @public
95
- */
96
- export declare class ProfileNotFoundException extends __BaseException {
97
- readonly name: "ProfileNotFoundException";
98
- readonly $fault: "client";
99
- type?: string | undefined;
100
- /**
101
- * @internal
102
- */
103
- constructor(opts: __ExceptionOptionType<ProfileNotFoundException, __BaseException>);
104
- }
105
- /**
106
- * The automation cannot be deleted: it is still referenced by at least one profile draft. Retry with detach=true to remove the references.
107
- * @public
108
- */
109
- export declare class AutomationInUseException extends __BaseException {
110
- readonly name: "AutomationInUseException";
111
- readonly $fault: "client";
112
- type?: string | undefined;
113
- /**
114
- * @internal
115
- */
116
- constructor(opts: __ExceptionOptionType<AutomationInUseException, __BaseException>);
117
- }
118
- /**
119
- * @public
120
- */
121
- export declare class AutomationNonUniqueNameException extends __BaseException {
122
- readonly name: "AutomationNonUniqueNameException";
123
- readonly $fault: "client";
124
- type?: string | undefined;
125
- /**
126
- * @internal
127
- */
128
- constructor(opts: __ExceptionOptionType<AutomationNonUniqueNameException, __BaseException>);
129
- }
130
- /**
131
- * @public
132
- */
133
- export declare class AutomationNotFoundException extends __BaseException {
134
- readonly name: "AutomationNotFoundException";
135
- readonly $fault: "client";
136
- type?: string | undefined;
137
- /**
138
- * @internal
139
- */
140
- constructor(opts: __ExceptionOptionType<AutomationNotFoundException, __BaseException>);
141
- }
142
- /**
143
- * @public
144
- */
145
- export declare class ProfileVersionNotFoundException extends __BaseException {
146
- readonly name: "ProfileVersionNotFoundException";
147
- readonly $fault: "client";
148
- type?: string | undefined;
149
- /**
150
- * @internal
151
- */
152
- constructor(opts: __ExceptionOptionType<ProfileVersionNotFoundException, __BaseException>);
153
- }
154
- /**
155
- * @public
156
- */
157
- export declare class EvaluationNonUniqueNameException extends __BaseException {
158
- readonly name: "EvaluationNonUniqueNameException";
159
- readonly $fault: "client";
160
- type?: string | undefined;
161
- /**
162
- * @internal
163
- */
164
- constructor(opts: __ExceptionOptionType<EvaluationNonUniqueNameException, __BaseException>);
165
- }
166
- /**
167
- * @public
168
- */
169
- export declare class IntentNonUniqueNameException extends __BaseException {
170
- readonly name: "IntentNonUniqueNameException";
171
- readonly $fault: "client";
172
- type?: string | undefined;
173
- /**
174
- * @internal
175
- */
176
- constructor(opts: __ExceptionOptionType<IntentNonUniqueNameException, __BaseException>);
177
- }
178
- /**
179
- * @public
180
- */
181
- export declare class ProfileNonUniqueNameException extends __BaseException {
182
- readonly name: "ProfileNonUniqueNameException";
183
- readonly $fault: "client";
184
- type?: string | undefined;
185
- /**
186
- * @internal
187
- */
188
- constructor(opts: __ExceptionOptionType<ProfileNonUniqueNameException, __BaseException>);
189
- }
190
- /**
191
- * The evaluation cannot be deleted: it is still referenced by at least one profile draft. Retry with detach=true to remove the references.
192
- * @public
193
- */
194
- export declare class EvaluationInUseException extends __BaseException {
195
- readonly name: "EvaluationInUseException";
196
- readonly $fault: "client";
197
- type?: string | undefined;
198
- /**
199
- * @internal
200
- */
201
- constructor(opts: __ExceptionOptionType<EvaluationInUseException, __BaseException>);
202
- }
203
- /**
204
- * @public
205
- */
206
- export declare class EvaluationNotFoundException extends __BaseException {
207
- readonly name: "EvaluationNotFoundException";
208
- readonly $fault: "client";
209
- type?: string | undefined;
210
- /**
211
- * @internal
212
- */
213
- constructor(opts: __ExceptionOptionType<EvaluationNotFoundException, __BaseException>);
214
- }
215
- /**
216
- * The intent cannot be deleted: it is still referenced by at least one profile draft. Retry with detach=true to remove the references.
217
- * @public
218
- */
219
- export declare class IntentInUseException extends __BaseException {
220
- readonly name: "IntentInUseException";
221
- readonly $fault: "client";
222
- type?: string | undefined;
223
- /**
224
- * @internal
225
- */
226
- constructor(opts: __ExceptionOptionType<IntentInUseException, __BaseException>);
227
- }
228
- /**
229
- * @public
230
- */
231
- export declare class IntentNotFoundException extends __BaseException {
232
- readonly name: "IntentNotFoundException";
233
- readonly $fault: "client";
234
- type?: string | undefined;
235
- /**
236
- * @internal
237
- */
238
- constructor(opts: __ExceptionOptionType<IntentNotFoundException, __BaseException>);
239
- }
@@ -1787,7 +1787,7 @@ export interface DeleteAssetInput {
1787
1787
  company?: string | undefined;
1788
1788
  assetId: string;
1789
1789
  /**
1790
- * Detach the asset from referencing profile drafts instead of failing with AssetInUseException.
1790
+ * Detach the asset from referencing profile drafts instead of failing with ConflictException.
1791
1791
  * @public
1792
1792
  */
1793
1793
  detach?: boolean | undefined;
@@ -1804,7 +1804,7 @@ export interface DeleteAutomationInput {
1804
1804
  company?: string | undefined;
1805
1805
  automationId: string;
1806
1806
  /**
1807
- * Detach the automation from referencing profile drafts instead of failing with AutomationInUseException.
1807
+ * Detach the automation from referencing profile drafts instead of failing with ConflictException.
1808
1808
  * @public
1809
1809
  */
1810
1810
  detach?: boolean | undefined;
@@ -1821,7 +1821,7 @@ export interface DeleteEvaluationInput {
1821
1821
  company?: string | undefined;
1822
1822
  evaluationId: string;
1823
1823
  /**
1824
- * Detach the evaluation from referencing profile drafts instead of failing with EvaluationInUseException.
1824
+ * Detach the evaluation from referencing profile drafts instead of failing with ConflictException.
1825
1825
  * @public
1826
1826
  */
1827
1827
  detach?: boolean | undefined;
@@ -1838,7 +1838,7 @@ export interface DeleteIntentInput {
1838
1838
  company?: string | undefined;
1839
1839
  intentId: string;
1840
1840
  /**
1841
- * Detach the intent from referencing profile drafts instead of failing with IntentInUseException.
1841
+ * Detach the intent from referencing profile drafts instead of failing with ConflictException.
1842
1842
  * @public
1843
1843
  */
1844
1844
  detach?: boolean | undefined;
@@ -1,25 +1,12 @@
1
1
  import { TypeRegistry } from "@smithy/core/schema";
2
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
3
  export declare var WilmaCopilotServiceException$: StaticErrorSchema;
4
+ export declare var ConflictException$: StaticErrorSchema;
4
5
  export declare var ForbiddenException$: StaticErrorSchema;
6
+ export declare var NotFoundException$: StaticErrorSchema;
5
7
  export declare var ValidationException$: StaticErrorSchema;
6
8
  export declare var NothingToPublishException$: StaticErrorSchema;
7
9
  export declare var RevisionConflictException$: StaticErrorSchema;
8
- export declare var AssetInUseException$: StaticErrorSchema;
9
- export declare var AssetNonUniqueNameException$: StaticErrorSchema;
10
- export declare var AssetNotFoundException$: StaticErrorSchema;
11
- export declare var AutomationInUseException$: StaticErrorSchema;
12
- export declare var AutomationNonUniqueNameException$: StaticErrorSchema;
13
- export declare var AutomationNotFoundException$: StaticErrorSchema;
14
- export declare var EvaluationInUseException$: StaticErrorSchema;
15
- export declare var EvaluationNonUniqueNameException$: StaticErrorSchema;
16
- export declare var EvaluationNotFoundException$: StaticErrorSchema;
17
- export declare var IntentInUseException$: StaticErrorSchema;
18
- export declare var IntentNonUniqueNameException$: StaticErrorSchema;
19
- export declare var IntentNotFoundException$: StaticErrorSchema;
20
- export declare var ProfileNonUniqueNameException$: StaticErrorSchema;
21
- export declare var ProfileNotFoundException$: StaticErrorSchema;
22
- export declare var ProfileVersionNotFoundException$: StaticErrorSchema;
23
10
  /**
24
11
  * TypeRegistry instances containing modeled errors.
25
12
  * @internal
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wilma-copilot-client",
3
3
  "description": "@wildix/wilma-copilot-client client",
4
- "version": "1.0.10",
4
+ "version": "1.0.11",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",