@keystrokehq/folk 0.1.1 → 0.1.3

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 (159) 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 +12 -12
  4. package/dist/actions/create-company.cjs.map +1 -1
  5. package/dist/actions/create-company.d.cts +14 -40
  6. package/dist/actions/create-company.d.cts.map +1 -1
  7. package/dist/actions/create-company.d.mts +14 -40
  8. package/dist/actions/create-company.d.mts.map +1 -1
  9. package/dist/actions/create-company.mjs +12 -12
  10. package/dist/actions/create-company.mjs.map +1 -1
  11. package/dist/actions/create-note.cjs +11 -11
  12. package/dist/actions/create-note.cjs.map +1 -1
  13. package/dist/actions/create-note.d.cts +12 -35
  14. package/dist/actions/create-note.d.mts +12 -35
  15. package/dist/actions/create-note.mjs +11 -11
  16. package/dist/actions/create-note.mjs.map +1 -1
  17. package/dist/actions/create-person.cjs +30 -30
  18. package/dist/actions/create-person.cjs.map +1 -1
  19. package/dist/actions/create-person.d.cts +35 -80
  20. package/dist/actions/create-person.d.cts.map +1 -1
  21. package/dist/actions/create-person.d.mts +35 -80
  22. package/dist/actions/create-person.d.mts.map +1 -1
  23. package/dist/actions/create-person.mjs +30 -30
  24. package/dist/actions/create-person.mjs.map +1 -1
  25. package/dist/actions/delete-company.cjs +3 -3
  26. package/dist/actions/delete-company.cjs.map +1 -1
  27. package/dist/actions/delete-company.d.cts +4 -9
  28. package/dist/actions/delete-company.d.mts +4 -9
  29. package/dist/actions/delete-company.mjs +3 -3
  30. package/dist/actions/delete-company.mjs.map +1 -1
  31. package/dist/actions/delete-note.cjs +3 -3
  32. package/dist/actions/delete-note.cjs.map +1 -1
  33. package/dist/actions/delete-note.d.cts +4 -9
  34. package/dist/actions/delete-note.d.mts +4 -9
  35. package/dist/actions/delete-note.mjs +3 -3
  36. package/dist/actions/delete-note.mjs.map +1 -1
  37. package/dist/actions/delete-person.cjs +3 -3
  38. package/dist/actions/delete-person.cjs.map +1 -1
  39. package/dist/actions/delete-person.d.cts +4 -9
  40. package/dist/actions/delete-person.d.mts +4 -9
  41. package/dist/actions/delete-person.mjs +3 -3
  42. package/dist/actions/delete-person.mjs.map +1 -1
  43. package/dist/actions/delete-reminder.cjs +3 -3
  44. package/dist/actions/delete-reminder.cjs.map +1 -1
  45. package/dist/actions/delete-reminder.d.cts +4 -9
  46. package/dist/actions/delete-reminder.d.mts +4 -9
  47. package/dist/actions/delete-reminder.mjs +3 -3
  48. package/dist/actions/delete-reminder.mjs.map +1 -1
  49. package/dist/actions/get-company.cjs +4 -4
  50. package/dist/actions/get-company.cjs.map +1 -1
  51. package/dist/actions/get-company.d.cts +5 -20
  52. package/dist/actions/get-company.d.cts.map +1 -1
  53. package/dist/actions/get-company.d.mts +5 -20
  54. package/dist/actions/get-company.d.mts.map +1 -1
  55. package/dist/actions/get-company.mjs +4 -4
  56. package/dist/actions/get-company.mjs.map +1 -1
  57. package/dist/actions/get-current-workspace-user.cjs +2 -2
  58. package/dist/actions/get-current-workspace-user.cjs.map +1 -1
  59. package/dist/actions/get-current-workspace-user.d.cts +3 -9
  60. package/dist/actions/get-current-workspace-user.d.cts.map +1 -1
  61. package/dist/actions/get-current-workspace-user.d.mts +3 -9
  62. package/dist/actions/get-current-workspace-user.d.mts.map +1 -1
  63. package/dist/actions/get-current-workspace-user.mjs +2 -2
  64. package/dist/actions/get-current-workspace-user.mjs.map +1 -1
  65. package/dist/actions/get-note.cjs +18 -18
  66. package/dist/actions/get-note.cjs.map +1 -1
  67. package/dist/actions/get-note.d.cts +22 -76
  68. package/dist/actions/get-note.d.cts.map +1 -1
  69. package/dist/actions/get-note.d.mts +22 -76
  70. package/dist/actions/get-note.d.mts.map +1 -1
  71. package/dist/actions/get-note.mjs +18 -18
  72. package/dist/actions/get-note.mjs.map +1 -1
  73. package/dist/actions/get-person.cjs +21 -21
  74. package/dist/actions/get-person.cjs.map +1 -1
  75. package/dist/actions/get-person.d.cts +22 -51
  76. package/dist/actions/get-person.d.mts +22 -51
  77. package/dist/actions/get-person.mjs +21 -21
  78. package/dist/actions/get-person.mjs.map +1 -1
  79. package/dist/actions/get-user.cjs +3 -3
  80. package/dist/actions/get-user.cjs.map +1 -1
  81. package/dist/actions/get-user.d.cts +4 -11
  82. package/dist/actions/get-user.d.mts +4 -11
  83. package/dist/actions/get-user.mjs +3 -3
  84. package/dist/actions/get-user.mjs.map +1 -1
  85. package/dist/actions/list-companies.cjs +14 -14
  86. package/dist/actions/list-companies.cjs.map +1 -1
  87. package/dist/actions/list-companies.d.cts +17 -49
  88. package/dist/actions/list-companies.d.cts.map +1 -1
  89. package/dist/actions/list-companies.d.mts +17 -49
  90. package/dist/actions/list-companies.d.mts.map +1 -1
  91. package/dist/actions/list-companies.mjs +14 -14
  92. package/dist/actions/list-companies.mjs.map +1 -1
  93. package/dist/actions/list-group-custom-fields.cjs +10 -10
  94. package/dist/actions/list-group-custom-fields.cjs.map +1 -1
  95. package/dist/actions/list-group-custom-fields.d.cts +12 -31
  96. package/dist/actions/list-group-custom-fields.d.mts +12 -31
  97. package/dist/actions/list-group-custom-fields.mjs +10 -10
  98. package/dist/actions/list-group-custom-fields.mjs.map +1 -1
  99. package/dist/actions/list-groups.cjs +6 -6
  100. package/dist/actions/list-groups.cjs.map +1 -1
  101. package/dist/actions/list-groups.d.cts +8 -19
  102. package/dist/actions/list-groups.d.mts +8 -19
  103. package/dist/actions/list-groups.mjs +6 -6
  104. package/dist/actions/list-groups.mjs.map +1 -1
  105. package/dist/actions/list-notes.cjs +13 -13
  106. package/dist/actions/list-notes.cjs.map +1 -1
  107. package/dist/actions/list-notes.d.cts +15 -51
  108. package/dist/actions/list-notes.d.mts +15 -51
  109. package/dist/actions/list-notes.mjs +13 -13
  110. package/dist/actions/list-notes.mjs.map +1 -1
  111. package/dist/actions/list-people.cjs +22 -22
  112. package/dist/actions/list-people.cjs.map +1 -1
  113. package/dist/actions/list-people.d.cts +25 -65
  114. package/dist/actions/list-people.d.cts.map +1 -1
  115. package/dist/actions/list-people.d.mts +25 -65
  116. package/dist/actions/list-people.d.mts.map +1 -1
  117. package/dist/actions/list-people.mjs +22 -22
  118. package/dist/actions/list-people.mjs.map +1 -1
  119. package/dist/actions/list-reminders.cjs +11 -11
  120. package/dist/actions/list-reminders.cjs.map +1 -1
  121. package/dist/actions/list-reminders.d.cts +14 -45
  122. package/dist/actions/list-reminders.d.mts +14 -45
  123. package/dist/actions/list-reminders.mjs +11 -11
  124. package/dist/actions/list-reminders.mjs.map +1 -1
  125. package/dist/actions/list-users.cjs +5 -5
  126. package/dist/actions/list-users.cjs.map +1 -1
  127. package/dist/actions/list-users.d.cts +7 -19
  128. package/dist/actions/list-users.d.mts +7 -19
  129. package/dist/actions/list-users.mjs +5 -5
  130. package/dist/actions/list-users.mjs.map +1 -1
  131. package/dist/actions/list-webhooks.cjs +12 -12
  132. package/dist/actions/list-webhooks.cjs.map +1 -1
  133. package/dist/actions/list-webhooks.d.cts +14 -38
  134. package/dist/actions/list-webhooks.d.mts +14 -38
  135. package/dist/actions/list-webhooks.mjs +12 -12
  136. package/dist/actions/list-webhooks.mjs.map +1 -1
  137. package/dist/actions/update-company.cjs +6 -6
  138. package/dist/actions/update-company.cjs.map +1 -1
  139. package/dist/actions/update-company.d.cts +8 -23
  140. package/dist/actions/update-company.d.cts.map +1 -1
  141. package/dist/actions/update-company.d.mts +8 -23
  142. package/dist/actions/update-company.d.mts.map +1 -1
  143. package/dist/actions/update-company.mjs +6 -6
  144. package/dist/actions/update-company.mjs.map +1 -1
  145. package/dist/actions/update-note.cjs +14 -14
  146. package/dist/actions/update-note.cjs.map +1 -1
  147. package/dist/actions/update-note.d.cts +15 -36
  148. package/dist/actions/update-note.d.mts +15 -36
  149. package/dist/actions/update-note.mjs +14 -14
  150. package/dist/actions/update-note.mjs.map +1 -1
  151. package/dist/actions/update-person.cjs +25 -25
  152. package/dist/actions/update-person.cjs.map +1 -1
  153. package/dist/actions/update-person.d.cts +28 -58
  154. package/dist/actions/update-person.d.cts.map +1 -1
  155. package/dist/actions/update-person.d.mts +28 -58
  156. package/dist/actions/update-person.d.mts.map +1 -1
  157. package/dist/actions/update-person.mjs +25 -25
  158. package/dist/actions/update-person.mjs.map +1 -1
  159. package/package.json +1 -1
