@keystrokehq/folk 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-company.cjs +7 -7
  4. package/dist/actions/create-company.cjs.map +1 -1
  5. package/dist/actions/create-company.d.cts +8 -35
  6. package/dist/actions/create-company.d.cts.map +1 -1
  7. package/dist/actions/create-company.d.mts +8 -35
  8. package/dist/actions/create-company.d.mts.map +1 -1
  9. package/dist/actions/create-company.mjs +7 -7
  10. package/dist/actions/create-company.mjs.map +1 -1
  11. package/dist/actions/create-note.cjs +6 -6
  12. package/dist/actions/create-note.cjs.map +1 -1
  13. package/dist/actions/create-note.d.cts +7 -30
  14. package/dist/actions/create-note.d.mts +7 -30
  15. package/dist/actions/create-note.mjs +6 -6
  16. package/dist/actions/create-note.mjs.map +1 -1
  17. package/dist/actions/create-person.cjs +21 -21
  18. package/dist/actions/create-person.cjs.map +1 -1
  19. package/dist/actions/create-person.d.cts +24 -70
  20. package/dist/actions/create-person.d.cts.map +1 -1
  21. package/dist/actions/create-person.d.mts +24 -70
  22. package/dist/actions/create-person.d.mts.map +1 -1
  23. package/dist/actions/create-person.mjs +21 -21
  24. package/dist/actions/create-person.mjs.map +1 -1
  25. package/dist/actions/delete-company.cjs +1 -1
  26. package/dist/actions/delete-company.cjs.map +1 -1
  27. package/dist/actions/delete-company.d.cts +2 -7
  28. package/dist/actions/delete-company.d.mts +2 -7
  29. package/dist/actions/delete-company.mjs +1 -1
  30. package/dist/actions/delete-company.mjs.map +1 -1
  31. package/dist/actions/delete-note.cjs +1 -1
  32. package/dist/actions/delete-note.cjs.map +1 -1
  33. package/dist/actions/delete-note.d.cts +2 -7
  34. package/dist/actions/delete-note.d.mts +2 -7
  35. package/dist/actions/delete-note.mjs +1 -1
  36. package/dist/actions/delete-note.mjs.map +1 -1
  37. package/dist/actions/delete-person.cjs +1 -1
  38. package/dist/actions/delete-person.cjs.map +1 -1
  39. package/dist/actions/delete-person.d.cts +2 -7
  40. package/dist/actions/delete-person.d.mts +2 -7
  41. package/dist/actions/delete-person.mjs +1 -1
  42. package/dist/actions/delete-person.mjs.map +1 -1
  43. package/dist/actions/delete-reminder.cjs +1 -1
  44. package/dist/actions/delete-reminder.cjs.map +1 -1
  45. package/dist/actions/delete-reminder.d.cts +2 -7
  46. package/dist/actions/delete-reminder.d.mts +2 -7
  47. package/dist/actions/delete-reminder.mjs +1 -1
  48. package/dist/actions/delete-reminder.mjs.map +1 -1
  49. package/dist/actions/get-company.cjs +1 -1
  50. package/dist/actions/get-company.cjs.map +1 -1
  51. package/dist/actions/get-company.d.cts +2 -17
  52. package/dist/actions/get-company.d.cts.map +1 -1
  53. package/dist/actions/get-company.d.mts +2 -17
  54. package/dist/actions/get-company.d.mts.map +1 -1
  55. package/dist/actions/get-company.mjs +1 -1
  56. package/dist/actions/get-company.mjs.map +1 -1
  57. package/dist/actions/get-current-workspace-user.d.cts +1 -7
  58. package/dist/actions/get-current-workspace-user.d.cts.map +1 -1
  59. package/dist/actions/get-current-workspace-user.d.mts +1 -7
  60. package/dist/actions/get-current-workspace-user.d.mts.map +1 -1
  61. package/dist/actions/get-note.cjs +11 -11
  62. package/dist/actions/get-note.cjs.map +1 -1
  63. package/dist/actions/get-note.d.cts +11 -65
  64. package/dist/actions/get-note.d.cts.map +1 -1
  65. package/dist/actions/get-note.d.mts +11 -65
  66. package/dist/actions/get-note.d.mts.map +1 -1
  67. package/dist/actions/get-note.mjs +11 -11
  68. package/dist/actions/get-note.mjs.map +1 -1
  69. package/dist/actions/get-person.cjs +17 -17
  70. package/dist/actions/get-person.cjs.map +1 -1
  71. package/dist/actions/get-person.d.cts +18 -47
  72. package/dist/actions/get-person.d.mts +18 -47
  73. package/dist/actions/get-person.mjs +17 -17
  74. package/dist/actions/get-person.mjs.map +1 -1
  75. package/dist/actions/get-user.cjs +1 -1
  76. package/dist/actions/get-user.cjs.map +1 -1
  77. package/dist/actions/get-user.d.cts +2 -9
  78. package/dist/actions/get-user.d.mts +2 -9
  79. package/dist/actions/get-user.mjs +1 -1
  80. package/dist/actions/get-user.mjs.map +1 -1
  81. package/dist/actions/list-companies.cjs +8 -8
  82. package/dist/actions/list-companies.cjs.map +1 -1
  83. package/dist/actions/list-companies.d.cts +9 -41
  84. package/dist/actions/list-companies.d.cts.map +1 -1
  85. package/dist/actions/list-companies.d.mts +9 -41
  86. package/dist/actions/list-companies.d.mts.map +1 -1
  87. package/dist/actions/list-companies.mjs +8 -8
  88. package/dist/actions/list-companies.mjs.map +1 -1
  89. package/dist/actions/list-group-custom-fields.cjs +5 -5
  90. package/dist/actions/list-group-custom-fields.cjs.map +1 -1
  91. package/dist/actions/list-group-custom-fields.d.cts +6 -25
  92. package/dist/actions/list-group-custom-fields.d.mts +6 -25
  93. package/dist/actions/list-group-custom-fields.mjs +5 -5
  94. package/dist/actions/list-group-custom-fields.mjs.map +1 -1
  95. package/dist/actions/list-groups.cjs +3 -3
  96. package/dist/actions/list-groups.cjs.map +1 -1
  97. package/dist/actions/list-groups.d.cts +4 -15
  98. package/dist/actions/list-groups.d.mts +4 -15
  99. package/dist/actions/list-groups.mjs +3 -3
  100. package/dist/actions/list-groups.mjs.map +1 -1
  101. package/dist/actions/list-notes.cjs +5 -5
  102. package/dist/actions/list-notes.cjs.map +1 -1
  103. package/dist/actions/list-notes.d.cts +6 -42
  104. package/dist/actions/list-notes.d.mts +6 -42
  105. package/dist/actions/list-notes.mjs +5 -5
  106. package/dist/actions/list-notes.mjs.map +1 -1
  107. package/dist/actions/list-people.cjs +14 -14
  108. package/dist/actions/list-people.cjs.map +1 -1
  109. package/dist/actions/list-people.d.cts +15 -55
  110. package/dist/actions/list-people.d.cts.map +1 -1
  111. package/dist/actions/list-people.d.mts +15 -55
  112. package/dist/actions/list-people.d.mts.map +1 -1
  113. package/dist/actions/list-people.mjs +14 -14
  114. package/dist/actions/list-people.mjs.map +1 -1
  115. package/dist/actions/list-reminders.cjs +6 -6
  116. package/dist/actions/list-reminders.cjs.map +1 -1
  117. package/dist/actions/list-reminders.d.cts +7 -38
  118. package/dist/actions/list-reminders.d.mts +7 -38
  119. package/dist/actions/list-reminders.mjs +6 -6
  120. package/dist/actions/list-reminders.mjs.map +1 -1
  121. package/dist/actions/list-users.cjs +2 -2
  122. package/dist/actions/list-users.cjs.map +1 -1
  123. package/dist/actions/list-users.d.cts +3 -15
  124. package/dist/actions/list-users.d.mts +3 -15
  125. package/dist/actions/list-users.mjs +2 -2
  126. package/dist/actions/list-users.mjs.map +1 -1
  127. package/dist/actions/list-webhooks.cjs +7 -7
  128. package/dist/actions/list-webhooks.cjs.map +1 -1
  129. package/dist/actions/list-webhooks.d.cts +8 -32
  130. package/dist/actions/list-webhooks.d.mts +8 -32
  131. package/dist/actions/list-webhooks.mjs +7 -7
  132. package/dist/actions/list-webhooks.mjs.map +1 -1
  133. package/dist/actions/update-company.cjs +2 -2
  134. package/dist/actions/update-company.cjs.map +1 -1
  135. package/dist/actions/update-company.d.cts +3 -19
  136. package/dist/actions/update-company.d.cts.map +1 -1
  137. package/dist/actions/update-company.d.mts +3 -19
  138. package/dist/actions/update-company.d.mts.map +1 -1
  139. package/dist/actions/update-company.mjs +2 -2
  140. package/dist/actions/update-company.mjs.map +1 -1
  141. package/dist/actions/update-note.cjs +9 -9
  142. package/dist/actions/update-note.cjs.map +1 -1
  143. package/dist/actions/update-note.d.cts +10 -31
  144. package/dist/actions/update-note.d.mts +10 -31
  145. package/dist/actions/update-note.mjs +9 -9
  146. package/dist/actions/update-note.mjs.map +1 -1
  147. package/dist/actions/update-person.cjs +18 -18
  148. package/dist/actions/update-person.cjs.map +1 -1
  149. package/dist/actions/update-person.d.cts +19 -51
  150. package/dist/actions/update-person.d.cts.map +1 -1
  151. package/dist/actions/update-person.d.mts +19 -51
  152. package/dist/actions/update-person.d.mts.map +1 -1
  153. package/dist/actions/update-person.mjs +18 -18
  154. package/dist/actions/update-person.mjs.map +1 -1
  155. package/package.json +1 -1
