@pattform/api-kit 2.2.0 → 2.3.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.
@@ -133,7 +133,9 @@ class AppComponent extends pulumi.ComponentResource {
133
133
  waitForVerification: false,
134
134
  subDomains: subDomains,
135
135
  }, {
136
- dependsOn: [this.amplifyApp],
136
+ // subDomains reference the branch by name only, so the dependency
137
+ // must be explicit or the association races branch creation.
138
+ dependsOn: [this.amplifyApp, this.amplifyBranch],
137
139
  provider: awsProvider,
138
140
  });
139
141
  if (manageDns) {
@@ -0,0 +1,51 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * FormComponent
4
+ * A form-capture endpoint: Lambda Function URL that verifies a Cloudflare
5
+ * Turnstile token server-side and forwards the submission to Brevo — either
6
+ * creating a contact in a list (subscribe mode, e.g. a waitlist) or sending
7
+ * a transactional email to the site owner (message mode, e.g. a contact form).
8
+ */
9
+ export declare class FormComponent extends pulumi.ComponentResource {
10
+ readonly endpoint: pulumi.Output<string>;
11
+ readonly turnstileSiteKey: pulumi.Output<string>;
12
+ private readonly lambda;
13
+ private readonly functionUrl;
14
+ private readonly turnstileWidget?;
15
+ constructor(name: string, args: FormComponentArgs, opts?: pulumi.ComponentResourceOptions);
16
+ }
17
+ export interface FormFieldSpec {
18
+ name: string;
19
+ label?: string;
20
+ type: "email" | "text" | "textarea" | "select";
21
+ required?: boolean;
22
+ maxLength?: number;
23
+ options?: string[];
24
+ }
25
+ export type FormDestination = {
26
+ type: "brevo";
27
+ mode: "subscribe";
28
+ listId: number;
29
+ } | {
30
+ type: "brevo";
31
+ mode: "message";
32
+ to: string[];
33
+ sender: {
34
+ email: string;
35
+ name?: string;
36
+ };
37
+ subject?: string;
38
+ replyToSubmitter?: boolean;
39
+ };
40
+ export interface FormComponentArgs {
41
+ formName: string;
42
+ allowedOrigins: string[];
43
+ fields: FormFieldSpec[];
44
+ destination: FormDestination;
45
+ roleArn?: pulumi.Input<string>;
46
+ brevoApiKey?: pulumi.Input<string>;
47
+ turnstileSiteKey?: pulumi.Input<string>;
48
+ turnstileSecret?: pulumi.Input<string>;
49
+ alarmEmail?: string;
50
+ reservedConcurrency?: number;
51
+ }
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FormComponent = void 0;
4
+ const pulumi = require("@pulumi/pulumi");
5
+ const aws = require("@pulumi/aws");
6
+ const cloudflare = require("@pulumi/cloudflare");
7
+ const path = require("path");
8
+ const pattformHelper_1 = require("./pattformHelper");
9
+ /**
10
+ * FormComponent
11
+ * A form-capture endpoint: Lambda Function URL that verifies a Cloudflare
12
+ * Turnstile token server-side and forwards the submission to Brevo — either
13
+ * creating a contact in a list (subscribe mode, e.g. a waitlist) or sending
14
+ * a transactional email to the site owner (message mode, e.g. a contact form).
15
+ */
16
+ class FormComponent extends pulumi.ComponentResource {
17
+ constructor(name, args, opts) {
18
+ var _a, _b;
19
+ super("custom:pattform:FormComponent", name, args, opts);
20
+ const awsConfig = new pulumi.Config("aws");
21
+ const awsRegion = awsConfig.require("region");
22
+ const awsAccessKey = awsConfig.getSecret("accessKey");
23
+ const awsSecretKey = awsConfig.getSecret("secretKey");
24
+ const appName = pulumi.getProject();
25
+ const env = pulumi.getStack();
26
+ const baseName = `${appName}-form-${args.formName}`;
27
+ const brevoApiKey = (_a = args.brevoApiKey) !== null && _a !== void 0 ? _a : new pulumi.Config("brevo").requireSecret("apiKey");
28
+ // Credential precedence matches AppComponent: assume-role into the
29
+ // client account, then static keys, then ambient (ESC OIDC) creds.
30
+ const roleArn = (_b = args.roleArn) !== null && _b !== void 0 ? _b : awsConfig.get("roleArn");
31
+ const awsProvider = new aws.Provider(`pattform-form-aws-${baseName}-${env}`, Object.assign(Object.assign({ region: (0, pattformHelper_1.verifyRegion)(awsRegion) }, (awsAccessKey && awsSecretKey ? {
32
+ accessKey: awsAccessKey,
33
+ secretKey: awsSecretKey,
34
+ } : {})), (roleArn ? {
35
+ assumeRole: {
36
+ roleArn: roleArn,
37
+ sessionName: `pattform-form-${appName}-${env}`,
38
+ },
39
+ } : {})));
40
+ // Turnstile widgets are account-level in Cloudflare (not zone-bound),
41
+ // so they live in the Pattform Cloudflare account regardless of where
42
+ // the client's domain is hosted. Pass turnstileSiteKey/turnstileSecret
43
+ // to use a pre-existing widget instead.
44
+ let turnstileSiteKey;
45
+ let turnstileSecret;
46
+ if (args.turnstileSiteKey && args.turnstileSecret) {
47
+ turnstileSiteKey = args.turnstileSiteKey;
48
+ turnstileSecret = args.turnstileSecret;
49
+ }
50
+ else {
51
+ const cloudFlareConfig = new pulumi.Config("cloudflare");
52
+ const cloudFlareToken = cloudFlareConfig.getSecret("apiToken");
53
+ const cloudFlareAccountId = cloudFlareConfig.get("accountId");
54
+ if (!cloudFlareToken || !cloudFlareAccountId) {
55
+ throw new Error(`${appName}: creating a Turnstile widget needs cloudflare:apiToken (with Turnstile edit ` +
56
+ `permission) and cloudflare:accountId config. Alternatively pass an existing widget's ` +
57
+ `turnstileSiteKey and turnstileSecret.`);
58
+ }
59
+ const cloudFlareProvider = new cloudflare.Provider(`pattform-form-cloudflare-${baseName}-${env}`, {
60
+ apiToken: cloudFlareToken,
61
+ });
62
+ this.turnstileWidget = new cloudflare.TurnstileWidget(`${baseName}-turnstile-${env}`, {
63
+ accountId: cloudFlareAccountId,
64
+ name: `${appName} ${args.formName} ${env}`,
65
+ domains: dedupe(args.allowedOrigins.map(origin => new URL(origin).hostname)),
66
+ mode: "managed",
67
+ }, {
68
+ provider: cloudFlareProvider,
69
+ parent: this,
70
+ });
71
+ turnstileSiteKey = this.turnstileWidget.id;
72
+ turnstileSecret = this.turnstileWidget.secret;
73
+ }
74
+ const lambdaRole = new aws.iam.Role(`${baseName}-role-${env}`, {
75
+ assumeRolePolicy: JSON.stringify({
76
+ Version: "2012-10-17",
77
+ Statement: [{
78
+ Action: "sts:AssumeRole",
79
+ Effect: "Allow",
80
+ Principal: { Service: "lambda.amazonaws.com" },
81
+ }],
82
+ }),
83
+ }, {
84
+ provider: awsProvider,
85
+ parent: this,
86
+ });
87
+ new aws.iam.RolePolicyAttachment(`${baseName}-role-logs-${env}`, {
88
+ role: lambdaRole.name,
89
+ policyArn: aws.iam.ManagedPolicy.AWSLambdaBasicExecutionRole,
90
+ }, {
91
+ provider: awsProvider,
92
+ parent: this,
93
+ });
94
+ // The handler ships pre-compiled inside the api-kit package
95
+ // (dist/formHandler/index.js) and has zero dependencies, so the
96
+ // deployment archive is that single file.
97
+ this.lambda = new aws.lambda.Function(`${baseName}-lambda-${env}`, Object.assign(Object.assign({ runtime: "nodejs22.x", handler: "index.handler", role: lambdaRole.arn, timeout: 10, memorySize: 128, code: new pulumi.asset.AssetArchive({
98
+ "index.js": new pulumi.asset.FileAsset(path.join(__dirname, "formHandler", "index.js")),
99
+ }) }, (args.reservedConcurrency !== undefined ? {
100
+ reservedConcurrentExecutions: args.reservedConcurrency,
101
+ } : {})), { environment: {
102
+ variables: {
103
+ FORM_CONFIG: JSON.stringify({
104
+ formName: args.formName,
105
+ fields: args.fields,
106
+ destination: args.destination,
107
+ }),
108
+ TURNSTILE_SECRET_KEY: pulumi.secret(turnstileSecret),
109
+ BREVO_API_KEY: pulumi.secret(brevoApiKey),
110
+ },
111
+ } }), {
112
+ provider: awsProvider,
113
+ parent: this,
114
+ });
115
+ // Preflight OPTIONS requests are answered by the Function URL itself;
116
+ // only same-configured origins can read responses from the browser.
117
+ this.functionUrl = new aws.lambda.FunctionUrl(`${baseName}-url-${env}`, {
118
+ functionName: this.lambda.name,
119
+ authorizationType: "NONE",
120
+ cors: {
121
+ allowOrigins: args.allowedOrigins,
122
+ allowMethods: ["POST"],
123
+ allowHeaders: ["content-type"],
124
+ maxAge: 86400,
125
+ },
126
+ }, {
127
+ provider: awsProvider,
128
+ parent: this,
129
+ });
130
+ const alarmTopic = new aws.sns.Topic(`${baseName}-alarms-${env}`, {}, {
131
+ provider: awsProvider,
132
+ parent: this,
133
+ });
134
+ // The email subscription must be confirmed once from the inbox.
135
+ new aws.sns.TopicSubscription(`${baseName}-alarm-email-${env}`, {
136
+ topic: alarmTopic.arn,
137
+ protocol: "email",
138
+ endpoint: args.alarmEmail || "contact@pattform.io",
139
+ }, {
140
+ provider: awsProvider,
141
+ parent: this,
142
+ });
143
+ new aws.cloudwatch.MetricAlarm(`${baseName}-errors-${env}`, {
144
+ namespace: "AWS/Lambda",
145
+ metricName: "Errors",
146
+ dimensions: { FunctionName: this.lambda.name },
147
+ statistic: "Sum",
148
+ period: 300,
149
+ evaluationPeriods: 1,
150
+ comparisonOperator: "GreaterThanOrEqualToThreshold",
151
+ threshold: 1,
152
+ treatMissingData: "notBreaching",
153
+ alarmDescription: `Form endpoint ${baseName} is returning errors`,
154
+ alarmActions: [alarmTopic.arn],
155
+ }, {
156
+ provider: awsProvider,
157
+ parent: this,
158
+ });
159
+ this.endpoint = this.functionUrl.functionUrl;
160
+ this.turnstileSiteKey = pulumi.output(turnstileSiteKey);
161
+ this.registerOutputs({
162
+ endpoint: this.endpoint,
163
+ turnstileSiteKey: this.turnstileSiteKey,
164
+ });
165
+ }
166
+ }
167
+ exports.FormComponent = FormComponent;
168
+ function dedupe(values) {
169
+ return values.filter((value, index) => values.indexOf(value) === index);
170
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Form-capture handler deployed by FormComponent behind a Lambda Function URL.
3
+ *
4
+ * Deliberately self-contained (no imports): it ships inside the api-kit npm
5
+ * package as a single compiled file and is zipped as-is at deploy time, so it
6
+ * must never need node_modules or a bundling step. Requires a Node 18+ Lambda
7
+ * runtime for the global fetch.
8
+ *
9
+ * Contract (POST JSON): { turnstileToken, honeypot, data: { email, ... } }
10
+ * Responses: 200 {status: subscribed | already_subscribed | sent}
11
+ * 400 {status: invalid, errors: [{field, message}]}
12
+ * 403 {status: captcha_failed}
13
+ * 502 {status: error}
14
+ */
15
+ interface FunctionUrlEvent {
16
+ requestContext?: {
17
+ http?: {
18
+ method?: string;
19
+ sourceIp?: string;
20
+ };
21
+ };
22
+ body?: string;
23
+ isBase64Encoded?: boolean;
24
+ }
25
+ export declare const handler: (event: FunctionUrlEvent) => Promise<{
26
+ statusCode: number;
27
+ headers: {
28
+ "content-type": string;
29
+ };
30
+ body: string;
31
+ }>;
32
+ export {};
@@ -0,0 +1,213 @@
1
+ "use strict";
2
+ /**
3
+ * Form-capture handler deployed by FormComponent behind a Lambda Function URL.
4
+ *
5
+ * Deliberately self-contained (no imports): it ships inside the api-kit npm
6
+ * package as a single compiled file and is zipped as-is at deploy time, so it
7
+ * must never need node_modules or a bundling step. Requires a Node 18+ Lambda
8
+ * runtime for the global fetch.
9
+ *
10
+ * Contract (POST JSON): { turnstileToken, honeypot, data: { email, ... } }
11
+ * Responses: 200 {status: subscribed | already_subscribed | sent}
12
+ * 400 {status: invalid, errors: [{field, message}]}
13
+ * 403 {status: captcha_failed}
14
+ * 502 {status: error}
15
+ */
16
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18
+ return new (P || (P = Promise))(function (resolve, reject) {
19
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
20
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
21
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
22
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
23
+ });
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.handler = void 0;
27
+ const formConfig = JSON.parse(process.env.FORM_CONFIG || "{}");
28
+ const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
29
+ const MAX_BODY_BYTES = 50 * 1024;
30
+ const respond = (statusCode, body) => ({
31
+ statusCode,
32
+ headers: { "content-type": "application/json" },
33
+ body: JSON.stringify(body),
34
+ });
35
+ // Brevo attribute names are account-level and conventionally uppercase.
36
+ const attributeName = (field) => field.replace(/[^a-zA-Z0-9]+/g, "_").toUpperCase();
37
+ const successStatus = () => formConfig.destination.mode === "subscribe" ? "subscribed" : "sent";
38
+ function validate(data) {
39
+ var _a;
40
+ const errors = [];
41
+ const values = {};
42
+ for (const field of formConfig.fields) {
43
+ const raw = data[field.name];
44
+ const value = (raw === undefined || raw === null) ? "" : String(raw).trim();
45
+ if (!value) {
46
+ if (field.required) {
47
+ errors.push({ field: field.name, message: `${field.label || field.name} is required` });
48
+ }
49
+ continue;
50
+ }
51
+ const maxLength = (_a = field.maxLength) !== null && _a !== void 0 ? _a : (field.type === "textarea" ? 5000 : 500);
52
+ if (value.length > maxLength) {
53
+ errors.push({ field: field.name, message: `${field.label || field.name} must be at most ${maxLength} characters` });
54
+ continue;
55
+ }
56
+ if (field.type === "email" && !EMAIL_PATTERN.test(value)) {
57
+ errors.push({ field: field.name, message: `${field.label || field.name} must be a valid email address` });
58
+ continue;
59
+ }
60
+ if (field.type === "select" && field.options && !field.options.includes(value)) {
61
+ errors.push({ field: field.name, message: `${field.label || field.name} must be one of the provided options` });
62
+ continue;
63
+ }
64
+ values[field.name] = value;
65
+ }
66
+ return { errors, values };
67
+ }
68
+ function verifyTurnstile(token, remoteIp) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const params = new URLSearchParams({ secret: process.env.TURNSTILE_SECRET_KEY || "", response: token });
71
+ if (remoteIp) {
72
+ params.set("remoteip", remoteIp);
73
+ }
74
+ const result = yield fetch("https://challenges.cloudflare.com/turnstile/v0/siteverify", {
75
+ method: "POST",
76
+ headers: { "content-type": "application/x-www-form-urlencoded" },
77
+ body: params.toString(),
78
+ });
79
+ const outcome = yield result.json();
80
+ if (!outcome.success) {
81
+ console.warn("Turnstile verification failed", outcome["error-codes"]);
82
+ }
83
+ return outcome.success === true;
84
+ });
85
+ }
86
+ function brevo(path, payload) {
87
+ return __awaiter(this, void 0, void 0, function* () {
88
+ const result = yield fetch(`https://api.brevo.com/v3${path}`, {
89
+ method: "POST",
90
+ headers: {
91
+ "content-type": "application/json",
92
+ "api-key": process.env.BREVO_API_KEY || "",
93
+ },
94
+ body: JSON.stringify(payload),
95
+ });
96
+ const text = yield result.text();
97
+ let body = {};
98
+ try {
99
+ body = text ? JSON.parse(text) : {};
100
+ }
101
+ catch (_a) {
102
+ // Non-JSON error body; status code is enough.
103
+ }
104
+ return { status: result.status, body };
105
+ });
106
+ }
107
+ // Brevo silently drops unknown contact attributes, so the attributes each
108
+ // field maps to must exist in the account. Created lazily,
109
+ // once per container: Brevo answers 400 for an attribute that already exists,
110
+ // which is fine.
111
+ let attributesEnsured;
112
+ function ensureBrevoAttributes() {
113
+ if (!attributesEnsured) {
114
+ attributesEnsured = (() => __awaiter(this, void 0, void 0, function* () {
115
+ for (const field of formConfig.fields) {
116
+ if (field.type === "email") {
117
+ continue;
118
+ }
119
+ yield brevo(`/contacts/attributes/normal/${attributeName(field.name)}`, { type: "text" });
120
+ }
121
+ }))().catch(error => {
122
+ attributesEnsured = undefined;
123
+ throw error;
124
+ });
125
+ }
126
+ return attributesEnsured;
127
+ }
128
+ function subscribe(values, destination) {
129
+ var _a, _b, _c;
130
+ return __awaiter(this, void 0, void 0, function* () {
131
+ const emailField = formConfig.fields.find(field => field.type === "email");
132
+ const email = emailField && values[emailField.name];
133
+ if (!email) {
134
+ return respond(400, { status: "invalid", errors: [{ field: (emailField === null || emailField === void 0 ? void 0 : emailField.name) || "email", message: "Email is required" }] });
135
+ }
136
+ yield ensureBrevoAttributes();
137
+ const attributes = {};
138
+ for (const [name, value] of Object.entries(values)) {
139
+ if (name !== emailField.name) {
140
+ attributes[attributeName(name)] = value;
141
+ }
142
+ }
143
+ const result = yield brevo("/contacts", {
144
+ email,
145
+ attributes,
146
+ listIds: [destination.listId],
147
+ updateEnabled: false,
148
+ });
149
+ if (result.status === 400 && ((_a = result.body) === null || _a === void 0 ? void 0 : _a.code) === "duplicate_parameter") {
150
+ return respond(200, { status: "already_subscribed" });
151
+ }
152
+ if (result.status >= 400) {
153
+ console.error("Brevo create-contact failed", result.status, (_b = result.body) === null || _b === void 0 ? void 0 : _b.code, (_c = result.body) === null || _c === void 0 ? void 0 : _c.message);
154
+ return respond(502, { status: "error" });
155
+ }
156
+ return respond(200, { status: "subscribed" });
157
+ });
158
+ }
159
+ function message(values, destination) {
160
+ var _a, _b;
161
+ return __awaiter(this, void 0, void 0, function* () {
162
+ const lines = formConfig.fields
163
+ .filter(field => values[field.name] !== undefined)
164
+ .map(field => `${field.label || field.name}: ${values[field.name]}`);
165
+ const emailField = formConfig.fields.find(field => field.type === "email");
166
+ const submitterEmail = emailField && values[emailField.name];
167
+ const result = yield brevo("/smtp/email", Object.assign(Object.assign({ sender: destination.sender, to: destination.to.map(email => ({ email })) }, (submitterEmail && destination.replyToSubmitter !== false ? { replyTo: { email: submitterEmail } } : {})), { subject: destination.subject || `New ${formConfig.formName} submission`, textContent: lines.join("\n") }));
168
+ if (result.status >= 400) {
169
+ console.error("Brevo transactional send failed", result.status, (_a = result.body) === null || _a === void 0 ? void 0 : _a.code, (_b = result.body) === null || _b === void 0 ? void 0 : _b.message);
170
+ return respond(502, { status: "error" });
171
+ }
172
+ return respond(200, { status: "sent" });
173
+ });
174
+ }
175
+ const handler = (event) => __awaiter(void 0, void 0, void 0, function* () {
176
+ var _a, _b, _c, _d;
177
+ if (((_b = (_a = event.requestContext) === null || _a === void 0 ? void 0 : _a.http) === null || _b === void 0 ? void 0 : _b.method) !== "POST") {
178
+ return respond(405, { status: "error" });
179
+ }
180
+ const rawBody = event.isBase64Encoded ? Buffer.from(event.body || "", "base64").toString("utf8") : (event.body || "");
181
+ if (rawBody.length > MAX_BODY_BYTES) {
182
+ return respond(400, { status: "invalid", errors: [{ field: "", message: "Request too large" }] });
183
+ }
184
+ let payload;
185
+ try {
186
+ payload = JSON.parse(rawBody);
187
+ }
188
+ catch (_e) {
189
+ return respond(400, { status: "invalid", errors: [{ field: "", message: "Body must be JSON" }] });
190
+ }
191
+ // Bots that fill the hidden honeypot field get a fake success so they
192
+ // don't learn anything; nothing is forwarded.
193
+ if (payload.honeypot) {
194
+ return respond(200, { status: successStatus() });
195
+ }
196
+ const { errors, values } = validate(payload.data || {});
197
+ if (errors.length > 0) {
198
+ return respond(400, { status: "invalid", errors });
199
+ }
200
+ if (!payload.turnstileToken || !(yield verifyTurnstile(payload.turnstileToken, (_d = (_c = event.requestContext) === null || _c === void 0 ? void 0 : _c.http) === null || _d === void 0 ? void 0 : _d.sourceIp))) {
201
+ return respond(403, { status: "captcha_failed" });
202
+ }
203
+ try {
204
+ return formConfig.destination.mode === "subscribe"
205
+ ? yield subscribe(values, formConfig.destination)
206
+ : yield message(values, formConfig.destination);
207
+ }
208
+ catch (error) {
209
+ console.error("Form forwarding failed", error);
210
+ return respond(502, { status: "error" });
211
+ }
212
+ });
213
+ exports.handler = handler;
package/dist/index.d.ts CHANGED
@@ -2,4 +2,5 @@ export { ContainerComponent, ContainerComponentArgs } from "./ContainerComponent
2
2
  export { ApiComponent, ApiComponentArgs } from "./ApiComponent";
