@aws-sdk/client-customer-profiles 3.474.0 → 3.477.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.
@@ -3,43 +3,35 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.se_UpdateCalculatedAttributeDefinitionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SearchProfilesCommand = exports.se_PutProfileObjectTypeCommand = exports.se_PutProfileObjectCommand = exports.se_PutIntegrationCommand = exports.se_MergeProfilesCommand = exports.se_ListWorkflowsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRuleBasedMatchesCommand = exports.se_ListProfileObjectTypeTemplatesCommand = exports.se_ListProfileObjectTypesCommand = exports.se_ListProfileObjectsCommand = exports.se_ListIntegrationsCommand = exports.se_ListIdentityResolutionJobsCommand = exports.se_ListEventStreamsCommand = exports.se_ListDomainsCommand = exports.se_ListCalculatedAttributesForProfileCommand = exports.se_ListCalculatedAttributeDefinitionsCommand = exports.se_ListAccountIntegrationsCommand = exports.se_GetWorkflowStepsCommand = exports.se_GetWorkflowCommand = exports.se_GetSimilarProfilesCommand = exports.se_GetProfileObjectTypeTemplateCommand = exports.se_GetProfileObjectTypeCommand = exports.se_GetMatchesCommand = exports.se_GetIntegrationCommand = exports.se_GetIdentityResolutionJobCommand = exports.se_GetEventStreamCommand = exports.se_GetDomainCommand = exports.se_GetCalculatedAttributeForProfileCommand = exports.se_GetCalculatedAttributeDefinitionCommand = exports.se_GetAutoMergingPreviewCommand = exports.se_DetectProfileObjectTypeCommand = exports.se_DeleteWorkflowCommand = exports.se_DeleteProfileObjectTypeCommand = exports.se_DeleteProfileObjectCommand = exports.se_DeleteProfileKeyCommand = exports.se_DeleteProfileCommand = exports.se_DeleteIntegrationCommand = exports.se_DeleteEventStreamCommand = exports.se_DeleteDomainCommand = exports.se_DeleteCalculatedAttributeDefinitionCommand = exports.se_CreateProfileCommand = exports.se_CreateIntegrationWorkflowCommand = exports.se_CreateEventStreamCommand = exports.se_CreateDomainCommand = exports.se_CreateCalculatedAttributeDefinitionCommand = exports.se_AddProfileKeyCommand = void 0;
4
4
  exports.de_TagResourceCommand = exports.de_SearchProfilesCommand = exports.de_PutProfileObjectTypeCommand = exports.de_PutProfileObjectCommand = exports.de_PutIntegrationCommand = exports.de_MergeProfilesCommand = exports.de_ListWorkflowsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRuleBasedMatchesCommand = exports.de_ListProfileObjectTypeTemplatesCommand = exports.de_ListProfileObjectTypesCommand = exports.de_ListProfileObjectsCommand = exports.de_ListIntegrationsCommand = exports.de_ListIdentityResolutionJobsCommand = exports.de_ListEventStreamsCommand = exports.de_ListDomainsCommand = exports.de_ListCalculatedAttributesForProfileCommand = exports.de_ListCalculatedAttributeDefinitionsCommand = exports.de_ListAccountIntegrationsCommand = exports.de_GetWorkflowStepsCommand = exports.de_GetWorkflowCommand = exports.de_GetSimilarProfilesCommand = exports.de_GetProfileObjectTypeTemplateCommand = exports.de_GetProfileObjectTypeCommand = exports.de_GetMatchesCommand = exports.de_GetIntegrationCommand = exports.de_GetIdentityResolutionJobCommand = exports.de_GetEventStreamCommand = exports.de_GetDomainCommand = exports.de_GetCalculatedAttributeForProfileCommand = exports.de_GetCalculatedAttributeDefinitionCommand = exports.de_GetAutoMergingPreviewCommand = exports.de_DetectProfileObjectTypeCommand = exports.de_DeleteWorkflowCommand = exports.de_DeleteProfileObjectTypeCommand = exports.de_DeleteProfileObjectCommand = exports.de_DeleteProfileKeyCommand = exports.de_DeleteProfileCommand = exports.de_DeleteIntegrationCommand = exports.de_DeleteEventStreamCommand = exports.de_DeleteDomainCommand = exports.de_DeleteCalculatedAttributeDefinitionCommand = exports.de_CreateProfileCommand = exports.de_CreateIntegrationWorkflowCommand = exports.de_CreateEventStreamCommand = exports.de_CreateDomainCommand = exports.de_CreateCalculatedAttributeDefinitionCommand = exports.de_AddProfileKeyCommand = exports.se_UpdateProfileCommand = exports.se_UpdateDomainCommand = void 0;
5
5
  exports.de_UpdateProfileCommand = exports.de_UpdateDomainCommand = exports.de_UpdateCalculatedAttributeDefinitionCommand = exports.de_UntagResourceCommand = void 0;
6
- const protocol_http_1 = require("@smithy/protocol-http");
6
+ const core_1 = require("@smithy/core");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const CustomerProfilesServiceException_1 = require("../models/CustomerProfilesServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_AddProfileKeyCommand = async (input, context) => {
11
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
+ const b = (0, core_1.requestBuilder)(input, context);
12
12
  const headers = {
13
13
  "content-type": "application/json",
14
14
  };
15
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/profiles/keys";
16
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
15
+ b.bp("/domains/{DomainName}/profiles/keys");
16
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
17
17
  let body;
18
18
  body = JSON.stringify((0, smithy_client_1.take)(input, {
19
19
  KeyName: [],
20
20
  ProfileId: [],
21
21
  Values: (_) => (0, smithy_client_1._json)(_),
22
22
  }));
23
- return new protocol_http_1.HttpRequest({
24
- protocol,
25
- hostname,
26
- port,
27
- method: "POST",
28
- headers,
29
- path: resolvedPath,
30
- body,
31
- });
23
+ b.m("POST").h(headers).b(body);
24
+ return b.build();
32
25
  };
33
26
  exports.se_AddProfileKeyCommand = se_AddProfileKeyCommand;