@@ -19,17 +19,17 @@ const FolkCreatePerson_CompanyItemSchema = zod.z.object({
19
19
  }).describe("A company associated with the person.");
20
20
  const FolkCreatePerson_UserInfoSchema = zod.z.object({
21
21
  id: zod.z.string().describe("Unique identifier of the user.").nullable(),
22
- email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Email address of the user.").optional()),
23
- fullName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Full name of the user.").optional())
22
+ email: zod.z.string().describe("Email address of the user.").nullable().optional(),
23
+ fullName: zod.z.string().describe("Full name of the user.").nullable().optional()
24
24
  }).describe("User information with ID, full name, and email.");
25
25
  const FolkCreatePerson_UserMetadataSchema = zod.z.object({
26
26
  approximateCount: zod.z.number().int().describe("Number of interactions between current user and contact.").nullable(),
27
- lastInteractedAt: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Most recent interaction timestamp in ISO 8601 date-time format.").optional())
27
+ lastInteractedAt: zod.z.string().describe("Most recent interaction timestamp in ISO 8601 date-time format.").nullable().optional()
28
28
  }).describe("User-specific interaction metadata.");
29
29
  const FolkCreatePerson_WorkspaceMetadataSchema = zod.z.object({
30
30
  approximateCount: zod.z.number().int().describe("Total number of workspace interactions with contact.").nullable(),
31
- lastInteractedAt: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Most recent workspace interaction timestamp in ISO 8601 date-time format.").optional()),
32
- lastInteractedBy: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FolkCreatePerson_UserInfoSchema).describe("Users who last interacted with the contact.").optional())
31
+ lastInteractedAt: zod.z.string().describe("Most recent workspace interaction timestamp in ISO 8601 date-time format.").nullable().optional(),
32
+ lastInteractedBy: zod.z.array(FolkCreatePerson_UserInfoSchema).describe("Users who last interacted with the contact.").nullable().optional()
33
33
  }).describe("Workspace-wide interaction metadata.");
