@aws-sdk/client-cognito-sync 3.405.0 → 3.409.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/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +15 -1
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +14 -0
- package/dist-types/commands/GetBulkPublishDetailsCommand.d.ts +1 -1
- package/dist-types/commands/GetIdentityPoolConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/RegisterDeviceCommand.d.ts +1 -1
- package/dist-types/commands/SetIdentityPoolConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/UpdateRecordsCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +29 -3
- package/dist-types/ts3.4/models/models_0.d.ts +18 -3
- package/package.json +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://cognito-sync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://cognito-sync-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://cognito-sync.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://cognito-sync.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LimitExceededException = exports.LambdaThrottledException = exports.InvalidLambdaFunctionOutputException = exports.ConcurrentModificationException = exports.InvalidConfigurationException = exports.BulkPublishStatus = exports.TooManyRequestsException = exports.ResourceConflictException = exports.ResourceNotFoundException = exports.NotAuthorizedException = exports.InvalidParameterException = exports.InternalErrorException = exports.DuplicateRequestException = exports.AlreadyStreamedException = void 0;
|
|
3
|
+
exports.Operation = exports.LimitExceededException = exports.LambdaThrottledException = exports.InvalidLambdaFunctionOutputException = exports.ConcurrentModificationException = exports.Platform = exports.InvalidConfigurationException = exports.StreamingStatus = exports.BulkPublishStatus = exports.TooManyRequestsException = exports.ResourceConflictException = exports.ResourceNotFoundException = exports.NotAuthorizedException = exports.InvalidParameterException = exports.InternalErrorException = exports.DuplicateRequestException = exports.AlreadyStreamedException = void 0;
|
|
4
4
|
const CognitoSyncServiceException_1 = require("./CognitoSyncServiceException");
|
|
5
5
|
class AlreadyStreamedException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -112,6 +112,10 @@ exports.BulkPublishStatus = {
|
|
|
112
112
|
NOT_STARTED: "NOT_STARTED",
|
|
113
113
|
SUCCEEDED: "SUCCEEDED",
|
|
114
114
|
};
|
|
115
|
+
exports.StreamingStatus = {
|
|
116
|
+
DISABLED: "DISABLED",
|
|
117
|
+
ENABLED: "ENABLED",
|
|
118
|
+
};
|
|
115
119
|
class InvalidConfigurationException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
|
|
116
120
|
constructor(opts) {
|
|
117
121
|
super({
|
|
@@ -125,6 +129,12 @@ class InvalidConfigurationException extends CognitoSyncServiceException_1.Cognit
|
|
|
125
129
|
}
|
|
126
130
|
}
|
|
127
131
|
exports.InvalidConfigurationException = InvalidConfigurationException;
|
|
132
|
+
exports.Platform = {
|
|
133
|
+
ADM: "ADM",
|
|
134
|
+
APNS: "APNS",
|
|
135
|
+
APNS_SANDBOX: "APNS_SANDBOX",
|
|
136
|
+
GCM: "GCM",
|
|
137
|
+
};
|
|
128
138
|
class ConcurrentModificationException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
|
|
129
139
|
constructor(opts) {
|
|
130
140
|
super({
|
|
@@ -177,3 +187,7 @@ class LimitExceededException extends CognitoSyncServiceException_1.CognitoSyncSe
|
|
|
177
187
|
}
|
|
178
188
|
}
|
|
179
189
|
exports.LimitExceededException = LimitExceededException;
|
|
190
|
+
exports.Operation = {
|
|
191
|
+
remove: "remove",
|
|
192
|
+
replace: "replace",
|
|
193
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://cognito-sync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://cognito-sync-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://cognito-sync.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://cognito-sync.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -101,6 +101,10 @@ export const BulkPublishStatus = {
|
|
|
101
101
|
NOT_STARTED: "NOT_STARTED",
|
|
102
102
|
SUCCEEDED: "SUCCEEDED",
|
|
103
103
|
};
|
|
104
|
+
export const StreamingStatus = {
|
|
105
|
+
DISABLED: "DISABLED",
|
|
106
|
+
ENABLED: "ENABLED",
|
|
107
|
+
};
|
|
104
108
|
export class InvalidConfigurationException extends __BaseException {
|
|
105
109
|
constructor(opts) {
|
|
106
110
|
super({
|
|
@@ -113,6 +117,12 @@ export class InvalidConfigurationException extends __BaseException {
|
|
|
113
117
|
Object.setPrototypeOf(this, InvalidConfigurationException.prototype);
|
|
114
118
|
}
|
|
115
119
|
}
|
|
120
|
+
export const Platform = {
|
|
121
|
+
ADM: "ADM",
|
|
122
|
+
APNS: "APNS",
|
|
123
|
+
APNS_SANDBOX: "APNS_SANDBOX",
|
|
124
|
+
GCM: "GCM",
|
|
125
|
+
};
|
|
116
126
|
export class ConcurrentModificationException extends __BaseException {
|
|
117
127
|
constructor(opts) {
|
|
118
128
|
super({
|
|
@@ -161,3 +171,7 @@ export class LimitExceededException extends __BaseException {
|
|
|
161
171
|
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
162
172
|
}
|
|
163
173
|
}
|
|
174
|
+
export const Operation = {
|
|
175
|
+
remove: "remove",
|
|
176
|
+
replace: "replace",
|
|
177
|
+
};
|
|
@@ -39,7 +39,7 @@ export interface GetBulkPublishDetailsCommandOutput extends GetBulkPublishDetail
|
|
|
39
39
|
* // IdentityPoolId: "STRING_VALUE",
|
|
40
40
|
* // BulkPublishStartTime: new Date("TIMESTAMP"),
|
|
41
41
|
* // BulkPublishCompleteTime: new Date("TIMESTAMP"),
|
|
42
|
-
* // BulkPublishStatus: "
|
|
42
|
+
* // BulkPublishStatus: "NOT_STARTED" || "IN_PROGRESS" || "FAILED" || "SUCCEEDED",
|
|
43
43
|
* // FailureMessage: "STRING_VALUE",
|
|
44
44
|
* // };
|
|
45
45
|
*
|
|
@@ -92,7 +92,7 @@ export interface GetIdentityPoolConfigurationCommandOutput extends GetIdentityPo
|
|
|
92
92
|
* // CognitoStreams: { // CognitoStreams
|
|
93
93
|
* // StreamName: "STRING_VALUE",
|
|
94
94
|
* // RoleArn: "STRING_VALUE",
|
|
95
|
-
* // StreamingStatus: "
|
|
95
|
+
* // StreamingStatus: "ENABLED" || "DISABLED",
|
|
96
96
|
* // },
|
|
97
97
|
* // };
|
|
98
98
|
*
|
|
@@ -77,7 +77,7 @@ export interface RegisterDeviceCommandOutput extends RegisterDeviceResponse, __M
|
|
|
77
77
|
* const input = { // RegisterDeviceRequest
|
|
78
78
|
* IdentityPoolId: "STRING_VALUE", // required
|
|
79
79
|
* IdentityId: "STRING_VALUE", // required
|
|
80
|
-
* Platform: "
|
|
80
|
+
* Platform: "APNS" || "APNS_SANDBOX" || "GCM" || "ADM", // required
|
|
81
81
|
* Token: "STRING_VALUE", // required
|
|
82
82
|
* };
|
|
83
83
|
* const command = new RegisterDeviceCommand(input);
|
|
@@ -91,7 +91,7 @@ export interface SetIdentityPoolConfigurationCommandOutput extends SetIdentityPo
|
|
|
91
91
|
* CognitoStreams: { // CognitoStreams
|
|
92
92
|
* StreamName: "STRING_VALUE",
|
|
93
93
|
* RoleArn: "STRING_VALUE",
|
|
94
|
-
* StreamingStatus: "
|
|
94
|
+
* StreamingStatus: "ENABLED" || "DISABLED",
|
|
95
95
|
* },
|
|
96
96
|
* };
|
|
97
97
|
* const command = new SetIdentityPoolConfigurationCommand(input);
|
|
@@ -107,7 +107,7 @@ export interface SetIdentityPoolConfigurationCommandOutput extends SetIdentityPo
|
|
|
107
107
|
* // CognitoStreams: { // CognitoStreams
|
|
108
108
|
* // StreamName: "STRING_VALUE",
|
|
109
109
|
* // RoleArn: "STRING_VALUE",
|
|
110
|
-
* // StreamingStatus: "
|
|
110
|
+
* // StreamingStatus: "ENABLED" || "DISABLED",
|
|
111
111
|
* // },
|
|
112
112
|
* // };
|
|
113
113
|
*
|
|
@@ -39,7 +39,7 @@ export interface UpdateRecordsCommandOutput extends UpdateRecordsResponse, __Met
|
|
|
39
39
|
* DeviceId: "STRING_VALUE",
|
|
40
40
|
* RecordPatches: [ // RecordPatchList
|
|
41
41
|
* { // RecordPatch
|
|
42
|
-
* Op: "
|
|
42
|
+
* Op: "replace" || "remove", // required
|
|
43
43
|
* Key: "STRING_VALUE", // required
|
|
44
44
|
* Value: "STRING_VALUE",
|
|
45
45
|
* SyncCount: Number("long"), // required
|
|
@@ -497,10 +497,18 @@ export interface GetIdentityPoolConfigurationRequest {
|
|
|
497
497
|
*/
|
|
498
498
|
IdentityPoolId: string | undefined;
|
|
499
499
|
}
|
|
500
|
+
/**
|
|
501
|
+
* @public
|
|
502
|
+
* @enum
|
|
503
|
+
*/
|
|
504
|
+
export declare const StreamingStatus: {
|
|
505
|
+
readonly DISABLED: "DISABLED";
|
|
506
|
+
readonly ENABLED: "ENABLED";
|
|
507
|
+
};
|
|
500
508
|
/**
|
|
501
509
|
* @public
|
|
502
510
|
*/
|
|
503
|
-
export type StreamingStatus =
|
|
511
|
+
export type StreamingStatus = (typeof StreamingStatus)[keyof typeof StreamingStatus];
|
|
504
512
|
/**
|
|
505
513
|
* @public
|
|
506
514
|
* Configuration options for configure Cognito streams.
|
|
@@ -829,8 +837,18 @@ export declare class InvalidConfigurationException extends __BaseException {
|
|
|
829
837
|
}
|
|
830
838
|
/**
|
|
831
839
|
* @public
|
|
840
|
+
* @enum
|
|
832
841
|
*/
|
|
833
|
-
export
|
|
842
|
+
export declare const Platform: {
|
|
843
|
+
readonly ADM: "ADM";
|
|
844
|
+
readonly APNS: "APNS";
|
|
845
|
+
readonly APNS_SANDBOX: "APNS_SANDBOX";
|
|
846
|
+
readonly GCM: "GCM";
|
|
847
|
+
};
|
|
848
|
+
/**
|
|
849
|
+
* @public
|
|
850
|
+
*/
|
|
851
|
+
export type Platform = (typeof Platform)[keyof typeof Platform];
|
|
834
852
|
/**
|
|
835
853
|
* @public
|
|
836
854
|
* <p>A request to RegisterDevice.</p>
|
|
@@ -1044,10 +1062,18 @@ export declare class LimitExceededException extends __BaseException {
|
|
|
1044
1062
|
*/
|
|
1045
1063
|
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
1046
1064
|
}
|
|
1065
|
+
/**
|
|
1066
|
+
* @public
|
|
1067
|
+
* @enum
|
|
1068
|
+
*/
|
|
1069
|
+
export declare const Operation: {
|
|
1070
|
+
readonly remove: "remove";
|
|
1071
|
+
readonly replace: "replace";
|
|
1072
|
+
};
|
|
1047
1073
|
/**
|
|
1048
1074
|
* @public
|
|
1049
1075
|
*/
|
|
1050
|
-
export type Operation =
|
|
1076
|
+
export type Operation = (typeof Operation)[keyof typeof Operation];
|
|
1051
1077
|
/**
|
|
1052
1078
|
* @public
|
|
1053
1079
|
* An update operation for a record.
|
|
@@ -140,7 +140,12 @@ export interface GetCognitoEventsResponse {
|
|
|
140
140
|
export interface GetIdentityPoolConfigurationRequest {
|
|
141
141
|
IdentityPoolId: string | undefined;
|
|
142
142
|
}
|
|
143
|
-
export
|
|
143
|
+
export declare const StreamingStatus: {
|
|
144
|
+
readonly DISABLED: "DISABLED";
|
|
145
|
+
readonly ENABLED: "ENABLED";
|
|
146
|
+
};
|
|
147
|
+
export type StreamingStatus =
|
|
148
|
+
(typeof StreamingStatus)[keyof typeof StreamingStatus];
|
|
144
149
|
export interface CognitoStreams {
|
|
145
150
|
StreamName?: string;
|
|
146
151
|
RoleArn?: string;
|
|
@@ -211,7 +216,13 @@ export declare class InvalidConfigurationException extends __BaseException {
|
|
|
211
216
|
opts: __ExceptionOptionType<InvalidConfigurationException, __BaseException>
|
|
212
217
|
);
|
|
213
218
|
}
|
|
214
|
-
export
|
|
219
|
+
export declare const Platform: {
|
|
220
|
+
readonly ADM: "ADM";
|
|
221
|
+
readonly APNS: "APNS";
|
|
222
|
+
readonly APNS_SANDBOX: "APNS_SANDBOX";
|
|
223
|
+
readonly GCM: "GCM";
|
|
224
|
+
};
|
|
225
|
+
export type Platform = (typeof Platform)[keyof typeof Platform];
|
|
215
226
|
export interface RegisterDeviceRequest {
|
|
216
227
|
IdentityPoolId: string | undefined;
|
|
217
228
|
IdentityId: string | undefined;
|
|
@@ -283,7 +294,11 @@ export declare class LimitExceededException extends __BaseException {
|
|
|
283
294
|
opts: __ExceptionOptionType<LimitExceededException, __BaseException>
|
|
284
295
|
);
|
|
285
296
|
}
|
|
286
|
-
export
|
|
297
|
+
export declare const Operation: {
|
|
298
|
+
readonly remove: "remove";
|
|
299
|
+
readonly replace: "replace";
|
|
300
|
+
};
|
|
301
|
+
export type Operation = (typeof Operation)[keyof typeof Operation];
|
|
287
302
|
export interface RecordPatch {
|
|
288
303
|
Op: Operation | string | undefined;
|
|
289
304
|
Key: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cognito-sync",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cognito Sync Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.409.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.409.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.409.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.408.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.408.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.408.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.408.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.408.0",
|
|
31
|
+
"@aws-sdk/types": "3.408.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.408.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.408.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.408.0",
|
|
35
35
|
"@smithy/config-resolver": "^2.0.5",
|
|
36
36
|
"@smithy/fetch-http-handler": "^2.0.5",
|
|
37
37
|
"@smithy/hash-node": "^2.0.5",
|