@aws-sdk/client-cognito-sync 3.1075.0 → 3.1076.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +912 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/CognitoSyncServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -157
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -39
- package/dist-cjs/schemas/schemas_0.js +0 -541
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
|
|
17
|
+
const defaultCognitoSyncHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
|
+
return {
|
|
19
|
+
operation: getSmithyContext(context).operation,
|
|
20
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
21
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
22
|
+
})(),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
26
|
+
return {
|
|
27
|
+
schemeId: "aws.auth#sigv4",
|
|
28
|
+
signingProperties: {
|
|
29
|
+
name: "cognito-sync",
|
|
30
|
+
region: authParameters.region,
|
|
31
|
+
},
|
|
32
|
+
propertiesExtractor: (config, context) => ({
|
|
33
|
+
signingProperties: {
|
|
34
|
+
config,
|
|
35
|
+
context,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const defaultCognitoSyncHttpAuthSchemeProvider = (authParameters) => {
|
|
41
|
+
const options = [];
|
|
42
|
+
switch (authParameters.operation) {
|
|
43
|
+
default: {
|
|
44
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
};
|
|
49
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
50
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
51
|
+
return Object.assign(config_0, {
|
|
52
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
53
|
+
});
|
|
54
|
+
};
|
|
19
55
|
|
|
20
56
|
const resolveClientEndpointParameters = (options) => {
|
|
21
57
|
return Object.assign(options, {
|
|
@@ -31,6 +67,781 @@ const commonParams = {
|
|
|
31
67
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
68
|
};
|
|
33
69
|
|
|
70
|
+
var version = "3.1075.0";
|
|
71
|
+
var packageInfo = {
|
|
72
|
+
version: version};
|
|
73
|
+
|
|
74
|
+
const k = "ref";
|
|
75
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
76
|
+
const _data = {
|
|
77
|
+
conditions: [
|
|
78
|
+
[c, [g]],
|
|
79
|
+
[c, j],
|
|
80
|
+
["aws.partition", j, d],
|
|
81
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
82
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
83
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
85
|
+
],
|
|
86
|
+
results: [
|
|
87
|
+
[a],
|
|
88
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
89
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
90
|
+
[g, i],
|
|
91
|
+
["https://cognito-sync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
92
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
93
|
+
["https://cognito-sync-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
94
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
95
|
+
["https://cognito-sync.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
96
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
97
|
+
["https://cognito-sync.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
98
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
99
|
+
]
|
|
100
|
+
};
|
|
101
|
+
const root = 2;
|
|
102
|
+
const r = 100_000_000;
|
|
103
|
+
const nodes = new Int32Array([
|
|
104
|
+
-1, 1, -1,
|
|
105
|
+
0, 12, 3,
|
|
106
|
+
1, 4, r + 11,
|
|
107
|
+
2, 5, r + 11,
|
|
108
|
+
3, 8, 6,
|
|
109
|
+
4, 7, r + 10,
|
|
110
|
+
5, r + 8, r + 9,
|
|
111
|
+
4, 10, 9,
|
|
112
|
+
6, r + 6, r + 7,
|
|
113
|
+
5, 11, r + 5,
|
|
114
|
+
6, r + 4, r + 5,
|
|
115
|
+
3, r + 1, 13,
|
|
116
|
+
4, r + 2, r + 3,
|
|
117
|
+
]);
|
|
118
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
119
|
+
|
|
120
|
+
const cache = new EndpointCache({
|
|
121
|
+
size: 50,
|
|
122
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
123
|
+
});
|
|
124
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
125
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
126
|
+
endpointParams: endpointParams,
|
|
127
|
+
logger: context.logger,
|
|
128
|
+
}));
|
|
129
|
+
};
|
|
130
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
131
|
+
|
|
132
|
+
class CognitoSyncServiceException extends ServiceException {
|
|
133
|
+
constructor(options) {
|
|
134
|
+
super(options);
|
|
135
|
+
Object.setPrototypeOf(this, CognitoSyncServiceException.prototype);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
class AlreadyStreamedException extends CognitoSyncServiceException {
|
|
140
|
+
name = "AlreadyStreamedException";
|
|
141
|
+
$fault = "client";
|
|
142
|
+
constructor(opts) {
|
|
143
|
+
super({
|
|
144
|
+
name: "AlreadyStreamedException",
|
|
145
|
+
$fault: "client",
|
|
146
|
+
...opts,
|
|
147
|
+
});
|
|
148
|
+
Object.setPrototypeOf(this, AlreadyStreamedException.prototype);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
class DuplicateRequestException extends CognitoSyncServiceException {
|
|
152
|
+
name = "DuplicateRequestException";
|
|
153
|
+
$fault = "client";
|
|
154
|
+
constructor(opts) {
|
|
155
|
+
super({
|
|
156
|
+
name: "DuplicateRequestException",
|
|
157
|
+
$fault: "client",
|
|
158
|
+
...opts,
|
|
159
|
+
});
|
|
160
|
+
Object.setPrototypeOf(this, DuplicateRequestException.prototype);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
class InternalErrorException extends CognitoSyncServiceException {
|
|
164
|
+
name = "InternalErrorException";
|
|
165
|
+
$fault = "server";
|
|
166
|
+
constructor(opts) {
|
|
167
|
+
super({
|
|
168
|
+
name: "InternalErrorException",
|
|
169
|
+
$fault: "server",
|
|
170
|
+
...opts,
|
|
171
|
+
});
|
|
172
|
+
Object.setPrototypeOf(this, InternalErrorException.prototype);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
class InvalidParameterException extends CognitoSyncServiceException {
|
|
176
|
+
name = "InvalidParameterException";
|
|
177
|
+
$fault = "client";
|
|
178
|
+
constructor(opts) {
|
|
179
|
+
super({
|
|
180
|
+
name: "InvalidParameterException",
|
|
181
|
+
$fault: "client",
|
|
182
|
+
...opts,
|
|
183
|
+
});
|
|
184
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
class NotAuthorizedException extends CognitoSyncServiceException {
|
|
188
|
+
name = "NotAuthorizedException";
|
|
189
|
+
$fault = "client";
|
|
190
|
+
constructor(opts) {
|
|
191
|
+
super({
|
|
192
|
+
name: "NotAuthorizedException",
|
|
193
|
+
$fault: "client",
|
|
194
|
+
...opts,
|
|
195
|
+
});
|
|
196
|
+
Object.setPrototypeOf(this, NotAuthorizedException.prototype);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
class ResourceNotFoundException extends CognitoSyncServiceException {
|
|
200
|
+
name = "ResourceNotFoundException";
|
|
201
|
+
$fault = "client";
|
|
202
|
+
constructor(opts) {
|
|
203
|
+
super({
|
|
204
|
+
name: "ResourceNotFoundException",
|
|
205
|
+
$fault: "client",
|
|
206
|
+
...opts,
|
|
207
|
+
});
|
|
208
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
class ResourceConflictException extends CognitoSyncServiceException {
|
|
212
|
+
name = "ResourceConflictException";
|
|
213
|
+
$fault = "client";
|
|
214
|
+
constructor(opts) {
|
|
215
|
+
super({
|
|
216
|
+
name: "ResourceConflictException",
|
|
217
|
+
$fault: "client",
|
|
218
|
+
...opts,
|
|
219
|
+
});
|
|
220
|
+
Object.setPrototypeOf(this, ResourceConflictException.prototype);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
class TooManyRequestsException extends CognitoSyncServiceException {
|
|
224
|
+
name = "TooManyRequestsException";
|
|
225
|
+
$fault = "client";
|
|
226
|
+
constructor(opts) {
|
|
227
|
+
super({
|
|
228
|
+
name: "TooManyRequestsException",
|
|
229
|
+
$fault: "client",
|
|
230
|
+
...opts,
|
|
231
|
+
});
|
|
232
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
class InvalidConfigurationException extends CognitoSyncServiceException {
|
|
236
|
+
name = "InvalidConfigurationException";
|
|
237
|
+
$fault = "client";
|
|
238
|
+
constructor(opts) {
|
|
239
|
+
super({
|
|
240
|
+
name: "InvalidConfigurationException",
|
|
241
|
+
$fault: "client",
|
|
242
|
+
...opts,
|
|
243
|
+
});
|
|
244
|
+
Object.setPrototypeOf(this, InvalidConfigurationException.prototype);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
class ConcurrentModificationException extends CognitoSyncServiceException {
|
|
248
|
+
name = "ConcurrentModificationException";
|
|
249
|
+
$fault = "client";
|
|
250
|
+
constructor(opts) {
|
|
251
|
+
super({
|
|
252
|
+
name: "ConcurrentModificationException",
|
|
253
|
+
$fault: "client",
|
|
254
|
+
...opts,
|
|
255
|
+
});
|
|
256
|
+
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
class InvalidLambdaFunctionOutputException extends CognitoSyncServiceException {
|
|
260
|
+
name = "InvalidLambdaFunctionOutputException";
|
|
261
|
+
$fault = "client";
|
|
262
|
+
constructor(opts) {
|
|
263
|
+
super({
|
|
264
|
+
name: "InvalidLambdaFunctionOutputException",
|
|
265
|
+
$fault: "client",
|
|
266
|
+
...opts,
|
|
267
|
+
});
|
|
268
|
+
Object.setPrototypeOf(this, InvalidLambdaFunctionOutputException.prototype);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
class LambdaThrottledException extends CognitoSyncServiceException {
|
|
272
|
+
name = "LambdaThrottledException";
|
|
273
|
+
$fault = "client";
|
|
274
|
+
constructor(opts) {
|
|
275
|
+
super({
|
|
276
|
+
name: "LambdaThrottledException",
|
|
277
|
+
$fault: "client",
|
|
278
|
+
...opts,
|
|
279
|
+
});
|
|
280
|
+
Object.setPrototypeOf(this, LambdaThrottledException.prototype);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
class LimitExceededException extends CognitoSyncServiceException {
|
|
284
|
+
name = "LimitExceededException";
|
|
285
|
+
$fault = "client";
|
|
286
|
+
constructor(opts) {
|
|
287
|
+
super({
|
|
288
|
+
name: "LimitExceededException",
|
|
289
|
+
$fault: "client",
|
|
290
|
+
...opts,
|
|
291
|
+
});
|
|
292
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
const _AA = "ApplicationArns";
|
|
297
|
+
const _ASE = "AlreadyStreamedException";
|
|
298
|
+
const _BP = "BulkPublish";
|
|
299
|
+
const _BPCT = "BulkPublishCompleteTime";
|
|
300
|
+
const _BPR = "BulkPublishRequest";
|
|
301
|
+
const _BPRu = "BulkPublishResponse";
|
|
302
|
+
const _BPS = "BulkPublishStatus";
|
|
303
|
+
const _BPST = "BulkPublishStartTime";
|
|
304
|
+
const _C = "Count";
|
|
305
|
+
const _CC = "ClientContext";
|
|
306
|
+
const _CD = "CreationDate";
|
|
307
|
+
const _CME = "ConcurrentModificationException";
|
|
308
|
+
const _CS = "CognitoStreams";
|
|
309
|
+
const _D = "Dataset";
|
|
310
|
+
const _DC = "DatasetCount";
|
|
311
|
+
const _DD = "DeleteDataset";
|
|
312
|
+
const _DDARSC = "DatasetDeletedAfterRequestedSyncCount";
|
|
313
|
+
const _DDR = "DeleteDatasetRequest";
|
|
314
|
+
const _DDRe = "DeleteDatasetResponse";
|
|
315
|
+
const _DDRes = "DescribeDatasetRequest";
|
|
316
|
+
const _DDResc = "DescribeDatasetResponse";
|
|
317
|
+
const _DDe = "DescribeDataset";
|
|
318
|
+
const _DE = "DatasetExists";
|
|
319
|
+
const _DI = "DeviceId";
|
|
320
|
+
const _DIPU = "DescribeIdentityPoolUsage";
|
|
321
|
+
const _DIPUR = "DescribeIdentityPoolUsageRequest";
|
|
322
|
+
const _DIPURe = "DescribeIdentityPoolUsageResponse";
|
|
323
|
+
const _DIU = "DescribeIdentityUsage";
|
|
324
|
+
const _DIUR = "DescribeIdentityUsageRequest";
|
|
325
|
+
const _DIURe = "DescribeIdentityUsageResponse";
|
|
326
|
+
const _DL = "DatasetList";
|
|
327
|
+
const _DLMD = "DeviceLastModifiedDate";
|
|
328
|
+
const _DN = "DatasetName";
|
|
329
|
+
const _DRE = "DuplicateRequestException";
|
|
330
|
+
const _DS = "DataStorage";
|
|
331
|
+
const _DSC = "DatasetSyncCount";
|
|
332
|
+
const _Da = "Datasets";
|
|
333
|
+
const _E = "Events";
|
|
334
|
+
const _FM = "FailureMessage";
|
|
335
|
+
const _GBPD = "GetBulkPublishDetails";
|
|
336
|
+
const _GBPDR = "GetBulkPublishDetailsRequest";
|
|
337
|
+
const _GBPDRe = "GetBulkPublishDetailsResponse";
|
|
338
|
+
const _GCE = "GetCognitoEvents";
|
|
339
|
+
const _GCER = "GetCognitoEventsRequest";
|
|
340
|
+
const _GCERe = "GetCognitoEventsResponse";
|
|
341
|
+
const _GIPC = "GetIdentityPoolConfiguration";
|
|
342
|
+
const _GIPCR = "GetIdentityPoolConfigurationRequest";
|
|
343
|
+
const _GIPCRe = "GetIdentityPoolConfigurationResponse";
|
|
344
|
+
const _ICE = "InvalidConfigurationException";
|
|
345
|
+
const _IEE = "InternalErrorException";
|
|
346
|
+
const _II = "IdentityId";
|
|
347
|
+
const _ILFOE = "InvalidLambdaFunctionOutputException";
|
|
348
|
+
const _IPE = "InvalidParameterException";
|
|
349
|
+
const _IPI = "IdentityPoolId";
|
|
350
|
+
const _IPU = "IdentityPoolUsage";
|
|
351
|
+
const _IPUL = "IdentityPoolUsageList";
|
|
352
|
+
const _IPUd = "IdentityPoolUsages";
|
|
353
|
+
const _IU = "IdentityUsage";
|
|
354
|
+
const _K = "Key";
|
|
355
|
+
const _LD = "ListDatasets";
|
|
356
|
+
const _LDR = "ListDatasetsRequest";
|
|
357
|
+
const _LDRi = "ListDatasetsResponse";
|
|
358
|
+
const _LEE = "LimitExceededException";
|
|
359
|
+
const _LIPU = "ListIdentityPoolUsage";
|
|
360
|
+
const _LIPUR = "ListIdentityPoolUsageRequest";
|
|
361
|
+
const _LIPURi = "ListIdentityPoolUsageResponse";
|
|
362
|
+
const _LMB = "LastModifiedBy";
|
|
363
|
+
const _LMD = "LastModifiedDate";
|
|
364
|
+
const _LR = "ListRecords";
|
|
365
|
+
const _LRR = "ListRecordsRequest";
|
|
366
|
+
const _LRRi = "ListRecordsResponse";
|
|
367
|
+
const _LSC = "LastSyncCount";
|
|
368
|
+
const _LTE = "LambdaThrottledException";
|
|
369
|
+
const _MDN = "MergedDatasetNames";
|
|
370
|
+
const _MR = "MaxResults";
|
|
371
|
+
const _NAE = "NotAuthorizedException";
|
|
372
|
+
const _NR = "NumRecords";
|
|
373
|
+
const _NT = "NextToken";
|
|
374
|
+
const _O = "Op";
|
|
375
|
+
const _P = "Platform";
|
|
376
|
+
const _PS = "PushSync";
|
|
377
|
+
const _R = "Records";
|
|
378
|
+
const _RA = "RoleArn";
|
|
379
|
+
const _RCE = "ResourceConflictException";
|
|
380
|
+
const _RD = "RegisterDevice";
|
|
381
|
+
const _RDR = "RegisterDeviceRequest";
|
|
382
|
+
const _RDRe = "RegisterDeviceResponse";
|
|
383
|
+
const _RL = "RecordList";
|
|
384
|
+
const _RNFE = "ResourceNotFoundException";
|
|
385
|
+
const _RP = "RecordPatch";
|
|
386
|
+
const _RPL = "RecordPatchList";
|
|
387
|
+
const _RPe = "RecordPatches";
|
|
388
|
+
const _Re = "Record";
|
|
389
|
+
const _SC = "SyncCount";
|
|
390
|
+
const _SCE = "SetCognitoEvents";
|
|
391
|
+
const _SCER = "SetCognitoEventsRequest";
|
|
392
|
+
const _SIPC = "SetIdentityPoolConfiguration";
|
|
393
|
+
const _SIPCR = "SetIdentityPoolConfigurationRequest";
|
|
394
|
+
const _SIPCRe = "SetIdentityPoolConfigurationResponse";
|
|
395
|
+
const _SN = "StreamName";
|
|
396
|
+
const _SS = "StreamingStatus";
|
|
397
|
+
const _SSC = "SyncSessionsCount";
|
|
398
|
+
const _SST = "SyncSessionToken";
|
|
399
|
+
const _STD = "SubscribeToDataset";
|
|
400
|
+
const _STDR = "SubscribeToDatasetRequest";
|
|
401
|
+
const _STDRu = "SubscribeToDatasetResponse";
|
|
402
|
+
const _T = "Token";
|
|
403
|
+
const _TMRE = "TooManyRequestsException";
|
|
404
|
+
const _UFD = "UnsubscribeFromDataset";
|
|
405
|
+
const _UFDR = "UnsubscribeFromDatasetRequest";
|
|
406
|
+
const _UFDRn = "UnsubscribeFromDatasetResponse";
|
|
407
|
+
const _UR = "UpdateRecords";
|
|
408
|
+
const _URR = "UpdateRecordsRequest";
|
|
409
|
+
const _URRp = "UpdateRecordsResponse";
|
|
410
|
+
const _V = "Value";
|
|
411
|
+
const _aQE = "awsQueryError";
|
|
412
|
+
const _c = "client";
|
|
413
|
+
const _e = "error";
|
|
414
|
+
const _h = "http";
|
|
415
|
+
const _hE = "httpError";
|
|
416
|
+
const _hH = "httpHeader";
|
|
417
|
+
const _hQ = "httpQuery";
|
|
418
|
+
const _lSC = "lastSyncCount";
|
|
419
|
+
const _m = "message";
|
|
420
|
+
const _mR = "maxResults";
|
|
421
|
+
const _nT = "nextToken";
|
|
422
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cognitosync";
|
|
423
|
+
const _sST = "syncSessionToken";
|
|
424
|
+
const _se = "server";
|
|
425
|
+
const _xaCC = "x-amz-Client-Context";
|
|
426
|
+
const n0 = "com.amazonaws.cognitosync";
|
|
427
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
428
|
+
var CognitoSyncServiceException$ = [-3, _s, "CognitoSyncServiceException", 0, [], []];
|
|
429
|
+
_s_registry.registerError(CognitoSyncServiceException$, CognitoSyncServiceException);
|
|
430
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
431
|
+
var AlreadyStreamedException$ = [-3, n0, _ASE,
|
|
432
|
+
{ [_aQE]: [`AlreadyStreamed`, 400], [_e]: _c, [_hE]: 400 },
|
|
433
|
+
[_m],
|
|
434
|
+
[0], 1
|
|
435
|
+
];
|
|
436
|
+
n0_registry.registerError(AlreadyStreamedException$, AlreadyStreamedException);
|
|
437
|
+
var ConcurrentModificationException$ = [-3, n0, _CME,
|
|
438
|
+
{ [_aQE]: [`ConcurrentModification`, 400], [_e]: _c, [_hE]: 400 },
|
|
439
|
+
[_m],
|
|
440
|
+
[0], 1
|
|
441
|
+
];
|
|
442
|
+
n0_registry.registerError(ConcurrentModificationException$, ConcurrentModificationException);
|
|
443
|
+
var DuplicateRequestException$ = [-3, n0, _DRE,
|
|
444
|
+
{ [_aQE]: [`DuplicateRequest`, 400], [_e]: _c, [_hE]: 400 },
|
|
445
|
+
[_m],
|
|
446
|
+
[0], 1
|
|
447
|
+
];
|
|
448
|
+
n0_registry.registerError(DuplicateRequestException$, DuplicateRequestException);
|
|
449
|
+
var InternalErrorException$ = [-3, n0, _IEE,
|
|
450
|
+
{ [_aQE]: [`InternalError`, 500], [_e]: _se, [_hE]: 500 },
|
|
451
|
+
[_m],
|
|
452
|
+
[0], 1
|
|
453
|
+
];
|
|
454
|
+
n0_registry.registerError(InternalErrorException$, InternalErrorException);
|
|
455
|
+
var InvalidConfigurationException$ = [-3, n0, _ICE,
|
|
456
|
+
{ [_aQE]: [`InvalidConfiguration`, 400], [_e]: _c, [_hE]: 400 },
|
|
457
|
+
[_m],
|
|
458
|
+
[0], 1
|
|
459
|
+
];
|
|
460
|
+
n0_registry.registerError(InvalidConfigurationException$, InvalidConfigurationException);
|
|
461
|
+
var InvalidLambdaFunctionOutputException$ = [-3, n0, _ILFOE,
|
|
462
|
+
{ [_aQE]: [`InvalidLambdaFunctionOutput`, 400], [_e]: _c, [_hE]: 400 },
|
|
463
|
+
[_m],
|
|
464
|
+
[0], 1
|
|
465
|
+
];
|
|
466
|
+
n0_registry.registerError(InvalidLambdaFunctionOutputException$, InvalidLambdaFunctionOutputException);
|
|
467
|
+
var InvalidParameterException$ = [-3, n0, _IPE,
|
|
468
|
+
{ [_aQE]: [`InvalidParameter`, 400], [_e]: _c, [_hE]: 400 },
|
|
469
|
+
[_m],
|
|
470
|
+
[0], 1
|
|
471
|
+
];
|
|
472
|
+
n0_registry.registerError(InvalidParameterException$, InvalidParameterException);
|
|
473
|
+
var LambdaThrottledException$ = [-3, n0, _LTE,
|
|
474
|
+
{ [_aQE]: [`LambdaThrottled`, 429], [_e]: _c, [_hE]: 429 },
|
|
475
|
+
[_m],
|
|
476
|
+
[0], 1
|
|
477
|
+
];
|
|
478
|
+
n0_registry.registerError(LambdaThrottledException$, LambdaThrottledException);
|
|
479
|
+
var LimitExceededException$ = [-3, n0, _LEE,
|
|
480
|
+
{ [_aQE]: [`LimitExceeded`, 400], [_e]: _c, [_hE]: 400 },
|
|
481
|
+
[_m],
|
|
482
|
+
[0], 1
|
|
483
|
+
];
|
|
484
|
+
n0_registry.registerError(LimitExceededException$, LimitExceededException);
|
|
485
|
+
var NotAuthorizedException$ = [-3, n0, _NAE,
|
|
486
|
+
{ [_aQE]: [`NotAuthorizedError`, 403], [_e]: _c, [_hE]: 403 },
|
|
487
|
+
[_m],
|
|
488
|
+
[0], 1
|
|
489
|
+
];
|
|
490
|
+
n0_registry.registerError(NotAuthorizedException$, NotAuthorizedException);
|
|
491
|
+
var ResourceConflictException$ = [-3, n0, _RCE,
|
|
492
|
+
{ [_aQE]: [`ResourceConflict`, 409], [_e]: _c, [_hE]: 409 },
|
|
493
|
+
[_m],
|
|
494
|
+
[0], 1
|
|
495
|
+
];
|
|
496
|
+
n0_registry.registerError(ResourceConflictException$, ResourceConflictException);
|
|
497
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
498
|
+
{ [_aQE]: [`ResourceNotFound`, 404], [_e]: _c, [_hE]: 404 },
|
|
499
|
+
[_m],
|
|
500
|
+
[0], 1
|
|
501
|
+
];
|
|
502
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
503
|
+
var TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
504
|
+
{ [_aQE]: [`TooManyRequests`, 429], [_e]: _c, [_hE]: 429 },
|
|
505
|
+
[_m],
|
|
506
|
+
[0], 1
|
|
507
|
+
];
|
|
508
|
+
n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
509
|
+
const errorTypeRegistries = [
|
|
510
|
+
_s_registry,
|
|
511
|
+
n0_registry,
|
|
512
|
+
];
|
|
513
|
+
var BulkPublishRequest$ = [3, n0, _BPR,
|
|
514
|
+
0,
|
|
515
|
+
[_IPI],
|
|
516
|
+
[[0, 1]], 1
|
|
517
|
+
];
|
|
518
|
+
var BulkPublishResponse$ = [3, n0, _BPRu,
|
|
519
|
+
0,
|
|
520
|
+
[_IPI],
|
|
521
|
+
[0]
|
|
522
|
+
];
|
|
523
|
+
var CognitoStreams$ = [3, n0, _CS,
|
|
524
|
+
0,
|
|
525
|
+
[_SN, _RA, _SS],
|
|
526
|
+
[0, 0, 0]
|
|
527
|
+
];
|
|
528
|
+
var Dataset$ = [3, n0, _D,
|
|
529
|
+
0,
|
|
530
|
+
[_II, _DN, _CD, _LMD, _LMB, _DS, _NR],
|
|
531
|
+
[0, 0, 4, 4, 0, 1, 1]
|
|
532
|
+
];
|
|
533
|
+
var DeleteDatasetRequest$ = [3, n0, _DDR,
|
|
534
|
+
0,
|
|
535
|
+
[_IPI, _II, _DN],
|
|
536
|
+
[[0, 1], [0, 1], [0, 1]], 3
|
|
537
|
+
];
|
|
538
|
+
var DeleteDatasetResponse$ = [3, n0, _DDRe,
|
|
539
|
+
0,
|
|
540
|
+
[_D],
|
|
541
|
+
[() => Dataset$]
|
|
542
|
+
];
|
|
543
|
+
var DescribeDatasetRequest$ = [3, n0, _DDRes,
|
|
544
|
+
0,
|
|
545
|
+
[_IPI, _II, _DN],
|
|
546
|
+
[[0, 1], [0, 1], [0, 1]], 3
|
|
547
|
+
];
|
|
548
|
+
var DescribeDatasetResponse$ = [3, n0, _DDResc,
|
|
549
|
+
0,
|
|
550
|
+
[_D],
|
|
551
|
+
[() => Dataset$]
|
|
552
|
+
];
|
|
553
|
+
var DescribeIdentityPoolUsageRequest$ = [3, n0, _DIPUR,
|
|
554
|
+
0,
|
|
555
|
+
[_IPI],
|
|
556
|
+
[[0, 1]], 1
|
|
557
|
+
];
|
|
558
|
+
var DescribeIdentityPoolUsageResponse$ = [3, n0, _DIPURe,
|
|
559
|
+
0,
|
|
560
|
+
[_IPU],
|
|
561
|
+
[() => IdentityPoolUsage$]
|
|
562
|
+
];
|
|
563
|
+
var DescribeIdentityUsageRequest$ = [3, n0, _DIUR,
|
|
564
|
+
0,
|
|
565
|
+
[_IPI, _II],
|
|
566
|
+
[[0, 1], [0, 1]], 2
|
|
567
|
+
];
|
|
568
|
+
var DescribeIdentityUsageResponse$ = [3, n0, _DIURe,
|
|
569
|
+
0,
|
|
570
|
+
[_IU],
|
|
571
|
+
[() => IdentityUsage$]
|
|
572
|
+
];
|
|
573
|
+
var GetBulkPublishDetailsRequest$ = [3, n0, _GBPDR,
|
|
574
|
+
0,
|
|
575
|
+
[_IPI],
|
|
576
|
+
[[0, 1]], 1
|
|
577
|
+
];
|
|
578
|
+
var GetBulkPublishDetailsResponse$ = [3, n0, _GBPDRe,
|
|
579
|
+
0,
|
|
580
|
+
[_IPI, _BPST, _BPCT, _BPS, _FM],
|
|
581
|
+
[0, 4, 4, 0, 0]
|
|
582
|
+
];
|
|
583
|
+
var GetCognitoEventsRequest$ = [3, n0, _GCER,
|
|
584
|
+
0,
|
|
585
|
+
[_IPI],
|
|
586
|
+
[[0, 1]], 1
|
|
587
|
+
];
|
|
588
|
+
var GetCognitoEventsResponse$ = [3, n0, _GCERe,
|
|
589
|
+
0,
|
|
590
|
+
[_E],
|
|
591
|
+
[128 | 0]
|
|
592
|
+
];
|
|
593
|
+
var GetIdentityPoolConfigurationRequest$ = [3, n0, _GIPCR,
|
|
594
|
+
0,
|
|
595
|
+
[_IPI],
|
|
596
|
+
[[0, 1]], 1
|
|
597
|
+
];
|
|
598
|
+
var GetIdentityPoolConfigurationResponse$ = [3, n0, _GIPCRe,
|
|
599
|
+
0,
|
|
600
|
+
[_IPI, _PS, _CS],
|
|
601
|
+
[0, () => PushSync$, () => CognitoStreams$]
|
|
602
|
+
];
|
|
603
|
+
var IdentityPoolUsage$ = [3, n0, _IPU,
|
|
604
|
+
0,
|
|
605
|
+
[_IPI, _SSC, _DS, _LMD],
|
|
606
|
+
[0, 1, 1, 4]
|
|
607
|
+
];
|
|
608
|
+
var IdentityUsage$ = [3, n0, _IU,
|
|
609
|
+
0,
|
|
610
|
+
[_II, _IPI, _LMD, _DC, _DS],
|
|
611
|
+
[0, 0, 4, 1, 1]
|
|
612
|
+
];
|
|
613
|
+
var ListDatasetsRequest$ = [3, n0, _LDR,
|
|
614
|
+
0,
|
|
615
|
+
[_IPI, _II, _NT, _MR],
|
|
616
|
+
[[0, 1], [0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]], 2
|
|
617
|
+
];
|
|
618
|
+
var ListDatasetsResponse$ = [3, n0, _LDRi,
|
|
619
|
+
0,
|
|
620
|
+
[_Da, _C, _NT],
|
|
621
|
+
[() => DatasetList, 1, 0]
|
|
622
|
+
];
|
|
623
|
+
var ListIdentityPoolUsageRequest$ = [3, n0, _LIPUR,
|
|
624
|
+
0,
|
|
625
|
+
[_NT, _MR],
|
|
626
|
+
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
|
|
627
|
+
];
|
|
628
|
+
var ListIdentityPoolUsageResponse$ = [3, n0, _LIPURi,
|
|
629
|
+
0,
|
|
630
|
+
[_IPUd, _MR, _C, _NT],
|
|
631
|
+
[() => IdentityPoolUsageList, 1, 1, 0]
|
|
632
|
+
];
|
|
633
|
+
var ListRecordsRequest$ = [3, n0, _LRR,
|
|
634
|
+
0,
|
|
635
|
+
[_IPI, _II, _DN, _LSC, _NT, _MR, _SST],
|
|
636
|
+
[[0, 1], [0, 1], [0, 1], [1, { [_hQ]: _lSC }], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _sST }]], 3
|
|
637
|
+
];
|
|
638
|
+
var ListRecordsResponse$ = [3, n0, _LRRi,
|
|
639
|
+
0,
|
|
640
|
+
[_R, _NT, _C, _DSC, _LMB, _MDN, _DE, _DDARSC, _SST],
|
|
641
|
+
[() => RecordList, 0, 1, 1, 0, 64 | 0, 2, 2, 0]
|
|
642
|
+
];
|
|
643
|
+
var PushSync$ = [3, n0, _PS,
|
|
644
|
+
0,
|
|
645
|
+
[_AA, _RA],
|
|
646
|
+
[64 | 0, 0]
|
|
647
|
+
];
|
|
648
|
+
var _Record$ = [3, n0, _Re,
|
|
649
|
+
0,
|
|
650
|
+
[_K, _V, _SC, _LMD, _LMB, _DLMD],
|
|
651
|
+
[0, 0, 1, 4, 0, 4]
|
|
652
|
+
];
|
|
653
|
+
var RecordPatch$ = [3, n0, _RP,
|
|
654
|
+
0,
|
|
655
|
+
[_O, _K, _SC, _V, _DLMD],
|
|
656
|
+
[0, 0, 1, 0, 4], 3
|
|
657
|
+
];
|
|
658
|
+
var RegisterDeviceRequest$ = [3, n0, _RDR,
|
|
659
|
+
0,
|
|
660
|
+
[_IPI, _II, _P, _T],
|
|
661
|
+
[[0, 1], [0, 1], 0, 0], 4
|
|
662
|
+
];
|
|
663
|
+
var RegisterDeviceResponse$ = [3, n0, _RDRe,
|
|
664
|
+
0,
|
|
665
|
+
[_DI],
|
|
666
|
+
[0]
|
|
667
|
+
];
|
|
668
|
+
var SetCognitoEventsRequest$ = [3, n0, _SCER,
|
|
669
|
+
0,
|
|
670
|
+
[_IPI, _E],
|
|
671
|
+
[[0, 1], 128 | 0], 2
|
|
672
|
+
];
|
|
673
|
+
var SetIdentityPoolConfigurationRequest$ = [3, n0, _SIPCR,
|
|
674
|
+
0,
|
|
675
|
+
[_IPI, _PS, _CS],
|
|
676
|
+
[[0, 1], () => PushSync$, () => CognitoStreams$], 1
|
|
677
|
+
];
|
|
678
|
+
var SetIdentityPoolConfigurationResponse$ = [3, n0, _SIPCRe,
|
|
679
|
+
0,
|
|
680
|
+
[_IPI, _PS, _CS],
|
|
681
|
+
[0, () => PushSync$, () => CognitoStreams$]
|
|
682
|
+
];
|
|
683
|
+
var SubscribeToDatasetRequest$ = [3, n0, _STDR,
|
|
684
|
+
0,
|
|
685
|
+
[_IPI, _II, _DN, _DI],
|
|
686
|
+
[[0, 1], [0, 1], [0, 1], [0, 1]], 4
|
|
687
|
+
];
|
|
688
|
+
var SubscribeToDatasetResponse$ = [3, n0, _STDRu,
|
|
689
|
+
0,
|
|
690
|
+
[],
|
|
691
|
+
[]
|
|
692
|
+
];
|
|
693
|
+
var UnsubscribeFromDatasetRequest$ = [3, n0, _UFDR,
|
|
694
|
+
0,
|
|
695
|
+
[_IPI, _II, _DN, _DI],
|
|
696
|
+
[[0, 1], [0, 1], [0, 1], [0, 1]], 4
|
|
697
|
+
];
|
|
698
|
+
var UnsubscribeFromDatasetResponse$ = [3, n0, _UFDRn,
|
|
699
|
+
0,
|
|
700
|
+
[],
|
|
701
|
+
[]
|
|
702
|
+
];
|
|
703
|
+
var UpdateRecordsRequest$ = [3, n0, _URR,
|
|
704
|
+
0,
|
|
705
|
+
[_IPI, _II, _DN, _SST, _DI, _RPe, _CC],
|
|
706
|
+
[[0, 1], [0, 1], [0, 1], 0, 0, () => RecordPatchList, [0, { [_hH]: _xaCC }]], 4
|
|
707
|
+
];
|
|
708
|
+
var UpdateRecordsResponse$ = [3, n0, _URRp,
|
|
709
|
+
0,
|
|
710
|
+
[_R],
|
|
711
|
+
[() => RecordList]
|
|
712
|
+
];
|
|
713
|
+
var __Unit = "unit";
|
|
714
|
+
var DatasetList = [1, n0, _DL,
|
|
715
|
+
0, () => Dataset$
|
|
716
|
+
];
|
|
717
|
+
var IdentityPoolUsageList = [1, n0, _IPUL,
|
|
718
|
+
0, () => IdentityPoolUsage$
|
|
719
|
+
];
|
|
720
|
+
var RecordList = [1, n0, _RL,
|
|
721
|
+
0, () => _Record$
|
|
722
|
+
];
|
|
723
|
+
var RecordPatchList = [1, n0, _RPL,
|
|
724
|
+
0, () => RecordPatch$
|
|
725
|
+
];
|
|
726
|
+
var BulkPublish$ = [9, n0, _BP,
|
|
727
|
+
{ [_h]: ["POST", "/identitypools/{IdentityPoolId}/bulkpublish", 200] }, () => BulkPublishRequest$, () => BulkPublishResponse$
|
|
728
|
+
];
|
|
729
|
+
var DeleteDataset$ = [9, n0, _DD,
|
|
730
|
+
{ [_h]: ["DELETE", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", 200] }, () => DeleteDatasetRequest$, () => DeleteDatasetResponse$
|
|
731
|
+
];
|
|
732
|
+
var DescribeDataset$ = [9, n0, _DDe,
|
|
733
|
+
{ [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", 200] }, () => DescribeDatasetRequest$, () => DescribeDatasetResponse$
|
|
734
|
+
];
|
|
735
|
+
var DescribeIdentityPoolUsage$ = [9, n0, _DIPU,
|
|
736
|
+
{ [_h]: ["GET", "/identitypools/{IdentityPoolId}", 200] }, () => DescribeIdentityPoolUsageRequest$, () => DescribeIdentityPoolUsageResponse$
|
|
737
|
+
];
|
|
738
|
+
var DescribeIdentityUsage$ = [9, n0, _DIU,
|
|
739
|
+
{ [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}", 200] }, () => DescribeIdentityUsageRequest$, () => DescribeIdentityUsageResponse$
|
|
740
|
+
];
|
|
741
|
+
var GetBulkPublishDetails$ = [9, n0, _GBPD,
|
|
742
|
+
{ [_h]: ["POST", "/identitypools/{IdentityPoolId}/getBulkPublishDetails", 200] }, () => GetBulkPublishDetailsRequest$, () => GetBulkPublishDetailsResponse$
|
|
743
|
+
];
|
|
744
|
+
var GetCognitoEvents$ = [9, n0, _GCE,
|
|
745
|
+
{ [_h]: ["GET", "/identitypools/{IdentityPoolId}/events", 200] }, () => GetCognitoEventsRequest$, () => GetCognitoEventsResponse$
|
|
746
|
+
];
|
|
747
|
+
var GetIdentityPoolConfiguration$ = [9, n0, _GIPC,
|
|
748
|
+
{ [_h]: ["GET", "/identitypools/{IdentityPoolId}/configuration", 200] }, () => GetIdentityPoolConfigurationRequest$, () => GetIdentityPoolConfigurationResponse$
|
|
749
|
+
];
|
|
750
|
+
var ListDatasets$ = [9, n0, _LD,
|
|
751
|
+
{ [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets", 200] }, () => ListDatasetsRequest$, () => ListDatasetsResponse$
|
|
752
|
+
];
|
|
753
|
+
var ListIdentityPoolUsage$ = [9, n0, _LIPU,
|
|
754
|
+
{ [_h]: ["GET", "/identitypools", 200] }, () => ListIdentityPoolUsageRequest$, () => ListIdentityPoolUsageResponse$
|
|
755
|
+
];
|
|
756
|
+
var ListRecords$ = [9, n0, _LR,
|
|
757
|
+
{ [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records", 200] }, () => ListRecordsRequest$, () => ListRecordsResponse$
|
|
758
|
+
];
|
|
759
|
+
var RegisterDevice$ = [9, n0, _RD,
|
|
760
|
+
{ [_h]: ["POST", "/identitypools/{IdentityPoolId}/identity/{IdentityId}/device", 200] }, () => RegisterDeviceRequest$, () => RegisterDeviceResponse$
|
|
761
|
+
];
|
|
762
|
+
var SetCognitoEvents$ = [9, n0, _SCE,
|
|
763
|
+
{ [_h]: ["POST", "/identitypools/{IdentityPoolId}/events", 200] }, () => SetCognitoEventsRequest$, () => __Unit
|
|
764
|
+
];
|
|
765
|
+
var SetIdentityPoolConfiguration$ = [9, n0, _SIPC,
|
|
766
|
+
{ [_h]: ["POST", "/identitypools/{IdentityPoolId}/configuration", 200] }, () => SetIdentityPoolConfigurationRequest$, () => SetIdentityPoolConfigurationResponse$
|
|
767
|
+
];
|
|
768
|
+
var SubscribeToDataset$ = [9, n0, _STD,
|
|
769
|
+
{ [_h]: ["POST", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}", 200] }, () => SubscribeToDatasetRequest$, () => SubscribeToDatasetResponse$
|
|
770
|
+
];
|
|
771
|
+
var UnsubscribeFromDataset$ = [9, n0, _UFD,
|
|
772
|
+
{ [_h]: ["DELETE", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}", 200] }, () => UnsubscribeFromDatasetRequest$, () => UnsubscribeFromDatasetResponse$
|
|
773
|
+
];
|
|
774
|
+
var UpdateRecords$ = [9, n0, _UR,
|
|
775
|
+
{ [_h]: ["POST", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", 200] }, () => UpdateRecordsRequest$, () => UpdateRecordsResponse$
|
|
776
|
+
];
|
|
777
|
+
|
|
778
|
+
const getRuntimeConfig$1 = (config) => {
|
|
779
|
+
return {
|
|
780
|
+
apiVersion: "2014-06-30",
|
|
781
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
782
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
783
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
784
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
785
|
+
extensions: config?.extensions ?? [],
|
|
786
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCognitoSyncHttpAuthSchemeProvider,
|
|
787
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
788
|
+
{
|
|
789
|
+
schemeId: "aws.auth#sigv4",
|
|
790
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
791
|
+
signer: new AwsSdkSigV4Signer(),
|
|
792
|
+
},
|
|
793
|
+
],
|
|
794
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
795
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
796
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
797
|
+
defaultNamespace: "com.amazonaws.cognitosync",
|
|
798
|
+
errorTypeRegistries,
|
|
799
|
+
xmlNamespace: "http://cognito-sync.amazonaws.com/doc/2014-06-30/",
|
|
800
|
+
version: "2014-06-30",
|
|
801
|
+
serviceTarget: "AWSCognitoSyncService",
|
|
802
|
+
},
|
|
803
|
+
serviceId: config?.serviceId ?? "Cognito Sync",
|
|
804
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
805
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
806
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
const getRuntimeConfig = (config) => {
|
|
811
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
812
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
813
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
814
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
815
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
816
|
+
const loaderConfig = {
|
|
817
|
+
profile: config?.profile,
|
|
818
|
+
logger: clientSharedValues.logger,
|
|
819
|
+
};
|
|
820
|
+
return {
|
|
821
|
+
...clientSharedValues,
|
|
822
|
+
...config,
|
|
823
|
+
runtime: "node",
|
|
824
|
+
defaultsMode,
|
|
825
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
826
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
827
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
828
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
829
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
830
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
831
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
832
|
+
retryMode: config?.retryMode ??
|
|
833
|
+
loadConfig({
|
|
834
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
835
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
836
|
+
}, config),
|
|
837
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
838
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
839
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
840
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
841
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
842
|
+
};
|
|
843
|
+
};
|
|
844
|
+
|
|
34
845
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
846
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
847
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -359,26 +1170,112 @@ const Operation = {
|
|
|
359
1170
|
replace: "replace",
|
|
360
1171
|
};
|
|
361
1172
|
|
|
1173
|
+
exports.AlreadyStreamedException = AlreadyStreamedException;
|
|
1174
|
+
exports.AlreadyStreamedException$ = AlreadyStreamedException$;
|
|
1175
|
+
exports.BulkPublish$ = BulkPublish$;
|
|
362
1176
|
exports.BulkPublishCommand = BulkPublishCommand;
|
|
1177
|
+
exports.BulkPublishRequest$ = BulkPublishRequest$;
|
|
1178
|
+
exports.BulkPublishResponse$ = BulkPublishResponse$;
|
|
363
1179
|
exports.BulkPublishStatus = BulkPublishStatus;
|
|
1180
|
+
exports.CognitoStreams$ = CognitoStreams$;
|
|
364
1181
|
exports.CognitoSync = CognitoSync;
|
|
365
1182
|
exports.CognitoSyncClient = CognitoSyncClient;
|
|
1183
|
+
exports.CognitoSyncServiceException = CognitoSyncServiceException;
|
|
1184
|
+
exports.CognitoSyncServiceException$ = CognitoSyncServiceException$;
|
|
1185
|
+
exports.ConcurrentModificationException = ConcurrentModificationException;
|
|
1186
|
+
exports.ConcurrentModificationException$ = ConcurrentModificationException$;
|
|
1187
|
+
exports.Dataset$ = Dataset$;
|
|
1188
|
+
exports.DeleteDataset$ = DeleteDataset$;
|
|
366
1189
|
exports.DeleteDatasetCommand = DeleteDatasetCommand;
|
|
1190
|
+
exports.DeleteDatasetRequest$ = DeleteDatasetRequest$;
|
|
1191
|
+
exports.DeleteDatasetResponse$ = DeleteDatasetResponse$;
|
|
1192
|
+
exports.DescribeDataset$ = DescribeDataset$;
|
|
367
1193
|
exports.DescribeDatasetCommand = DescribeDatasetCommand;
|
|
1194
|
+
exports.DescribeDatasetRequest$ = DescribeDatasetRequest$;
|
|
1195
|
+
exports.DescribeDatasetResponse$ = DescribeDatasetResponse$;
|
|
1196
|
+
exports.DescribeIdentityPoolUsage$ = DescribeIdentityPoolUsage$;
|
|
368
1197
|
exports.DescribeIdentityPoolUsageCommand = DescribeIdentityPoolUsageCommand;
|
|
1198
|
+
exports.DescribeIdentityPoolUsageRequest$ = DescribeIdentityPoolUsageRequest$;
|
|
1199
|
+
exports.DescribeIdentityPoolUsageResponse$ = DescribeIdentityPoolUsageResponse$;
|
|
1200
|
+
exports.DescribeIdentityUsage$ = DescribeIdentityUsage$;
|
|
369
1201
|
exports.DescribeIdentityUsageCommand = DescribeIdentityUsageCommand;
|
|
1202
|
+
exports.DescribeIdentityUsageRequest$ = DescribeIdentityUsageRequest$;
|
|
1203
|
+
exports.DescribeIdentityUsageResponse$ = DescribeIdentityUsageResponse$;
|
|
1204
|
+
exports.DuplicateRequestException = DuplicateRequestException;
|
|
1205
|
+
exports.DuplicateRequestException$ = DuplicateRequestException$;
|
|
1206
|
+
exports.GetBulkPublishDetails$ = GetBulkPublishDetails$;
|
|
370
1207
|
exports.GetBulkPublishDetailsCommand = GetBulkPublishDetailsCommand;
|
|
1208
|
+
exports.GetBulkPublishDetailsRequest$ = GetBulkPublishDetailsRequest$;
|
|
1209
|
+
exports.GetBulkPublishDetailsResponse$ = GetBulkPublishDetailsResponse$;
|
|
1210
|
+
exports.GetCognitoEvents$ = GetCognitoEvents$;
|
|
371
1211
|
exports.GetCognitoEventsCommand = GetCognitoEventsCommand;
|
|
1212
|
+
exports.GetCognitoEventsRequest$ = GetCognitoEventsRequest$;
|
|
1213
|
+
exports.GetCognitoEventsResponse$ = GetCognitoEventsResponse$;
|
|
1214
|
+
exports.GetIdentityPoolConfiguration$ = GetIdentityPoolConfiguration$;
|
|
372
1215
|
exports.GetIdentityPoolConfigurationCommand = GetIdentityPoolConfigurationCommand;
|
|
1216
|
+
exports.GetIdentityPoolConfigurationRequest$ = GetIdentityPoolConfigurationRequest$;
|
|
1217
|
+
exports.GetIdentityPoolConfigurationResponse$ = GetIdentityPoolConfigurationResponse$;
|
|
1218
|
+
exports.IdentityPoolUsage$ = IdentityPoolUsage$;
|
|
1219
|
+
exports.IdentityUsage$ = IdentityUsage$;
|
|
1220
|
+
exports.InternalErrorException = InternalErrorException;
|
|
1221
|
+
exports.InternalErrorException$ = InternalErrorException$;
|
|
1222
|
+
exports.InvalidConfigurationException = InvalidConfigurationException;
|
|
1223
|
+
exports.InvalidConfigurationException$ = InvalidConfigurationException$;
|
|
1224
|
+
exports.InvalidLambdaFunctionOutputException = InvalidLambdaFunctionOutputException;
|
|
1225
|
+
exports.InvalidLambdaFunctionOutputException$ = InvalidLambdaFunctionOutputException$;
|
|
1226
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
1227
|
+
exports.InvalidParameterException$ = InvalidParameterException$;
|
|
1228
|
+
exports.LambdaThrottledException = LambdaThrottledException;
|
|
1229
|
+
exports.LambdaThrottledException$ = LambdaThrottledException$;
|
|
1230
|
+
exports.LimitExceededException = LimitExceededException;
|
|
1231
|
+
exports.LimitExceededException$ = LimitExceededException$;
|
|
1232
|
+
exports.ListDatasets$ = ListDatasets$;
|
|
373
1233
|
exports.ListDatasetsCommand = ListDatasetsCommand;
|
|
1234
|
+
exports.ListDatasetsRequest$ = ListDatasetsRequest$;
|
|
1235
|
+
exports.ListDatasetsResponse$ = ListDatasetsResponse$;
|
|
1236
|
+
exports.ListIdentityPoolUsage$ = ListIdentityPoolUsage$;
|
|
374
1237
|
exports.ListIdentityPoolUsageCommand = ListIdentityPoolUsageCommand;
|
|
1238
|
+
exports.ListIdentityPoolUsageRequest$ = ListIdentityPoolUsageRequest$;
|
|
1239
|
+
exports.ListIdentityPoolUsageResponse$ = ListIdentityPoolUsageResponse$;
|
|
1240
|
+
exports.ListRecords$ = ListRecords$;
|
|
375
1241
|
exports.ListRecordsCommand = ListRecordsCommand;
|
|
1242
|
+
exports.ListRecordsRequest$ = ListRecordsRequest$;
|
|
1243
|
+
exports.ListRecordsResponse$ = ListRecordsResponse$;
|
|
1244
|
+
exports.NotAuthorizedException = NotAuthorizedException;
|
|
1245
|
+
exports.NotAuthorizedException$ = NotAuthorizedException$;
|
|
376
1246
|
exports.Operation = Operation;
|
|
377
1247
|
exports.Platform = Platform;
|
|
1248
|
+
exports.PushSync$ = PushSync$;
|
|
1249
|
+
exports.RecordPatch$ = RecordPatch$;
|
|
1250
|
+
exports.RegisterDevice$ = RegisterDevice$;
|
|
378
1251
|
exports.RegisterDeviceCommand = RegisterDeviceCommand;
|
|
1252
|
+
exports.RegisterDeviceRequest$ = RegisterDeviceRequest$;
|
|
1253
|
+
exports.RegisterDeviceResponse$ = RegisterDeviceResponse$;
|
|
1254
|
+
exports.ResourceConflictException = ResourceConflictException;
|
|
1255
|
+
exports.ResourceConflictException$ = ResourceConflictException$;
|
|
1256
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1257
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
1258
|
+
exports.SetCognitoEvents$ = SetCognitoEvents$;
|
|
379
1259
|
exports.SetCognitoEventsCommand = SetCognitoEventsCommand;
|
|
1260
|
+
exports.SetCognitoEventsRequest$ = SetCognitoEventsRequest$;
|
|
1261
|
+
exports.SetIdentityPoolConfiguration$ = SetIdentityPoolConfiguration$;
|
|
380
1262
|
exports.SetIdentityPoolConfigurationCommand = SetIdentityPoolConfigurationCommand;
|
|
1263
|
+
exports.SetIdentityPoolConfigurationRequest$ = SetIdentityPoolConfigurationRequest$;
|
|
1264
|
+
exports.SetIdentityPoolConfigurationResponse$ = SetIdentityPoolConfigurationResponse$;
|
|
381
1265
|
exports.StreamingStatus = StreamingStatus;
|
|
1266
|
+
exports.SubscribeToDataset$ = SubscribeToDataset$;
|
|
382
1267
|
exports.SubscribeToDatasetCommand = SubscribeToDatasetCommand;
|
|
1268
|
+
exports.SubscribeToDatasetRequest$ = SubscribeToDatasetRequest$;
|
|
1269
|
+
exports.SubscribeToDatasetResponse$ = SubscribeToDatasetResponse$;
|
|
1270
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
1271
|
+
exports.TooManyRequestsException$ = TooManyRequestsException$;
|
|
1272
|
+
exports.UnsubscribeFromDataset$ = UnsubscribeFromDataset$;
|
|
383
1273
|
exports.UnsubscribeFromDatasetCommand = UnsubscribeFromDatasetCommand;
|
|
1274
|
+
exports.UnsubscribeFromDatasetRequest$ = UnsubscribeFromDatasetRequest$;
|
|
1275
|
+
exports.UnsubscribeFromDatasetResponse$ = UnsubscribeFromDatasetResponse$;
|
|
1276
|
+
exports.UpdateRecords$ = UpdateRecords$;
|
|
384
1277
|
exports.UpdateRecordsCommand = UpdateRecordsCommand;
|
|
1278
|
+
exports.UpdateRecordsRequest$ = UpdateRecordsRequest$;
|
|
1279
|
+
exports.UpdateRecordsResponse$ = UpdateRecordsResponse$;
|
|
1280
|
+
exports._Record$ = _Record$;
|
|
1281
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|