@aws-sdk/client-wickr 3.986.0 → 3.988.0

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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WickrServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class WickrServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, WickrServiceException.prototype);
10
+ }
11
+ }
12
+ exports.WickrServiceException = WickrServiceException;
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidationError = exports.UnauthorizedError = exports.ResourceNotFoundError = exports.RateLimitError = exports.InternalServerError = exports.ForbiddenError = exports.BadRequestError = void 0;
4
+ const WickrServiceException_1 = require("./WickrServiceException");
5
+ class BadRequestError extends WickrServiceException_1.WickrServiceException {
6
+ name = "BadRequestError";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "BadRequestError",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, BadRequestError.prototype);
15
+ }
16
+ }
17
+ exports.BadRequestError = BadRequestError;
18
+ class ForbiddenError extends WickrServiceException_1.WickrServiceException {
19
+ name = "ForbiddenError";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "ForbiddenError",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, ForbiddenError.prototype);
28
+ }
29
+ }
30
+ exports.ForbiddenError = ForbiddenError;
31
+ class InternalServerError extends WickrServiceException_1.WickrServiceException {
32
+ name = "InternalServerError";
33
+ $fault = "server";
34
+ constructor(opts) {
35
+ super({
36
+ name: "InternalServerError",
37
+ $fault: "server",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InternalServerError.prototype);
41
+ }
42
+ }
43
+ exports.InternalServerError = InternalServerError;
44
+ class RateLimitError extends WickrServiceException_1.WickrServiceException {
45
+ name = "RateLimitError";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "RateLimitError",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, RateLimitError.prototype);
54
+ }
55
+ }
56
+ exports.RateLimitError = RateLimitError;
57
+ class ResourceNotFoundError extends WickrServiceException_1.WickrServiceException {
58
+ name = "ResourceNotFoundError";
59
+ $fault = "client";
60
+ constructor(opts) {
61
+ super({
62
+ name: "ResourceNotFoundError",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, ResourceNotFoundError.prototype);
67
+ }
68
+ }
69
+ exports.ResourceNotFoundError = ResourceNotFoundError;
70
+ class UnauthorizedError extends WickrServiceException_1.WickrServiceException {
71
+ name = "UnauthorizedError";
72
+ $fault = "client";
73
+ constructor(opts) {
74
+ super({
75
+ name: "UnauthorizedError",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, UnauthorizedError.prototype);
80
+ }
81
+ }
82
+ exports.UnauthorizedError = UnauthorizedError;
83
+ class ValidationError extends WickrServiceException_1.WickrServiceException {
84
+ name = "ValidationError";
85
+ $fault = "client";
86
+ reasons;
87
+ constructor(opts) {
88
+ super({
89
+ name: "ValidationError",
90
+ $fault: "client",
91
+ ...opts,
92
+ });
93
+ Object.setPrototypeOf(this, ValidationError.prototype);
94
+ this.reasons = opts.reasons;
95
+ }
96
+ }
97
+ exports.ValidationError = ValidationError;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2024-02-01",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.wickr",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2024-02-01",
33
35
  serviceTarget: "WickrAdminApi",
34
36
  },