@aws-sdk/client-signer 3.975.0 → 3.980.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
@@ -1075,31 +1075,6 @@ class UntagResourceCommand extends smithyClient.Command
1075
1075
  .build() {
1076
1076
  }
1077
1077
 
1078
- const commands = {
1079
- AddProfilePermissionCommand,
1080
- CancelSigningProfileCommand,
1081
- DescribeSigningJobCommand,
1082
- GetRevocationStatusCommand,
1083
- GetSigningPlatformCommand,
1084
- GetSigningProfileCommand,
1085
- ListProfilePermissionsCommand,
1086
- ListSigningJobsCommand,
1087
- ListSigningPlatformsCommand,
1088
- ListSigningProfilesCommand,
1089
- ListTagsForResourceCommand,
1090
- PutSigningProfileCommand,
1091
- RemoveProfilePermissionCommand,
1092
- RevokeSignatureCommand,
1093
- RevokeSigningProfileCommand,
1094
- SignPayloadCommand,
1095
- StartSigningJobCommand,
1096
- TagResourceCommand,
1097
- UntagResourceCommand,
1098
- };
1099
- class Signer extends SignerClient {
1100
- }
1101
- smithyClient.createAggregatedClient(commands, Signer);
1102
-
1103
1078
  const paginateListSigningJobs = core.createPaginator(SignerClient, ListSigningJobsCommand, "nextToken", "nextToken", "maxResults");
1104
1079
 
1105
1080
  const paginateListSigningPlatforms = core.createPaginator(SignerClient, ListSigningPlatformsCommand, "nextToken", "nextToken", "maxResults");
@@ -1148,6 +1123,39 @@ const waitUntilSuccessfulSigningJob = async (params, input) => {
1148
1123
  return utilWaiter.checkExceptions(result);
1149
1124
  };
1150
1125
 
1126
+ const commands = {
1127
+ AddProfilePermissionCommand,
1128
+ CancelSigningProfileCommand,
1129
+ DescribeSigningJobCommand,
1130
+ GetRevocationStatusCommand,
1131
+ GetSigningPlatformCommand,
1132
+ GetSigningProfileCommand,
1133
+ ListProfilePermissionsCommand,
1134
+ ListSigningJobsCommand,
1135
+ ListSigningPlatformsCommand,
1136
+ ListSigningProfilesCommand,
1137
+ ListTagsForResourceCommand,
1138
+ PutSigningProfileCommand,
1139
+ RemoveProfilePermissionCommand,
1140
+ RevokeSignatureCommand,
1141
+ RevokeSigningProfileCommand,
1142
+ SignPayloadCommand,
1143
+ StartSigningJobCommand,
1144
+ TagResourceCommand,
1145
+ UntagResourceCommand,
1146
+ };
1147
+ const paginators = {
1148
+ paginateListSigningJobs,
1149
+ paginateListSigningPlatforms,
1150
+ paginateListSigningProfiles,
1151
+ };
1152
+ const waiters = {
1153
+ waitUntilSuccessfulSigningJob,
1154
+ };
1155
+ class Signer extends SignerClient {
1156
+ }
1157
+ smithyClient.createAggregatedClient(commands, Signer, { paginators, waiters });
1158
+
1151
1159
  const Category = {
1152
1160
  AWSIoT: "AWSIoT",
1153
1161
  };
package/dist-es/Signer.js CHANGED
@@ -18,7 +18,11 @@ import { SignPayloadCommand } from "./commands/SignPayloadCommand";
18
18
  import { StartSigningJobCommand, } from "./commands/StartSigningJobCommand";
19
19
  import { TagResourceCommand } from "./commands/TagResourceCommand";
20
20
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
21
+ import { paginateListSigningJobs } from "./pagination/ListSigningJobsPaginator";
22
+ import { paginateListSigningPlatforms } from "./pagination/ListSigningPlatformsPaginator";
23
+ import { paginateListSigningProfiles } from "./pagination/ListSigningProfilesPaginator";
21
24
  import { SignerClient } from "./SignerClient";