34
27
  const se_CreateCalculatedAttributeDefinitionCommand = async (input, context) => {
35
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
28
+ const b = (0, core_1.requestBuilder)(input, context);
36
29
  const headers = {
37
30
  "content-type": "application/json",
38
31
  };
39
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
40
- "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}";
41
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
42
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
32
+ b.bp("/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}");
33
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
34
+ b.p("CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
43
35
  let body;
44
36
  body = JSON.stringify((0, smithy_client_1.take)(input, {
45
37
  AttributeDetails: (_) => (0, smithy_client_1._json)(_),
@@ -49,24 +41,17 @@ const se_CreateCalculatedAttributeDefinitionCommand = async (input, context) =>
49
41
  Statistic: [],
50
42
  Tags: (_) => (0, smithy_client_1._json)(_),
51
43
  }));
52
- return new protocol_http_1.HttpRequest({
53
- protocol,
54
- hostname,
55
- port,
56
- method: "POST",
57
- headers,
58
- path: resolvedPath,
59
- body,
60
- });
44
+ b.m("POST").h(headers).b(body);
45
+ return b.build();
61
46
  };
62
47
  exports.se_CreateCalculatedAttributeDefinitionCommand = se_CreateCalculatedAttributeDefinitionCommand;
63
48
  const se_CreateDomainCommand = async (input, context) => {
64
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
49
+ const b = (0, core_1.requestBuilder)(input, context);
65
50
  const headers = {
66
51
  "content-type": "application/json",
67
52
  };
68
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}";
69
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
53
+ b.bp("/domains/{DomainName}");
54
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
70
55
  let body;
71
56
  body = JSON.stringify((0, smithy_client_1.take)(input, {
72
57
  DeadLetterQueueUrl: [],
@@ -76,50 +61,34 @@ const se_CreateDomainCommand = async (input, context) => {
76
61
  RuleBasedMatching: (_) => (0, smithy_client_1._json)(_),
77
62
  Tags: (_) => (0, smithy_client_1._json)(_),
78
63
  }));
79
- return new protocol_http_1.HttpRequest({
80
- protocol,
81
- hostname,
82
- port,
83
- method: "POST",
84
- headers,
85
- path: resolvedPath,
86
- body,
87
- });
64
+ b.m("POST").h(headers).b(body);
65
+ return b.build();
88
66
  };
89
67
  exports.se_CreateDomainCommand = se_CreateDomainCommand;
90
68
  const se_CreateEventStreamCommand = async (input, context) => {
91
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
69
+ const b = (0, core_1.requestBuilder)(input, context);
92
70
  const headers = {
93
71
  "content-type": "application/json",
94
72
  };
95
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
96
- "/domains/{DomainName}/event-streams/{EventStreamName}";
97
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
98
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventStreamName", () => input.EventStreamName, "{EventStreamName}", false);
73
+ b.bp("/domains/{DomainName}/event-streams/{EventStreamName}");
74
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
75
+ b.p("EventStreamName", () => input.EventStreamName, "{EventStreamName}", false);
99
76
  let body;
100
77
  body = JSON.stringify((0, smithy_client_1.take)(input, {
101
78
  Tags: (_) => (0, smithy_client_1._json)(_),
102
79
  Uri: [],
103
80
  }));
104
- return new protocol_http_1.HttpRequest({
105
- protocol,
106
- hostname,
107
- port,
108
- method: "POST",
109
- headers,
110
- path: resolvedPath,
111
- body,
112
- });
81
+ b.m("POST").h(headers).b(body);
82
+ return b.build();
113
83
  };
114
84
  exports.se_CreateEventStreamCommand = se_CreateEventStreamCommand;
115
85
  const se_CreateIntegrationWorkflowCommand = async (input, context) => {
116
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
86
+ const b = (0, core_1.requestBuilder)(input, context);
117
87
  const headers = {
118
88
  "content-type": "application/json",
119
89
  };
120
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
121
- "/domains/{DomainName}/workflows/integrations";
122
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
90
+ b.bp("/domains/{DomainName}/workflows/integrations");
91
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
123
92
  let body;
124
93
  body = JSON.stringify((0, smithy_client_1.take)(input, {
125
94
  IntegrationConfig: (_) => se_IntegrationConfig(_, context),
@@ -128,24 +97,17 @@ const se_CreateIntegrationWorkflowCommand = async (input, context) => {
128
97
  Tags: (_) => (0, smithy_client_1._json)(_),
129
98
  WorkflowType: [],
130
99
  }));
131
- return new protocol_http_1.HttpRequest({
132
- protocol,
133
- hostname,
134
- port,
135
- method: "POST",
136
- headers,
137
- path: resolvedPath,
138
- body,
139
- });
100
+ b.m("POST").h(headers).b(body);
101
+ return b.build();
140
102
  };
141
103
  exports.se_CreateIntegrationWorkflowCommand = se_CreateIntegrationWorkflowCommand;
142
104
  const se_CreateProfileCommand = async (input, context) => {
143
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
105
+ const b = (0, core_1.requestBuilder)(input, context);
144
106
  const headers = {
145
107
  "content-type": "application/json",
146
108
  };
147
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/profiles";
148
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
109
+ b.bp("/domains/{DomainName}/profiles");
110
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
149
111
  let body;
150
112
  body = JSON.stringify((0, smithy_client_1.take)(input, {
151
113
  AccountNumber: [],
@@ -172,435 +134,275 @@ const se_CreateProfileCommand = async (input, context) => {
172
134
  PhoneNumber: [],
173
135
  ShippingAddress: (_) => (0, smithy_client_1._json)(_),
174
136
  }));
175
- return new protocol_http_1.HttpRequest({
176
- protocol,
177
- hostname,
178
- port,
179
- method: "POST",
180
- headers,
181
- path: resolvedPath,
182
- body,
183
- });
137
+ b.m("POST").h(headers).b(body);
138
+ return b.build();
184
139
  };
185
140
  exports.se_CreateProfileCommand = se_CreateProfileCommand;
186
141
  const se_DeleteCalculatedAttributeDefinitionCommand = async (input, context) => {
187
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
142
+ const b = (0, core_1.requestBuilder)(input, context);
188
143
  const headers = {};
189
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
190
- "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}";
191
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
192
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
144
+ b.bp("/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}");
145
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
146
+ b.p("CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
193
147
  let body;
194
- return new protocol_http_1.HttpRequest({
195
- protocol,
196
- hostname,
197
- port,
198
- method: "DELETE",
199
- headers,
200
- path: resolvedPath,
201
- body,
202
- });
148
+ b.m("DELETE").h(headers).b(body);
149
+ return b.build();
203
150
  };
204
151
  exports.se_DeleteCalculatedAttributeDefinitionCommand = se_DeleteCalculatedAttributeDefinitionCommand;
205
152
  const se_DeleteDomainCommand = async (input, context) => {
206
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
153
+ const b = (0, core_1.requestBuilder)(input, context);
207
154
  const headers = {};
208
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}";
209
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
155
+ b.bp("/domains/{DomainName}");
156
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
210
157
  let body;
211
- return new protocol_http_1.HttpRequest({
212
- protocol,
213
- hostname,
214
- port,
215
- method: "DELETE",
216
- headers,
217
- path: resolvedPath,
218
- body,
219
- });
158
+ b.m("DELETE").h(headers).b(body);
159
+ return b.build();
220
160
  };
221
161
  exports.se_DeleteDomainCommand = se_DeleteDomainCommand;
222
162
  const se_DeleteEventStreamCommand = async (input, context) => {
223
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
163
+ const b = (0, core_1.requestBuilder)(input, context);
224
164
  const headers = {};
225
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
226
- "/domains/{DomainName}/event-streams/{EventStreamName}";
227
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
228
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventStreamName", () => input.EventStreamName, "{EventStreamName}", false);
165
+ b.bp("/domains/{DomainName}/event-streams/{EventStreamName}");
166
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
167
+ b.p("EventStreamName", () => input.EventStreamName, "{EventStreamName}", false);
229
168
  let body;
230
- return new protocol_http_1.HttpRequest({
231
- protocol,
232
- hostname,
233
- port,
234
- method: "DELETE",
235
- headers,
236
- path: resolvedPath,
237
- body,
238
- });
169
+ b.m("DELETE").h(headers).b(body);
170
+ return b.build();
239
171
  };
240
172
  exports.se_DeleteEventStreamCommand = se_DeleteEventStreamCommand;
241
173
  const se_DeleteIntegrationCommand = async (input, context) => {
242
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
174
+ const b = (0, core_1.requestBuilder)(input, context);
243
175
  const headers = {
244
176
  "content-type": "application/json",
245
177
  };
246
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/integrations/delete";
247
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
178
+ b.bp("/domains/{DomainName}/integrations/delete");
179
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
248
180
  let body;
249
181
  body = JSON.stringify((0, smithy_client_1.take)(input, {
250
182
  Uri: [],
251
183
  }));
252
- return new protocol_http_1.HttpRequest({
253
- protocol,
254
- hostname,
255
- port,
256
- method: "POST",
257
- headers,
258
- path: resolvedPath,
259
- body,
260
- });
184
+ b.m("POST").h(headers).b(body);
185
+ return b.build();
261
186
  };
262
187
  exports.se_DeleteIntegrationCommand = se_DeleteIntegrationCommand;
263
188
  const se_DeleteProfileCommand = async (input, context) => {
264
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
189
+ const b = (0, core_1.requestBuilder)(input, context);
265
190
  const headers = {
266
191
  "content-type": "application/json",
267
192
  };
268
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/profiles/delete";
269
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
193
+ b.bp("/domains/{DomainName}/profiles/delete");
194
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
270
195
  let body;
271
196
  body = JSON.stringify((0, smithy_client_1.take)(input, {
272
197
  ProfileId: [],
273
198
  }));
274
- return new protocol_http_1.HttpRequest({
275
- protocol,
276
- hostname,
277
- port,
278
- method: "POST",
279
- headers,
280
- path: resolvedPath,
281
- body,
282
- });
199
+ b.m("POST").h(headers).b(body);
200
+ return b.build();
283
201
  };
284
202
  exports.se_DeleteProfileCommand = se_DeleteProfileCommand;
285
203
  const se_DeleteProfileKeyCommand = async (input, context) => {
286
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
204
+ const b = (0, core_1.requestBuilder)(input, context);
287
205
  const headers = {
288
206
  "content-type": "application/json",
289
207
  };
290
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
291
- "/domains/{DomainName}/profiles/keys/delete";
292
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
208
+ b.bp("/domains/{DomainName}/profiles/keys/delete");
209
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
293
210
  let body;
294
211
  body = JSON.stringify((0, smithy_client_1.take)(input, {
295
212
  KeyName: [],
296
213
  ProfileId: [],
297
214
  Values: (_) => (0, smithy_client_1._json)(_),
298
215
  }));
299
- return new protocol_http_1.HttpRequest({
300
- protocol,
301
- hostname,
302
- port,
303
- method: "POST",
304
- headers,
305
- path: resolvedPath,
306
- body,
307
- });
216
+ b.m("POST").h(headers).b(body);
217
+ return b.build();
308
218
  };
309
219
  exports.se_DeleteProfileKeyCommand = se_DeleteProfileKeyCommand;
310
220
  const se_DeleteProfileObjectCommand = async (input, context) => {
311
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
221
+ const b = (0, core_1.requestBuilder)(input, context);
312
222
  const headers = {
313
223
  "content-type": "application/json",
314
224
  };
315
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
316
- "/domains/{DomainName}/profiles/objects/delete";
317
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
225
+ b.bp("/domains/{DomainName}/profiles/objects/delete");
226
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
318
227
  let body;
319
228
  body = JSON.stringify((0, smithy_client_1.take)(input, {
320
229
  ObjectTypeName: [],
321
230
  ProfileId: [],
322
231
  ProfileObjectUniqueKey: [],
323
232
  }));
324
- return new protocol_http_1.HttpRequest({
325
- protocol,
326
- hostname,
327
- port,
328
- method: "POST",
329
- headers,
330
- path: resolvedPath,
331
- body,
332
- });
233
+ b.m("POST").h(headers).b(body);
234
+ return b.build();
333
235
  };
334
236
  exports.se_DeleteProfileObjectCommand = se_DeleteProfileObjectCommand;
335
237
  const se_DeleteProfileObjectTypeCommand = async (input, context) => {
336
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
238
+ const b = (0, core_1.requestBuilder)(input, context);
337
239
  const headers = {};
338
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
339
- "/domains/{DomainName}/object-types/{ObjectTypeName}";
340
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
341
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ObjectTypeName", () => input.ObjectTypeName, "{ObjectTypeName}", false);
240
+ b.bp("/domains/{DomainName}/object-types/{ObjectTypeName}");
241
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
242
+ b.p("ObjectTypeName", () => input.ObjectTypeName, "{ObjectTypeName}", false);
342
243
  let body;
343
- return new protocol_http_1.HttpRequest({
344
- protocol,
345
- hostname,
346
- port,
347
- method: "DELETE",
348
- headers,
349
- path: resolvedPath,
350
- body,
351
- });
244
+ b.m("DELETE").h(headers).b(body);
245
+ return b.build();
352
246
  };
353
247
  exports.se_DeleteProfileObjectTypeCommand = se_DeleteProfileObjectTypeCommand;
354
248
  const se_DeleteWorkflowCommand = async (input, context) => {
355
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
249
+ const b = (0, core_1.requestBuilder)(input, context);
356
250
  const headers = {};
357
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
358
- "/domains/{DomainName}/workflows/{WorkflowId}";
359
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
360
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkflowId", () => input.WorkflowId, "{WorkflowId}", false);
251
+ b.bp("/domains/{DomainName}/workflows/{WorkflowId}");
252
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
253
+ b.p("WorkflowId", () => input.WorkflowId, "{WorkflowId}", false);
361
254
  let body;
362
- return new protocol_http_1.HttpRequest({
363
- protocol,
364
- hostname,
365
- port,
366
- method: "DELETE",
367
- headers,
368
- path: resolvedPath,
369
- body,
370
- });
255
+ b.m("DELETE").h(headers).b(body);
256
+ return b.build();
371
257
  };
372
258
  exports.se_DeleteWorkflowCommand = se_DeleteWorkflowCommand;
373
259
  const se_DetectProfileObjectTypeCommand = async (input, context) => {
374
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
260
+ const b = (0, core_1.requestBuilder)(input, context);
375
261
  const headers = {
376
262
  "content-type": "application/json",
377
263
  };
378
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/detect/object-types";
379
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
264
+ b.bp("/domains/{DomainName}/detect/object-types");
265
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
380
266
  let body;
381
267
  body = JSON.stringify((0, smithy_client_1.take)(input, {
382
268
  Objects: (_) => (0, smithy_client_1._json)(_),
383
269
  }));
384
- return new protocol_http_1.HttpRequest({
385
- protocol,
386
- hostname,
387
- port,
388
- method: "POST",
389
- headers,
390
- path: resolvedPath,
391
- body,
392
- });
270
+ b.m("POST").h(headers).b(body);
271
+ return b.build();
393
272
  };
394
273
  exports.se_DetectProfileObjectTypeCommand = se_DetectProfileObjectTypeCommand;
395
274
  const se_GetAutoMergingPreviewCommand = async (input, context) => {
396
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
275
+ const b = (0, core_1.requestBuilder)(input, context);
397
276
  const headers = {
398
277
  "content-type": "application/json",
399
278
  };
400
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
401
- "/domains/{DomainName}/identity-resolution-jobs/auto-merging-preview";
402
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
279
+ b.bp("/domains/{DomainName}/identity-resolution-jobs/auto-merging-preview");
280
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
403
281
  let body;
404
282
  body = JSON.stringify((0, smithy_client_1.take)(input, {
405
283
  ConflictResolution: (_) => (0, smithy_client_1._json)(_),
406
284
  Consolidation: (_) => (0, smithy_client_1._json)(_),
407
285
  MinAllowedConfidenceScoreForMerging: (_) => (0, smithy_client_1.serializeFloat)(_),
408
286
  }));
409
- return new protocol_http_1.HttpRequest({
410
- protocol,
411
- hostname,
412
- port,
413
- method: "POST",
414
- headers,
415
- path: resolvedPath,
416
- body,
417
- });
287
+ b.m("POST").h(headers).b(body);
288
+ return b.build();
418
289
  };
419
290
  exports.se_GetAutoMergingPreviewCommand = se_GetAutoMergingPreviewCommand;
420
291
  const se_GetCalculatedAttributeDefinitionCommand = async (input, context) => {
421
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
+ const b = (0, core_1.requestBuilder)(input, context);
422
293
  const headers = {};
423
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
424
- "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}";
425
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
426
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
294
+ b.bp("/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}");
295
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
296
+ b.p("CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
427
297
  let body;
428
- return new protocol_http_1.HttpRequest({
429
- protocol,
430
- hostname,
431
- port,
432
- method: "GET",
433
- headers,
434
- path: resolvedPath,
435
- body,
436
- });
298
+ b.m("GET").h(headers).b(body);
299
+ return b.build();
437
300
  };
438
301
  exports.se_GetCalculatedAttributeDefinitionCommand = se_GetCalculatedAttributeDefinitionCommand;
439
302
  const se_GetCalculatedAttributeForProfileCommand = async (input, context) => {
440
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
303
+ const b = (0, core_1.requestBuilder)(input, context);
441
304
  const headers = {};
442
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
443
- "/domains/{DomainName}/profile/{ProfileId}/calculated-attributes/{CalculatedAttributeName}";
444
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
445
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileId", () => input.ProfileId, "{ProfileId}", false);
446
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
305
+ b.bp("/domains/{DomainName}/profile/{ProfileId}/calculated-attributes/{CalculatedAttributeName}");
306
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
307
+ b.p("ProfileId", () => input.ProfileId, "{ProfileId}", false);
308
+ b.p("CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
447
309
  let body;
448
- return new protocol_http_1.HttpRequest({
449
- protocol,
450
- hostname,
451
- port,
452
- method: "GET",
453
- headers,
454
- path: resolvedPath,
455
- body,
456
- });
310
+ b.m("GET").h(headers).b(body);
311
+ return b.build();
457
312
  };
458
313
  exports.se_GetCalculatedAttributeForProfileCommand = se_GetCalculatedAttributeForProfileCommand;
459
314
  const se_GetDomainCommand = async (input, context) => {
460
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
315
+ const b = (0, core_1.requestBuilder)(input, context);
461
316
  const headers = {};
462
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}";
463
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
317
+ b.bp("/domains/{DomainName}");
318
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
464
319
  let body;
465
- return new protocol_http_1.HttpRequest({
466
- protocol,
467
- hostname,
468
- port,
469
- method: "GET",
470
- headers,
471
- path: resolvedPath,
472
- body,
473
- });
320
+ b.m("GET").h(headers).b(body);
321
+ return b.build();
474
322
  };
475
323
  exports.se_GetDomainCommand = se_GetDomainCommand;
476
324
  const se_GetEventStreamCommand = async (input, context) => {
477
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
325
+ const b = (0, core_1.requestBuilder)(input, context);
478
326
  const headers = {};
479
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
480
- "/domains/{DomainName}/event-streams/{EventStreamName}";
481
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
482
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventStreamName", () => input.EventStreamName, "{EventStreamName}", false);
327
+ b.bp("/domains/{DomainName}/event-streams/{EventStreamName}");
328
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
329
+ b.p("EventStreamName", () => input.EventStreamName, "{EventStreamName}", false);
483
330
  let body;
484
- return new protocol_http_1.HttpRequest({
485
- protocol,
486
- hostname,
487
- port,
488
- method: "GET",
489
- headers,
490
- path: resolvedPath,
491
- body,
492
- });
331
+ b.m("GET").h(headers).b(body);
332
+ return b.build();
493
333
  };
494
334
  exports.se_GetEventStreamCommand = se_GetEventStreamCommand;
495
335
  const se_GetIdentityResolutionJobCommand = async (input, context) => {
496
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
336
+ const b = (0, core_1.requestBuilder)(input, context);
497
337
  const headers = {};
498
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
499
- "/domains/{DomainName}/identity-resolution-jobs/{JobId}";
500
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
501
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
338
+ b.bp("/domains/{DomainName}/identity-resolution-jobs/{JobId}");
339
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
340
+ b.p("JobId", () => input.JobId, "{JobId}", false);
502
341
  let body;
503
- return new protocol_http_1.HttpRequest({
504
- protocol,
505
- hostname,
506
- port,
507
- method: "GET",
508
- headers,
509
- path: resolvedPath,
510
- body,
511
- });
342
+ b.m("GET").h(headers).b(body);
343
+ return b.build();
512
344
  };
513
345
  exports.se_GetIdentityResolutionJobCommand = se_GetIdentityResolutionJobCommand;
514
346
  const se_GetIntegrationCommand = async (input, context) => {
515
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
347
+ const b = (0, core_1.requestBuilder)(input, context);
516
348
  const headers = {
517
349
  "content-type": "application/json",
518
350
  };
519
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/integrations";
520
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
351
+ b.bp("/domains/{DomainName}/integrations");
352
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
521
353
  let body;
522
354
  body = JSON.stringify((0, smithy_client_1.take)(input, {
523
355
  Uri: [],
524
356
  }));
525
- return new protocol_http_1.HttpRequest({
526
- protocol,
527
- hostname,
528
- port,
529
- method: "POST",
530
- headers,
531
- path: resolvedPath,
532
- body,
533
- });
357
+ b.m("POST").h(headers).b(body);
358
+ return b.build();
534
359
  };
535
360
  exports.se_GetIntegrationCommand = se_GetIntegrationCommand;
536
361
  const se_GetMatchesCommand = async (input, context) => {
537
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
362
+ const b = (0, core_1.requestBuilder)(input, context);
538
363
  const headers = {};
539
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/matches";
540
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
364
+ b.bp("/domains/{DomainName}/matches");
365
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
541
366
  const query = (0, smithy_client_1.map)({
542
- "next-token": [, input.NextToken],
543
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
367
+ [_nt]: [, input[_NT]],
368
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
544
369
  });
545
370
  let body;
546
- return new protocol_http_1.HttpRequest({
547
- protocol,
548
- hostname,
549
- port,
550
- method: "GET",
551
- headers,
552
- path: resolvedPath,
553
- query,
554
- body,
555
- });
371
+ b.m("GET").h(headers).q(query).b(body);
372
+ return b.build();
556
373
  };
557
374
  exports.se_GetMatchesCommand = se_GetMatchesCommand;
558
375
  const se_GetProfileObjectTypeCommand = async (input, context) => {
559
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
376
+ const b = (0, core_1.requestBuilder)(input, context);
560
377
  const headers = {};
561
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
562
- "/domains/{DomainName}/object-types/{ObjectTypeName}";
563
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
564
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ObjectTypeName", () => input.ObjectTypeName, "{ObjectTypeName}", false);
378
+ b.bp("/domains/{DomainName}/object-types/{ObjectTypeName}");
379
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
380
+ b.p("ObjectTypeName", () => input.ObjectTypeName, "{ObjectTypeName}", false);
565
381
  let body;
566
- return new protocol_http_1.HttpRequest({
567
- protocol,
568
- hostname,
569
- port,
570
- method: "GET",
571
- headers,
572
- path: resolvedPath,
573
- body,
574
- });
382
+ b.m("GET").h(headers).b(body);
383
+ return b.build();
575
384
  };
576
385
  exports.se_GetProfileObjectTypeCommand = se_GetProfileObjectTypeCommand;
577
386
  const se_GetProfileObjectTypeTemplateCommand = async (input, context) => {
578
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
387
+ const b = (0, core_1.requestBuilder)(input, context);
579
388
  const headers = {};
580
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/{TemplateId}";
581
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateId", () => input.TemplateId, "{TemplateId}", false);
389
+ b.bp("/templates/{TemplateId}");
390
+ b.p("TemplateId", () => input.TemplateId, "{TemplateId}", false);
582
391
  let body;
583
- return new protocol_http_1.HttpRequest({
584
- protocol,
585
- hostname,
586
- port,
587
- method: "GET",
588
- headers,
589
- path: resolvedPath,
590
- body,
591
- });
392
+ b.m("GET").h(headers).b(body);
393
+ return b.build();
592
394
  };
593
395
  exports.se_GetProfileObjectTypeTemplateCommand = se_GetProfileObjectTypeTemplateCommand;
594
396
  const se_GetSimilarProfilesCommand = async (input, context) => {
595
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
397
+ const b = (0, core_1.requestBuilder)(input, context);
596
398
  const headers = {
597
399
  "content-type": "application/json",
598
400
  };
599
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/matches";
600
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
401
+ b.bp("/domains/{DomainName}/matches");
402
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
601
403
  const query = (0, smithy_client_1.map)({
602
- "next-token": [, input.NextToken],
603
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
404
+ [_nt]: [, input[_NT]],
405
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
604
406
  });
605
407
  let body;
606
408
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -608,234 +410,150 @@ const se_GetSimilarProfilesCommand = async (input, context) => {
608
410
  SearchKey: [],
609
411
  SearchValue: [],
610
412
  }));
611
- return new protocol_http_1.HttpRequest({
612
- protocol,
613
- hostname,
614
- port,
615
- method: "POST",
616
- headers,
617
- path: resolvedPath,
618
- query,
619
- body,
620
- });
413
+ b.m("POST").h(headers).q(query).b(body);
414
+ return b.build();
621
415
  };
622
416
  exports.se_GetSimilarProfilesCommand = se_GetSimilarProfilesCommand;
623
417
  const se_GetWorkflowCommand = async (input, context) => {
624
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
418
+ const b = (0, core_1.requestBuilder)(input, context);
625
419
  const headers = {};
626
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
627
- "/domains/{DomainName}/workflows/{WorkflowId}";
628
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
629
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkflowId", () => input.WorkflowId, "{WorkflowId}", false);
420
+ b.bp("/domains/{DomainName}/workflows/{WorkflowId}");
421
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
422
+ b.p("WorkflowId", () => input.WorkflowId, "{WorkflowId}", false);
630
423
  let body;
631
- return new protocol_http_1.HttpRequest({
632
- protocol,
633
- hostname,
634
- port,
635
- method: "GET",
636
- headers,
637
- path: resolvedPath,
638
- body,
639
- });
424
+ b.m("GET").h(headers).b(body);
425
+ return b.build();
640
426
  };
641
427
  exports.se_GetWorkflowCommand = se_GetWorkflowCommand;
642
428
  const se_GetWorkflowStepsCommand = async (input, context) => {
643
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
429
+ const b = (0, core_1.requestBuilder)(input, context);
644
430
  const headers = {};
645
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
646
- "/domains/{DomainName}/workflows/{WorkflowId}/steps";
647
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
648
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WorkflowId", () => input.WorkflowId, "{WorkflowId}", false);
431
+ b.bp("/domains/{DomainName}/workflows/{WorkflowId}/steps");
432
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
433
+ b.p("WorkflowId", () => input.WorkflowId, "{WorkflowId}", false);
649
434
  const query = (0, smithy_client_1.map)({
650
- "next-token": [, input.NextToken],
651
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
435
+ [_nt]: [, input[_NT]],
436
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
652
437
  });
653
438
  let body;
654
- return new protocol_http_1.HttpRequest({
655
- protocol,
656
- hostname,
657
- port,
658
- method: "GET",
659
- headers,
660
- path: resolvedPath,
661
- query,
662
- body,
663
- });
439
+ b.m("GET").h(headers).q(query).b(body);
440
+ return b.build();
664
441
  };
665
442
  exports.se_GetWorkflowStepsCommand = se_GetWorkflowStepsCommand;
666
443
  const se_ListAccountIntegrationsCommand = async (input, context) => {
667
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
444
+ const b = (0, core_1.requestBuilder)(input, context);
668
445
  const headers = {
669
446
  "content-type": "application/json",
670
447
  };
671
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/integrations";
448
+ b.bp("/integrations");
672
449
  const query = (0, smithy_client_1.map)({
673
- "next-token": [, input.NextToken],
674
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
675
- "include-hidden": [() => input.IncludeHidden !== void 0, () => input.IncludeHidden.toString()],
450
+ [_nt]: [, input[_NT]],
451
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
452
+ [_ih]: [() => input.IncludeHidden !== void 0, () => input[_IH].toString()],
676
453
  });
677
454
  let body;
678
455
  body = JSON.stringify((0, smithy_client_1.take)(input, {
679
456
  Uri: [],
680
457
  }));
681
- return new protocol_http_1.HttpRequest({
682
- protocol,
683
- hostname,
684
- port,
685
- method: "POST",
686
- headers,
687
- path: resolvedPath,
688
- query,
689
- body,
690
- });
458
+ b.m("POST").h(headers).q(query).b(body);
459
+ return b.build();
691
460
  };
692
461
  exports.se_ListAccountIntegrationsCommand = se_ListAccountIntegrationsCommand;
693
462
  const se_ListCalculatedAttributeDefinitionsCommand = async (input, context) => {
694
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
463
+ const b = (0, core_1.requestBuilder)(input, context);
695
464
  const headers = {};
696
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
697
- "/domains/{DomainName}/calculated-attributes";
698
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
465
+ b.bp("/domains/{DomainName}/calculated-attributes");
466
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
699
467
  const query = (0, smithy_client_1.map)({
700
- "next-token": [, input.NextToken],
701
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
468
+ [_nt]: [, input[_NT]],
469
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
702
470
  });
703
471
  let body;
704
- return new protocol_http_1.HttpRequest({
705
- protocol,
706
- hostname,
707
- port,
708
- method: "GET",
709
- headers,
710
- path: resolvedPath,
711
- query,
712
- body,
713
- });
472
+ b.m("GET").h(headers).q(query).b(body);
473
+ return b.build();
714
474
  };
715
475
  exports.se_ListCalculatedAttributeDefinitionsCommand = se_ListCalculatedAttributeDefinitionsCommand;
716
476
  const se_ListCalculatedAttributesForProfileCommand = async (input, context) => {
717
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
477
+ const b = (0, core_1.requestBuilder)(input, context);
718
478
  const headers = {};
719
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
720
- "/domains/{DomainName}/profile/{ProfileId}/calculated-attributes";
721
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
722
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileId", () => input.ProfileId, "{ProfileId}", false);
479
+ b.bp("/domains/{DomainName}/profile/{ProfileId}/calculated-attributes");
480
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
481
+ b.p("ProfileId", () => input.ProfileId, "{ProfileId}", false);
723
482
  const query = (0, smithy_client_1.map)({
724
- "next-token": [, input.NextToken],
725
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
483
+ [_nt]: [, input[_NT]],
484
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
726
485
  });
727
486
  let body;
728
- return new protocol_http_1.HttpRequest({
729
- protocol,
730
- hostname,
731
- port,
732
- method: "GET",
733
- headers,
734
- path: resolvedPath,
735
- query,
736
- body,
737
- });
487
+ b.m("GET").h(headers).q(query).b(body);
488
+ return b.build();
738
489
  };
739
490
  exports.se_ListCalculatedAttributesForProfileCommand = se_ListCalculatedAttributesForProfileCommand;
740
491
  const se_ListDomainsCommand = async (input, context) => {
741
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
492
+ const b = (0, core_1.requestBuilder)(input, context);
742
493
  const headers = {};
743
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains";
494
+ b.bp("/domains");
744
495
  const query = (0, smithy_client_1.map)({
745
- "next-token": [, input.NextToken],
746
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
496
+ [_nt]: [, input[_NT]],
497
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
747
498
  });
748
499
  let body;
749
- return new protocol_http_1.HttpRequest({
750
- protocol,
751
- hostname,
752
- port,
753
- method: "GET",
754
- headers,
755
- path: resolvedPath,
756
- query,
757
- body,
758
- });
500
+ b.m("GET").h(headers).q(query).b(body);
501
+ return b.build();
759
502
  };
760
503
  exports.se_ListDomainsCommand = se_ListDomainsCommand;
761
504
  const se_ListEventStreamsCommand = async (input, context) => {
762
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
505
+ const b = (0, core_1.requestBuilder)(input, context);
763
506
  const headers = {};
764
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/event-streams";
765
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
507
+ b.bp("/domains/{DomainName}/event-streams");
508
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
766
509
  const query = (0, smithy_client_1.map)({
767
- "next-token": [, input.NextToken],
768
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
510
+ [_nt]: [, input[_NT]],
511
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
769
512
  });
770
513
  let body;
771
- return new protocol_http_1.HttpRequest({
772
- protocol,
773
- hostname,
774
- port,
775
- method: "GET",
776
- headers,
777
- path: resolvedPath,
778
- query,
779
- body,
780
- });
514
+ b.m("GET").h(headers).q(query).b(body);
515
+ return b.build();
781
516
  };
782
517
  exports.se_ListEventStreamsCommand = se_ListEventStreamsCommand;
783
518
  const se_ListIdentityResolutionJobsCommand = async (input, context) => {
784
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
519
+ const b = (0, core_1.requestBuilder)(input, context);
785
520
  const headers = {};
786
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
787
- "/domains/{DomainName}/identity-resolution-jobs";
788
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
521
+ b.bp("/domains/{DomainName}/identity-resolution-jobs");
522
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
789
523
  const query = (0, smithy_client_1.map)({
790
- "next-token": [, input.NextToken],
791
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
524
+ [_nt]: [, input[_NT]],
525
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
792
526
  });
793
527
  let body;
794
- return new protocol_http_1.HttpRequest({
795
- protocol,
796
- hostname,
797
- port,
798
- method: "GET",
799
- headers,
800
- path: resolvedPath,
801
- query,
802
- body,
803
- });
528
+ b.m("GET").h(headers).q(query).b(body);
529
+ return b.build();
804
530
  };
805
531
  exports.se_ListIdentityResolutionJobsCommand = se_ListIdentityResolutionJobsCommand;
806
532
  const se_ListIntegrationsCommand = async (input, context) => {
807
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
533
+ const b = (0, core_1.requestBuilder)(input, context);
808
534
  const headers = {};
809
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/integrations";
810
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
535
+ b.bp("/domains/{DomainName}/integrations");
536
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
811
537
  const query = (0, smithy_client_1.map)({
812
- "next-token": [, input.NextToken],
813
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
814
- "include-hidden": [() => input.IncludeHidden !== void 0, () => input.IncludeHidden.toString()],
538
+ [_nt]: [, input[_NT]],
539
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
540
+ [_ih]: [() => input.IncludeHidden !== void 0, () => input[_IH].toString()],
815
541
  });
816
542
  let body;
817
- return new protocol_http_1.HttpRequest({
818
- protocol,
819
- hostname,
820
- port,
821
- method: "GET",
822
- headers,
823
- path: resolvedPath,
824
- query,
825
- body,
826
- });
543
+ b.m("GET").h(headers).q(query).b(body);
544
+ return b.build();
827
545
  };
828
546
  exports.se_ListIntegrationsCommand = se_ListIntegrationsCommand;
829
547
  const se_ListProfileObjectsCommand = async (input, context) => {
830
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
548
+ const b = (0, core_1.requestBuilder)(input, context);
831
549
  const headers = {
832
550
  "content-type": "application/json",
833
551
  };
834
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/profiles/objects";
835
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
552
+ b.bp("/domains/{DomainName}/profiles/objects");
553
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
836
554
  const query = (0, smithy_client_1.map)({
837
- "next-token": [, input.NextToken],
838
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
555
+ [_nt]: [, input[_NT]],
556
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
839
557
  });
840
558
  let body;
841
559
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -843,111 +561,71 @@ const se_ListProfileObjectsCommand = async (input, context) => {
843
561
  ObjectTypeName: [],
844
562
  ProfileId: [],
845
563
  }));
846
- return new protocol_http_1.HttpRequest({
847
- protocol,
848
- hostname,
849
- port,
850
- method: "POST",
851
- headers,
852
- path: resolvedPath,
853
- query,
854
- body,
855
- });
564
+ b.m("POST").h(headers).q(query).b(body);
565
+ return b.build();
856
566
  };