@@ -5,16 +5,16 @@ const FolkGetPersonInput = z.object({ person_id: z.string().describe("The unique
5
5
  const FolkGetPerson_GroupItemSchema = z.object({
6
6
  id: z.string().describe("The group's unique identifier").nullable(),
7
7
  name: z.string().describe("The group's name").nullable()
8
- }).describe("A group that a person belongs to.");
8
+ }).passthrough().describe("A group that a person belongs to.");
9
9
  const FolkGetPerson_CompanyItemSchema = z.object({
10
10
  id: z.string().describe("The company's unique identifier").nullable(),
11
11
  name: z.string().describe("The company's name").nullable()
12
- }).describe("A company associated with a person.");
12
+ }).passthrough().describe("A company associated with a person.");
13
13
  const FolkGetPerson_CreatedByUserSchema = z.object({
14
14
  id: z.string().describe("The user's unique identifier").nullable(),
15
15
  email: z.string().describe("The user's email address").nullable(),
16
16
  fullName: z.string().describe("The user's full name").nullable()
17
- }).describe("User information for the person who created this record.");
17
+ }).passthrough().describe("User information for the person who created this record.");
18
18
  const folkGetPerson = action("FOLK_GET_PERSON", {
19
19
  slug: "folk-get-person",
20
20
  name: "Get Person",
@@ -22,24 +22,24 @@ const folkGetPerson = action("FOLK_GET_PERSON", {
22
22
  input: FolkGetPersonInput,
23
23
  output: z.object({
24
24
  id: z.string().describe("The unique identifier of the person").nullable(),
25
- urls: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("A list of URLs associated with the person (websites, social profiles, etc.)").optional()),
26
- emails: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("A list of the person's email addresses").optional()),
27
- groups: z.preprocess((value) => value === null ? void 0 : value, z.array(FolkGetPerson_GroupItemSchema).describe("A list of groups the person belongs to").optional()),
28
- phones: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("A list of the person's phone numbers").optional()),
29
- birthday: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set").optional()),
30
- fullName: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The person's full name").optional()),
31
- jobTitle: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The person's job title").optional()),
32
- lastName: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The person's last name").optional()),
33
- addresses: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("A list of the person's street addresses").optional()),
34
- companies: z.preprocess((value) => value === null ? void 0 : value, z.array(FolkGetPerson_CompanyItemSchema).describe("A list of companies associated with the person").optional()),
35
- createdAt: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO8601 timestamp of when this person record was created").optional()),
36
- createdBy: z.preprocess((value) => value === null ? void 0 : value, FolkGetPerson_CreatedByUserSchema.optional()),
37
- firstName: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The person's first name").optional()),
38
- description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("A description of the person").optional()),
39
- customFieldValues: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Custom field values organized by group ID, containing key-value pairs specific to each group").optional()),
40
- interactionMetadata: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Metadata about interactions with this person, including counts and timestamps").optional()),
41
- strongestConnection: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Information about the strongest connection to this person").optional())
42
- }).describe("Response schema for retrieving a person by ID.")
25
+ urls: z.array(z.string()).describe("A list of URLs associated with the person (websites, social profiles, etc.)").nullable().optional(),
26
+ emails: z.array(z.string()).describe("A list of the person's email addresses").nullable().optional(),
27
+ groups: z.array(FolkGetPerson_GroupItemSchema).describe("A list of groups the person belongs to").nullable().optional(),
28
+ phones: z.array(z.string()).describe("A list of the person's phone numbers").nullable().optional(),
29
+ birthday: z.string().describe("The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set").nullable().optional(),
30
+ fullName: z.string().describe("The person's full name").nullable().optional(),
31
+ jobTitle: z.string().describe("The person's job title").nullable().optional(),
32
+ lastName: z.string().describe("The person's last name").nullable().optional(),
33
+ addresses: z.array(z.string()).describe("A list of the person's street addresses").nullable().optional(),
34
+ companies: z.array(FolkGetPerson_CompanyItemSchema).describe("A list of companies associated with the person").nullable().optional(),
35
+ createdAt: z.string().describe("ISO8601 timestamp of when this person record was created").nullable().optional(),
36
+ createdBy: FolkGetPerson_CreatedByUserSchema.nullable().optional(),
37
+ firstName: z.string().describe("The person's first name").nullable().optional(),
38
+ description: z.string().describe("A description of the person").nullable().optional(),
39
+ 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(),
40
+ interactionMetadata: z.record(z.string(), z.unknown()).describe("Metadata about interactions with this person, including counts and timestamps").nullable().optional(),
41
+ strongestConnection: z.record(z.string(), z.unknown()).describe("Information about the strongest connection to this person").nullable().optional()
42
+ }).passthrough().describe("Response schema for retrieving a person by ID.")
43
43
  });
