@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
@@ -7,7 +7,7 @@ declare const FolkUpdateCompanyInput: z.ZodObject<{
7
7
  emails: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
8
  groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
9
9
  id: z.ZodString;
10
- }, z.core.$strip>>>;
10
+ }, z.core.$loose>>>;
11
11
  phones: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
12
  addresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
13
  companyId: z.ZodString;
@@ -23,43 +23,28 @@ declare const FolkUpdateCompanyOutput: z.ZodObject<{
23
23
  groups: z.ZodArray<z.ZodObject<{
24
24
  id: z.ZodNullable<z.ZodString>;
25
25
  name: z.ZodNullable<z.ZodString>;
26
- }, z.core.$strip>>;
26
+ }, z.core.$loose>>;
27
27
  phones: z.ZodArray<z.ZodString>;
28
28
  addresses: z.ZodArray<z.ZodString>;
29
- description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
29
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
30
  customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
31
- }, z.core.$strip>>;
32
- deprecations: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
33
- }, z.core.$strip>;
31
+ }, z.core.$loose>>;
32
+ deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
33
+ }, z.core.$loose>;
34
34
  declare const folkUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
35
35
  companyId: string;
36
36
  name?: string | undefined;
37
37
  urls?: string[] | undefined;
38
38
  emails?: string[] | undefined;
39
39
  groups?: {
40
+ [x: string]: unknown;
40
41
  id: string;
41
42
  }[] | undefined;
42
43
  phones?: string[] | undefined;
43
44
  addresses?: string[] | undefined;
44
45
  description?: string | undefined;
45
46
  customFieldValues?: Record<string, unknown> | undefined;
