@aws-sdk/client-schemas 3.975.0 → 3.978.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
@@ -1310,43 +1310,6 @@ class UpdateSchemaCommand extends smithyClient.Command
1310
1310
  .build() {
1311
1311
  }
1312
1312
 
1313
- const commands = {
1314
- CreateDiscovererCommand,
1315
- CreateRegistryCommand,
1316
- CreateSchemaCommand,
1317
- DeleteDiscovererCommand,
1318
- DeleteRegistryCommand,
1319
- DeleteResourcePolicyCommand,
1320
- DeleteSchemaCommand,
1321
- DeleteSchemaVersionCommand,
1322
- DescribeCodeBindingCommand,
1323
- DescribeDiscovererCommand,
1324
- DescribeRegistryCommand,
1325
- DescribeSchemaCommand,
1326
- ExportSchemaCommand,
1327
- GetCodeBindingSourceCommand,
1328
- GetDiscoveredSchemaCommand,
1329
- GetResourcePolicyCommand,
1330
- ListDiscoverersCommand,
1331
- ListRegistriesCommand,
1332
- ListSchemasCommand,
1333
- ListSchemaVersionsCommand,
1334
- ListTagsForResourceCommand,
1335
- PutCodeBindingCommand,
1336
- PutResourcePolicyCommand,
1337
- SearchSchemasCommand,
1338
- StartDiscovererCommand,
1339
- StopDiscovererCommand,
1340
- TagResourceCommand,
1341
- UntagResourceCommand,
1342
- UpdateDiscovererCommand,
1343
- UpdateRegistryCommand,
1344
- UpdateSchemaCommand,
1345
- };
1346
- class Schemas extends SchemasClient {
1347
- }
1348
- smithyClient.createAggregatedClient(commands, Schemas);
1349
-
1350
1313
  const paginateListDiscoverers = core.createPaginator(SchemasClient, ListDiscoverersCommand, "NextToken", "NextToken", "Limit");
1351
1314
 
1352
1315
  const paginateListRegistries = core.createPaginator(SchemasClient, ListRegistriesCommand, "NextToken", "NextToken", "Limit");
@@ -1408,6 +1371,53 @@ const waitUntilCodeBindingExists = async (params, input) => {
1408
1371
  return utilWaiter.checkExceptions(result);
1409
1372
  };
1410
1373
 