34
34
  const FolkCreatePerson_InteractionMetadataSchema = zod.z.object({
35
35
  user: FolkCreatePerson_UserMetadataSchema.nullable(),
@@ -37,27 +37,27 @@ const FolkCreatePerson_InteractionMetadataSchema = zod.z.object({
37
37
  }).describe("Metadata about interactions with the person.");
38
38
  const FolkCreatePerson_CreatePersonResponseDataSchema = zod.z.object({
39
39
  id: zod.z.string().describe("ID of the created person.").nullable(),
40
- urls: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("URLs associated with the person.").optional()),
41
- emails: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Email addresses associated with the person.").optional()),
42
- groups: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FolkCreatePerson_GroupLinkResponseSchema).describe("Groups the person belongs to with ID and name.").optional()),
43
- phones: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Phone numbers associated with the person.").optional()),
44
- birthday: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Birthday of the person in ISO date format (YYYY-MM-DD).").optional()),
45
- fullName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Full name of the person.").optional()),
46
- jobTitle: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Job title of the person.").optional()),
47
- lastName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Last name of the person.").optional()),
48
- addresses: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Addresses associated with the person.").optional()),
49
- companies: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FolkCreatePerson_CompanyItemSchema).describe("Companies associated with the person.").optional()),
50
- createdAt: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO 8601 timestamp when the person was created.").optional()),
40
+ urls: zod.z.array(zod.z.string()).describe("URLs associated with the person.").nullable().optional(),
41
+ emails: zod.z.array(zod.z.string()).describe("Email addresses associated with the person.").nullable().optional(),
42
+ groups: zod.z.array(FolkCreatePerson_GroupLinkResponseSchema).describe("Groups the person belongs to with ID and name.").nullable().optional(),
43
+ phones: zod.z.array(zod.z.string()).describe("Phone numbers associated with the person.").nullable().optional(),
44
+ birthday: zod.z.string().describe("Birthday of the person in ISO date format (YYYY-MM-DD).").nullable().optional(),
45
+ fullName: zod.z.string().describe("Full name of the person.").nullable().optional(),
46
+ jobTitle: zod.z.string().describe("Job title of the person.").nullable().optional(),
47
+ lastName: zod.z.string().describe("Last name of the person.").nullable().optional(),
48
+ addresses: zod.z.array(zod.z.string()).describe("Addresses associated with the person.").nullable().optional(),
49
+ companies: zod.z.array(FolkCreatePerson_CompanyItemSchema).describe("Companies associated with the person.").nullable().optional(),
50
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the person was created.").nullable().optional(),
51
51
  createdBy: FolkCreatePerson_UserInfoSchema.nullable(),
52
- firstName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("First name of the person.").optional()),
53
- description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Description of the person.").optional()),
54
- customFieldValues: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).").optional()),
52
+ firstName: zod.z.string().describe("First name of the person.").nullable().optional(),
53
+ description: zod.z.string().describe("Description of the person.").nullable().optional(),
54
+ customFieldValues: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).").nullable().optional(),
55
55
  interactionMetadata: FolkCreatePerson_InteractionMetadataSchema.nullable(),
56
- strongestConnection: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("Map of group IDs to workspace members with the strongest connection to this person.").optional())
56
+ strongestConnection: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Map of group IDs to workspace members with the strongest connection to this person.").nullable().optional()
57
57
  }).describe("Data returned after a successful person creation.");
58
58
  const FolkCreatePersonOutput = zod.z.object({
59
59
  data: FolkCreatePerson_CreatePersonResponseDataSchema.nullable(),
60
- deprecations: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Any deprecation notices returned by the API.").optional())
60
+ deprecations: zod.z.array(zod.z.string()).describe("Any deprecation notices returned by the API.").nullable().optional()
61
61
  }).describe("Response schema for creating a new person.");