44
44
  //#endregion
45
45
  export { folkGetPerson };
@@ -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}).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}).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}).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.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"A list of URLs associated with the person (websites, social profiles, etc.)\").optional()),\n emails: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"A list of the person's email addresses\").optional()),\n groups: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkGetPerson_GroupItemSchema).describe(\"A list of groups the person belongs to\").optional()),\n phones: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"A list of the person's phone numbers\").optional()),\n birthday: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set\").optional()),\n fullName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's full name\").optional()),\n jobTitle: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's job title\").optional()),\n lastName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's last name\").optional()),\n addresses: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"A list of the person's street addresses\").optional()),\n companies: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkGetPerson_CompanyItemSchema).describe(\"A list of companies associated with the person\").optional()),\n createdAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO8601 timestamp of when this person record was created\").optional()),\n createdBy: z.preprocess((value) => (value === null ? undefined : value), FolkGetPerson_CreatedByUserSchema.optional()),\n firstName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's first name\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"A description of the person\").optional()),\n customFieldValues: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Custom field values organized by group ID, containing key-value pairs specific to each group\").optional()),\n interactionMetadata: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Metadata about interactions with this person, including counts and timestamps\").optional()),\n strongestConnection: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Information about the strongest connection to this person\").optional()),\n}).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":";;;AAIA,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,SAAS,mCAAmC;AAC/C,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,SAAS,qCAAqC;AACjD,MAAM,oCAAoC,EAAE,OAAO;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChE,UAAU,EAAE,OAAO,CAAC,CAAC,SA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AACV,CAAC"}
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":";;;AAIA,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,EA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AM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,WAAW,EAAE,MAAM,+BAA+B,CAAC,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,gDAOhB;AACV,CAAC"}
@@ -6,11 +6,11 @@ const FolkGetUser_UserDataSchema = zod.z.object({
6
6
  id: zod.z.string().describe("Unique identifier of the user").nullable(),
7
7
  email: zod.z.string().describe("Email address of the user").nullable(),
8
8
  fullName: zod.z.string().describe("Full name of the user").nullable()
9
- }).describe("Representation of a workspace user.");
9
+ }).passthrough().describe("Representation of a workspace user.");
10
10
  const FolkGetUserOutput = zod.z.object({
11
11
  data: FolkGetUser_UserDataSchema.nullable(),
12
- deprecations: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Deprecation warnings, if any").optional())
13
- }).describe("Response schema for retrieving a user by ID.");
12
+ deprecations: zod.z.array(zod.z.string()).describe("Deprecation warnings, if any").nullable().optional()
13
+ }).passthrough().describe("Response schema for retrieving a user by ID.");
14
14
  const folkGetUser = require_action.action("FOLK_GET_USER", {
15
15
  slug: "folk-get-user",
16
16
  name: "Get User",
@@ -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}).describe(\"Representation of a workspace user.\");\nexport const FolkGetUserOutput = z.object({\n data: FolkGetUser_UserDataSchema.nullable(),\n deprecations: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Deprecation warnings, if any\").optional()),\n}).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":";;;AAIA,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,SAAS,qCAAqC;AACjD,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,MAAM,2BAA2B,SAAS;CAC1C,cAAcA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC;AACrJ,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,cAAcC,eAAAA,OAAO,iBAAiB;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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":";;;AAIA,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,cAAcC,eAAAA,OAAO,iBAAiB;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,19 +9,12 @@ declare const FolkGetUserOutput: z.ZodObject<{
9
9
  id: z.ZodNullable<z.ZodString>;
10
10
  email: z.ZodNullable<z.ZodString>;
11
11
  fullName: z.ZodNullable<z.ZodString>;
12
- }, z.core.$strip>>;
13
- deprecations: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
14
- }, z.core.$strip>;
12
+ }, z.core.$loose>>;
13
+ deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
14
+ }, z.core.$loose>;
15
15
  declare const folkGetUser: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  user_id: string;
