@keystrokehq/formsite 0.1.0 → 0.1.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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/get-form-items.cjs +4 -4
- package/dist/actions/get-form-items.cjs.map +1 -1
- package/dist/actions/get-form-items.d.cts +25 -3
- package/dist/actions/get-form-items.d.cts.map +1 -1
- package/dist/actions/get-form-items.d.mts +25 -3
- package/dist/actions/get-form-items.d.mts.map +1 -1
- package/dist/actions/get-form-items.mjs +4 -4
- package/dist/actions/get-form-items.mjs.map +1 -1
- package/dist/actions/get-form-results.cjs +12 -12
- package/dist/actions/get-form-results.cjs.map +1 -1
- package/dist/actions/get-form-results.d.cts +52 -3
- package/dist/actions/get-form-results.d.cts.map +1 -1
- package/dist/actions/get-form-results.d.mts +52 -3
- package/dist/actions/get-form-results.d.mts.map +1 -1
- package/dist/actions/get-form-results.mjs +12 -12
- package/dist/actions/get-form-results.mjs.map +1 -1
- package/dist/actions/get-form.cjs +10 -10
- package/dist/actions/get-form.cjs.map +1 -1
- package/dist/actions/get-form.d.cts +39 -3
- package/dist/actions/get-form.d.cts.map +1 -1
- package/dist/actions/get-form.d.mts +39 -3
- package/dist/actions/get-form.d.mts.map +1 -1
- package/dist/actions/get-form.mjs +10 -10
- package/dist/actions/get-form.mjs.map +1 -1
- package/dist/actions/get-webhooks.cjs +3 -3
- package/dist/actions/get-webhooks.cjs.map +1 -1
- package/dist/actions/get-webhooks.d.cts +21 -3
- package/dist/actions/get-webhooks.d.cts.map +1 -1
- package/dist/actions/get-webhooks.d.mts +21 -3
- package/dist/actions/get-webhooks.d.mts.map +1 -1
- package/dist/actions/get-webhooks.mjs +3 -3
- package/dist/actions/get-webhooks.mjs.map +1 -1
- package/dist/actions/list-all-forms.cjs +8 -8
- package/dist/actions/list-all-forms.cjs.map +1 -1
- package/dist/actions/list-all-forms.d.cts +37 -3
- package/dist/actions/list-all-forms.d.cts.map +1 -1
- package/dist/actions/list-all-forms.d.mts +37 -3
- package/dist/actions/list-all-forms.d.mts.map +1 -1
- package/dist/actions/list-all-forms.mjs +8 -8
- package/dist/actions/list-all-forms.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-form.d.ts
|
|
4
|
-
declare const FormsiteGetFormInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FormsiteGetFormInput: z.ZodObject<{
|
|
5
|
+
form_dir: z.ZodString;
|
|
6
|
+
user_dir: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const FormsiteGetFormOutput: z.ZodObject<{
|
|
9
|
+
forms: z.ZodArray<z.ZodObject<{
|
|
10
|
+
name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
state: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
stats: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
|
|
13
|
+
filesSize: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
14
|
+
resultsCount: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
15
|
+
}, z.core.$strip>>>;
|
|
16
|
+
publish: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
|
|
17
|
+
link: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
embed_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
directory: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const formsiteGetForm: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
form_dir: string;
|
|
26
|
+
user_dir?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
forms: {
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
state?: string | undefined;
|
|
31
|
+
stats?: {
|
|
32
|
+
filesSize?: number | undefined;
|
|
33
|
+
resultsCount?: number | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
publish?: {
|
|
36
|
+
link?: string | undefined;
|
|
37
|
+
embed_code?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
directory?: string | undefined;
|
|
40
|
+
description?: string | undefined;
|
|
41
|
+
}[];
|
|
42
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
43
|
//#endregion
|
|
8
44
|
export { formsiteGetForm };
|
|
9
45
|
//# sourceMappingURL=get-form.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-form.d.mts","names":[],"sources":["../../src/actions/get-form.ts"],"mappings":";;;cAIa,oBAAA,
|
|
1
|
+
{"version":3,"file":"get-form.d.mts","names":[],"sources":["../../src/actions/get-form.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAoBpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAIrB,eAAA,gCAAe,wBAAA"}
|
|
@@ -6,20 +6,20 @@ const FormsiteGetFormInput = z.object({
|
|
|
6
6
|
user_dir: z.string().describe("The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.").optional()
|
|
7
7
|
}).describe("Request model for getting form details.");
|
|
8
8
|
const FormsiteGetForm_FormStatsSchema = z.object({
|
|
9
|
-
filesSize: z.number().int().describe("The total size, in bytes, of any uploaded files the form is storing.").
|
|
10
|
-
resultsCount: z.number().int().describe("The number of results the form is storing.").
|
|
9
|
+
filesSize: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("The total size, in bytes, of any uploaded files the form is storing.").optional()),
|
|
10
|
+
resultsCount: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("The number of results the form is storing.").optional())
|
|
11
11
|
}).describe("Model for form statistics.");
|
|
12
12
|
const FormsiteGetForm_FormPublishSchema = z.object({
|
|
13
|
-
link: z.string().describe("The public URL link to access the form.").
|
|
14
|
-
embed_code: z.string().describe("The form's embeddable HTML/JavaScript code for embedding the form on websites.").
|
|
13
|
+
link: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The public URL link to access the form.").optional()),
|
|
14
|
+
embed_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The form's embeddable HTML/JavaScript code for embedding the form on websites.").optional())
|
|
15
15
|
}).describe("Model for form publishing information.");
|
|
16
16
|
const FormsiteGetForm_FormDetailsSchema = z.object({
|
|
17
|
-
name: z.string().describe("The form's name.").
|
|
18
|
-
state: z.string().describe("The form's status. Value is 'open' if the form is accepting responses, or begins with 'closed' followed by a reason if the form is not accepting responses.").
|
|
19
|
-
stats:
|
|
20
|
-
publish:
|
|
21
|
-
directory: z.string().describe("The form's URL directory.").
|
|
22
|
-
description: z.string().describe("The form's internal description.").
|
|
17
|
+
name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The form's name.").optional()),
|
|
18
|
+
state: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The form's status. Value is 'open' if the form is accepting responses, or begins with 'closed' followed by a reason if the form is not accepting responses.").optional()),
|
|
19
|
+
stats: z.preprocess((value) => value === null ? void 0 : value, FormsiteGetForm_FormStatsSchema.optional()),
|
|
20
|
+
publish: z.preprocess((value) => value === null ? void 0 : value, FormsiteGetForm_FormPublishSchema.optional()),
|
|
21
|
+
directory: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The form's URL directory.").optional()),
|
|
22
|
+
description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The form's internal description.").optional())
|
|
23
23
|
}).describe("Model for form details.");
|
|
24
24
|
const formsiteGetForm = action("FORMSITE_GET_FORM", {
|
|
25
25
|
slug: "formsite-get-form",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-form.mjs","names":[],"sources":["../../src/actions/get-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetFormInput
|
|
1
|
+
{"version":3,"file":"get-form.mjs","names":[],"sources":["../../src/actions/get-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetFormInput = z.object({\n form_dir: z.string().describe(\"The form's directory identifier (also called form ID). This can be found in your form's URL after '/forms/' (e.g., in 'https://fs8.formsite.com/abc123/forms/xyz789', the form_dir is 'xyz789').\"),\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n}).describe(\"Request model for getting form details.\");\nconst FormsiteGetForm_FormStatsSchema = z.object({\n filesSize: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"The total size, in bytes, of any uploaded files the form is storing.\").optional()),\n resultsCount: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"The number of results the form is storing.\").optional()),\n}).describe(\"Model for form statistics.\");\nconst FormsiteGetForm_FormPublishSchema = z.object({\n link: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The public URL link to access the form.\").optional()),\n embed_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The form's embeddable HTML/JavaScript code for embedding the form on websites.\").optional()),\n}).describe(\"Model for form publishing information.\");\nconst FormsiteGetForm_FormDetailsSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The form's name.\").optional()),\n state: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The form's status. Value is 'open' if the form is accepting responses, or begins with 'closed' followed by a reason if the form is not accepting responses.\").optional()),\n stats: z.preprocess((value) => (value === null ? undefined : value), FormsiteGetForm_FormStatsSchema.optional()),\n publish: z.preprocess((value) => (value === null ? undefined : value), FormsiteGetForm_FormPublishSchema.optional()),\n directory: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The form's URL directory.\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The form's internal description.\").optional()),\n}).describe(\"Model for form details.\");\nexport const FormsiteGetFormOutput = z.object({\n forms: z.array(FormsiteGetForm_FormDetailsSchema).describe(\"List containing the form details.\"),\n}).describe(\"Response model for getting form details.\");\n\nexport const formsiteGetForm = action(\"FORMSITE_GET_FORM\", {\n slug: \"formsite-get-form\",\n name: \"Get Form Details\",\n description: \"This tool retrieves detailed information about a specific form in Formsite. It provides comprehensive details including the form's internal description, directory identifier, name, publishing information (embed code and form link), current state (e.g., \\\"open\\\"), and statistics (file size and number of results). **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteGetFormInput,\n output: FormsiteGetFormOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM;CAChO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;AACrT,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,kCAAkC,EAAE,OAAO;CAC/C,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC;CACrL,cAAc,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC;AAChK,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC;CAC7I,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC;AAC5L,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC;CACtH,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS,CAAC;CAClQ,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,gCAAgC,SAAS,CAAC;CAC/G,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,kCAAkC,SAAS,CAAC;CACnH,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;CACpI,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC;AAC/I,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAKrC,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmC,EAAE,OAAO,EAC5C,OAAO,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,mCAAmC,EAChG,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
@@ -6,9 +6,9 @@ const FormsiteGetWebhooksInput = zod.z.object({
|
|
|
6
6
|
user_dir: zod.z.string().describe("The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.").optional()
|
|
7
7
|
}).describe("Request model for getting form webhooks.");
|
|
8
8
|
const FormsiteGetWebhooks_WebhookConfigSchema = zod.z.object({
|
|
9
|
-
url: zod.z.string().describe("The URL where webhook notifications are sent"),
|
|
10
|
-
event: zod.z.string().describe("The event type that triggers the webhook (e.g., 'result_completed')"),
|
|
11
|
-
handshake_key: zod.z.string().describe("Optional handshake key for webhook security validation").
|
|
9
|
+
url: zod.z.string().describe("The URL where webhook notifications are sent").nullable(),
|
|
10
|
+
event: zod.z.string().describe("The event type that triggers the webhook (e.g., 'result_completed')").nullable(),
|
|
11
|
+
handshake_key: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Optional handshake key for webhook security validation").optional())
|
|
12
12
|
}).describe("Model for a webhook configuration.");
|
|
13
13
|
const FormsiteGetWebhooksOutput = zod.z.object({ webhooks: zod.z.array(FormsiteGetWebhooks_WebhookConfigSchema).describe("List of webhook configurations") }).describe("Response model for getting form webhooks.");
|
|
14
14
|
const formsiteGetWebhooks = require_action.action("FORMSITE_GET_WEBHOOKS", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/get-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetWebhooksInput
|
|
1
|
+
{"version":3,"file":"get-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/get-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetWebhooksInput = z.object({\n form_id: z.string().describe(\"The form directory/ID to fetch webhooks from\"),\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n}).describe(\"Request model for getting form webhooks.\");\nconst FormsiteGetWebhooks_WebhookConfigSchema = z.object({\n url: z.string().describe(\"The URL where webhook notifications are sent\").nullable(),\n event: z.string().describe(\"The event type that triggers the webhook (e.g., 'result_completed')\").nullable(),\n handshake_key: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Optional handshake key for webhook security validation\").optional()),\n}).describe(\"Model for a webhook configuration.\");\nexport const FormsiteGetWebhooksOutput = z.object({\n webhooks: z.array(FormsiteGetWebhooks_WebhookConfigSchema).describe(\"List of webhook configurations\"),\n}).describe(\"Response model for getting form webhooks.\");\n\nexport const formsiteGetWebhooks = action(\"FORMSITE_GET_WEBHOOKS\", {\n slug: \"formsite-get-webhooks\",\n name: \"Get Form Webhooks\",\n description: \"Retrieves all webhooks configured for a specific form in FormSite. This action returns webhook configurations including URL, event type (e.g., 'result_completed'), and optional handshake_key for security. Webhooks notify external URLs when form events occur. **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteGetWebhooksInput,\n output: FormsiteGetWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;AACrT,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC;AACvK,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,UAAUA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,gCAAgC,EACtG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-webhooks.d.ts
|
|
4
|
-
declare const FormsiteGetWebhooksInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FormsiteGetWebhooksInput: z.ZodObject<{
|
|
5
|
+
form_id: z.ZodString;
|
|
6
|
+
user_dir: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const FormsiteGetWebhooksOutput: z.ZodObject<{
|
|
9
|
+
webhooks: z.ZodArray<z.ZodObject<{
|
|
10
|
+
url: z.ZodNullable<z.ZodString>;
|
|
11
|
+
event: z.ZodNullable<z.ZodString>;
|
|
12
|
+
handshake_key: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const formsiteGetWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
form_id: string;
|
|
17
|
+
user_dir?: string | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
webhooks: {
|
|
20
|
+
url: string | null;
|
|
21
|
+
event: string | null;
|
|
22
|
+
handshake_key?: string | undefined;
|
|
23
|
+
}[];
|
|
24
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { formsiteGetWebhooks };
|
|
9
27
|
//# sourceMappingURL=get-webhooks.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-webhooks.d.cts","names":[],"sources":["../../src/actions/get-webhooks.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-webhooks.d.cts","names":[],"sources":["../../src/actions/get-webhooks.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-webhooks.d.ts
|
|
4
|
-
declare const FormsiteGetWebhooksInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FormsiteGetWebhooksInput: z.ZodObject<{
|
|
5
|
+
form_id: z.ZodString;
|
|
6
|
+
user_dir: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const FormsiteGetWebhooksOutput: z.ZodObject<{
|
|
9
|
+
webhooks: z.ZodArray<z.ZodObject<{
|
|
10
|
+
url: z.ZodNullable<z.ZodString>;
|
|
11
|
+
event: z.ZodNullable<z.ZodString>;
|
|
12
|
+
handshake_key: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const formsiteGetWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
form_id: string;
|
|
17
|
+
user_dir?: string | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
webhooks: {
|
|
20
|
+
url: string | null;
|
|
21
|
+
event: string | null;
|
|
22
|
+
handshake_key?: string | undefined;
|
|
23
|
+
}[];
|
|
24
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { formsiteGetWebhooks };
|
|
9
27
|
//# sourceMappingURL=get-webhooks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-webhooks.d.mts","names":[],"sources":["../../src/actions/get-webhooks.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-webhooks.d.mts","names":[],"sources":["../../src/actions/get-webhooks.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -6,9 +6,9 @@ const FormsiteGetWebhooksInput = z.object({
|
|
|
6
6
|
user_dir: z.string().describe("The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.").optional()
|
|
7
7
|
}).describe("Request model for getting form webhooks.");
|
|
8
8
|
const FormsiteGetWebhooks_WebhookConfigSchema = z.object({
|
|
9
|
-
url: z.string().describe("The URL where webhook notifications are sent"),
|
|
10
|
-
event: z.string().describe("The event type that triggers the webhook (e.g., 'result_completed')"),
|
|
11
|
-
handshake_key: z.string().describe("Optional handshake key for webhook security validation").
|
|
9
|
+
url: z.string().describe("The URL where webhook notifications are sent").nullable(),
|
|
10
|
+
event: z.string().describe("The event type that triggers the webhook (e.g., 'result_completed')").nullable(),
|
|
11
|
+
handshake_key: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Optional handshake key for webhook security validation").optional())
|
|
12
12
|
}).describe("Model for a webhook configuration.");
|
|
13
13
|
const formsiteGetWebhooks = action("FORMSITE_GET_WEBHOOKS", {
|
|
14
14
|
slug: "formsite-get-webhooks",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-webhooks.mjs","names":[],"sources":["../../src/actions/get-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetWebhooksInput
|
|
1
|
+
{"version":3,"file":"get-webhooks.mjs","names":[],"sources":["../../src/actions/get-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetWebhooksInput = z.object({\n form_id: z.string().describe(\"The form directory/ID to fetch webhooks from\"),\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n}).describe(\"Request model for getting form webhooks.\");\nconst FormsiteGetWebhooks_WebhookConfigSchema = z.object({\n url: z.string().describe(\"The URL where webhook notifications are sent\").nullable(),\n event: z.string().describe(\"The event type that triggers the webhook (e.g., 'result_completed')\").nullable(),\n handshake_key: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Optional handshake key for webhook security validation\").optional()),\n}).describe(\"Model for a webhook configuration.\");\nexport const FormsiteGetWebhooksOutput = z.object({\n webhooks: z.array(FormsiteGetWebhooks_WebhookConfigSchema).describe(\"List of webhook configurations\"),\n}).describe(\"Response model for getting form webhooks.\");\n\nexport const formsiteGetWebhooks = action(\"FORMSITE_GET_WEBHOOKS\", {\n slug: \"formsite-get-webhooks\",\n name: \"Get Form Webhooks\",\n description: \"Retrieves all webhooks configured for a specific form in FormSite. This action returns webhook configurations including URL, event type (e.g., 'result_completed'), and optional handshake_key for security. Webhooks notify external URLs when form events occur. **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteGetWebhooksInput,\n output: FormsiteGetWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;AACrT,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,0CAA0C,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,eAAe,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC;AACvK,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAKhD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,UAAU,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,gCAAgC,EACtG,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -3,20 +3,20 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-all-forms.ts
|
|
4
4
|
const FormsiteListAllFormsInput = zod.z.object({ user_dir: zod.z.string().describe("The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.").optional() }).describe("Request model for List All Forms action.");
|
|
5
5
|
const FormsiteListAllForms_FormStatsSchema = zod.z.object({
|
|
6
|
-
filesSize: zod.z.number().int().describe("The total size, in bytes, of any uploaded files the form is storing."),
|
|
7
|
-
resultsCount: zod.z.number().int().describe("The number of results the form is storing.")
|
|
6
|
+
filesSize: zod.z.number().int().describe("The total size, in bytes, of any uploaded files the form is storing.").nullable(),
|
|
7
|
+
resultsCount: zod.z.number().int().describe("The number of results the form is storing.").nullable()
|
|
8
8
|
}).describe("Model for form statistics.");
|
|
9
9
|
const FormsiteListAllForms_FormPublishSchema = zod.z.object({
|
|
10
|
-
link: zod.z.string().describe("The form's share link."),
|
|
11
|
-
embed_code: zod.z.string().describe("The form's share embed code.")
|
|
10
|
+
link: zod.z.string().describe("The form's share link.").nullable(),
|
|
11
|
+
embed_code: zod.z.string().describe("The form's share embed code.").nullable()
|
|
12
12
|
}).describe("Model for form publish information.");
|
|
13
13
|
const FormsiteListAllForms_FormInfoSchema = zod.z.object({
|
|
14
|
-
name: zod.z.string().describe("The form's name."),
|
|
15
|
-
state: zod.z.string().describe("The form's open/close state. If open, value is 'open'. If closed, begins with 'closed' followed by reason."),
|
|
14
|
+
name: zod.z.string().describe("The form's name.").nullable(),
|
|
15
|
+
state: zod.z.string().describe("The form's open/close state. If open, value is 'open'. If closed, begins with 'closed' followed by reason.").nullable(),
|
|
16
16
|
stats: FormsiteListAllForms_FormStatsSchema.nullable(),
|
|
17
17
|
publish: FormsiteListAllForms_FormPublishSchema.nullable(),
|
|
18
|
-
directory: zod.z.string().describe("The form's URL directory."),
|
|
19
|
-
description: zod.z.string().describe("Optional. The form's description, if set on form's Settings -> General page.").
|
|
18
|
+
directory: zod.z.string().describe("The form's URL directory.").nullable(),
|
|
19
|
+
description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Optional. The form's description, if set on form's Settings -> General page.").optional())
|
|
20
20
|
}).describe("Model for individual form information.");
|
|
21
21
|
const FormsiteListAllFormsOutput = zod.z.object({ forms: zod.z.array(FormsiteListAllForms_FormInfoSchema).describe("List of forms with their details.") }).describe("Response model for List All Forms action.");
|
|
22
22
|
const formsiteListAllForms = require_action.action("FORMSITE_LIST_ALL_FORMS", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-all-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteListAllFormsInput
|
|
1
|
+
{"version":3,"file":"list-all-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-all-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteListAllFormsInput = z.object({\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n}).describe(\"Request model for List All Forms action.\");\nconst FormsiteListAllForms_FormStatsSchema = z.object({\n filesSize: z.number().int().describe(\"The total size, in bytes, of any uploaded files the form is storing.\").nullable(),\n resultsCount: z.number().int().describe(\"The number of results the form is storing.\").nullable(),\n}).describe(\"Model for form statistics.\");\nconst FormsiteListAllForms_FormPublishSchema = z.object({\n link: z.string().describe(\"The form's share link.\").nullable(),\n embed_code: z.string().describe(\"The form's share embed code.\").nullable(),\n}).describe(\"Model for form publish information.\");\nconst FormsiteListAllForms_FormInfoSchema = z.object({\n name: z.string().describe(\"The form's name.\").nullable(),\n state: z.string().describe(\"The form's open/close state. If open, value is 'open'. If closed, begins with 'closed' followed by reason.\").nullable(),\n stats: FormsiteListAllForms_FormStatsSchema.nullable(),\n publish: FormsiteListAllForms_FormPublishSchema.nullable(),\n directory: z.string().describe(\"The form's URL directory.\").nullable(),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Optional. The form's description, if set on form's Settings -> General page.\").optional()),\n}).describe(\"Model for individual form information.\");\nexport const FormsiteListAllFormsOutput = z.object({\n forms: z.array(FormsiteListAllForms_FormInfoSchema).describe(\"List of forms with their details.\"),\n}).describe(\"Response model for List All Forms action.\");\n\nexport const formsiteListAllForms = action(\"FORMSITE_LIST_ALL_FORMS\", {\n slug: \"formsite-list-all-forms\",\n name: \"List All Forms\",\n description: \"Retrieves a list of all forms in the user's Formsite account. This action returns detailed information about each form including: - Form directory (identifier for accessing the form via API) - Form name (the display name of the form) - Description (optional internal description) - Publish information (embed code and public link) - State (open/closed status) - Statistics (file storage size and results count) The form directory returned by this action can be used with other Formsite actions like Get Form Details, Get Form Items, and Get Form Results. **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteListAllFormsInput,\n output: FormsiteListAllFormsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS,EACrT,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAClJ,OAAO,qCAAqC,SAAS;CACrD,SAAS,uCAAuC,SAAS;CACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACrE,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC;AAC3L,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,OAAOA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EAClG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-all-forms.d.ts
|
|
4
|
-
declare const FormsiteListAllFormsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FormsiteListAllFormsInput: z.ZodObject<{
|
|
5
|
+
user_dir: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const FormsiteListAllFormsOutput: z.ZodObject<{
|
|
8
|
+
forms: z.ZodArray<z.ZodObject<{
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
state: z.ZodNullable<z.ZodString>;
|
|
11
|
+
stats: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
filesSize: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
resultsCount: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
publish: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
link: z.ZodNullable<z.ZodString>;
|
|
17
|
+
embed_code: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
directory: z.ZodNullable<z.ZodString>;
|
|
20
|
+
description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
declare const formsiteListAllForms: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
user_dir?: string | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
forms: {
|
|
27
|
+
name: string | null;
|
|
28
|
+
state: string | null;
|
|
29
|
+
stats: {
|
|
30
|
+
filesSize: number | null;
|
|
31
|
+
resultsCount: number | null;
|
|
32
|
+
} | null;
|
|
33
|
+
publish: {
|
|
34
|
+
link: string | null;
|
|
35
|
+
embed_code: string | null;
|
|
36
|
+
} | null;
|
|
37
|
+
directory: string | null;
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
}[];
|
|
40
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
41
|
//#endregion
|
|
8
42
|
export { formsiteListAllForms };
|
|
9
43
|
//# sourceMappingURL=list-all-forms.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-forms.d.cts","names":[],"sources":["../../src/actions/list-all-forms.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"list-all-forms.d.cts","names":[],"sources":["../../src/actions/list-all-forms.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAmBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-all-forms.d.ts
|
|
4
|
-
declare const FormsiteListAllFormsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FormsiteListAllFormsInput: z.ZodObject<{
|
|
5
|
+
user_dir: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const FormsiteListAllFormsOutput: z.ZodObject<{
|
|
8
|
+
forms: z.ZodArray<z.ZodObject<{
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
state: z.ZodNullable<z.ZodString>;
|
|
11
|
+
stats: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
filesSize: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
resultsCount: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
publish: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
link: z.ZodNullable<z.ZodString>;
|
|
17
|
+
embed_code: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
directory: z.ZodNullable<z.ZodString>;
|
|
20
|
+
description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
declare const formsiteListAllForms: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
user_dir?: string | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
forms: {
|
|
27
|
+
name: string | null;
|
|
28
|
+
state: string | null;
|
|
29
|
+
stats: {
|
|
30
|
+
filesSize: number | null;
|
|
31
|
+
resultsCount: number | null;
|
|
32
|
+
} | null;
|
|
33
|
+
publish: {
|
|
34
|
+
link: string | null;
|
|
35
|
+
embed_code: string | null;
|
|
36
|
+
} | null;
|
|
37
|
+
directory: string | null;
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
}[];
|
|
40
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
41
|
//#endregion
|
|
8
42
|
export { formsiteListAllForms };
|
|
9
43
|
//# sourceMappingURL=list-all-forms.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-forms.d.mts","names":[],"sources":["../../src/actions/list-all-forms.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"list-all-forms.d.mts","names":[],"sources":["../../src/actions/list-all-forms.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAmBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -3,20 +3,20 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/list-all-forms.ts
|
|
4
4
|
const FormsiteListAllFormsInput = z.object({ user_dir: z.string().describe("The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.").optional() }).describe("Request model for List All Forms action.");
|
|
5
5
|
const FormsiteListAllForms_FormStatsSchema = z.object({
|
|
6
|
-
filesSize: z.number().int().describe("The total size, in bytes, of any uploaded files the form is storing."),
|
|
7
|
-
resultsCount: z.number().int().describe("The number of results the form is storing.")
|
|
6
|
+
filesSize: z.number().int().describe("The total size, in bytes, of any uploaded files the form is storing.").nullable(),
|
|
7
|
+
resultsCount: z.number().int().describe("The number of results the form is storing.").nullable()
|
|
8
8
|
}).describe("Model for form statistics.");
|
|
9
9
|
const FormsiteListAllForms_FormPublishSchema = z.object({
|
|
10
|
-
link: z.string().describe("The form's share link."),
|
|
11
|
-
embed_code: z.string().describe("The form's share embed code.")
|
|
10
|
+
link: z.string().describe("The form's share link.").nullable(),
|
|
11
|
+
embed_code: z.string().describe("The form's share embed code.").nullable()
|
|
12
12
|
}).describe("Model for form publish information.");
|
|
13
13
|
const FormsiteListAllForms_FormInfoSchema = z.object({
|
|
14
|
-
name: z.string().describe("The form's name."),
|
|
15
|
-
state: z.string().describe("The form's open/close state. If open, value is 'open'. If closed, begins with 'closed' followed by reason."),
|
|
14
|
+
name: z.string().describe("The form's name.").nullable(),
|
|
15
|
+
state: z.string().describe("The form's open/close state. If open, value is 'open'. If closed, begins with 'closed' followed by reason.").nullable(),
|
|
16
16
|
stats: FormsiteListAllForms_FormStatsSchema.nullable(),
|
|
17
17
|
publish: FormsiteListAllForms_FormPublishSchema.nullable(),
|
|
18
|
-
directory: z.string().describe("The form's URL directory."),
|
|
19
|
-
description: z.string().describe("Optional. The form's description, if set on form's Settings -> General page.").
|
|
18
|
+
directory: z.string().describe("The form's URL directory.").nullable(),
|
|
19
|
+
description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Optional. The form's description, if set on form's Settings -> General page.").optional())
|
|
20
20
|
}).describe("Model for individual form information.");
|
|
21
21
|
const formsiteListAllForms = action("FORMSITE_LIST_ALL_FORMS", {
|
|
22
22
|
slug: "formsite-list-all-forms",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-forms.mjs","names":[],"sources":["../../src/actions/list-all-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteListAllFormsInput
|
|
1
|
+
{"version":3,"file":"list-all-forms.mjs","names":[],"sources":["../../src/actions/list-all-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteListAllFormsInput = z.object({\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n}).describe(\"Request model for List All Forms action.\");\nconst FormsiteListAllForms_FormStatsSchema = z.object({\n filesSize: z.number().int().describe(\"The total size, in bytes, of any uploaded files the form is storing.\").nullable(),\n resultsCount: z.number().int().describe(\"The number of results the form is storing.\").nullable(),\n}).describe(\"Model for form statistics.\");\nconst FormsiteListAllForms_FormPublishSchema = z.object({\n link: z.string().describe(\"The form's share link.\").nullable(),\n embed_code: z.string().describe(\"The form's share embed code.\").nullable(),\n}).describe(\"Model for form publish information.\");\nconst FormsiteListAllForms_FormInfoSchema = z.object({\n name: z.string().describe(\"The form's name.\").nullable(),\n state: z.string().describe(\"The form's open/close state. If open, value is 'open'. If closed, begins with 'closed' followed by reason.\").nullable(),\n stats: FormsiteListAllForms_FormStatsSchema.nullable(),\n publish: FormsiteListAllForms_FormPublishSchema.nullable(),\n directory: z.string().describe(\"The form's URL directory.\").nullable(),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Optional. The form's description, if set on form's Settings -> General page.\").optional()),\n}).describe(\"Model for individual form information.\");\nexport const FormsiteListAllFormsOutput = z.object({\n forms: z.array(FormsiteListAllForms_FormInfoSchema).describe(\"List of forms with their details.\"),\n}).describe(\"Response model for List All Forms action.\");\n\nexport const formsiteListAllForms = action(\"FORMSITE_LIST_ALL_FORMS\", {\n slug: \"formsite-list-all-forms\",\n name: \"List All Forms\",\n description: \"Retrieves a list of all forms in the user's Formsite account. This action returns detailed information about each form including: - Form directory (identifier for accessing the form via API) - Form name (the display name of the form) - Description (optional internal description) - Publish information (embed code and public link) - State (open/closed status) - Statistics (file storage size and results count) The form directory returned by this action can be used with other Formsite actions like Get Form Details, Get Form Items, and Get Form Results. **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteListAllFormsInput,\n output: FormsiteListAllFormsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,EAChD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS,EACrT,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,uCAAuC,EAAE,OAAO;CACpD,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtH,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAClJ,OAAO,qCAAqC,SAAS;CACrD,SAAS,uCAAuC,SAAS;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACrE,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC;AAC3L,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAKpD,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,OAAO,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EAClG,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,19 @@ const formsiteCatalog = {
|
|
|
7
7
|
"category": "Forms & Surveys",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/formsite",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": {
|
|
12
|
+
"full": {
|
|
13
|
+
"label": "Formsite API Base URL",
|
|
14
|
+
"description": "Your Formsite API base URL. Example: https://fs8.formsite.com/api/v2/YOUR_USER_ID"
|
|
15
|
+
},
|
|
16
|
+
"api_key": {
|
|
17
|
+
"label": "API Key",
|
|
18
|
+
"secret": true,
|
|
19
|
+
"description": "The API key generated from your Formsite account."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"credentialScheme": "API_KEY"
|
|
11
23
|
};
|
|
12
24
|
//#endregion
|
|
13
25
|
exports.formsiteCatalog = formsiteCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const formsiteCatalog = {\n \"slug\": \"formsite\",\n \"name\": \"Formsite\",\n \"description\": \"Formsite helps users create online forms and surveys with drag-and-drop tools, secure data capture, and integrations to simplify workflows\",\n \"category\": \"Forms & Surveys\",\n \"logo\": \"https://logos.composio.dev/api/formsite\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const formsiteCatalog = {\n \"slug\": \"formsite\",\n \"name\": \"Formsite\",\n \"description\": \"Formsite helps users create online forms and surveys with drag-and-drop tools, secure data capture, and integrations to simplify workflows\",\n \"category\": \"Forms & Surveys\",\n \"logo\": \"https://logos.composio.dev/api/formsite\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"full\": {\n \"label\": \"Formsite API Base URL\",\n \"description\": \"Your Formsite API base URL. Example: https://fs8.formsite.com/api/v2/YOUR_USER_ID\"\n },\n \"api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"The API key generated from your Formsite account.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,QAAQ;GACN,SAAS;GACT,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,18 @@ declare const formsiteCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/formsite";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly full: {
|
|
13
|
+
readonly label: "Formsite API Base URL";
|
|
14
|
+
readonly description: "Your Formsite API base URL. Example: https://fs8.formsite.com/api/v2/YOUR_USER_ID";
|
|
15
|
+
};
|
|
16
|
+
readonly api_key: {
|
|
17
|
+
readonly label: "API Key";
|
|
18
|
+
readonly secret: true;
|
|
19
|
+
readonly description: "The API key generated from your Formsite account.";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly credentialScheme: "API_KEY";
|
|
11
23
|
};
|
|
12
24
|
//#endregion
|
|
13
25
|
export { formsiteCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,18 @@ declare const formsiteCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/formsite";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly full: {
|
|
13
|
+
readonly label: "Formsite API Base URL";
|
|
14
|
+
readonly description: "Your Formsite API base URL. Example: https://fs8.formsite.com/api/v2/YOUR_USER_ID";
|
|
15
|
+
};
|
|
16
|
+
readonly api_key: {
|
|
17
|
+
readonly label: "API Key";
|
|
18
|
+
readonly secret: true;
|
|
19
|
+
readonly description: "The API key generated from your Formsite account.";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly credentialScheme: "API_KEY";
|
|
11
23
|
};
|
|
12
24
|
//#endregion
|
|
13
25
|
export { formsiteCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,19 @@ const formsiteCatalog = {
|
|
|
7
7
|
"category": "Forms & Surveys",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/formsite",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": {
|
|
12
|
+
"full": {
|
|
13
|
+
"label": "Formsite API Base URL",
|
|
14
|
+
"description": "Your Formsite API base URL. Example: https://fs8.formsite.com/api/v2/YOUR_USER_ID"
|
|
15
|
+
},
|
|
16
|
+
"api_key": {
|
|
17
|
+
"label": "API Key",
|
|
18
|
+
"secret": true,
|
|
19
|
+
"description": "The API key generated from your Formsite account."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"credentialScheme": "API_KEY"
|
|
11
23
|
};
|
|
12
24
|
//#endregion
|
|
13
25
|
export { formsiteCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const formsiteCatalog = {\n \"slug\": \"formsite\",\n \"name\": \"Formsite\",\n \"description\": \"Formsite helps users create online forms and surveys with drag-and-drop tools, secure data capture, and integrations to simplify workflows\",\n \"category\": \"Forms & Surveys\",\n \"logo\": \"https://logos.composio.dev/api/formsite\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const formsiteCatalog = {\n \"slug\": \"formsite\",\n \"name\": \"Formsite\",\n \"description\": \"Formsite helps users create online forms and surveys with drag-and-drop tools, secure data capture, and integrations to simplify workflows\",\n \"category\": \"Forms & Surveys\",\n \"logo\": \"https://logos.composio.dev/api/formsite\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"full\": {\n \"label\": \"Formsite API Base URL\",\n \"description\": \"Your Formsite API base URL. Example: https://fs8.formsite.com/api/v2/YOUR_USER_ID\"\n },\n \"api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"The API key generated from your Formsite account.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,QAAQ;GACN,SAAS;GACT,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/formsite",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|