3
3
  export { AppComponent, AppComponentArgs, DnsRecordInstruction } from "./AppComponent";
4
4
  export { ClientAccountComponent, ClientAccountComponentArgs } from "./ClientAccountComponent";
5
+ export { FormComponent, FormComponentArgs, FormFieldSpec, FormDestination } from "./FormComponent";
5
6
  export { getClientRoleArn } from "./pattformHelper";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getClientRoleArn = exports.ClientAccountComponent = exports.AppComponent = exports.ApiComponent = exports.ContainerComponent = void 0;
3
+ exports.getClientRoleArn = exports.FormComponent = exports.ClientAccountComponent = exports.AppComponent = exports.ApiComponent = exports.ContainerComponent = void 0;
4
4
  var ContainerComponent_1 = require("./ContainerComponent");
5
5
  Object.defineProperty(exports, "ContainerComponent", { enumerable: true, get: function () { return ContainerComponent_1.ContainerComponent; } });
6
6
  var ApiComponent_1 = require("./ApiComponent");
@@ -9,5 +9,7 @@ var AppComponent_1 = require("./AppComponent");
9
9
  Object.defineProperty(exports, "AppComponent", { enumerable: true, get: function () { return AppComponent_1.AppComponent; } });
10
10
  var ClientAccountComponent_1 = require("./ClientAccountComponent");
11
11
  Object.defineProperty(exports, "ClientAccountComponent", { enumerable: true, get: function () { return ClientAccountComponent_1.ClientAccountComponent; } });
12
+ var FormComponent_1 = require("./FormComponent");
13
+ Object.defineProperty(exports, "FormComponent", { enumerable: true, get: function () { return FormComponent_1.FormComponent; } });
12
14
  var pattformHelper_1 = require("./pattformHelper");
13
15
  Object.defineProperty(exports, "getClientRoleArn", { enumerable: true, get: function () { return pattformHelper_1.getClientRoleArn; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pattform/api-kit",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Pulumi infra library for building and deploying an API",
5
5
  "author": "Pattform <contact@pattform.io>",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -10,7 +10,12 @@
10
10
  },
11
11
  "main": "dist/index.js",
12
12
  "types": "dist/index.d.ts",
13
- "files": ["dist", "LICENSE", "README.md", "package.json"],
13
+ "files": [
14
+ "dist",
15
+ "LICENSE",
16
+ "README.md",
17
+ "package.json"
18
+ ],
14
19
  "repository": {
15
20
  "type": "git",
16
21
  "url": "git+https://github.com/Pattform/pulumi-quickstart-library.git"