17
- }, {
18
- data: {
19
- id: string | null;
20
- email: string | null;
21
- fullName: string | null;
22
- } | null;
23
- deprecations?: string[] | undefined;
24
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
18
  //#endregion
26
19
  export { folkGetUser };
27
20
  //# sourceMappingURL=get-user.d.cts.map
@@ -9,19 +9,12 @@ declare const FolkGetUserOutput: z.ZodObject<{
9
9
  id: z.ZodNullable<z.ZodString>;
10
10
  email: z.ZodNullable<z.ZodString>;
11
11
  fullName: z.ZodNullable<z.ZodString>;
12
- }, z.core.$strip>>;
13
- deprecations: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
14
- }, z.core.$strip>;
12
+ }, z.core.$loose>>;
13
+ deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
14
+ }, z.core.$loose>;
15
15
  declare const folkGetUser: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  user_id: string;
17
- }, {
18
- data: {
19
- id: string | null;
20
- email: string | null;
21
- fullName: string | null;
22
- } | null;
23
- deprecations?: string[] | undefined;
24
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
18
  //#endregion
26
19
  export { folkGetUser };
27
20
  //# sourceMappingURL=get-user.d.mts.map
@@ -6,7 +6,7 @@ const FolkGetUser_UserDataSchema = z.object({
6
6
  id: z.string().describe("Unique identifier of the user").nullable(),
7
7
  email: z.string().describe("Email address of the user").nullable(),
8
8
  fullName: z.string().describe("Full name of the user").nullable()
9
- }).describe("Representation of a workspace user.");
9
+ }).passthrough().describe("Representation of a workspace user.");
10
10
  const folkGetUser = action("FOLK_GET_USER", {
11
11
  slug: "folk-get-user",
12
12
  name: "Get User",
@@ -14,8 +14,8 @@ const folkGetUser = action("FOLK_GET_USER", {
14
14
  input: FolkGetUserInput,
15
15
  output: z.object({
16
16
  data: FolkGetUser_UserDataSchema.nullable(),
17
- deprecations: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("Deprecation warnings, if any").optional())
18
- }).describe("Response schema for retrieving a user by ID.")
17
+ deprecations: z.array(z.string()).describe("Deprecation warnings, if any").nullable().optional()
18
+ }).passthrough().describe("Response schema for retrieving a user by ID.")
19
19
  });