1374
+ const commands = {
1375
+ CreateDiscovererCommand,
1376
+ CreateRegistryCommand,
1377
+ CreateSchemaCommand,
1378
+ DeleteDiscovererCommand,
1379
+ DeleteRegistryCommand,
1380
+ DeleteResourcePolicyCommand,
1381
+ DeleteSchemaCommand,
1382
+ DeleteSchemaVersionCommand,
1383
+ DescribeCodeBindingCommand,
1384
+ DescribeDiscovererCommand,
1385
+ DescribeRegistryCommand,
1386
+ DescribeSchemaCommand,
1387
+ ExportSchemaCommand,
1388
+ GetCodeBindingSourceCommand,
1389
+ GetDiscoveredSchemaCommand,
1390
+ GetResourcePolicyCommand,
1391
+ ListDiscoverersCommand,
1392
+ ListRegistriesCommand,
1393
+ ListSchemasCommand,
1394
+ ListSchemaVersionsCommand,
1395
+ ListTagsForResourceCommand,
1396
+ PutCodeBindingCommand,
1397
+ PutResourcePolicyCommand,
1398
+ SearchSchemasCommand,
1399
+ StartDiscovererCommand,
1400
+ StopDiscovererCommand,
1401
+ TagResourceCommand,
1402
+ UntagResourceCommand,
1403
+ UpdateDiscovererCommand,
1404
+ UpdateRegistryCommand,
1405
+ UpdateSchemaCommand,
1406
+ };
1407
+ const paginators = {
1408
+ paginateListDiscoverers,
1409
+ paginateListRegistries,
1410
+ paginateListSchemas,
1411
+ paginateListSchemaVersions,
1412
+ paginateSearchSchemas,
1413
+ };
1414
+ const waiters = {
1415
+ waitUntilCodeBindingExists,
1416
+ };
1417
+ class Schemas extends SchemasClient {
1418
+ }
1419
+ smithyClient.createAggregatedClient(commands, Schemas, { paginators, waiters });
1420
+
1411
1421
  const DiscovererState = {
1412
1422
  STARTED: "STARTED",
1413
1423
  STOPPED: "STOPPED",
@@ -30,7 +30,13 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
30
30
  import { UpdateDiscovererCommand, } from "./commands/UpdateDiscovererCommand";
31
31
  import { UpdateRegistryCommand, } from "./commands/UpdateRegistryCommand";
32
32
  import { UpdateSchemaCommand, } from "./commands/UpdateSchemaCommand";
33
+ import { paginateListDiscoverers } from "./pagination/ListDiscoverersPaginator";
34
+ import { paginateListRegistries } from "./pagination/ListRegistriesPaginator";
35
+ import { paginateListSchemas } from "./pagination/ListSchemasPaginator";
36
+ import { paginateListSchemaVersions } from "./pagination/ListSchemaVersionsPaginator";
37
+ import { paginateSearchSchemas } from "./pagination/SearchSchemasPaginator";
33
38
  import { SchemasClient } from "./SchemasClient";
39
+ import { waitUntilCodeBindingExists } from "./waiters/waitForCodeBindingExists";
34
40
  const commands = {
35
41
  CreateDiscovererCommand,
36
42
  CreateRegistryCommand,
@@ -64,6 +70,16 @@ const commands = {
64
70
  UpdateRegistryCommand,
65
71
  UpdateSchemaCommand,
66
72
  };
73
+ const paginators = {
74
+ paginateListDiscoverers,
75
+ paginateListRegistries,
76
+ paginateListSchemas,
77
+ paginateListSchemaVersions,
78
+ paginateSearchSchemas,
79
+ };
80
+ const waiters = {
81
+ waitUntilCodeBindingExists,
82
+ };
67
83
  export class Schemas extends SchemasClient {
68
84
  }
69
- createAggregatedClient(commands, Schemas);
85
+ createAggregatedClient(commands, Schemas, { paginators, waiters });
@@ -1,4 +1,5 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
2
+ import type { WaiterResult } from "@smithy/util-waiter";
2
3
  import { CreateDiscovererCommandInput, CreateDiscovererCommandOutput } from "./commands/CreateDiscovererCommand";
3
4
  import { CreateRegistryCommandInput, CreateRegistryCommandOutput } from "./commands/CreateRegistryCommand";
4
5
  import { CreateSchemaCommandInput, CreateSchemaCommandOutput } from "./commands/CreateSchemaCommand";
@@ -222,6 +223,47 @@ export interface Schemas {
222
223
  updateSchema(args: UpdateSchemaCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSchemaCommandOutput>;
223
224
  updateSchema(args: UpdateSchemaCommandInput, cb: (err: any, data?: UpdateSchemaCommandOutput) => void): void;
224
225
  updateSchema(args: UpdateSchemaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSchemaCommandOutput) => void): void;
226
+ /**
227
+ * @see {@link ListDiscoverersCommand}
228
+ * @param args - command input.
229
+ * @param paginationConfig - optional pagination config.
230
+ * @returns AsyncIterable of {@link ListDiscoverersCommandOutput}.
231
+ */
232
+ paginateListDiscoverers(args?: ListDiscoverersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDiscoverersCommandOutput>;
233
+ /**
234
+ * @see {@link ListRegistriesCommand}
235
+ * @param args - command input.
236
+ * @param paginationConfig - optional pagination config.
237
+ * @returns AsyncIterable of {@link ListRegistriesCommandOutput}.
238
+ */
239
+ paginateListRegistries(args?: ListRegistriesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRegistriesCommandOutput>;
240
+ /**
241
+ * @see {@link ListSchemasCommand}
242
+ * @param args - command input.
243
+ * @param paginationConfig - optional pagination config.
244
+ * @returns AsyncIterable of {@link ListSchemasCommandOutput}.
245
+ */
246
+ paginateListSchemas(args: ListSchemasCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSchemasCommandOutput>;
247
+ /**
248
+ * @see {@link ListSchemaVersionsCommand}
249
+ * @param args - command input.
250
+ * @param paginationConfig - optional pagination config.
251
+ * @returns AsyncIterable of {@link ListSchemaVersionsCommandOutput}.
252
+ */
253
+ paginateListSchemaVersions(args: ListSchemaVersionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSchemaVersionsCommandOutput>;
254
+ /**
255
+ * @see {@link SearchSchemasCommand}
256
+ * @param args - command input.
257
+ * @param paginationConfig - optional pagination config.
258
+ * @returns AsyncIterable of {@link SearchSchemasCommandOutput}.
259
+ */
260
+ paginateSearchSchemas(args: SearchSchemasCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<SearchSchemasCommandOutput>;
261
+ /**
262
+ * @see {@link DescribeCodeBindingCommand}
263
+ * @param args - command input.
264
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
265
+ */
266
+ waitUntilCodeBindingExists(args: DescribeCodeBindingCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Schemas>, "client">): Promise<WaiterResult>;
225
267
  }
226
268
  /**
227
269
  * <p>Amazon EventBridge Schema Registry</p>
@@ -1,4 +1,10 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ WaiterConfiguration,
6
+ } from "@smithy/types";
7
+ import { WaiterResult } from "@smithy/util-waiter";
2
8
  import {
3
9
  CreateDiscovererCommandInput,
4
10
  CreateDiscovererCommandOutput,
@@ -532,5 +538,49 @@ export interface Schemas {
532
538
  options: __HttpHandlerOptions,
533
539
  cb: (err: any, data?: UpdateSchemaCommandOutput) => void
534
540
  ): void;
541
+ paginateListDiscoverers(
542
+ args?: ListDiscoverersCommandInput,
543
+ paginationConfig?: Pick<
544
+ PaginationConfiguration,
545
+ Exclude<keyof PaginationConfiguration, "client">
546
+ >
547
+ ): Paginator<ListDiscoverersCommandOutput>;
548
+ paginateListRegistries(
549
+ args?: ListRegistriesCommandInput,
550
+ paginationConfig?: Pick<
551
+ PaginationConfiguration,
552
+ Exclude<keyof PaginationConfiguration, "client">
553
+ >
554
+ ): Paginator<ListRegistriesCommandOutput>;
555
+ paginateListSchemas(
556
+ args: ListSchemasCommandInput,
557
+ paginationConfig?: Pick<
558
+ PaginationConfiguration,
559
+ Exclude<keyof PaginationConfiguration, "client">
560
+ >
561
+ ): Paginator<ListSchemasCommandOutput>;
562
+ paginateListSchemaVersions(
563
+ args: ListSchemaVersionsCommandInput,
564
+ paginationConfig?: Pick<
565
+ PaginationConfiguration,
566
+ Exclude<keyof PaginationConfiguration, "client">
567
+ >
568
+ ): Paginator<ListSchemaVersionsCommandOutput>;
569
+ paginateSearchSchemas(
570
+ args: SearchSchemasCommandInput,
571
+ paginationConfig?: Pick<
572
+ PaginationConfiguration,
573
+ Exclude<keyof PaginationConfiguration, "client">
574
+ >
575
+ ): Paginator<SearchSchemasCommandOutput>;
576
+ waitUntilCodeBindingExists(
577
+ args: DescribeCodeBindingCommandInput,
578
+ waiterConfig:
579
+ | number
580
+ | Pick<
581
+ WaiterConfiguration<Schemas>,
582
+ Exclude<keyof WaiterConfiguration<Schemas>, "client">
583
+ >
584
+ ): Promise<WaiterResult>;
535
585
  }
536
586
  export declare class Schemas extends SchemasClient implements Schemas {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-schemas",
3
3
  "description": "AWS SDK for JavaScript Schemas Client for Node.js, Browser and React Native",
4
- "version": "3.975.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-schemas",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.1",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.11",
42
- "@smithy/middleware-retry": "^4.4.27",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.12",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",