@aws-sdk/client-pinpoint-sms-voice 3.1137.0 → 3.1138.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
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1136.0";
72
+ var version = "3.1137.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -295,10 +295,10 @@ const _hQ = "httpQuery";
295
295
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.pinpointsmsvoice";
296
296
  const _se = "server";
297
297
  const n0 = "com.amazonaws.pinpointsmsvoice";
298
- const _s_registry = TypeRegistry.for(_s);
298
+ const _s_registry = new TypeRegistry(_s);
299
299
  var PinpointSMSVoiceServiceException$ = [-3, _s, "PinpointSMSVoiceServiceException", 0, [], []];
300
300
  _s_registry.registerError(PinpointSMSVoiceServiceException$, PinpointSMSVoiceServiceException);
301
- const n0_registry = TypeRegistry.for(n0);
301
+ const n0_registry = new TypeRegistry(n0);
302
302
  var AlreadyExistsException$ = [-3, n0, _AEE,
303
303
  { [_e]: _c, [_hE]: 409 },
304
304
  [_M],
@@ -73,10 +73,10 @@ const n0 = "com.amazonaws.pinpointsmsvoice";
73
73
  import { TypeRegistry } from "@smithy/core/schema";
74
74
  import { AlreadyExistsException, BadRequestException, InternalServiceErrorException, LimitExceededException, NotFoundException, TooManyRequestsException, } from "../models/errors";
75
75
  import { PinpointSMSVoiceServiceException } from "../models/PinpointSMSVoiceServiceException";
76
- const _s_registry = TypeRegistry.for(_s);
76
+ const _s_registry = new TypeRegistry(_s);
77
77
  export var PinpointSMSVoiceServiceException$ = [-3, _s, "PinpointSMSVoiceServiceException", 0, [], []];
78
78
  _s_registry.registerError(PinpointSMSVoiceServiceException$, PinpointSMSVoiceServiceException);
79
- const n0_registry = TypeRegistry.for(n0);
79
+ const n0_registry = new TypeRegistry(n0);
80
80
  export var AlreadyExistsException$ = [-3, n0, _AEE,
81
81
  { [_e]: _c, [_hE]: 409 },
82
82
  [_M],
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
2
2
  import { type CreateConfigurationSetCommandInput, type CreateConfigurationSetCommandOutput } from "./commands/CreateConfigurationSetCommand";
3
3
  import { type CreateConfigurationSetEventDestinationCommandInput, type CreateConfigurationSetEventDestinationCommandOutput } from "./commands/CreateConfigurationSetEventDestinationCommand";
4
4
  import { type DeleteConfigurationSetCommandInput, type DeleteConfigurationSetCommandOutput } from "./commands/DeleteConfigurationSetCommand";
@@ -8,58 +8,64 @@ import { type ListConfigurationSetsCommandInput, type ListConfigurationSetsComma
8
8
  import { type SendVoiceMessageCommandInput, type SendVoiceMessageCommandOutput } from "./commands/SendVoiceMessageCommand";
9
9
  import { type UpdateConfigurationSetEventDestinationCommandInput, type UpdateConfigurationSetEventDestinationCommandOutput } from "./commands/UpdateConfigurationSetEventDestinationCommand";
10
10
  import { PinpointSMSVoiceClient } from "./PinpointSMSVoiceClient";
11
+ /**
12
+ * @public
13
+ */
14
+ export interface PinpointSMSVoiceRequestOptions extends __HttpHandlerOptions {
15
+ metricsRecorder?: __MetricsRecorder<unknown>;
16
+ }
11
17
  export interface PinpointSMSVoice {
12
18
  /**
13
19
  * @see {@link CreateConfigurationSetCommand}
14
20
  */
15
21
  createConfigurationSet(): Promise<CreateConfigurationSetCommandOutput>;
16
- createConfigurationSet(args: CreateConfigurationSetCommandInput, options?: __HttpHandlerOptions): Promise<CreateConfigurationSetCommandOutput>;
22
+ createConfigurationSet(args: CreateConfigurationSetCommandInput, options?: PinpointSMSVoiceRequestOptions): Promise<CreateConfigurationSetCommandOutput>;
17
23
  createConfigurationSet(args: CreateConfigurationSetCommandInput, cb: (err: any, data?: CreateConfigurationSetCommandOutput) => void): void;
18
- createConfigurationSet(args: CreateConfigurationSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateConfigurationSetCommandOutput) => void): void;
24
+ createConfigurationSet(args: CreateConfigurationSetCommandInput, options: PinpointSMSVoiceRequestOptions, cb: (err: any, data?: CreateConfigurationSetCommandOutput) => void): void;
19
25
  /**
20
26
  * @see {@link CreateConfigurationSetEventDestinationCommand}
21
27
  */
22
- createConfigurationSetEventDestination(args: CreateConfigurationSetEventDestinationCommandInput, options?: __HttpHandlerOptions): Promise<CreateConfigurationSetEventDestinationCommandOutput>;
28
+ createConfigurationSetEventDestination(args: CreateConfigurationSetEventDestinationCommandInput, options?: PinpointSMSVoiceRequestOptions): Promise<CreateConfigurationSetEventDestinationCommandOutput>;
23
29
  createConfigurationSetEventDestination(args: CreateConfigurationSetEventDestinationCommandInput, cb: (err: any, data?: CreateConfigurationSetEventDestinationCommandOutput) => void): void;
24
- createConfigurationSetEventDestination(args: CreateConfigurationSetEventDestinationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateConfigurationSetEventDestinationCommandOutput) => void): void;
30
+ createConfigurationSetEventDestination(args: CreateConfigurationSetEventDestinationCommandInput, options: PinpointSMSVoiceRequestOptions, cb: (err: any, data?: CreateConfigurationSetEventDestinationCommandOutput) => void): void;
25
31
  /**
26
32
  * @see {@link DeleteConfigurationSetCommand}
27
33
  */
28
- deleteConfigurationSet(args: DeleteConfigurationSetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConfigurationSetCommandOutput>;
34
+ deleteConfigurationSet(args: DeleteConfigurationSetCommandInput, options?: PinpointSMSVoiceRequestOptions): Promise<DeleteConfigurationSetCommandOutput>;
29
35
  deleteConfigurationSet(args: DeleteConfigurationSetCommandInput, cb: (err: any, data?: DeleteConfigurationSetCommandOutput) => void): void;
30
- deleteConfigurationSet(args: DeleteConfigurationSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConfigurationSetCommandOutput) => void): void;
36
+ deleteConfigurationSet(args: DeleteConfigurationSetCommandInput, options: PinpointSMSVoiceRequestOptions, cb: (err: any, data?: DeleteConfigurationSetCommandOutput) => void): void;
31
37
  /**
32
38
  * @see {@link DeleteConfigurationSetEventDestinationCommand}
33
39
  */
34
- deleteConfigurationSetEventDestination(args: DeleteConfigurationSetEventDestinationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConfigurationSetEventDestinationCommandOutput>;
40
+ deleteConfigurationSetEventDestination(args: DeleteConfigurationSetEventDestinationCommandInput, options?: PinpointSMSVoiceRequestOptions): Promise<DeleteConfigurationSetEventDestinationCommandOutput>;
35
41
  deleteConfigurationSetEventDestination(args: DeleteConfigurationSetEventDestinationCommandInput, cb: (err: any, data?: DeleteConfigurationSetEventDestinationCommandOutput) => void): void;
36
- deleteConfigurationSetEventDestination(args: DeleteConfigurationSetEventDestinationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConfigurationSetEventDestinationCommandOutput) => void): void;
42
+ deleteConfigurationSetEventDestination(args: DeleteConfigurationSetEventDestinationCommandInput, options: PinpointSMSVoiceRequestOptions, cb: (err: any, data?: DeleteConfigurationSetEventDestinationCommandOutput) => void): void;
37
43
  /**
38
44
  * @see {@link GetConfigurationSetEventDestinationsCommand}
39
45
  */
40
- getConfigurationSetEventDestinations(args: GetConfigurationSetEventDestinationsCommandInput, options?: __HttpHandlerOptions): Promise<GetConfigurationSetEventDestinationsCommandOutput>;
46
+ getConfigurationSetEventDestinations(args: GetConfigurationSetEventDestinationsCommandInput, options?: PinpointSMSVoiceRequestOptions): Promise<GetConfigurationSetEventDestinationsCommandOutput>;
41
47
  getConfigurationSetEventDestinations(args: GetConfigurationSetEventDestinationsCommandInput, cb: (err: any, data?: GetConfigurationSetEventDestinationsCommandOutput) => void): void;
42
- getConfigurationSetEventDestinations(args: GetConfigurationSetEventDestinationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConfigurationSetEventDestinationsCommandOutput) => void): void;
48
+ getConfigurationSetEventDestinations(args: GetConfigurationSetEventDestinationsCommandInput, options: PinpointSMSVoiceRequestOptions, cb: (err: any, data?: GetConfigurationSetEventDestinationsCommandOutput) => void): void;
43
49
  /**
44
50
  * @see {@link ListConfigurationSetsCommand}
45
51
  */
46
52
  listConfigurationSets(): Promise<ListConfigurationSetsCommandOutput>;
47
- listConfigurationSets(args: ListConfigurationSetsCommandInput, options?: __HttpHandlerOptions): Promise<ListConfigurationSetsCommandOutput>;
53
+ listConfigurationSets(args: ListConfigurationSetsCommandInput, options?: PinpointSMSVoiceRequestOptions): Promise<ListConfigurationSetsCommandOutput>;
48
54
  listConfigurationSets(args: ListConfigurationSetsCommandInput, cb: (err: any, data?: ListConfigurationSetsCommandOutput) => void): void;
49
- listConfigurationSets(args: ListConfigurationSetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListConfigurationSetsCommandOutput) => void): void;
55
+ listConfigurationSets(args: ListConfigurationSetsCommandInput, options: PinpointSMSVoiceRequestOptions, cb: (err: any, data?: ListConfigurationSetsCommandOutput) => void): void;
50
56
  /**
51
57
  * @see {@link SendVoiceMessageCommand}
52
58
  */