62
62
  const folkCreatePerson = require_action.action("FOLK_CREATE_PERSON", {
63
63
  slug: "folk-create-person",
@@ -1 +1 @@
1
- {"version":3,"file":"create-person.cjs","names":["z","action"],"sources":["../../src/actions/create-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreatePersonInput = z.object({\n emails: z.array(z.string()).describe(\"List of email addresses for the person. The first email is considered the primary email.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the person to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers for the person. The first phone is considered the primary phone.\").optional(),\n lastName: z.string().describe(\"Last name of the person.\").optional(),\n firstName: z.string().describe(\"First name of the person.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new person in the workspace.\");\nconst FolkCreatePerson_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreatePerson_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}).describe(\"A company associated with the person.\");\nconst FolkCreatePerson_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email address of the user.\").optional()),\n fullName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the user.\").optional()),\n}).describe(\"User information with ID, full name, and email.\");\nconst FolkCreatePerson_UserMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Number of interactions between current user and contact.\").nullable(),\n lastInteractedAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Most recent interaction timestamp in ISO 8601 date-time format.\").optional()),\n}).describe(\"User-specific interaction metadata.\");\nconst FolkCreatePerson_WorkspaceMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Total number of workspace interactions with contact.\").nullable(),\n lastInteractedAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Most recent workspace interaction timestamp in ISO 8601 date-time format.\").optional()),\n lastInteractedBy: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkCreatePerson_UserInfoSchema).describe(\"Users who last interacted with the contact.\").optional()),\n}).describe(\"Workspace-wide interaction metadata.\");\nconst FolkCreatePerson_InteractionMetadataSchema = z.object({\n user: FolkCreatePerson_UserMetadataSchema.nullable(),\n workspace: FolkCreatePerson_WorkspaceMetadataSchema.nullable(),\n}).describe(\"Metadata about interactions with the person.\");\nconst FolkCreatePerson_CreatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created person.\").nullable(),\n urls: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"URLs associated with the person.\").optional()),\n emails: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Email addresses associated with the person.\").optional()),\n groups: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkCreatePerson_GroupLinkResponseSchema).describe(\"Groups the person belongs to with ID and name.\").optional()),\n phones: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Phone numbers associated with the person.\").optional()),\n birthday: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Birthday of the person in ISO date format (YYYY-MM-DD).\").optional()),\n fullName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the person.\").optional()),\n jobTitle: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Job title of the person.\").optional()),\n lastName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name of the person.\").optional()),\n addresses: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Addresses associated with the person.\").optional()),\n companies: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkCreatePerson_CompanyItemSchema).describe(\"Companies associated with the person.\").optional()),\n createdAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the person was created.\").optional()),\n createdBy: FolkCreatePerson_UserInfoSchema.nullable(),\n firstName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name of the person.\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Description of the person.\").optional()),\n customFieldValues: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).\").optional()),\n interactionMetadata: FolkCreatePerson_InteractionMetadataSchema.nullable(),\n strongestConnection: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Map of group IDs to workspace members with the strongest connection to this person.\").optional()),\n}).describe(\"Data returned after a successful person creation.\");\nexport const FolkCreatePersonOutput = z.object({\n data: FolkCreatePerson_CreatePersonResponseDataSchema.nullable(),\n deprecations: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").optional()),\n}).describe(\"Response schema for creating a new person.\");\n\nexport const folkCreatePerson = action(\"FOLK_CREATE_PERSON\", {\n slug: \"folk-create-person\",\n name: \"Create Person\",\n description: \"Creates a new person in the Folk workspace with the specified details. Optional fields include: first name, last name, emails, phones, group assignments, and custom field values. The first email/phone in the list is treated as the primary contact. Returns the created person with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkC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IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC;AACjO,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAM,gDAAgD,SAAS;CAC/D,cAAcA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;AACrK,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-person.cjs","names":["z","action"],"sources":["../../src/actions/create-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreatePersonInput = z.object({\n emails: z.array(z.string()).describe(\"List of email addresses for the person. The first email is considered the primary email.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the person to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers for the person. The first phone is considered the primary phone.\").optional(),\n lastName: z.string().describe(\"Last name of the person.\").optional(),\n firstName: z.string().describe(\"First name of the person.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new person in the workspace.\");\nconst FolkCreatePerson_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreatePerson_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}).describe(\"A company associated with the person.\");\nconst FolkCreatePerson_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user.\").nullable().optional(),\n}).describe(\"User information with ID, full name, and email.\");\nconst FolkCreatePerson_UserMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Number of interactions between current user and contact.\").nullable(),\n lastInteractedAt: z.string().describe(\"Most recent interaction timestamp in ISO 8601 date-time format.\").nullable().optional(),\n}).describe(\"User-specific interaction metadata.\");\nconst FolkCreatePerson_WorkspaceMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Total number of workspace interactions with contact.\").nullable(),\n lastInteractedAt: z.string().describe(\"Most recent workspace interaction timestamp in ISO 8601 date-time format.\").nullable().optional(),\n lastInteractedBy: z.array(FolkCreatePerson_UserInfoSchema).describe(\"Users who last interacted with the contact.\").nullable().optional(),\n}).describe(\"Workspace-wide interaction metadata.\");\nconst FolkCreatePerson_InteractionMetadataSchema = z.object({\n user: FolkCreatePerson_UserMetadataSchema.nullable(),\n workspace: FolkCreatePerson_WorkspaceMetadataSchema.nullable(),\n}).describe(\"Metadata about interactions with the person.\");\nconst FolkCreatePerson_CreatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created person.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the person.\").nullable().optional(),\n emails: z.array(z.string()).describe(\"Email addresses associated with the person.\").nullable().optional(),\n groups: z.array(FolkCreatePerson_GroupLinkResponseSchema).describe(\"Groups the person belongs to with ID and name.\").nullable().optional(),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the person.\").nullable().optional(),\n birthday: z.string().describe(\"Birthday of the person in ISO date format (YYYY-MM-DD).\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the person.\").nullable().optional(),\n jobTitle: z.string().describe(\"Job title of the person.\").nullable().optional(),\n lastName: z.string().describe(\"Last name of the person.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the person.\").nullable().optional(),\n companies: z.array(FolkCreatePerson_CompanyItemSchema).describe(\"Companies associated with the person.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the person was created.\").nullable().optional(),\n createdBy: FolkCreatePerson_UserInfoSchema.nullable(),\n firstName: z.string().describe(\"First name of the person.\").nullable().optional(),\n description: z.string().describe(\"Description of the person.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).\").nullable().optional(),\n interactionMetadata: FolkCreatePerson_InteractionMetadataSchema.nullable(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Map of group IDs to workspace members with the strongest connection to this person.\").nullable().optional(),\n}).describe(\"Data returned after a successful person creation.\");\nexport const FolkCreatePersonOutput = z.object({\n data: FolkCreatePerson_CreatePersonResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).describe(\"Response schema for creating a new person.\");\n\nexport const folkCreatePerson = action(\"FOLK_CREATE_PERSON\", {\n slug: \"folk-create-person\",\n name: \"Create Person\",\n description: \"Creates a new person in the Folk workspace with the specified details. Optional fields include: first name, last name, emails, phones, group assignments, and custom field values. The first email/phone in the list is treated as the primary contact. Returns the created person with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreatePersonInput,\n output: FolkCreatePersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC1I,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACzB,IAAIA,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mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChO,qBAAqB,2CAA2C,SAAS;CACzE,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7K,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAM,gDAAgD,SAAS;CAC/D,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -14,49 +14,49 @@ declare const FolkCreatePersonInput: z.ZodObject<{
14
14
  declare const FolkCreatePersonOutput: z.ZodObject<{
15
15
  data: z.ZodNullable<z.ZodObject<{
16
16
  id: z.ZodNullable<z.ZodString>;
17
- urls: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
18
- emails: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
19
- groups: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
17
+ urls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
18
+ emails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
19
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
20
20
  id: z.ZodNullable<z.ZodString>;
21
21
  name: z.ZodNullable<z.ZodString>;
22
22
  }, z.core.$strip>>>>;
23
- phones: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
24
- birthday: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
- fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
- jobTitle: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
27
- lastName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
28
- addresses: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
29
- companies: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ phones: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
24
+ birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ jobTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ addresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
29
+ companies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
30
30
  id: z.ZodNullable<z.ZodString>;
31
31
  name: z.ZodNullable<z.ZodString>;
32
32
  }, z.core.$strip>>>>;
33
- createdAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
33
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
34
  createdBy: z.ZodNullable<z.ZodObject<{
35
35
  id: z.ZodNullable<z.ZodString>;
36
- email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
37
- fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
36
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
38
  }, z.core.$strip>>;
39
- firstName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
40
- description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
41
- customFieldValues: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
39
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ customFieldValues: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
42
42
  interactionMetadata: z.ZodNullable<z.ZodObject<{
43
43
  user: z.ZodNullable<z.ZodObject<{
44
44
  approximateCount: z.ZodNullable<z.ZodNumber>;
45
- lastInteractedAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
45
+ lastInteractedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
46
  }, z.core.$strip>>;
47
47
  workspace: z.ZodNullable<z.ZodObject<{
48
48
  approximateCount: z.ZodNullable<z.ZodNumber>;
49
- lastInteractedAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
50
- lastInteractedBy: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
49
+ lastInteractedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ lastInteractedBy: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
51
51
  id: z.ZodNullable<z.ZodString>;
52
- email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
53
- fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
52
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  }, z.core.$strip>>>>;
55
55
  }, z.core.$strip>>;
56
56
  }, z.core.$strip>>;
57
- strongestConnection: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
57
+ strongestConnection: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
58
58
  }, z.core.$strip>>;
59
- deprecations: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
59
+ deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
60
60
  }, z.core.$strip>;
