@aws-sdk/client-customer-profiles 3.987.0 → 3.989.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultCustomerProfilesHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2020-08-15",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.customerprofiles",
30
+ errorTypeRegistries,
29
31
  version: "2020-08-15",
30
32
  serviceTarget: "CustomerProfiles_20200815",
31
33
  },
@@ -770,7 +770,7 @@ const _mr = "max-results";
770
770
  const _n = "name";
771
771
  const _nt = "next-token";
772
772
  const _rA = "resourceArn";
773
- const _s = "server";
773
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.customerprofiles";
774
774
  const _sJ = "stringifiedJson";
775
775
  const _sST = "sensitiveString0To1000";
776
776
  const _sSTe = "sensitiveString0To255";
@@ -781,7 +781,7 @@ const _sSTensit = "sensitiveString1To255";
781
781
  const _sSTensiti = "sensitiveString1To4000";
782
782
  const _sSTensitiv = "sensitiveString1To50000";
783
783
  const _sT = "sensitiveText";
784
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.customerprofiles";
784
+ const _se = "server";
785
785
  const _t = "tags";
786
786
  const _tK = "tagKeys";
787
787
  const _tmc = "training-metrics-count";
@@ -789,6 +789,44 @@ const n0 = "com.amazonaws.customerprofiles";
789
789
  import { TypeRegistry } from "@smithy/core/schema";
790
790
  import { CustomerProfilesServiceException } from "../models/CustomerProfilesServiceException";
791
791
  import { AccessDeniedException, BadRequestException, InternalServerException, ResourceNotFoundException, ThrottlingException, } from "../models/errors";
792
+ const _s_registry = TypeRegistry.for(_s);
793
+ export var CustomerProfilesServiceException$ = [-3, _s, "CustomerProfilesServiceException", 0, [], []];
794
+ _s_registry.registerError(CustomerProfilesServiceException$, CustomerProfilesServiceException);
795
+ const n0_registry = TypeRegistry.for(n0);
796
+ export var AccessDeniedException$ = [-3, n0, _ADE,
797
+ { [_e]: _c, [_hE]: 403 },
798
+ [_M],
799
+ [0]
800
+ ];
801
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
802
+ export var BadRequestException$ = [-3, n0, _BRE,
803
+ { [_e]: _c, [_hE]: 400 },
804
+ [_M],
805
+ [0]
806
+ ];
807
+ n0_registry.registerError(BadRequestException$, BadRequestException);
808
+ export var InternalServerException$ = [-3, n0, _ISE,
809
+ { [_e]: _se, [_hE]: 500 },
810
+ [_M],
811
+ [0]
812
+ ];
813
+ n0_registry.registerError(InternalServerException$, InternalServerException);
814
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
815
+ { [_e]: _c, [_hE]: 404 },
816
+ [_M],
817
+ [0]
818
+ ];
819
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
820
+ export var ThrottlingException$ = [-3, n0, _TE,
821
+ { [_e]: _c, [_hE]: 429 },
822
+ [_M],
823
+ [0]
824
+ ];
825
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
826
+ export const errorTypeRegistries = [
827
+ _s_registry,
828
+ n0_registry,
829
+ ];
792
830
  var Gender = [0, n0, _G, 8, 0];
793
831
  var PartyType = [0, n0, _PT, 8, 0];
794
832
  var ProfileType = [0, n0, _PTr, 8, 0];
@@ -803,12 +841,6 @@ var sensitiveString1To50000 = [0, n0, _sSTensitiv, 8, 0];
803
841
  var sensitiveText = [0, n0, _sT, 8, 0];
804
842
  var Statistic = [0, n0, _S, 8, 0];
805
843
  var stringifiedJson = [0, n0, _sJ, 8, 0];