857
567
  exports.se_ListProfileObjectsCommand = se_ListProfileObjectsCommand;
858
568
  const se_ListProfileObjectTypesCommand = async (input, context) => {
859
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
569
+ const b = (0, core_1.requestBuilder)(input, context);
860
570
  const headers = {};
861
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/object-types";
862
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
571
+ b.bp("/domains/{DomainName}/object-types");
572
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
863
573
  const query = (0, smithy_client_1.map)({
864
- "next-token": [, input.NextToken],
865
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
574
+ [_nt]: [, input[_NT]],
575
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
866
576
  });
867
577
  let body;
868
- return new protocol_http_1.HttpRequest({
869
- protocol,
870
- hostname,
871
- port,
872
- method: "GET",
873
- headers,
874
- path: resolvedPath,
875
- query,
876
- body,
877
- });
578
+ b.m("GET").h(headers).q(query).b(body);
579
+ return b.build();
878
580
  };
879
581
  exports.se_ListProfileObjectTypesCommand = se_ListProfileObjectTypesCommand;
880
582
  const se_ListProfileObjectTypeTemplatesCommand = async (input, context) => {
881
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
583
+ const b = (0, core_1.requestBuilder)(input, context);
882
584
  const headers = {};
883
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates";
585
+ b.bp("/templates");
884
586
  const query = (0, smithy_client_1.map)({
885
- "next-token": [, input.NextToken],
886
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
587
+ [_nt]: [, input[_NT]],
588
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
887
589
  });
888
590
  let body;
889
- return new protocol_http_1.HttpRequest({
890
- protocol,
891
- hostname,
892
- port,
893
- method: "GET",
894
- headers,
895
- path: resolvedPath,
896
- query,
897
- body,
898
- });
591
+ b.m("GET").h(headers).q(query).b(body);
592
+ return b.build();
899
593
  };