61
61
  declare const folkCreatePerson: import("@keystrokehq/action").WorkflowActionDefinition<{
62
62
  emails?: string[] | undefined;
@@ -67,53 +67,7 @@ declare const folkCreatePerson: import("@keystrokehq/action").WorkflowActionDefi
67
67
  lastName?: string | undefined;
68
68
  firstName?: string | undefined;
69
69
  customFieldValues?: Record<string, unknown> | undefined;
70
- }, {
71
- data: {
72
- id: string | null;
73
- createdBy: {
74
- id: string | null;
75
- email?: string | undefined;
76
- fullName?: string | undefined;
77
- } | null;
78
- interactionMetadata: {
79
- user: {
80
- approximateCount: number | null;
81
- lastInteractedAt?: string | undefined;
82
- } | null;
83
- workspace: {
84
- approximateCount: number | null;
85
- lastInteractedAt?: string | undefined;
86
- lastInteractedBy?: {
87
- id: string | null;
88
- email?: string | undefined;
89
- fullName?: string | undefined;
90
- }[] | undefined;
91
- } | null;
92
- } | null;
93
- urls?: string[] | undefined;
94
- emails?: string[] | undefined;
95
- groups?: {
96
- id: string | null;
97
- name: string | null;
98
- }[] | undefined;
99
- phones?: string[] | undefined;
100
- birthday?: string | undefined;
101
- fullName?: string | undefined;
102
- jobTitle?: string | undefined;
103
- lastName?: string | undefined;
104
- addresses?: string[] | undefined;
105
- companies?: {
106
- id: string | null;
107
- name: string | null;
108
- }[] | undefined;
109
- createdAt?: string | undefined;
110
- firstName?: string | undefined;
111
- description?: string | undefined;
112
- customFieldValues?: Record<string, unknown> | undefined;
113
- strongestConnection?: Record<string, unknown> | undefined;
114
- } | null;
115
- deprecations?: string[] | undefined;
116
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
70
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
117
71
  //#endregion
118
72
  export { folkCreatePerson };
119
73
  //# sourceMappingURL=create-person.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-person.d.cts","names":[],"sources":["../../src/actions/create-person.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;cAwDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"create-person.d.cts","names":[],"sources":["../../src/actions/create-person.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;cAwDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA;;;;;;;;sBAM3B,MAAA;AAAA"}
@@ -14,49 +14,49 @@ declare const FolkCreatePersonInput: z.ZodObject<{
14
14
  declare const FolkCreatePersonOutput: z.ZodObject<{
15
15
  data: z.ZodNullable<z.ZodObject<{
16
16
  id: z.ZodNullable<z.ZodString>;
17
- urls: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
18
- emails: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
19
- groups: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
17
+ urls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
18
+ emails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
19
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
20
20
  id: z.ZodNullable<z.ZodString>;
21
21
  name: z.ZodNullable<z.ZodString>;
22
22
  }, z.core.$strip>>>>;
23
- phones: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
24
- birthday: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
- fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
- jobTitle: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
27
- lastName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
28
- addresses: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
29
- companies: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ phones: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
24
+ birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ jobTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ addresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
29
+ companies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
30
30
  id: z.ZodNullable<z.ZodString>;
31
31
  name: z.ZodNullable<z.ZodString>;
32
32
  }, z.core.$strip>>>>;
33
- createdAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
33
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
34
  createdBy: z.ZodNullable<z.ZodObject<{
35
35
  id: z.ZodNullable<z.ZodString>;
36
- email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
37
- fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
36
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
38
  }, z.core.$strip>>;
39
- firstName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
40
- description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
41
- customFieldValues: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
39
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ customFieldValues: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
42
42
  interactionMetadata: z.ZodNullable<z.ZodObject<{
43
43
  user: z.ZodNullable<z.ZodObject<{
44
44
  approximateCount: z.ZodNullable<z.ZodNumber>;
45
- lastInteractedAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
45
+ lastInteractedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
46
  }, z.core.$strip>>;
47
47
  workspace: z.ZodNullable<z.ZodObject<{
48
48
  approximateCount: z.ZodNullable<z.ZodNumber>;
49
- lastInteractedAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
50
- lastInteractedBy: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
49
+ lastInteractedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ lastInteractedBy: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
51
51
  id: z.ZodNullable<z.ZodString>;
52
- email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
53
- fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
52
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
54
  }, z.core.$strip>>>>;
55
55
  }, z.core.$strip>>;
56
56
  }, z.core.$strip>>;
57
- strongestConnection: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
57
+ strongestConnection: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
58
58
  }, z.core.$strip>>;
59
- deprecations: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
59
+ deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
60
60
  }, z.core.$strip>;