20
20
  //#endregion
21
21
  export { folkGetUser };
@@ -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}).describe(\"Representation of a workspace user.\");\nexport const FolkGetUserOutput = z.object({\n data: FolkGetUser_UserDataSchema.nullable(),\n deprecations: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Deprecation warnings, if any\").optional()),\n}).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":";;;AAIA,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,SAAS,qCAAqC;AAMjD,MAAa,cAAc,OAAO,iBAAiB;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+B,EAAE,OAAO;EACxC,MAAM,2BAA2B,SAAS;EAC1C,cAAc,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC;CACrJ,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
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":";;;AAIA,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,cAAc,OAAO,iBAAiB;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+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,8CAOhB;AACV,CAAC"}
@@ -4,18 +4,18 @@ let zod = require("zod");
4
4
  const FolkListCompaniesInput = zod.z.object({
5
5
  limit: zod.z.number().int().default(20).describe("The number of items to return. Must be between 1 and 100.").optional(),
6
6
  cursor: zod.z.string().describe("A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.").optional(),
7
- filter: zod.z.object({}).describe("Filters to apply, using `filter[attribute][operator]=value` syntax.").optional(),
7
+ filter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Filters to apply, using `filter[attribute][operator]=value` syntax.").optional(),
8
8
  combinator: zod.z.enum(["and", "or"]).default("and").describe("Logical operator to combine multiple filters.").optional()
9
9
  }).describe("Request parameters for listing companies in the workspace.");
10
10
  const FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema = zod.z.object({
11
11
  id: zod.z.string().describe("Unique identifier of the group.").nullable(),
12
12
  name: zod.z.string().describe("Name of the group.").nullable()
13
- }).describe("A group object in the workspace.");
13
+ }).passthrough().describe("A group object in the workspace.");
14
14
  const FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema = zod.z.object({
15
15
  id: zod.z.string().describe("Unique identifier of the user.").nullable(),
16
16
  email: zod.z.string().describe("Email address of the user.").nullable(),
17
17
  fullName: zod.z.string().describe("Full name of the user.").nullable()
18
- }).describe("User who created the company.");
18
+ }).passthrough().describe("User who created the company.");
19
19
  const FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema = zod.z.object({
20
20
  id: zod.z.string().describe("Unique company identifier.").nullable(),
21
21
  name: zod.z.string().describe("Company name.").nullable(),
@@ -23,26 +23,26 @@ const FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema = zod.z.object({
23
23
  emails: zod.z.array(zod.z.string()).describe("Email addresses for the company."),
24
24
  groups: zod.z.array(FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema).describe("Groups this company belongs to."),
25
25
  phones: zod.z.array(zod.z.string()).describe("Phone numbers for the company."),
26
- industry: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Industry the company operates in.").optional()),
26
+ industry: zod.z.string().describe("Industry the company operates in.").nullable().optional(),
27
27
  addresses: zod.z.array(zod.z.string()).describe("Postal addresses for the company."),
28
28
  createdAt: zod.z.string().describe("ISO 8601 timestamp when the company was created.").nullable(),
29
29
  createdBy: FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema.nullable(),
30
- description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Textual description of the company.").optional()),
31
- employeeRange: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Range of employees (e.g., '1-10', '11-50').").optional()),
32
- fundingRaised: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().describe("Total funding raised by the company.").optional()),
33
- foundationYear: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Year the company was founded.").optional()),
34
- lastFundingDate: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Date of the last funding round.").optional()),
30
+ description: zod.z.string().describe("Textual description of the company.").nullable().optional(),
31
+ employeeRange: zod.z.string().describe("Range of employees (e.g., '1-10', '11-50').").nullable().optional(),
32
+ fundingRaised: zod.z.number().describe("Total funding raised by the company.").nullable().optional(),
33
+ foundationYear: zod.z.number().int().describe("Year the company was founded.").nullable().optional(),
34
+ lastFundingDate: zod.z.string().describe("Date of the last funding round.").nullable().optional(),
35
35
  customFieldValues: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field values keyed by group ID; values may be primitives or nested objects.")
36
- }).describe("A company object in the workspace.");
37
- const FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema = zod.z.object({ nextLink: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("URL to fetch the next page of results. Omit if no further pages.").optional()) }).describe("Pagination information for list-companies endpoint.");
36
+ }).passthrough().describe("A company object in the workspace.");
37
+ const FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema = zod.z.object({ nextLink: zod.z.string().describe("URL to fetch the next page of results. Omit if no further pages.").nullable().optional() }).passthrough().describe("Pagination information for list-companies endpoint.");
38
38
  const FolkListCompanies_FOLK_LIST_COMPANIESDataSchema = zod.z.object({
39
39
  items: zod.z.array(FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema).describe("List of retrieved companies."),
40
40
  pagination: FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema.nullable()
41
- }).describe("Data envelope for list-companies response.");
41
+ }).passthrough().describe("Data envelope for list-companies response.");
42
42
  const FolkListCompaniesOutput = zod.z.object({
43
43
  data: FolkListCompanies_FOLK_LIST_COMPANIESDataSchema.nullable(),
44
- deprecations: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("List of deprecation warnings, if any.").optional())
45
- }).describe("Full response schema for list-companies.");
44
+ deprecations: zod.z.array(zod.z.string()).describe("List of deprecation warnings, if any.").nullable().optional()
45
+ }).passthrough().describe("Full response schema for list-companies.");
46
46
  const folkListCompanies = require_action.action("FOLK_LIST_COMPANIES", {
47
47
  slug: "folk-list-companies",
48
48
  name: "List Companies",
@@ -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.object({}).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}).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}).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.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Industry the company operates in.\").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.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Textual description of the company.\").optional()),\n employeeRange: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Range of employees (e.g., '1-10', '11-50').\").optional()),\n fundingRaised: z.preprocess((value) => (value === null ? undefined : value), z.number().describe(\"Total funding raised by the company.\").optional()),\n foundationYear: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Year the company was founded.\").optional()),\n lastFundingDate: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Date of the last funding round.\").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}).describe(\"A company object in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema = z.object({\n nextLink: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL to fetch the next page of results. Omit if no further pages.\").optional()),\n}).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}).describe(\"Data envelope for list-companies response.\");\nexport const FolkListCompaniesOutput = z.object({\n data: FolkListCompanies_FOLK_LIST_COMPANIESDataSchema.nullable(),\n deprecations: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"List of deprecation warnings, if any.\").optional()),\n}).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":";;;AAIA,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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC9G,YAAYA,IAAAA,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AAC3D,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAA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.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":";;;AAIA,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,O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C,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,kDAAkDA,IAAAA,EAAE,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,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  declare const FolkListCompaniesInput: z.ZodObject<{
5
5
  limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