25
+ import { waitUntilSuccessfulSigningJob } from "./waiters/waitForSuccessfulSigningJob";
22
26
  const commands = {
23
27
  AddProfilePermissionCommand,
24
28
  CancelSigningProfileCommand,
@@ -40,6 +44,14 @@ const commands = {
40
44
  TagResourceCommand,
41
45
  UntagResourceCommand,
42
46
  };
47
+ const paginators = {
48
+ paginateListSigningJobs,
49
+ paginateListSigningPlatforms,
50
+ paginateListSigningProfiles,
51
+ };
52
+ const waiters = {
53
+ waitUntilSuccessfulSigningJob,
54
+ };
43
55
  export class Signer extends SignerClient {
44
56
  }
45
- createAggregatedClient(commands, Signer);
57
+ createAggregatedClient(commands, Signer, { 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 { AddProfilePermissionCommandInput, AddProfilePermissionCommandOutput } from "./commands/AddProfilePermissionCommand";
3
4
  import { CancelSigningProfileCommandInput, CancelSigningProfileCommandOutput } from "./commands/CancelSigningProfileCommand";
4
5
  import { DescribeSigningJobCommandInput, DescribeSigningJobCommandOutput } from "./commands/DescribeSigningJobCommand";
@@ -137,6 +138,33 @@ export interface Signer {
137
138
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
138
139
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
139
140
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
141
+ /**
142
+ * @see {@link ListSigningJobsCommand}
143
+ * @param args - command input.
144
+ * @param paginationConfig - optional pagination config.
145
+ * @returns AsyncIterable of {@link ListSigningJobsCommandOutput}.
146
+ */
147
+ paginateListSigningJobs(args?: ListSigningJobsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSigningJobsCommandOutput>;
148
+ /**
149
+ * @see {@link ListSigningPlatformsCommand}
150
+ * @param args - command input.
151
+ * @param paginationConfig - optional pagination config.
152
+ * @returns AsyncIterable of {@link ListSigningPlatformsCommandOutput}.
153
+ */
154
+ paginateListSigningPlatforms(args?: ListSigningPlatformsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSigningPlatformsCommandOutput>;
155
+ /**
156
+ * @see {@link ListSigningProfilesCommand}
157
+ * @param args - command input.
158
+ * @param paginationConfig - optional pagination config.
159
+ * @returns AsyncIterable of {@link ListSigningProfilesCommandOutput}.
160
+ */
161
+ paginateListSigningProfiles(args?: ListSigningProfilesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSigningProfilesCommandOutput>;
162
+ /**
163
+ * @see {@link DescribeSigningJobCommand}
164
+ * @param args - command input.
165
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
166
+ */
167
+ waitUntilSuccessfulSigningJob(args: DescribeSigningJobCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Signer>, "client">): Promise<WaiterResult>;
140
168
  }
141
169
  /**
142
170
  * <p>AWS Signer is a fully managed code-signing service to help you ensure the trust and
@@ -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
  AddProfilePermissionCommandInput,
4
10
  AddProfilePermissionCommandOutput,
@@ -327,5 +333,35 @@ export interface Signer {
327
333
  options: __HttpHandlerOptions,
328
334
  cb: (err: any, data?: UntagResourceCommandOutput) => void
329
335
  ): void;
336
+ paginateListSigningJobs(
337
+ args?: ListSigningJobsCommandInput,
338
+ paginationConfig?: Pick<
339
+ PaginationConfiguration,
340
+ Exclude<keyof PaginationConfiguration, "client">
341
+ >
342
+ ): Paginator<ListSigningJobsCommandOutput>;
343
+ paginateListSigningPlatforms(
344
+ args?: ListSigningPlatformsCommandInput,
345
+ paginationConfig?: Pick<
346
+ PaginationConfiguration,
347
+ Exclude<keyof PaginationConfiguration, "client">
348
+ >
349
+ ): Paginator<ListSigningPlatformsCommandOutput>;
350
+ paginateListSigningProfiles(
351
+ args?: ListSigningProfilesCommandInput,
352
+ paginationConfig?: Pick<
353
+ PaginationConfiguration,
354
+ Exclude<keyof PaginationConfiguration, "client">
355
+ >
356
+ ): Paginator<ListSigningProfilesCommandOutput>;
357
+ waitUntilSuccessfulSigningJob(
358
+ args: DescribeSigningJobCommandInput,
359
+ waiterConfig:
360
+ | number
361
+ | Pick<
362
+ WaiterConfiguration<Signer>,
363
+ Exclude<keyof WaiterConfiguration<Signer>, "client">
364
+ >
365
+ ): Promise<WaiterResult>;
330
366
  }
331
367
  export declare class Signer extends SignerClient implements Signer {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-signer",
3
3
  "description": "AWS SDK for JavaScript Signer Client for Node.js, Browser and React Native",
4
- "version": "3.975.0",
4
+ "version": "3.980.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-signer",
@@ -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",
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",
24
+ "@aws-sdk/core": "^3.973.5",
25
+ "@aws-sdk/credential-provider-node": "^3.972.4",
26
+ "@aws-sdk/middleware-host-header": "^3.972.3",
27
+ "@aws-sdk/middleware-logger": "^3.972.3",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.5",
30
+ "@aws-sdk/region-config-resolver": "^3.972.3",
31
+ "@aws-sdk/types": "^3.973.1",
32
+ "@aws-sdk/util-endpoints": "3.980.0",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.3",
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",