61
61
  declare const folkCreatePerson: import("@keystrokehq/action").WorkflowActionDefinition<{
62
62
  emails?: string[] | undefined;
@@ -67,53 +67,7 @@ declare const folkCreatePerson: import("@keystrokehq/action").WorkflowActionDefi
67
67
  lastName?: string | undefined;
68
68
  firstName?: string | undefined;
69
69
  customFieldValues?: Record<string, unknown> | undefined;
70
- }, {
71
- data: {
72
- id: string | null;
73
- createdBy: {
74
- id: string | null;
75
- email?: string | undefined;
76
- fullName?: string | undefined;
77
- } | null;
78
- interactionMetadata: {
79
- user: {
80
- approximateCount: number | null;
81
- lastInteractedAt?: string | undefined;
82
- } | null;
83
- workspace: {
84
- approximateCount: number | null;
85
- lastInteractedAt?: string | undefined;
86
- lastInteractedBy?: {
87
- id: string | null;
88
- email?: string | undefined;
89
- fullName?: string | undefined;
90
- }[] | undefined;
91
- } | null;
92
- } | null;
93
- urls?: string[] | undefined;
94
- emails?: string[] | undefined;
95
- groups?: {
96
- id: string | null;
97
- name: string | null;
98
- }[] | undefined;
99
- phones?: string[] | undefined;
100
- birthday?: string | undefined;
101
- fullName?: string | undefined;
102
- jobTitle?: string | undefined;
103
- lastName?: string | undefined;
104
- addresses?: string[] | undefined;
105
- companies?: {
106
- id: string | null;
107
- name: string | null;
108
- }[] | undefined;
109
- createdAt?: string | undefined;
110
- firstName?: string | undefined;
111
- description?: string | undefined;
112
- customFieldValues?: Record<string, unknown> | undefined;
113
- strongestConnection?: Record<string, unknown> | undefined;
114
- } | null;
115
- deprecations?: string[] | undefined;
116
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
70
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
117
71
  //#endregion
118
72
  export { folkCreatePerson };
119
73
  //# sourceMappingURL=create-person.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-person.d.mts","names":[],"sources":["../../src/actions/create-person.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;cAwDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"create-person.d.mts","names":[],"sources":["../../src/actions/create-person.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;cAwDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA;;;;;;;;sBAM3B,MAAA;AAAA"}
@@ -19,17 +19,17 @@ const FolkCreatePerson_CompanyItemSchema = z.object({
19
19
  }).describe("A company associated with the person.");
20
20
  const FolkCreatePerson_UserInfoSchema = z.object({
21
21
  id: z.string().describe("Unique identifier of the user.").nullable(),
22
- email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Email address of the user.").optional()),
23
- fullName: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Full name of the user.").optional())
22
+ email: z.string().describe("Email address of the user.").nullable().optional(),
23
+ fullName: z.string().describe("Full name of the user.").nullable().optional()
24
24
  }).describe("User information with ID, full name, and email.");
25
25
  const FolkCreatePerson_UserMetadataSchema = z.object({
26
26
  approximateCount: z.number().int().describe("Number of interactions between current user and contact.").nullable(),
27
- lastInteractedAt: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Most recent interaction timestamp in ISO 8601 date-time format.").optional())
27
+ lastInteractedAt: z.string().describe("Most recent interaction timestamp in ISO 8601 date-time format.").nullable().optional()
28
28
  }).describe("User-specific interaction metadata.");
29
29
  const FolkCreatePerson_WorkspaceMetadataSchema = z.object({
30
30
  approximateCount: z.number().int().describe("Total number of workspace interactions with contact.").nullable(),
31
- lastInteractedAt: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Most recent workspace interaction timestamp in ISO 8601 date-time format.").optional()),
32
- lastInteractedBy: z.preprocess((value) => value === null ? void 0 : value, z.array(FolkCreatePerson_UserInfoSchema).describe("Users who last interacted with the contact.").optional())
31
+ lastInteractedAt: z.string().describe("Most recent workspace interaction timestamp in ISO 8601 date-time format.").nullable().optional(),
32
+ lastInteractedBy: z.array(FolkCreatePerson_UserInfoSchema).describe("Users who last interacted with the contact.").nullable().optional()
33
33
  }).describe("Workspace-wide interaction metadata.");
34
34
  const FolkCreatePerson_InteractionMetadataSchema = z.object({
35
35
  user: FolkCreatePerson_UserMetadataSchema.nullable(),
@@ -37,23 +37,23 @@ const FolkCreatePerson_InteractionMetadataSchema = z.object({
37
37
  }).describe("Metadata about interactions with the person.");
38
38
  const FolkCreatePerson_CreatePersonResponseDataSchema = z.object({
39
39
  id: z.string().describe("ID of the created person.").nullable(),
40
- urls: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("URLs associated with the person.").optional()),
41
- emails: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("Email addresses associated with the person.").optional()),
42
- groups: z.preprocess((value) => value === null ? void 0 : value, z.array(FolkCreatePerson_GroupLinkResponseSchema).describe("Groups the person belongs to with ID and name.").optional()),
43
- phones: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("Phone numbers associated with the person.").optional()),
44
- birthday: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Birthday of the person in ISO date format (YYYY-MM-DD).").optional()),
45
- fullName: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Full name of the person.").optional()),
46
- jobTitle: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Job title of the person.").optional()),
47
- lastName: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Last name of the person.").optional()),
48
- addresses: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("Addresses associated with the person.").optional()),
49
- companies: z.preprocess((value) => value === null ? void 0 : value, z.array(FolkCreatePerson_CompanyItemSchema).describe("Companies associated with the person.").optional()),
50
- createdAt: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO 8601 timestamp when the person was created.").optional()),
40
+ urls: z.array(z.string()).describe("URLs associated with the person.").nullable().optional(),
41
+ emails: z.array(z.string()).describe("Email addresses associated with the person.").nullable().optional(),
42
+ groups: z.array(FolkCreatePerson_GroupLinkResponseSchema).describe("Groups the person belongs to with ID and name.").nullable().optional(),
43
+ phones: z.array(z.string()).describe("Phone numbers associated with the person.").nullable().optional(),
44
+ birthday: z.string().describe("Birthday of the person in ISO date format (YYYY-MM-DD).").nullable().optional(),
45
+ fullName: z.string().describe("Full name of the person.").nullable().optional(),
46
+ jobTitle: z.string().describe("Job title of the person.").nullable().optional(),
47
+ lastName: z.string().describe("Last name of the person.").nullable().optional(),
48
+ addresses: z.array(z.string()).describe("Addresses associated with the person.").nullable().optional(),
49
+ companies: z.array(FolkCreatePerson_CompanyItemSchema).describe("Companies associated with the person.").nullable().optional(),
50
+ createdAt: z.string().describe("ISO 8601 timestamp when the person was created.").nullable().optional(),
51
51
  createdBy: FolkCreatePerson_UserInfoSchema.nullable(),
52
- firstName: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("First name of the person.").optional()),
53
- description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Description of the person.").optional()),
54
- customFieldValues: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).").optional()),
52
+ firstName: z.string().describe("First name of the person.").nullable().optional(),
53
+ description: z.string().describe("Description of the person.").nullable().optional(),
54
+ customFieldValues: z.record(z.string(), z.unknown()).describe("Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).").nullable().optional(),
55
55
  interactionMetadata: FolkCreatePerson_InteractionMetadataSchema.nullable(),
56
- strongestConnection: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Map of group IDs to workspace members with the strongest connection to this person.").optional())
56
+ strongestConnection: z.record(z.string(), z.unknown()).describe("Map of group IDs to workspace members with the strongest connection to this person.").nullable().optional()
57
57
  }).describe("Data returned after a successful person creation.");