900
594
  exports.se_ListProfileObjectTypeTemplatesCommand = se_ListProfileObjectTypeTemplatesCommand;
901
595
  const se_ListRuleBasedMatchesCommand = async (input, context) => {
902
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
596
+ const b = (0, core_1.requestBuilder)(input, context);
903
597
  const headers = {};
904
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
905
- "/domains/{DomainName}/profiles/ruleBasedMatches";
906
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
598
+ b.bp("/domains/{DomainName}/profiles/ruleBasedMatches");
599
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
907
600
  const query = (0, smithy_client_1.map)({
908
- "next-token": [, input.NextToken],
909
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
601
+ [_nt]: [, input[_NT]],
602
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
910
603
  });
911
604
  let body;
912
- return new protocol_http_1.HttpRequest({
913
- protocol,
914
- hostname,
915
- port,
916
- method: "GET",
917
- headers,
918
- path: resolvedPath,
919
- query,
920
- body,
921
- });
605
+ b.m("GET").h(headers).q(query).b(body);
606
+ return b.build();
922
607
  };
923
608
  exports.se_ListRuleBasedMatchesCommand = se_ListRuleBasedMatchesCommand;
924
609
  const se_ListTagsForResourceCommand = async (input, context) => {
925
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
610
+ const b = (0, core_1.requestBuilder)(input, context);
926
611
  const headers = {};
927
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
928
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
612
+ b.bp("/tags/{resourceArn}");
613
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
929
614
  let body;
930
- return new protocol_http_1.HttpRequest({
931
- protocol,
932
- hostname,
933
- port,
934
- method: "GET",
935
- headers,
936
- path: resolvedPath,
937
- body,
938
- });
615
+ b.m("GET").h(headers).b(body);
616
+ return b.build();
939
617
  };
