@keystrokehq/folk 0.1.5 → 0.1.6
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 +1 -0
- package/dist/actions/create-company.cjs.map +1 -1
- package/dist/actions/create-company.d.cts +3 -30
- package/dist/actions/create-company.d.cts.map +1 -1
- package/dist/actions/create-company.d.mts +3 -30
- package/dist/actions/create-company.d.mts.map +1 -1
- package/dist/actions/create-company.mjs +1 -0
- package/dist/actions/create-company.mjs.map +1 -1
- package/dist/actions/create-note.cjs +1 -0
- package/dist/actions/create-note.cjs.map +1 -1
- package/dist/actions/create-note.d.cts +3 -22
- package/dist/actions/create-note.d.cts.map +1 -1
- package/dist/actions/create-note.d.mts +3 -22
- package/dist/actions/create-note.d.mts.map +1 -1
- package/dist/actions/create-note.mjs +1 -0
- package/dist/actions/create-note.mjs.map +1 -1
- package/dist/actions/create-person.cjs +1 -0
- package/dist/actions/create-person.cjs.map +1 -1
- package/dist/actions/create-person.d.cts +3 -23
- package/dist/actions/create-person.d.cts.map +1 -1
- package/dist/actions/create-person.d.mts +3 -23
- package/dist/actions/create-person.d.mts.map +1 -1
- package/dist/actions/create-person.mjs +1 -0
- package/dist/actions/create-person.mjs.map +1 -1
- package/dist/actions/delete-company.cjs +1 -0
- package/dist/actions/delete-company.cjs.map +1 -1
- package/dist/actions/delete-company.d.cts +3 -15
- package/dist/actions/delete-company.d.cts.map +1 -1
- package/dist/actions/delete-company.d.mts +3 -15
- package/dist/actions/delete-company.d.mts.map +1 -1
- package/dist/actions/delete-company.mjs +1 -0
- package/dist/actions/delete-company.mjs.map +1 -1
- package/dist/actions/delete-note.cjs +1 -0
- package/dist/actions/delete-note.cjs.map +1 -1
- package/dist/actions/delete-note.d.cts +3 -15
- package/dist/actions/delete-note.d.cts.map +1 -1
- package/dist/actions/delete-note.d.mts +3 -15
- package/dist/actions/delete-note.d.mts.map +1 -1
- package/dist/actions/delete-note.mjs +1 -0
- package/dist/actions/delete-note.mjs.map +1 -1
- package/dist/actions/delete-person.cjs +1 -0
- package/dist/actions/delete-person.cjs.map +1 -1
- package/dist/actions/delete-person.d.cts +3 -15
- package/dist/actions/delete-person.d.cts.map +1 -1
- package/dist/actions/delete-person.d.mts +3 -15
- package/dist/actions/delete-person.d.mts.map +1 -1
- package/dist/actions/delete-person.mjs +1 -0
- package/dist/actions/delete-person.mjs.map +1 -1
- package/dist/actions/delete-reminder.cjs +1 -0
- package/dist/actions/delete-reminder.cjs.map +1 -1
- package/dist/actions/delete-reminder.d.cts +3 -15
- package/dist/actions/delete-reminder.d.cts.map +1 -1
- package/dist/actions/delete-reminder.d.mts +3 -15
- package/dist/actions/delete-reminder.d.mts.map +1 -1
- package/dist/actions/delete-reminder.mjs +1 -0
- package/dist/actions/delete-reminder.mjs.map +1 -1
- package/dist/actions/get-company.cjs +1 -0
- package/dist/actions/get-company.cjs.map +1 -1
- package/dist/actions/get-company.d.cts +3 -15
- package/dist/actions/get-company.d.cts.map +1 -1
- package/dist/actions/get-company.d.mts +3 -15
- package/dist/actions/get-company.d.mts.map +1 -1
- package/dist/actions/get-company.mjs +1 -0
- package/dist/actions/get-company.mjs.map +1 -1
- package/dist/actions/get-current-workspace-user.cjs +1 -0
- package/dist/actions/get-current-workspace-user.cjs.map +1 -1
- package/dist/actions/get-current-workspace-user.d.cts +3 -13
- package/dist/actions/get-current-workspace-user.d.cts.map +1 -1
- package/dist/actions/get-current-workspace-user.d.mts +3 -13
- package/dist/actions/get-current-workspace-user.d.mts.map +1 -1
- package/dist/actions/get-current-workspace-user.mjs +1 -0
- package/dist/actions/get-current-workspace-user.mjs.map +1 -1
- package/dist/actions/get-note.cjs +1 -0
- package/dist/actions/get-note.cjs.map +1 -1
- package/dist/actions/get-note.d.cts +3 -15
- package/dist/actions/get-note.d.cts.map +1 -1
- package/dist/actions/get-note.d.mts +3 -15
- package/dist/actions/get-note.d.mts.map +1 -1
- package/dist/actions/get-note.mjs +1 -0
- package/dist/actions/get-note.mjs.map +1 -1
- package/dist/actions/get-person.cjs +1 -0
- package/dist/actions/get-person.cjs.map +1 -1
- package/dist/actions/get-person.d.cts +3 -15
- package/dist/actions/get-person.d.cts.map +1 -1
- package/dist/actions/get-person.d.mts +3 -15
- package/dist/actions/get-person.d.mts.map +1 -1
- package/dist/actions/get-person.mjs +1 -0
- package/dist/actions/get-person.mjs.map +1 -1
- package/dist/actions/get-user.cjs +1 -0
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +3 -15
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +3 -15
- package/dist/actions/get-user.d.mts.map +1 -1
- package/dist/actions/get-user.mjs +1 -0
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/list-companies.cjs +1 -0
- package/dist/actions/list-companies.cjs.map +1 -1
- package/dist/actions/list-companies.d.cts +3 -18
- package/dist/actions/list-companies.d.cts.map +1 -1
- package/dist/actions/list-companies.d.mts +3 -18
- package/dist/actions/list-companies.d.mts.map +1 -1
- package/dist/actions/list-companies.mjs +1 -0
- package/dist/actions/list-companies.mjs.map +1 -1
- package/dist/actions/list-group-custom-fields.cjs +1 -0
- package/dist/actions/list-group-custom-fields.cjs.map +1 -1
- package/dist/actions/list-group-custom-fields.d.cts +3 -18
- package/dist/actions/list-group-custom-fields.d.cts.map +1 -1
- package/dist/actions/list-group-custom-fields.d.mts +3 -18
- package/dist/actions/list-group-custom-fields.d.mts.map +1 -1
- package/dist/actions/list-group-custom-fields.mjs +1 -0
- package/dist/actions/list-group-custom-fields.mjs.map +1 -1
- package/dist/actions/list-groups.cjs +1 -0
- package/dist/actions/list-groups.cjs.map +1 -1
- package/dist/actions/list-groups.d.cts +3 -16
- package/dist/actions/list-groups.d.cts.map +1 -1
- package/dist/actions/list-groups.d.mts +3 -16
- package/dist/actions/list-groups.d.mts.map +1 -1
- package/dist/actions/list-groups.mjs +1 -0
- package/dist/actions/list-groups.mjs.map +1 -1
- package/dist/actions/list-notes.cjs +1 -0
- package/dist/actions/list-notes.cjs.map +1 -1
- package/dist/actions/list-notes.d.cts +3 -16
- package/dist/actions/list-notes.d.cts.map +1 -1
- package/dist/actions/list-notes.d.mts +3 -16
- package/dist/actions/list-notes.d.mts.map +1 -1
- package/dist/actions/list-notes.mjs +1 -0
- package/dist/actions/list-notes.mjs.map +1 -1
- package/dist/actions/list-people.cjs +1 -0
- package/dist/actions/list-people.cjs.map +1 -1
- package/dist/actions/list-people.d.cts +3 -19
- package/dist/actions/list-people.d.cts.map +1 -1
- package/dist/actions/list-people.d.mts +3 -19
- package/dist/actions/list-people.d.mts.map +1 -1
- package/dist/actions/list-people.mjs +1 -0
- package/dist/actions/list-people.mjs.map +1 -1
- package/dist/actions/list-reminders.cjs +1 -0
- package/dist/actions/list-reminders.cjs.map +1 -1
- package/dist/actions/list-reminders.d.cts +3 -17
- package/dist/actions/list-reminders.d.cts.map +1 -1
- package/dist/actions/list-reminders.d.mts +3 -17
- package/dist/actions/list-reminders.d.mts.map +1 -1
- package/dist/actions/list-reminders.mjs +1 -0
- package/dist/actions/list-reminders.mjs.map +1 -1
- package/dist/actions/list-users.cjs +1 -0
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +3 -16
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +3 -16
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +1 -0
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +1 -0
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +3 -16
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +3 -16
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/list-webhooks.mjs +1 -0
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/update-company.cjs +1 -0
- package/dist/actions/update-company.cjs.map +1 -1
- package/dist/actions/update-company.d.cts +3 -26
- package/dist/actions/update-company.d.cts.map +1 -1
- package/dist/actions/update-company.d.mts +3 -26
- package/dist/actions/update-company.d.mts.map +1 -1
- package/dist/actions/update-company.mjs +1 -0
- package/dist/actions/update-company.mjs.map +1 -1
- package/dist/actions/update-note.cjs +1 -0
- package/dist/actions/update-note.cjs.map +1 -1
- package/dist/actions/update-note.d.cts +3 -17
- package/dist/actions/update-note.d.cts.map +1 -1
- package/dist/actions/update-note.d.mts +3 -17
- package/dist/actions/update-note.d.mts.map +1 -1
- package/dist/actions/update-note.mjs +1 -0
- package/dist/actions/update-note.mjs.map +1 -1
- package/dist/actions/update-person.cjs +1 -0
- package/dist/actions/update-person.cjs.map +1 -1
- package/dist/actions/update-person.d.cts +3 -35
- package/dist/actions/update-person.d.cts.map +1 -1
- package/dist/actions/update-person.d.mts +3 -35
- package/dist/actions/update-person.d.mts.map +1 -1
- package/dist/actions/update-person.mjs +1 -0
- package/dist/actions/update-person.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-company.mjs","names":[],"sources":["../../src/actions/update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdateCompanyInput = z.object({\n name: z.string().describe(\"The name of the company.\").optional(),\n urls: z.array(z.string()).describe(\"List of URLs associated with the company; replaces existing URLs.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the company; replaces existing emails.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the company to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"Groups to associate with the company; list values replace existing groups.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the company; replaces existing phones.\").optional(),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the company; replaces existing addresses.\").optional(),\n companyId: z.string().describe(\"The ID of the company to update. Must be exactly 40 characters long.\"),\n description: z.string().describe(\"A short description of the company.\").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 updating an existing company. Only provided fields will be updated; list fields replace existing values entirely.\");\nconst FolkUpdateCompany_UpdateCompanyGroupSchema = z.object({\n id: z.string().describe(\"Group ID.\").nullable(),\n name: z.string().describe(\"Group name.\").nullable(),\n}).passthrough().describe(\"A group associated with the company in the response.\");\nconst FolkUpdateCompany_UpdateCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the company.\").nullable(),\n name: z.string().describe(\"Name of the 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(FolkUpdateCompany_UpdateCompanyGroupSchema).describe(\"Groups associated with the company.\"),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the company.\"),\n addresses: z.array(z.string()).describe(\"Addresses associated with the company.\"),\n description: z.string().describe(\"Description of the company.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values keyed by group ID.\"),\n}).passthrough().describe(\"Data returned after updating a company.\");\nexport const FolkUpdateCompanyOutput = z.object({\n data: FolkUpdateCompany_UpdateCompanyResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for updating a company.\");\n\nexport const folkUpdateCompany = action(\"FOLK_UPDATE_COMPANY\", {\n slug: \"folk-update-company\",\n name: \"Update Company\",\n description: \"Tool to update an existing company in the workspace. Use after confirming the company ID; only provided fields are updated and list fields replace existing values.\",\n input: FolkUpdateCompanyInput,\n output: FolkUpdateCompanyOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-company.mjs","names":[],"sources":["../../src/actions/update-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { folk } from \"../app\";\n\nexport const FolkUpdateCompanyInput = z.object({\n name: z.string().describe(\"The name of the company.\").optional(),\n urls: z.array(z.string()).describe(\"List of URLs associated with the company; replaces existing URLs.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the company; replaces existing emails.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the company to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"Groups to associate with the company; list values replace existing groups.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the company; replaces existing phones.\").optional(),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the company; replaces existing addresses.\").optional(),\n companyId: z.string().describe(\"The ID of the company to update. Must be exactly 40 characters long.\"),\n description: z.string().describe(\"A short description of the company.\").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 updating an existing company. Only provided fields will be updated; list fields replace existing values entirely.\");\nconst FolkUpdateCompany_UpdateCompanyGroupSchema = z.object({\n id: z.string().describe(\"Group ID.\").nullable(),\n name: z.string().describe(\"Group name.\").nullable(),\n}).passthrough().describe(\"A group associated with the company in the response.\");\nconst FolkUpdateCompany_UpdateCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the company.\").nullable(),\n name: z.string().describe(\"Name of the 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(FolkUpdateCompany_UpdateCompanyGroupSchema).describe(\"Groups associated with the company.\"),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the company.\"),\n addresses: z.array(z.string()).describe(\"Addresses associated with the company.\"),\n description: z.string().describe(\"Description of the company.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values keyed by group ID.\"),\n}).passthrough().describe(\"Data returned after updating a company.\");\nexport const FolkUpdateCompanyOutput = z.object({\n data: FolkUpdateCompany_UpdateCompanyResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for updating a company.\");\n\nexport const folkUpdateCompany: AppAction<\n typeof FolkUpdateCompanyInput,\n typeof FolkUpdateCompanyOutput,\n typeof folk.credential\n> = action(\"FOLK_UPDATE_COMPANY\", {\n slug: \"folk-update-company\",\n name: \"Update Company\",\n description: \"Tool to update an existing company in the workspace. Use after confirming the company ID; only provided fields are updated and list fields replace existing values.\",\n input: FolkUpdateCompanyInput,\n output: FolkUpdateCompanyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAChI,QAAQ,EAAE,MAAM,EAAE,OAAO,EACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAC5J,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC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mB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAMnE,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdqC,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,YAAY,CAAC,CAAC,SAAS,8CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-note.cjs","names":["z","action"],"sources":["../../src/actions/update-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdateNoteInput = z.object({\n content: z.string().describe(\"The content of the note in plain text or markdown format.\").optional(),\n note_id: z.string().describe(\"The ID of the note to update.\"),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility level for a note.\").optional(),\n}).describe(\"Request schema for updating an existing note. Only provided fields will be updated.\");\nconst FolkUpdateNote_UpdateNoteAuthorSchema = z.object({\n id: z.string().describe(\"Author ID if available.\").nullable().optional(),\n email: z.string().describe(\"Email of the author.\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the author.\").nullable().optional(),\n}).passthrough().describe(\"Author information for the note (user, assistant, or deleted).\");\nconst FolkUpdateNote_UpdateNoteEntitySchema = z.object({\n id: z.string().describe(\"Entity ID.\").nullable(),\n fullName: z.string().describe(\"Full name of the entity.\").nullable().optional(),\n entityType: z.string().describe(\"Type of entity (person, company, etc).\").nullable(),\n}).passthrough().describe(\"Entity (person, company, or object) connected to the note.\");\nconst FolkUpdateNote_UpdateNoteParentNoteSchema = z.object({\n id: z.string().describe(\"Parent note ID.\").nullable(),\n content: z.string().describe(\"Parent note content.\").nullable().optional(),\n}).passthrough().describe(\"Parent note reference if this note is a reply.\");\nconst FolkUpdateNote_UpdateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the note.\").nullable(),\n author: FolkUpdateNote_UpdateNoteAuthorSchema.nullable().optional(),\n entity: FolkUpdateNote_UpdateNoteEntitySchema.nullable().optional(),\n content: z.string().describe(\"Content of the note.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable().optional(),\n parentNote: FolkUpdateNote_UpdateNoteParentNoteSchema.nullable().optional(),\n visibility: z.string().describe(\"Visibility of the note (public or private).\").nullable(),\n}).passthrough().describe(\"Data returned after updating a note.\");\nexport const FolkUpdateNoteOutput = z.object({\n data: FolkUpdateNote_UpdateNoteResponseDataSchema.nullable(),\n}).passthrough().describe(\"Full response schema for updating a note.\");\n\nexport const folkUpdateNote = action(\"FOLK_UPDATE_NOTE\", {\n slug: \"folk-update-note\",\n name: \"Update Note\",\n description: \"Tool to update an existing note in the workspace. Use after confirming the note ID; only provided fields are updated.\",\n input: FolkUpdateNoteInput,\n output: FolkUpdateNoteOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-note.cjs","names":["z","action"],"sources":["../../src/actions/update-note.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { folk } from \"../app\";\n\nexport const FolkUpdateNoteInput = z.object({\n content: z.string().describe(\"The content of the note in plain text or markdown format.\").optional(),\n note_id: z.string().describe(\"The ID of the note to update.\"),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility level for a note.\").optional(),\n}).describe(\"Request schema for updating an existing note. Only provided fields will be updated.\");\nconst FolkUpdateNote_UpdateNoteAuthorSchema = z.object({\n id: z.string().describe(\"Author ID if available.\").nullable().optional(),\n email: z.string().describe(\"Email of the author.\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the author.\").nullable().optional(),\n}).passthrough().describe(\"Author information for the note (user, assistant, or deleted).\");\nconst FolkUpdateNote_UpdateNoteEntitySchema = z.object({\n id: z.string().describe(\"Entity ID.\").nullable(),\n fullName: z.string().describe(\"Full name of the entity.\").nullable().optional(),\n entityType: z.string().describe(\"Type of entity (person, company, etc).\").nullable(),\n}).passthrough().describe(\"Entity (person, company, or object) connected to the note.\");\nconst FolkUpdateNote_UpdateNoteParentNoteSchema = z.object({\n id: z.string().describe(\"Parent note ID.\").nullable(),\n content: z.string().describe(\"Parent note content.\").nullable().optional(),\n}).passthrough().describe(\"Parent note reference if this note is a reply.\");\nconst FolkUpdateNote_UpdateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the note.\").nullable(),\n author: FolkUpdateNote_UpdateNoteAuthorSchema.nullable().optional(),\n entity: FolkUpdateNote_UpdateNoteEntitySchema.nullable().optional(),\n content: z.string().describe(\"Content of the note.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable().optional(),\n parentNote: FolkUpdateNote_UpdateNoteParentNoteSchema.nullable().optional(),\n visibility: z.string().describe(\"Visibility of the note (public or private).\").nullable(),\n}).passthrough().describe(\"Data returned after updating a note.\");\nexport const FolkUpdateNoteOutput = z.object({\n data: FolkUpdateNote_UpdateNoteResponseDataSchema.nullable(),\n}).passthrough().describe(\"Full response schema for updating a note.\");\n\nexport const folkUpdateNote: AppAction<\n typeof FolkUpdateNoteInput,\n typeof FolkUpdateNoteOutput,\n typeof folk.credential\n> = action(\"FOLK_UPDATE_NOTE\", {\n slug: \"folk-update-note\",\n name: \"Update Note\",\n description: \"Tool to update an existing note in the workspace. Use after confirming the note ID; only provided fields are updated.\",\n input: FolkUpdateNoteInput,\n output: FolkUpdateNoteOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,S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O;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,QAAQ,sCAAsC,SAAS,CAAC,CAAC,SAAS;CAClE,QAAQ,sCAAsC,SAAS,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,MAAM,4CAA4C,SAAS,EAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { folk } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-note.d.ts
|
|
@@ -31,23 +33,7 @@ declare const FolkUpdateNoteOutput: z.ZodObject<{
|
|
|
31
33
|
visibility: z.ZodNullable<z.ZodString>;
|
|
32
34
|
}, z.core.$loose>>;
|
|
33
35
|
}, z.core.$loose>;
|
|
34
|
-
declare const folkUpdateNote:
|
|
35
|
-
note_id: string;
|
|
36
|
-
content?: string | undefined;
|
|
37
|
-
visibility?: "public" | "private" | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"folk", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"folk", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
generic_api_key: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>]>;
|
|
36
|
+
declare const folkUpdateNote: AppAction<typeof FolkUpdateNoteInput, typeof FolkUpdateNoteOutput, typeof folk.credential>;
|
|
51
37
|
//#endregion
|
|
52
38
|
export { folkUpdateNote };
|
|
53
39
|
//# sourceMappingURL=update-note.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-note.d.cts","names":[],"sources":["../../src/actions/update-note.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-note.d.cts","names":[],"sources":["../../src/actions/update-note.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cA4BnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAIpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { folk } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-note.d.ts
|
|
@@ -31,23 +33,7 @@ declare const FolkUpdateNoteOutput: z.ZodObject<{
|
|
|
31
33
|
visibility: z.ZodNullable<z.ZodString>;
|
|
32
34
|
}, z.core.$loose>>;
|
|
33
35
|
}, z.core.$loose>;
|
|
34
|
-
declare const folkUpdateNote:
|
|
35
|
-
note_id: string;
|
|
36
|
-
content?: string | undefined;
|
|
37
|
-
visibility?: "public" | "private" | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"folk", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"folk", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
generic_api_key: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>]>;
|
|
36
|
+
declare const folkUpdateNote: AppAction<typeof FolkUpdateNoteInput, typeof FolkUpdateNoteOutput, typeof folk.credential>;
|
|
51
37
|
//#endregion
|
|
52
38
|
export { folkUpdateNote };
|
|
53
39
|
//# sourceMappingURL=update-note.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-note.d.mts","names":[],"sources":["../../src/actions/update-note.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-note.d.mts","names":[],"sources":["../../src/actions/update-note.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;cA4BnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAIpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-note.mjs","names":[],"sources":["../../src/actions/update-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdateNoteInput = z.object({\n content: z.string().describe(\"The content of the note in plain text or markdown format.\").optional(),\n note_id: z.string().describe(\"The ID of the note to update.\"),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility level for a note.\").optional(),\n}).describe(\"Request schema for updating an existing note. Only provided fields will be updated.\");\nconst FolkUpdateNote_UpdateNoteAuthorSchema = z.object({\n id: z.string().describe(\"Author ID if available.\").nullable().optional(),\n email: z.string().describe(\"Email of the author.\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the author.\").nullable().optional(),\n}).passthrough().describe(\"Author information for the note (user, assistant, or deleted).\");\nconst FolkUpdateNote_UpdateNoteEntitySchema = z.object({\n id: z.string().describe(\"Entity ID.\").nullable(),\n fullName: z.string().describe(\"Full name of the entity.\").nullable().optional(),\n entityType: z.string().describe(\"Type of entity (person, company, etc).\").nullable(),\n}).passthrough().describe(\"Entity (person, company, or object) connected to the note.\");\nconst FolkUpdateNote_UpdateNoteParentNoteSchema = z.object({\n id: z.string().describe(\"Parent note ID.\").nullable(),\n content: z.string().describe(\"Parent note content.\").nullable().optional(),\n}).passthrough().describe(\"Parent note reference if this note is a reply.\");\nconst FolkUpdateNote_UpdateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the note.\").nullable(),\n author: FolkUpdateNote_UpdateNoteAuthorSchema.nullable().optional(),\n entity: FolkUpdateNote_UpdateNoteEntitySchema.nullable().optional(),\n content: z.string().describe(\"Content of the note.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable().optional(),\n parentNote: FolkUpdateNote_UpdateNoteParentNoteSchema.nullable().optional(),\n visibility: z.string().describe(\"Visibility of the note (public or private).\").nullable(),\n}).passthrough().describe(\"Data returned after updating a note.\");\nexport const FolkUpdateNoteOutput = z.object({\n data: FolkUpdateNote_UpdateNoteResponseDataSchema.nullable(),\n}).passthrough().describe(\"Full response schema for updating a note.\");\n\nexport const folkUpdateNote = action(\"FOLK_UPDATE_NOTE\", {\n slug: \"folk-update-note\",\n name: \"Update Note\",\n description: \"Tool to update an existing note in the workspace. Use after confirming the note ID; only provided fields are updated.\",\n input: FolkUpdateNoteInput,\n output: FolkUpdateNoteOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-note.mjs","names":[],"sources":["../../src/actions/update-note.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { folk } from \"../app\";\n\nexport const FolkUpdateNoteInput = z.object({\n content: z.string().describe(\"The content of the note in plain text or markdown format.\").optional(),\n note_id: z.string().describe(\"The ID of the note to update.\"),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility level for a note.\").optional(),\n}).describe(\"Request schema for updating an existing note. Only provided fields will be updated.\");\nconst FolkUpdateNote_UpdateNoteAuthorSchema = z.object({\n id: z.string().describe(\"Author ID if available.\").nullable().optional(),\n email: z.string().describe(\"Email of the author.\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the author.\").nullable().optional(),\n}).passthrough().describe(\"Author information for the note (user, assistant, or deleted).\");\nconst FolkUpdateNote_UpdateNoteEntitySchema = z.object({\n id: z.string().describe(\"Entity ID.\").nullable(),\n fullName: z.string().describe(\"Full name of the entity.\").nullable().optional(),\n entityType: z.string().describe(\"Type of entity (person, company, etc).\").nullable(),\n}).passthrough().describe(\"Entity (person, company, or object) connected to the note.\");\nconst FolkUpdateNote_UpdateNoteParentNoteSchema = z.object({\n id: z.string().describe(\"Parent note ID.\").nullable(),\n content: z.string().describe(\"Parent note content.\").nullable().optional(),\n}).passthrough().describe(\"Parent note reference if this note is a reply.\");\nconst FolkUpdateNote_UpdateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the note.\").nullable(),\n author: FolkUpdateNote_UpdateNoteAuthorSchema.nullable().optional(),\n entity: FolkUpdateNote_UpdateNoteEntitySchema.nullable().optional(),\n content: z.string().describe(\"Content of the note.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable().optional(),\n parentNote: FolkUpdateNote_UpdateNoteParentNoteSchema.nullable().optional(),\n visibility: z.string().describe(\"Visibility of the note (public or private).\").nullable(),\n}).passthrough().describe(\"Data returned after updating a note.\");\nexport const FolkUpdateNoteOutput = z.object({\n data: FolkUpdateNote_UpdateNoteResponseDataSchema.nullable(),\n}).passthrough().describe(\"Full response schema for updating a note.\");\n\nexport const folkUpdateNote: AppAction<\n typeof FolkUpdateNoteInput,\n typeof FolkUpdateNoteOutput,\n typeof folk.credential\n> = action(\"FOLK_UPDATE_NOTE\", {\n slug: \"folk-update-note\",\n name: \"Update Note\",\n description: \"Tool to update an existing note in the workspace. Use after confirming the note ID; only provided fields are updated.\",\n input: FolkUpdateNoteInput,\n output: FolkUpdateNoteOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5D,YAAY,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SA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7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-person.cjs","names":["z","action"],"sources":["../../src/actions/update-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdatePersonInput = z.object({\n urls: z.array(z.string()).describe(\"List of URLs associated with the person; replaces existing URLs.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the person; replaces existing emails.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"Groups to associate with the person; list values replace existing groups. When removing a person from a group, their custom field values for that group are also removed.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the person; replaces existing phones.\").optional(),\n birthday: z.string().describe(\"The person's birthday in ISO 8601 date format (YYYY-MM-DD). Set to null to remove.\").optional(),\n fullName: z.string().describe(\"The full name of the person.\").optional(),\n jobTitle: z.string().describe(\"The job title of the person.\").optional(),\n lastName: z.string().describe(\"The last name of the person.\").optional(),\n personId: z.string().describe(\"The ID of the person to update. Must be exactly 40 characters long.\"),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the person; replaces existing addresses.\").optional(),\n companies: z.array(z.object({\n id: z.string().describe(\"ID of an existing company. Use this to reference an existing company.\").optional(),\n name: z.string().describe(\"Name of the company. Use this to create a new company or reference by name.\").optional(),\n}).passthrough().describe(\"Reference to a company by name or ID.\")).describe(\"Companies to associate with the person; list values replace existing companies.\").optional(),\n firstName: z.string().describe(\"The first name of the person.\").optional(),\n description: z.string().describe(\"A short description of the person.\").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 updating an existing person. Only provided fields will be updated; list fields replace existing values entirely.\");\nconst FolkUpdatePerson_UpdatePersonGroupSchema = z.object({\n id: z.string().describe(\"Group ID.\").nullable(),\n name: z.string().describe(\"Group name.\").nullable(),\n}).passthrough().describe(\"A group associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCompanySchema = z.object({\n id: z.string().describe(\"Company ID.\").nullable(),\n name: z.string().describe(\"Company name.\").nullable(),\n}).passthrough().describe(\"A company associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCreatedBySchema = z.object({\n id: z.string().describe(\"The user's unique identifier\").nullable(),\n email: z.string().describe(\"The user's email address\").nullable(),\n fullName: z.string().describe(\"The user's full name\").nullable(),\n}).passthrough().describe(\"User information for the person who created this record.\");\nconst FolkUpdatePerson_UpdatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the person.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the person.\").nullable().optional(),\n emails: z.array(z.string()).describe(\"Email addresses associated with the person.\").nullable().optional(),\n groups: z.array(FolkUpdatePerson_UpdatePersonGroupSchema).describe(\"Groups associated with the person.\").nullable().optional(),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the person.\").nullable().optional(),\n birthday: z.string().describe(\"The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set.\").nullable().optional(),\n fullName: z.string().describe(\"The person's full name.\").nullable().optional(),\n jobTitle: z.string().describe(\"The person's job title.\").nullable().optional(),\n lastName: z.string().describe(\"The person's last name.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the person.\").nullable().optional(),\n companies: z.array(FolkUpdatePerson_UpdatePersonCompanySchema).describe(\"Companies associated with the person.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp of when this person record was created.\").nullable().optional(),\n createdBy: FolkUpdatePerson_UpdatePersonCreatedBySchema.nullable().optional(),\n firstName: z.string().describe(\"The person's first name.\").nullable().optional(),\n description: z.string().describe(\"Description of the person.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values keyed by group ID.\").nullable().optional(),\n interactionMetadata: z.record(z.string(), z.unknown()).describe(\"Metadata about interactions with this person, including counts and timestamps.\").nullable().optional(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Information about the strongest connection to this person.\").nullable().optional(),\n}).passthrough().describe(\"Data returned after updating a person.\");\nexport const FolkUpdatePersonOutput = z.object({\n data: FolkUpdatePerson_UpdatePersonResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for updating a person.\");\n\nexport const folkUpdatePerson = action(\"FOLK_UPDATE_PERSON\", {\n slug: \"folk-update-person\",\n name: \"Update Person\",\n description: \"Tool to update an existing person in the workspace. Use after confirming the person ID; only provided fields are updated and list fields replace existing values.\",\n input: FolkUpdatePersonInput,\n output: FolkUpdatePersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAChH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC/H,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;CAC3P,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC7H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC7H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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AE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAM,gDAAgD,SAAS;CAC/D,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-person.cjs","names":["z","action"],"sources":["../../src/actions/update-person.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { folk } from \"../app\";\n\nexport const FolkUpdatePersonInput = z.object({\n urls: z.array(z.string()).describe(\"List of URLs associated with the person; replaces existing URLs.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the person; replaces existing emails.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"Groups to associate with the person; list values replace existing groups. When removing a person from a group, their custom field values for that group are also removed.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the person; replaces existing phones.\").optional(),\n birthday: z.string().describe(\"The person's birthday in ISO 8601 date format (YYYY-MM-DD). Set to null to remove.\").optional(),\n fullName: z.string().describe(\"The full name of the person.\").optional(),\n jobTitle: z.string().describe(\"The job title of the person.\").optional(),\n lastName: z.string().describe(\"The last name of the person.\").optional(),\n personId: z.string().describe(\"The ID of the person to update. Must be exactly 40 characters long.\"),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the person; replaces existing addresses.\").optional(),\n companies: z.array(z.object({\n id: z.string().describe(\"ID of an existing company. Use this to reference an existing company.\").optional(),\n name: z.string().describe(\"Name of the company. Use this to create a new company or reference by name.\").optional(),\n}).passthrough().describe(\"Reference to a company by name or ID.\")).describe(\"Companies to associate with the person; list values replace existing companies.\").optional(),\n firstName: z.string().describe(\"The first name of the person.\").optional(),\n description: z.string().describe(\"A short description of the person.\").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 updating an existing person. Only provided fields will be updated; list fields replace existing values entirely.\");\nconst FolkUpdatePerson_UpdatePersonGroupSchema = z.object({\n id: z.string().describe(\"Group ID.\").nullable(),\n name: z.string().describe(\"Group name.\").nullable(),\n}).passthrough().describe(\"A group associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCompanySchema = z.object({\n id: z.string().describe(\"Company ID.\").nullable(),\n name: z.string().describe(\"Company name.\").nullable(),\n}).passthrough().describe(\"A company associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCreatedBySchema = z.object({\n id: z.string().describe(\"The user's unique identifier\").nullable(),\n email: z.string().describe(\"The user's email address\").nullable(),\n fullName: z.string().describe(\"The user's full name\").nullable(),\n}).passthrough().describe(\"User information for the person who created this record.\");\nconst FolkUpdatePerson_UpdatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the person.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the person.\").nullable().optional(),\n emails: z.array(z.string()).describe(\"Email addresses associated with the person.\").nullable().optional(),\n groups: z.array(FolkUpdatePerson_UpdatePersonGroupSchema).describe(\"Groups associated with the person.\").nullable().optional(),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the person.\").nullable().optional(),\n birthday: z.string().describe(\"The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set.\").nullable().optional(),\n fullName: z.string().describe(\"The person's full name.\").nullable().optional(),\n jobTitle: z.string().describe(\"The person's job title.\").nullable().optional(),\n lastName: z.string().describe(\"The person's last name.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the person.\").nullable().optional(),\n companies: z.array(FolkUpdatePerson_UpdatePersonCompanySchema).describe(\"Companies associated with the person.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp of when this person record was created.\").nullable().optional(),\n createdBy: FolkUpdatePerson_UpdatePersonCreatedBySchema.nullable().optional(),\n firstName: z.string().describe(\"The person's first name.\").nullable().optional(),\n description: z.string().describe(\"Description of the person.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values keyed by group ID.\").nullable().optional(),\n interactionMetadata: z.record(z.string(), z.unknown()).describe(\"Metadata about interactions with this person, including counts and timestamps.\").nullable().optional(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Information about the strongest connection to this person.\").nullable().optional(),\n}).passthrough().describe(\"Data returned after updating a person.\");\nexport const FolkUpdatePersonOutput = z.object({\n data: FolkUpdatePerson_UpdatePersonResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for updating a person.\");\n\nexport const folkUpdatePerson: AppAction<\n typeof FolkUpdatePersonInput,\n typeof FolkUpdatePersonOutput,\n typeof folk.credential\n> = action(\"FOLK_UPDATE_PERSON\", {\n slug: \"folk-update-person\",\n name: \"Update Person\",\n description: \"Tool to update an existing person in the workspace. Use after confirming the person ID; only provided fields are updated and list fields replace existing values.\",\n input: FolkUpdatePersonInput,\n output: FolkUpdatePersonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAA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//#region src/actions/update-person.d.ts
|
|
@@ -55,41 +57,7 @@ declare const FolkUpdatePersonOutput: z.ZodObject<{
|
|
|
55
57
|
}, z.core.$loose>>;
|
|
56
58
|
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
57
59
|
}, z.core.$loose>;
|
|
58
|
-
declare const folkUpdatePerson:
|
|
59
|
-
personId: string;
|
|
60
|
-
urls?: string[] | undefined;
|
|
61
|
-
emails?: string[] | undefined;
|
|
62
|
-
groups?: {
|
|
63
|
-
[x: string]: unknown;
|
|
64
|
-
id: string;
|
|
65
|
-
}[] | undefined;
|
|
66
|
-
phones?: string[] | undefined;
|
|
67
|
-
birthday?: string | undefined;
|
|
68
|
-
fullName?: string | undefined;
|
|
69
|
-
jobTitle?: string | undefined;
|
|
70
|
-
lastName?: string | undefined;
|
|
71
|
-
addresses?: string[] | undefined;
|
|
72
|
-
companies?: {
|
|
73
|
-
[x: string]: unknown;
|
|
74
|
-
id?: string | undefined;
|
|
75
|
-
name?: string | undefined;
|
|
76
|
-
}[] | undefined;
|
|
77
|
-
firstName?: string | undefined;
|
|
78
|
-
description?: string | undefined;
|
|
79
|
-
customFieldValues?: Record<string, unknown> | undefined;
|
|
80
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"folk", z.ZodObject<{
|
|
81
|
-
connectionId: z.ZodString;
|
|
82
|
-
entityId: z.ZodString;
|
|
83
|
-
instanceId: z.ZodString;
|
|
84
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
-
generic_api_key: z.ZodString;
|
|
86
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"folk", z.ZodObject<{
|
|
87
|
-
connectionId: z.ZodString;
|
|
88
|
-
entityId: z.ZodString;
|
|
89
|
-
instanceId: z.ZodString;
|
|
90
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
-
generic_api_key: z.ZodString;
|
|
92
|
-
}, z.core.$strip>>]>;
|
|
60
|
+
declare const folkUpdatePerson: AppAction<typeof FolkUpdatePersonInput, typeof FolkUpdatePersonOutput, typeof folk.credential>;
|
|
93
61
|
//#endregion
|
|
94
62
|
export { folkUpdatePerson };
|
|
95
63
|
//# sourceMappingURL=update-person.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-person.d.cts","names":[],"sources":["../../src/actions/update-person.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-person.d.cts","names":[],"sources":["../../src/actions/update-person.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAsDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { folk } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-person.d.ts
|
|
@@ -55,41 +57,7 @@ declare const FolkUpdatePersonOutput: z.ZodObject<{
|
|
|
55
57
|
}, z.core.$loose>>;
|
|
56
58
|
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
57
59
|
}, z.core.$loose>;
|
|
58
|
-
declare const folkUpdatePerson:
|
|
59
|
-
personId: string;
|
|
60
|
-
urls?: string[] | undefined;
|
|
61
|
-
emails?: string[] | undefined;
|
|
62
|
-
groups?: {
|
|
63
|
-
[x: string]: unknown;
|
|
64
|
-
id: string;
|
|
65
|
-
}[] | undefined;
|
|
66
|
-
phones?: string[] | undefined;
|
|
67
|
-
birthday?: string | undefined;
|
|
68
|
-
fullName?: string | undefined;
|
|
69
|
-
jobTitle?: string | undefined;
|
|
70
|
-
lastName?: string | undefined;
|
|
71
|
-
addresses?: string[] | undefined;
|
|
72
|
-
companies?: {
|
|
73
|
-
[x: string]: unknown;
|
|
74
|
-
id?: string | undefined;
|
|
75
|
-
name?: string | undefined;
|
|
76
|
-
}[] | undefined;
|
|
77
|
-
firstName?: string | undefined;
|
|
78
|
-
description?: string | undefined;
|
|
79
|
-
customFieldValues?: Record<string, unknown> | undefined;
|
|
80
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"folk", z.ZodObject<{
|
|
81
|
-
connectionId: z.ZodString;
|
|
82
|
-
entityId: z.ZodString;
|
|
83
|
-
instanceId: z.ZodString;
|
|
84
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
-
generic_api_key: z.ZodString;
|
|
86
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"folk", z.ZodObject<{
|
|
87
|
-
connectionId: z.ZodString;
|
|
88
|
-
entityId: z.ZodString;
|
|
89
|
-
instanceId: z.ZodString;
|
|
90
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
-
generic_api_key: z.ZodString;
|
|
92
|
-
}, z.core.$strip>>]>;
|
|
60
|
+
declare const folkUpdatePerson: AppAction<typeof FolkUpdatePersonInput, typeof FolkUpdatePersonOutput, typeof folk.credential>;
|
|
93
61
|
//#endregion
|
|
94
62
|
export { folkUpdatePerson };
|
|
95
63
|
//# sourceMappingURL=update-person.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-person.d.mts","names":[],"sources":["../../src/actions/update-person.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-person.d.mts","names":[],"sources":["../../src/actions/update-person.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAsDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-person.mjs","names":[],"sources":["../../src/actions/update-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdatePersonInput = z.object({\n urls: z.array(z.string()).describe(\"List of URLs associated with the person; replaces existing URLs.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the person; replaces existing emails.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"Groups to associate with the person; list values replace existing groups. When removing a person from a group, their custom field values for that group are also removed.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the person; replaces existing phones.\").optional(),\n birthday: z.string().describe(\"The person's birthday in ISO 8601 date format (YYYY-MM-DD). Set to null to remove.\").optional(),\n fullName: z.string().describe(\"The full name of the person.\").optional(),\n jobTitle: z.string().describe(\"The job title of the person.\").optional(),\n lastName: z.string().describe(\"The last name of the person.\").optional(),\n personId: z.string().describe(\"The ID of the person to update. Must be exactly 40 characters long.\"),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the person; replaces existing addresses.\").optional(),\n companies: z.array(z.object({\n id: z.string().describe(\"ID of an existing company. Use this to reference an existing company.\").optional(),\n name: z.string().describe(\"Name of the company. Use this to create a new company or reference by name.\").optional(),\n}).passthrough().describe(\"Reference to a company by name or ID.\")).describe(\"Companies to associate with the person; list values replace existing companies.\").optional(),\n firstName: z.string().describe(\"The first name of the person.\").optional(),\n description: z.string().describe(\"A short description of the person.\").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 updating an existing person. Only provided fields will be updated; list fields replace existing values entirely.\");\nconst FolkUpdatePerson_UpdatePersonGroupSchema = z.object({\n id: z.string().describe(\"Group ID.\").nullable(),\n name: z.string().describe(\"Group name.\").nullable(),\n}).passthrough().describe(\"A group associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCompanySchema = z.object({\n id: z.string().describe(\"Company ID.\").nullable(),\n name: z.string().describe(\"Company name.\").nullable(),\n}).passthrough().describe(\"A company associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCreatedBySchema = z.object({\n id: z.string().describe(\"The user's unique identifier\").nullable(),\n email: z.string().describe(\"The user's email address\").nullable(),\n fullName: z.string().describe(\"The user's full name\").nullable(),\n}).passthrough().describe(\"User information for the person who created this record.\");\nconst FolkUpdatePerson_UpdatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the person.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the person.\").nullable().optional(),\n emails: z.array(z.string()).describe(\"Email addresses associated with the person.\").nullable().optional(),\n groups: z.array(FolkUpdatePerson_UpdatePersonGroupSchema).describe(\"Groups associated with the person.\").nullable().optional(),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the person.\").nullable().optional(),\n birthday: z.string().describe(\"The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set.\").nullable().optional(),\n fullName: z.string().describe(\"The person's full name.\").nullable().optional(),\n jobTitle: z.string().describe(\"The person's job title.\").nullable().optional(),\n lastName: z.string().describe(\"The person's last name.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the person.\").nullable().optional(),\n companies: z.array(FolkUpdatePerson_UpdatePersonCompanySchema).describe(\"Companies associated with the person.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp of when this person record was created.\").nullable().optional(),\n createdBy: FolkUpdatePerson_UpdatePersonCreatedBySchema.nullable().optional(),\n firstName: z.string().describe(\"The person's first name.\").nullable().optional(),\n description: z.string().describe(\"Description of the person.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values keyed by group ID.\").nullable().optional(),\n interactionMetadata: z.record(z.string(), z.unknown()).describe(\"Metadata about interactions with this person, including counts and timestamps.\").nullable().optional(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Information about the strongest connection to this person.\").nullable().optional(),\n}).passthrough().describe(\"Data returned after updating a person.\");\nexport const FolkUpdatePersonOutput = z.object({\n data: FolkUpdatePerson_UpdatePersonResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for updating a person.\");\n\nexport const folkUpdatePerson = action(\"FOLK_UPDATE_PERSON\", {\n slug: \"folk-update-person\",\n name: \"Update Person\",\n description: \"Tool to update an existing person in the workspace. Use after confirming the person ID; only provided fields are updated and list fields replace existing values.\",\n input: FolkUpdatePersonInput,\n output: FolkUpdatePersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAChH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC/H,QAAQ,EAAE,MAAM,EAAE,OAAO,EACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;CAC3P,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,UAAU,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Content":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { folk } from \"../app\";\n\nexport const FolkUpdatePersonInput = z.object({\n urls: z.array(z.string()).describe(\"List of URLs associated with the person; replaces existing URLs.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the person; replaces existing emails.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"Groups to associate with the person; list values replace existing groups. When removing a person from a group, their custom field values for that group are also removed.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the person; replaces existing phones.\").optional(),\n birthday: z.string().describe(\"The person's birthday in ISO 8601 date format (YYYY-MM-DD). Set to null to remove.\").optional(),\n fullName: z.string().describe(\"The full name of the person.\").optional(),\n jobTitle: z.string().describe(\"The job title of the person.\").optional(),\n lastName: z.string().describe(\"The last name of the person.\").optional(),\n personId: z.string().describe(\"The ID of the person to update. Must be exactly 40 characters long.\"),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the person; replaces existing addresses.\").optional(),\n companies: z.array(z.object({\n id: z.string().describe(\"ID of an existing company. Use this to reference an existing company.\").optional(),\n name: z.string().describe(\"Name of the company. Use this to create a new company or reference by name.\").optional(),\n}).passthrough().describe(\"Reference to a company by name or ID.\")).describe(\"Companies to associate with the person; list values replace existing companies.\").optional(),\n firstName: z.string().describe(\"The first name of the person.\").optional(),\n description: z.string().describe(\"A short description of the person.\").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 updating an existing person. Only provided fields will be updated; list fields replace existing values entirely.\");\nconst FolkUpdatePerson_UpdatePersonGroupSchema = z.object({\n id: z.string().describe(\"Group ID.\").nullable(),\n name: z.string().describe(\"Group name.\").nullable(),\n}).passthrough().describe(\"A group associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCompanySchema = z.object({\n id: z.string().describe(\"Company ID.\").nullable(),\n name: z.string().describe(\"Company name.\").nullable(),\n}).passthrough().describe(\"A company associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCreatedBySchema = z.object({\n id: z.string().describe(\"The user's unique identifier\").nullable(),\n email: z.string().describe(\"The user's email address\").nullable(),\n fullName: z.string().describe(\"The user's full name\").nullable(),\n}).passthrough().describe(\"User information for the person who created this record.\");\nconst FolkUpdatePerson_UpdatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the person.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the person.\").nullable().optional(),\n emails: z.array(z.string()).describe(\"Email addresses associated with the person.\").nullable().optional(),\n groups: z.array(FolkUpdatePerson_UpdatePersonGroupSchema).describe(\"Groups associated with the person.\").nullable().optional(),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the person.\").nullable().optional(),\n birthday: z.string().describe(\"The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set.\").nullable().optional(),\n fullName: z.string().describe(\"The person's full name.\").nullable().optional(),\n jobTitle: z.string().describe(\"The person's job title.\").nullable().optional(),\n lastName: z.string().describe(\"The person's last name.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the person.\").nullable().optional(),\n companies: z.array(FolkUpdatePerson_UpdatePersonCompanySchema).describe(\"Companies associated with the person.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp of when this person record was created.\").nullable().optional(),\n createdBy: FolkUpdatePerson_UpdatePersonCreatedBySchema.nullable().optional(),\n firstName: z.string().describe(\"The person's first name.\").nullable().optional(),\n description: z.string().describe(\"Description of the person.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values keyed by group ID.\").nullable().optional(),\n interactionMetadata: z.record(z.string(), z.unknown()).describe(\"Metadata about interactions with this person, including counts and timestamps.\").nullable().optional(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Information about the strongest connection to this person.\").nullable().optional(),\n}).passthrough().describe(\"Data returned after updating a person.\");\nexport const FolkUpdatePersonOutput = z.object({\n data: FolkUpdatePerson_UpdatePersonResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for updating a person.\");\n\nexport const folkUpdatePerson: AppAction<\n typeof FolkUpdatePersonInput,\n typeof FolkUpdatePersonOutput,\n typeof folk.credential\n> = action(\"FOLK_UPDATE_PERSON\", {\n slug: \"folk-update-person\",\n name: \"Update Person\",\n description: \"Tool to update an existing person in the workspace. Use after confirming the person ID; only provided fields are updated and list fields replace existing values.\",\n input: FolkUpdatePersonInput,\n output: FolkUpdatePersonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAChH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC/H,QAAQ,EAAE,MAAM,EAAE,OAAO,EACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;CAC3P,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,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|
|
2
|
-
let zod = require("zod");
|
|
3
2
|
//#region src/app.ts
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
4
|
const folk = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
5
|
slug: "folk",
|
|
6
6
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
7
|
+
credential
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.folk = folk;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const folk = defineApp({\n slug: \"folk\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const folk: KeystrokeApp<\"folk\", typeof credential> = defineApp({\n slug: \"folk\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,QAAA,GAAA,2BAAA,UAAA,CAA0D;CACrE,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const folk: KeystrokeApp<"folk", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { folk };
|
|
13
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,IAAA,EAAM,YAAY,gBAAgB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const folk: KeystrokeApp<"folk", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { folk };
|
|
13
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,IAAA,EAAM,YAAY,gBAAgB,UAAA"}
|
package/dist/app.mjs
CHANGED
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const folk = defineApp({\n slug: \"folk\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const folk: KeystrokeApp<\"folk\", typeof credential> = defineApp({\n slug: \"folk\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,OAAgD,UAAU;CACrE,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { folk } from "./app.cjs";
|
|
1
2
|
import { folkCreateCompany } from "./actions/create-company.cjs";
|
|
2
3
|
import { folkCreateNote } from "./actions/create-note.cjs";
|
|
3
4
|
import { folkCreatePerson } from "./actions/create-person.cjs";
|
|
@@ -21,6 +22,5 @@ import { folkListWebhooks } from "./actions/list-webhooks.cjs";
|
|
|
21
22
|
import { folkUpdateCompany } from "./actions/update-company.cjs";
|
|
22
23
|
import { folkUpdateNote } from "./actions/update-note.cjs";
|
|
23
24
|
import { folkUpdatePerson } from "./actions/update-person.cjs";
|
|
24
|
-
import { folk } from "./app.cjs";
|
|
25
25
|
import { folkCatalog } from "./catalog.cjs";
|
|
26
26
|
export { folk, folkCatalog, folkCreateCompany, folkCreateNote, folkCreatePerson, folkDeleteCompany, folkDeleteNote, folkDeletePerson, folkDeleteReminder, folkGetCompany, folkGetCurrentWorkspaceUser, folkGetNote, folkGetPerson, folkGetUser, folkListCompanies, folkListGroupCustomFields, folkListGroups, folkListNotes, folkListPeople, folkListReminders, folkListUsers, folkListWebhooks, folkUpdateCompany, folkUpdateNote, folkUpdatePerson };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { folk } from "./app.mjs";
|
|
1
2
|
import { folkCreateCompany } from "./actions/create-company.mjs";
|
|
2
3
|
import { folkCreateNote } from "./actions/create-note.mjs";
|
|
3
4
|
import { folkCreatePerson } from "./actions/create-person.mjs";
|
|
@@ -21,6 +22,5 @@ import { folkListWebhooks } from "./actions/list-webhooks.mjs";
|
|
|
21
22
|
import { folkUpdateCompany } from "./actions/update-company.mjs";
|
|
22
23
|
import { folkUpdateNote } from "./actions/update-note.mjs";
|
|
23
24
|
import { folkUpdatePerson } from "./actions/update-person.mjs";
|
|
24
|
-
import { folk } from "./app.mjs";
|
|
25
25
|
import { folkCatalog } from "./catalog.mjs";
|
|
26
26
|
export { folk, folkCatalog, folkCreateCompany, folkCreateNote, folkCreatePerson, folkDeleteCompany, folkDeleteNote, folkDeletePerson, folkDeleteReminder, folkGetCompany, folkGetCurrentWorkspaceUser, folkGetNote, folkGetPerson, folkGetUser, folkListCompanies, folkListGroupCustomFields, folkListGroups, folkListNotes, folkListPeople, folkListReminders, folkListUsers, folkListWebhooks, folkUpdateCompany, folkUpdateNote, folkUpdatePerson };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/folk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
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": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|