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.
@@ -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: Sat, 19 Jul 2025 08:38:38 GMT
11
+ * Last updated: Thu, 26 Feb 2026 18:14:19 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -80,4 +80,6 @@ export interface APIGatewayEventIdentity {
80
80
  user: string | null;
81
81
  userAgent: string | null;
82
82
  userArn: string | null;
83
+ vpcId?: string | undefined;
84
+ vpceId?: string | undefined;
83
85
  }
@@ -131,7 +131,7 @@ export interface CognitoIdentity {
131
131
 
132
132
  export interface ClientContext {
133
133
  client: ClientContextClient;
134
- Custom?: any;
134
+ custom?: any;
135
135
  env: ClientContextEnv;
136
136
  }
137
137
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/aws-lambda",
3
- "version": "8.10.152",
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": "7ac21f912f5d39e38f9916d81a153b602cba17acc60370d4bd76dbb98d403494",
225
- "typeScriptVersion": "5.1"
224
+ "typesPublisherContentHash": "27d4cf93e028357fae8dbd0b56c5cc7cec355e3ba1da224c53e2b497600a4d81",
225
+ "typeScriptVersion": "5.2"
226
226
  }
@@ -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>;
@@ -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 interface AttributeValue {
8
- B?: string | undefined;
9
- BS?: string[] | undefined;
10
- BOOL?: boolean | undefined;
11
- L?: AttributeValue[] | undefined;
12
- M?: { [id: string]: AttributeValue } | undefined;
13
- N?: string | undefined;
14
- NS?: string[] | undefined;
15
- NULL?: boolean | undefined;
16
- S?: string | undefined;
17
- SS?: string[] | undefined;
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.886.0",
59
- "@aws-sdk/dsql-signer": "^3.886.0",
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": "^22.18.1",
61
+ "@types/node": "^24",
62
62
  "@typescript-eslint/eslint-plugin": "^8",
63
63
  "@typescript-eslint/parser": "^8",
64
- "aws-cdk": "^2.1029.0",
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.4",
69
- "drizzle-orm": "^0.44.5",
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.4",
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.114.1",
79
+ "jsii-diff": "^1.127.0",
80
80
  "jsii-docgen": "^10.5.0",
81
- "jsii-pacmak": "^1.114.1",
81
+ "jsii-pacmak": "^1.127.0",
82
82
  "jsii-rosetta": "~5.9.0",
83
- "mysql2": "^3.14.5",
84
- "postgres": "^3.4.7",
85
- "prettier": "^3.6.2",
86
- "projen": "^0.96.1",
87
- "ts-jest": "^29.4.1",
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.2"
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.152"
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.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
  }
File without changes