940
618
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
941
619
  const se_ListWorkflowsCommand = async (input, context) => {
942
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
620
+ const b = (0, core_1.requestBuilder)(input, context);
943
621
  const headers = {
944
622
  "content-type": "application/json",
945
623
  };
946
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/workflows";
947
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
624
+ b.bp("/domains/{DomainName}/workflows");
625
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
948
626
  const query = (0, smithy_client_1.map)({
949
- "next-token": [, input.NextToken],
950
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
627
+ [_nt]: [, input[_NT]],
628
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
951
629
  });
952
630
  let body;
953
631
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -956,50 +634,34 @@ const se_ListWorkflowsCommand = async (input, context) => {
956
634
  Status: [],
957
635
  WorkflowType: [],
958
636
  }));
959
- return new protocol_http_1.HttpRequest({
960
- protocol,
961
- hostname,
962
- port,
963
- method: "POST",
964
- headers,
965
- path: resolvedPath,
966
- query,
967
- body,
968
- });
637
+ b.m("POST").h(headers).q(query).b(body);
638
+ return b.build();
969
639
  };
970
640
  exports.se_ListWorkflowsCommand = se_ListWorkflowsCommand;
971
641
  const se_MergeProfilesCommand = async (input, context) => {
972
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
642
+ const b = (0, core_1.requestBuilder)(input, context);
973
643
  const headers = {
974
644
  "content-type": "application/json",
975
645
  };
976
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
977
- "/domains/{DomainName}/profiles/objects/merge";
978
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
646
+ b.bp("/domains/{DomainName}/profiles/objects/merge");
647
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
979
648
  let body;
980
649
  body = JSON.stringify((0, smithy_client_1.take)(input, {
981
650
  FieldSourceProfileIds: (_) => (0, smithy_client_1._json)(_),
982
651
  MainProfileId: [],
983
652
  ProfileIdsToBeMerged: (_) => (0, smithy_client_1._json)(_),
984
653
  }));
985
- return new protocol_http_1.HttpRequest({
986
- protocol,
987
- hostname,
988
- port,
989
- method: "POST",
990
- headers,
991
- path: resolvedPath,
992
- body,
993
- });
654
+ b.m("POST").h(headers).b(body);
655
+ return b.build();
994
656
  };