53
59
  sendVoiceMessage(): Promise<SendVoiceMessageCommandOutput>;
54
- sendVoiceMessage(args: SendVoiceMessageCommandInput, options?: __HttpHandlerOptions): Promise<SendVoiceMessageCommandOutput>;
60
+ sendVoiceMessage(args: SendVoiceMessageCommandInput, options?: PinpointSMSVoiceRequestOptions): Promise<SendVoiceMessageCommandOutput>;
55
61
  sendVoiceMessage(args: SendVoiceMessageCommandInput, cb: (err: any, data?: SendVoiceMessageCommandOutput) => void): void;
56
- sendVoiceMessage(args: SendVoiceMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendVoiceMessageCommandOutput) => void): void;
62
+ sendVoiceMessage(args: SendVoiceMessageCommandInput, options: PinpointSMSVoiceRequestOptions, cb: (err: any, data?: SendVoiceMessageCommandOutput) => void): void;
57
63
  /**
58
64
  * @see {@link UpdateConfigurationSetEventDestinationCommand}
59
65
  */
60
- updateConfigurationSetEventDestination(args: UpdateConfigurationSetEventDestinationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConfigurationSetEventDestinationCommandOutput>;
66
+ updateConfigurationSetEventDestination(args: UpdateConfigurationSetEventDestinationCommandInput, options?: PinpointSMSVoiceRequestOptions): Promise<UpdateConfigurationSetEventDestinationCommandOutput>;
61
67
  updateConfigurationSetEventDestination(args: UpdateConfigurationSetEventDestinationCommandInput, cb: (err: any, data?: UpdateConfigurationSetEventDestinationCommandOutput) => void): void;
62
- updateConfigurationSetEventDestination(args: UpdateConfigurationSetEventDestinationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConfigurationSetEventDestinationCommandOutput) => void): void;
68
+ updateConfigurationSetEventDestination(args: UpdateConfigurationSetEventDestinationCommandInput, options: PinpointSMSVoiceRequestOptions, cb: (err: any, data?: UpdateConfigurationSetEventDestinationCommandOutput) => void): void;
63
69
  }