58
58
  const folkCreatePerson = action("FOLK_CREATE_PERSON", {
59
59
  slug: "folk-create-person",
@@ -62,7 +62,7 @@ const folkCreatePerson = action("FOLK_CREATE_PERSON", {
62
62
  input: FolkCreatePersonInput,
63
63
  output: z.object({
64
64
  data: FolkCreatePerson_CreatePersonResponseDataSchema.nullable(),
65
- deprecations: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("Any deprecation notices returned by the API.").optional())
65
+ deprecations: z.array(z.string()).describe("Any deprecation notices returned by the API.").nullable().optional()
66
66
  }).describe("Response schema for creating a new person.")
67
67
  });
68
68
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"create-person.mjs","names":[],"sources":["../../src/actions/create-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreatePersonInput = z.object({\n emails: z.array(z.string()).describe(\"List of email addresses for the person. The first email is considered the primary email.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the person to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers for the person. The first phone is considered the primary phone.\").optional(),\n lastName: z.string().describe(\"Last name of the person.\").optional(),\n firstName: z.string().describe(\"First name of the person.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new person in the workspace.\");\nconst FolkCreatePerson_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreatePerson_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}).describe(\"A company associated with the person.\");\nconst FolkCreatePerson_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email address of the user.\").optional()),\n fullName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the user.\").optional()),\n}).describe(\"User information with ID, full name, and email.\");\nconst FolkCreatePerson_UserMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Number of interactions between current user and contact.\").nullable(),\n lastInteractedAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Most recent interaction timestamp in ISO 8601 date-time format.\").optional()),\n}).describe(\"User-specific interaction metadata.\");\nconst FolkCreatePerson_WorkspaceMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Total number of workspace interactions with contact.\").nullable(),\n lastInteractedAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Most recent workspace interaction timestamp in ISO 8601 date-time format.\").optional()),\n lastInteractedBy: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkCreatePerson_UserInfoSchema).describe(\"Users who last interacted with the contact.\").optional()),\n}).describe(\"Workspace-wide interaction metadata.\");\nconst FolkCreatePerson_InteractionMetadataSchema = z.object({\n user: FolkCreatePerson_UserMetadataSchema.nullable(),\n workspace: FolkCreatePerson_WorkspaceMetadataSchema.nullable(),\n}).describe(\"Metadata about interactions with the person.\");\nconst FolkCreatePerson_CreatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created person.\").nullable(),\n urls: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"URLs associated with the person.\").optional()),\n emails: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Email addresses associated with the person.\").optional()),\n groups: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkCreatePerson_GroupLinkResponseSchema).describe(\"Groups the person belongs to with ID and name.\").optional()),\n phones: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Phone numbers associated with the person.\").optional()),\n birthday: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Birthday of the person in ISO date format (YYYY-MM-DD).\").optional()),\n fullName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the person.\").optional()),\n jobTitle: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Job title of the person.\").optional()),\n lastName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name of the person.\").optional()),\n addresses: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Addresses associated with the person.\").optional()),\n companies: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkCreatePerson_CompanyItemSchema).describe(\"Companies associated with the person.\").optional()),\n createdAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the person was created.\").optional()),\n createdBy: FolkCreatePerson_UserInfoSchema.nullable(),\n firstName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name of the person.\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Description of the person.\").optional()),\n customFieldValues: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).\").optional()),\n interactionMetadata: FolkCreatePerson_InteractionMetadataSchema.nullable(),\n strongestConnection: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Map of group IDs to workspace members with the strongest connection to this person.\").optional()),\n}).describe(\"Data returned after a successful person creation.\");\nexport const FolkCreatePersonOutput = z.object({\n data: FolkCreatePerson_CreatePersonResponseDataSchema.nullable(),\n deprecations: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").optional()),\n}).describe(\"Response schema for creating a new person.\");\n\nexport const folkCreatePerson = action(\"FOLK_CREATE_PERSON\", {\n slug: \"folk-create-person\",\n name: \"Create Person\",\n description: \"Creates a new person in the Folk workspace with the specified details. Optional fields include: first name, last name, emails, phones, group assignments, and custom field values. The first email/phone in the list is treated as the primary contact. Returns the created person with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreatePersonInput,\n output: FolkCreatePersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC1I,QAAQ,EAAE,MAAM,EAAE,OAAO,EACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACjE,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACvH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACxI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACrE,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;AAClM,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AAC3D,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AAC5D,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,kCAA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person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreatePersonInput = z.object({\n emails: z.array(z.string()).describe(\"List of email addresses for the person. The first email is considered the primary email.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the person to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers for the person. The first phone is considered the primary phone.\").optional(),\n lastName: z.string().describe(\"Last name of the person.\").optional(),\n firstName: z.string().describe(\"First name of the person.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new person in the workspace.\");\nconst FolkCreatePerson_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreatePerson_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}).describe(\"A company associated with the person.\");\nconst FolkCreatePerson_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user.\").nullable().optional(),\n}).describe(\"User information with ID, full name, and email.\");\nconst FolkCreatePerson_UserMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Number of interactions between current user and contact.\").nullable(),\n lastInteractedAt: z.string().describe(\"Most recent interaction timestamp in ISO 8601 date-time format.\").nullable().optional(),\n}).describe(\"User-specific interaction metadata.\");\nconst FolkCreatePerson_WorkspaceMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Total number of workspace interactions with contact.\").nullable(),\n lastInteractedAt: z.string().describe(\"Most recent workspace interaction timestamp in ISO 8601 date-time format.\").nullable().optional(),\n lastInteractedBy: z.array(FolkCreatePerson_UserInfoSchema).describe(\"Users who last interacted with the contact.\").nullable().optional(),\n}).describe(\"Workspace-wide interaction metadata.\");\nconst FolkCreatePerson_InteractionMetadataSchema = z.object({\n user: FolkCreatePerson_UserMetadataSchema.nullable(),\n workspace: FolkCreatePerson_WorkspaceMetadataSchema.nullable(),\n}).describe(\"Metadata about interactions with the person.\");\nconst FolkCreatePerson_CreatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created person.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the person.\").nullable().optional(),\n emails: z.array(z.string()).describe(\"Email addresses associated with the person.\").nullable().optional(),\n groups: z.array(FolkCreatePerson_GroupLinkResponseSchema).describe(\"Groups the person belongs to with ID and name.\").nullable().optional(),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the person.\").nullable().optional(),\n birthday: z.string().describe(\"Birthday of the person in ISO date format (YYYY-MM-DD).\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the person.\").nullable().optional(),\n jobTitle: z.string().describe(\"Job title of the person.\").nullable().optional(),\n lastName: z.string().describe(\"Last name of the person.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the person.\").nullable().optional(),\n companies: z.array(FolkCreatePerson_CompanyItemSchema).describe(\"Companies associated with the person.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the person was created.\").nullable().optional(),\n createdBy: FolkCreatePerson_UserInfoSchema.nullable(),\n firstName: z.string().describe(\"First name of the person.\").nullable().optional(),\n description: z.string().describe(\"Description of the person.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).\").nullable().optional(),\n interactionMetadata: FolkCreatePerson_InteractionMetadataSchema.nullable(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Map of group IDs to workspace members with the strongest connection to this person.\").nullable().optional(),\n}).describe(\"Data returned after a successful person creation.\");\nexport const FolkCreatePersonOutput = z.object({\n data: FolkCreatePerson_CreatePersonResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).describe(\"Response schema for creating a new person.\");\n\nexport const folkCreatePerson = action(\"FOLK_CREATE_PERSON\", {\n slug: \"folk-create-person\",\n name: \"Create Person\",\n description: \"Creates a new person in the Folk workspace with the specified details. Optional fields include: first name, last name, emails, phones, group assignments, and custom field values. The first email/phone in the list is treated as the primary contact. Returns the created person with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreatePersonInput,\n output: FolkCreatePersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC1I,QAAQ,EAAE,MAAM,EAAE,OAAO,EACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACjE,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACvH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACxI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACrE,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;AAClM,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAA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,CAAC,SAAS;CACtG,WAAW,gCAAgC,SAAS;CACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChO,qBAAqB,2CAA2C,SAAS;CACzE,qBAAqB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7K,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAM/D,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoC,EAAE,OAAO;EAC7C,MAAM,gDAAgD,SAAS;EAC/D,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
@@ -5,7 +5,7 @@ const FolkDeleteCompanyInput = zod.z.object({ company_id: zod.z.string().describ
5
5
  const FolkDeleteCompany_DeleteCompanyResponseDataSchema = zod.z.object({ id: zod.z.string().describe("ID of the deleted company.").nullable() }).describe("Data returned after a successful delete.");
6
6
  const FolkDeleteCompanyOutput = zod.z.object({
7
7
  data: FolkDeleteCompany_DeleteCompanyResponseDataSchema.nullable(),
8
- deprecations: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Any deprecation notices returned by the API.").optional())
8
+ deprecations: zod.z.array(zod.z.string()).describe("Any deprecation notices returned by the API.").nullable().optional()
9
9
  }).describe("Response schema for deleting a company.");
10
10
  const folkDeleteCompany = require_action.action("FOLK_DELETE_COMPANY", {
11
11
  slug: "folk-delete-company",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-company.cjs","names":["z","action"],"sources":["../../src/actions/delete-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkDeleteCompanyInput = z.object({\n company_id: z.string().describe(\"The ID of the company to delete. Must be exactly 40 characters.\"),\n}).describe(\"Request schema for deleting a company.\");\nconst FolkDeleteCompany_DeleteCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the deleted company.\").nullable(),\n}).describe(\"Data returned after a successful delete.\");\nexport const FolkDeleteCompanyOutput = z.object({\n data: FolkDeleteCompany_DeleteCompanyResponseDataSchema.nullable(),\n deprecations: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").optional()),\n}).describe(\"Response schema for deleting a company.\");\n\nexport const folkDeleteCompany = action(\"FOLK_DELETE_COMPANY\", {\n slug: \"folk-delete-company\",\n name: \"Delete Company\",\n description: \"Tool to delete a company from the workspace (irreversible). Use after confirming this company should be removed.\",\n input: FolkDeleteCompanyInput,\n output: FolkDeleteCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EACnG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oDAAoDA,IAAAA,EAAE,OAAO,EACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EACjE,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAM,kDAAkD,SAAS;CACjE,cAAcA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;AACrK,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-company.cjs","names":["z","action"],"sources":["../../src/actions/delete-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkDeleteCompanyInput = z.object({\n company_id: z.string().describe(\"The ID of the company to delete. Must be exactly 40 characters.\"),\n}).describe(\"Request schema for deleting a company.\");\nconst FolkDeleteCompany_DeleteCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the deleted company.\").nullable(),\n}).describe(\"Data returned after a successful delete.\");\nexport const FolkDeleteCompanyOutput = z.object({\n data: FolkDeleteCompany_DeleteCompanyResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).describe(\"Response schema for deleting a company.\");\n\nexport const folkDeleteCompany = action(\"FOLK_DELETE_COMPANY\", {\n slug: \"folk-delete-company\",\n name: \"Delete Company\",\n description: \"Tool to delete a company from the workspace (irreversible). Use after confirming this company should be removed.\",\n input: FolkDeleteCompanyInput,\n output: FolkDeleteCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EACnG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oDAAoDA,IAAAA,EAAE,OAAO,EACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EACjE,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAM,kDAAkD,SAAS;CACjE,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,16 +8,11 @@ declare const FolkDeleteCompanyOutput: z.ZodObject<{
8
8
  data: z.ZodNullable<z.ZodObject<{
9
9
  id: z.ZodNullable<z.ZodString>;
10
10
  }, z.core.$strip>>;
11
- deprecations: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
11
+ deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
12
12
  }, z.core.$strip>;
13
13
  declare const folkDeleteCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  company_id: string;
15
- }, {
16
- data: {
17
- id: string | null;
18
- } | null;
19
- deprecations?: string[] | undefined;
20
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
16
  //#endregion
22
17
  export { folkDeleteCompany };
23
18
  //# sourceMappingURL=delete-company.d.cts.map
@@ -8,16 +8,11 @@ declare const FolkDeleteCompanyOutput: z.ZodObject<{
8
8
  data: z.ZodNullable<z.ZodObject<{
9
9
  id: z.ZodNullable<z.ZodString>;
10
10
  }, z.core.$strip>>;
11
- deprecations: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
11
+ deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
12
12
  }, z.core.$strip>;
13
13
  declare const folkDeleteCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  company_id: string;
15
- }, {
16
- data: {
17
- id: string | null;
18
- } | null;
19
- deprecations?: string[] | undefined;
20
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
16
  //#endregion
22
17
  export { folkDeleteCompany };
23
18
  //# sourceMappingURL=delete-company.d.mts.map
@@ -10,7 +10,7 @@ const folkDeleteCompany = action("FOLK_DELETE_COMPANY", {
10
10
  input: FolkDeleteCompanyInput,
11
11
  output: z.object({
12
12
  data: FolkDeleteCompany_DeleteCompanyResponseDataSchema.nullable(),
13
- deprecations: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("Any deprecation notices returned by the API.").optional())
13
+ deprecations: z.array(z.string()).describe("Any deprecation notices returned by the API.").nullable().optional()
14
14
  }).describe("Response schema for deleting a company.")
15
15
  });
16
16
  //#endregion