6
  cursor: z.ZodOptional<z.ZodString>;
7
- filter: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
7
+ filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
8
  combinator: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
9
9
  and: "and";
10
10
  or: "or";
@@ -20,67 +20,35 @@ declare const FolkListCompaniesOutput: z.ZodObject<{
20
20
  groups: z.ZodArray<z.ZodObject<{
21
21
  id: z.ZodNullable<z.ZodString>;
22
22
  name: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strip>>;
23
+ }, z.core.$loose>>;
24
24
  phones: z.ZodArray<z.ZodString>;
25
- industry: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  addresses: z.ZodArray<z.ZodString>;
27
27
  createdAt: z.ZodNullable<z.ZodString>;
28
28
  createdBy: z.ZodNullable<z.ZodObject<{
29
29
  id: z.ZodNullable<z.ZodString>;
30
30
  email: z.ZodNullable<z.ZodString>;
31
31
  fullName: z.ZodNullable<z.ZodString>;
32
- }, z.core.$strip>>;
33
- description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
34
- employeeRange: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
35
- fundingRaised: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
36
- foundationYear: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
37
- lastFundingDate: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
+ }, z.core.$loose>>;
33
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ employeeRange: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ fundingRaised: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ foundationYear: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ lastFundingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
38
  customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
39
- }, z.core.$strip>>;
39
+ }, z.core.$loose>>;
40
40
  pagination: z.ZodNullable<z.ZodObject<{
41
- nextLink: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
42
- }, z.core.$strip>>;
43
- }, z.core.$strip>>;
44
- deprecations: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
45
- }, z.core.$strip>;
41
+ nextLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$loose>>;
43
+ }, z.core.$loose>>;
44
+ deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
45
+ }, z.core.$loose>;
46
46
  declare const folkListCompanies: import("@keystrokehq/action").WorkflowActionDefinition<{
47
47
  limit?: number | undefined;
48
48
  cursor?: string | undefined;
49
- filter?: Record<string, never> | undefined;
49
+ filter?: Record<string, unknown> | undefined;
50
50
  combinator?: "and" | "or" | undefined;
51
- }, {
52
- data: {
53
- items: {
54
- id: string | null;
55
- name: string | null;
56
- urls: string[];
57
- emails: string[];
58
- groups: {
59
- id: string | null;
60
- name: string | null;
61
- }[];
62
- phones: string[];
63
- addresses: string[];
64
- createdAt: string | null;
65
- createdBy: {
66
- id: string | null;
67
- email: string | null;
68
- fullName: string | null;
69
- } | null;
70
- customFieldValues: Record<string, unknown>;
71
- industry?: string | undefined;
72
- description?: string | undefined;
73
- employeeRange?: string | undefined;
74
- fundingRaised?: number | undefined;
75
- foundationYear?: number | undefined;
76
- lastFundingDate?: string | undefined;
77
- }[];
78
- pagination: {
79
- nextLink?: string | undefined;
80
- } | null;
81
- } | null;
82
- deprecations?: string[] | undefined;
83
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
51
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
84
52
  //#endregion
85
53
  export { folkListCompanies };
86
54
  //# sourceMappingURL=list-companies.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-companies.d.cts","names":[],"sources":["../../src/actions/list-companies.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;cAwCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;WAM5B,MAAA;;;;;;;;;;;;;;;;;;;;;yBAAA,MAAA"}
1
+ {"version":3,"file":"list-companies.d.cts","names":[],"sources":["../../src/actions/list-companies.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;cAwCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;WAM5B,MAAA"}
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  declare const FolkListCompaniesInput: z.ZodObject<{
5
5
  limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
6
  cursor: z.ZodOptional<z.ZodString>;
7
- filter: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
7
+ filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
8
  combinator: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
9
9
  and: "and";
10
10
  or: "or";
@@ -20,67 +20,35 @@ declare const FolkListCompaniesOutput: z.ZodObject<{
20
20
  groups: z.ZodArray<z.ZodObject<{
21
21
  id: z.ZodNullable<z.ZodString>;
22
22
  name: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strip>>;
23
+ }, z.core.$loose>>;
24
24
  phones: z.ZodArray<z.ZodString>;
25
- industry: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  addresses: z.ZodArray<z.ZodString>;
27
27
  createdAt: z.ZodNullable<z.ZodString>;
28
28
  createdBy: z.ZodNullable<z.ZodObject<{
29
29
  id: z.ZodNullable<z.ZodString>;
30
30
  email: z.ZodNullable<z.ZodString>;
31
31
  fullName: z.ZodNullable<z.ZodString>;
32
- }, z.core.$strip>>;
33
- description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
34
- employeeRange: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
35
- fundingRaised: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
36
- foundationYear: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
37
- lastFundingDate: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
+ }, z.core.$loose>>;
33
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ employeeRange: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ fundingRaised: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ foundationYear: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ lastFundingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
38
  customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
39
- }, z.core.$strip>>;
39
+ }, z.core.$loose>>;
40
40
  pagination: z.ZodNullable<z.ZodObject<{
41
- nextLink: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
42
- }, z.core.$strip>>;
43
- }, z.core.$strip>>;
44
- deprecations: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
45
- }, z.core.$strip>;
41
+ nextLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$loose>>;
43
+ }, z.core.$loose>>;
44
+ deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
45
+ }, z.core.$loose>;
46
46
  declare const folkListCompanies: import("@keystrokehq/action").WorkflowActionDefinition<{
47
47
  limit?: number | undefined;
48
48
  cursor?: string | undefined;
49
- filter?: Record<string, never> | undefined;
49
+ filter?: Record<string, unknown> | undefined;
50
50
  combinator?: "and" | "or" | undefined;
51
- }, {
52
- data: {
53
- items: {
54
- id: string | null;
55
- name: string | null;
56
- urls: string[];
57
- emails: string[];
58
- groups: {
59
- id: string | null;
60
- name: string | null;
61
- }[];
62
- phones: string[];
63
- addresses: string[];
64
- createdAt: string | null;
65
- createdBy: {
66
- id: string | null;
67
- email: string | null;
68
- fullName: string | null;
69
- } | null;
70
- customFieldValues: Record<string, unknown>;
71
- industry?: string | undefined;
72
- description?: string | undefined;
73
- employeeRange?: string | undefined;
74
- fundingRaised?: number | undefined;
75
- foundationYear?: number | undefined;
76
- lastFundingDate?: string | undefined;
77
- }[];
78
- pagination: {
79
- nextLink?: string | undefined;
80
- } | null;
81
- } | null;
82
- deprecations?: string[] | undefined;
83
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
51
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
84
52
  //#endregion
85
53
  export { folkListCompanies };
86
54
  //# sourceMappingURL=list-companies.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-companies.d.mts","names":[],"sources":["../../src/actions/list-companies.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;cAwCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;WAM5B,MAAA;;;;;;;;;;;;;;;;;;;;;yBAAA,MAAA"}
1
+ {"version":3,"file":"list-companies.d.mts","names":[],"sources":["../../src/actions/list-companies.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;cAwCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;WAM5B,MAAA"}
@@ -4,18 +4,18 @@ import { z } from "zod";
4
4
  const FolkListCompaniesInput = z.object({
5
5
  limit: z.number().int().default(20).describe("The number of items to return. Must be between 1 and 100.").optional(),
6
6
  cursor: z.string().describe("A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.").optional(),
7
- filter: z.object({}).describe("Filters to apply, using `filter[attribute][operator]=value` syntax.").optional(),
7
+ filter: z.record(z.string(), z.unknown()).describe("Filters to apply, using `filter[attribute][operator]=value` syntax.").optional(),
8
8
  combinator: z.enum(["and", "or"]).default("and").describe("Logical operator to combine multiple filters.").optional()
9
9
  }).describe("Request parameters for listing companies in the workspace.");
10
10
  const FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema = z.object({
11
11
  id: z.string().describe("Unique identifier of the group.").nullable(),
12
12
  name: z.string().describe("Name of the group.").nullable()
13
- }).describe("A group object in the workspace.");
13
+ }).passthrough().describe("A group object in the workspace.");
14
14
  const FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema = z.object({
15
15
  id: z.string().describe("Unique identifier of the user.").nullable(),
16
16
  email: z.string().describe("Email address of the user.").nullable(),
17
17
  fullName: z.string().describe("Full name of the user.").nullable()
18
- }).describe("User who created the company.");
18
+ }).passthrough().describe("User who created the company.");
19
19
  const FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema = z.object({
20
20
  id: z.string().describe("Unique company identifier.").nullable(),
21
21
  name: z.string().describe("Company name.").nullable(),
@@ -23,22 +23,22 @@ const FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema = z.object({
23
23
  emails: z.array(z.string()).describe("Email addresses for the company."),
24
24
  groups: z.array(FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema).describe("Groups this company belongs to."),
25
25
  phones: z.array(z.string()).describe("Phone numbers for the company."),
26
- industry: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Industry the company operates in.").optional()),
26
+ industry: z.string().describe("Industry the company operates in.").nullable().optional(),
27
27
  addresses: z.array(z.string()).describe("Postal addresses for the company."),
28
28
  createdAt: z.string().describe("ISO 8601 timestamp when the company was created.").nullable(),
29
29
  createdBy: FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema.nullable(),
30
- description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Textual description of the company.").optional()),
31
- employeeRange: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Range of employees (e.g., '1-10', '11-50').").optional()),
32
- fundingRaised: z.preprocess((value) => value === null ? void 0 : value, z.number().describe("Total funding raised by the company.").optional()),
33
- foundationYear: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Year the company was founded.").optional()),
34
- lastFundingDate: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Date of the last funding round.").optional()),
30
+ description: z.string().describe("Textual description of the company.").nullable().optional(),
31
+ employeeRange: z.string().describe("Range of employees (e.g., '1-10', '11-50').").nullable().optional(),
32
+ fundingRaised: z.number().describe("Total funding raised by the company.").nullable().optional(),
33
+ foundationYear: z.number().int().describe("Year the company was founded.").nullable().optional(),
34
+ lastFundingDate: z.string().describe("Date of the last funding round.").nullable().optional(),
35
35
  customFieldValues: z.record(z.string(), z.unknown()).describe("Custom field values keyed by group ID; values may be primitives or nested objects.")
36
- }).describe("A company object in the workspace.");
37
- const FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema = z.object({ nextLink: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("URL to fetch the next page of results. Omit if no further pages.").optional()) }).describe("Pagination information for list-companies endpoint.");
36
+ }).passthrough().describe("A company object in the workspace.");
37
+ const FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema = z.object({ nextLink: z.string().describe("URL to fetch the next page of results. Omit if no further pages.").nullable().optional() }).passthrough().describe("Pagination information for list-companies endpoint.");
38
38
  const FolkListCompanies_FOLK_LIST_COMPANIESDataSchema = z.object({
39
39
  items: z.array(FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema).describe("List of retrieved companies."),
40
40
  pagination: FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema.nullable()
41
- }).describe("Data envelope for list-companies response.");
41
+ }).passthrough().describe("Data envelope for list-companies response.");
42
42
  const folkListCompanies = action("FOLK_LIST_COMPANIES", {
43
43
  slug: "folk-list-companies",
44
44
  name: "List Companies",
@@ -46,8 +46,8 @@ const folkListCompanies = action("FOLK_LIST_COMPANIES", {
46
46
  input: FolkListCompaniesInput,
47
47
  output: z.object({
48
48
  data: FolkListCompanies_FOLK_LIST_COMPANIESDataSchema.nullable(),
49
- deprecations: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("List of deprecation warnings, if any.").optional())
50
- }).describe("Full response schema for list-companies.")
49
+ deprecations: z.array(z.string()).describe("List of deprecation warnings, if any.").nullable().optional()
50
+ }).passthrough().describe("Full response schema for list-companies.")
51
51
  });
52
52
  //#endregion
53
53
  export { folkListCompanies };