@keystrokehq/folk 0.1.4 → 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 -18
- package/dist/actions/create-company.d.cts.map +1 -1
- package/dist/actions/create-company.d.mts +3 -18
- 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 -10
- package/dist/actions/create-note.d.cts.map +1 -1
- package/dist/actions/create-note.d.mts +3 -10
- 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 -11
- package/dist/actions/create-person.d.cts.map +1 -1
- package/dist/actions/create-person.d.mts +3 -11
- 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 -3
- package/dist/actions/delete-company.d.cts.map +1 -1
- package/dist/actions/delete-company.d.mts +3 -3
- 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 -3
- package/dist/actions/delete-note.d.cts.map +1 -1
- package/dist/actions/delete-note.d.mts +3 -3
- 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 -3
- package/dist/actions/delete-person.d.cts.map +1 -1
- package/dist/actions/delete-person.d.mts +3 -3
- 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 -3
- package/dist/actions/delete-reminder.d.cts.map +1 -1
- package/dist/actions/delete-reminder.d.mts +3 -3
- 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 -3
- package/dist/actions/get-company.d.cts.map +1 -1
- package/dist/actions/get-company.d.mts +3 -3
- 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 -1
- package/dist/actions/get-current-workspace-user.d.cts.map +1 -1
- package/dist/actions/get-current-workspace-user.d.mts +3 -1
- 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 -3
- package/dist/actions/get-note.d.cts.map +1 -1
- package/dist/actions/get-note.d.mts +3 -3
- 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 -3
- package/dist/actions/get-person.d.cts.map +1 -1
- package/dist/actions/get-person.d.mts +3 -3
- 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 -3
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +3 -3
- 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 -6
- package/dist/actions/list-companies.d.cts.map +1 -1
- package/dist/actions/list-companies.d.mts +3 -6
- 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 -6
- package/dist/actions/list-group-custom-fields.d.cts.map +1 -1
- package/dist/actions/list-group-custom-fields.d.mts +3 -6
- 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 -4
- package/dist/actions/list-groups.d.cts.map +1 -1
- package/dist/actions/list-groups.d.mts +3 -4
- 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 -4
- package/dist/actions/list-notes.d.cts.map +1 -1
- package/dist/actions/list-notes.d.mts +3 -4
- 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 -7
- package/dist/actions/list-people.d.cts.map +1 -1
- package/dist/actions/list-people.d.mts +3 -7
- 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 -5
- package/dist/actions/list-reminders.d.cts.map +1 -1
- package/dist/actions/list-reminders.d.mts +3 -5
- 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 -4
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +3 -4
- 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 -4
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +3 -4
- 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 -14
- package/dist/actions/update-company.d.cts.map +1 -1
- package/dist/actions/update-company.d.mts +3 -14
- 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 -5
- package/dist/actions/update-note.d.cts.map +1 -1
- package/dist/actions/update-note.d.mts +3 -5
- 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 -23
- package/dist/actions/update-person.d.cts.map +1 -1
- package/dist/actions/update-person.d.mts +3 -23
- 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 +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- 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":"get-note.mjs","names":[],"sources":["../../src/actions/get-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkGetNoteInput = z.object({\n note_id: z.string().describe(\"The ID of the note to retrieve. Must be exactly 40 characters long.\"),\n}).describe(\"Request parameters for retrieving a note by its ID.\");\nconst FolkGetNote_GetNoteActiveUserSchema = z.object({\n id: z.string().describe(\"User identifier\").nullable(),\n type: z.string().describe(\"Author type for active user\").nullable(),\n email: z.string().describe(\"User's email address\").nullable(),\n deleted: z.boolean().describe(\"User deletion status\").nullable(),\n fullName: z.string().describe(\"User's full name\").nullable(),\n}).passthrough().describe(\"Active user author information.\");\nconst FolkGetNote_GetNoteDeletedUserSchema = z.object({\n id: z.string().describe(\"User identifier\").nullable(),\n type: z.string().describe(\"Author type for deleted user\").nullable(),\n deleted: z.boolean().describe(\"User deletion status\").nullable(),\n}).passthrough().describe(\"Deleted user author information.\");\nconst FolkGetNote_GetNoteAssistantSchema = z.object({\n type: z.string().describe(\"Author type for assistant\").nullable(),\n fullName: z.string().describe(\"Assistant's display name\").nullable(),\n}).passthrough().describe(\"Assistant author information.\");\nconst FolkGetNote_GetNoteEntitySchema = z.object({\n id: z.string().describe(\"Entity identifier (40 characters)\").nullable(),\n fullName: z.string().describe(\"Full name of the entity\").nullable(),\n entityType: z.enum([\"person\", \"company\", \"object\"]).describe(\"Type of entity the note is attached to\").nullable(),\n}).passthrough().describe(\"Entity (person, company, or object) associated with the note.\");\nconst FolkGetNote_GetNoteParentNoteSchema = z.object({\n id: z.string().describe(\"Parent note identifier\").nullable(),\n author: z.union([FolkGetNote_GetNoteActiveUserSchema, FolkGetNote_GetNoteDeletedUserSchema, FolkGetNote_GetNoteAssistantSchema]).nullable().optional(),\n entity: FolkGetNote_GetNoteEntitySchema.nullable().optional(),\n content: z.string().describe(\"Parent note content\").nullable().optional(),\n deleted: z.boolean().describe(\"Whether the parent note has been deleted\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the parent note was created\").nullable().optional(),\n parentNote: z.record(z.string(), z.unknown()).describe(\"Grandparent note if parent is also a reply\").nullable().optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility of the parent note\").nullable().optional(),\n}).passthrough().describe(\"Parent note information if this note is a reply.\");\nconst FolkGetNote_GetNoteDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the note\").nullable(),\n author: z.union([FolkGetNote_GetNoteActiveUserSchema, FolkGetNote_GetNoteDeletedUserSchema, FolkGetNote_GetNoteAssistantSchema]),\n entity: FolkGetNote_GetNoteEntitySchema.nullable(),\n content: z.string().describe(\"Note content in text or markdown format\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created\").nullable().optional(),\n parentNote: FolkGetNote_GetNoteParentNoteSchema.nullable().optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility setting for the note\").nullable(),\n}).passthrough().describe(\"Note data object returned by the API.\");\nexport const FolkGetNoteOutput = z.object({\n data: FolkGetNote_GetNoteDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"List of deprecation warnings, if any\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for get-note endpoint.\");\n\nexport const folkGetNote = action(\"FOLK_GET_NOTE\", {\n slug: \"folk-get-note\",\n name: \"Get Note\",\n description: \"Tool to retrieve an existing note by its ID. Use when you need the full content and metadata of a specific note.\",\n input: FolkGetNoteInput,\n output: FolkGetNoteOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-note.mjs","names":[],"sources":["../../src/actions/get-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 FolkGetNoteInput = z.object({\n note_id: z.string().describe(\"The ID of the note to retrieve. Must be exactly 40 characters long.\"),\n}).describe(\"Request parameters for retrieving a note by its ID.\");\nconst FolkGetNote_GetNoteActiveUserSchema = z.object({\n id: z.string().describe(\"User identifier\").nullable(),\n type: z.string().describe(\"Author type for active user\").nullable(),\n email: z.string().describe(\"User's email address\").nullable(),\n deleted: z.boolean().describe(\"User deletion status\").nullable(),\n fullName: z.string().describe(\"User's full name\").nullable(),\n}).passthrough().describe(\"Active user author information.\");\nconst FolkGetNote_GetNoteDeletedUserSchema = z.object({\n id: z.string().describe(\"User identifier\").nullable(),\n type: z.string().describe(\"Author type for deleted user\").nullable(),\n deleted: z.boolean().describe(\"User deletion status\").nullable(),\n}).passthrough().describe(\"Deleted user author information.\");\nconst FolkGetNote_GetNoteAssistantSchema = z.object({\n type: z.string().describe(\"Author type for assistant\").nullable(),\n fullName: z.string().describe(\"Assistant's display name\").nullable(),\n}).passthrough().describe(\"Assistant author information.\");\nconst FolkGetNote_GetNoteEntitySchema = z.object({\n id: z.string().describe(\"Entity identifier (40 characters)\").nullable(),\n fullName: z.string().describe(\"Full name of the entity\").nullable(),\n entityType: z.enum([\"person\", \"company\", \"object\"]).describe(\"Type of entity the note is attached to\").nullable(),\n}).passthrough().describe(\"Entity (person, company, or object) associated with the note.\");\nconst FolkGetNote_GetNoteParentNoteSchema = z.object({\n id: z.string().describe(\"Parent note identifier\").nullable(),\n author: z.union([FolkGetNote_GetNoteActiveUserSchema, FolkGetNote_GetNoteDeletedUserSchema, FolkGetNote_GetNoteAssistantSchema]).nullable().optional(),\n entity: FolkGetNote_GetNoteEntitySchema.nullable().optional(),\n content: z.string().describe(\"Parent note content\").nullable().optional(),\n deleted: z.boolean().describe(\"Whether the parent note has been deleted\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the parent note was created\").nullable().optional(),\n parentNote: z.record(z.string(), z.unknown()).describe(\"Grandparent note if parent is also a reply\").nullable().optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility of the parent note\").nullable().optional(),\n}).passthrough().describe(\"Parent note information if this note is a reply.\");\nconst FolkGetNote_GetNoteDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the note\").nullable(),\n author: z.union([FolkGetNote_GetNoteActiveUserSchema, FolkGetNote_GetNoteDeletedUserSchema, FolkGetNote_GetNoteAssistantSchema]),\n entity: FolkGetNote_GetNoteEntitySchema.nullable(),\n content: z.string().describe(\"Note content in text or markdown format\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created\").nullable().optional(),\n parentNote: FolkGetNote_GetNoteParentNoteSchema.nullable().optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility setting for the note\").nullable(),\n}).passthrough().describe(\"Note data object returned by the API.\");\nexport const FolkGetNoteOutput = z.object({\n data: FolkGetNote_GetNoteDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"List of deprecation warnings, if any\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for get-note endpoint.\");\n\nexport const folkGetNote: AppAction<\n typeof FolkGetNoteInput,\n typeof FolkGetNoteOutput,\n typeof folk.credential\n> = action(\"FOLK_GET_NOTE\", {\n slug: \"folk-get-note\",\n name: \"Get Note\",\n description: \"Tool to retrieve an existing note by its ID. Use when you need the full content and metadata of a specific note.\",\n input: FolkGetNoteInput,\n output: FolkGetNoteOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mBAAmB,EAAE,OAAO,EACvC,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,EACpG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;AAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,QAAQ,CAAC,CAAC,SA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AA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,YAAY,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAM,gCAAgC,EAAE,OAAO;CAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,QAAQ,EAAE,MAAM;EAAC;EAAqC;EAAsC;CAAkC,CAAC;CAC/H,QAAQ,gCAAgC,SAAS;CACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAY,oCAAoC,SAAS,CAAC,CAAC,SAAS;CACpE,YAAY,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAMjE,MAAa,cAIT,OAAO,iBAAiB;CAC1B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd+B,EAAE,OAAO;EACxC,MAAM,8BAA8B,SAAS;EAC7C,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-person.cjs","names":["z","action"],"sources":["../../src/actions/get-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkGetPersonInput = z.object({\n person_id: z.string().describe(\"The unique identifier of the person to retrieve. Must be exactly 40 characters long (format: per_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Request schema for retrieving a person by their unique ID.\");\nconst FolkGetPerson_GroupItemSchema = z.object({\n id: z.string().describe(\"The group's unique identifier\").nullable(),\n name: z.string().describe(\"The group's name\").nullable(),\n}).passthrough().describe(\"A group that a person belongs to.\");\nconst FolkGetPerson_CompanyItemSchema = z.object({\n id: z.string().describe(\"The company's unique identifier\").nullable(),\n name: z.string().describe(\"The company's name\").nullable(),\n}).passthrough().describe(\"A company associated with a person.\");\nconst FolkGetPerson_CreatedByUserSchema = 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.\");\nexport const FolkGetPersonOutput = z.object({\n id: z.string().describe(\"The unique identifier of the person\").nullable(),\n urls: z.array(z.string()).describe(\"A list of URLs associated with the person (websites, social profiles, etc.)\").nullable().optional(),\n emails: z.array(z.string()).describe(\"A list of the person's email addresses\").nullable().optional(),\n groups: z.array(FolkGetPerson_GroupItemSchema).describe(\"A list of groups the person belongs to\").nullable().optional(),\n phones: z.array(z.string()).describe(\"A list of the person's phone numbers\").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(\"A list of the person's street addresses\").nullable().optional(),\n companies: z.array(FolkGetPerson_CompanyItemSchema).describe(\"A list of 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: FolkGetPerson_CreatedByUserSchema.nullable().optional(),\n firstName: z.string().describe(\"The person's first name\").nullable().optional(),\n description: z.string().describe(\"A description of the person\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values organized by group ID, containing key-value pairs specific to each group\").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(\"Response schema for retrieving a person by ID.\");\n\nexport const folkGetPerson = action(\"FOLK_GET_PERSON\", {\n slug: \"folk-get-person\",\n name: \"Get Person\",\n description: \"Tool to retrieve an existing person by their ID. Use when you need full profile details of a person by their unique identifier.\",\n input: FolkGetPersonInput,\n output: FolkGetPersonOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-person.cjs","names":["z","action"],"sources":["../../src/actions/get-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 FolkGetPersonInput = z.object({\n person_id: z.string().describe(\"The unique identifier of the person to retrieve. Must be exactly 40 characters long (format: per_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Request schema for retrieving a person by their unique ID.\");\nconst FolkGetPerson_GroupItemSchema = z.object({\n id: z.string().describe(\"The group's unique identifier\").nullable(),\n name: z.string().describe(\"The group's name\").nullable(),\n}).passthrough().describe(\"A group that a person belongs to.\");\nconst FolkGetPerson_CompanyItemSchema = z.object({\n id: z.string().describe(\"The company's unique identifier\").nullable(),\n name: z.string().describe(\"The company's name\").nullable(),\n}).passthrough().describe(\"A company associated with a person.\");\nconst FolkGetPerson_CreatedByUserSchema = 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.\");\nexport const FolkGetPersonOutput = z.object({\n id: z.string().describe(\"The unique identifier of the person\").nullable(),\n urls: z.array(z.string()).describe(\"A list of URLs associated with the person (websites, social profiles, etc.)\").nullable().optional(),\n emails: z.array(z.string()).describe(\"A list of the person's email addresses\").nullable().optional(),\n groups: z.array(FolkGetPerson_GroupItemSchema).describe(\"A list of groups the person belongs to\").nullable().optional(),\n phones: z.array(z.string()).describe(\"A list of the person's phone numbers\").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(\"A list of the person's street addresses\").nullable().optional(),\n companies: z.array(FolkGetPerson_CompanyItemSchema).describe(\"A list of 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: FolkGetPerson_CreatedByUserSchema.nullable().optional(),\n firstName: z.string().describe(\"The person's first name\").nullable().optional(),\n description: z.string().describe(\"A description of the person\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values organized by group ID, containing key-value pairs specific to each group\").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(\"Response schema for retrieving a person by ID.\");\n\nexport const folkGetPerson: AppAction<\n typeof FolkGetPersonInput,\n typeof FolkGetPersonOutput,\n typeof folk.credential\n> = action(\"FOLK_GET_PERSON\", {\n slug: \"folk-get-person\",\n name: \"Get Person\",\n description: \"Tool to retrieve an existing person by their ID. Use when you need full profile details of a person by their unique identifier.\",\n input: FolkGetPersonInput,\n output: FolkGetPersonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,q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C,SAAS,CAAC,CAAC,SAAS;CACpF,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClL,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,gBAITC,eAAAA,OAAO,mBAAmB;CAC5B,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/get-person.d.ts
|
|
@@ -34,9 +36,7 @@ declare const FolkGetPersonOutput: z.ZodObject<{
|
|
|
34
36
|
interactionMetadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
35
37
|
strongestConnection: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
36
38
|
}, z.core.$loose>;
|
|
37
|
-
declare const folkGetPerson:
|
|
38
|
-
person_id: string;
|
|
39
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
39
|
+
declare const folkGetPerson: AppAction<typeof FolkGetPersonInput, typeof FolkGetPersonOutput, typeof folk.credential>;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { folkGetPerson };
|
|
42
42
|
//# sourceMappingURL=get-person.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-person.d.cts","names":[],"sources":["../../src/actions/get-person.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-person.d.cts","names":[],"sources":["../../src/actions/get-person.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;cAgBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBnB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,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/get-person.d.ts
|
|
@@ -34,9 +36,7 @@ declare const FolkGetPersonOutput: z.ZodObject<{
|
|
|
34
36
|
interactionMetadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
35
37
|
strongestConnection: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
36
38
|
}, z.core.$loose>;
|
|
37
|
-
declare const folkGetPerson:
|
|
38
|
-
person_id: string;
|
|
39
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
39
|
+
declare const folkGetPerson: AppAction<typeof FolkGetPersonInput, typeof FolkGetPersonOutput, typeof folk.credential>;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { folkGetPerson };
|
|
42
42
|
//# sourceMappingURL=get-person.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-person.d.mts","names":[],"sources":["../../src/actions/get-person.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-person.d.mts","names":[],"sources":["../../src/actions/get-person.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;cAgBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBnB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-person.mjs","names":[],"sources":["../../src/actions/get-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkGetPersonInput = z.object({\n person_id: z.string().describe(\"The unique identifier of the person to retrieve. Must be exactly 40 characters long (format: per_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Request schema for retrieving a person by their unique ID.\");\nconst FolkGetPerson_GroupItemSchema = z.object({\n id: z.string().describe(\"The group's unique identifier\").nullable(),\n name: z.string().describe(\"The group's name\").nullable(),\n}).passthrough().describe(\"A group that a person belongs to.\");\nconst FolkGetPerson_CompanyItemSchema = z.object({\n id: z.string().describe(\"The company's unique identifier\").nullable(),\n name: z.string().describe(\"The company's name\").nullable(),\n}).passthrough().describe(\"A company associated with a person.\");\nconst FolkGetPerson_CreatedByUserSchema = 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.\");\nexport const FolkGetPersonOutput = z.object({\n id: z.string().describe(\"The unique identifier of the person\").nullable(),\n urls: z.array(z.string()).describe(\"A list of URLs associated with the person (websites, social profiles, etc.)\").nullable().optional(),\n emails: z.array(z.string()).describe(\"A list of the person's email addresses\").nullable().optional(),\n groups: z.array(FolkGetPerson_GroupItemSchema).describe(\"A list of groups the person belongs to\").nullable().optional(),\n phones: z.array(z.string()).describe(\"A list of the person's phone numbers\").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(\"A list of the person's street addresses\").nullable().optional(),\n companies: z.array(FolkGetPerson_CompanyItemSchema).describe(\"A list of 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: FolkGetPerson_CreatedByUserSchema.nullable().optional(),\n firstName: z.string().describe(\"The person's first name\").nullable().optional(),\n description: z.string().describe(\"A description of the person\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values organized by group ID, containing key-value pairs specific to each group\").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(\"Response schema for retrieving a person by ID.\");\n\nexport const folkGetPerson = action(\"FOLK_GET_PERSON\", {\n slug: \"folk-get-person\",\n name: \"Get Person\",\n description: \"Tool to retrieve an existing person by their ID. Use when you need full profile details of a person by their unique identifier.\",\n input: FolkGetPersonInput,\n output: FolkGetPersonOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-person.mjs","names":[],"sources":["../../src/actions/get-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 FolkGetPersonInput = z.object({\n person_id: z.string().describe(\"The unique identifier of the person to retrieve. Must be exactly 40 characters long (format: per_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Request schema for retrieving a person by their unique ID.\");\nconst FolkGetPerson_GroupItemSchema = z.object({\n id: z.string().describe(\"The group's unique identifier\").nullable(),\n name: z.string().describe(\"The group's name\").nullable(),\n}).passthrough().describe(\"A group that a person belongs to.\");\nconst FolkGetPerson_CompanyItemSchema = z.object({\n id: z.string().describe(\"The company's unique identifier\").nullable(),\n name: z.string().describe(\"The company's name\").nullable(),\n}).passthrough().describe(\"A company associated with a person.\");\nconst FolkGetPerson_CreatedByUserSchema = 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.\");\nexport const FolkGetPersonOutput = z.object({\n id: z.string().describe(\"The unique identifier of the person\").nullable(),\n urls: z.array(z.string()).describe(\"A list of URLs associated with the person (websites, social profiles, etc.)\").nullable().optional(),\n emails: z.array(z.string()).describe(\"A list of the person's email addresses\").nullable().optional(),\n groups: z.array(FolkGetPerson_GroupItemSchema).describe(\"A list of groups the person belongs to\").nullable().optional(),\n phones: z.array(z.string()).describe(\"A list of the person's phone numbers\").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(\"A list of the person's street addresses\").nullable().optional(),\n companies: z.array(FolkGetPerson_CompanyItemSchema).describe(\"A list of 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: FolkGetPerson_CreatedByUserSchema.nullable().optional(),\n firstName: z.string().describe(\"The person's first name\").nullable().optional(),\n description: z.string().describe(\"A description of the person\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values organized by group ID, containing key-value pairs specific to each group\").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(\"Response schema for retrieving a person by ID.\");\n\nexport const folkGetPerson: AppAction<\n typeof FolkGetPersonInput,\n typeof FolkGetPersonOutput,\n typeof folk.credential\n> = action(\"FOLK_GET_PERSON\", {\n slug: \"folk-get-person\",\n name: \"Get Person\",\n description: \"Tool to retrieve an existing person by their ID. Use when you need full profile details of a person by their unique identifier.\",\n input: FolkGetPersonInput,\n output: FolkGetPersonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqB,EAAE,OAAO,EACzC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI,EACzK,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,gCAAgC,EAAE,OAAO;CAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;AACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAM,kCAAkC,EAAE,OAAO;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,oCAAoC,EAAE,OAAO;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,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C,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,WAAW,kCAAkC,SAAS,CAAC,CAAC,SAAS;EACjE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClL,qBAAqB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrK,qBAAqB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.cjs","names":["z","action"],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkGetUserInput = z.object({\n user_id: z.string().describe(\"The unique identifier of the user to retrieve\"),\n}).describe(\"Request schema for retrieving a user by their unique identifier.\");\nconst FolkGetUser_UserDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\n}).passthrough().describe(\"Representation of a workspace user.\");\nexport const FolkGetUserOutput = z.object({\n data: FolkGetUser_UserDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings, if any\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving a user by ID.\");\n\nexport const folkGetUser = action(\"FOLK_GET_USER\", {\n slug: \"folk-get-user\",\n name: \"Get User\",\n description: \"Tool to retrieve a user by their unique identifier. Use when you need to get details of a specific workspace user.\",\n input: FolkGetUserInput,\n output: FolkGetUserOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-user.cjs","names":["z","action"],"sources":["../../src/actions/get-user.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 FolkGetUserInput = z.object({\n user_id: z.string().describe(\"The unique identifier of the user to retrieve\"),\n}).describe(\"Request schema for retrieving a user by their unique identifier.\");\nconst FolkGetUser_UserDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\n}).passthrough().describe(\"Representation of a workspace user.\");\nexport const FolkGetUserOutput = z.object({\n data: FolkGetUser_UserDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings, if any\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving a user by ID.\");\n\nexport const folkGetUser: AppAction<\n typeof FolkGetUserInput,\n typeof FolkGetUserOutput,\n typeof folk.credential\n> = action(\"FOLK_GET_USER\", {\n slug: \"folk-get-user\",\n name: \"Get User\",\n description: \"Tool to retrieve a user by their unique identifier. Use when you need to get details of a specific workspace user.\",\n input: FolkGetUserInput,\n output: FolkGetUserOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mBAAmBA,IAAAA,EAAE,OAAO,EACvC,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAC9E,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,6BAA6BA,IAAAA,EAAE,OAAO;CAC1C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,MAAM,2BAA2B,SAAS;CAC1C,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,cAITC,eAAAA,OAAO,iBAAiB;CAC1B,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/get-user.d.ts
|
|
@@ -12,9 +14,7 @@ declare const FolkGetUserOutput: z.ZodObject<{
|
|
|
12
14
|
}, z.core.$loose>>;
|
|
13
15
|
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const folkGetUser:
|
|
16
|
-
user_id: string;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const folkGetUser: AppAction<typeof FolkGetUserInput, typeof FolkGetUserOutput, typeof folk.credential>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { folkGetUser };
|
|
20
20
|
//# sourceMappingURL=get-user.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.d.cts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-user.d.cts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;;;cAMa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;cAQhB,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;cAKjB,WAAA,EAAa,SAAA,QACjB,gBAAA,SACA,iBAAA,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/get-user.d.ts
|
|
@@ -12,9 +14,7 @@ declare const FolkGetUserOutput: z.ZodObject<{
|
|
|
12
14
|
}, z.core.$loose>>;
|
|
13
15
|
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const folkGetUser:
|
|
16
|
-
user_id: string;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const folkGetUser: AppAction<typeof FolkGetUserInput, typeof FolkGetUserOutput, typeof folk.credential>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { folkGetUser };
|
|
20
20
|
//# sourceMappingURL=get-user.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.d.mts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-user.d.mts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;;;cAMa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;cAQhB,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;cAKjB,WAAA,EAAa,SAAA,QACjB,gBAAA,SACA,iBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkGetUserInput = z.object({\n user_id: z.string().describe(\"The unique identifier of the user to retrieve\"),\n}).describe(\"Request schema for retrieving a user by their unique identifier.\");\nconst FolkGetUser_UserDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\n}).passthrough().describe(\"Representation of a workspace user.\");\nexport const FolkGetUserOutput = z.object({\n data: FolkGetUser_UserDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings, if any\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving a user by ID.\");\n\nexport const folkGetUser = action(\"FOLK_GET_USER\", {\n slug: \"folk-get-user\",\n name: \"Get User\",\n description: \"Tool to retrieve a user by their unique identifier. Use when you need to get details of a specific workspace user.\",\n input: FolkGetUserInput,\n output: FolkGetUserOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.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 FolkGetUserInput = z.object({\n user_id: z.string().describe(\"The unique identifier of the user to retrieve\"),\n}).describe(\"Request schema for retrieving a user by their unique identifier.\");\nconst FolkGetUser_UserDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\n}).passthrough().describe(\"Representation of a workspace user.\");\nexport const FolkGetUserOutput = z.object({\n data: FolkGetUser_UserDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings, if any\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving a user by ID.\");\n\nexport const folkGetUser: AppAction<\n typeof FolkGetUserInput,\n typeof FolkGetUserOutput,\n typeof folk.credential\n> = action(\"FOLK_GET_USER\", {\n slug: \"folk-get-user\",\n name: \"Get User\",\n description: \"Tool to retrieve a user by their unique identifier. Use when you need to get details of a specific workspace user.\",\n input: FolkGetUserInput,\n output: FolkGetUserOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mBAAmB,EAAE,OAAO,EACvC,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAC9E,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,6BAA6B,EAAE,OAAO;CAC1C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAM/D,MAAa,cAIT,OAAO,iBAAiB;CAC1B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd+B,EAAE,OAAO;EACxC,MAAM,2BAA2B,SAAS;EAC1C,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-companies.cjs","names":["z","action"],"sources":["../../src/actions/list-companies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListCompaniesInput = z.object({\n limit: z.number().int().default(20).describe(\"The number of items to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply, using `filter[attribute][operator]=value` syntax.\").optional(),\n combinator: z.enum([\"and\", \"or\"]).default(\"and\").describe(\"Logical operator to combine multiple filters.\").optional(),\n}).describe(\"Request parameters for listing companies in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).passthrough().describe(\"A group object in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.string().describe(\"Email address of the user.\").nullable(),\n fullName: z.string().describe(\"Full name of the user.\").nullable(),\n}).passthrough().describe(\"User who created the company.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema = z.object({\n id: z.string().describe(\"Unique company identifier.\").nullable(),\n name: z.string().describe(\"Company name.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses for the company.\"),\n groups: z.array(FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema).describe(\"Groups this company belongs to.\"),\n phones: z.array(z.string()).describe(\"Phone numbers for the company.\"),\n industry: z.string().describe(\"Industry the company operates in.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Postal addresses for the company.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the company was created.\").nullable(),\n createdBy: FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema.nullable(),\n description: z.string().describe(\"Textual description of the company.\").nullable().optional(),\n employeeRange: z.string().describe(\"Range of employees (e.g., '1-10', '11-50').\").nullable().optional(),\n fundingRaised: z.number().describe(\"Total funding raised by the company.\").nullable().optional(),\n foundationYear: z.number().int().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 keyed by group ID; values may be primitives or nested objects.\"),\n}).passthrough().describe(\"A company object in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to fetch the next page of results. Omit if no further pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination information for list-companies endpoint.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESDataSchema = z.object({\n items: z.array(FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema).describe(\"List of retrieved companies.\"),\n pagination: FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema.nullable(),\n}).passthrough().describe(\"Data envelope for list-companies response.\");\nexport const FolkListCompaniesOutput = z.object({\n data: FolkListCompanies_FOLK_LIST_COMPANIESDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"List of deprecation warnings, if any.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for list-companies.\");\n\nexport const folkListCompanies = action(\"FOLK_LIST_COMPANIES\", {\n slug: \"folk-list-companies\",\n name: \"List Companies\",\n description: \"Tool to list companies in the workspace. Use when you need a paginated overview of companies, optionally filtered.\",\n input: FolkListCompaniesInput,\n output: FolkListCompaniesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-companies.cjs","names":["z","action"],"sources":["../../src/actions/list-companies.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 FolkListCompaniesInput = z.object({\n limit: z.number().int().default(20).describe(\"The number of items to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply, using `filter[attribute][operator]=value` syntax.\").optional(),\n combinator: z.enum([\"and\", \"or\"]).default(\"and\").describe(\"Logical operator to combine multiple filters.\").optional(),\n}).describe(\"Request parameters for listing companies in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).passthrough().describe(\"A group object in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.string().describe(\"Email address of the user.\").nullable(),\n fullName: z.string().describe(\"Full name of the user.\").nullable(),\n}).passthrough().describe(\"User who created the company.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema = z.object({\n id: z.string().describe(\"Unique company identifier.\").nullable(),\n name: z.string().describe(\"Company name.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses for the company.\"),\n groups: z.array(FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema).describe(\"Groups this company belongs to.\"),\n phones: z.array(z.string()).describe(\"Phone numbers for the company.\"),\n industry: z.string().describe(\"Industry the company operates in.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Postal addresses for the company.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the company was created.\").nullable(),\n createdBy: FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema.nullable(),\n description: z.string().describe(\"Textual description of the company.\").nullable().optional(),\n employeeRange: z.string().describe(\"Range of employees (e.g., '1-10', '11-50').\").nullable().optional(),\n fundingRaised: z.number().describe(\"Total funding raised by the company.\").nullable().optional(),\n foundationYear: z.number().int().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 keyed by group ID; values may be primitives or nested objects.\"),\n}).passthrough().describe(\"A company object in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to fetch the next page of results. Omit if no further pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination information for list-companies endpoint.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESDataSchema = z.object({\n items: z.array(FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema).describe(\"List of retrieved companies.\"),\n pagination: FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema.nullable(),\n}).passthrough().describe(\"Data envelope for list-companies response.\");\nexport const FolkListCompaniesOutput = z.object({\n data: FolkListCompanies_FOLK_LIST_COMPANIESDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"List of deprecation warnings, if any.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for list-companies.\");\n\nexport const folkListCompanies: AppAction<\n typeof FolkListCompaniesInput,\n typeof FolkListCompaniesOutput,\n typeof folk.credential\n> = action(\"FOLK_LIST_COMPANIES\", {\n slug: \"folk-list-companies\",\n name: \"List Companies\",\n description: \"Tool to list companies in the workspace. Use when you need a paginated overview of companies, optionally filtered.\",\n input: FolkListCompaniesInput,\n output: FolkListCompaniesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACtI,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC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,OAAO;CAC/D,OAAOA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,8BAA8B;CAC1G,YAAY,sDAAsD,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAM,gDAAgD,SAAS;CAC/D,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,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/list-companies.d.ts
|
|
@@ -43,12 +45,7 @@ declare const FolkListCompaniesOutput: z.ZodObject<{
|
|
|
43
45
|
}, z.core.$loose>>;
|
|
44
46
|
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
|
-
declare const folkListCompanies:
|
|
47
|
-
limit?: number | undefined;
|
|
48
|
-
cursor?: string | undefined;
|
|
49
|
-
filter?: Record<string, unknown> | undefined;
|
|
50
|
-
combinator?: "and" | "or" | undefined;
|
|
51
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
|
+
declare const folkListCompanies: AppAction<typeof FolkListCompaniesInput, typeof FolkListCompaniesOutput, typeof folk.credential>;
|
|
52
49
|
//#endregion
|
|
53
50
|
export { folkListCompanies };
|
|
54
51
|
//# sourceMappingURL=list-companies.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-companies.d.cts","names":[],"sources":["../../src/actions/list-companies.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-companies.d.cts","names":[],"sources":["../../src/actions/list-companies.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;cAwCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,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/list-companies.d.ts
|
|
@@ -43,12 +45,7 @@ declare const FolkListCompaniesOutput: z.ZodObject<{
|
|
|
43
45
|
}, z.core.$loose>>;
|
|
44
46
|
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
|
-
declare const folkListCompanies:
|
|
47
|
-
limit?: number | undefined;
|
|
48
|
-
cursor?: string | undefined;
|
|
49
|
-
filter?: Record<string, unknown> | undefined;
|
|
50
|
-
combinator?: "and" | "or" | undefined;
|
|
51
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
|
+
declare const folkListCompanies: AppAction<typeof FolkListCompaniesInput, typeof FolkListCompaniesOutput, typeof folk.credential>;
|
|
52
49
|
//#endregion
|
|
53
50
|
export { folkListCompanies };
|
|
54
51
|
//# sourceMappingURL=list-companies.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-companies.d.mts","names":[],"sources":["../../src/actions/list-companies.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-companies.d.mts","names":[],"sources":["../../src/actions/list-companies.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;cAwCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-companies.mjs","names":[],"sources":["../../src/actions/list-companies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListCompaniesInput = z.object({\n limit: z.number().int().default(20).describe(\"The number of items to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply, using `filter[attribute][operator]=value` syntax.\").optional(),\n combinator: z.enum([\"and\", \"or\"]).default(\"and\").describe(\"Logical operator to combine multiple filters.\").optional(),\n}).describe(\"Request parameters for listing companies in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).passthrough().describe(\"A group object in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.string().describe(\"Email address of the user.\").nullable(),\n fullName: z.string().describe(\"Full name of the user.\").nullable(),\n}).passthrough().describe(\"User who created the company.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema = z.object({\n id: z.string().describe(\"Unique company identifier.\").nullable(),\n name: z.string().describe(\"Company name.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses for the company.\"),\n groups: z.array(FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema).describe(\"Groups this company belongs to.\"),\n phones: z.array(z.string()).describe(\"Phone numbers for the company.\"),\n industry: z.string().describe(\"Industry the company operates in.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Postal addresses for the company.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the company was created.\").nullable(),\n createdBy: FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema.nullable(),\n description: z.string().describe(\"Textual description of the company.\").nullable().optional(),\n employeeRange: z.string().describe(\"Range of employees (e.g., '1-10', '11-50').\").nullable().optional(),\n fundingRaised: z.number().describe(\"Total funding raised by the company.\").nullable().optional(),\n foundationYear: z.number().int().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 keyed by group ID; values may be primitives or nested objects.\"),\n}).passthrough().describe(\"A company object in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to fetch the next page of results. Omit if no further pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination information for list-companies endpoint.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESDataSchema = z.object({\n items: z.array(FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema).describe(\"List of retrieved companies.\"),\n pagination: FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema.nullable(),\n}).passthrough().describe(\"Data envelope for list-companies response.\");\nexport const FolkListCompaniesOutput = z.object({\n data: FolkListCompanies_FOLK_LIST_COMPANIESDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"List of deprecation warnings, if any.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for list-companies.\");\n\nexport const folkListCompanies = action(\"FOLK_LIST_COMPANIES\", {\n slug: \"folk-list-companies\",\n name: \"List Companies\",\n description: \"Tool to list companies in the workspace. Use when you need a paginated overview of companies, optionally filtered.\",\n input: FolkListCompaniesInput,\n output: FolkListCompaniesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-companies.mjs","names":[],"sources":["../../src/actions/list-companies.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 FolkListCompaniesInput = z.object({\n limit: z.number().int().default(20).describe(\"The number of items to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Filters to apply, using `filter[attribute][operator]=value` syntax.\").optional(),\n combinator: z.enum([\"and\", \"or\"]).default(\"and\").describe(\"Logical operator to combine multiple filters.\").optional(),\n}).describe(\"Request parameters for listing companies in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).passthrough().describe(\"A group object in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.string().describe(\"Email address of the user.\").nullable(),\n fullName: z.string().describe(\"Full name of the user.\").nullable(),\n}).passthrough().describe(\"User who created the company.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema = z.object({\n id: z.string().describe(\"Unique company identifier.\").nullable(),\n name: z.string().describe(\"Company name.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses for the company.\"),\n groups: z.array(FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema).describe(\"Groups this company belongs to.\"),\n phones: z.array(z.string()).describe(\"Phone numbers for the company.\"),\n industry: z.string().describe(\"Industry the company operates in.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Postal addresses for the company.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the company was created.\").nullable(),\n createdBy: FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema.nullable(),\n description: z.string().describe(\"Textual description of the company.\").nullable().optional(),\n employeeRange: z.string().describe(\"Range of employees (e.g., '1-10', '11-50').\").nullable().optional(),\n fundingRaised: z.number().describe(\"Total funding raised by the company.\").nullable().optional(),\n foundationYear: z.number().int().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 keyed by group ID; values may be primitives or nested objects.\"),\n}).passthrough().describe(\"A company object in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to fetch the next page of results. Omit if no further pages.\").nullable().optional(),\n}).passthrough().describe(\"Pagination information for list-companies endpoint.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESDataSchema = z.object({\n items: z.array(FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema).describe(\"List of retrieved companies.\"),\n pagination: FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema.nullable(),\n}).passthrough().describe(\"Data envelope for list-companies response.\");\nexport const FolkListCompaniesOutput = z.object({\n data: FolkListCompanies_FOLK_LIST_COMPANIESDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"List of deprecation warnings, if any.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for list-companies.\");\n\nexport const folkListCompanies: AppAction<\n typeof FolkListCompaniesInput,\n typeof FolkListCompaniesOutput,\n typeof folk.credential\n> = action(\"FOLK_LIST_COMPANIES\", {\n slug: \"folk-list-companies\",\n name: \"List Companies\",\n description: \"Tool to list companies in the workspace. Use when you need a paginated overview of companies, optionally filtered.\",\n input: FolkListCompaniesInput,\n output: FolkListCompaniesOutput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C,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,kDAAkD,EAAE,OAAO;CAC/D,OAAO,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,8BAA8B;CAC1G,YAAY,sDAAsD,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAMtE,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdqC,EAAE,OAAO;EAC9C,MAAM,gDAAgD,SAAS;EAC/D,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-group-custom-fields.cjs","names":["z","action"],"sources":["../../src/actions/list-group-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListGroupCustomFieldsInput = z.object({\n limit: z.number().int().default(20).describe(\"Number of items to return (1-100). Defaults to 20.\").optional(),\n cursor: z.string().describe(\"Pagination cursor. Omit on first call; use `data.pagination.nextLink` from previous response for subsequent pages.\").optional(),\n group_id: z.string().describe(\"ID of the group (exactly 40 characters). Obtain via the list-groups endpoint.\"),\n entity_type: z.enum([\"person\", \"company\"]).describe(\"Entity type whose custom fields to list. Must be 'person' or 'company'.\"),\n}).describe(\"Request schema for listing custom fields of a group and entity type.\");\nconst FolkListGroupCustomFields_NumericFieldConfigSchema = z.object({\n format: z.string().describe(\"Display format for numeric fields (e.g., 'currency').\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., 'USD') when format is 'currency'.\").nullable().optional(),\n}).passthrough();\nconst FolkListGroupCustomFields_OptionSchema = z.object({\n color: z.string().describe(\"Hex color code associated with the option.\").nullable(),\n label: z.string().describe(\"Display label of the option.\").nullable(),\n}).passthrough();\nconst FolkListGroupCustomFields_CustomFieldItemSchema = z.object({\n name: z.string().describe(\"Name of the custom field.\").nullable(),\n type: z.enum([\"singleSelect\", \"multipleSelect\", \"numericField\", \"textField\", \"contactField\", \"dateField\", \"userField\", \"objectField\", \"magicField\"]).describe(\"Type of the custom field.\").nullable(),\n config: FolkListGroupCustomFields_NumericFieldConfigSchema.nullable().optional(),\n options: z.array(FolkListGroupCustomFields_OptionSchema).describe(\"Available choices for select-type fields, if applicable.\").nullable().optional(),\n}).passthrough();\nconst FolkListGroupCustomFields_PaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to retrieve the next page of results, if any.\").nullable().optional(),\n}).passthrough();\nconst FolkListGroupCustomFields_ListGroupCustomFieldsDataSchema = z.object({\n items: z.array(FolkListGroupCustomFields_CustomFieldItemSchema).describe(\"List of custom fields for the group and entity type.\"),\n pagination: FolkListGroupCustomFields_PaginationSchema.nullable(),\n}).passthrough();\nexport const FolkListGroupCustomFieldsOutput = z.object({\n data: FolkListGroupCustomFields_ListGroupCustomFieldsDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings, if any.\").nullable().optional(),\n}).passthrough();\n\nexport const folkListGroupCustomFields = action(\"FOLK_LIST_GROUP_CUSTOM_FIELDS\", {\n slug: \"folk-list-group-custom-fields\",\n name: \"List Group Custom Fields\",\n description: \"Tool to list custom fields for a specific group and entity type. Use after selecting a group and entity type to inspect available custom fields.\",\n input: FolkListGroupCustomFieldsInput,\n output: FolkListGroupCustomFieldsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-group-custom-fields.cjs","names":["z","action"],"sources":["../../src/actions/list-group-custom-fields.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 FolkListGroupCustomFieldsInput = z.object({\n limit: z.number().int().default(20).describe(\"Number of items to return (1-100). Defaults to 20.\").optional(),\n cursor: z.string().describe(\"Pagination cursor. Omit on first call; use `data.pagination.nextLink` from previous response for subsequent pages.\").optional(),\n group_id: z.string().describe(\"ID of the group (exactly 40 characters). Obtain via the list-groups endpoint.\"),\n entity_type: z.enum([\"person\", \"company\"]).describe(\"Entity type whose custom fields to list. Must be 'person' or 'company'.\"),\n}).describe(\"Request schema for listing custom fields of a group and entity type.\");\nconst FolkListGroupCustomFields_NumericFieldConfigSchema = z.object({\n format: z.string().describe(\"Display format for numeric fields (e.g., 'currency').\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., 'USD') when format is 'currency'.\").nullable().optional(),\n}).passthrough();\nconst FolkListGroupCustomFields_OptionSchema = z.object({\n color: z.string().describe(\"Hex color code associated with the option.\").nullable(),\n label: z.string().describe(\"Display label of the option.\").nullable(),\n}).passthrough();\nconst FolkListGroupCustomFields_CustomFieldItemSchema = z.object({\n name: z.string().describe(\"Name of the custom field.\").nullable(),\n type: z.enum([\"singleSelect\", \"multipleSelect\", \"numericField\", \"textField\", \"contactField\", \"dateField\", \"userField\", \"objectField\", \"magicField\"]).describe(\"Type of the custom field.\").nullable(),\n config: FolkListGroupCustomFields_NumericFieldConfigSchema.nullable().optional(),\n options: z.array(FolkListGroupCustomFields_OptionSchema).describe(\"Available choices for select-type fields, if applicable.\").nullable().optional(),\n}).passthrough();\nconst FolkListGroupCustomFields_PaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to retrieve the next page of results, if any.\").nullable().optional(),\n}).passthrough();\nconst FolkListGroupCustomFields_ListGroupCustomFieldsDataSchema = z.object({\n items: z.array(FolkListGroupCustomFields_CustomFieldItemSchema).describe(\"List of custom fields for the group and entity type.\"),\n pagination: FolkListGroupCustomFields_PaginationSchema.nullable(),\n}).passthrough();\nexport const FolkListGroupCustomFieldsOutput = z.object({\n data: FolkListGroupCustomFields_ListGroupCustomFieldsDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings, if any.\").nullable().optional(),\n}).passthrough();\n\nexport const folkListGroupCustomFields: AppAction<\n typeof FolkListGroupCustomFieldsInput,\n typeof FolkListGroupCustomFieldsOutput,\n typeof folk.credential\n> = action(\"FOLK_LIST_GROUP_CUSTOM_FIELDS\", {\n slug: \"folk-list-group-custom-fields\",\n name: \"List Group Custom Fields\",\n description: \"Tool to list custom fields for a specific group and entity type. Use after selecting a group and entity type to inspect available custom fields.\",\n input: FolkListGroupCustomFieldsInput,\n output: FolkListGroupCustomFieldsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC5G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC3J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC7G,aAAaA,IAAAA,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAC/H,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY;AACf,MAA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
|
|
3
5
|
//#region src/actions/list-group-custom-fields.d.ts
|
|
@@ -40,12 +42,7 @@ declare const FolkListGroupCustomFieldsOutput: z.ZodObject<{
|
|
|
40
42
|
}, z.core.$loose>>;
|
|
41
43
|
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
42
44
|
}, z.core.$loose>;
|
|
43
|
-
declare const folkListGroupCustomFields:
|
|
44
|
-
group_id: string;
|
|
45
|
-
entity_type: "person" | "company";
|
|
46
|
-
limit?: number | undefined;
|
|
47
|
-
cursor?: string | undefined;
|
|
48
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
45
|
+
declare const folkListGroupCustomFields: AppAction<typeof FolkListGroupCustomFieldsInput, typeof FolkListGroupCustomFieldsOutput, typeof folk.credential>;
|
|
49
46
|
//#endregion
|
|
50
47
|
export { folkListGroupCustomFields };
|
|
51
48
|
//# sourceMappingURL=list-group-custom-fields.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-group-custom-fields.d.cts","names":[],"sources":["../../src/actions/list-group-custom-fields.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-group-custom-fields.d.cts","names":[],"sources":["../../src/actions/list-group-custom-fields.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cA2B9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,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/list-group-custom-fields.d.ts
|
|
@@ -40,12 +42,7 @@ declare const FolkListGroupCustomFieldsOutput: z.ZodObject<{
|
|
|
40
42
|
}, z.core.$loose>>;
|
|
41
43
|
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
42
44
|
}, z.core.$loose>;
|
|
43
|
-
declare const folkListGroupCustomFields:
|
|
44
|
-
group_id: string;
|
|
45
|
-
entity_type: "person" | "company";
|
|
46
|
-
limit?: number | undefined;
|
|
47
|
-
cursor?: string | undefined;
|
|
48
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
45
|
+
declare const folkListGroupCustomFields: AppAction<typeof FolkListGroupCustomFieldsInput, typeof FolkListGroupCustomFieldsOutput, typeof folk.credential>;
|
|
49
46
|
//#endregion
|
|
50
47
|
export { folkListGroupCustomFields };
|
|
51
48
|
//# sourceMappingURL=list-group-custom-fields.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-group-custom-fields.d.mts","names":[],"sources":["../../src/actions/list-group-custom-fields.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-group-custom-fields.d.mts","names":[],"sources":["../../src/actions/list-group-custom-fields.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cA2B9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-group-custom-fields.mjs","names":[],"sources":["../../src/actions/list-group-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListGroupCustomFieldsInput = z.object({\n limit: z.number().int().default(20).describe(\"Number of items to return (1-100). Defaults to 20.\").optional(),\n cursor: z.string().describe(\"Pagination cursor. Omit on first call; use `data.pagination.nextLink` from previous response for subsequent pages.\").optional(),\n group_id: z.string().describe(\"ID of the group (exactly 40 characters). Obtain via the list-groups endpoint.\"),\n entity_type: z.enum([\"person\", \"company\"]).describe(\"Entity type whose custom fields to list. Must be 'person' or 'company'.\"),\n}).describe(\"Request schema for listing custom fields of a group and entity type.\");\nconst FolkListGroupCustomFields_NumericFieldConfigSchema = z.object({\n format: z.string().describe(\"Display format for numeric fields (e.g., 'currency').\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., 'USD') when format is 'currency'.\").nullable().optional(),\n}).passthrough();\nconst FolkListGroupCustomFields_OptionSchema = z.object({\n color: z.string().describe(\"Hex color code associated with the option.\").nullable(),\n label: z.string().describe(\"Display label of the option.\").nullable(),\n}).passthrough();\nconst FolkListGroupCustomFields_CustomFieldItemSchema = z.object({\n name: z.string().describe(\"Name of the custom field.\").nullable(),\n type: z.enum([\"singleSelect\", \"multipleSelect\", \"numericField\", \"textField\", \"contactField\", \"dateField\", \"userField\", \"objectField\", \"magicField\"]).describe(\"Type of the custom field.\").nullable(),\n config: FolkListGroupCustomFields_NumericFieldConfigSchema.nullable().optional(),\n options: z.array(FolkListGroupCustomFields_OptionSchema).describe(\"Available choices for select-type fields, if applicable.\").nullable().optional(),\n}).passthrough();\nconst FolkListGroupCustomFields_PaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to retrieve the next page of results, if any.\").nullable().optional(),\n}).passthrough();\nconst FolkListGroupCustomFields_ListGroupCustomFieldsDataSchema = z.object({\n items: z.array(FolkListGroupCustomFields_CustomFieldItemSchema).describe(\"List of custom fields for the group and entity type.\"),\n pagination: FolkListGroupCustomFields_PaginationSchema.nullable(),\n}).passthrough();\nexport const FolkListGroupCustomFieldsOutput = z.object({\n data: FolkListGroupCustomFields_ListGroupCustomFieldsDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings, if any.\").nullable().optional(),\n}).passthrough();\n\nexport const folkListGroupCustomFields = action(\"FOLK_LIST_GROUP_CUSTOM_FIELDS\", {\n slug: \"folk-list-group-custom-fields\",\n name: \"List Group Custom Fields\",\n description: \"Tool to list custom fields for a specific group and entity type. Use after selecting a group and entity type to inspect available custom fields.\",\n input: FolkListGroupCustomFieldsInput,\n output: FolkListGroupCustomFieldsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-group-custom-fields.mjs","names":[],"sources":["../../src/actions/list-group-custom-fields.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 FolkListGroupCustomFieldsInput = z.object({\n limit: z.number().int().default(20).describe(\"Number of items to return (1-100). Defaults to 20.\").optional(),\n cursor: z.string().describe(\"Pagination cursor. Omit on first call; use `data.pagination.nextLink` from previous response for subsequent pages.\").optional(),\n group_id: z.string().describe(\"ID of the group (exactly 40 characters). Obtain via the list-groups endpoint.\"),\n entity_type: z.enum([\"person\", \"company\"]).describe(\"Entity type whose custom fields to list. Must be 'person' or 'company'.\"),\n}).describe(\"Request schema for listing custom fields of a group and entity type.\");\nconst FolkListGroupCustomFields_NumericFieldConfigSchema = z.object({\n format: z.string().describe(\"Display format for numeric fields (e.g., 'currency').\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., 'USD') when format is 'currency'.\").nullable().optional(),\n}).passthrough();\nconst FolkListGroupCustomFields_OptionSchema = z.object({\n color: z.string().describe(\"Hex color code associated with the option.\").nullable(),\n label: z.string().describe(\"Display label of the option.\").nullable(),\n}).passthrough();\nconst FolkListGroupCustomFields_CustomFieldItemSchema = z.object({\n name: z.string().describe(\"Name of the custom field.\").nullable(),\n type: z.enum([\"singleSelect\", \"multipleSelect\", \"numericField\", \"textField\", \"contactField\", \"dateField\", \"userField\", \"objectField\", \"magicField\"]).describe(\"Type of the custom field.\").nullable(),\n config: FolkListGroupCustomFields_NumericFieldConfigSchema.nullable().optional(),\n options: z.array(FolkListGroupCustomFields_OptionSchema).describe(\"Available choices for select-type fields, if applicable.\").nullable().optional(),\n}).passthrough();\nconst FolkListGroupCustomFields_PaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to retrieve the next page of results, if any.\").nullable().optional(),\n}).passthrough();\nconst FolkListGroupCustomFields_ListGroupCustomFieldsDataSchema = z.object({\n items: z.array(FolkListGroupCustomFields_CustomFieldItemSchema).describe(\"List of custom fields for the group and entity type.\"),\n pagination: FolkListGroupCustomFields_PaginationSchema.nullable(),\n}).passthrough();\nexport const FolkListGroupCustomFieldsOutput = z.object({\n data: FolkListGroupCustomFields_ListGroupCustomFieldsDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings, if any.\").nullable().optional(),\n}).passthrough();\n\nexport const folkListGroupCustomFields: AppAction<\n typeof FolkListGroupCustomFieldsInput,\n typeof FolkListGroupCustomFieldsOutput,\n typeof folk.credential\n> = action(\"FOLK_LIST_GROUP_CUSTOM_FIELDS\", {\n slug: \"folk-list-group-custom-fields\",\n name: \"List Group Custom Fields\",\n description: \"Tool to list custom fields for a specific group and entity type. Use after selecting a group and entity type to inspect available custom fields.\",\n input: FolkListGroupCustomFieldsInput,\n output: FolkListGroupCustomFieldsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO;CACrD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC5G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC3J,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC7G,aAAa,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAC/H,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,qDAAqD,EAAE,OAAO;CAClE,QAAQ,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,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-groups.cjs","names":["z","action"],"sources":["../../src/actions/list-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListGroupsInput = z.object({\n limit: z.number().int().default(20).describe(\"The number of items to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"Cursor for pagination across multiple pages. Omit on first call. Use the `pagination.nextLink` value from a previous response for subsequent pages.\").optional(),\n}).describe(\"Request parameters for listing workspace groups.\");\nconst FolkListGroups_GroupItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).passthrough().describe(\"A group object in the workspace.\");\nconst FolkListGroups_PaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to the next page of results, if available.\").nullable().optional(),\n}).passthrough().describe(\"Pagination information for list endpoints.\");\nconst FolkListGroups_ListGroupsDataSchema = z.object({\n items: z.array(FolkListGroups_GroupItemSchema).describe(\"List of group objects.\"),\n pagination: FolkListGroups_PaginationSchema.nullable().optional(),\n}).passthrough().describe(\"The data envelope for list-groups response.\");\nexport const FolkListGroupsOutput = z.object({\n data: FolkListGroups_ListGroupsDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Array of deprecation warnings, if any.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for list-groups.\");\n\nexport const folkListGroups = action(\"FOLK_LIST_GROUPS\", {\n slug: \"folk-list-groups\",\n name: \"List Groups\",\n description: \"Tool to list workspace groups. Use when you need to retrieve a paginated list of all workspace groups after authentication.\",\n input: FolkListGroupsInput,\n output: FolkListGroupsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-groups.cjs","names":["z","action"],"sources":["../../src/actions/list-groups.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 FolkListGroupsInput = z.object({\n limit: z.number().int().default(20).describe(\"The number of items to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"Cursor for pagination across multiple pages. Omit on first call. Use the `pagination.nextLink` value from a previous response for subsequent pages.\").optional(),\n}).describe(\"Request parameters for listing workspace groups.\");\nconst FolkListGroups_GroupItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).passthrough().describe(\"A group object in the workspace.\");\nconst FolkListGroups_PaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to the next page of results, if available.\").nullable().optional(),\n}).passthrough().describe(\"Pagination information for list endpoints.\");\nconst FolkListGroups_ListGroupsDataSchema = z.object({\n items: z.array(FolkListGroups_GroupItemSchema).describe(\"List of group objects.\"),\n pagination: FolkListGroups_PaginationSchema.nullable().optional(),\n}).passthrough().describe(\"The data envelope for list-groups response.\");\nexport const FolkListGroupsOutput = z.object({\n data: FolkListGroups_ListGroupsDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Array of deprecation warnings, if any.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for list-groups.\");\n\nexport const folkListGroups: AppAction<\n typeof FolkListGroupsInput,\n typeof FolkListGroupsOutput,\n typeof folk.credential\n> = action(\"FOLK_LIST_GROUPS\", {\n slug: \"folk-list-groups\",\n name: \"List Groups\",\n description: \"Tool to list workspace groups. Use when you need to retrieve a paginated list of all workspace groups after authentication.\",\n input: FolkListGroupsInput,\n output: FolkListGroupsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2DAA2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Action } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-groups.d.ts
|
|
@@ -17,10 +19,7 @@ declare const FolkListGroupsOutput: z.ZodObject<{
|
|
|
17
19
|
}, z.core.$loose>>;
|
|
18
20
|
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const folkListGroups:
|
|
21
|
-
limit?: number | undefined;
|
|
22
|
-
cursor?: string | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const folkListGroups: AppAction<typeof FolkListGroupsInput, typeof FolkListGroupsOutput, typeof folk.credential>;
|
|
24
23
|
//#endregion
|
|
25
24
|
export { folkListGroups };
|
|
26
25
|
//# sourceMappingURL=list-groups.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-groups.d.cts","names":[],"sources":["../../src/actions/list-groups.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-groups.d.cts","names":[],"sources":["../../src/actions/list-groups.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;cAenB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAKpB,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/list-groups.d.ts
|
|
@@ -17,10 +19,7 @@ declare const FolkListGroupsOutput: z.ZodObject<{
|
|
|
17
19
|
}, z.core.$loose>>;
|
|
18
20
|
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const folkListGroups:
|
|
21
|
-
limit?: number | undefined;
|
|
22
|
-
cursor?: string | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const folkListGroups: AppAction<typeof FolkListGroupsInput, typeof FolkListGroupsOutput, typeof folk.credential>;
|
|
24
23
|
//#endregion
|
|
25
24
|
export { folkListGroups };
|
|
26
25
|
//# sourceMappingURL=list-groups.d.mts.map
|