995
657
  exports.se_MergeProfilesCommand = se_MergeProfilesCommand;
996
658
  const se_PutIntegrationCommand = async (input, context) => {
997
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
659
+ const b = (0, core_1.requestBuilder)(input, context);
998
660
  const headers = {
999
661
  "content-type": "application/json",
1000
662
  };
1001
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/integrations";
1002
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
663
+ b.bp("/domains/{DomainName}/integrations");
664
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
1003
665
  let body;
1004
666
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1005
667
  FlowDefinition: (_) => se_FlowDefinition(_, context),
@@ -1008,49 +670,34 @@ const se_PutIntegrationCommand = async (input, context) => {
1008
670
  Tags: (_) => (0, smithy_client_1._json)(_),
1009
671
  Uri: [],
1010
672
  }));
1011
- return new protocol_http_1.HttpRequest({
1012
- protocol,
1013
- hostname,
1014
- port,
1015
- method: "PUT",
1016
- headers,
1017
- path: resolvedPath,
1018
- body,
1019
- });
673
+ b.m("PUT").h(headers).b(body);
674
+ return b.build();
1020
675
  };
1021
676
  exports.se_PutIntegrationCommand = se_PutIntegrationCommand;
1022
677
  const se_PutProfileObjectCommand = async (input, context) => {
1023
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
678
+ const b = (0, core_1.requestBuilder)(input, context);
1024
679
  const headers = {
1025
680
  "content-type": "application/json",
1026
681
  };
1027
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/profiles/objects";
1028
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
682
+ b.bp("/domains/{DomainName}/profiles/objects");
683
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
1029
684
  let body;
1030
685
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1031
686
  Object: [],
1032
687
  ObjectTypeName: [],
1033
688
  }));