806
- export var AccessDeniedException$ = [-3, n0, _ADE,
807
- { [_e]: _c, [_hE]: 403 },
808
- [_M],
809
- [0]
810
- ];
811
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
812
844
  export var AdditionalSearchKey$ = [3, n0, _ASK,
813
845
  0,
814
846
  [_KN, _V],
@@ -884,12 +916,6 @@ export var AutoMerging$ = [3, n0, _AM,
884
916
  [_En, _Con, _CR, _MACSFM],
885
917
  [2, () => Consolidation$, () => ConflictResolution$, 1], 1
886
918
  ];
887
- export var BadRequestException$ = [-3, n0, _BRE,
888
- { [_e]: _c, [_hE]: 400 },
889
- [_M],
890
- [0]
891
- ];
892
- TypeRegistry.for(n0).registerError(BadRequestException$, BadRequestException);
893
919
  export var Batch$ = [3, n0, _Ba,
894
920
  0,
895
921
  [_ST, _ET],
@@ -1665,12 +1691,6 @@ export var IntegrationConfig$ = [3, n0, _IC,
1665
1691
  [_AI],
1666
1692
  [[() => AppflowIntegration$, 0]]
1667
1693
  ];
1668
- export var InternalServerException$ = [-3, n0, _ISE,
1669
- { [_e]: _s, [_hE]: 500 },
1670
- [_M],
1671
- [0]
1672
- ];
1673
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
1674
1694
  export var JobSchedule$ = [3, n0, _JSo,
1675
1695
  0,
1676
1696
  [_DOTW, _Ti],
@@ -2151,12 +2171,6 @@ export var RecommenderUpdate$ = [3, n0, _RU,
2151
2171
  [_RC, _Sta, _CA, _LUA, _FR],
2152
2172
  [() => RecommenderConfig$, 0, 4, 4, 0]
2153
2173
  ];
2154
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
2155
- { [_e]: _c, [_hE]: 404 },
2156
- [_M],
2157
- [0]
2158
- ];
2159
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
2160
2174
  export var ResultsSummary$ = [3, n0, _RS,
2161
2175
  0,
2162
2176
  [_UR, _CRr, _FRa],
@@ -2302,12 +2316,6 @@ export var Threshold$ = [3, n0, _Th,
2302
2316
  [_Va, _Op],
2303
2317
  [0, 0], 2
2304
2318
  ];
2305
- export var ThrottlingException$ = [-3, n0, _TE,
2306
- { [_e]: _c, [_hE]: 429 },
2307
- [_M],
2308
- [0]
2309
- ];
2310
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
2311
2319
  export var TrainingMetrics$ = [3, n0, _TM,
2312
2320
  0,
2313
2321
  [_Ti, _Me],
@@ -2428,8 +2436,6 @@ export var ZendeskSourceProperties$ = [3, n0, _ZSP,
2428
2436
  [_Ob],
2429
2437
  [0], 1
2430
2438
  ];
2431
- export var CustomerProfilesServiceException$ = [-3, _sm, "CustomerProfilesServiceException", 0, [], []];
2432
- TypeRegistry.for(_sm).registerError(CustomerProfilesServiceException$, CustomerProfilesServiceException);
2433
2439
  var additionalSearchKeysList = [1, n0, _aSKL,
2434
2440
  0, () => AdditionalSearchKey$
2435
2441
  ];
@@ -1,5 +1,17 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
+ export declare var CustomerProfilesServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var BadRequestException$: StaticErrorSchema;
6
+ export declare var InternalServerException$: StaticErrorSchema;
7
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
8
+ export declare var ThrottlingException$: StaticErrorSchema;
9
+ /**
10
+ * TypeRegistry instances containing modeled errors.
11
+ * @internal
12
+ *
13
+ */
14
+ export declare const errorTypeRegistries: TypeRegistry[];
3
15
  export declare var AdditionalSearchKey$: StaticStructureSchema;
4
16
  export declare var AddProfileKeyRequest$: StaticStructureSchema;
5
17
  export declare var AddProfileKeyResponse$: StaticStructureSchema;
@@ -15,7 +27,6 @@ export declare var AttributeItem$: StaticStructureSchema;
15
27
  export declare var AttributeTypesSelector$: StaticStructureSchema;
16
28
  export declare var AttributeValueItem$: StaticStructureSchema;
17
29
  export declare var AutoMerging$: StaticStructureSchema;
18
- export declare var BadRequestException$: StaticErrorSchema;
19
30
  export declare var Batch$: StaticStructureSchema;
20
31
  export declare var BatchGetCalculatedAttributeForProfileError$: StaticStructureSchema;
21
32
  export declare var BatchGetCalculatedAttributeForProfileRequest$: StaticStructureSchema;
@@ -171,7 +182,6 @@ export declare var Group$: StaticStructureSchema;
171
182
  export declare var IdentityResolutionJob$: StaticStructureSchema;
172
183
  export declare var IncrementalPullConfig$: StaticStructureSchema;
173
184
  export declare var IntegrationConfig$: StaticStructureSchema;
174
- export declare var InternalServerException$: StaticErrorSchema;
175
185
  export declare var JobSchedule$: StaticStructureSchema;
176
186
  export declare var JobStats$: StaticStructureSchema;
177
187
  export declare var LayoutItem$: StaticStructureSchema;
@@ -268,7 +278,6 @@ export declare var RecommenderConfig$: StaticStructureSchema;
268
278
  export declare var RecommenderRecipe$: StaticStructureSchema;
269
279
  export declare var RecommenderSummary$: StaticStructureSchema;
270
280
  export declare var RecommenderUpdate$: StaticStructureSchema;
271
- export declare var ResourceNotFoundException$: StaticErrorSchema;
272
281
  export declare var ResultsSummary$: StaticStructureSchema;
273
282
  export declare var RuleBasedMatchingRequest$: StaticStructureSchema;
274
283
  export declare var RuleBasedMatchingResponse$: StaticStructureSchema;
@@ -298,7 +307,6 @@ export declare var TagResourceRequest$: StaticStructureSchema;
298
307
  export declare var TagResourceResponse$: StaticStructureSchema;
299
308
  export declare var Task$: StaticStructureSchema;
300
309
  export declare var Threshold$: StaticStructureSchema;
301
- export declare var ThrottlingException$: StaticErrorSchema;
302
310
  export declare var TrainingMetrics$: StaticStructureSchema;
303
311
  export declare var TriggerConfig$: StaticStructureSchema;
304
312
  export declare var TriggerProperties$: StaticStructureSchema;
@@ -323,7 +331,6 @@ export declare var WorkflowAttributes$: StaticStructureSchema;
323
331
  export declare var WorkflowMetrics$: StaticStructureSchema;
324
332
  export declare var WorkflowStepItem$: StaticStructureSchema;
325
333
  export declare var ZendeskSourceProperties$: StaticStructureSchema;
326
- export declare var CustomerProfilesServiceException$: StaticErrorSchema;
327
334
  export declare var Dimension$: StaticUnionSchema;
328
335
  export declare var AddProfileKey$: StaticOperationSchema;
329
336
  export declare var BatchGetCalculatedAttributeForProfile$: StaticOperationSchema;
@@ -1,10 +1,17 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  StaticUnionSchema,
6
7
  } from "@smithy/types";
8
+ export declare var CustomerProfilesServiceException$: StaticErrorSchema;
7
9
  export declare var AccessDeniedException$: StaticErrorSchema;
10
+ export declare var BadRequestException$: StaticErrorSchema;
11
+ export declare var InternalServerException$: StaticErrorSchema;
12
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
13
+ export declare var ThrottlingException$: StaticErrorSchema;
14
+ export declare const errorTypeRegistries: TypeRegistry[];
8
15
  export declare var AdditionalSearchKey$: StaticStructureSchema;
9
16
  export declare var AddProfileKeyRequest$: StaticStructureSchema;
10
17
  export declare var AddProfileKeyResponse$: StaticStructureSchema;
@@ -20,7 +27,6 @@ export declare var AttributeItem$: StaticStructureSchema;
20
27
  export declare var AttributeTypesSelector$: StaticStructureSchema;
21
28
  export declare var AttributeValueItem$: StaticStructureSchema;
22
29
  export declare var AutoMerging$: StaticStructureSchema;
23
- export declare var BadRequestException$: StaticErrorSchema;
24
30
  export declare var Batch$: StaticStructureSchema;
25
31
  export declare var BatchGetCalculatedAttributeForProfileError$: StaticStructureSchema;
26
32
  export declare var BatchGetCalculatedAttributeForProfileRequest$: StaticStructureSchema;
@@ -176,7 +182,6 @@ export declare var Group$: StaticStructureSchema;
176
182
  export declare var IdentityResolutionJob$: StaticStructureSchema;
177
183
  export declare var IncrementalPullConfig$: StaticStructureSchema;
178
184
  export declare var IntegrationConfig$: StaticStructureSchema;
179
- export declare var InternalServerException$: StaticErrorSchema;
180
185
  export declare var JobSchedule$: StaticStructureSchema;
181
186
  export declare var JobStats$: StaticStructureSchema;
182
187
  export declare var LayoutItem$: StaticStructureSchema;
@@ -273,7 +278,6 @@ export declare var RecommenderConfig$: StaticStructureSchema;
273
278
  export declare var RecommenderRecipe$: StaticStructureSchema;
274
279
  export declare var RecommenderSummary$: StaticStructureSchema;
275
280
  export declare var RecommenderUpdate$: StaticStructureSchema;
276
- export declare var ResourceNotFoundException$: StaticErrorSchema;
277
281
  export declare var ResultsSummary$: StaticStructureSchema;
278
282
  export declare var RuleBasedMatchingRequest$: StaticStructureSchema;
279
283
  export declare var RuleBasedMatchingResponse$: StaticStructureSchema;
@@ -303,7 +307,6 @@ export declare var TagResourceRequest$: StaticStructureSchema;
303
307
  export declare var TagResourceResponse$: StaticStructureSchema;
304
308
  export declare var Task$: StaticStructureSchema;
305
309
  export declare var Threshold$: StaticStructureSchema;
306
- export declare var ThrottlingException$: StaticErrorSchema;
307
310
  export declare var TrainingMetrics$: StaticStructureSchema;
308
311
  export declare var TriggerConfig$: StaticStructureSchema;
309
312
  export declare var TriggerProperties$: StaticStructureSchema;
@@ -328,7 +331,6 @@ export declare var WorkflowAttributes$: StaticStructureSchema;
328
331
  export declare var WorkflowMetrics$: StaticStructureSchema;
329
332
  export declare var WorkflowStepItem$: StaticStructureSchema;
330
333
  export declare var ZendeskSourceProperties$: StaticStructureSchema;
331
- export declare var CustomerProfilesServiceException$: StaticErrorSchema;
332
334
  export declare var Dimension$: StaticUnionSchema;
333
335
  export declare var AddProfileKey$: StaticOperationSchema;
334
336
  export declare var BatchGetCalculatedAttributeForProfile$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-customer-profiles",
3
3
  "description": "AWS SDK for JavaScript Customer Profiles Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.989.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-customer-profiles",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.9",
25
+ "@aws-sdk/credential-provider-node": "^3.972.8",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.9",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.989.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",