46
- }, {
47
- data: {
48
- id: string | null;
49
- name: string | null;
50
- urls: string[];
51
- emails: string[];
52
- groups: {
53
- id: string | null;
54
- name: string | null;
55
- }[];
56
- phones: string[];
57
- addresses: string[];
58
- customFieldValues: Record<string, unknown>;
59
- description?: string | undefined;
60
- } | null;
61
- deprecations?: string[] | undefined;
62
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
47
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
63
48
  //#endregion
64
49
  export { folkUpdateCompany };
65
50
  //# sourceMappingURL=update-company.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-company.d.mts","names":[],"sources":["../../src/actions/update-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA4BtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;;;sBAM5B,MAAA;AAAA;;;;;;;;;;;;uBAAA,MAAA"}
1
+ {"version":3,"file":"update-company.d.mts","names":[],"sources":["../../src/actions/update-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA4BtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;;;;sBAM5B,MAAA;AAAA"}
@@ -5,7 +5,7 @@ const FolkUpdateCompanyInput = z.object({
5
5
  name: z.string().describe("The name of the company.").optional(),
6
6
  urls: z.array(z.string()).describe("List of URLs associated with the company; replaces existing URLs.").optional(),
7
7
  emails: z.array(z.string()).describe("List of email addresses associated with the company; replaces existing emails.").optional(),
8
- groups: z.array(z.object({ id: z.string().describe("ID of the group to add the company to.") }).describe("Reference to a group by its ID.")).describe("Groups to associate with the company; list values replace existing groups.").optional(),
8
+ groups: z.array(z.object({ id: z.string().describe("ID of the group to add the company to.") }).passthrough().describe("Reference to a group by its ID.")).describe("Groups to associate with the company; list values replace existing groups.").optional(),
9
9
  phones: z.array(z.string()).describe("List of phone numbers associated with the company; replaces existing phones.").optional(),
10
10
  addresses: z.array(z.string()).describe("List of addresses associated with the company; replaces existing addresses.").optional(),
11
11
  companyId: z.string().describe("The ID of the company to update. Must be exactly 40 characters long."),
@@ -15,7 +15,7 @@ const FolkUpdateCompanyInput = z.object({
15
15
  const FolkUpdateCompany_UpdateCompanyGroupSchema = z.object({
16
16
  id: z.string().describe("Group ID.").nullable(),
17
17
  name: z.string().describe("Group name.").nullable()
18
- }).describe("A group associated with the company in the response.");
18
+ }).passthrough().describe("A group associated with the company in the response.");
19
19
  const FolkUpdateCompany_UpdateCompanyResponseDataSchema = z.object({
20
20
  id: z.string().describe("Unique ID of the company.").nullable(),
21
21
  name: z.string().describe("Name of the company.").nullable(),
@@ -24,9 +24,9 @@ const FolkUpdateCompany_UpdateCompanyResponseDataSchema = z.object({
24
24
  groups: z.array(FolkUpdateCompany_UpdateCompanyGroupSchema).describe("Groups associated with the company."),
25
25
  phones: z.array(z.string()).describe("Phone numbers associated with the company."),
26
26
  addresses: z.array(z.string()).describe("Addresses associated with the company."),
27
- description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Description of the company.").optional()),
27
+ description: z.string().describe("Description of the company.").nullable().optional(),
28
28
  customFieldValues: z.record(z.string(), z.unknown()).describe("Custom field values keyed by group ID.")
29
- }).describe("Data returned after updating a company.");
29
+ }).passthrough().describe("Data returned after updating a company.");
30
30
  const folkUpdateCompany = action("FOLK_UPDATE_COMPANY", {
31
31
  slug: "folk-update-company",
32
32
  name: "Update Company",
@@ -34,8 +34,8 @@ const folkUpdateCompany = action("FOLK_UPDATE_COMPANY", {
34
34
  input: FolkUpdateCompanyInput,
35
35
  output: z.object({
36
36
  data: FolkUpdateCompany_UpdateCompanyResponseDataSchema.nullable(),
37
- deprecations: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("Any deprecation notices returned by the API.").optional())
38
- }).describe("Full response schema for updating a company.")
37
+ deprecations: z.array(z.string()).describe("Any deprecation notices returned by the API.").nullable().optional()
38
+ }).passthrough().describe("Full response schema for updating a company.")
39
39
  });
40
40
  //#endregion
41
41
  export { folkUpdateCompany };
@@ -1 +1 @@
1
- {"version":3,"file":"update-company.mjs","names":[],"sources":["../../src/actions/update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdateCompanyInput = z.object({\n name: z.string().describe(\"The name of the company.\").optional(),\n urls: z.array(z.string()).describe(\"List of URLs associated with the company; replaces existing URLs.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the company; replaces existing emails.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the company to.\"),\n}).describe(\"Reference to a group by its ID.\")).describe(\"Groups to associate with the company; list values replace existing groups.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the company; replaces existing phones.\").optional(),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the company; replaces existing addresses.\").optional(),\n companyId: z.string().describe(\"The ID of the company to update. Must be exactly 40 characters long.\"),\n description: z.string().describe(\"A short description of the company.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for updating an existing company. Only provided fields will be updated; list fields replace existing values entirely.\");\nconst FolkUpdateCompany_UpdateCompanyGroupSchema = z.object({\n id: z.string().describe(\"Group ID.\").nullable(),\n name: z.string().describe(\"Group name.\").nullable(),\n}).describe(\"A group associated with the company in the response.\");\nconst FolkUpdateCompany_UpdateCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the company.\").nullable(),\n name: z.string().describe(\"Name of the company.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses associated with the company.\"),\n groups: z.array(FolkUpdateCompany_UpdateCompanyGroupSchema).describe(\"Groups associated with the company.\"),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the company.\"),\n addresses: z.array(z.string()).describe(\"Addresses associated with the company.\"),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Description of the company.\").optional()),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values keyed by group ID.\"),\n}).describe(\"Data returned after updating a company.\");\nexport const FolkUpdateCompanyOutput = z.object({\n data: FolkUpdateCompany_UpdateCompanyResponseDataSchema.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(\"Full response schema for updating a company.\");\n\nexport const folkUpdateCompany = action(\"FOLK_UPDATE_COMPANY\", {\n slug: \"folk-update-company\",\n name: \"Update Company\",\n description: \"Tool to update an existing company in the workspace. Use after confirming the company ID; only provided fields are updated and list fields replace existing values.\",\n input: FolkUpdateCompanyInput,\n output: FolkUpdateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAChI,QAAQ,EAAE,MAAM,EAAE,OAAO,EACzB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EAClE,CAAC,CA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C;CAChF,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC;CACxI,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACxG,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAMrD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqC,EAAE,OAAO;EAC9C,MAAM,kDAAkD,SAAS;EACjE,cAAc,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;CACrK,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-company.mjs","names":[],"sources":["../../src/actions/update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdateCompanyInput = z.object({\n name: z.string().describe(\"The name of the company.\").optional(),\n urls: z.array(z.string()).describe(\"List of URLs associated with the company; replaces existing URLs.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the company; replaces existing emails.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the company to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"Groups to associate with the company; list values replace existing groups.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the company; replaces existing phones.\").optional(),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the company; replaces existing addresses.\").optional(),\n companyId: z.string().describe(\"The ID of the company to update. Must be exactly 40 characters long.\"),\n description: z.string().describe(\"A short description of the company.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for updating an existing company. Only provided fields will be updated; list fields replace existing values entirely.\");\nconst FolkUpdateCompany_UpdateCompanyGroupSchema = z.object({\n id: z.string().describe(\"Group ID.\").nullable(),\n name: z.string().describe(\"Group name.\").nullable(),\n}).passthrough().describe(\"A group associated with the company in the response.\");\nconst FolkUpdateCompany_UpdateCompanyResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the company.\").nullable(),\n name: z.string().describe(\"Name of the company.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses associated with the company.\"),\n groups: z.array(FolkUpdateCompany_UpdateCompanyGroupSchema).describe(\"Groups associated with the company.\"),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the company.\"),\n addresses: z.array(z.string()).describe(\"Addresses associated with the company.\"),\n description: z.string().describe(\"Description of the company.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values keyed by group ID.\"),\n}).passthrough().describe(\"Data returned after updating a company.\");\nexport const FolkUpdateCompanyOutput = z.object({\n data: FolkUpdateCompany_UpdateCompanyResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for updating a company.\");\n\nexport const folkUpdateCompany = action(\"FOLK_UPDATE_COMPANY\", {\n slug: \"folk-update-company\",\n name: \"Update Company\",\n description: \"Tool to update an existing company in the workspace. Use after confirming the company ID; only provided fields are updated and list fields replace existing values.\",\n input: FolkUpdateCompanyInput,\n output: FolkUpdateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,MAAM,EAAE,OAAO,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AQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,qCAAqC;CAC1G,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;CACjF,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC;CAChF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAMnE,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqC,EAAE,OAAO;EAC9C,MAAM,kDAAkD,SAAS;EACjE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
@@ -7,29 +7,29 @@ const FolkUpdateNoteInput = zod.z.object({
7
7
  visibility: zod.z.enum(["public", "private"]).describe("Visibility level for a note.").optional()
8
8
  }).describe("Request schema for updating an existing note. Only provided fields will be updated.");
9
9
  const FolkUpdateNote_UpdateNoteAuthorSchema = zod.z.object({
10
- id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Author ID if available.").optional()),
11
- email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Email of the author.").optional()),
12
- fullName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Full name of the author.").optional())
13
- }).describe("Author information for the note (user, assistant, or deleted).");
10
+ id: zod.z.string().describe("Author ID if available.").nullable().optional(),
11
+ email: zod.z.string().describe("Email of the author.").nullable().optional(),
12
+ fullName: zod.z.string().describe("Full name of the author.").nullable().optional()
13
+ }).passthrough().describe("Author information for the note (user, assistant, or deleted).");
14
14
  const FolkUpdateNote_UpdateNoteEntitySchema = zod.z.object({
15
15
  id: zod.z.string().describe("Entity ID.").nullable(),
16
- fullName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Full name of the entity.").optional()),
16
+ fullName: zod.z.string().describe("Full name of the entity.").nullable().optional(),
17
17
  entityType: zod.z.string().describe("Type of entity (person, company, etc).").nullable()
18
- }).describe("Entity (person, company, or object) connected to the note.");
18
+ }).passthrough().describe("Entity (person, company, or object) connected to the note.");
19
19
  const FolkUpdateNote_UpdateNoteParentNoteSchema = zod.z.object({
20
20
  id: zod.z.string().describe("Parent note ID.").nullable(),
21
- content: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Parent note content.").optional())
22
- }).describe("Parent note reference if this note is a reply.");
21
+ content: zod.z.string().describe("Parent note content.").nullable().optional()
22
+ }).passthrough().describe("Parent note reference if this note is a reply.");
23
23
  const FolkUpdateNote_UpdateNoteResponseDataSchema = zod.z.object({
24
24
  id: zod.z.string().describe("Unique ID of the note.").nullable(),
25
- author: zod.z.preprocess((value) => value === null ? void 0 : value, FolkUpdateNote_UpdateNoteAuthorSchema.optional()),
26
- entity: zod.z.preprocess((value) => value === null ? void 0 : value, FolkUpdateNote_UpdateNoteEntitySchema.optional()),
25
+ author: FolkUpdateNote_UpdateNoteAuthorSchema.nullable().optional(),
26
+ entity: FolkUpdateNote_UpdateNoteEntitySchema.nullable().optional(),
27
27
  content: zod.z.string().describe("Content of the note.").nullable(),
28
- createdAt: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO 8601 timestamp when the note was created.").optional()),
29
- parentNote: zod.z.preprocess((value) => value === null ? void 0 : value, FolkUpdateNote_UpdateNoteParentNoteSchema.optional()),
28
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the note was created.").nullable().optional(),
29
+ parentNote: FolkUpdateNote_UpdateNoteParentNoteSchema.nullable().optional(),
30
30
  visibility: zod.z.string().describe("Visibility of the note (public or private).").nullable()
31
- }).describe("Data returned after updating a note.");
32
- const FolkUpdateNoteOutput = zod.z.object({ data: FolkUpdateNote_UpdateNoteResponseDataSchema.nullable() }).describe("Full response schema for updating a note.");
31
+ }).passthrough().describe("Data returned after updating a note.");
32
+ const FolkUpdateNoteOutput = zod.z.object({ data: FolkUpdateNote_UpdateNoteResponseDataSchema.nullable() }).passthrough().describe("Full response schema for updating a note.");
33
33
  const folkUpdateNote = require_action.action("FOLK_UPDATE_NOTE", {
34
34
  slug: "folk-update-note",
35
35
  name: "Update Note",
@@ -1 +1 @@
1
- {"version":3,"file":"update-note.cjs","names":["z","action"],"sources":["../../src/actions/update-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdateNoteInput = z.object({\n content: z.string().describe(\"The content of the note in plain text or markdown format.\").optional(),\n note_id: z.string().describe(\"The ID of the note to update.\"),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility level for a note.\").optional(),\n}).describe(\"Request schema for updating an existing note. Only provided fields will be updated.\");\nconst FolkUpdateNote_UpdateNoteAuthorSchema = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Author ID if available.\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email of the author.\").optional()),\n fullName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the author.\").optional()),\n}).describe(\"Author information for the note (user, assistant, or deleted).\");\nconst FolkUpdateNote_UpdateNoteEntitySchema = z.object({\n id: z.string().describe(\"Entity ID.\").nullable(),\n fullName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the entity.\").optional()),\n entityType: z.string().describe(\"Type of entity (person, company, etc).\").nullable(),\n}).describe(\"Entity (person, company, or object) connected to the note.\");\nconst FolkUpdateNote_UpdateNoteParentNoteSchema = z.object({\n id: z.string().describe(\"Parent note ID.\").nullable(),\n content: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Parent note content.\").optional()),\n}).describe(\"Parent note reference if this note is a reply.\");\nconst FolkUpdateNote_UpdateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the note.\").nullable(),\n author: z.preprocess((value) => (value === null ? undefined : value), FolkUpdateNote_UpdateNoteAuthorSchema.optional()),\n entity: z.preprocess((value) => (value === null ? undefined : value), FolkUpdateNote_UpdateNoteEntitySchema.optional()),\n content: z.string().describe(\"Content of the note.\").nullable(),\n createdAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the note was created.\").optional()),\n parentNote: z.preprocess((value) => (value === null ? undefined : value), FolkUpdateNote_UpdateNoteParentNoteSchema.optional()),\n visibility: z.string().describe(\"Visibility of the note (public or private).\").nullable(),\n}).describe(\"Data returned after updating a note.\");\nexport const FolkUpdateNoteOutput = z.object({\n data: FolkUpdateNote_UpdateNoteResponseDataSchema.nullable(),\n}).describe(\"Full response schema for updating a note.\");\n\nexport const folkUpdateNote = action(\"FOLK_UPDATE_NOTE\", {\n slug: \"folk-update-note\",\n name: \"Update Note\",\n description: \"Tool to update an existing note in the workspace. Use after confirming the note ID; only provided fields are updated.\",\n input: FolkUpdateNoteInput,\n output: FolkUpdateNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5D,YAAYA,IAAAA,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,YAAY,UAAW,U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AAY,OAAQ,sCAAsC,SAAS,CAAC;CACtH,QAAQA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,sCAAsC,SAAS,CAAC;CACtH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC9D,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC;CACxJ,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,0CAA0C,SAAS,CAAC;CAC9H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,MAAM,4CAA4C,SAAS,EAC7D,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-note.cjs","names":["z","action"],"sources":["../../src/actions/update-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdateNoteInput = z.object({\n content: z.string().describe(\"The content of the note in plain text or markdown format.\").optional(),\n note_id: z.string().describe(\"The ID of the note to update.\"),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility level for a note.\").optional(),\n}).describe(\"Request schema for updating an existing note. Only provided fields will be updated.\");\nconst FolkUpdateNote_UpdateNoteAuthorSchema = z.object({\n id: z.string().describe(\"Author ID if available.\").nullable().optional(),\n email: z.string().describe(\"Email of the author.\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the author.\").nullable().optional(),\n}).passthrough().describe(\"Author information for the note (user, assistant, or deleted).\");\nconst FolkUpdateNote_UpdateNoteEntitySchema = z.object({\n id: z.string().describe(\"Entity ID.\").nullable(),\n fullName: z.string().describe(\"Full name of the entity.\").nullable().optional(),\n entityType: z.string().describe(\"Type of entity (person, company, etc).\").nullable(),\n}).passthrough().describe(\"Entity (person, company, or object) connected to the note.\");\nconst FolkUpdateNote_UpdateNoteParentNoteSchema = z.object({\n id: z.string().describe(\"Parent note ID.\").nullable(),\n content: z.string().describe(\"Parent note content.\").nullable().optional(),\n}).passthrough().describe(\"Parent note reference if this note is a reply.\");\nconst FolkUpdateNote_UpdateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the note.\").nullable(),\n author: FolkUpdateNote_UpdateNoteAuthorSchema.nullable().optional(),\n entity: FolkUpdateNote_UpdateNoteEntitySchema.nullable().optional(),\n content: z.string().describe(\"Content of the note.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable().optional(),\n parentNote: FolkUpdateNote_UpdateNoteParentNoteSchema.nullable().optional(),\n visibility: z.string().describe(\"Visibility of the note (public or private).\").nullable(),\n}).passthrough().describe(\"Data returned after updating a note.\");\nexport const FolkUpdateNoteOutput = z.object({\n data: FolkUpdateNote_UpdateNoteResponseDataSchema.nullable(),\n}).passthrough().describe(\"Full response schema for updating a note.\");\n\nexport const folkUpdateNote = action(\"FOLK_UPDATE_NOTE\", {\n slug: \"folk-update-note\",\n name: \"Update Note\",\n description: \"Tool to update an existing note in the workspace. Use after confirming the note ID; only provided fields are updated.\",\n input: FolkUpdateNoteInput,\n output: FolkUpdateNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5D,YAAYA,IAAAA,EAAE,KAAK,CAAC,UAAU,SAA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sC,SAAS,CAAC,CAAC,SAAS;CAClE,QAAQ,sCAAsC,SAAS,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,MAAM,4CAA4C,SAAS,EAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -12,51 +12,30 @@ declare const FolkUpdateNoteInput: z.ZodObject<{
12
12
  declare const FolkUpdateNoteOutput: z.ZodObject<{
13
13
  data: z.ZodNullable<z.ZodObject<{
14
14
  id: z.ZodNullable<z.ZodString>;
15
- author: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
16
- id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
- fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- }, z.core.$strip>>>;
20
- entity: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
15
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, z.core.$loose>>>;
20
+ entity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
21
  id: z.ZodNullable<z.ZodString>;
22
- fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  entityType: z.ZodNullable<z.ZodString>;
24
- }, z.core.$strip>>>;
24
+ }, z.core.$loose>>>;
25
25
  content: z.ZodNullable<z.ZodString>;
26
- createdAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
27
- parentNote: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
26
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ parentNote: z.ZodOptional<z.ZodNullable<z.ZodObject<{
28
28
  id: z.ZodNullable<z.ZodString>;
29
- content: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
30
- }, z.core.$strip>>>;
29
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, z.core.$loose>>>;
31
31
  visibility: z.ZodNullable<z.ZodString>;
32
- }, z.core.$strip>>;
33
- }, z.core.$strip>;
32
+ }, z.core.$loose>>;
33
+ }, z.core.$loose>;
34
34
  declare const folkUpdateNote: import("@keystrokehq/action").WorkflowActionDefinition<{
35
35
  note_id: string;
36
36
  content?: string | undefined;
37
37
  visibility?: "public" | "private" | undefined;
38
- }, {
39
- data: {
40
- id: string | null;
41
- content: string | null;
42
- visibility: string | null;
43
- author?: {
44
- id?: string | undefined;
45
- email?: string | undefined;
46
- fullName?: string | undefined;
47
- } | undefined;
48
- entity?: {
49
- id: string | null;
50
- entityType: string | null;
51
- fullName?: string | undefined;
52
- } | undefined;
53
- createdAt?: string | undefined;
54
- parentNote?: {
55
- id: string | null;
56
- content?: string | undefined;
57
- } | undefined;
58
- } | null;
59
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
60
39
  //#endregion
61
40
  export { folkUpdateNote };
62
41
  //# sourceMappingURL=update-note.d.cts.map
@@ -12,51 +12,30 @@ declare const FolkUpdateNoteInput: z.ZodObject<{
12
12
  declare const FolkUpdateNoteOutput: z.ZodObject<{
13
13
  data: z.ZodNullable<z.ZodObject<{
14
14
  id: z.ZodNullable<z.ZodString>;
15
- author: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
16
- id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
- fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- }, z.core.$strip>>>;
20
- entity: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
15
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, z.core.$loose>>>;
20
+ entity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
21
  id: z.ZodNullable<z.ZodString>;
22
- fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  entityType: z.ZodNullable<z.ZodString>;
24
- }, z.core.$strip>>>;
24
+ }, z.core.$loose>>>;
25
25
  content: z.ZodNullable<z.ZodString>;
26
- createdAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
27
- parentNote: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
26
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ parentNote: z.ZodOptional<z.ZodNullable<z.ZodObject<{
28
28
  id: z.ZodNullable<z.ZodString>;
29
- content: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
30
- }, z.core.$strip>>>;
29
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, z.core.$loose>>>;
31
31
  visibility: z.ZodNullable<z.ZodString>;
32
- }, z.core.$strip>>;
33
- }, z.core.$strip>;
32
+ }, z.core.$loose>>;
33
+ }, z.core.$loose>;
34
34
  declare const folkUpdateNote: import("@keystrokehq/action").WorkflowActionDefinition<{
35
35
  note_id: string;
36
36
  content?: string | undefined;
37
37
  visibility?: "public" | "private" | undefined;
38
- }, {
39
- data: {
40
- id: string | null;
41
- content: string | null;
42
- visibility: string | null;
43
- author?: {
44
- id?: string | undefined;
45
- email?: string | undefined;
46
- fullName?: string | undefined;
47
- } | undefined;
48
- entity?: {
49
- id: string | null;
50
- entityType: string | null;
51
- fullName?: string | undefined;
52
- } | undefined;
53
- createdAt?: string | undefined;
54
- parentNote?: {
55
- id: string | null;
56
- content?: string | undefined;
57
- } | undefined;
58
- } | null;
59
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
60
39
  //#endregion
61
40
  export { folkUpdateNote };
62
41
  //# sourceMappingURL=update-note.d.mts.map
@@ -7,34 +7,34 @@ const FolkUpdateNoteInput = z.object({
7
7
  visibility: z.enum(["public", "private"]).describe("Visibility level for a note.").optional()
8
8
  }).describe("Request schema for updating an existing note. Only provided fields will be updated.");
9
9
  const FolkUpdateNote_UpdateNoteAuthorSchema = z.object({
10
- id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Author ID if available.").optional()),
11
- email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Email of the author.").optional()),
12
- fullName: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Full name of the author.").optional())
13
- }).describe("Author information for the note (user, assistant, or deleted).");
10
+ id: z.string().describe("Author ID if available.").nullable().optional(),
11
+ email: z.string().describe("Email of the author.").nullable().optional(),
12
+ fullName: z.string().describe("Full name of the author.").nullable().optional()
13
+ }).passthrough().describe("Author information for the note (user, assistant, or deleted).");
14
14
  const FolkUpdateNote_UpdateNoteEntitySchema = z.object({
15
15
  id: z.string().describe("Entity ID.").nullable(),
16
- fullName: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Full name of the entity.").optional()),
16
+ fullName: z.string().describe("Full name of the entity.").nullable().optional(),
17
17
  entityType: z.string().describe("Type of entity (person, company, etc).").nullable()
18
- }).describe("Entity (person, company, or object) connected to the note.");
18
+ }).passthrough().describe("Entity (person, company, or object) connected to the note.");
19
19
  const FolkUpdateNote_UpdateNoteParentNoteSchema = z.object({
20
20
  id: z.string().describe("Parent note ID.").nullable(),
21
- content: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Parent note content.").optional())
22
- }).describe("Parent note reference if this note is a reply.");
21
+ content: z.string().describe("Parent note content.").nullable().optional()
22
+ }).passthrough().describe("Parent note reference if this note is a reply.");
23
23
  const FolkUpdateNote_UpdateNoteResponseDataSchema = z.object({
24
24
  id: z.string().describe("Unique ID of the note.").nullable(),
25
- author: z.preprocess((value) => value === null ? void 0 : value, FolkUpdateNote_UpdateNoteAuthorSchema.optional()),
26
- entity: z.preprocess((value) => value === null ? void 0 : value, FolkUpdateNote_UpdateNoteEntitySchema.optional()),
25
+ author: FolkUpdateNote_UpdateNoteAuthorSchema.nullable().optional(),
26
+ entity: FolkUpdateNote_UpdateNoteEntitySchema.nullable().optional(),
27
27
  content: z.string().describe("Content of the note.").nullable(),
28
- createdAt: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO 8601 timestamp when the note was created.").optional()),
29
- parentNote: z.preprocess((value) => value === null ? void 0 : value, FolkUpdateNote_UpdateNoteParentNoteSchema.optional()),
28
+ createdAt: z.string().describe("ISO 8601 timestamp when the note was created.").nullable().optional(),
29
+ parentNote: FolkUpdateNote_UpdateNoteParentNoteSchema.nullable().optional(),
30
30
  visibility: z.string().describe("Visibility of the note (public or private).").nullable()
31
- }).describe("Data returned after updating a note.");
31
+ }).passthrough().describe("Data returned after updating a note.");
32
32
  const folkUpdateNote = action("FOLK_UPDATE_NOTE", {
33
33
  slug: "folk-update-note",
34
34
  name: "Update Note",
35
35
  description: "Tool to update an existing note in the workspace. Use after confirming the note ID; only provided fields are updated.",
36
36
  input: FolkUpdateNoteInput,
37
- output: z.object({ data: FolkUpdateNote_UpdateNoteResponseDataSchema.nullable() }).describe("Full response schema for updating a note.")
37
+ output: z.object({ data: FolkUpdateNote_UpdateNoteResponseDataSchema.nullable() }).passthrough().describe("Full response schema for updating a note.")
38
38
  });
