fakecloud 0.5.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.
@@ -0,0 +1,218 @@
1
+ export interface HealthResponse {
2
+ status: string;
3
+ version: string;
4
+ services: string[];
5
+ }
6
+ export interface ResetResponse {
7
+ status: string;
8
+ }
9
+ export interface ResetServiceResponse {
10
+ reset: string;
11
+ }
12
+ export interface LambdaInvocation {
13
+ functionArn: string;
14
+ payload: string;
15
+ source: string;
16
+ timestamp: string;
17
+ }
18
+ export interface LambdaInvocationsResponse {
19
+ invocations: LambdaInvocation[];
20
+ }
21
+ export interface WarmContainer {
22
+ functionName: string;
23
+ runtime: string;
24
+ containerId: string;
25
+ lastUsedSecsAgo: number;
26
+ }
27
+ export interface WarmContainersResponse {
28
+ containers: WarmContainer[];
29
+ }
30
+ export interface EvictContainerResponse {
31
+ evicted: boolean;
32
+ }
33
+ export interface SentEmail {
34
+ messageId: string;
35
+ from: string;
36
+ to: string[];
37
+ cc: string[];
38
+ bcc: string[];
39
+ subject: string | null;
40
+ htmlBody: string | null;
41
+ textBody: string | null;
42
+ rawData: string | null;
43
+ templateName: string | null;
44
+ templateData: string | null;
45
+ timestamp: string;
46
+ }
47
+ export interface SesEmailsResponse {
48
+ emails: SentEmail[];
49
+ }
50
+ export interface InboundEmailRequest {
51
+ from: string;
52
+ to: string[];
53
+ subject: string;
54
+ body: string;
55
+ }
56
+ export interface InboundActionExecuted {
57
+ rule: string;
58
+ actionType: string;
59
+ }
60
+ export interface InboundEmailResponse {
61
+ messageId: string;
62
+ matchedRules: string[];
63
+ actionsExecuted: InboundActionExecuted[];
64
+ }
65
+ export interface SnsMessage {
66
+ messageId: string;
67
+ topicArn: string;
68
+ message: string;
69
+ subject: string | null;
70
+ timestamp: string;
71
+ }
72
+ export interface SnsMessagesResponse {
73
+ messages: SnsMessage[];
74
+ }
75
+ export interface PendingConfirmation {
76
+ subscriptionArn: string;
77
+ topicArn: string;
78
+ protocol: string;
79
+ endpoint: string;
80
+ token: string | null;
81
+ }
82
+ export interface PendingConfirmationsResponse {
83
+ pendingConfirmations: PendingConfirmation[];
84
+ }
85
+ export interface ConfirmSubscriptionRequest {
86
+ subscriptionArn: string;
87
+ }
88
+ export interface ConfirmSubscriptionResponse {
89
+ confirmed: boolean;
90
+ }
91
+ export interface SqsMessageInfo {
92
+ messageId: string;
93
+ body: string;
94
+ receiveCount: number;
95
+ inFlight: boolean;
96
+ createdAt: string;
97
+ }
98
+ export interface SqsQueueMessages {
99
+ queueUrl: string;
100
+ queueName: string;
101
+ messages: SqsMessageInfo[];
102
+ }
103
+ export interface SqsMessagesResponse {
104
+ queues: SqsQueueMessages[];
105
+ }
106
+ export interface ExpirationTickResponse {
107
+ expiredMessages: number;
108
+ }
109
+ export interface ForceDlqResponse {
110
+ movedMessages: number;
111
+ }
112
+ export interface EventBridgeEvent {
113
+ eventId: string;
114
+ source: string;
115
+ detailType: string;
116
+ detail: string;
117
+ busName: string;
118
+ timestamp: string;
119
+ }
120
+ export interface EventBridgeLambdaDelivery {
121
+ functionArn: string;
122
+ payload: string;
123
+ timestamp: string;
124
+ }
125
+ export interface EventBridgeLogDelivery {
126
+ logGroupArn: string;
127
+ payload: string;
128
+ timestamp: string;
129
+ }
130
+ export interface EventBridgeDeliveries {
131
+ lambda: EventBridgeLambdaDelivery[];
132
+ logs: EventBridgeLogDelivery[];
133
+ }
134
+ export interface EventHistoryResponse {
135
+ events: EventBridgeEvent[];
136
+ deliveries: EventBridgeDeliveries;
137
+ }
138
+ export interface FireRuleRequest {
139
+ busName?: string;
140
+ ruleName: string;
141
+ }
142
+ export interface FireRuleTarget {
143
+ type: string;
144
+ arn: string;
145
+ }
146
+ export interface FireRuleResponse {
147
+ targets: FireRuleTarget[];
148
+ }
149
+ export interface S3Notification {
150
+ bucket: string;
151
+ key: string;
152
+ eventType: string;
153
+ timestamp: string;
154
+ }
155
+ export interface S3NotificationsResponse {
156
+ notifications: S3Notification[];
157
+ }
158
+ export interface LifecycleTickResponse {
159
+ processedBuckets: number;
160
+ expiredObjects: number;
161
+ transitionedObjects: number;
162
+ }
163
+ export interface TtlTickResponse {
164
+ expiredItems: number;
165
+ }
166
+ export interface RotationTickResponse {
167
+ rotatedSecrets: string[];
168
+ }
169
+ export interface UserConfirmationCodes {
170
+ confirmationCode: string | null;
171
+ attributeVerificationCodes: Record<string, unknown>;
172
+ }
173
+ export interface ConfirmationCode {
174
+ poolId: string;
175
+ username: string;
176
+ code: string;
177
+ type: string;
178
+ attribute?: string;
179
+ }
180
+ export interface ConfirmationCodesResponse {
181
+ codes: ConfirmationCode[];
182
+ }
183
+ export interface ConfirmUserRequest {
184
+ userPoolId: string;
185
+ username: string;
186
+ }
187
+ export interface ConfirmUserResponse {
188
+ confirmed: boolean;
189
+ error?: string;
190
+ }
191
+ export interface TokenInfo {
192
+ type: string;
193
+ username: string;
194
+ poolId: string;
195
+ clientId: string;
196
+ issuedAt: number;
197
+ }
198
+ export interface TokensResponse {
199
+ tokens: TokenInfo[];
200
+ }
201
+ export interface ExpireTokensRequest {
202
+ userPoolId?: string;
203
+ username?: string;
204
+ }
205
+ export interface ExpireTokensResponse {
206
+ expiredTokens: number;
207
+ }
208
+ export interface AuthEvent {
209
+ eventType: string;
210
+ username: string;
211
+ userPoolId: string;
212
+ clientId: string | null;
213
+ timestamp: number;
214
+ success: boolean;
215
+ }
216
+ export interface AuthEventsResponse {
217
+ events: AuthEvent[];
218
+ }
package/dist/types.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // ── Health & Reset ─────────────────────────────────────────────────
3
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "fakecloud",
3
+ "version": "0.5.0",
4
+ "description": "Client SDK for fakecloud — local AWS cloud emulator",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc",
9
+ "test": "vitest run",
10
+ "lint": "eslint . && prettier --check ."
11
+ },
12
+ "devDependencies": {
13
+ "@aws-sdk/client-cognito-identity-provider": "^3.750.0",
14
+ "@aws-sdk/client-dynamodb": "^3.750.0",
15
+ "@aws-sdk/client-eventbridge": "^3.750.0",
16
+ "@aws-sdk/client-s3": "^3.750.0",
17
+ "@aws-sdk/client-sesv2": "^3.750.0",
18
+ "@aws-sdk/client-sns": "^3.750.0",
19
+ "@aws-sdk/client-sqs": "^3.750.0",
20
+ "@eslint/js": "^9.24.0",
21
+ "eslint": "^9.24.0",
22
+ "prettier": "^3.5.0",
23
+ "typescript": "^5.7.0",
24
+ "typescript-eslint": "^8.30.0",
25
+ "vitest": "^3.1.0"
26
+ },
27
+ "license": "AGPL-3.0-or-later",
28
+ "files": [
29
+ "dist"
30
+ ]
31
+ }