@keystrokehq/folk 0.1.1 → 0.1.2
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/create-company.cjs +7 -7
- package/dist/actions/create-company.cjs.map +1 -1
- package/dist/actions/create-company.d.cts +8 -35
- package/dist/actions/create-company.d.cts.map +1 -1
- package/dist/actions/create-company.d.mts +8 -35
- package/dist/actions/create-company.d.mts.map +1 -1
- package/dist/actions/create-company.mjs +7 -7
- package/dist/actions/create-company.mjs.map +1 -1
- package/dist/actions/create-note.cjs +6 -6
- package/dist/actions/create-note.cjs.map +1 -1
- package/dist/actions/create-note.d.cts +7 -30
- package/dist/actions/create-note.d.mts +7 -30
- package/dist/actions/create-note.mjs +6 -6
- package/dist/actions/create-note.mjs.map +1 -1
- package/dist/actions/create-person.cjs +21 -21
- package/dist/actions/create-person.cjs.map +1 -1
- package/dist/actions/create-person.d.cts +24 -70
- package/dist/actions/create-person.d.cts.map +1 -1
- package/dist/actions/create-person.d.mts +24 -70
- package/dist/actions/create-person.d.mts.map +1 -1
- package/dist/actions/create-person.mjs +21 -21
- package/dist/actions/create-person.mjs.map +1 -1
- package/dist/actions/delete-company.cjs +1 -1
- package/dist/actions/delete-company.cjs.map +1 -1
- package/dist/actions/delete-company.d.cts +2 -7
- package/dist/actions/delete-company.d.mts +2 -7
- package/dist/actions/delete-company.mjs +1 -1
- package/dist/actions/delete-company.mjs.map +1 -1
- package/dist/actions/delete-note.cjs +1 -1
- package/dist/actions/delete-note.cjs.map +1 -1
- package/dist/actions/delete-note.d.cts +2 -7
- package/dist/actions/delete-note.d.mts +2 -7
- package/dist/actions/delete-note.mjs +1 -1
- package/dist/actions/delete-note.mjs.map +1 -1
- package/dist/actions/delete-person.cjs +1 -1
- package/dist/actions/delete-person.cjs.map +1 -1
- package/dist/actions/delete-person.d.cts +2 -7
- package/dist/actions/delete-person.d.mts +2 -7
- package/dist/actions/delete-person.mjs +1 -1
- package/dist/actions/delete-person.mjs.map +1 -1
- package/dist/actions/delete-reminder.cjs +1 -1
- package/dist/actions/delete-reminder.cjs.map +1 -1
- package/dist/actions/delete-reminder.d.cts +2 -7
- package/dist/actions/delete-reminder.d.mts +2 -7
- package/dist/actions/delete-reminder.mjs +1 -1
- package/dist/actions/delete-reminder.mjs.map +1 -1
- package/dist/actions/get-company.cjs +1 -1
- package/dist/actions/get-company.cjs.map +1 -1
- package/dist/actions/get-company.d.cts +2 -17
- package/dist/actions/get-company.d.cts.map +1 -1
- package/dist/actions/get-company.d.mts +2 -17
- package/dist/actions/get-company.d.mts.map +1 -1
- package/dist/actions/get-company.mjs +1 -1
- package/dist/actions/get-company.mjs.map +1 -1
- package/dist/actions/get-current-workspace-user.d.cts +1 -7
- package/dist/actions/get-current-workspace-user.d.cts.map +1 -1
- package/dist/actions/get-current-workspace-user.d.mts +1 -7
- package/dist/actions/get-current-workspace-user.d.mts.map +1 -1
- package/dist/actions/get-note.cjs +11 -11
- package/dist/actions/get-note.cjs.map +1 -1
- package/dist/actions/get-note.d.cts +11 -65
- package/dist/actions/get-note.d.cts.map +1 -1
- package/dist/actions/get-note.d.mts +11 -65
- package/dist/actions/get-note.d.mts.map +1 -1
- package/dist/actions/get-note.mjs +11 -11
- package/dist/actions/get-note.mjs.map +1 -1
- package/dist/actions/get-person.cjs +17 -17
- package/dist/actions/get-person.cjs.map +1 -1
- package/dist/actions/get-person.d.cts +18 -47
- package/dist/actions/get-person.d.mts +18 -47
- package/dist/actions/get-person.mjs +17 -17
- package/dist/actions/get-person.mjs.map +1 -1
- package/dist/actions/get-user.cjs +1 -1
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +2 -9
- package/dist/actions/get-user.d.mts +2 -9
- package/dist/actions/get-user.mjs +1 -1
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/list-companies.cjs +8 -8
- package/dist/actions/list-companies.cjs.map +1 -1
- package/dist/actions/list-companies.d.cts +9 -41
- package/dist/actions/list-companies.d.cts.map +1 -1
- package/dist/actions/list-companies.d.mts +9 -41
- package/dist/actions/list-companies.d.mts.map +1 -1
- package/dist/actions/list-companies.mjs +8 -8
- package/dist/actions/list-companies.mjs.map +1 -1
- package/dist/actions/list-group-custom-fields.cjs +5 -5
- package/dist/actions/list-group-custom-fields.cjs.map +1 -1
- package/dist/actions/list-group-custom-fields.d.cts +6 -25
- package/dist/actions/list-group-custom-fields.d.mts +6 -25
- package/dist/actions/list-group-custom-fields.mjs +5 -5
- package/dist/actions/list-group-custom-fields.mjs.map +1 -1
- package/dist/actions/list-groups.cjs +3 -3
- package/dist/actions/list-groups.cjs.map +1 -1
- package/dist/actions/list-groups.d.cts +4 -15
- package/dist/actions/list-groups.d.mts +4 -15
- package/dist/actions/list-groups.mjs +3 -3
- package/dist/actions/list-groups.mjs.map +1 -1
- package/dist/actions/list-notes.cjs +5 -5
- package/dist/actions/list-notes.cjs.map +1 -1
- package/dist/actions/list-notes.d.cts +6 -42
- package/dist/actions/list-notes.d.mts +6 -42
- package/dist/actions/list-notes.mjs +5 -5
- package/dist/actions/list-notes.mjs.map +1 -1
- package/dist/actions/list-people.cjs +14 -14
- package/dist/actions/list-people.cjs.map +1 -1
- package/dist/actions/list-people.d.cts +15 -55
- package/dist/actions/list-people.d.cts.map +1 -1
- package/dist/actions/list-people.d.mts +15 -55
- package/dist/actions/list-people.d.mts.map +1 -1
- package/dist/actions/list-people.mjs +14 -14
- package/dist/actions/list-people.mjs.map +1 -1
- package/dist/actions/list-reminders.cjs +6 -6
- package/dist/actions/list-reminders.cjs.map +1 -1
- package/dist/actions/list-reminders.d.cts +7 -38
- package/dist/actions/list-reminders.d.mts +7 -38
- package/dist/actions/list-reminders.mjs +6 -6
- package/dist/actions/list-reminders.mjs.map +1 -1
- package/dist/actions/list-users.cjs +2 -2
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +3 -15
- package/dist/actions/list-users.d.mts +3 -15
- package/dist/actions/list-users.mjs +2 -2
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +7 -7
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +8 -32
- package/dist/actions/list-webhooks.d.mts +8 -32
- package/dist/actions/list-webhooks.mjs +7 -7
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/update-company.cjs +2 -2
- package/dist/actions/update-company.cjs.map +1 -1
- package/dist/actions/update-company.d.cts +3 -19
- package/dist/actions/update-company.d.cts.map +1 -1
- package/dist/actions/update-company.d.mts +3 -19
- package/dist/actions/update-company.d.mts.map +1 -1
- package/dist/actions/update-company.mjs +2 -2
- package/dist/actions/update-company.mjs.map +1 -1
- package/dist/actions/update-note.cjs +9 -9
- package/dist/actions/update-note.cjs.map +1 -1
- package/dist/actions/update-note.d.cts +10 -31
- package/dist/actions/update-note.d.mts +10 -31
- package/dist/actions/update-note.mjs +9 -9
- package/dist/actions/update-note.mjs.map +1 -1
- package/dist/actions/update-person.cjs +18 -18
- package/dist/actions/update-person.cjs.map +1 -1
- package/dist/actions/update-person.d.cts +19 -51
- package/dist/actions/update-person.d.cts.map +1 -1
- package/dist/actions/update-person.d.mts +19 -51
- package/dist/actions/update-person.d.mts.map +1 -1
- package/dist/actions/update-person.mjs +18 -18
- package/dist/actions/update-person.mjs.map +1 -1
- package/package.json +1 -1
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["folk","executeFolkTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { folk } from \"./app\";\nimport { executeFolkTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["folk","executeFolkTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { folk } from \"./app\";\nimport { executeFolkTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return folk.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeFolkTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,KAAK,OAAO;EACjB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,gBAAgB,MAAM,KAAgC,CAAC;EACvF;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { folk } from \"./app\";\nimport { executeFolkTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { folk } from \"./app\";\nimport { executeFolkTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return folk.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeFolkTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,KAAK,OAAO;EACjB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,gBAAgB,MAAM,KAAgC,CAAC;EACvF;CACF,CAAC;AACH"}
|
|
@@ -32,20 +32,20 @@ const FolkCreateCompany_CreateCompanyResponseDataSchema = zod.z.object({
|
|
|
32
32
|
emails: zod.z.array(zod.z.string()).describe("Email addresses associated with the company."),
|
|
33
33
|
groups: zod.z.array(FolkCreateCompany_GroupLinkResponseSchema).describe("Groups the company belongs to with ID and name."),
|
|
34
34
|
phones: zod.z.array(zod.z.string()).describe("Phone numbers associated with the company."),
|
|
35
|
-
industry: zod.z.
|
|
35
|
+
industry: zod.z.string().describe("Industry sector of the company.").nullable().optional(),
|
|
36
36
|
addresses: zod.z.array(zod.z.string()).describe("Addresses associated with the company."),
|
|
37
37
|
createdAt: zod.z.string().describe("Timestamp when the company was created.").nullable(),
|
|
38
38
|
createdBy: FolkCreateCompany_CreatedBySchema.nullable(),
|
|
39
|
-
description: zod.z.
|
|
40
|
-
employeeRange: zod.z.
|
|
41
|
-
fundingRaised: zod.z.
|
|
42
|
-
foundationYear: zod.z.
|
|
43
|
-
lastFundingDate: zod.z.
|
|
39
|
+
description: zod.z.string().describe("Description of the created company.").nullable().optional(),
|
|
40
|
+
employeeRange: zod.z.string().describe("Employee count range for the company.").nullable().optional(),
|
|
41
|
+
fundingRaised: zod.z.string().describe("Amount of funding raised by the company (returned as string).").nullable().optional(),
|
|
42
|
+
foundationYear: zod.z.string().describe("Year the company was founded.").nullable().optional(),
|
|
43
|
+
lastFundingDate: zod.z.string().describe("Date of the last funding round.").nullable().optional(),
|
|
44
44
|
customFieldValues: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field values for the company grouped by group ID.")
|
|
45
45
|
}).describe("Data returned after a successful company creation.");
|
|
46
46
|
const FolkCreateCompanyOutput = zod.z.object({
|
|
47
47
|
data: FolkCreateCompany_CreateCompanyResponseDataSchema.nullable(),
|
|
48
|
-
deprecations: zod.z.
|
|
48
|
+
deprecations: zod.z.array(zod.z.string()).describe("Any deprecation notices returned by the API.").nullable().optional()
|
|
49
49
|
}).describe("Response schema for creating a new company.");
|
|
50
50
|
const folkCreateCompany = require_action.action("FOLK_CREATE_COMPANY", {
|
|
51
51
|
slug: "folk-create-company",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-company.cjs","names":["z","action"],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreateCompanyInput = z.object({\n name: z.string().describe(\"The unique name of the company.\"),\n urls: z.array(z.string()).describe(\"List of URLs associated with the company.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the company.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the company to.\"),\n}).describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the company to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the company.\").optional(),\n industry: z.string().describe(\"Industry sector of the company.\").optional(),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the company.\").optional(),\n description: z.string().describe(\"A short description of the company.\").optional(),\n employeeRange: z.string().describe(\"Employee count range for the company.\").optional(),\n fundingRaised: z.union([z.number().int(), z.number()]).optional(),\n foundationYear: z.string().describe(\"Year the company was founded in YYYY format.\").optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round in YYYY-MM-DD format.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new company in the workspace.\");\nconst FolkCreateCompany_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreateCompany_CreatedBySchema = z.object({\n id: z.string().describe(\"ID of the user who created the company.\").nullable(),\n email: z.string().describe(\"Email address of the user who created the company.\").nullable(),\n fullName: z.string().describe(\"Full name of the user who created the company.\").nullable(),\n}).describe(\"Information about the user who created the company.\");\nconst FolkCreateCompany_CreateCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created company.\").nullable(),\n name: z.string().describe(\"Name of the created company.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses associated with the company.\"),\n groups: z.array(FolkCreateCompany_GroupLinkResponseSchema).describe(\"Groups the company belongs to with ID and name.\"),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the company.\"),\n industry: z.
|
|
1
|
+
{"version":3,"file":"create-company.cjs","names":["z","action"],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreateCompanyInput = z.object({\n name: z.string().describe(\"The unique name of the company.\"),\n urls: z.array(z.string()).describe(\"List of URLs associated with the company.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the company.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the company to.\"),\n}).describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the company to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the company.\").optional(),\n industry: z.string().describe(\"Industry sector of the company.\").optional(),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the company.\").optional(),\n description: z.string().describe(\"A short description of the company.\").optional(),\n employeeRange: z.string().describe(\"Employee count range for the company.\").optional(),\n fundingRaised: z.union([z.number().int(), z.number()]).optional(),\n foundationYear: z.string().describe(\"Year the company was founded in YYYY format.\").optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round in YYYY-MM-DD format.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new company in the workspace.\");\nconst FolkCreateCompany_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreateCompany_CreatedBySchema = z.object({\n id: z.string().describe(\"ID of the user who created the company.\").nullable(),\n email: z.string().describe(\"Email address of the user who created the company.\").nullable(),\n fullName: z.string().describe(\"Full name of the user who created the company.\").nullable(),\n}).describe(\"Information about the user who created the company.\");\nconst FolkCreateCompany_CreateCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created company.\").nullable(),\n name: z.string().describe(\"Name of the created company.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses associated with the company.\"),\n groups: z.array(FolkCreateCompany_GroupLinkResponseSchema).describe(\"Groups the company belongs to with ID and name.\"),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the company.\"),\n industry: z.string().describe(\"Industry sector of the company.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the company.\"),\n createdAt: z.string().describe(\"Timestamp when the company was created.\").nullable(),\n createdBy: FolkCreateCompany_CreatedBySchema.nullable(),\n description: z.string().describe(\"Description of the created company.\").nullable().optional(),\n employeeRange: z.string().describe(\"Employee count range for the company.\").nullable().optional(),\n fundingRaised: z.string().describe(\"Amount of funding raised by the company (returned as string).\").nullable().optional(),\n foundationYear: z.string().describe(\"Year the company was founded.\").nullable().optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values for the company grouped by group ID.\"),\n}).describe(\"Data returned after a successful company creation.\");\nexport const FolkCreateCompanyOutput = z.object({\n data: FolkCreateCompany_CreateCompanyResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).describe(\"Response schema for creating a new company.\");\n\nexport const folkCreateCompany = action(\"FOLK_CREATE_COMPANY\", {\n slug: \"folk-create-company\",\n name: \"Create Company\",\n description: \"Creates a new company in the Folk workspace with the specified details. Required: company name (unique identifier). Optional: description, industry, funding details, employee range, contact info (emails, phones, urls, addresses), group assignments, and custom field values. Returns the created company with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreateCompanyInput,\n output: FolkCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtG,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EAClE,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACxH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC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AAC,CAAC,SAAS,0DAA0D;AAC1H,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAM,kDAAkD,SAAS;CACjE,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -29,7 +29,7 @@ declare const FolkCreateCompanyOutput: z.ZodObject<{
|
|
|
29
29
|
name: z.ZodNullable<z.ZodString>;
|
|
30
30
|
}, z.core.$strip>>;
|
|
31
31
|
phones: z.ZodArray<z.ZodString>;
|
|
32
|
-
industry: z.
|
|
32
|
+
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
addresses: z.ZodArray<z.ZodString>;
|
|
34
34
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
35
35
|
createdBy: z.ZodNullable<z.ZodObject<{
|
|
@@ -37,14 +37,14 @@ declare const FolkCreateCompanyOutput: z.ZodObject<{
|
|
|
37
37
|
email: z.ZodNullable<z.ZodString>;
|
|
38
38
|
fullName: z.ZodNullable<z.ZodString>;
|
|
39
39
|
}, z.core.$strip>>;
|
|
40
|
-
description: z.
|
|
41
|
-
employeeRange: z.
|
|
42
|
-
fundingRaised: z.
|
|
43
|
-
foundationYear: z.
|
|
44
|
-
lastFundingDate: z.
|
|
40
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
employeeRange: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
fundingRaised: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
foundationYear: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
lastFundingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
46
46
|
}, z.core.$strip>>;
|
|
47
|
-
deprecations: z.
|
|
47
|
+
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
49
|
declare const folkCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
name: string;
|
|
@@ -62,34 +62,7 @@ declare const folkCreateCompany: import("@keystrokehq/action").WorkflowActionDef
|
|
|
62
62
|
foundationYear?: string | undefined;
|
|
63
63
|
lastFundingDate?: string | undefined;
|
|
64
64
|
customFieldValues?: Record<string, unknown> | undefined;
|
|
65
|
-
},
|
|
66
|
-
data: {
|
|
67
|
-
id: string | null;
|
|
68
|
-
name: string | null;
|
|
69
|
-
urls: string[];
|
|
70
|
-
emails: string[];
|
|
71
|
-
groups: {
|
|
72
|
-
id: string | null;
|
|
73
|
-
name: string | null;
|
|
74
|
-
}[];
|
|
75
|
-
phones: string[];
|
|
76
|
-
addresses: string[];
|
|
77
|
-
createdAt: string | null;
|
|
78
|
-
createdBy: {
|
|
79
|
-
id: string | null;
|
|
80
|
-
email: string | null;
|
|
81
|
-
fullName: string | null;
|
|
82
|
-
} | null;
|
|
83
|
-
customFieldValues: Record<string, unknown>;
|
|
84
|
-
industry?: string | undefined;
|
|
85
|
-
description?: string | undefined;
|
|
86
|
-
employeeRange?: string | undefined;
|
|
87
|
-
fundingRaised?: string | undefined;
|
|
88
|
-
foundationYear?: string | undefined;
|
|
89
|
-
lastFundingDate?: string | undefined;
|
|
90
|
-
} | null;
|
|
91
|
-
deprecations?: string[] | undefined;
|
|
92
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
65
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
93
66
|
//#endregion
|
|
94
67
|
export { folkCreateCompany };
|
|
95
68
|
//# sourceMappingURL=create-company.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;;;;;;;sBAM5B,MAAA;AAAA
|
|
1
|
+
{"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;;;;;;;sBAM5B,MAAA;AAAA"}
|
|
@@ -29,7 +29,7 @@ declare const FolkCreateCompanyOutput: z.ZodObject<{
|
|
|
29
29
|
name: z.ZodNullable<z.ZodString>;
|
|
30
30
|
}, z.core.$strip>>;
|
|
31
31
|
phones: z.ZodArray<z.ZodString>;
|
|
32
|
-
industry: z.
|
|
32
|
+
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
addresses: z.ZodArray<z.ZodString>;
|
|
34
34
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
35
35
|
createdBy: z.ZodNullable<z.ZodObject<{
|
|
@@ -37,14 +37,14 @@ declare const FolkCreateCompanyOutput: z.ZodObject<{
|
|
|
37
37
|
email: z.ZodNullable<z.ZodString>;
|
|
38
38
|
fullName: z.ZodNullable<z.ZodString>;
|
|
39
39
|
}, z.core.$strip>>;
|
|
40
|
-
description: z.
|
|
41
|
-
employeeRange: z.
|
|
42
|
-
fundingRaised: z.
|
|
43
|
-
foundationYear: z.
|
|
44
|
-
lastFundingDate: z.
|
|
40
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
employeeRange: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
fundingRaised: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
foundationYear: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
lastFundingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
46
46
|
}, z.core.$strip>>;
|
|
47
|
-
deprecations: z.
|
|
47
|
+
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
49
|
declare const folkCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
name: string;
|
|
@@ -62,34 +62,7 @@ declare const folkCreateCompany: import("@keystrokehq/action").WorkflowActionDef
|
|
|
62
62
|
foundationYear?: string | undefined;
|
|
63
63
|
lastFundingDate?: string | undefined;
|
|
64
64
|
customFieldValues?: Record<string, unknown> | undefined;
|
|
65
|
-
},
|
|
66
|
-
data: {
|
|
67
|
-
id: string | null;
|
|
68
|
-
name: string | null;
|
|
69
|
-
urls: string[];
|
|
70
|
-
emails: string[];
|
|
71
|
-
groups: {
|
|
72
|
-
id: string | null;
|
|
73
|
-
name: string | null;
|
|
74
|
-
}[];
|
|
75
|
-
phones: string[];
|
|
76
|
-
addresses: string[];
|
|
77
|
-
createdAt: string | null;
|
|
78
|
-
createdBy: {
|
|
79
|
-
id: string | null;
|
|
80
|
-
email: string | null;
|
|
81
|
-
fullName: string | null;
|
|
82
|
-
} | null;
|
|
83
|
-
customFieldValues: Record<string, unknown>;
|
|
84
|
-
industry?: string | undefined;
|
|
85
|
-
description?: string | undefined;
|
|
86
|
-
employeeRange?: string | undefined;
|
|
87
|
-
fundingRaised?: string | undefined;
|
|
88
|
-
foundationYear?: string | undefined;
|
|
89
|
-
lastFundingDate?: string | undefined;
|
|
90
|
-
} | null;
|
|
91
|
-
deprecations?: string[] | undefined;
|
|
92
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
65
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
93
66
|
//#endregion
|
|
94
67
|
export { folkCreateCompany };
|
|
95
68
|
//# sourceMappingURL=create-company.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;;;;;;;sBAM5B,MAAA;AAAA
|
|
1
|
+
{"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;;;;;;;sBAM5B,MAAA;AAAA"}
|
|
@@ -32,15 +32,15 @@ const FolkCreateCompany_CreateCompanyResponseDataSchema = z.object({
|
|
|
32
32
|
emails: z.array(z.string()).describe("Email addresses associated with the company."),
|
|
33
33
|
groups: z.array(FolkCreateCompany_GroupLinkResponseSchema).describe("Groups the company belongs to with ID and name."),
|
|
34
34
|
phones: z.array(z.string()).describe("Phone numbers associated with the company."),
|
|
35
|
-
industry: z.
|
|
35
|
+
industry: z.string().describe("Industry sector of the company.").nullable().optional(),
|
|
36
36
|
addresses: z.array(z.string()).describe("Addresses associated with the company."),
|
|
37
37
|
createdAt: z.string().describe("Timestamp when the company was created.").nullable(),
|
|
38
38
|
createdBy: FolkCreateCompany_CreatedBySchema.nullable(),
|
|
39
|
-
description: z.
|
|
40
|
-
employeeRange: z.
|
|
41
|
-
fundingRaised: z.
|
|
42
|
-
foundationYear: z.
|
|
43
|
-
lastFundingDate: z.
|
|
39
|
+
description: z.string().describe("Description of the created company.").nullable().optional(),
|
|
40
|
+
employeeRange: z.string().describe("Employee count range for the company.").nullable().optional(),
|
|
41
|
+
fundingRaised: z.string().describe("Amount of funding raised by the company (returned as string).").nullable().optional(),
|
|
42
|
+
foundationYear: z.string().describe("Year the company was founded.").nullable().optional(),
|
|
43
|
+
lastFundingDate: z.string().describe("Date of the last funding round.").nullable().optional(),
|
|
44
44
|
customFieldValues: z.record(z.string(), z.unknown()).describe("Custom field values for the company grouped by group ID.")
|
|
45
45
|
}).describe("Data returned after a successful company creation.");
|
|
46
46
|
const folkCreateCompany = action("FOLK_CREATE_COMPANY", {
|
|
@@ -50,7 +50,7 @@ const folkCreateCompany = action("FOLK_CREATE_COMPANY", {
|
|
|
50
50
|
input: FolkCreateCompanyInput,
|
|
51
51
|
output: z.object({
|
|
52
52
|
data: FolkCreateCompany_CreateCompanyResponseDataSchema.nullable(),
|
|
53
|
-
deprecations: z.
|
|
53
|
+
deprecations: z.array(z.string()).describe("Any deprecation notices returned by the API.").nullable().optional()
|
|
54
54
|
}).describe("Response schema for creating a new company.")
|
|
55
55
|
});
|
|
56
56
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-company.mjs","names":[],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreateCompanyInput = z.object({\n name: z.string().describe(\"The unique name of the company.\"),\n urls: z.array(z.string()).describe(\"List of URLs associated with the company.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the company.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the company to.\"),\n}).describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the company to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the company.\").optional(),\n industry: z.string().describe(\"Industry sector of the company.\").optional(),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the company.\").optional(),\n description: z.string().describe(\"A short description of the company.\").optional(),\n employeeRange: z.string().describe(\"Employee count range for the company.\").optional(),\n fundingRaised: z.union([z.number().int(), z.number()]).optional(),\n foundationYear: z.string().describe(\"Year the company was founded in YYYY format.\").optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round in YYYY-MM-DD format.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new company in the workspace.\");\nconst FolkCreateCompany_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreateCompany_CreatedBySchema = z.object({\n id: z.string().describe(\"ID of the user who created the company.\").nullable(),\n email: z.string().describe(\"Email address of the user who created the company.\").nullable(),\n fullName: z.string().describe(\"Full name of the user who created the company.\").nullable(),\n}).describe(\"Information about the user who created the company.\");\nconst FolkCreateCompany_CreateCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created company.\").nullable(),\n name: z.string().describe(\"Name of the created company.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses associated with the company.\"),\n groups: z.array(FolkCreateCompany_GroupLinkResponseSchema).describe(\"Groups the company belongs to with ID and name.\"),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the company.\"),\n industry: z.
|
|
1
|
+
{"version":3,"file":"create-company.mjs","names":[],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreateCompanyInput = z.object({\n name: z.string().describe(\"The unique name of the company.\"),\n urls: z.array(z.string()).describe(\"List of URLs associated with the company.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the company.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the company to.\"),\n}).describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the company to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the company.\").optional(),\n industry: z.string().describe(\"Industry sector of the company.\").optional(),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the company.\").optional(),\n description: z.string().describe(\"A short description of the company.\").optional(),\n employeeRange: z.string().describe(\"Employee count range for the company.\").optional(),\n fundingRaised: z.union([z.number().int(), z.number()]).optional(),\n foundationYear: z.string().describe(\"Year the company was founded in YYYY format.\").optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round in YYYY-MM-DD format.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new company in the workspace.\");\nconst FolkCreateCompany_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreateCompany_CreatedBySchema = z.object({\n id: z.string().describe(\"ID of the user who created the company.\").nullable(),\n email: z.string().describe(\"Email address of the user who created the company.\").nullable(),\n fullName: z.string().describe(\"Full name of the user who created the company.\").nullable(),\n}).describe(\"Information about the user who created the company.\");\nconst FolkCreateCompany_CreateCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created company.\").nullable(),\n name: z.string().describe(\"Name of the created company.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses associated with the company.\"),\n groups: z.array(FolkCreateCompany_GroupLinkResponseSchema).describe(\"Groups the company belongs to with ID and name.\"),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the company.\"),\n industry: z.string().describe(\"Industry sector of the company.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the company.\"),\n createdAt: z.string().describe(\"Timestamp when the company was created.\").nullable(),\n createdBy: FolkCreateCompany_CreatedBySchema.nullable(),\n description: z.string().describe(\"Description of the created company.\").nullable().optional(),\n employeeRange: z.string().describe(\"Employee count range for the company.\").nullable().optional(),\n fundingRaised: z.string().describe(\"Amount of funding raised by the company (returned as string).\").nullable().optional(),\n foundationYear: z.string().describe(\"Year the company was founded.\").nullable().optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values for the company grouped by group ID.\"),\n}).describe(\"Data returned after a successful company creation.\");\nexport const FolkCreateCompanyOutput = z.object({\n data: FolkCreateCompany_CreateCompanyResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).describe(\"Response schema for creating a new company.\");\n\nexport const folkCreateCompany = action(\"FOLK_CREATE_COMPANY\", {\n slug: \"folk-create-company\",\n name: \"Create Company\",\n description: \"Creates a new company in the Folk workspace with the specified details. Required: company name (unique identifier). Optional: description, industry, funding details, employee range, contact info (emails, phones, urls, addresses), group assignments, and custom field values. Returns the created company with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreateCompanyInput,\n output: FolkCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,MAAM,EAAE,MAAM,EA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eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAC1H,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAMhE,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqC,EAAE,OAAO;EAC9C,MAAM,kDAAkD,SAAS;EACjE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
|
|
@@ -8,10 +8,10 @@ const FolkCreateNoteInput = zod.z.object({
|
|
|
8
8
|
visibility: zod.z.enum(["public", "private"]).describe("Visibility of the note. 'public' means visible to all workspace users, 'private' means visible only to the current user.")
|
|
9
9
|
}).describe("Request schema for creating a new note in the workspace.");
|
|
10
10
|
const FolkCreateNote_AuthorResponseSchema = zod.z.object({
|
|
11
|
-
id: zod.z.
|
|
11
|
+
id: zod.z.string().describe("The unique identifier of the user (required if type is 'user').").nullable().optional(),
|
|
12
12
|
type: zod.z.string().describe("The type of author: 'user' or 'assistant'.").nullable(),
|
|
13
|
-
email: zod.z.
|
|
14
|
-
deleted: zod.z.
|
|
13
|
+
email: zod.z.string().describe("The email address of the user (required if type is 'user').").nullable().optional(),
|
|
14
|
+
deleted: zod.z.boolean().describe("Whether the user has been deleted (present if type is 'user').").nullable().optional(),
|
|
15
15
|
fullName: zod.z.string().describe("The full name of the note creator.").nullable()
|
|
16
16
|
}).describe("Author information for the note creator.");
|
|
17
17
|
const FolkCreateNote_EntityResponseSchema = zod.z.object({
|
|
@@ -25,13 +25,13 @@ const FolkCreateNote_CreateNoteResponseDataSchema = zod.z.object({
|
|
|
25
25
|
author: FolkCreateNote_AuthorResponseSchema.nullable(),
|
|
26
26
|
entity: FolkCreateNote_EntityResponseSchema.nullable(),
|
|
27
27
|
content: zod.z.string().describe("The content of the note.").nullable(),
|
|
28
|
-
createdAt: zod.z.
|
|
29
|
-
parentNote:
|
|
28
|
+
createdAt: zod.z.string().describe("ISO 8601 timestamp when the note was created.").nullable().optional(),
|
|
29
|
+
parentNote: FolkCreateNote_ParentNoteResponseSchema.nullable().optional(),
|
|
30
30
|
visibility: zod.z.string().describe("The visibility of the note: 'public' or 'private'.").nullable()
|
|
31
31
|
}).describe("Data returned after successfully creating a note.");
|
|
32
32
|
const FolkCreateNoteOutput = zod.z.object({
|
|
33
33
|
data: FolkCreateNote_CreateNoteResponseDataSchema.nullable(),
|
|
34
|
-
deprecations: zod.z.
|
|
34
|
+
deprecations: zod.z.array(zod.z.string()).describe("Any deprecation notices returned by the API.").nullable().optional()
|
|
35
35
|
}).describe("Response schema for creating a new note.");
|
|
36
36
|
const folkCreateNote = require_action.action("FOLK_CREATE_NOTE", {
|
|
37
37
|
slug: "folk-create-note",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-note.cjs","names":["z","action"],"sources":["../../src/actions/create-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreateNoteInput = z.object({\n entity: z.object({\n id: z.string().describe(\"The unique identifier of the entity (person, company, or deal). Must be exactly 40 characters long (format: per_/com_/obj_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"The person, company, or deal that the note is attached to. Provide the entity object with an id field.\"),\n content: z.string().describe(\"The content of the note. Supports plain text or markdown format. Must be between 1 and 100,000 characters.\"),\n parentNote: z.object({\n id: z.string().describe(\"The unique identifier of the parent note. Must be exactly 40 characters long (format: nte_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Reference to a parent note when creating a reply.\").optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility of the note. 'public' means visible to all workspace users, 'private' means visible only to the current user.\"),\n}).describe(\"Request schema for creating a new note in the workspace.\");\nconst FolkCreateNote_AuthorResponseSchema = z.object({\n id: z.
|
|
1
|
+
{"version":3,"file":"create-note.cjs","names":["z","action"],"sources":["../../src/actions/create-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreateNoteInput = z.object({\n entity: z.object({\n id: z.string().describe(\"The unique identifier of the entity (person, company, or deal). Must be exactly 40 characters long (format: per_/com_/obj_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"The person, company, or deal that the note is attached to. Provide the entity object with an id field.\"),\n content: z.string().describe(\"The content of the note. Supports plain text or markdown format. Must be between 1 and 100,000 characters.\"),\n parentNote: z.object({\n id: z.string().describe(\"The unique identifier of the parent note. Must be exactly 40 characters long (format: nte_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Reference to a parent note when creating a reply.\").optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility of the note. 'public' means visible to all workspace users, 'private' means visible only to the current user.\"),\n}).describe(\"Request schema for creating a new note in the workspace.\");\nconst FolkCreateNote_AuthorResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the user (required if type is 'user').\").nullable().optional(),\n type: z.string().describe(\"The type of author: 'user' or 'assistant'.\").nullable(),\n email: z.string().describe(\"The email address of the user (required if type is 'user').\").nullable().optional(),\n deleted: z.boolean().describe(\"Whether the user has been deleted (present if type is 'user').\").nullable().optional(),\n fullName: z.string().describe(\"The full name of the note creator.\").nullable(),\n}).describe(\"Author information for the note creator.\");\nconst FolkCreateNote_EntityResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the entity.\").nullable(),\n fullName: z.string().describe(\"The display name of the entity.\").nullable(),\n entityType: z.string().describe(\"The type of entity: 'person', 'company', or 'object'.\").nullable(),\n}).describe(\"Entity information returned in the note response.\");\nconst FolkCreateNote_ParentNoteResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the parent note.\").nullable(),\n}).describe(\"Parent note reference in the response (if the note is a reply).\");\nconst FolkCreateNote_CreateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the created note.\").nullable(),\n author: FolkCreateNote_AuthorResponseSchema.nullable(),\n entity: FolkCreateNote_EntityResponseSchema.nullable(),\n content: z.string().describe(\"The content of the note.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable().optional(),\n parentNote: FolkCreateNote_ParentNoteResponseSchema.nullable().optional(),\n visibility: z.string().describe(\"The visibility of the note: 'public' or 'private'.\").nullable(),\n}).describe(\"Data returned after successfully creating a note.\");\nexport const FolkCreateNoteOutput = z.object({\n data: FolkCreateNote_CreateNoteResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).describe(\"Response schema for creating a new note.\");\n\nexport const folkCreateNote = action(\"FOLK_CREATE_NOTE\", {\n slug: \"folk-create-note\",\n name: \"Create Note\",\n description: \"Tool to create a new note in the Folk workspace. Use when you need to add a note to a person, company, or deal entity.\",\n input: FolkCreateNoteInput,\n output: FolkCreateNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,QAAQA,IAAAA,EAAE,OAAO,EACjB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,EAC3L,CAAC,CAAC,CAAC,SAAS,wGAAwG;CAClH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G;CACzI,YAAYA,IAAA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AAS,iEAAiE;AAC7E,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,QAAQ,oCAAoC,SAAS;CACrD,QAAQ,oCAAoC,SAAS;CACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,YAAY,wCAAwC,SAAS,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAM,4CAA4C,SAAS;CAC3D,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -18,10 +18,10 @@ declare const FolkCreateNoteOutput: z.ZodObject<{
|
|
|
18
18
|
data: z.ZodNullable<z.ZodObject<{
|
|
19
19
|
id: z.ZodNullable<z.ZodString>;
|
|
20
20
|
author: z.ZodNullable<z.ZodObject<{
|
|
21
|
-
id: z.
|
|
21
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
type: z.ZodNullable<z.ZodString>;
|
|
23
|
-
email: z.
|
|
24
|
-
deleted: z.
|
|
23
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
25
25
|
fullName: z.ZodNullable<z.ZodString>;
|
|
26
26
|
}, z.core.$strip>>;
|
|
27
27
|
entity: z.ZodNullable<z.ZodObject<{
|
|
@@ -30,13 +30,13 @@ declare const FolkCreateNoteOutput: z.ZodObject<{
|
|
|
30
30
|
entityType: z.ZodNullable<z.ZodString>;
|
|
31
31
|
}, z.core.$strip>>;
|
|
32
32
|
content: z.ZodNullable<z.ZodString>;
|
|
33
|
-
createdAt: z.
|
|
34
|
-
parentNote: z.
|
|
33
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
parentNote: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
id: z.ZodNullable<z.ZodString>;
|
|
36
36
|
}, z.core.$strip>>>;
|
|
37
37
|
visibility: z.ZodNullable<z.ZodString>;
|
|
38
38
|
}, z.core.$strip>>;
|
|
39
|
-
deprecations: z.
|
|
39
|
+
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
41
|
declare const folkCreateNote: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
42
|
entity: {
|
|
@@ -47,30 +47,7 @@ declare const folkCreateNote: import("@keystrokehq/action").WorkflowActionDefini
|
|
|
47
47
|
parentNote?: {
|
|
48
48
|
id: string;
|
|
49
49
|
} | undefined;
|
|
50
|
-
},
|
|
51
|
-
data: {
|
|
52
|
-
id: string | null;
|
|
53
|
-
author: {
|
|
54
|
-
type: string | null;
|
|
55
|
-
fullName: string | null;
|
|
56
|
-
id?: string | undefined;
|
|
57
|
-
email?: string | undefined;
|
|
58
|
-
deleted?: boolean | undefined;
|
|
59
|
-
} | null;
|
|
60
|
-
entity: {
|
|
61
|
-
id: string | null;
|
|
62
|
-
fullName: string | null;
|
|
63
|
-
entityType: string | null;
|
|
64
|
-
} | null;
|
|
65
|
-
content: string | null;
|
|
66
|
-
visibility: string | null;
|
|
67
|
-
createdAt?: string | undefined;
|
|
68
|
-
parentNote?: {
|
|
69
|
-
id: string | null;
|
|
70
|
-
} | undefined;
|
|
71
|
-
} | null;
|
|
72
|
-
deprecations?: string[] | undefined;
|
|
73
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
50
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
74
51
|
//#endregion
|
|
75
52
|
export { folkCreateNote };
|
|
76
53
|
//# sourceMappingURL=create-note.d.cts.map
|
|
@@ -18,10 +18,10 @@ declare const FolkCreateNoteOutput: z.ZodObject<{
|
|
|
18
18
|
data: z.ZodNullable<z.ZodObject<{
|
|
19
19
|
id: z.ZodNullable<z.ZodString>;
|
|
20
20
|
author: z.ZodNullable<z.ZodObject<{
|
|
21
|
-
id: z.
|
|
21
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
type: z.ZodNullable<z.ZodString>;
|
|
23
|
-
email: z.
|
|
24
|
-
deleted: z.
|
|
23
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
25
25
|
fullName: z.ZodNullable<z.ZodString>;
|
|
26
26
|
}, z.core.$strip>>;
|
|
27
27
|
entity: z.ZodNullable<z.ZodObject<{
|
|
@@ -30,13 +30,13 @@ declare const FolkCreateNoteOutput: z.ZodObject<{
|
|
|
30
30
|
entityType: z.ZodNullable<z.ZodString>;
|
|
31
31
|
}, z.core.$strip>>;
|
|
32
32
|
content: z.ZodNullable<z.ZodString>;
|
|
33
|
-
createdAt: z.
|
|
34
|
-
parentNote: z.
|
|
33
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
parentNote: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
id: z.ZodNullable<z.ZodString>;
|
|
36
36
|
}, z.core.$strip>>>;
|
|
37
37
|
visibility: z.ZodNullable<z.ZodString>;
|
|
38
38
|
}, z.core.$strip>>;
|
|
39
|
-
deprecations: z.
|
|
39
|
+
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
41
|
declare const folkCreateNote: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
42
|
entity: {
|
|
@@ -47,30 +47,7 @@ declare const folkCreateNote: import("@keystrokehq/action").WorkflowActionDefini
|
|
|
47
47
|
parentNote?: {
|
|
48
48
|
id: string;
|
|
49
49
|
} | undefined;
|
|
50
|
-
},
|
|
51
|
-
data: {
|
|
52
|
-
id: string | null;
|
|
53
|
-
author: {
|
|
54
|
-
type: string | null;
|
|
55
|
-
fullName: string | null;
|
|
56
|
-
id?: string | undefined;
|
|
57
|
-
email?: string | undefined;
|
|
58
|
-
deleted?: boolean | undefined;
|
|
59
|
-
} | null;
|
|
60
|
-
entity: {
|
|
61
|
-
id: string | null;
|
|
62
|
-
fullName: string | null;
|
|
63
|
-
entityType: string | null;
|
|
64
|
-
} | null;
|
|
65
|
-
content: string | null;
|
|
66
|
-
visibility: string | null;
|
|
67
|
-
createdAt?: string | undefined;
|
|
68
|
-
parentNote?: {
|
|
69
|
-
id: string | null;
|
|
70
|
-
} | undefined;
|
|
71
|
-
} | null;
|
|
72
|
-
deprecations?: string[] | undefined;
|
|
73
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
50
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
74
51
|
//#endregion
|
|
75
52
|
export { folkCreateNote };
|
|
76
53
|
//# sourceMappingURL=create-note.d.mts.map
|
|
@@ -8,10 +8,10 @@ const FolkCreateNoteInput = z.object({
|
|
|
8
8
|
visibility: z.enum(["public", "private"]).describe("Visibility of the note. 'public' means visible to all workspace users, 'private' means visible only to the current user.")
|
|
9
9
|
}).describe("Request schema for creating a new note in the workspace.");
|
|
10
10
|
const FolkCreateNote_AuthorResponseSchema = z.object({
|
|
11
|
-
id: z.
|
|
11
|
+
id: z.string().describe("The unique identifier of the user (required if type is 'user').").nullable().optional(),
|
|
12
12
|
type: z.string().describe("The type of author: 'user' or 'assistant'.").nullable(),
|
|
13
|
-
email: z.
|
|
14
|
-
deleted: z.
|
|
13
|
+
email: z.string().describe("The email address of the user (required if type is 'user').").nullable().optional(),
|
|
14
|
+
deleted: z.boolean().describe("Whether the user has been deleted (present if type is 'user').").nullable().optional(),
|
|
15
15
|
fullName: z.string().describe("The full name of the note creator.").nullable()
|
|
16
16
|
}).describe("Author information for the note creator.");
|
|
17
17
|
const FolkCreateNote_EntityResponseSchema = z.object({
|
|
@@ -25,8 +25,8 @@ const FolkCreateNote_CreateNoteResponseDataSchema = z.object({
|
|
|
25
25
|
author: FolkCreateNote_AuthorResponseSchema.nullable(),
|
|
26
26
|
entity: FolkCreateNote_EntityResponseSchema.nullable(),
|
|
27
27
|
content: z.string().describe("The content of the note.").nullable(),
|
|
28
|
-
createdAt: z.
|
|
29
|
-
parentNote:
|
|
28
|
+
createdAt: z.string().describe("ISO 8601 timestamp when the note was created.").nullable().optional(),
|
|
29
|
+
parentNote: FolkCreateNote_ParentNoteResponseSchema.nullable().optional(),
|
|
30
30
|
visibility: z.string().describe("The visibility of the note: 'public' or 'private'.").nullable()
|
|
31
31
|
}).describe("Data returned after successfully creating a note.");
|
|
32
32
|
const folkCreateNote = action("FOLK_CREATE_NOTE", {
|
|
@@ -36,7 +36,7 @@ const folkCreateNote = action("FOLK_CREATE_NOTE", {
|
|
|
36
36
|
input: FolkCreateNoteInput,
|
|
37
37
|
output: z.object({
|
|
38
38
|
data: FolkCreateNote_CreateNoteResponseDataSchema.nullable(),
|
|
39
|
-
deprecations: z.
|
|
39
|
+
deprecations: z.array(z.string()).describe("Any deprecation notices returned by the API.").nullable().optional()
|
|
40
40
|
}).describe("Response schema for creating a new note.")
|
|
41
41
|
});
|
|
42
42
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-note.mjs","names":[],"sources":["../../src/actions/create-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreateNoteInput = z.object({\n entity: z.object({\n id: z.string().describe(\"The unique identifier of the entity (person, company, or deal). Must be exactly 40 characters long (format: per_/com_/obj_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"The person, company, or deal that the note is attached to. Provide the entity object with an id field.\"),\n content: z.string().describe(\"The content of the note. Supports plain text or markdown format. Must be between 1 and 100,000 characters.\"),\n parentNote: z.object({\n id: z.string().describe(\"The unique identifier of the parent note. Must be exactly 40 characters long (format: nte_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Reference to a parent note when creating a reply.\").optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility of the note. 'public' means visible to all workspace users, 'private' means visible only to the current user.\"),\n}).describe(\"Request schema for creating a new note in the workspace.\");\nconst FolkCreateNote_AuthorResponseSchema = z.object({\n id: z.
|
|
1
|
+
{"version":3,"file":"create-note.mjs","names":[],"sources":["../../src/actions/create-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreateNoteInput = z.object({\n entity: z.object({\n id: z.string().describe(\"The unique identifier of the entity (person, company, or deal). Must be exactly 40 characters long (format: per_/com_/obj_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"The person, company, or deal that the note is attached to. Provide the entity object with an id field.\"),\n content: z.string().describe(\"The content of the note. Supports plain text or markdown format. Must be between 1 and 100,000 characters.\"),\n parentNote: z.object({\n id: z.string().describe(\"The unique identifier of the parent note. Must be exactly 40 characters long (format: nte_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Reference to a parent note when creating a reply.\").optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility of the note. 'public' means visible to all workspace users, 'private' means visible only to the current user.\"),\n}).describe(\"Request schema for creating a new note in the workspace.\");\nconst FolkCreateNote_AuthorResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the user (required if type is 'user').\").nullable().optional(),\n type: z.string().describe(\"The type of author: 'user' or 'assistant'.\").nullable(),\n email: z.string().describe(\"The email address of the user (required if type is 'user').\").nullable().optional(),\n deleted: z.boolean().describe(\"Whether the user has been deleted (present if type is 'user').\").nullable().optional(),\n fullName: z.string().describe(\"The full name of the note creator.\").nullable(),\n}).describe(\"Author information for the note creator.\");\nconst FolkCreateNote_EntityResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the entity.\").nullable(),\n fullName: z.string().describe(\"The display name of the entity.\").nullable(),\n entityType: z.string().describe(\"The type of entity: 'person', 'company', or 'object'.\").nullable(),\n}).describe(\"Entity information returned in the note response.\");\nconst FolkCreateNote_ParentNoteResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the parent note.\").nullable(),\n}).describe(\"Parent note reference in the response (if the note is a reply).\");\nconst FolkCreateNote_CreateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the created note.\").nullable(),\n author: FolkCreateNote_AuthorResponseSchema.nullable(),\n entity: FolkCreateNote_EntityResponseSchema.nullable(),\n content: z.string().describe(\"The content of the note.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable().optional(),\n parentNote: FolkCreateNote_ParentNoteResponseSchema.nullable().optional(),\n visibility: z.string().describe(\"The visibility of the note: 'public' or 'private'.\").nullable(),\n}).describe(\"Data returned after successfully creating a note.\");\nexport const FolkCreateNoteOutput = z.object({\n data: FolkCreateNote_CreateNoteResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).describe(\"Response schema for creating a new note.\");\n\nexport const folkCreateNote = action(\"FOLK_CREATE_NOTE\", {\n slug: \"folk-create-note\",\n name: \"Create Note\",\n description: \"Tool to create a new note in the Folk workspace. Use when you need to add a note to a person, company, or deal entity.\",\n input: FolkCreateNoteInput,\n output: FolkCreateNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,EAC3L,CAAC,CAAC,CAAC,SAAS,wGAAwG;CAClH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G;CACzI,YAAY,EAAE,OAAO,EACrB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,EAC3J,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,0HAA0H;AAC/K,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,SAAS,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