1034
- return new protocol_http_1.HttpRequest({
1035
- protocol,
1036
- hostname,
1037
- port,
1038
- method: "PUT",
1039
- headers,
1040
- path: resolvedPath,
1041
- body,
1042
- });
689
+ b.m("PUT").h(headers).b(body);
690
+ return b.build();
1043
691
  };
1044
692
  exports.se_PutProfileObjectCommand = se_PutProfileObjectCommand;
1045
693
  const se_PutProfileObjectTypeCommand = async (input, context) => {
1046
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
694
+ const b = (0, core_1.requestBuilder)(input, context);
1047
695
  const headers = {
1048
696
  "content-type": "application/json",
1049
697
  };
1050
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1051
- "/domains/{DomainName}/object-types/{ObjectTypeName}";
1052
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
1053
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ObjectTypeName", () => input.ObjectTypeName, "{ObjectTypeName}", false);
698
+ b.bp("/domains/{DomainName}/object-types/{ObjectTypeName}");
699
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
700
+ b.p("ObjectTypeName", () => input.ObjectTypeName, "{ObjectTypeName}", false);
1054
701
  let body;
1055
702
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1056
703
  AllowProfileCreation: [],
@@ -1063,27 +710,20 @@ const se_PutProfileObjectTypeCommand = async (input, context) => {
1063
710
  Tags: (_) => (0, smithy_client_1._json)(_),
1064
711
  TemplateId: [],
1065
712
  }));