39
39
  //#endregion
40
40
  export { folkUpdateNote };
@@ -1 +1 @@
1
- {"version":3,"file":"update-note.mjs","names":[],"sources":["../../src/actions/update-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdateNoteInput = z.object({\n content: z.string().describe(\"The content of the note in plain text or markdown format.\").optional(),\n note_id: z.string().describe(\"The ID of the note to update.\"),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility level for a note.\").optional(),\n}).describe(\"Request schema for updating an existing note. Only provided fields will be updated.\");\nconst FolkUpdateNote_UpdateNoteAuthorSchema = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Author ID if available.\").optional()),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email of the author.\").optional()),\n fullName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the author.\").optional()),\n}).describe(\"Author information for the note (user, assistant, or deleted).\");\nconst FolkUpdateNote_UpdateNoteEntitySchema = z.object({\n id: z.string().describe(\"Entity ID.\").nullable(),\n fullName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the entity.\").optional()),\n entityType: z.string().describe(\"Type of entity (person, company, etc).\").nullable(),\n}).describe(\"Entity (person, company, or object) connected to the note.\");\nconst FolkUpdateNote_UpdateNoteParentNoteSchema = z.object({\n id: z.string().describe(\"Parent note ID.\").nullable(),\n content: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Parent note content.\").optional()),\n}).describe(\"Parent note reference if this note is a reply.\");\nconst FolkUpdateNote_UpdateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the note.\").nullable(),\n author: z.preprocess((value) => (value === null ? undefined : value), FolkUpdateNote_UpdateNoteAuthorSchema.optional()),\n entity: z.preprocess((value) => (value === null ? undefined : value), FolkUpdateNote_UpdateNoteEntitySchema.optional()),\n content: z.string().describe(\"Content of the note.\").nullable(),\n createdAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the note was created.\").optional()),\n parentNote: z.preprocess((value) => (value === null ? undefined : value), FolkUpdateNote_UpdateNoteParentNoteSchema.optional()),\n visibility: z.string().describe(\"Visibility of the note (public or private).\").nullable(),\n}).describe(\"Data returned after updating a note.\");\nexport const FolkUpdateNoteOutput = z.object({\n data: FolkUpdateNote_UpdateNoteResponseDataSchema.nullable(),\n}).describe(\"Full response schema for updating a note.\");\n\nexport const folkUpdateNote = action(\"FOLK_UPDATE_NOTE\", {\n slug: \"folk-update-note\",\n name: \"Update Note\",\n description: \"Tool to update an existing note in the workspace. Use after confirming the note ID; only provided fields are updated.\",\n input: FolkUpdateNoteInput,\n output: FolkUpdateNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5D,YAAY,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,YAAY,UAAW,UAAU,OAAO,S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AAS,sBAAsB,CAAC,CAAC,SAAS;CAC9D,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC;CACxJ,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,0CAA0C,SAAS,CAAC;CAC9H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAKlD,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkC,EAAE,OAAO,EAC3C,MAAM,4CAA4C,SAAS,EAC7D,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-note.mjs","names":[],"sources":["../../src/actions/update-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdateNoteInput = z.object({\n content: z.string().describe(\"The content of the note in plain text or markdown format.\").optional(),\n note_id: z.string().describe(\"The ID of the note to update.\"),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility level for a note.\").optional(),\n}).describe(\"Request schema for updating an existing note. Only provided fields will be updated.\");\nconst FolkUpdateNote_UpdateNoteAuthorSchema = z.object({\n id: z.string().describe(\"Author ID if available.\").nullable().optional(),\n email: z.string().describe(\"Email of the author.\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the author.\").nullable().optional(),\n}).passthrough().describe(\"Author information for the note (user, assistant, or deleted).\");\nconst FolkUpdateNote_UpdateNoteEntitySchema = z.object({\n id: z.string().describe(\"Entity ID.\").nullable(),\n fullName: z.string().describe(\"Full name of the entity.\").nullable().optional(),\n entityType: z.string().describe(\"Type of entity (person, company, etc).\").nullable(),\n}).passthrough().describe(\"Entity (person, company, or object) connected to the note.\");\nconst FolkUpdateNote_UpdateNoteParentNoteSchema = z.object({\n id: z.string().describe(\"Parent note ID.\").nullable(),\n content: z.string().describe(\"Parent note content.\").nullable().optional(),\n}).passthrough().describe(\"Parent note reference if this note is a reply.\");\nconst FolkUpdateNote_UpdateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the note.\").nullable(),\n author: FolkUpdateNote_UpdateNoteAuthorSchema.nullable().optional(),\n entity: FolkUpdateNote_UpdateNoteEntitySchema.nullable().optional(),\n content: z.string().describe(\"Content of the note.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable().optional(),\n parentNote: FolkUpdateNote_UpdateNoteParentNoteSchema.nullable().optional(),\n visibility: z.string().describe(\"Visibility of the note (public or private).\").nullable(),\n}).passthrough().describe(\"Data returned after updating a note.\");\nexport const FolkUpdateNoteOutput = z.object({\n data: FolkUpdateNote_UpdateNoteResponseDataSchema.nullable(),\n}).passthrough().describe(\"Full response schema for updating a note.\");\n\nexport const folkUpdateNote = action(\"FOLK_UPDATE_NOTE\", {\n slug: \"folk-update-note\",\n name: \"Update Note\",\n description: \"Tool to update an existing note in the workspace. Use after confirming the note ID; only provided fields are updated.\",\n input: FolkUpdateNoteInput,\n output: FolkUpdateNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5D,YAAY,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,C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AC,CAAC,SAAS,sCAAsC;AAKhE,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkC,EAAE,OAAO,EAC3C,MAAM,4CAA4C,SAAS,EAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
@@ -4,7 +4,7 @@ let zod = require("zod");
4
4
  const FolkUpdatePersonInput = zod.z.object({
5
5
  urls: zod.z.array(zod.z.string()).describe("List of URLs associated with the person; replaces existing URLs.").optional(),
6
6
  emails: zod.z.array(zod.z.string()).describe("List of email addresses associated with the person; replaces existing emails.").optional(),
7
- groups: zod.z.array(zod.z.object({ id: zod.z.string().describe("ID of the group to add the person to.") }).describe("Reference to a group by its ID.")).describe("Groups to associate with the person; list values replace existing groups. When removing a person from a group, their custom field values for that group are also removed.").optional(),
7
+ groups: zod.z.array(zod.z.object({ id: zod.z.string().describe("ID of the group to add the person to.") }).passthrough().describe("Reference to a group by its ID.")).describe("Groups to associate with the person; list values replace existing groups. When removing a person from a group, their custom field values for that group are also removed.").optional(),
8
8
  phones: zod.z.array(zod.z.string()).describe("List of phone numbers associated with the person; replaces existing phones.").optional(),
9
9
  birthday: zod.z.string().describe("The person's birthday in ISO 8601 date format (YYYY-MM-DD). Set to null to remove.").optional(),
10
10
  fullName: zod.z.string().describe("The full name of the person.").optional(),
@@ -15,7 +15,7 @@ const FolkUpdatePersonInput = zod.z.object({
15
15
  companies: zod.z.array(zod.z.object({
16
16
  id: zod.z.string().describe("ID of an existing company. Use this to reference an existing company.").optional(),
17
17
  name: zod.z.string().describe("Name of the company. Use this to create a new company or reference by name.").optional()
18
- }).describe("Reference to a company by name or ID.")).describe("Companies to associate with the person; list values replace existing companies.").optional(),
18
+ }).passthrough().describe("Reference to a company by name or ID.")).describe("Companies to associate with the person; list values replace existing companies.").optional(),
19
19
  firstName: zod.z.string().describe("The first name of the person.").optional(),
20
20
  description: zod.z.string().describe("A short description of the person.").optional(),
21
21
  customFieldValues: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.").optional()
@@ -23,40 +23,40 @@ const FolkUpdatePersonInput = zod.z.object({
23
23
  const FolkUpdatePerson_UpdatePersonGroupSchema = zod.z.object({
24
24
  id: zod.z.string().describe("Group ID.").nullable(),
25
25
  name: zod.z.string().describe("Group name.").nullable()
26
- }).describe("A group associated with the person in the response.");
26
+ }).passthrough().describe("A group associated with the person in the response.");
27
27
  const FolkUpdatePerson_UpdatePersonCompanySchema = zod.z.object({
28
28
  id: zod.z.string().describe("Company ID.").nullable(),
29
29
  name: zod.z.string().describe("Company name.").nullable()
30
- }).describe("A company associated with the person in the response.");
30
+ }).passthrough().describe("A company associated with the person in the response.");
31
31
  const FolkUpdatePerson_UpdatePersonCreatedBySchema = zod.z.object({
32
32
  id: zod.z.string().describe("The user's unique identifier").nullable(),
33
33
  email: zod.z.string().describe("The user's email address").nullable(),
34
34
  fullName: zod.z.string().describe("The user's full name").nullable()
35
- }).describe("User information for the person who created this record.");
35
+ }).passthrough().describe("User information for the person who created this record.");
36
36
  const FolkUpdatePerson_UpdatePersonResponseDataSchema = zod.z.object({
37
37
  id: zod.z.string().describe("Unique ID of the person.").nullable(),
38
- urls: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("URLs associated with the person.").optional()),
39
- emails: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Email addresses associated with the person.").optional()),
40
- groups: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FolkUpdatePerson_UpdatePersonGroupSchema).describe("Groups associated with the person.").optional()),
41
- phones: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Phone numbers associated with the person.").optional()),
42
- birthday: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set.").optional()),
43
- fullName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The person's full name.").optional()),
44
- jobTitle: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The person's job title.").optional()),
45
- lastName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The person's last name.").optional()),
46
- addresses: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Addresses associated with the person.").optional()),
47
- companies: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FolkUpdatePerson_UpdatePersonCompanySchema).describe("Companies associated with the person.").optional()),
48
- createdAt: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO8601 timestamp of when this person record was created.").optional()),
49
- createdBy: zod.z.preprocess((value) => value === null ? void 0 : value, FolkUpdatePerson_UpdatePersonCreatedBySchema.optional()),
50
- firstName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The person's first name.").optional()),
51
- description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Description of the person.").optional()),
52
- customFieldValues: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field values keyed by group ID.").optional()),
53
- interactionMetadata: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata about interactions with this person, including counts and timestamps.").optional()),
54
- strongestConnection: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("Information about the strongest connection to this person.").optional())
55
- }).describe("Data returned after updating a person.");
38
+ urls: zod.z.array(zod.z.string()).describe("URLs associated with the person.").nullable().optional(),
39
+ emails: zod.z.array(zod.z.string()).describe("Email addresses associated with the person.").nullable().optional(),
40
+ groups: zod.z.array(FolkUpdatePerson_UpdatePersonGroupSchema).describe("Groups associated with the person.").nullable().optional(),
41
+ phones: zod.z.array(zod.z.string()).describe("Phone numbers associated with the person.").nullable().optional(),
42
+ birthday: zod.z.string().describe("The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set.").nullable().optional(),
43
+ fullName: zod.z.string().describe("The person's full name.").nullable().optional(),
44
+ jobTitle: zod.z.string().describe("The person's job title.").nullable().optional(),
45
+ lastName: zod.z.string().describe("The person's last name.").nullable().optional(),
46
+ addresses: zod.z.array(zod.z.string()).describe("Addresses associated with the person.").nullable().optional(),
47
+ companies: zod.z.array(FolkUpdatePerson_UpdatePersonCompanySchema).describe("Companies associated with the person.").nullable().optional(),
48
+ createdAt: zod.z.string().describe("ISO8601 timestamp of when this person record was created.").nullable().optional(),
49
+ createdBy: FolkUpdatePerson_UpdatePersonCreatedBySchema.nullable().optional(),
50
+ firstName: zod.z.string().describe("The person's first name.").nullable().optional(),
51
+ description: zod.z.string().describe("Description of the person.").nullable().optional(),
52
+ customFieldValues: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field values keyed by group ID.").nullable().optional(),
53
+ interactionMetadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata about interactions with this person, including counts and timestamps.").nullable().optional(),
54
+ strongestConnection: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Information about the strongest connection to this person.").nullable().optional()
55
+ }).passthrough().describe("Data returned after updating a person.");
56
56
  const FolkUpdatePersonOutput = zod.z.object({
57
57
  data: FolkUpdatePerson_UpdatePersonResponseDataSchema.nullable(),
58
- 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())
59
- }).describe("Full response schema for updating a person.");
58
+ deprecations: zod.z.array(zod.z.string()).describe("Any deprecation notices returned by the API.").nullable().optional()
59
+ }).passthrough().describe("Full response schema for updating a person.");
60
60
  const folkUpdatePerson = require_action.action("FOLK_UPDATE_PERSON", {
61
61
  slug: "folk-update-person",
62
62
  name: "Update Person",
@@ -1 +1 @@
1
- {"version":3,"file":"update-person.cjs","names":["z","action"],"sources":["../../src/actions/update-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdatePersonInput = z.object({\n urls: z.array(z.string()).describe(\"List of URLs associated with the person; replaces existing URLs.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the person; replaces existing emails.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).describe(\"Reference to a group by its ID.\")).describe(\"Groups to associate with the person; list values replace existing groups. When removing a person from a group, their custom field values for that group are also removed.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the person; replaces existing phones.\").optional(),\n birthday: z.string().describe(\"The person's birthday in ISO 8601 date format (YYYY-MM-DD). Set to null to remove.\").optional(),\n fullName: z.string().describe(\"The full name of the person.\").optional(),\n jobTitle: z.string().describe(\"The job title of the person.\").optional(),\n lastName: z.string().describe(\"The last name of the person.\").optional(),\n personId: z.string().describe(\"The ID of the person to update. Must be exactly 40 characters long.\"),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the person; replaces existing addresses.\").optional(),\n companies: z.array(z.object({\n id: z.string().describe(\"ID of an existing company. Use this to reference an existing company.\").optional(),\n name: z.string().describe(\"Name of the company. Use this to create a new company or reference by name.\").optional(),\n}).describe(\"Reference to a company by name or ID.\")).describe(\"Companies to associate with the person; list values replace existing companies.\").optional(),\n firstName: z.string().describe(\"The first name of the person.\").optional(),\n description: z.string().describe(\"A short description of the person.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for updating an existing person. Only provided fields will be updated; list fields replace existing values entirely.\");\nconst FolkUpdatePerson_UpdatePersonGroupSchema = z.object({\n id: z.string().describe(\"Group ID.\").nullable(),\n name: z.string().describe(\"Group name.\").nullable(),\n}).describe(\"A group associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCompanySchema = z.object({\n id: z.string().describe(\"Company ID.\").nullable(),\n name: z.string().describe(\"Company name.\").nullable(),\n}).describe(\"A company associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCreatedBySchema = z.object({\n id: z.string().describe(\"The user's unique identifier\").nullable(),\n email: z.string().describe(\"The user's email address\").nullable(),\n fullName: z.string().describe(\"The user's full name\").nullable(),\n}).describe(\"User information for the person who created this record.\");\nconst FolkUpdatePerson_UpdatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the person.\").nullable(),\n urls: z.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(FolkUpdatePerson_UpdatePersonGroupSchema).describe(\"Groups associated with the person.\").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(\"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(\"Addresses associated with the person.\").optional()),\n companies: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkUpdatePerson_UpdatePersonCompanySchema).describe(\"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), FolkUpdatePerson_UpdatePersonCreatedBySchema.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(\"Description of the person.\").optional()),\n customFieldValues: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Custom field values keyed by group ID.\").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(\"Data returned after updating a person.\");\nexport const FolkUpdatePersonOutput = z.object({\n data: FolkUpdatePerson_UpdatePersonResponseDataSchema.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(\"Full response schema for updating a person.\");\n\nexport const folkUpdatePerson = action(\"FOLK_UPDATE_PERSON\", {\n slug: \"folk-update-person\",\n name: \"Update Person\",\n description: \"Tool to update an existing person in the workspace. Use after confirming the person ID; only provided fields are updated and list fields replace existing values.\",\n input: FolkUpdatePersonInput,\n output: FolkUpdatePersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAChH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC/H,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACjE,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;CAC7O,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAA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;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-person.cjs","names":["z","action"],"sources":["../../src/actions/update-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdatePersonInput = z.object({\n urls: z.array(z.string()).describe(\"List of URLs associated with the person; replaces existing URLs.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the person; replaces existing emails.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"Groups to associate with the person; list values replace existing groups. When removing a person from a group, their custom field values for that group are also removed.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the person; replaces existing phones.\").optional(),\n birthday: z.string().describe(\"The person's birthday in ISO 8601 date format (YYYY-MM-DD). Set to null to remove.\").optional(),\n fullName: z.string().describe(\"The full name of the person.\").optional(),\n jobTitle: z.string().describe(\"The job title of the person.\").optional(),\n lastName: z.string().describe(\"The last name of the person.\").optional(),\n personId: z.string().describe(\"The ID of the person to update. Must be exactly 40 characters long.\"),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the person; replaces existing addresses.\").optional(),\n companies: z.array(z.object({\n id: z.string().describe(\"ID of an existing company. Use this to reference an existing company.\").optional(),\n name: z.string().describe(\"Name of the company. Use this to create a new company or reference by name.\").optional(),\n}).passthrough().describe(\"Reference to a company by name or ID.\")).describe(\"Companies to associate with the person; list values replace existing companies.\").optional(),\n firstName: z.string().describe(\"The first name of the person.\").optional(),\n description: z.string().describe(\"A short description of the person.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for updating an existing person. Only provided fields will be updated; list fields replace existing values entirely.\");\nconst FolkUpdatePerson_UpdatePersonGroupSchema = z.object({\n id: z.string().describe(\"Group ID.\").nullable(),\n name: z.string().describe(\"Group name.\").nullable(),\n}).passthrough().describe(\"A group associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCompanySchema = z.object({\n id: z.string().describe(\"Company ID.\").nullable(),\n name: z.string().describe(\"Company name.\").nullable(),\n}).passthrough().describe(\"A company associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCreatedBySchema = z.object({\n id: z.string().describe(\"The user's unique identifier\").nullable(),\n email: z.string().describe(\"The user's email address\").nullable(),\n fullName: z.string().describe(\"The user's full name\").nullable(),\n}).passthrough().describe(\"User information for the person who created this record.\");\nconst FolkUpdatePerson_UpdatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the person.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the person.\").nullable().optional(),\n emails: z.array(z.string()).describe(\"Email addresses associated with the person.\").nullable().optional(),\n groups: z.array(FolkUpdatePerson_UpdatePersonGroupSchema).describe(\"Groups associated with the person.\").nullable().optional(),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the person.\").nullable().optional(),\n birthday: z.string().describe(\"The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set.\").nullable().optional(),\n fullName: z.string().describe(\"The person's full name.\").nullable().optional(),\n jobTitle: z.string().describe(\"The person's job title.\").nullable().optional(),\n lastName: z.string().describe(\"The person's last name.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the person.\").nullable().optional(),\n companies: z.array(FolkUpdatePerson_UpdatePersonCompanySchema).describe(\"Companies associated with the person.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp of when this person record was created.\").nullable().optional(),\n createdBy: FolkUpdatePerson_UpdatePersonCreatedBySchema.nullable().optional(),\n firstName: z.string().describe(\"The person's first name.\").nullable().optional(),\n description: z.string().describe(\"Description of the person.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values keyed by group ID.\").nullable().optional(),\n interactionMetadata: z.record(z.string(), z.unknown()).describe(\"Metadata about interactions with this person, including counts and timestamps.\").nullable().optional(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Information about the strongest connection to this person.\").nullable().optional(),\n}).passthrough().describe(\"Data returned after updating a person.\");\nexport const FolkUpdatePersonOutput = z.object({\n data: FolkUpdatePerson_UpdatePersonResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for updating a person.\");\n\nexport const folkUpdatePerson = action(\"FOLK_UPDATE_PERSON\", {\n slug: \"folk-update-person\",\n name: \"Update Person\",\n description: \"Tool to update an existing person in the workspace. Use after confirming the person ID; only provided fields are updated and list fields replace existing values.\",\n input: FolkUpdatePersonInput,\n output: FolkUpdatePersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAChH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC/H,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;CAC3P,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC7H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC7H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,E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