64
70
  /**
65
71
  * Pinpoint SMS and Voice Messaging public facing APIs
@@ -1,4 +1,7 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
4
+ } from "@smithy/types";
2
5
  import {
3
6
  CreateConfigurationSetCommandInput,
4
7
  CreateConfigurationSetCommandOutput,
@@ -32,11 +35,14 @@ import {
32
35
  UpdateConfigurationSetEventDestinationCommandOutput,
33
36
  } from "./commands/UpdateConfigurationSetEventDestinationCommand";
34
37
  import { PinpointSMSVoiceClient } from "./PinpointSMSVoiceClient";
38
+ export interface PinpointSMSVoiceRequestOptions extends __HttpHandlerOptions {
39
+ metricsRecorder?: __MetricsRecorder<unknown>;
40
+ }
35
41
  export interface PinpointSMSVoice {
36
42
  createConfigurationSet(): Promise<CreateConfigurationSetCommandOutput>;
37
43
  createConfigurationSet(
38
44
  args: CreateConfigurationSetCommandInput,
39
- options?: __HttpHandlerOptions,
45
+ options?: PinpointSMSVoiceRequestOptions,
40
46
  ): Promise<CreateConfigurationSetCommandOutput>;
41
47
  createConfigurationSet(
42
48
  args: CreateConfigurationSetCommandInput,
@@ -44,12 +50,12 @@ export interface PinpointSMSVoice {
44
50
  ): void;
45
51
  createConfigurationSet(
46
52
  args: CreateConfigurationSetCommandInput,
47
- options: __HttpHandlerOptions,
53
+ options: PinpointSMSVoiceRequestOptions,
48
54
  cb: (err: any, data?: CreateConfigurationSetCommandOutput) => void,
49
55
  ): void;
50
56
  createConfigurationSetEventDestination(
51
57
  args: CreateConfigurationSetEventDestinationCommandInput,
52
- options?: __HttpHandlerOptions,
58
+ options?: PinpointSMSVoiceRequestOptions,
53
59
  ): Promise<CreateConfigurationSetEventDestinationCommandOutput>;
54
60
  createConfigurationSetEventDestination(
55
61
  args: CreateConfigurationSetEventDestinationCommandInput,
@@ -57,12 +63,12 @@ export interface PinpointSMSVoice {
57
63
  ): void;
58
64
  createConfigurationSetEventDestination(
59
65
  args: CreateConfigurationSetEventDestinationCommandInput,
60
- options: __HttpHandlerOptions,
66
+ options: PinpointSMSVoiceRequestOptions,
61
67
  cb: (err: any, data?: CreateConfigurationSetEventDestinationCommandOutput) => void,
62
68
  ): void;
63
69
  deleteConfigurationSet(
64
70
  args: DeleteConfigurationSetCommandInput,
65
- options?: __HttpHandlerOptions,
71
+ options?: PinpointSMSVoiceRequestOptions,
66
72
  ): Promise<DeleteConfigurationSetCommandOutput>;
67
73
  deleteConfigurationSet(
68
74
  args: DeleteConfigurationSetCommandInput,
@@ -70,12 +76,12 @@ export interface PinpointSMSVoice {
70
76
  ): void;
71
77
  deleteConfigurationSet(
72
78
  args: DeleteConfigurationSetCommandInput,
73
- options: __HttpHandlerOptions,
79
+ options: PinpointSMSVoiceRequestOptions,
74
80
  cb: (err: any, data?: DeleteConfigurationSetCommandOutput) => void,
75
81
  ): void;
76
82
  deleteConfigurationSetEventDestination(
77
83
  args: DeleteConfigurationSetEventDestinationCommandInput,
78
- options?: __HttpHandlerOptions,
84
+ options?: PinpointSMSVoiceRequestOptions,
79
85
  ): Promise<DeleteConfigurationSetEventDestinationCommandOutput>;
80
86
  deleteConfigurationSetEventDestination(
81
87
  args: DeleteConfigurationSetEventDestinationCommandInput,
@@ -83,12 +89,12 @@ export interface PinpointSMSVoice {
83
89
  ): void;
84
90
  deleteConfigurationSetEventDestination(
85
91
  args: DeleteConfigurationSetEventDestinationCommandInput,
86
- options: __HttpHandlerOptions,
92
+ options: PinpointSMSVoiceRequestOptions,
87
93
  cb: (err: any, data?: DeleteConfigurationSetEventDestinationCommandOutput) => void,
88
94
  ): void;
89
95
  getConfigurationSetEventDestinations(
90
96
  args: GetConfigurationSetEventDestinationsCommandInput,
91
- options?: __HttpHandlerOptions,
97
+ options?: PinpointSMSVoiceRequestOptions,
92
98
  ): Promise<GetConfigurationSetEventDestinationsCommandOutput>;
93
99
  getConfigurationSetEventDestinations(
94
100
  args: GetConfigurationSetEventDestinationsCommandInput,
@@ -96,13 +102,13 @@ export interface PinpointSMSVoice {
96
102
  ): void;
97
103
  getConfigurationSetEventDestinations(
98
104
  args: GetConfigurationSetEventDestinationsCommandInput,
99
- options: __HttpHandlerOptions,
105
+ options: PinpointSMSVoiceRequestOptions,
100
106
  cb: (err: any, data?: GetConfigurationSetEventDestinationsCommandOutput) => void,
101
107
  ): void;
102
108
  listConfigurationSets(): Promise<ListConfigurationSetsCommandOutput>;
103
109
  listConfigurationSets(
104
110
  args: ListConfigurationSetsCommandInput,
105
- options?: __HttpHandlerOptions,
111
+ options?: PinpointSMSVoiceRequestOptions,
106
112
  ): Promise<ListConfigurationSetsCommandOutput>;
107
113
  listConfigurationSets(
108
114
  args: ListConfigurationSetsCommandInput,
@@ -110,13 +116,13 @@ export interface PinpointSMSVoice {
110
116
  ): void;
111
117
  listConfigurationSets(
112
118
  args: ListConfigurationSetsCommandInput,
113
- options: __HttpHandlerOptions,
119
+ options: PinpointSMSVoiceRequestOptions,
114
120
  cb: (err: any, data?: ListConfigurationSetsCommandOutput) => void,
115
121
  ): void;
116
122
  sendVoiceMessage(): Promise<SendVoiceMessageCommandOutput>;
117
123
  sendVoiceMessage(
118
124
  args: SendVoiceMessageCommandInput,
119
- options?: __HttpHandlerOptions,
125
+ options?: PinpointSMSVoiceRequestOptions,
120
126
  ): Promise<SendVoiceMessageCommandOutput>;
121
127
  sendVoiceMessage(
122
128
  args: SendVoiceMessageCommandInput,
@@ -124,12 +130,12 @@ export interface PinpointSMSVoice {
124
130
  ): void;
125
131
  sendVoiceMessage(
126
132
  args: SendVoiceMessageCommandInput,
127
- options: __HttpHandlerOptions,
133
+ options: PinpointSMSVoiceRequestOptions,
128
134
  cb: (err: any, data?: SendVoiceMessageCommandOutput) => void,
129
135
  ): void;
130
136
  updateConfigurationSetEventDestination(
131
137
  args: UpdateConfigurationSetEventDestinationCommandInput,
132
- options?: __HttpHandlerOptions,
138
+ options?: PinpointSMSVoiceRequestOptions,
133
139
  ): Promise<UpdateConfigurationSetEventDestinationCommandOutput>;
134
140
  updateConfigurationSetEventDestination(
135
141
  args: UpdateConfigurationSetEventDestinationCommandInput,
@@ -137,7 +143,7 @@ export interface PinpointSMSVoice {
137
143
  ): void;
138
144
  updateConfigurationSetEventDestination(
139
145
  args: UpdateConfigurationSetEventDestinationCommandInput,
140
- options: __HttpHandlerOptions,
146
+ options: PinpointSMSVoiceRequestOptions,
141
147
  cb: (err: any, data?: UpdateConfigurationSetEventDestinationCommandOutput) => void,
142
148
  ): void;
143
149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pinpoint-sms-voice",
3
- "version": "3.1137.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Pinpoint Sms Voice Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-pinpoint-sms-voice",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {