cdk-drizzle-migrate 1.0.1 → 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 +244 -92
- package/AGENTS.md +79 -0
- package/API.md +32 -26
- package/README.md +20 -6
- package/lib/drizzle-migrate-provider.d.ts +15 -7
- package/lib/drizzle-migrate-provider.js +82 -25
- package/lib/handler/handler.js +22505 -17806
- 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 +97 -1
- package/node_modules/@types/aws-lambda/package.json +3 -3
- package/node_modules/@types/aws-lambda/trigger/cloudfront-response.d.ts +8 -6
- 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 +5 -1
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v3.d.ts +50 -0
- 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/guard-duty-event-notification.d.ts +1 -1
- package/node_modules/@types/aws-lambda/trigger/sns.d.ts +2 -2
- package/package.json +34 -25
|
@@ -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,3 +1,4 @@
|
|
|
1
|
+
import type { Writable } from "node:stream";
|
|
1
2
|
/**
|
|
2
3
|
* The interface that AWS Lambda will invoke your handler with.
|
|
3
4
|
* There are more specialized types for many cases where AWS services
|
|
@@ -103,6 +104,7 @@ export interface Context {
|
|
|
103
104
|
logStreamName: string;
|
|
104
105
|
identity?: CognitoIdentity | undefined;
|
|
105
106
|
clientContext?: ClientContext | undefined;
|
|
107
|
+
tenantId?: string | undefined;
|
|
106
108
|
|
|
107
109
|
getRemainingTimeInMillis(): number;
|
|
108
110
|
|
|
@@ -129,7 +131,7 @@ export interface CognitoIdentity {
|
|
|
129
131
|
|
|
130
132
|
export interface ClientContext {
|
|
131
133
|
client: ClientContextClient;
|
|
132
|
-
|
|
134
|
+
custom?: any;
|
|
133
135
|
env: ClientContextEnv;
|
|
134
136
|
}
|
|
135
137
|
|
|
@@ -170,3 +172,97 @@ export interface ClientContextEnv {
|
|
|
170
172
|
* Pass `null` or `undefined` for the `error` parameter to use this parameter.
|
|
171
173
|
*/
|
|
172
174
|
export type Callback<TResult = any> = (error?: Error | string | null, result?: TResult) => void;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Interface for using response streaming from AWS Lambda.
|
|
178
|
+
* To indicate to the runtime that Lambda should stream your function’s responses, you must wrap your function handler with the `awslambda.streamifyResponse()` decorator.
|
|
179
|
+
*
|
|
180
|
+
* The `streamifyResponse` decorator accepts the following additional parameter, `responseStream`, besides the default node handler parameters, `event`, and `context`.
|
|
181
|
+
* The new `responseStream` object provides a stream object that your function can write data to. Data written to this stream is sent immediately to the client. You can optionally set the Content-Type header of the response to pass additional metadata to your client about the contents of the stream.
|
|
182
|
+
*
|
|
183
|
+
* {@link https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/ AWS blog post}
|
|
184
|
+
* {@link https://docs.aws.amazon.com/lambda/latest/dg/config-rs-write-functions.html AWS documentation}
|
|
185
|
+
*
|
|
186
|
+
* @example <caption>Writing to the response stream</caption>
|
|
187
|
+
* import 'aws-lambda';
|
|
188
|
+
*
|
|
189
|
+
* export const handler = awslambda.streamifyResponse(
|
|
190
|
+
* async (event, responseStream, context) => {
|
|
191
|
+
* responseStream.setContentType("text/plain");
|
|
192
|
+
* responseStream.write("Hello, world!");
|
|
193
|
+
* responseStream.end();
|
|
194
|
+
* }
|
|
195
|
+
* );
|
|
196
|
+
*
|
|
197
|
+
* @example <caption>Using pipeline</caption>
|
|
198
|
+
* import 'aws-lambda';
|
|
199
|
+
* import { Readable } from 'stream';
|
|
200
|
+
* import { pipeline } from 'stream/promises';
|
|
201
|
+
* import zlib from 'zlib';
|
|
202
|
+
*
|
|
203
|
+
* export const handler = awslambda.streamifyResponse(
|
|
204
|
+
* async (event, responseStream, context) => {
|
|
205
|
+
* // As an example, convert event to a readable stream.
|
|
206
|
+
* const requestStream = Readable.from(Buffer.from(JSON.stringify(event)));
|
|
207
|
+
*
|
|
208
|
+
* await pipeline(requestStream, zlib.createGzip(), responseStream);
|
|
209
|
+
* }
|
|
210
|
+
* );
|
|
211
|
+
*/
|
|
212
|
+
export type StreamifyHandler<TEvent = any, TResult = any> = (
|
|
213
|
+
event: TEvent,
|
|
214
|
+
responseStream: awslambda.HttpResponseStream,
|
|
215
|
+
context: Context,
|
|
216
|
+
) => TResult | Promise<TResult>;
|
|
217
|
+
|
|
218
|
+
declare global {
|
|
219
|
+
namespace awslambda {
|
|
220
|
+
class HttpResponseStream extends Writable {
|
|
221
|
+
static from(
|
|
222
|
+
writable: Writable,
|
|
223
|
+
metadata: Record<string, unknown>,
|
|
224
|
+
): HttpResponseStream;
|
|
225
|
+
setContentType: (contentType: string) => void;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Decorator for using response streaming from AWS Lambda.
|
|
230
|
+
* To indicate to the runtime that Lambda should stream your function’s responses, you must wrap your function handler with the `awslambda.streamifyResponse()` decorator.
|
|
231
|
+
*
|
|
232
|
+
* The `streamifyResponse` decorator accepts the following additional parameter, `responseStream`, besides the default node handler parameters, `event`, and `context`.
|
|
233
|
+
* The new `responseStream` object provides a stream object that your function can write data to. Data written to this stream is sent immediately to the client. You can optionally set the Content-Type header of the response to pass additional metadata to your client about the contents of the stream.
|
|
234
|
+
*
|
|
235
|
+
* {@link https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/ AWS blog post}
|
|
236
|
+
* {@link https://docs.aws.amazon.com/lambda/latest/dg/config-rs-write-functions.html AWS documentation}
|
|
237
|
+
*
|
|
238
|
+
* @example <caption>Writing to the response stream</caption>
|
|
239
|
+
* import 'aws-lambda';
|
|
240
|
+
*
|
|
241
|
+
* export const handler = awslambda.streamifyResponse(
|
|
242
|
+
* async (event, responseStream, context) => {
|
|
243
|
+
* responseStream.setContentType("text/plain");
|
|
244
|
+
* responseStream.write("Hello, world!");
|
|
245
|
+
* responseStream.end();
|
|
246
|
+
* }
|
|
247
|
+
* );
|
|
248
|
+
*
|
|
249
|
+
* @example <caption>Using pipeline</caption>
|
|
250
|
+
* import 'aws-lambda';
|
|
251
|
+
* import { Readable } from 'stream';
|
|
252
|
+
* import { pipeline } from 'stream/promises';
|
|
253
|
+
* import zlib from 'zlib';
|
|
254
|
+
*
|
|
255
|
+
* export const handler = awslambda.streamifyResponse(
|
|
256
|
+
* async (event, responseStream, context) => {
|
|
257
|
+
* // As an example, convert event to a readable stream.
|
|
258
|
+
* const requestStream = Readable.from(Buffer.from(JSON.stringify(event)));
|
|
259
|
+
*
|
|
260
|
+
* await pipeline(requestStream, zlib.createGzip(), responseStream);
|
|
261
|
+
* }
|
|
262
|
+
* );
|
|
263
|
+
*/
|
|
264
|
+
function streamifyResponse<TEvent = any, TResult = void>(
|
|
265
|
+
handler: StreamifyHandler<TEvent, TResult>,
|
|
266
|
+
): StreamifyHandler<TEvent, TResult>;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
@@ -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
|
}
|
|
@@ -4,18 +4,20 @@ import { Callback, Handler } from "../handler";
|
|
|
4
4
|
export type CloudFrontResponseHandler = Handler<CloudFrontResponseEvent, CloudFrontResponseResult>;
|
|
5
5
|
export type CloudFrontResponseCallback = Callback<CloudFrontResponseResult>;
|
|
6
6
|
|
|
7
|
+
export interface CloudFrontResponseEventRecord {
|
|
8
|
+
cf: CloudFrontEvent & {
|
|
9
|
+
readonly request: Pick<CloudFrontRequest, Exclude<keyof CloudFrontRequest, "body">>;
|
|
10
|
+
response: CloudFrontResponse;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
|
|
7
14
|
/**
|
|
8
15
|
* CloudFront viewer response or origin response event
|
|
9
16
|
*
|
|
10
17
|
* https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#lambda-event-structure-response
|
|
11
18
|
*/
|
|
12
19
|
export interface CloudFrontResponseEvent {
|
|
13
|
-
Records:
|
|
14
|
-
cf: CloudFrontEvent & {
|
|
15
|
-
readonly request: Pick<CloudFrontRequest, Exclude<keyof CloudFrontRequest, "body">>;
|
|
16
|
-
response: CloudFrontResponse;
|
|
17
|
-
};
|
|
18
|
-
}>;
|
|
20
|
+
Records: CloudFrontResponseEventRecord[];
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
export type CloudFrontResponseResult = undefined | null | CloudFrontResultResponse;
|
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>;
|
|
@@ -30,8 +30,10 @@ export interface CognitoUserPoolTriggerEvent {
|
|
|
30
30
|
| "TokenGeneration_NewPasswordChallenge"
|
|
31
31
|
| "TokenGeneration_AuthenticateDevice"
|
|
32
32
|
| "TokenGeneration_RefreshTokens"
|
|
33
|
+
| "TokenGeneration_ClientCredentials"
|
|
33
34
|
| "UserMigration_Authentication"
|
|
34
|
-
| "UserMigration_ForgotPassword"
|
|
35
|
+
| "UserMigration_ForgotPassword"
|
|
36
|
+
| "InboundFederation_ExternalProvider";
|
|
35
37
|
region: string;
|
|
36
38
|
userPoolId: string;
|
|
37
39
|
userName?: string | undefined;
|
|
@@ -118,11 +120,13 @@ export * from "./custom-email-sender";
|
|
|
118
120
|
export * from "./custom-message";
|
|
119
121
|
export * from "./custom-sms-sender";
|
|
120
122
|
export * from "./define-auth-challenge";
|
|
123
|
+
export * from "./inbound-federation";
|
|
121
124
|
export * from "./post-authentication";
|
|
122
125
|
export * from "./post-confirmation";
|
|
123
126
|
export * from "./pre-authentication";
|
|
124
127
|
export * from "./pre-signup";
|
|
125
128
|
export * from "./pre-token-generation";
|
|
126
129
|
export * from "./pre-token-generation-v2";
|
|
130
|
+
export * from "./pre-token-generation-v3";
|
|
127
131
|
export * from "./user-migration";
|
|
128
132
|
export * from "./verify-auth-challenge-response";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Handler } from "../../handler";
|
|
2
|
+
import { BaseTriggerEvent, StringMap } from "./_common";
|
|
3
|
+
|
|
4
|
+
export interface GroupOverrideDetailsV3 {
|
|
5
|
+
groupsToOverride?: string[];
|
|
6
|
+
iamRolesToOverride?: string[];
|
|
7
|
+
preferredRole?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface IdTokenGenerationV3 {
|
|
11
|
+
claimsToAddOrOverride?: StringMap;
|
|
12
|
+
claimsToSuppress?: string[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface AccessTokenGenerationV3 {
|
|
16
|
+
claimsToAddOrOverride?: StringMap;
|
|
17
|
+
claimsToSuppress?: string[];
|
|
18
|
+
scopesToAdd?: string[];
|
|
19
|
+
scopesToSuppress?: string[];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ClaimsAndScopeOverrideDetailsV3 {
|
|
23
|
+
idTokenGeneration?: IdTokenGenerationV3;
|
|
24
|
+
accessTokenGeneration?: AccessTokenGenerationV3;
|
|
25
|
+
groupOverrideDetails?: GroupOverrideDetailsV3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html
|
|
30
|
+
*/
|
|
31
|
+
export interface BasePreTokenGenerationV3TriggerEvent<T extends string> extends BaseTriggerEvent<T> {
|
|
32
|
+
version: "3";
|
|
33
|
+
request: {
|
|
34
|
+
userAttributes: StringMap;
|
|
35
|
+
groupConfiguration: GroupOverrideDetailsV3;
|
|
36
|
+
scopes?: string[];
|
|
37
|
+
clientMetadata?: StringMap;
|
|
38
|
+
};
|
|
39
|
+
response: {
|
|
40
|
+
claimsAndScopeOverrideDetails: ClaimsAndScopeOverrideDetailsV3;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type PreTokenGenerationClientCredentialsV3TriggerEvent = BasePreTokenGenerationV3TriggerEvent<
|
|
45
|
+
"TokenGeneration_ClientCredentials"
|
|
46
|
+
>;
|
|
47
|
+
|
|
48
|
+
export type PreTokenGenerationV3TriggerEvent = PreTokenGenerationClientCredentialsV3TriggerEvent;
|
|
49
|
+
|
|
50
|
+
export type PreTokenGenerationV3TriggerHandler = Handler<PreTokenGenerationV3TriggerEvent>;
|
|
@@ -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 {
|
|
@@ -24,7 +24,7 @@ export interface GuardDutyScanResultNotificationEventDetail {
|
|
|
24
24
|
s3Throttled: boolean;
|
|
25
25
|
};
|
|
26
26
|
scanResultDetails: {
|
|
27
|
-
scanResultStatus: "NO_THREATS_FOUND" | "
|
|
27
|
+
scanResultStatus: "NO_THREATS_FOUND" | "THREATS_FOUND" | "UNSUPPORTED" | "ACCESS_DENIED" | "FAILED";
|
|
28
28
|
threats: GuardDutyThreatDetail[] | null;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
@@ -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
|
@@ -18,16 +18,20 @@
|
|
|
18
18
|
"eject": "npx projen eject",
|
|
19
19
|
"eslint": "npx projen eslint",
|
|
20
20
|
"format": "npx projen format",
|
|
21
|
+
"integ:deploy:dsql": "npx projen integ:deploy:dsql",
|
|
21
22
|
"integ:deploy:mariadb": "npx projen integ:deploy:mariadb",
|
|
22
23
|
"integ:deploy:postgres": "npx projen integ:deploy:postgres",
|
|
23
24
|
"integ:deploy:serverless": "npx projen integ:deploy:serverless",
|
|
25
|
+
"integ:destroy:dsql": "npx projen integ:destroy:dsql",
|
|
24
26
|
"integ:destroy:mariadb": "npx projen integ:destroy:mariadb",
|
|
25
27
|
"integ:destroy:postgres": "npx projen integ:destroy:postgres",
|
|
26
28
|
"integ:destroy:serverless": "npx projen integ:destroy:serverless",
|
|
29
|
+
"integ:generate-migrations:dsql": "npx projen integ:generate-migrations:dsql",
|
|
27
30
|
"integ:generate-migrations:mariadb": "npx projen integ:generate-migrations:mariadb",
|
|
28
31
|
"integ:generate-migrations:postgres": "npx projen integ:generate-migrations:postgres",
|
|
29
32
|
"integ:generate-migrations:serverless": "npx projen integ:generate-migrations:serverless",
|
|
30
33
|
"integ:synth:all": "npx projen integ:synth:all",
|
|
34
|
+
"integ:synth:dsql": "npx projen integ:synth:dsql",
|
|
31
35
|
"integ:synth:mariadb": "npx projen integ:synth:mariadb",
|
|
32
36
|
"integ:synth:postgres": "npx projen integ:synth:postgres",
|
|
33
37
|
"integ:synth:serverless": "npx projen integ:synth:serverless",
|
|
@@ -51,44 +55,45 @@
|
|
|
51
55
|
"organization": false
|
|
52
56
|
},
|
|
53
57
|
"devDependencies": {
|
|
54
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
|
58
|
+
"@aws-sdk/client-secrets-manager": "^3.1014.0",
|
|
59
|
+
"@aws-sdk/dsql-signer": "^3.1014.0",
|
|
55
60
|
"@types/jest": "^29.5.14",
|
|
56
|
-
"@types/node": "^
|
|
61
|
+
"@types/node": "^24",
|
|
57
62
|
"@typescript-eslint/eslint-plugin": "^8",
|
|
58
63
|
"@typescript-eslint/parser": "^8",
|
|
59
|
-
"aws-cdk": "^2.
|
|
60
|
-
"aws-cdk-lib": "2.
|
|
64
|
+
"aws-cdk": "^2.1112.0",
|
|
65
|
+
"aws-cdk-lib": "2.207.0",
|
|
61
66
|
"commit-and-tag-version": "^12",
|
|
62
|
-
"constructs": "10.
|
|
63
|
-
"drizzle-kit": "^0.
|
|
64
|
-
"drizzle-orm": "^0.
|
|
67
|
+
"constructs": "10.4.2",
|
|
68
|
+
"drizzle-kit": "^0.31.10",
|
|
69
|
+
"drizzle-orm": "^0.45.1",
|
|
65
70
|
"esbuild": "^0.25.1",
|
|
66
71
|
"eslint": "^8",
|
|
67
|
-
"eslint-config-prettier": "^10.1.
|
|
68
|
-
"eslint-import-resolver-typescript": "^3.
|
|
69
|
-
"eslint-plugin-import": "^2.
|
|
70
|
-
"eslint-plugin-prettier": "^5.
|
|
72
|
+
"eslint-config-prettier": "^10.1.8",
|
|
73
|
+
"eslint-import-resolver-typescript": "^3.10.1",
|
|
74
|
+
"eslint-plugin-import": "^2.32.0",
|
|
75
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
71
76
|
"jest": "^29.7.0",
|
|
72
77
|
"jest-junit": "^16",
|
|
73
|
-
"jsii": "~5.
|
|
74
|
-
"jsii-diff": "^1.
|
|
78
|
+
"jsii": "~5.9.0",
|
|
79
|
+
"jsii-diff": "^1.127.0",
|
|
75
80
|
"jsii-docgen": "^10.5.0",
|
|
76
|
-
"jsii-pacmak": "^1.
|
|
77
|
-
"jsii-rosetta": "~5.
|
|
78
|
-
"mysql2": "^3.
|
|
79
|
-
"postgres": "^3.4.
|
|
80
|
-
"prettier": "^3.
|
|
81
|
-
"projen": "^0.
|
|
82
|
-
"ts-jest": "^29.
|
|
81
|
+
"jsii-pacmak": "^1.127.0",
|
|
82
|
+
"jsii-rosetta": "~5.9.0",
|
|
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",
|
|
83
88
|
"ts-node": "^10.9.2",
|
|
84
|
-
"typescript": "^5.
|
|
89
|
+
"typescript": "^5.9.3"
|
|
85
90
|
},
|
|
86
91
|
"peerDependencies": {
|
|
87
|
-
"aws-cdk-lib": "^2.
|
|
88
|
-
"constructs": "^10.
|
|
92
|
+
"aws-cdk-lib": "^2.207.0",
|
|
93
|
+
"constructs": "^10.4.2"
|
|
89
94
|
},
|
|
90
95
|
"dependencies": {
|
|
91
|
-
"@types/aws-lambda": "^8.10.
|
|
96
|
+
"@types/aws-lambda": "^8.10.161"
|
|
92
97
|
},
|
|
93
98
|
"bundledDependencies": [
|
|
94
99
|
"@types/aws-lambda"
|
|
@@ -103,12 +108,15 @@
|
|
|
103
108
|
"drizzle-orm",
|
|
104
109
|
"rds"
|
|
105
110
|
],
|
|
111
|
+
"engines": {
|
|
112
|
+
"node": ">= 24.0.0"
|
|
113
|
+
},
|
|
106
114
|
"main": "lib/index.js",
|
|
107
115
|
"license": "Apache-2.0",
|
|
108
116
|
"publishConfig": {
|
|
109
117
|
"access": "public"
|
|
110
118
|
},
|
|
111
|
-
"version": "
|
|
119
|
+
"version": "2.0.1",
|
|
112
120
|
"jest": {
|
|
113
121
|
"coverageProvider": "v8",
|
|
114
122
|
"testMatch": [
|
|
@@ -164,5 +172,6 @@
|
|
|
164
172
|
"rootDir": "src"
|
|
165
173
|
}
|
|
166
174
|
},
|
|
175
|
+
"packageManager": "npm@11",
|
|
167
176
|
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
|
|
168
177
|
}
|