cdk-drizzle-migrate 2.0.0 → 2.0.1
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/.jsii +4 -4
- package/lib/drizzle-migrate-provider.js +1 -1
- package/lib/handler/handler.js +15270 -18800
- package/node_modules/@types/aws-lambda/README.md +1 -1
- package/node_modules/@types/aws-lambda/common/api-gateway.d.ts +2 -0
- package/node_modules/@types/aws-lambda/handler.d.ts +1 -1
- package/node_modules/@types/aws-lambda/package.json +3 -3
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-email-sender.d.ts +5 -0
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/inbound-federation.d.ts +40 -0
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts +3 -1
- package/node_modules/@types/aws-lambda/trigger/connect-contact-flow.d.ts +1 -1
- package/node_modules/@types/aws-lambda/trigger/dynamodb-stream.d.ts +20 -12
- package/node_modules/@types/aws-lambda/trigger/sns.d.ts +2 -2
- package/package.json +21 -17
- /package/{CLAUDE.md → AGENTS.md} +0 -0
|
@@ -8,7 +8,7 @@ This package contains type definitions for aws-lambda (http://docs.aws.amazon.co
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 26 Feb 2026 18:14:19 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/aws-lambda",
|
|
3
|
-
"version": "8.10.
|
|
3
|
+
"version": "8.10.161",
|
|
4
4
|
"description": "TypeScript definitions for aws-lambda",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda",
|
|
6
6
|
"license": "MIT",
|
|
@@ -221,6 +221,6 @@
|
|
|
221
221
|
"scripts": {},
|
|
222
222
|
"dependencies": {},
|
|
223
223
|
"peerDependencies": {},
|
|
224
|
-
"typesPublisherContentHash": "
|
|
225
|
-
"typeScriptVersion": "5.
|
|
224
|
+
"typesPublisherContentHash": "27d4cf93e028357fae8dbd0b56c5cc7cec355e3ba1da224c53e2b497600a4d81",
|
|
225
|
+
"typeScriptVersion": "5.2"
|
|
226
226
|
}
|
package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-email-sender.d.ts
CHANGED
|
@@ -50,6 +50,10 @@ export interface CustomEmailSenderAdminCreateUserTriggerEvent
|
|
|
50
50
|
extends BaseCustomEmailSenderTriggerEvent<"CustomEmailSender_AdminCreateUser">
|
|
51
51
|
{}
|
|
52
52
|
|
|
53
|
+
export interface CustomEmailSenderAuthenticationTriggerEvent
|
|
54
|
+
extends BaseCustomEmailSenderTriggerEvent<"CustomEmailSender_Authentication">
|
|
55
|
+
{}
|
|
56
|
+
|
|
53
57
|
export interface CustomEmailSenderAccountTakeOverNotificationTriggerEvent
|
|
54
58
|
extends BaseTriggerEvent<"CustomEmailSender_AccountTakeOverNotification">
|
|
55
59
|
{
|
|
@@ -71,6 +75,7 @@ export type CustomEmailSenderTriggerEvent =
|
|
|
71
75
|
| CustomEmailSenderUpdateUserAttributeTriggerEvent
|
|
72
76
|
| CustomEmailSenderVerifyUserAttributeTriggerEvent
|
|
73
77
|
| CustomEmailSenderAdminCreateUserTriggerEvent
|
|
78
|
+
| CustomEmailSenderAuthenticationTriggerEvent
|
|
74
79
|
| CustomEmailSenderAccountTakeOverNotificationTriggerEvent;
|
|
75
80
|
|
|
76
81
|
export type CustomEmailSenderTriggerHandler = Handler<CustomEmailSenderTriggerEvent>;
|
package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/inbound-federation.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Handler } from "../../handler";
|
|
2
|
+
import { BaseTriggerEvent, StringMap } from "./_common";
|
|
3
|
+
|
|
4
|
+
export type InboundFederationProviderType =
|
|
5
|
+
| "OIDC"
|
|
6
|
+
| "SAML"
|
|
7
|
+
| "Facebook"
|
|
8
|
+
| "Google"
|
|
9
|
+
| "SignInWithApple"
|
|
10
|
+
| "LoginWithAmazon";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-inbound-federation.html
|
|
14
|
+
*/
|
|
15
|
+
export interface InboundFederationTriggerEvent extends BaseTriggerEvent<"InboundFederation_ExternalProvider"> {
|
|
16
|
+
request: {
|
|
17
|
+
providerName: string;
|
|
18
|
+
providerType: InboundFederationProviderType;
|
|
19
|
+
attributes: {
|
|
20
|
+
/** OAuth token response. Present for OIDC and social providers. */
|
|
21
|
+
tokenResponse?: StringMap | undefined;
|
|
22
|
+
/** Decoded JWT claims. Present for OIDC and social providers. */
|
|
23
|
+
idToken?: StringMap | undefined;
|
|
24
|
+
/** Extended profile info. Present for OIDC and social providers. */
|
|
25
|
+
userInfo?: StringMap | undefined;
|
|
26
|
+
/** SAML assertion attributes. Present for SAML providers. */
|
|
27
|
+
samlResponse?: StringMap | undefined;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
response: {
|
|
31
|
+
/**
|
|
32
|
+
* User attributes to apply to the user profile.
|
|
33
|
+
* All attributes to be retained must be included; omitted attributes are dropped.
|
|
34
|
+
* Return an empty object `{}` to retain all original attributes unchanged.
|
|
35
|
+
*/
|
|
36
|
+
userAttributesToMap: StringMap;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type InboundFederationTriggerHandler = Handler<InboundFederationTriggerEvent>;
|
|
@@ -32,7 +32,8 @@ export interface CognitoUserPoolTriggerEvent {
|
|
|
32
32
|
| "TokenGeneration_RefreshTokens"
|
|
33
33
|
| "TokenGeneration_ClientCredentials"
|
|
34
34
|
| "UserMigration_Authentication"
|
|
35
|
-
| "UserMigration_ForgotPassword"
|
|
35
|
+
| "UserMigration_ForgotPassword"
|
|
36
|
+
| "InboundFederation_ExternalProvider";
|
|
36
37
|
region: string;
|
|
37
38
|
userPoolId: string;
|
|
38
39
|
userName?: string | undefined;
|
|
@@ -119,6 +120,7 @@ export * from "./custom-email-sender";
|
|
|
119
120
|
export * from "./custom-message";
|
|
120
121
|
export * from "./custom-sms-sender";
|
|
121
122
|
export * from "./define-auth-challenge";
|
|
123
|
+
export * from "./inbound-federation";
|
|
122
124
|
export * from "./post-authentication";
|
|
123
125
|
export * from "./post-confirmation";
|
|
124
126
|
export * from "./pre-authentication";
|
|
@@ -29,7 +29,7 @@ export interface ConnectContactFlowEvent {
|
|
|
29
29
|
Name: "ContactFlowEvent";
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export type ConnectContactFlowChannel = "VOICE" | "CHAT";
|
|
32
|
+
export type ConnectContactFlowChannel = "VOICE" | "CHAT" | "EMAIL";
|
|
33
33
|
|
|
34
34
|
export type ConnectContactFlowInitiationMethod = "INBOUND" | "OUTBOUND" | "TRANSFER" | "CALLBACK" | "API";
|
|
35
35
|
|
|
@@ -3,19 +3,27 @@ import { Handler } from "../handler";
|
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
4
4
|
export type DynamoDBStreamHandler = Handler<DynamoDBStreamEvent, DynamoDBBatchResponse | void>;
|
|
5
5
|
|
|
6
|
+
// eslint-disable-next-line @definitelytyped/strict-export-declare-modifiers, @definitelytyped/no-single-element-tuple-type
|
|
7
|
+
type Merge<T> = [{ [K in keyof T]: T[K] }][number];
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @definitelytyped/strict-export-declare-modifiers
|
|
10
|
+
type ExclusivePropertyUnion<T, P = keyof T> = P extends any
|
|
11
|
+
? Merge<{ [K in Extract<keyof T, P>]: T[K] } & { [K in Exclude<keyof T, P>]?: never }>
|
|
12
|
+
: never;
|
|
13
|
+
|
|
6
14
|
// http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_AttributeValue.html
|
|
7
|
-
export
|
|
8
|
-
B
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
L
|
|
12
|
-
M
|
|
13
|
-
N
|
|
14
|
-
NS
|
|
15
|
-
NULL
|
|
16
|
-
S
|
|
17
|
-
SS
|
|
18
|
-
}
|
|
15
|
+
export type AttributeValue = ExclusivePropertyUnion<{
|
|
16
|
+
B: string;
|
|
17
|
+
BOOL: boolean;
|
|
18
|
+
BS: string[];
|
|
19
|
+
L: AttributeValue[];
|
|
20
|
+
M: Record<string, AttributeValue>;
|
|
21
|
+
N: string;
|
|
22
|
+
NS: string[];
|
|
23
|
+
NULL: boolean;
|
|
24
|
+
S: string;
|
|
25
|
+
SS: string[];
|
|
26
|
+
}>;
|
|
19
27
|
|
|
20
28
|
// http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_StreamRecord.html
|
|
21
29
|
export interface StreamRecord {
|
|
@@ -16,12 +16,12 @@ export interface SNSMessage {
|
|
|
16
16
|
SignatureVersion: string;
|
|
17
17
|
Timestamp: string;
|
|
18
18
|
Signature: string;
|
|
19
|
-
SigningCertUrl: string;
|
|
19
|
+
SigningCertUrl: string; // Not SigningCertURL; see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/73817#issuecomment-3367340170
|
|
20
20
|
MessageId: string;
|
|
21
21
|
Message: string;
|
|
22
22
|
MessageAttributes: SNSMessageAttributes;
|
|
23
23
|
Type: string;
|
|
24
|
-
UnsubscribeUrl: string;
|
|
24
|
+
UnsubscribeUrl: string; // Not UnsubscribeURL; see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/73817#issuecomment-3367340170
|
|
25
25
|
TopicArn: string;
|
|
26
26
|
Subject?: string;
|
|
27
27
|
Token?: string;
|
package/package.json
CHANGED
|
@@ -55,45 +55,45 @@
|
|
|
55
55
|
"organization": false
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
|
59
|
-
"@aws-sdk/dsql-signer": "^3.
|
|
58
|
+
"@aws-sdk/client-secrets-manager": "^3.1014.0",
|
|
59
|
+
"@aws-sdk/dsql-signer": "^3.1014.0",
|
|
60
60
|
"@types/jest": "^29.5.14",
|
|
61
|
-
"@types/node": "^
|
|
61
|
+
"@types/node": "^24",
|
|
62
62
|
"@typescript-eslint/eslint-plugin": "^8",
|
|
63
63
|
"@typescript-eslint/parser": "^8",
|
|
64
|
-
"aws-cdk": "^2.
|
|
64
|
+
"aws-cdk": "^2.1112.0",
|
|
65
65
|
"aws-cdk-lib": "2.207.0",
|
|
66
66
|
"commit-and-tag-version": "^12",
|
|
67
67
|
"constructs": "10.4.2",
|
|
68
|
-
"drizzle-kit": "^0.31.
|
|
69
|
-
"drizzle-orm": "^0.
|
|
68
|
+
"drizzle-kit": "^0.31.10",
|
|
69
|
+
"drizzle-orm": "^0.45.1",
|
|
70
70
|
"esbuild": "^0.25.1",
|
|
71
71
|
"eslint": "^8",
|
|
72
72
|
"eslint-config-prettier": "^10.1.8",
|
|
73
73
|
"eslint-import-resolver-typescript": "^3.10.1",
|
|
74
74
|
"eslint-plugin-import": "^2.32.0",
|
|
75
|
-
"eslint-plugin-prettier": "^5.5.
|
|
75
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
76
76
|
"jest": "^29.7.0",
|
|
77
77
|
"jest-junit": "^16",
|
|
78
78
|
"jsii": "~5.9.0",
|
|
79
|
-
"jsii-diff": "^1.
|
|
79
|
+
"jsii-diff": "^1.127.0",
|
|
80
80
|
"jsii-docgen": "^10.5.0",
|
|
81
|
-
"jsii-pacmak": "^1.
|
|
81
|
+
"jsii-pacmak": "^1.127.0",
|
|
82
82
|
"jsii-rosetta": "~5.9.0",
|
|
83
|
-
"mysql2": "^3.
|
|
84
|
-
"postgres": "^3.4.
|
|
85
|
-
"prettier": "^3.
|
|
86
|
-
"projen": "^0.
|
|
87
|
-
"ts-jest": "^29.4.
|
|
83
|
+
"mysql2": "^3.20.0",
|
|
84
|
+
"postgres": "^3.4.8",
|
|
85
|
+
"prettier": "^3.8.1",
|
|
86
|
+
"projen": "^0.99.21",
|
|
87
|
+
"ts-jest": "^29.4.6",
|
|
88
88
|
"ts-node": "^10.9.2",
|
|
89
|
-
"typescript": "^5.9.
|
|
89
|
+
"typescript": "^5.9.3"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"aws-cdk-lib": "^2.207.0",
|
|
93
93
|
"constructs": "^10.4.2"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@types/aws-lambda": "^8.10.
|
|
96
|
+
"@types/aws-lambda": "^8.10.161"
|
|
97
97
|
},
|
|
98
98
|
"bundledDependencies": [
|
|
99
99
|
"@types/aws-lambda"
|
|
@@ -108,12 +108,15 @@
|
|
|
108
108
|
"drizzle-orm",
|
|
109
109
|
"rds"
|
|
110
110
|
],
|
|
111
|
+
"engines": {
|
|
112
|
+
"node": ">= 24.0.0"
|
|
113
|
+
},
|
|
111
114
|
"main": "lib/index.js",
|
|
112
115
|
"license": "Apache-2.0",
|
|
113
116
|
"publishConfig": {
|
|
114
117
|
"access": "public"
|
|
115
118
|
},
|
|
116
|
-
"version": "2.0.
|
|
119
|
+
"version": "2.0.1",
|
|
117
120
|
"jest": {
|
|
118
121
|
"coverageProvider": "v8",
|
|
119
122
|
"testMatch": [
|
|
@@ -169,5 +172,6 @@
|
|
|
169
172
|
"rootDir": "src"
|
|
170
173
|
}
|
|
171
174
|
},
|
|
175
|
+
"packageManager": "npm@11",
|
|
172
176
|
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
|
|
173
177
|
}
|
/package/{CLAUDE.md → AGENTS.md}
RENAMED
|
File without changes
|