@aws-sdk/client-schemas 3.1074.0 → 3.1076.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.
package/dist-cjs/index.js CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultSchemasHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateDiscoverer$, CreateRegistry$, CreateSchema$, DeleteDiscoverer$, DeleteRegistry$, DeleteResourcePolicy$, DeleteSchema$, DeleteSchemaVersion$, DescribeCodeBinding$, DescribeDiscoverer$, DescribeRegistry$, DescribeSchema$, ExportSchema$, GetCodeBindingSource$, GetDiscoveredSchema$, GetResourcePolicy$, ListDiscoverers$, ListRegistries$, ListSchemas$, ListSchemaVersions$, ListTagsForResource$, PutCodeBinding$, PutResourcePolicy$, SearchSchemas$, StartDiscoverer$, StopDiscoverer$, TagResource$, UntagResource$, UpdateDiscoverer$, UpdateRegistry$, UpdateSchema$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { SchemasServiceException } = require("./models/SchemasServiceException");
18
- exports.SchemasServiceException = SchemasServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultSchemasHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "schemas",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultSchemasHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,967 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://schemas-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://schemas-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://schemas.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://schemas.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class SchemasServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, SchemasServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class BadRequestException extends SchemasServiceException {
140
+ name = "BadRequestException";
141
+ $fault = "client";
142
+ Code;
143
+ Message;
144
+ constructor(opts) {
145
+ super({
146
+ name: "BadRequestException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, BadRequestException.prototype);
151
+ this.Code = opts.Code;
152
+ this.Message = opts.Message;
153
+ }
154
+ }
155
+ class ConflictException extends SchemasServiceException {
156
+ name = "ConflictException";
157
+ $fault = "client";
158
+ Code;
159
+ Message;
160
+ constructor(opts) {
161
+ super({
162
+ name: "ConflictException",
163
+ $fault: "client",
164
+ ...opts,
165
+ });
166
+ Object.setPrototypeOf(this, ConflictException.prototype);
167
+ this.Code = opts.Code;
168
+ this.Message = opts.Message;
169
+ }
170
+ }
171
+ class ForbiddenException extends SchemasServiceException {
172
+ name = "ForbiddenException";
173
+ $fault = "client";
174
+ Code;
175
+ Message;
176
+ constructor(opts) {
177
+ super({
178
+ name: "ForbiddenException",
179
+ $fault: "client",
180
+ ...opts,
181
+ });
182
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
183
+ this.Code = opts.Code;
184
+ this.Message = opts.Message;
185
+ }
186
+ }
187
+ class InternalServerErrorException extends SchemasServiceException {
188
+ name = "InternalServerErrorException";
189
+ $fault = "server";
190
+ Code;
191
+ Message;
192
+ constructor(opts) {
193
+ super({
194
+ name: "InternalServerErrorException",
195
+ $fault: "server",
196
+ ...opts,
197
+ });
198
+ Object.setPrototypeOf(this, InternalServerErrorException.prototype);
199
+ this.Code = opts.Code;
200
+ this.Message = opts.Message;
201
+ }
202
+ }
203
+ class ServiceUnavailableException extends SchemasServiceException {
204
+ name = "ServiceUnavailableException";
205
+ $fault = "server";
206
+ Code;
207
+ Message;
208
+ constructor(opts) {
209
+ super({
210
+ name: "ServiceUnavailableException",
211
+ $fault: "server",
212
+ ...opts,
213
+ });
214
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
215
+ this.Code = opts.Code;
216
+ this.Message = opts.Message;
217
+ }
218
+ }
219
+ class UnauthorizedException extends SchemasServiceException {
220
+ name = "UnauthorizedException";
221
+ $fault = "client";
222
+ Code;
223
+ Message;
224
+ constructor(opts) {
225
+ super({
226
+ name: "UnauthorizedException",
227
+ $fault: "client",
228
+ ...opts,
229
+ });
230
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
231
+ this.Code = opts.Code;
232
+ this.Message = opts.Message;
233
+ }
234
+ }
235
+ class NotFoundException extends SchemasServiceException {
236
+ name = "NotFoundException";
237
+ $fault = "client";
238
+ Code;
239
+ Message;
240
+ constructor(opts) {
241
+ super({
242
+ name: "NotFoundException",
243
+ $fault: "client",
244
+ ...opts,
245
+ });
246
+ Object.setPrototypeOf(this, NotFoundException.prototype);
247
+ this.Code = opts.Code;
248
+ this.Message = opts.Message;
249
+ }
250
+ }
251
+ class TooManyRequestsException extends SchemasServiceException {
252
+ name = "TooManyRequestsException";
253
+ $fault = "client";
254
+ Code;
255
+ Message;
256
+ constructor(opts) {
257
+ super({
258
+ name: "TooManyRequestsException",
259
+ $fault: "client",
260
+ ...opts,
261
+ });
262
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
263
+ this.Code = opts.Code;
264
+ this.Message = opts.Message;
265
+ }
266
+ }
267
+ class GoneException extends SchemasServiceException {
268
+ name = "GoneException";
269
+ $fault = "client";
270
+ Code;
271
+ Message;
272
+ constructor(opts) {
273
+ super({
274
+ name: "GoneException",
275
+ $fault: "client",
276
+ ...opts,
277
+ });
278
+ Object.setPrototypeOf(this, GoneException.prototype);
279
+ this.Code = opts.Code;
280
+ this.Message = opts.Message;
281
+ }
282
+ }
283
+ class PreconditionFailedException extends SchemasServiceException {
284
+ name = "PreconditionFailedException";
285
+ $fault = "client";
286
+ Code;
287
+ Message;
288
+ constructor(opts) {
289
+ super({
290
+ name: "PreconditionFailedException",
291
+ $fault: "client",
292
+ ...opts,
293
+ });
294
+ Object.setPrototypeOf(this, PreconditionFailedException.prototype);
295
+ this.Code = opts.Code;
296
+ this.Message = opts.Message;
297
+ }
298
+ }
299
+
300
+ const _B = "Body";
301
+ const _BRE = "BadRequestException";
302
+ const _C = "Code";
303
+ const _CA = "CrossAccount";
304
+ const _CD = "CreationDate";
305
+ const _CDR = "CreateDiscovererRequest";
306
+ const _CDRr = "CreateDiscovererResponse";
307
+ const _CDr = "CreatedDate";
308
+ const _CDre = "CreateDiscoverer";
309
+ const _CE = "ConflictException";
310
+ const _CR = "CreateRegistry";
311
+ const _CRR = "CreateRegistryRequest";
312
+ const _CRRr = "CreateRegistryResponse";
313
+ const _CS = "CreateSchema";
314
+ const _CSR = "CreateSchemaRequest";
315
+ const _CSRr = "CreateSchemaResponse";
316
+ const _CTI = "ClientTokenId";
317
+ const _Co = "Content";
318
+ const _D = "Description";
319
+ const _DA = "DiscovererArn";
320
+ const _DCB = "DescribeCodeBinding";
321
+ const _DCBR = "DescribeCodeBindingRequest";
322
+ const _DCBRe = "DescribeCodeBindingResponse";
323
+ const _DD = "DeleteDiscoverer";
324
+ const _DDR = "DeleteDiscovererRequest";
325
+ const _DDRe = "DescribeDiscovererRequest";
326
+ const _DDRes = "DescribeDiscovererResponse";
327
+ const _DDe = "DescribeDiscoverer";
328
+ const _DI = "DiscovererId";
329
+ const _DIP = "DiscovererIdPrefix";
330
+ const _DR = "DeleteRegistry";
331
+ const _DRP = "DeleteResourcePolicy";
332
+ const _DRPR = "DeleteResourcePolicyRequest";
333
+ const _DRR = "DeleteRegistryRequest";
334
+ const _DRRe = "DescribeRegistryRequest";
335
+ const _DRRes = "DescribeRegistryResponse";
336
+ const _DRe = "DescribeRegistry";
337
+ const _DS = "DiscovererSummary";
338
+ const _DSR = "DeleteSchemaRequest";
339
+ const _DSRe = "DescribeSchemaRequest";
340
+ const _DSRes = "DescribeSchemaResponse";
341
+ const _DSV = "DeleteSchemaVersion";
342
+ const _DSVR = "DeleteSchemaVersionRequest";
343
+ const _DSe = "DeleteSchema";
344
+ const _DSes = "DescribeSchema";
345
+ const _Di = "Discoverers";
346
+ const _E = "Events";
347
+ const _ES = "ExportSchema";
348
+ const _ESR = "ExportSchemaRequest";
349
+ const _ESRx = "ExportSchemaResponse";
350
+ const _FE = "ForbiddenException";
351
+ const _GCBS = "GetCodeBindingSource";
352
+ const _GCBSR = "GetCodeBindingSourceRequest";
353
+ const _GCBSRe = "GetCodeBindingSourceResponse";
354
+ const _GDS = "GetDiscoveredSchema";
355
+ const _GDSR = "GetDiscoveredSchemaRequest";
356
+ const _GDSRe = "GetDiscoveredSchemaResponse";
357
+ const _GE = "GoneException";
358
+ const _GRP = "GetResourcePolicy";
359
+ const _GRPR = "GetResourcePolicyRequest";
360
+ const _GRPRe = "GetResourcePolicyResponse";
361
+ const _ISEE = "InternalServerErrorException";
362
+ const _K = "Keywords";
363
+ const _L = "Language";
364
+ const _LD = "ListDiscoverers";
365
+ const _LDR = "ListDiscoverersRequest";
366
+ const _LDRi = "ListDiscoverersResponse";
367
+ const _LM = "LastModified";
368
+ const _LR = "ListRegistries";
369
+ const _LRR = "ListRegistriesRequest";
370
+ const _LRRi = "ListRegistriesResponse";
371
+ const _LS = "ListSchemas";
372
+ const _LSR = "ListSchemasRequest";
373
+ const _LSRi = "ListSchemasResponse";
374
+ const _LSV = "ListSchemaVersions";
375
+ const _LSVR = "ListSchemaVersionsRequest";
376
+ const _LSVRi = "ListSchemaVersionsResponse";
377
+ const _LTFR = "ListTagsForResource";
378
+ const _LTFRR = "ListTagsForResourceRequest";
379
+ const _LTFRRi = "ListTagsForResourceResponse";
380
+ const _Li = "Limit";
381
+ const _M = "Message";
382
+ const _NFE = "NotFoundException";
383
+ const _NT = "NextToken";
384
+ const _P = "Policy";
385
+ const _PCB = "PutCodeBinding";
386
+ const _PCBR = "PutCodeBindingRequest";
387
+ const _PCBRu = "PutCodeBindingResponse";
388
+ const _PFE = "PreconditionFailedException";
389
+ const _PRP = "PutResourcePolicy";
390
+ const _PRPR = "PutResourcePolicyRequest";
391
+ const _PRPRu = "PutResourcePolicyResponse";
392
+ const _R = "Registries";
393
+ const _RA = "RegistryArn";
394
+ const _RAe = "ResourceArn";
395
+ const _RI = "RevisionId";
396
+ const _RN = "RegistryName";
397
+ const _RNP = "RegistryNamePrefix";
398
+ const _RS = "RegistrySummary";
399
+ const _S = "State";
400
+ const _SA = "SourceArn";
401
+ const _SAP = "SourceArnPrefix";
402
+ const _SAc = "SchemaArn";
403
+ const _SD = "StartDiscoverer";
404
+ const _SDR = "StartDiscovererRequest";
405
+ const _SDRt = "StartDiscovererResponse";
406
+ const _SDRto = "StopDiscovererRequest";
407
+ const _SDRtop = "StopDiscovererResponse";
408
+ const _SDt = "StopDiscoverer";
409
+ const _SN = "SchemaName";
410
+ const _SNP = "SchemaNamePrefix";
411
+ const _SS = "SchemaSummary";
412
+ const _SSR = "SearchSchemasRequest";
413
+ const _SSRe = "SearchSchemasResponse";
414
+ const _SSS = "SearchSchemaSummary";
415
+ const _SSVS = "SearchSchemaVersionSummary";
416
+ const _SSe = "SearchSchemas";
417
+ const _SUE = "ServiceUnavailableException";
418
+ const _SV = "SchemaVersion";
419
+ const _SVS = "SchemaVersionSummary";
420
+ const _SVc = "SchemaVersions";
421
+ const _Sc = "Scope";
422
+ const _Sch = "Schemas";
423
+ const _Ss = "SynthesizedJson__string";
424
+ const _St = "Status";
425
+ const _T = "Tags";
426
+ const _TK = "TagKeys";
427
+ const _TMRE = "TooManyRequestsException";
428
+ const _TR = "TagResource";
429
+ const _TRR = "TagResourceRequest";
430
+ const _Ty = "Type";
431
+ const _UD = "UpdateDiscoverer";
432
+ const _UDR = "UpdateDiscovererRequest";
433
+ const _UDRp = "UpdateDiscovererResponse";
434
+ const _UE = "UnauthorizedException";
435
+ const _UR = "UntagResource";
436
+ const _URR = "UntagResourceRequest";
437
+ const _URRp = "UpdateRegistryRequest";
438
+ const _URRpd = "UpdateRegistryResponse";
439
+ const _URp = "UpdateRegistry";
440
+ const _US = "UpdateSchema";
441
+ const _USR = "UpdateSchemaRequest";
442
+ const _USRp = "UpdateSchemaResponse";
443
+ const _VC = "VersionCount";
444
+ const _VCD = "VersionCreatedDate";
445
+ const _a = "application/json";
446
+ const _c = "client";
447
+ const _dIP = "discovererIdPrefix";
448
+ const _e = "error";
449
+ const _h = "http";
450
+ const _hE = "httpError";
451
+ const _hQ = "httpQuery";
452
+ const _jN = "jsonName";
453
+ const _k = "keywords";
454
+ const _l = "limit";
455
+ const _lODS = "__listOfDiscovererSummary";
456
+ const _lORS = "__listOfRegistrySummary";
457
+ const _lOSS = "__listOfSchemaSummary";
458
+ const _lOSSS = "__listOfSearchSchemaSummary";
459
+ const _lOSSVS = "__listOfSearchSchemaVersionSummary";
460
+ const _lOSVS = "__listOfSchemaVersionSummary";
461
+ const _mT = "mediaType";
462
+ const _nT = "nextToken";
463
+ const _rN = "registryName";
464
+ const _rNP = "registryNamePrefix";
465
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.schemas";
466
+ const _sAP = "sourceArnPrefix";
467
+ const _sNP = "schemaNamePrefix";
468
+ const _sV = "schemaVersion";
469
+ const _sc = "scope";
470
+ const _se = "server";
471
+ const _t = "tags";
472
+ const _tK = "tagKeys";
473
+ const _ty = "type";
474
+ const n0 = "com.amazonaws.schemas";
475
+ const _s_registry = TypeRegistry.for(_s);
476
+ var SchemasServiceException$ = [-3, _s, "SchemasServiceException", 0, [], []];
477
+ _s_registry.registerError(SchemasServiceException$, SchemasServiceException);
478
+ const n0_registry = TypeRegistry.for(n0);
479
+ var BadRequestException$ = [-3, n0, _BRE,
480
+ { [_e]: _c, [_hE]: 400 },
481
+ [_C, _M],
482
+ [0, 0], 2
483
+ ];
484
+ n0_registry.registerError(BadRequestException$, BadRequestException);
485
+ var ConflictException$ = [-3, n0, _CE,
486
+ { [_e]: _c, [_hE]: 409 },
487
+ [_C, _M],
488
+ [0, 0], 2
489
+ ];
490
+ n0_registry.registerError(ConflictException$, ConflictException);
491
+ var ForbiddenException$ = [-3, n0, _FE,
492
+ { [_e]: _c, [_hE]: 403 },
493
+ [_C, _M],
494
+ [0, 0], 2
495
+ ];
496
+ n0_registry.registerError(ForbiddenException$, ForbiddenException);
497
+ var GoneException$ = [-3, n0, _GE,
498
+ { [_e]: _c, [_hE]: 410 },
499
+ [_C, _M],
500
+ [0, 0], 2
501
+ ];
502
+ n0_registry.registerError(GoneException$, GoneException);
503
+ var InternalServerErrorException$ = [-3, n0, _ISEE,
504
+ { [_e]: _se, [_hE]: 500 },
505
+ [_C, _M],
506
+ [0, 0], 2
507
+ ];
508
+ n0_registry.registerError(InternalServerErrorException$, InternalServerErrorException);
509
+ var NotFoundException$ = [-3, n0, _NFE,
510
+ { [_e]: _c, [_hE]: 404 },
511
+ [_C, _M],
512
+ [0, 0], 2
513
+ ];
514
+ n0_registry.registerError(NotFoundException$, NotFoundException);
515
+ var PreconditionFailedException$ = [-3, n0, _PFE,
516
+ { [_e]: _c, [_hE]: 412 },
517
+ [_C, _M],
518
+ [0, 0], 2
519
+ ];
520
+ n0_registry.registerError(PreconditionFailedException$, PreconditionFailedException);
521
+ var ServiceUnavailableException$ = [-3, n0, _SUE,
522
+ { [_e]: _se, [_hE]: 503 },
523
+ [_C, _M],
524
+ [0, 0], 2
525
+ ];
526
+ n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
527
+ var TooManyRequestsException$ = [-3, n0, _TMRE,
528
+ { [_e]: _c, [_hE]: 429 },
529
+ [_C, _M],
530
+ [0, 0], 2
531
+ ];
532
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
533
+ var UnauthorizedException$ = [-3, n0, _UE,
534
+ { [_e]: _c, [_hE]: 401 },
535
+ [_C, _M],
536
+ [0, 0], 2
537
+ ];
538
+ n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
539
+ const errorTypeRegistries = [
540
+ _s_registry,
541
+ n0_registry,
542
+ ];
543
+ var SynthesizedJson__string = [0, n0, _Ss, { [_mT]: _a }, 0];
544
+ var CreateDiscovererRequest$ = [3, n0, _CDR,
545
+ 0,
546
+ [_SA, _D, _CA, _T],
547
+ [0, 0, 2, [128 | 0, { [_jN]: _t }]], 1
548
+ ];
549
+ var CreateDiscovererResponse$ = [3, n0, _CDRr,
550
+ 0,
551
+ [_D, _DA, _DI, _SA, _S, _CA, _T],
552
+ [0, 0, 0, 0, 0, 2, [128 | 0, { [_jN]: _t }]]
553
+ ];
554
+ var CreateRegistryRequest$ = [3, n0, _CRR,
555
+ 0,
556
+ [_RN, _D, _T],
557
+ [[0, 1], 0, [128 | 0, { [_jN]: _t }]], 1
558
+ ];
559
+ var CreateRegistryResponse$ = [3, n0, _CRRr,
560
+ 0,
561
+ [_D, _RA, _RN, _T],
562
+ [0, 0, 0, [128 | 0, { [_jN]: _t }]]
563
+ ];
564
+ var CreateSchemaRequest$ = [3, n0, _CSR,
565
+ 0,
566
+ [_Co, _RN, _SN, _Ty, _D, _T],
567
+ [0, [0, 1], [0, 1], 0, 0, [128 | 0, { [_jN]: _t }]], 4
568
+ ];
569
+ var CreateSchemaResponse$ = [3, n0, _CSRr,
570
+ 0,
571
+ [_D, _LM, _SAc, _SN, _SV, _T, _Ty, _VCD],
572
+ [0, 5, 0, 0, 0, [128 | 0, { [_jN]: _t }], 0, 5]
573
+ ];
574
+ var DeleteDiscovererRequest$ = [3, n0, _DDR,
575
+ 0,
576
+ [_DI],
577
+ [[0, 1]], 1
578
+ ];
579
+ var DeleteRegistryRequest$ = [3, n0, _DRR,
580
+ 0,
581
+ [_RN],
582
+ [[0, 1]], 1
583
+ ];
584
+ var DeleteResourcePolicyRequest$ = [3, n0, _DRPR,
585
+ 0,
586
+ [_RN],
587
+ [[0, { [_hQ]: _rN }]]
588
+ ];
589
+ var DeleteSchemaRequest$ = [3, n0, _DSR,
590
+ 0,
591
+ [_RN, _SN],
592
+ [[0, 1], [0, 1]], 2
593
+ ];
594
+ var DeleteSchemaVersionRequest$ = [3, n0, _DSVR,
595
+ 0,
596
+ [_RN, _SN, _SV],
597
+ [[0, 1], [0, 1], [0, 1]], 3
598
+ ];
599
+ var DescribeCodeBindingRequest$ = [3, n0, _DCBR,
600
+ 0,
601
+ [_L, _RN, _SN, _SV],
602
+ [[0, 1], [0, 1], [0, 1], [0, { [_hQ]: _sV }]], 3
603
+ ];
604
+ var DescribeCodeBindingResponse$ = [3, n0, _DCBRe,
605
+ 0,
606
+ [_CD, _LM, _SV, _St],
607
+ [5, 5, 0, 0]
608
+ ];
609
+ var DescribeDiscovererRequest$ = [3, n0, _DDRe,
610
+ 0,
611
+ [_DI],
612
+ [[0, 1]], 1
613
+ ];
614
+ var DescribeDiscovererResponse$ = [3, n0, _DDRes,
615
+ 0,
616
+ [_D, _DA, _DI, _SA, _S, _CA, _T],
617
+ [0, 0, 0, 0, 0, 2, [128 | 0, { [_jN]: _t }]]
618
+ ];
619
+ var DescribeRegistryRequest$ = [3, n0, _DRRe,
620
+ 0,
621
+ [_RN],
622
+ [[0, 1]], 1
623
+ ];
624
+ var DescribeRegistryResponse$ = [3, n0, _DRRes,
625
+ 0,
626
+ [_D, _RA, _RN, _T],
627
+ [0, 0, 0, [128 | 0, { [_jN]: _t }]]
628
+ ];
629
+ var DescribeSchemaRequest$ = [3, n0, _DSRe,
630
+ 0,
631
+ [_RN, _SN, _SV],
632
+ [[0, 1], [0, 1], [0, { [_hQ]: _sV }]], 2
633
+ ];
634
+ var DescribeSchemaResponse$ = [3, n0, _DSRes,
635
+ 0,
636
+ [_Co, _D, _LM, _SAc, _SN, _SV, _T, _Ty, _VCD],
637
+ [0, 0, 5, 0, 0, 0, [128 | 0, { [_jN]: _t }], 0, 5]
638
+ ];
639
+ var DiscovererSummary$ = [3, n0, _DS,
640
+ 0,
641
+ [_DA, _DI, _SA, _S, _CA, _T],
642
+ [0, 0, 0, 0, 2, [128 | 0, { [_jN]: _t }]]
643
+ ];
644
+ var ExportSchemaRequest$ = [3, n0, _ESR,
645
+ 0,
646
+ [_RN, _SN, _Ty, _SV],
647
+ [[0, 1], [0, 1], [0, { [_hQ]: _ty }], [0, { [_hQ]: _sV }]], 3
648
+ ];
649
+ var ExportSchemaResponse$ = [3, n0, _ESRx,
650
+ 0,
651
+ [_Co, _SAc, _SN, _SV, _Ty],
652
+ [0, 0, 0, 0, 0]
653
+ ];
654
+ var GetCodeBindingSourceRequest$ = [3, n0, _GCBSR,
655
+ 0,
656
+ [_L, _RN, _SN, _SV],
657
+ [[0, 1], [0, 1], [0, 1], [0, { [_hQ]: _sV }]], 3
658
+ ];
659
+ var GetCodeBindingSourceResponse$ = [3, n0, _GCBSRe,
660
+ 0,
661
+ [_B],
662
+ [[21, 16]]
663
+ ];
664
+ var GetDiscoveredSchemaRequest$ = [3, n0, _GDSR,
665
+ 0,
666
+ [_E, _Ty],
667
+ [64 | 0, 0], 2
668
+ ];
669
+ var GetDiscoveredSchemaResponse$ = [3, n0, _GDSRe,
670
+ 0,
671
+ [_Co],
672
+ [0]
673
+ ];
674
+ var GetResourcePolicyRequest$ = [3, n0, _GRPR,
675
+ 0,
676
+ [_RN],
677
+ [[0, { [_hQ]: _rN }]]
678
+ ];
679
+ var GetResourcePolicyResponse$ = [3, n0, _GRPRe,
680
+ 0,
681
+ [_P, _RI],
682
+ [[() => SynthesizedJson__string, 0], 0]
683
+ ];
684
+ var ListDiscoverersRequest$ = [3, n0, _LDR,
685
+ 0,
686
+ [_DIP, _Li, _NT, _SAP],
687
+ [[0, { [_hQ]: _dIP }], [1, { [_hQ]: _l }], [0, { [_hQ]: _nT }], [0, { [_hQ]: _sAP }]]
688
+ ];
689
+ var ListDiscoverersResponse$ = [3, n0, _LDRi,
690
+ 0,
691
+ [_Di, _NT],
692
+ [[() => __listOfDiscovererSummary, 0], 0]
693
+ ];
694
+ var ListRegistriesRequest$ = [3, n0, _LRR,
695
+ 0,
696
+ [_Li, _NT, _RNP, _Sc],
697
+ [[1, { [_hQ]: _l }], [0, { [_hQ]: _nT }], [0, { [_hQ]: _rNP }], [0, { [_hQ]: _sc }]]
698
+ ];
699
+ var ListRegistriesResponse$ = [3, n0, _LRRi,
700
+ 0,
701
+ [_NT, _R],
702
+ [0, [() => __listOfRegistrySummary, 0]]
703
+ ];
704
+ var ListSchemasRequest$ = [3, n0, _LSR,
705
+ 0,
706
+ [_RN, _Li, _NT, _SNP],
707
+ [[0, 1], [1, { [_hQ]: _l }], [0, { [_hQ]: _nT }], [0, { [_hQ]: _sNP }]], 1
708
+ ];
709
+ var ListSchemasResponse$ = [3, n0, _LSRi,
710
+ 0,
711
+ [_NT, _Sch],
712
+ [0, [() => __listOfSchemaSummary, 0]]
713
+ ];
714
+ var ListSchemaVersionsRequest$ = [3, n0, _LSVR,
715
+ 0,
716
+ [_RN, _SN, _Li, _NT],
717
+ [[0, 1], [0, 1], [1, { [_hQ]: _l }], [0, { [_hQ]: _nT }]], 2
718
+ ];
719
+ var ListSchemaVersionsResponse$ = [3, n0, _LSVRi,
720
+ 0,
721
+ [_NT, _SVc],
722
+ [0, () => __listOfSchemaVersionSummary]
723
+ ];
724
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
725
+ 0,
726
+ [_RAe],
727
+ [[0, 1]], 1
728
+ ];
729
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
730
+ 0,
731
+ [_T],
732
+ [[128 | 0, { [_jN]: _t }]]
733
+ ];
734
+ var PutCodeBindingRequest$ = [3, n0, _PCBR,
735
+ 0,
736
+ [_L, _RN, _SN, _SV],
737
+ [[0, 1], [0, 1], [0, 1], [0, { [_hQ]: _sV }]], 3
738
+ ];
739
+ var PutCodeBindingResponse$ = [3, n0, _PCBRu,
740
+ 0,
741
+ [_CD, _LM, _SV, _St],
742
+ [5, 5, 0, 0]
743
+ ];
744
+ var PutResourcePolicyRequest$ = [3, n0, _PRPR,
745
+ 0,
746
+ [_P, _RN, _RI],
747
+ [[() => SynthesizedJson__string, 0], [0, { [_hQ]: _rN }], 0], 1
748
+ ];
749
+ var PutResourcePolicyResponse$ = [3, n0, _PRPRu,
750
+ 0,
751
+ [_P, _RI],
752
+ [[() => SynthesizedJson__string, 0], 0]
753
+ ];
754
+ var RegistrySummary$ = [3, n0, _RS,
755
+ 0,
756
+ [_RA, _RN, _T],
757
+ [0, 0, [128 | 0, { [_jN]: _t }]]
758
+ ];
759
+ var SchemaSummary$ = [3, n0, _SS,
760
+ 0,
761
+ [_LM, _SAc, _SN, _T, _VC],
762
+ [5, 0, 0, [128 | 0, { [_jN]: _t }], 1]
763
+ ];
764
+ var SchemaVersionSummary$ = [3, n0, _SVS,
765
+ 0,
766
+ [_SAc, _SN, _SV, _Ty],
767
+ [0, 0, 0, 0]
768
+ ];
769
+ var SearchSchemasRequest$ = [3, n0, _SSR,
770
+ 0,
771
+ [_K, _RN, _Li, _NT],
772
+ [[0, { [_hQ]: _k }], [0, 1], [1, { [_hQ]: _l }], [0, { [_hQ]: _nT }]], 2
773
+ ];
774
+ var SearchSchemasResponse$ = [3, n0, _SSRe,
775
+ 0,
776
+ [_NT, _Sch],
777
+ [0, () => __listOfSearchSchemaSummary]
778
+ ];
779
+ var SearchSchemaSummary$ = [3, n0, _SSS,
780
+ 0,
781
+ [_RN, _SAc, _SN, _SVc],
782
+ [0, 0, 0, () => __listOfSearchSchemaVersionSummary]
783
+ ];
784
+ var SearchSchemaVersionSummary$ = [3, n0, _SSVS,
785
+ 0,
786
+ [_CDr, _SV, _Ty],
787
+ [5, 0, 0]
788
+ ];
789
+ var StartDiscovererRequest$ = [3, n0, _SDR,
790
+ 0,
791
+ [_DI],
792
+ [[0, 1]], 1
793
+ ];
794
+ var StartDiscovererResponse$ = [3, n0, _SDRt,
795
+ 0,
796
+ [_DI, _S],
797
+ [0, 0]
798
+ ];
799
+ var StopDiscovererRequest$ = [3, n0, _SDRto,
800
+ 0,
801
+ [_DI],
802
+ [[0, 1]], 1
803
+ ];
804
+ var StopDiscovererResponse$ = [3, n0, _SDRtop,
805
+ 0,
806
+ [_DI, _S],
807
+ [0, 0]
808
+ ];
809
+ var TagResourceRequest$ = [3, n0, _TRR,
810
+ 0,
811
+ [_RAe, _T],
812
+ [[0, 1], [128 | 0, { [_jN]: _t }]], 2
813
+ ];
814
+ var UntagResourceRequest$ = [3, n0, _URR,
815
+ 0,
816
+ [_RAe, _TK],
817
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
818
+ ];
819
+ var UpdateDiscovererRequest$ = [3, n0, _UDR,
820
+ 0,
821
+ [_DI, _D, _CA],
822
+ [[0, 1], 0, 2], 1
823
+ ];
824
+ var UpdateDiscovererResponse$ = [3, n0, _UDRp,
825
+ 0,
826
+ [_D, _DA, _DI, _SA, _S, _CA, _T],
827
+ [0, 0, 0, 0, 0, 2, [128 | 0, { [_jN]: _t }]]
828
+ ];
829
+ var UpdateRegistryRequest$ = [3, n0, _URRp,
830
+ 0,
831
+ [_RN, _D],
832
+ [[0, 1], 0], 1
833
+ ];
834
+ var UpdateRegistryResponse$ = [3, n0, _URRpd,
835
+ 0,
836
+ [_D, _RA, _RN, _T],
837
+ [0, 0, 0, [128 | 0, { [_jN]: _t }]]
838
+ ];
839
+ var UpdateSchemaRequest$ = [3, n0, _USR,
840
+ 0,
841
+ [_RN, _SN, _CTI, _Co, _D, _Ty],
842
+ [[0, 1], [0, 1], [0, 4], 0, 0, 0], 2
843
+ ];
844
+ var UpdateSchemaResponse$ = [3, n0, _USRp,
845
+ 0,
846
+ [_D, _LM, _SAc, _SN, _SV, _T, _Ty, _VCD],
847
+ [0, 5, 0, 0, 0, [128 | 0, { [_jN]: _t }], 0, 5]
848
+ ];
849
+ var __Unit = "unit";
850
+ var __listOfDiscovererSummary = [1, n0, _lODS,
851
+ 0, [() => DiscovererSummary$,
852
+ 0]
853
+ ];
854
+ var __listOfRegistrySummary = [1, n0, _lORS,
855
+ 0, [() => RegistrySummary$,
856
+ 0]
857
+ ];
858
+ var __listOfSchemaSummary = [1, n0, _lOSS,
859
+ 0, [() => SchemaSummary$,
860
+ 0]
861
+ ];
862
+ var __listOfSchemaVersionSummary = [1, n0, _lOSVS,
863
+ 0, () => SchemaVersionSummary$
864
+ ];
865
+ var __listOfSearchSchemaSummary = [1, n0, _lOSSS,
866
+ 0, () => SearchSchemaSummary$
867
+ ];
868
+ var __listOfSearchSchemaVersionSummary = [1, n0, _lOSSVS,
869
+ 0, () => SearchSchemaVersionSummary$
870
+ ];
871
+ var CreateDiscoverer$ = [9, n0, _CDre,
872
+ { [_h]: ["POST", "/v1/discoverers", 201] }, () => CreateDiscovererRequest$, () => CreateDiscovererResponse$
873
+ ];
874
+ var CreateRegistry$ = [9, n0, _CR,
875
+ { [_h]: ["POST", "/v1/registries/name/{RegistryName}", 201] }, () => CreateRegistryRequest$, () => CreateRegistryResponse$
876
+ ];
877
+ var CreateSchema$ = [9, n0, _CS,
878
+ { [_h]: ["POST", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}", 201] }, () => CreateSchemaRequest$, () => CreateSchemaResponse$
879
+ ];
880
+ var DeleteDiscoverer$ = [9, n0, _DD,
881
+ { [_h]: ["DELETE", "/v1/discoverers/id/{DiscovererId}", 204] }, () => DeleteDiscovererRequest$, () => __Unit
882
+ ];
883
+ var DeleteRegistry$ = [9, n0, _DR,
884
+ { [_h]: ["DELETE", "/v1/registries/name/{RegistryName}", 204] }, () => DeleteRegistryRequest$, () => __Unit
885
+ ];
886
+ var DeleteResourcePolicy$ = [9, n0, _DRP,
887
+ { [_h]: ["DELETE", "/v1/policy", 204] }, () => DeleteResourcePolicyRequest$, () => __Unit
888
+ ];
889
+ var DeleteSchema$ = [9, n0, _DSe,
890
+ { [_h]: ["DELETE", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}", 204] }, () => DeleteSchemaRequest$, () => __Unit
891
+ ];
892
+ var DeleteSchemaVersion$ = [9, n0, _DSV,
893
+ { [_h]: ["DELETE", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/version/{SchemaVersion}", 204] }, () => DeleteSchemaVersionRequest$, () => __Unit
894
+ ];
895
+ var DescribeCodeBinding$ = [9, n0, _DCB,
896
+ { [_h]: ["GET", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}", 200] }, () => DescribeCodeBindingRequest$, () => DescribeCodeBindingResponse$
897
+ ];
898
+ var DescribeDiscoverer$ = [9, n0, _DDe,
899
+ { [_h]: ["GET", "/v1/discoverers/id/{DiscovererId}", 200] }, () => DescribeDiscovererRequest$, () => DescribeDiscovererResponse$
900
+ ];
901
+ var DescribeRegistry$ = [9, n0, _DRe,
902
+ { [_h]: ["GET", "/v1/registries/name/{RegistryName}", 200] }, () => DescribeRegistryRequest$, () => DescribeRegistryResponse$
903
+ ];
904
+ var DescribeSchema$ = [9, n0, _DSes,
905
+ { [_h]: ["GET", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}", 200] }, () => DescribeSchemaRequest$, () => DescribeSchemaResponse$
906
+ ];
907
+ var ExportSchema$ = [9, n0, _ES,
908
+ { [_h]: ["GET", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/export", 200] }, () => ExportSchemaRequest$, () => ExportSchemaResponse$
909
+ ];
910
+ var GetCodeBindingSource$ = [9, n0, _GCBS,
911
+ { [_h]: ["GET", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}/source", 200] }, () => GetCodeBindingSourceRequest$, () => GetCodeBindingSourceResponse$
912
+ ];
913
+ var GetDiscoveredSchema$ = [9, n0, _GDS,
914
+ { [_h]: ["POST", "/v1/discover", 200] }, () => GetDiscoveredSchemaRequest$, () => GetDiscoveredSchemaResponse$
915
+ ];
916
+ var GetResourcePolicy$ = [9, n0, _GRP,
917
+ { [_h]: ["GET", "/v1/policy", 200] }, () => GetResourcePolicyRequest$, () => GetResourcePolicyResponse$
918
+ ];
919
+ var ListDiscoverers$ = [9, n0, _LD,
920
+ { [_h]: ["GET", "/v1/discoverers", 200] }, () => ListDiscoverersRequest$, () => ListDiscoverersResponse$
921
+ ];
922
+ var ListRegistries$ = [9, n0, _LR,
923
+ { [_h]: ["GET", "/v1/registries", 200] }, () => ListRegistriesRequest$, () => ListRegistriesResponse$
924
+ ];
925
+ var ListSchemas$ = [9, n0, _LS,
926
+ { [_h]: ["GET", "/v1/registries/name/{RegistryName}/schemas", 200] }, () => ListSchemasRequest$, () => ListSchemasResponse$
927
+ ];
928
+ var ListSchemaVersions$ = [9, n0, _LSV,
929
+ { [_h]: ["GET", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/versions", 200] }, () => ListSchemaVersionsRequest$, () => ListSchemaVersionsResponse$
930
+ ];
931
+ var ListTagsForResource$ = [9, n0, _LTFR,
932
+ { [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
933
+ ];
934
+ var PutCodeBinding$ = [9, n0, _PCB,
935
+ { [_h]: ["POST", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}", 202] }, () => PutCodeBindingRequest$, () => PutCodeBindingResponse$
936
+ ];
937
+ var PutResourcePolicy$ = [9, n0, _PRP,
938
+ { [_h]: ["PUT", "/v1/policy", 200] }, () => PutResourcePolicyRequest$, () => PutResourcePolicyResponse$
939
+ ];
940
+ var SearchSchemas$ = [9, n0, _SSe,
941
+ { [_h]: ["GET", "/v1/registries/name/{RegistryName}/schemas/search", 200] }, () => SearchSchemasRequest$, () => SearchSchemasResponse$
942
+ ];
943
+ var StartDiscoverer$ = [9, n0, _SD,
944
+ { [_h]: ["POST", "/v1/discoverers/id/{DiscovererId}/start", 200] }, () => StartDiscovererRequest$, () => StartDiscovererResponse$
945
+ ];
946
+ var StopDiscoverer$ = [9, n0, _SDt,
947
+ { [_h]: ["POST", "/v1/discoverers/id/{DiscovererId}/stop", 200] }, () => StopDiscovererRequest$, () => StopDiscovererResponse$
948
+ ];
949
+ var TagResource$ = [9, n0, _TR,
950
+ { [_h]: ["POST", "/tags/{ResourceArn}", 204] }, () => TagResourceRequest$, () => __Unit
951
+ ];
952
+ var UntagResource$ = [9, n0, _UR,
953
+ { [_h]: ["DELETE", "/tags/{ResourceArn}", 204] }, () => UntagResourceRequest$, () => __Unit
954
+ ];
955
+ var UpdateDiscoverer$ = [9, n0, _UD,
956
+ { [_h]: ["PUT", "/v1/discoverers/id/{DiscovererId}", 200] }, () => UpdateDiscovererRequest$, () => UpdateDiscovererResponse$
957
+ ];
958
+ var UpdateRegistry$ = [9, n0, _URp,
959
+ { [_h]: ["PUT", "/v1/registries/name/{RegistryName}", 200] }, () => UpdateRegistryRequest$, () => UpdateRegistryResponse$
960
+ ];
961
+ var UpdateSchema$ = [9, n0, _US,
962
+ { [_h]: ["PUT", "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}", 200] }, () => UpdateSchemaRequest$, () => UpdateSchemaResponse$
963
+ ];
964
+
965
+ const getRuntimeConfig$1 = (config) => {
966
+ return {
967
+ apiVersion: "2019-12-02",
968
+ base64Decoder: config?.base64Decoder ?? fromBase64,
969
+ base64Encoder: config?.base64Encoder ?? toBase64,
970
+ disableHostPrefix: config?.disableHostPrefix ?? false,
971
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
972
+ extensions: config?.extensions ?? [],
973
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSchemasHttpAuthSchemeProvider,
974
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
975
+ {
976
+ schemeId: "aws.auth#sigv4",
977
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
978
+ signer: new AwsSdkSigV4Signer(),
979
+ },
980
+ ],
981
+ logger: config?.logger ?? new NoOpLogger(),
982
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
983
+ protocolSettings: config?.protocolSettings ?? {
984
+ defaultNamespace: "com.amazonaws.schemas",
985
+ errorTypeRegistries,
986
+ version: "2019-12-02",
987
+ serviceTarget: "schemas",
988
+ },
989
+ serviceId: config?.serviceId ?? "schemas",
990
+ urlParser: config?.urlParser ?? parseUrl,
991
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
992
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
993
+ };
994
+ };
995
+
996
+ const getRuntimeConfig = (config) => {
997
+ emitWarningIfUnsupportedVersion(process.version);
998
+ const defaultsMode = resolveDefaultsModeConfig(config);
999
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
1000
+ const clientSharedValues = getRuntimeConfig$1(config);
1001
+ emitWarningIfUnsupportedVersion$1(process.version);
1002
+ const loaderConfig = {
1003
+ profile: config?.profile,
1004
+ logger: clientSharedValues.logger,
1005
+ };
1006
+ return {
1007
+ ...clientSharedValues,
1008
+ ...config,
1009
+ runtime: "node",
1010
+ defaultsMode,
1011
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1012
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1013
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1014
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1015
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1016
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
1017
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
1018
+ retryMode: config?.retryMode ??
1019
+ loadConfig({
1020
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1021
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1022
+ }, config),
1023
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1024
+ streamCollector: config?.streamCollector ?? streamCollector,
1025
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1026
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1027
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
1028
+ };
1029
+ };
1030
+
34
1031
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
1032
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
1033
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -605,42 +1602,157 @@ const CodeGenerationStatus = {
605
1602
  CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
606
1603
  };
607
1604
 
1605
+ exports.BadRequestException = BadRequestException;
1606
+ exports.BadRequestException$ = BadRequestException$;
608
1607
  exports.CodeGenerationStatus = CodeGenerationStatus;
1608
+ exports.ConflictException = ConflictException;
1609
+ exports.ConflictException$ = ConflictException$;
1610
+ exports.CreateDiscoverer$ = CreateDiscoverer$;
609
1611
  exports.CreateDiscovererCommand = CreateDiscovererCommand;
1612
+ exports.CreateDiscovererRequest$ = CreateDiscovererRequest$;
1613
+ exports.CreateDiscovererResponse$ = CreateDiscovererResponse$;
1614
+ exports.CreateRegistry$ = CreateRegistry$;
610
1615
  exports.CreateRegistryCommand = CreateRegistryCommand;
1616
+ exports.CreateRegistryRequest$ = CreateRegistryRequest$;
1617
+ exports.CreateRegistryResponse$ = CreateRegistryResponse$;
1618
+ exports.CreateSchema$ = CreateSchema$;
611
1619
  exports.CreateSchemaCommand = CreateSchemaCommand;
1620
+ exports.CreateSchemaRequest$ = CreateSchemaRequest$;
1621
+ exports.CreateSchemaResponse$ = CreateSchemaResponse$;
1622
+ exports.DeleteDiscoverer$ = DeleteDiscoverer$;
612
1623
  exports.DeleteDiscovererCommand = DeleteDiscovererCommand;
1624
+ exports.DeleteDiscovererRequest$ = DeleteDiscovererRequest$;
1625
+ exports.DeleteRegistry$ = DeleteRegistry$;
613
1626
  exports.DeleteRegistryCommand = DeleteRegistryCommand;
1627
+ exports.DeleteRegistryRequest$ = DeleteRegistryRequest$;
1628
+ exports.DeleteResourcePolicy$ = DeleteResourcePolicy$;
614
1629
  exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
1630
+ exports.DeleteResourcePolicyRequest$ = DeleteResourcePolicyRequest$;
1631
+ exports.DeleteSchema$ = DeleteSchema$;
615
1632
  exports.DeleteSchemaCommand = DeleteSchemaCommand;
1633
+ exports.DeleteSchemaRequest$ = DeleteSchemaRequest$;
1634
+ exports.DeleteSchemaVersion$ = DeleteSchemaVersion$;
616
1635
  exports.DeleteSchemaVersionCommand = DeleteSchemaVersionCommand;
1636
+ exports.DeleteSchemaVersionRequest$ = DeleteSchemaVersionRequest$;
1637
+ exports.DescribeCodeBinding$ = DescribeCodeBinding$;
617
1638
  exports.DescribeCodeBindingCommand = DescribeCodeBindingCommand;
1639
+ exports.DescribeCodeBindingRequest$ = DescribeCodeBindingRequest$;
1640
+ exports.DescribeCodeBindingResponse$ = DescribeCodeBindingResponse$;
1641
+ exports.DescribeDiscoverer$ = DescribeDiscoverer$;
618
1642
  exports.DescribeDiscovererCommand = DescribeDiscovererCommand;
1643
+ exports.DescribeDiscovererRequest$ = DescribeDiscovererRequest$;
1644
+ exports.DescribeDiscovererResponse$ = DescribeDiscovererResponse$;
1645
+ exports.DescribeRegistry$ = DescribeRegistry$;
619
1646
  exports.DescribeRegistryCommand = DescribeRegistryCommand;
1647
+ exports.DescribeRegistryRequest$ = DescribeRegistryRequest$;
1648
+ exports.DescribeRegistryResponse$ = DescribeRegistryResponse$;
1649
+ exports.DescribeSchema$ = DescribeSchema$;
620
1650
  exports.DescribeSchemaCommand = DescribeSchemaCommand;
1651
+ exports.DescribeSchemaRequest$ = DescribeSchemaRequest$;
1652
+ exports.DescribeSchemaResponse$ = DescribeSchemaResponse$;
621
1653
  exports.DiscovererState = DiscovererState;
1654
+ exports.DiscovererSummary$ = DiscovererSummary$;
1655
+ exports.ExportSchema$ = ExportSchema$;
622
1656
  exports.ExportSchemaCommand = ExportSchemaCommand;
1657
+ exports.ExportSchemaRequest$ = ExportSchemaRequest$;
1658
+ exports.ExportSchemaResponse$ = ExportSchemaResponse$;
1659
+ exports.ForbiddenException = ForbiddenException;
1660
+ exports.ForbiddenException$ = ForbiddenException$;
1661
+ exports.GetCodeBindingSource$ = GetCodeBindingSource$;
623
1662
  exports.GetCodeBindingSourceCommand = GetCodeBindingSourceCommand;
1663
+ exports.GetCodeBindingSourceRequest$ = GetCodeBindingSourceRequest$;
1664
+ exports.GetCodeBindingSourceResponse$ = GetCodeBindingSourceResponse$;
1665
+ exports.GetDiscoveredSchema$ = GetDiscoveredSchema$;
624
1666
  exports.GetDiscoveredSchemaCommand = GetDiscoveredSchemaCommand;
1667
+ exports.GetDiscoveredSchemaRequest$ = GetDiscoveredSchemaRequest$;
1668
+ exports.GetDiscoveredSchemaResponse$ = GetDiscoveredSchemaResponse$;
1669
+ exports.GetResourcePolicy$ = GetResourcePolicy$;
625
1670
  exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
1671
+ exports.GetResourcePolicyRequest$ = GetResourcePolicyRequest$;
1672
+ exports.GetResourcePolicyResponse$ = GetResourcePolicyResponse$;
1673
+ exports.GoneException = GoneException;
1674
+ exports.GoneException$ = GoneException$;
1675
+ exports.InternalServerErrorException = InternalServerErrorException;
1676
+ exports.InternalServerErrorException$ = InternalServerErrorException$;
1677
+ exports.ListDiscoverers$ = ListDiscoverers$;
626
1678
  exports.ListDiscoverersCommand = ListDiscoverersCommand;
1679
+ exports.ListDiscoverersRequest$ = ListDiscoverersRequest$;
1680
+ exports.ListDiscoverersResponse$ = ListDiscoverersResponse$;
1681
+ exports.ListRegistries$ = ListRegistries$;
627
1682
  exports.ListRegistriesCommand = ListRegistriesCommand;
1683
+ exports.ListRegistriesRequest$ = ListRegistriesRequest$;
1684
+ exports.ListRegistriesResponse$ = ListRegistriesResponse$;
1685
+ exports.ListSchemaVersions$ = ListSchemaVersions$;
628
1686
  exports.ListSchemaVersionsCommand = ListSchemaVersionsCommand;
1687
+ exports.ListSchemaVersionsRequest$ = ListSchemaVersionsRequest$;
1688
+ exports.ListSchemaVersionsResponse$ = ListSchemaVersionsResponse$;
1689
+ exports.ListSchemas$ = ListSchemas$;
629
1690
  exports.ListSchemasCommand = ListSchemasCommand;
1691
+ exports.ListSchemasRequest$ = ListSchemasRequest$;
1692
+ exports.ListSchemasResponse$ = ListSchemasResponse$;
1693
+ exports.ListTagsForResource$ = ListTagsForResource$;
630
1694
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1695
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1696
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1697
+ exports.NotFoundException = NotFoundException;
1698
+ exports.NotFoundException$ = NotFoundException$;
1699
+ exports.PreconditionFailedException = PreconditionFailedException;
1700
+ exports.PreconditionFailedException$ = PreconditionFailedException$;
1701
+ exports.PutCodeBinding$ = PutCodeBinding$;
631
1702
  exports.PutCodeBindingCommand = PutCodeBindingCommand;
1703
+ exports.PutCodeBindingRequest$ = PutCodeBindingRequest$;
1704
+ exports.PutCodeBindingResponse$ = PutCodeBindingResponse$;
1705
+ exports.PutResourcePolicy$ = PutResourcePolicy$;
632
1706
  exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
1707
+ exports.PutResourcePolicyRequest$ = PutResourcePolicyRequest$;
1708
+ exports.PutResourcePolicyResponse$ = PutResourcePolicyResponse$;
1709
+ exports.RegistrySummary$ = RegistrySummary$;
1710
+ exports.SchemaSummary$ = SchemaSummary$;
1711
+ exports.SchemaVersionSummary$ = SchemaVersionSummary$;
633
1712
  exports.Schemas = Schemas;
634
1713
  exports.SchemasClient = SchemasClient;
1714
+ exports.SchemasServiceException = SchemasServiceException;
1715
+ exports.SchemasServiceException$ = SchemasServiceException$;
1716
+ exports.SearchSchemaSummary$ = SearchSchemaSummary$;
1717
+ exports.SearchSchemaVersionSummary$ = SearchSchemaVersionSummary$;
1718
+ exports.SearchSchemas$ = SearchSchemas$;
635
1719
  exports.SearchSchemasCommand = SearchSchemasCommand;
1720
+ exports.SearchSchemasRequest$ = SearchSchemasRequest$;
1721
+ exports.SearchSchemasResponse$ = SearchSchemasResponse$;
1722
+ exports.ServiceUnavailableException = ServiceUnavailableException;
1723
+ exports.ServiceUnavailableException$ = ServiceUnavailableException$;
1724
+ exports.StartDiscoverer$ = StartDiscoverer$;
636
1725
  exports.StartDiscovererCommand = StartDiscovererCommand;
1726
+ exports.StartDiscovererRequest$ = StartDiscovererRequest$;
1727
+ exports.StartDiscovererResponse$ = StartDiscovererResponse$;
1728
+ exports.StopDiscoverer$ = StopDiscoverer$;
637
1729
  exports.StopDiscovererCommand = StopDiscovererCommand;
1730
+ exports.StopDiscovererRequest$ = StopDiscovererRequest$;
1731
+ exports.StopDiscovererResponse$ = StopDiscovererResponse$;
1732
+ exports.TagResource$ = TagResource$;
638
1733
  exports.TagResourceCommand = TagResourceCommand;
1734
+ exports.TagResourceRequest$ = TagResourceRequest$;
1735
+ exports.TooManyRequestsException = TooManyRequestsException;
1736
+ exports.TooManyRequestsException$ = TooManyRequestsException$;
639
1737
  exports.Type = Type;
1738
+ exports.UnauthorizedException = UnauthorizedException;
1739
+ exports.UnauthorizedException$ = UnauthorizedException$;
1740
+ exports.UntagResource$ = UntagResource$;
640
1741
  exports.UntagResourceCommand = UntagResourceCommand;
1742
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1743
+ exports.UpdateDiscoverer$ = UpdateDiscoverer$;
641
1744
  exports.UpdateDiscovererCommand = UpdateDiscovererCommand;
1745
+ exports.UpdateDiscovererRequest$ = UpdateDiscovererRequest$;
1746
+ exports.UpdateDiscovererResponse$ = UpdateDiscovererResponse$;
1747
+ exports.UpdateRegistry$ = UpdateRegistry$;
642
1748
  exports.UpdateRegistryCommand = UpdateRegistryCommand;
1749
+ exports.UpdateRegistryRequest$ = UpdateRegistryRequest$;
1750
+ exports.UpdateRegistryResponse$ = UpdateRegistryResponse$;
1751
+ exports.UpdateSchema$ = UpdateSchema$;
643
1752
  exports.UpdateSchemaCommand = UpdateSchemaCommand;
1753
+ exports.UpdateSchemaRequest$ = UpdateSchemaRequest$;
1754
+ exports.UpdateSchemaResponse$ = UpdateSchemaResponse$;
1755
+ exports.errorTypeRegistries = errorTypeRegistries;
644
1756
  exports.paginateListDiscoverers = paginateListDiscoverers;
645
1757
  exports.paginateListRegistries = paginateListRegistries;
646
1758
  exports.paginateListSchemaVersions = paginateListSchemaVersions;