1066
- return new protocol_http_1.HttpRequest({
1067
- protocol,
1068
- hostname,
1069
- port,
1070
- method: "PUT",
1071
- headers,
1072
- path: resolvedPath,
1073
- body,
1074
- });
713
+ b.m("PUT").h(headers).b(body);
714
+ return b.build();
1075
715
  };
1076
716
  exports.se_PutProfileObjectTypeCommand = se_PutProfileObjectTypeCommand;
1077
717
  const se_SearchProfilesCommand = async (input, context) => {
1078
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
718
+ const b = (0, core_1.requestBuilder)(input, context);
1079
719
  const headers = {
1080
720
  "content-type": "application/json",
1081
721
  };
1082
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/profiles/search";
1083
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
722
+ b.bp("/domains/{DomainName}/profiles/search");
723
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
1084
724
  const query = (0, smithy_client_1.map)({
1085
- "next-token": [, input.NextToken],
1086
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
725
+ [_nt]: [, input[_NT]],
726
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1087
727
  });
1088
728
  let body;
1089
729
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1092,97 +732,66 @@ const se_SearchProfilesCommand = async (input, context) => {
1092
732
  LogicalOperator: [],
1093
733
  Values: (_) => (0, smithy_client_1._json)(_),
1094
734
  }));
1095
- return new protocol_http_1.HttpRequest({
1096
- protocol,
1097
- hostname,
1098
- port,
1099
- method: "POST",
1100
- headers,
1101
- path: resolvedPath,
1102
- query,
1103
- body,
1104
- });
735
+ b.m("POST").h(headers).q(query).b(body);
736
+ return b.build();
1105
737
  };
1106
738
  exports.se_SearchProfilesCommand = se_SearchProfilesCommand;
1107
739
  const se_TagResourceCommand = async (input, context) => {
1108
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
740
+ const b = (0, core_1.requestBuilder)(input, context);
1109
741
  const headers = {
1110
742
  "content-type": "application/json",
1111
743
  };
1112
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1113
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
744
+ b.bp("/tags/{resourceArn}");
745
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1114
746
  let body;
1115
747
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1116
748
  tags: (_) => (0, smithy_client_1._json)(_),
1117
749
  }));
1118
- return new protocol_http_1.HttpRequest({
1119
- protocol,
1120
- hostname,
1121
- port,
1122
- method: "POST",
1123
- headers,
1124
- path: resolvedPath,
1125
- body,
1126
- });
750
+ b.m("POST").h(headers).b(body);
751
+ return b.build();
1127
752
  };
1128
753
  exports.se_TagResourceCommand = se_TagResourceCommand;
1129
754
  const se_UntagResourceCommand = async (input, context) => {
1130
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
755
+ const b = (0, core_1.requestBuilder)(input, context);
1131
756
  const headers = {};
1132
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1133
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
757
+ b.bp("/tags/{resourceArn}");
758
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1134
759
  const query = (0, smithy_client_1.map)({
1135
- tagKeys: [
760
+ [_tK]: [
1136
761
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
1137
- () => (input.tagKeys || []).map((_entry) => _entry),
762
+ () => (input[_tK] || []).map((_entry) => _entry),
1138
763
  ],
1139
764
  });
1140
765
  let body;
1141
- return new protocol_http_1.HttpRequest({
1142
- protocol,
1143
- hostname,
1144
- port,
1145
- method: "DELETE",
1146
- headers,
1147
- path: resolvedPath,
1148
- query,
1149
- body,
1150
- });
766
+ b.m("DELETE").h(headers).q(query).b(body);
767
+ return b.build();
1151
768
  };
1152
769
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1153
770
  const se_UpdateCalculatedAttributeDefinitionCommand = async (input, context) => {
1154
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
771
+ const b = (0, core_1.requestBuilder)(input, context);
1155
772
  const headers = {
1156
773
  "content-type": "application/json",
1157
774
  };
1158
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1159
- "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}";
1160
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
1161
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
775
+ b.bp("/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}");
776
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
777
+ b.p("CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
1162
778
  let body;
1163
779
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1164
780
  Conditions: (_) => (0, smithy_client_1._json)(_),
1165
781
  Description: [],
1166
782
  DisplayName: [],
1167
783
  }));
1168
- return new protocol_http_1.HttpRequest({
1169
- protocol,
1170
- hostname,
1171
- port,
1172
- method: "PUT",
1173
- headers,
1174
- path: resolvedPath,
1175
- body,
1176
- });
784
+ b.m("PUT").h(headers).b(body);
785
+ return b.build();
1177
786
  };
1178
787
  exports.se_UpdateCalculatedAttributeDefinitionCommand = se_UpdateCalculatedAttributeDefinitionCommand;
1179
788
  const se_UpdateDomainCommand = async (input, context) => {
1180
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
789
+ const b = (0, core_1.requestBuilder)(input, context);
1181
790
  const headers = {
1182
791
  "content-type": "application/json",
1183
792
  };
1184
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}";
1185
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
793
+ b.bp("/domains/{DomainName}");
794
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
1186
795
  let body;
1187
796
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1188
797
  DeadLetterQueueUrl: [],
@@ -1192,24 +801,17 @@ const se_UpdateDomainCommand = async (input, context) => {
1192
801
  RuleBasedMatching: (_) => (0, smithy_client_1._json)(_),
1193
802
  Tags: (_) => (0, smithy_client_1._json)(_),
1194
803
  }));
1195
- return new protocol_http_1.HttpRequest({
1196
- protocol,
1197
- hostname,
1198
- port,
1199
- method: "PUT",
1200
- headers,
1201
- path: resolvedPath,
1202
- body,
1203
- });
804
+ b.m("PUT").h(headers).b(body);
805
+ return b.build();
1204
806
  };
1205
807
  exports.se_UpdateDomainCommand = se_UpdateDomainCommand;
1206
808
  const se_UpdateProfileCommand = async (input, context) => {
1207
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
809
+ const b = (0, core_1.requestBuilder)(input, context);
1208
810
  const headers = {
1209
811
  "content-type": "application/json",
1210
812
  };
1211
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/profiles";
1212
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
813
+ b.bp("/domains/{DomainName}/profiles");
814
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
1213
815
  let body;
1214
816
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1215
817
  AccountNumber: [],
@@ -1237,15 +839,8 @@ const se_UpdateProfileCommand = async (input, context) => {
1237
839
  ProfileId: [],
1238
840
  ShippingAddress: (_) => (0, smithy_client_1._json)(_),
1239
841
  }));
1240
- return new protocol_http_1.HttpRequest({
1241
- protocol,
1242
- hostname,
1243
- port,
1244
- method: "PUT",
1245
- headers,
1246
- path: resolvedPath,
1247
- body,
1248
- });
842
+ b.m("PUT").h(headers).b(body);
843
+ return b.build();
1249
844
  };
1250
845
  exports.se_UpdateProfileCommand = se_UpdateProfileCommand;
1251
846
  const de_AddProfileKeyCommand = async (output, context) => {
@@ -4098,6 +3693,13 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
4098
3693
  value !== "" &&
4099
3694
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
4100
3695
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
3696
+ const _IH = "IncludeHidden";
3697
+ const _MR = "MaxResults";
3698
+ const _NT = "NextToken";
3699
+ const _ih = "include-hidden";
3700
+ const _mr = "max-results";
3701
+ const _nt = "next-token";
3702
+ const _tK = "tagKeys";
4101
3703
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4102
3704
  if (encoded.length) {
4103
3705
  return JSON.parse(encoded);