@keystrokehq/folk 0.1.0 → 0.1.1

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 (193) 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 +15 -15
  4. package/dist/actions/create-company.cjs.map +1 -1
  5. package/dist/actions/create-company.d.cts +89 -3
  6. package/dist/actions/create-company.d.cts.map +1 -1
  7. package/dist/actions/create-company.d.mts +89 -3
  8. package/dist/actions/create-company.d.mts.map +1 -1
  9. package/dist/actions/create-company.mjs +15 -15
  10. package/dist/actions/create-company.mjs.map +1 -1
  11. package/dist/actions/create-note.cjs +15 -15
  12. package/dist/actions/create-note.cjs.map +1 -1
  13. package/dist/actions/create-note.d.cts +70 -3
  14. package/dist/actions/create-note.d.cts.map +1 -1
  15. package/dist/actions/create-note.d.mts +70 -3
  16. package/dist/actions/create-note.d.mts.map +1 -1
  17. package/dist/actions/create-note.mjs +15 -15
  18. package/dist/actions/create-note.mjs.map +1 -1
  19. package/dist/actions/create-person.cjs +29 -29
  20. package/dist/actions/create-person.cjs.map +1 -1
  21. package/dist/actions/create-person.d.cts +113 -3
  22. package/dist/actions/create-person.d.cts.map +1 -1
  23. package/dist/actions/create-person.d.mts +113 -3
  24. package/dist/actions/create-person.d.mts.map +1 -1
  25. package/dist/actions/create-person.mjs +29 -29
  26. package/dist/actions/create-person.mjs.map +1 -1
  27. package/dist/actions/delete-company.cjs +2 -2
  28. package/dist/actions/delete-company.cjs.map +1 -1
  29. package/dist/actions/delete-company.d.cts +17 -3
  30. package/dist/actions/delete-company.d.cts.map +1 -1
  31. package/dist/actions/delete-company.d.mts +17 -3
  32. package/dist/actions/delete-company.d.mts.map +1 -1
  33. package/dist/actions/delete-company.mjs +2 -2
  34. package/dist/actions/delete-company.mjs.map +1 -1
  35. package/dist/actions/delete-note.cjs +2 -2
  36. package/dist/actions/delete-note.cjs.map +1 -1
  37. package/dist/actions/delete-note.d.cts +17 -3
  38. package/dist/actions/delete-note.d.cts.map +1 -1
  39. package/dist/actions/delete-note.d.mts +17 -3
  40. package/dist/actions/delete-note.d.mts.map +1 -1
  41. package/dist/actions/delete-note.mjs +2 -2
  42. package/dist/actions/delete-note.mjs.map +1 -1
  43. package/dist/actions/delete-person.cjs +2 -2
  44. package/dist/actions/delete-person.cjs.map +1 -1
  45. package/dist/actions/delete-person.d.cts +17 -3
  46. package/dist/actions/delete-person.d.cts.map +1 -1
  47. package/dist/actions/delete-person.d.mts +17 -3
  48. package/dist/actions/delete-person.d.mts.map +1 -1
  49. package/dist/actions/delete-person.mjs +2 -2
  50. package/dist/actions/delete-person.mjs.map +1 -1
  51. package/dist/actions/delete-reminder.cjs +2 -2
  52. package/dist/actions/delete-reminder.cjs.map +1 -1
  53. package/dist/actions/delete-reminder.d.cts +17 -3
  54. package/dist/actions/delete-reminder.d.cts.map +1 -1
  55. package/dist/actions/delete-reminder.d.mts +17 -3
  56. package/dist/actions/delete-reminder.d.mts.map +1 -1
  57. package/dist/actions/delete-reminder.mjs +2 -2
  58. package/dist/actions/delete-reminder.mjs.map +1 -1
  59. package/dist/actions/get-company.cjs +5 -5
  60. package/dist/actions/get-company.cjs.map +1 -1
  61. package/dist/actions/get-company.d.cts +37 -3
  62. package/dist/actions/get-company.d.cts.map +1 -1
  63. package/dist/actions/get-company.d.mts +37 -3
  64. package/dist/actions/get-company.d.mts.map +1 -1
  65. package/dist/actions/get-company.mjs +5 -5
  66. package/dist/actions/get-company.mjs.map +1 -1
  67. package/dist/actions/get-current-workspace-user.cjs +3 -3
  68. package/dist/actions/get-current-workspace-user.cjs.map +1 -1
  69. package/dist/actions/get-current-workspace-user.d.cts +15 -3
  70. package/dist/actions/get-current-workspace-user.d.cts.map +1 -1
  71. package/dist/actions/get-current-workspace-user.d.mts +15 -3
  72. package/dist/actions/get-current-workspace-user.d.mts.map +1 -1
  73. package/dist/actions/get-current-workspace-user.mjs +3 -3
  74. package/dist/actions/get-current-workspace-user.mjs.map +1 -1
  75. package/dist/actions/get-note.cjs +28 -28
  76. package/dist/actions/get-note.cjs.map +1 -1
  77. package/dist/actions/get-note.d.cts +129 -3
  78. package/dist/actions/get-note.d.cts.map +1 -1
  79. package/dist/actions/get-note.d.mts +129 -3
  80. package/dist/actions/get-note.d.mts.map +1 -1
  81. package/dist/actions/get-note.mjs +28 -28
  82. package/dist/actions/get-note.mjs.map +1 -1
  83. package/dist/actions/get-person.cjs +25 -25
  84. package/dist/actions/get-person.cjs.map +1 -1
  85. package/dist/actions/get-person.d.cts +65 -3
  86. package/dist/actions/get-person.d.cts.map +1 -1
  87. package/dist/actions/get-person.d.mts +65 -3
  88. package/dist/actions/get-person.d.mts.map +1 -1
  89. package/dist/actions/get-person.mjs +25 -25
  90. package/dist/actions/get-person.mjs.map +1 -1
  91. package/dist/actions/get-user.cjs +4 -4
  92. package/dist/actions/get-user.cjs.map +1 -1
  93. package/dist/actions/get-user.d.cts +21 -3
  94. package/dist/actions/get-user.d.cts.map +1 -1
  95. package/dist/actions/get-user.d.mts +21 -3
  96. package/dist/actions/get-user.d.mts.map +1 -1
  97. package/dist/actions/get-user.mjs +4 -4
  98. package/dist/actions/get-user.mjs.map +1 -1
  99. package/dist/actions/list-companies.cjs +16 -16
  100. package/dist/actions/list-companies.cjs.map +1 -1
  101. package/dist/actions/list-companies.d.cts +80 -3
  102. package/dist/actions/list-companies.d.cts.map +1 -1
  103. package/dist/actions/list-companies.d.mts +80 -3
  104. package/dist/actions/list-companies.d.mts.map +1 -1
  105. package/dist/actions/list-companies.mjs +16 -16
  106. package/dist/actions/list-companies.mjs.map +1 -1
  107. package/dist/actions/list-group-custom-fields.cjs +10 -10
  108. package/dist/actions/list-group-custom-fields.cjs.map +1 -1
  109. package/dist/actions/list-group-custom-fields.d.cts +64 -3
  110. package/dist/actions/list-group-custom-fields.d.cts.map +1 -1
  111. package/dist/actions/list-group-custom-fields.d.mts +64 -3
  112. package/dist/actions/list-group-custom-fields.d.mts.map +1 -1
  113. package/dist/actions/list-group-custom-fields.mjs +10 -10
  114. package/dist/actions/list-group-custom-fields.mjs.map +1 -1
  115. package/dist/actions/list-groups.cjs +5 -5
  116. package/dist/actions/list-groups.cjs.map +1 -1
  117. package/dist/actions/list-groups.d.cts +31 -3
  118. package/dist/actions/list-groups.d.cts.map +1 -1
  119. package/dist/actions/list-groups.d.mts +31 -3
  120. package/dist/actions/list-groups.d.mts.map +1 -1
  121. package/dist/actions/list-groups.mjs +5 -5
  122. package/dist/actions/list-groups.mjs.map +1 -1
  123. package/dist/actions/list-notes.cjs +22 -22
  124. package/dist/actions/list-notes.cjs.map +1 -1
  125. package/dist/actions/list-notes.d.cts +88 -3
  126. package/dist/actions/list-notes.d.cts.map +1 -1
  127. package/dist/actions/list-notes.d.mts +88 -3
  128. package/dist/actions/list-notes.d.mts.map +1 -1
  129. package/dist/actions/list-notes.mjs +22 -22
  130. package/dist/actions/list-notes.mjs.map +1 -1
  131. package/dist/actions/list-people.cjs +22 -22
  132. package/dist/actions/list-people.cjs.map +1 -1
  133. package/dist/actions/list-people.d.cts +97 -3
  134. package/dist/actions/list-people.d.cts.map +1 -1
  135. package/dist/actions/list-people.d.mts +97 -3
  136. package/dist/actions/list-people.d.mts.map +1 -1
  137. package/dist/actions/list-people.mjs +22 -22
  138. package/dist/actions/list-people.mjs.map +1 -1
  139. package/dist/actions/list-reminders.cjs +15 -15
  140. package/dist/actions/list-reminders.cjs.map +1 -1
  141. package/dist/actions/list-reminders.d.cts +80 -3
  142. package/dist/actions/list-reminders.d.cts.map +1 -1
  143. package/dist/actions/list-reminders.d.mts +80 -3
  144. package/dist/actions/list-reminders.d.mts.map +1 -1
  145. package/dist/actions/list-reminders.mjs +15 -15
  146. package/dist/actions/list-reminders.mjs.map +1 -1
  147. package/dist/actions/list-users.cjs +5 -5
  148. package/dist/actions/list-users.cjs.map +1 -1
  149. package/dist/actions/list-users.d.cts +33 -3
  150. package/dist/actions/list-users.d.cts.map +1 -1
  151. package/dist/actions/list-users.d.mts +33 -3
  152. package/dist/actions/list-users.d.mts.map +1 -1
  153. package/dist/actions/list-users.mjs +5 -5
  154. package/dist/actions/list-users.mjs.map +1 -1
  155. package/dist/actions/list-webhooks.cjs +14 -14
  156. package/dist/actions/list-webhooks.cjs.map +1 -1
  157. package/dist/actions/list-webhooks.d.cts +57 -3
  158. package/dist/actions/list-webhooks.d.cts.map +1 -1
  159. package/dist/actions/list-webhooks.d.mts +57 -3
  160. package/dist/actions/list-webhooks.d.mts.map +1 -1
  161. package/dist/actions/list-webhooks.mjs +14 -14
  162. package/dist/actions/list-webhooks.mjs.map +1 -1
  163. package/dist/actions/update-company.cjs +6 -6
  164. package/dist/actions/update-company.cjs.map +1 -1
  165. package/dist/actions/update-company.d.cts +59 -3
  166. package/dist/actions/update-company.d.cts.map +1 -1
  167. package/dist/actions/update-company.d.mts +59 -3
  168. package/dist/actions/update-company.d.mts.map +1 -1
  169. package/dist/actions/update-company.mjs +6 -6
  170. package/dist/actions/update-company.mjs.map +1 -1
  171. package/dist/actions/update-note.cjs +15 -15
  172. package/dist/actions/update-note.cjs.map +1 -1
  173. package/dist/actions/update-note.d.cts +56 -3
  174. package/dist/actions/update-note.d.cts.map +1 -1
  175. package/dist/actions/update-note.d.mts +56 -3
  176. package/dist/actions/update-note.d.mts.map +1 -1
  177. package/dist/actions/update-note.mjs +15 -15
  178. package/dist/actions/update-note.mjs.map +1 -1
  179. package/dist/actions/update-person.cjs +26 -26
  180. package/dist/actions/update-person.cjs.map +1 -1
  181. package/dist/actions/update-person.d.cts +107 -3
  182. package/dist/actions/update-person.d.cts.map +1 -1
  183. package/dist/actions/update-person.d.mts +107 -3
  184. package/dist/actions/update-person.d.mts.map +1 -1
  185. package/dist/actions/update-person.mjs +26 -26
  186. package/dist/actions/update-person.mjs.map +1 -1
  187. package/dist/catalog.cjs +7 -1
  188. package/dist/catalog.cjs.map +1 -1
  189. package/dist/catalog.d.cts +8 -0
  190. package/dist/catalog.d.mts +8 -0
  191. package/dist/catalog.mjs +7 -1
  192. package/dist/catalog.mjs.map +1 -1
  193. package/package.json +2 -2
@@ -1,9 +1,76 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-note.d.ts
4
- declare const FolkCreateNoteInput: z.ZodTypeAny;
5
- declare const FolkCreateNoteOutput: z.ZodTypeAny;
6
- declare const folkCreateNote: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FolkCreateNoteInput: z.ZodObject<{
5
+ entity: z.ZodObject<{
6
+ id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ content: z.ZodString;
9
+ parentNote: z.ZodOptional<z.ZodObject<{
10
+ id: z.ZodString;
11
+ }, z.core.$strip>>;
12
+ visibility: z.ZodEnum<{
13
+ public: "public";
14
+ private: "private";
15
+ }>;
16
+ }, z.core.$strip>;
17
+ declare const FolkCreateNoteOutput: z.ZodObject<{
18
+ data: z.ZodNullable<z.ZodObject<{
19
+ id: z.ZodNullable<z.ZodString>;
20
+ author: z.ZodNullable<z.ZodObject<{
21
+ id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ type: z.ZodNullable<z.ZodString>;
23
+ email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
24
+ deleted: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
25
+ fullName: z.ZodNullable<z.ZodString>;
26
+ }, z.core.$strip>>;
27
+ entity: z.ZodNullable<z.ZodObject<{
28
+ id: z.ZodNullable<z.ZodString>;
29
+ fullName: z.ZodNullable<z.ZodString>;
30
+ entityType: z.ZodNullable<z.ZodString>;
31
+ }, z.core.$strip>>;
32
+ content: z.ZodNullable<z.ZodString>;
33
+ createdAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
34
+ parentNote: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
35
+ id: z.ZodNullable<z.ZodString>;
36
+ }, z.core.$strip>>>;
37
+ visibility: z.ZodNullable<z.ZodString>;
38
+ }, z.core.$strip>>;
39
+ deprecations: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
40
+ }, z.core.$strip>;
41
+ declare const folkCreateNote: import("@keystrokehq/action").WorkflowActionDefinition<{
42
+ entity: {
43
+ id: string;
44
+ };
45
+ content: string;
46
+ visibility: "public" | "private";
47
+ parentNote?: {
48
+ id: string;
49
+ } | undefined;
50
+ }, {
51
+ data: {
52
+ id: string | null;
53
+ author: {
54
+ type: string | null;
55
+ fullName: string | null;
56
+ id?: string | undefined;
57
+ email?: string | undefined;
58
+ deleted?: boolean | undefined;
59
+ } | null;
60
+ entity: {
61
+ id: string | null;
62
+ fullName: string | null;
63
+ entityType: string | null;
64
+ } | null;
65
+ content: string | null;
66
+ visibility: string | null;
67
+ createdAt?: string | undefined;
68
+ parentNote?: {
69
+ id: string | null;
70
+ } | undefined;
71
+ } | null;
72
+ deprecations?: string[] | undefined;
73
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
74
  //#endregion
8
75
  export { folkCreateNote };
9
76
  //# sourceMappingURL=create-note.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-note.d.mts","names":[],"sources":["../../src/actions/create-note.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UASmC;AAAA,cAyB1D,oBAAA,EAAsB,CAAA,CAAE,UAGkB;AAAA,cAE1C,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-note.d.mts","names":[],"sources":["../../src/actions/create-note.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAkCnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAKpB,cAAA,gCAAc,wBAAA"}
@@ -8,26 +8,26 @@ const FolkCreateNoteInput = z.object({
8
8
  visibility: z.enum(["public", "private"]).describe("Visibility of the note. 'public' means visible to all workspace users, 'private' means visible only to the current user.")
9
9
  }).describe("Request schema for creating a new note in the workspace.");
10
10
  const FolkCreateNote_AuthorResponseSchema = z.object({
11
- id: z.string().describe("The unique identifier of the user (required if type is 'user').").nullable().optional(),
12
- type: z.string().describe("The type of author: 'user' or 'assistant'."),
13
- email: z.string().describe("The email address of the user (required if type is 'user').").nullable().optional(),
14
- deleted: z.boolean().describe("Whether the user has been deleted (present if type is 'user').").nullable().optional(),
15
- fullName: z.string().describe("The full name of the note creator.")
11
+ id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The unique identifier of the user (required if type is 'user').").optional()),
12
+ type: z.string().describe("The type of author: 'user' or 'assistant'.").nullable(),
13
+ email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The email address of the user (required if type is 'user').").optional()),
14
+ deleted: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether the user has been deleted (present if type is 'user').").optional()),
15
+ fullName: z.string().describe("The full name of the note creator.").nullable()
16
16
  }).describe("Author information for the note creator.");
17
17
  const FolkCreateNote_EntityResponseSchema = z.object({
18
- id: z.string().describe("The unique identifier of the entity."),
19
- fullName: z.string().describe("The display name of the entity."),
20
- entityType: z.string().describe("The type of entity: 'person', 'company', or 'object'.")
18
+ id: z.string().describe("The unique identifier of the entity.").nullable(),
19
+ fullName: z.string().describe("The display name of the entity.").nullable(),
20
+ entityType: z.string().describe("The type of entity: 'person', 'company', or 'object'.").nullable()
21
21
  }).describe("Entity information returned in the note response.");
22
- const FolkCreateNote_ParentNoteResponseSchema = z.object({ id: z.string().describe("The unique identifier of the parent note.") }).describe("Parent note reference in the response (if the note is a reply).");
22
+ const FolkCreateNote_ParentNoteResponseSchema = z.object({ id: z.string().describe("The unique identifier of the parent note.").nullable() }).describe("Parent note reference in the response (if the note is a reply).");
23
23
  const FolkCreateNote_CreateNoteResponseDataSchema = z.object({
24
- id: z.string().describe("The unique identifier of the created note."),
24
+ id: z.string().describe("The unique identifier of the created note.").nullable(),
25
25
  author: FolkCreateNote_AuthorResponseSchema.nullable(),
26
26
  entity: FolkCreateNote_EntityResponseSchema.nullable(),
27
- content: z.string().describe("The content of the note."),
28
- createdAt: z.string().describe("ISO 8601 timestamp when the note was created.").nullable().optional(),
29
- parentNote: FolkCreateNote_ParentNoteResponseSchema.nullable().optional(),
30
- visibility: z.string().describe("The visibility of the note: 'public' or 'private'.")
27
+ content: z.string().describe("The 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, FolkCreateNote_ParentNoteResponseSchema.optional()),
30
+ visibility: z.string().describe("The visibility of the note: 'public' or 'private'.").nullable()
31
31
  }).describe("Data returned after successfully creating a note.");
32
32
  const folkCreateNote = action("FOLK_CREATE_NOTE", {
33
33
  slug: "folk-create-note",
@@ -36,7 +36,7 @@ const folkCreateNote = action("FOLK_CREATE_NOTE", {
36
36
  input: FolkCreateNoteInput,
37
37
  output: z.object({
38
38
  data: FolkCreateNote_CreateNoteResponseDataSchema.nullable(),
39
- deprecations: z.array(z.string()).describe("Any deprecation notices returned by the API.").nullable().optional()
39
+ deprecations: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("Any deprecation notices returned by the API.").optional())
40
40
  }).describe("Response schema for creating a new note.")
41
41
  });
42
42
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"create-note.mjs","names":[],"sources":["../../src/actions/create-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreateNoteInput: z.ZodTypeAny = z.object({\n entity: z.object({\n id: z.string().describe(\"The unique identifier of the entity (person, company, or deal). Must be exactly 40 characters long (format: per_/com_/obj_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"The person, company, or deal that the note is attached to. Provide the entity object with an id field.\"),\n content: z.string().describe(\"The content of the note. Supports plain text or markdown format. Must be between 1 and 100,000 characters.\"),\n parentNote: z.object({\n id: z.string().describe(\"The unique identifier of the parent note. Must be exactly 40 characters long (format: nte_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Reference to a parent note when creating a reply.\").optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility of the note. 'public' means visible to all workspace users, 'private' means visible only to the current user.\"),\n}).describe(\"Request schema for creating a new note in the workspace.\");\nconst FolkCreateNote_AuthorResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the user (required if type is 'user').\").nullable().optional(),\n type: z.string().describe(\"The type of author: 'user' or 'assistant'.\"),\n email: z.string().describe(\"The email address of the user (required if type is 'user').\").nullable().optional(),\n deleted: z.boolean().describe(\"Whether the user has been deleted (present if type is 'user').\").nullable().optional(),\n fullName: z.string().describe(\"The full name of the note creator.\"),\n}).describe(\"Author information for the note creator.\");\nconst FolkCreateNote_EntityResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the entity.\"),\n fullName: z.string().describe(\"The display name of the entity.\"),\n entityType: z.string().describe(\"The type of entity: 'person', 'company', or 'object'.\"),\n}).describe(\"Entity information returned in the note response.\");\nconst FolkCreateNote_ParentNoteResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the parent note.\"),\n}).describe(\"Parent note reference in the response (if the note is a reply).\");\nconst FolkCreateNote_CreateNoteResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the created note.\"),\n author: FolkCreateNote_AuthorResponseSchema.nullable(),\n entity: FolkCreateNote_EntityResponseSchema.nullable(),\n content: z.string().describe(\"The content of the note.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created.\").nullable().optional(),\n parentNote: FolkCreateNote_ParentNoteResponseSchema.nullable().optional(),\n visibility: z.string().describe(\"The visibility of the note: 'public' or 'private'.\"),\n}).describe(\"Data returned after successfully creating a note.\");\nexport const FolkCreateNoteOutput: z.ZodTypeAny = z.object({\n data: FolkCreateNote_CreateNoteResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).describe(\"Response schema for creating a new note.\");\n\nexport const folkCreateNote = action(\"FOLK_CREATE_NOTE\", {\n slug: \"folk-create-note\",\n name: \"Create Note\",\n description: \"Tool to create a new note in the Folk workspace. Use when you need to add a note to a person, company, or deal entity.\",\n input: FolkCreateNoteInput,\n output: FolkCreateNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoC,EAAE,OAAO;CACxD,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,EAC3L,CAAC,CAAC,CAAC,SAAS,wGAAwG;CAClH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G;CACzI,YAAY,EAAE,OAAO,EACrB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,EAC3J,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,0HAA0H;AAC/K,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,S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zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreateNoteInput = z.object({\n entity: z.object({\n id: z.string().describe(\"The unique identifier of the entity (person, company, or deal). Must be exactly 40 characters long (format: per_/com_/obj_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"The person, company, or deal that the note is attached to. Provide the entity object with an id field.\"),\n content: z.string().describe(\"The content of the note. Supports plain text or markdown format. Must be between 1 and 100,000 characters.\"),\n parentNote: z.object({\n id: z.string().describe(\"The unique identifier of the parent note. Must be exactly 40 characters long (format: nte_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Reference to a parent note when creating a reply.\").optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility of the note. 'public' means visible to all workspace users, 'private' means visible only to the current user.\"),\n}).describe(\"Request schema for creating a new note in the workspace.\");\nconst FolkCreateNote_AuthorResponseSchema = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The unique identifier of the user (required if type is 'user').\").optional()),\n type: z.string().describe(\"The type of author: 'user' or 'assistant'.\").nullable(),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The email address of the user (required if type is 'user').\").optional()),\n deleted: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the user has been deleted (present if type is 'user').\").optional()),\n fullName: z.string().describe(\"The full name of the note creator.\").nullable(),\n}).describe(\"Author information for the note creator.\");\nconst FolkCreateNote_EntityResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the entity.\").nullable(),\n fullName: z.string().describe(\"The display name of the entity.\").nullable(),\n entityType: z.string().describe(\"The type of entity: 'person', 'company', or 'object'.\").nullable(),\n}).describe(\"Entity information returned in the note response.\");\nconst FolkCreateNote_ParentNoteResponseSchema = z.object({\n id: z.string().describe(\"The unique identifier of the parent note.\").nullable(),\n}).describe(\"Parent note reference in the response (if the note is a reply).\");\nconst FolkCreateNote_CreateNoteResponseDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the created note.\").nullable(),\n author: FolkCreateNote_AuthorResponseSchema.nullable(),\n entity: FolkCreateNote_EntityResponseSchema.nullable(),\n content: z.string().describe(\"The 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), FolkCreateNote_ParentNoteResponseSchema.optional()),\n visibility: z.string().describe(\"The visibility of the note: 'public' or 'private'.\").nullable(),\n}).describe(\"Data returned after successfully creating a note.\");\nexport const FolkCreateNoteOutput = z.object({\n data: FolkCreateNote_CreateNoteResponseDataSchema.nullable(),\n deprecations: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").optional()),\n}).describe(\"Response schema for creating a new note.\");\n\nexport const folkCreateNote = action(\"FOLK_CREATE_NOTE\", {\n slug: \"folk-create-note\",\n name: \"Create Note\",\n description: \"Tool to create a new note in the Folk workspace. Use when you need to add a note to a person, company, or deal entity.\",\n input: FolkCreateNoteInput,\n output: FolkCreateNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,EAC3L,CAAC,CAAC,CAAC,SAAS,wGAAwG;CAClH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G;CACzI,YAAY,EAAE,OAAO,EACrB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,EAC3J,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,0HAA0H;AAC/K,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,YAAY,UAAW,UAAU,OAA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,CAAC,CAAC,SAAS,CAAC;CACxJ,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,wCAAwC,SAAS,CAAC;CAC5H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAM/D,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVkC,EAAE,OAAO;EAC3C,MAAM,4CAA4C,SAAS;EAC3D,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,0CAOF;AACV,CAAC"}
@@ -10,54 +10,54 @@ const FolkCreatePersonInput = zod.z.object({
10
10
  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()
11
11
  }).describe("Request schema for creating a new person in the workspace.");
12
12
  const FolkCreatePerson_GroupLinkResponseSchema = zod.z.object({
13
- id: zod.z.string().describe("ID of the group."),
14
- name: zod.z.string().describe("Name of the group.")
13
+ id: zod.z.string().describe("ID of the group.").nullable(),
14
+ name: zod.z.string().describe("Name of the group.").nullable()
15
15
  }).describe("Group information returned in API responses, including ID and name.");
16
16
  const FolkCreatePerson_CompanyItemSchema = zod.z.object({
17
- id: zod.z.string().describe("The company's unique identifier."),
18
- name: zod.z.string().describe("The company's name.")
17
+ id: zod.z.string().describe("The company's unique identifier.").nullable(),
18
+ name: zod.z.string().describe("The company's name.").nullable()
19
19
  }).describe("A company associated with the person.");
20
20
  const FolkCreatePerson_UserInfoSchema = zod.z.object({
21
- id: zod.z.string().describe("Unique identifier of the user."),
22
- email: zod.z.string().describe("Email address of the user.").nullable().optional(),
23
- fullName: zod.z.string().describe("Full name of the user.").nullable().optional()
21
+ id: zod.z.string().describe("Unique identifier of the user.").nullable(),
22
+ email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Email address of the user.").optional()),
23
+ fullName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Full name of the user.").optional())
24
24
  }).describe("User information with ID, full name, and email.");
25
25
  const FolkCreatePerson_UserMetadataSchema = zod.z.object({
26
- approximateCount: zod.z.number().int().describe("Number of interactions between current user and contact."),
27
- lastInteractedAt: zod.z.string().describe("Most recent interaction timestamp in ISO 8601 date-time format.").nullable().optional()
26
+ approximateCount: zod.z.number().int().describe("Number of interactions between current user and contact.").nullable(),
27
+ lastInteractedAt: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Most recent interaction timestamp in ISO 8601 date-time format.").optional())
28
28
  }).describe("User-specific interaction metadata.");
29
29
  const FolkCreatePerson_WorkspaceMetadataSchema = zod.z.object({
30
- approximateCount: zod.z.number().int().describe("Total number of workspace interactions with contact."),
31
- lastInteractedAt: zod.z.string().describe("Most recent workspace interaction timestamp in ISO 8601 date-time format.").nullable().optional(),
32
- lastInteractedBy: zod.z.array(FolkCreatePerson_UserInfoSchema).describe("Users who last interacted with the contact.").nullable().optional()
30
+ approximateCount: zod.z.number().int().describe("Total number of workspace interactions with contact.").nullable(),
31
+ lastInteractedAt: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Most recent workspace interaction timestamp in ISO 8601 date-time format.").optional()),
32
+ lastInteractedBy: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FolkCreatePerson_UserInfoSchema).describe("Users who last interacted with the contact.").optional())
33
33
  }).describe("Workspace-wide interaction metadata.");
34
34
  const FolkCreatePerson_InteractionMetadataSchema = zod.z.object({
35
35
  user: FolkCreatePerson_UserMetadataSchema.nullable(),
36
36
  workspace: FolkCreatePerson_WorkspaceMetadataSchema.nullable()
37
37
  }).describe("Metadata about interactions with the person.");
38
38
  const FolkCreatePerson_CreatePersonResponseDataSchema = zod.z.object({
39
- id: zod.z.string().describe("ID of the created person."),
40
- urls: zod.z.array(zod.z.string()).describe("URLs associated with the person.").nullable().optional(),
41
- emails: zod.z.array(zod.z.string()).describe("Email addresses associated with the person.").nullable().optional(),
42
- groups: zod.z.array(FolkCreatePerson_GroupLinkResponseSchema).describe("Groups the person belongs to with ID and name.").nullable().optional(),
43
- phones: zod.z.array(zod.z.string()).describe("Phone numbers associated with the person.").nullable().optional(),
44
- birthday: zod.z.string().describe("Birthday of the person in ISO date format (YYYY-MM-DD).").nullable().optional(),
45
- fullName: zod.z.string().describe("Full name of the person.").nullable().optional(),
46
- jobTitle: zod.z.string().describe("Job title of the person.").nullable().optional(),
47
- lastName: zod.z.string().describe("Last name of the person.").nullable().optional(),
48
- addresses: zod.z.array(zod.z.string()).describe("Addresses associated with the person.").nullable().optional(),
49
- companies: zod.z.array(FolkCreatePerson_CompanyItemSchema).describe("Companies associated with the person.").nullable().optional(),
50
- createdAt: zod.z.string().describe("ISO 8601 timestamp when the person was created.").nullable().optional(),
39
+ id: zod.z.string().describe("ID of the created person.").nullable(),
40
+ urls: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("URLs associated with the person.").optional()),
41
+ emails: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Email addresses associated with the person.").optional()),
42
+ groups: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FolkCreatePerson_GroupLinkResponseSchema).describe("Groups the person belongs to with ID and name.").optional()),
43
+ phones: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Phone numbers associated with the person.").optional()),
44
+ birthday: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Birthday of the person in ISO date format (YYYY-MM-DD).").optional()),
45
+ fullName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Full name of the person.").optional()),
46
+ jobTitle: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Job title of the person.").optional()),
47
+ lastName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Last name of the person.").optional()),
48
+ addresses: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Addresses associated with the person.").optional()),
49
+ companies: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FolkCreatePerson_CompanyItemSchema).describe("Companies associated with the person.").optional()),
50
+ createdAt: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO 8601 timestamp when the person was created.").optional()),
51
51
  createdBy: FolkCreatePerson_UserInfoSchema.nullable(),
52
- firstName: zod.z.string().describe("First name of the person.").nullable().optional(),
53
- description: zod.z.string().describe("Description of the person.").nullable().optional(),
54
- customFieldValues: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).").nullable().optional(),
52
+ firstName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("First name of the person.").optional()),
53
+ description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Description of the person.").optional()),
54
+ customFieldValues: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).").optional()),
55
55
  interactionMetadata: FolkCreatePerson_InteractionMetadataSchema.nullable(),
56
- strongestConnection: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Map of group IDs to workspace members with the strongest connection to this person.").nullable().optional()
56
+ strongestConnection: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("Map of group IDs to workspace members with the strongest connection to this person.").optional())
57
57
  }).describe("Data returned after a successful person creation.");
58
58
  const FolkCreatePersonOutput = zod.z.object({
59
59
  data: FolkCreatePerson_CreatePersonResponseDataSchema.nullable(),
60
- deprecations: zod.z.array(zod.z.string()).describe("Any deprecation notices returned by the API.").nullable().optional()
60
+ deprecations: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Any deprecation notices returned by the API.").optional())
61
61
  }).describe("Response schema for creating a new person.");
62
62
  const folkCreatePerson = require_action.action("FOLK_CREATE_PERSON", {
63
63
  slug: "folk-create-person",
@@ -1 +1 @@
1
- {"version":3,"file":"create-person.cjs","names":["z","action"],"sources":["../../src/actions/create-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreatePersonInput: z.ZodTypeAny = z.object({\n emails: z.array(z.string()).describe(\"List of email addresses for the person. The first email is considered the primary email.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the person to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers for the person. The first phone is considered the primary phone.\").optional(),\n lastName: z.string().describe(\"Last name of the person.\").optional(),\n firstName: z.string().describe(\"First name of the person.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new person in the workspace.\");\nconst FolkCreatePerson_GroupLinkResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the group.\"),\n name: z.string().describe(\"Name of the group.\"),\n}).describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreatePerson_CompanyItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The company's unique identifier.\"),\n name: z.string().describe(\"The company's name.\"),\n}).describe(\"A company associated with the person.\");\nconst FolkCreatePerson_UserInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user.\"),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user.\").nullable().optional(),\n}).describe(\"User information with ID, full name, and email.\");\nconst FolkCreatePerson_UserMetadataSchema: z.ZodTypeAny = z.object({\n approximateCount: z.number().int().describe(\"Number of interactions between current user and contact.\"),\n lastInteractedAt: z.string().describe(\"Most recent interaction timestamp in ISO 8601 date-time format.\").nullable().optional(),\n}).describe(\"User-specific interaction metadata.\");\nconst FolkCreatePerson_WorkspaceMetadataSchema: z.ZodTypeAny = z.object({\n approximateCount: z.number().int().describe(\"Total number of workspace interactions with contact.\"),\n lastInteractedAt: z.string().describe(\"Most recent workspace interaction timestamp in ISO 8601 date-time format.\").nullable().optional(),\n lastInteractedBy: z.array(FolkCreatePerson_UserInfoSchema).describe(\"Users who last interacted with the contact.\").nullable().optional(),\n}).describe(\"Workspace-wide interaction metadata.\");\nconst FolkCreatePerson_InteractionMetadataSchema: z.ZodTypeAny = z.object({\n user: FolkCreatePerson_UserMetadataSchema.nullable(),\n workspace: FolkCreatePerson_WorkspaceMetadataSchema.nullable(),\n}).describe(\"Metadata about interactions with the person.\");\nconst FolkCreatePerson_CreatePersonResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the created person.\"),\n urls: z.array(z.string()).describe(\"URLs associated with the person.\").nullable().optional(),\n emails: z.array(z.string()).describe(\"Email addresses associated with the person.\").nullable().optional(),\n groups: z.array(FolkCreatePerson_GroupLinkResponseSchema).describe(\"Groups the person belongs to with ID and name.\").nullable().optional(),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the person.\").nullable().optional(),\n birthday: z.string().describe(\"Birthday of the person in ISO date format (YYYY-MM-DD).\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the person.\").nullable().optional(),\n jobTitle: z.string().describe(\"Job title of the person.\").nullable().optional(),\n lastName: z.string().describe(\"Last name of the person.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the person.\").nullable().optional(),\n companies: z.array(FolkCreatePerson_CompanyItemSchema).describe(\"Companies associated with the person.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the person was created.\").nullable().optional(),\n createdBy: FolkCreatePerson_UserInfoSchema.nullable(),\n firstName: z.string().describe(\"First name of the person.\").nullable().optional(),\n description: z.string().describe(\"Description of the person.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).\").nullable().optional(),\n interactionMetadata: FolkCreatePerson_InteractionMetadataSchema.nullable(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Map of group IDs to workspace members with the strongest connection to this person.\").nullable().optional(),\n}).describe(\"Data returned after a successful person creation.\");\nexport const FolkCreatePersonOutput: z.ZodTypeAny = z.object({\n data: FolkCreatePerson_CreatePersonResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).describe(\"Response schema for creating a new person.\");\n\nexport const folkCreatePerson = action(\"FOLK_CREATE_PERSON\", {\n slug: \"folk-create-person\",\n name: \"Create Person\",\n description: \"Creates a new person in the Folk workspace with the specified details. Optional fields include: first name, last name, emails, phones, group assignments, and custom field values. The first email/phone in the list is treated as the primary contact. Returns the created person with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreatePersonInput,\n output: FolkCreatePersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC1I,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACzB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACjE,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACvH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACxI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AAA,EAAE,OAAO;CAC3D,MAAM,gDAAgD,SAAS;CAC/D,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-person.cjs","names":["z","action"],"sources":["../../src/actions/create-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkCreatePersonInput = z.object({\n emails: z.array(z.string()).describe(\"List of email addresses for the person. The first email is considered the primary email.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).describe(\"Reference to a group by its ID.\")).describe(\"The groups to add the person to. Provide group IDs.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers for the person. The first phone is considered the primary phone.\").optional(),\n lastName: z.string().describe(\"Last name of the person.\").optional(),\n firstName: z.string().describe(\"First name of the person.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for creating a new person in the workspace.\");\nconst FolkCreatePerson_GroupLinkResponseSchema = z.object({\n id: z.string().describe(\"ID of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).describe(\"Group information returned in API responses, including ID and name.\");\nconst FolkCreatePerson_CompanyItemSchema = z.object({\n id: z.string().describe(\"The company's unique identifier.\").nullable(),\n name: z.string().describe(\"The company's name.\").nullable(),\n}).describe(\"A company associated with the person.\");\nconst FolkCreatePerson_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email address of the user.\").optional()),\n fullName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the user.\").optional()),\n}).describe(\"User information with ID, full name, and email.\");\nconst FolkCreatePerson_UserMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Number of interactions between current user and contact.\").nullable(),\n lastInteractedAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Most recent interaction timestamp in ISO 8601 date-time format.\").optional()),\n}).describe(\"User-specific interaction metadata.\");\nconst FolkCreatePerson_WorkspaceMetadataSchema = z.object({\n approximateCount: z.number().int().describe(\"Total number of workspace interactions with contact.\").nullable(),\n lastInteractedAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Most recent workspace interaction timestamp in ISO 8601 date-time format.\").optional()),\n lastInteractedBy: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkCreatePerson_UserInfoSchema).describe(\"Users who last interacted with the contact.\").optional()),\n}).describe(\"Workspace-wide interaction metadata.\");\nconst FolkCreatePerson_InteractionMetadataSchema = z.object({\n user: FolkCreatePerson_UserMetadataSchema.nullable(),\n workspace: FolkCreatePerson_WorkspaceMetadataSchema.nullable(),\n}).describe(\"Metadata about interactions with the person.\");\nconst FolkCreatePerson_CreatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"ID of the created person.\").nullable(),\n urls: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"URLs associated with the person.\").optional()),\n emails: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Email addresses associated with the person.\").optional()),\n groups: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkCreatePerson_GroupLinkResponseSchema).describe(\"Groups the person belongs to with ID and name.\").optional()),\n phones: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Phone numbers associated with the person.\").optional()),\n birthday: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Birthday of the person in ISO date format (YYYY-MM-DD).\").optional()),\n fullName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full name of the person.\").optional()),\n jobTitle: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Job title of the person.\").optional()),\n lastName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Last name of the person.\").optional()),\n addresses: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Addresses associated with the person.\").optional()),\n companies: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkCreatePerson_CompanyItemSchema).describe(\"Companies associated with the person.\").optional()),\n createdAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the person was created.\").optional()),\n createdBy: FolkCreatePerson_UserInfoSchema.nullable(),\n firstName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"First name of the person.\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Description of the person.\").optional()),\n customFieldValues: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Map of group IDs to custom field values. Value types depend on field type (text, number, date, select, contact, user, relationship, etc.).\").optional()),\n interactionMetadata: FolkCreatePerson_InteractionMetadataSchema.nullable(),\n strongestConnection: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Map of group IDs to workspace members with the strongest connection to this person.\").optional()),\n}).describe(\"Data returned after a successful person creation.\");\nexport const FolkCreatePersonOutput = z.object({\n data: FolkCreatePerson_CreatePersonResponseDataSchema.nullable(),\n deprecations: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").optional()),\n}).describe(\"Response schema for creating a new person.\");\n\nexport const folkCreatePerson = action(\"FOLK_CREATE_PERSON\", {\n slug: \"folk-create-person\",\n name: \"Create Person\",\n description: \"Creates a new person in the Folk workspace with the specified details. Optional fields include: first name, last name, emails, phones, group assignments, and custom field values. The first email/phone in the list is treated as the primary contact. Returns the created person with a unique ID, all provided fields, timestamps, and creator information.\",\n input: FolkCreatePersonInput,\n output: FolkCreatePersonOutput,\n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,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC;AACjO,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAM,gDAAgD,SAAS;CAC/D,cAAcA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;AACrK,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,119 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-person.d.ts
4
- declare const FolkCreatePersonInput: z.ZodTypeAny;
5
- declare const FolkCreatePersonOutput: z.ZodTypeAny;
6
- declare const folkCreatePerson: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FolkCreatePersonInput: z.ZodObject<{
5
+ emails: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ id: z.ZodString;
8
+ }, z.core.$strip>>>;
9
+ phones: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ lastName: z.ZodOptional<z.ZodString>;
11
+ firstName: z.ZodOptional<z.ZodString>;
12
+ customFieldValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ }, z.core.$strip>;
14
+ declare const FolkCreatePersonOutput: z.ZodObject<{
15
+ data: z.ZodNullable<z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodString>;
17
+ urls: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
18
+ emails: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
19
+ groups: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
20
+ id: z.ZodNullable<z.ZodString>;
21
+ name: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$strip>>>>;
23
+ phones: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
24
+ birthday: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
+ jobTitle: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
27
+ lastName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
28
+ addresses: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
29
+ companies: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
30
+ id: z.ZodNullable<z.ZodString>;
31
+ name: z.ZodNullable<z.ZodString>;
32
+ }, z.core.$strip>>>>;
33
+ createdAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
34
+ createdBy: z.ZodNullable<z.ZodObject<{
35
+ id: z.ZodNullable<z.ZodString>;
36
+ email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
37
+ fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
38
+ }, z.core.$strip>>;
39
+ firstName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
40
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
41
+ customFieldValues: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
42
+ interactionMetadata: z.ZodNullable<z.ZodObject<{
43
+ user: z.ZodNullable<z.ZodObject<{
44
+ approximateCount: z.ZodNullable<z.ZodNumber>;
45
+ lastInteractedAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
46
+ }, z.core.$strip>>;
47
+ workspace: z.ZodNullable<z.ZodObject<{
48
+ approximateCount: z.ZodNullable<z.ZodNumber>;
49
+ lastInteractedAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
50
+ lastInteractedBy: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
51
+ id: z.ZodNullable<z.ZodString>;
52
+ email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
53
+ fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
54
+ }, z.core.$strip>>>>;
55
+ }, z.core.$strip>>;
56
+ }, z.core.$strip>>;
57
+ strongestConnection: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
58
+ }, z.core.$strip>>;
59
+ deprecations: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
60
+ }, z.core.$strip>;
61
+ declare const folkCreatePerson: import("@keystrokehq/action").WorkflowActionDefinition<{
62
+ emails?: string[] | undefined;
63
+ groups?: {
64
+ id: string;
65
+ }[] | undefined;
66
+ phones?: string[] | undefined;
67
+ lastName?: string | undefined;
68
+ firstName?: string | undefined;
69
+ customFieldValues?: Record<string, unknown> | undefined;
70
+ }, {
71
+ data: {
72
+ id: string | null;
73
+ createdBy: {
74
+ id: string | null;
75
+ email?: string | undefined;
76
+ fullName?: string | undefined;
77
+ } | null;
78
+ interactionMetadata: {
79
+ user: {
80
+ approximateCount: number | null;
81
+ lastInteractedAt?: string | undefined;
82
+ } | null;
83
+ workspace: {
84
+ approximateCount: number | null;
85
+ lastInteractedAt?: string | undefined;
86
+ lastInteractedBy?: {
87
+ id: string | null;
88
+ email?: string | undefined;
89
+ fullName?: string | undefined;
90
+ }[] | undefined;
91
+ } | null;
92
+ } | null;
93
+ urls?: string[] | undefined;
94
+ emails?: string[] | undefined;
95
+ groups?: {
96
+ id: string | null;
97
+ name: string | null;
98
+ }[] | undefined;
99
+ phones?: string[] | undefined;
100
+ birthday?: string | undefined;
101
+ fullName?: string | undefined;
102
+ jobTitle?: string | undefined;
103
+ lastName?: string | undefined;
104
+ addresses?: string[] | undefined;
105
+ companies?: {
106
+ id: string | null;
107
+ name: string | null;
108
+ }[] | undefined;
109
+ createdAt?: string | undefined;
110
+ firstName?: string | undefined;
111
+ description?: string | undefined;
112
+ customFieldValues?: Record<string, unknown> | undefined;
113
+ strongestConnection?: Record<string, unknown> | undefined;
114
+ } | null;
115
+ deprecations?: string[] | undefined;
116
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
117
  //#endregion
8
118
  export { folkCreatePerson };
9
119
  //# sourceMappingURL=create-person.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-person.d.cts","names":[],"sources":["../../src/actions/create-person.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UASmC;AAAA,cA+C5D,sBAAA,EAAwB,CAAA,CAAE,UAGkB;AAAA,cAE5C,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-person.d.cts","names":[],"sources":["../../src/actions/create-person.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;cAwDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
@@ -1,9 +1,119 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-person.d.ts
4
- declare const FolkCreatePersonInput: z.ZodTypeAny;
5
- declare const FolkCreatePersonOutput: z.ZodTypeAny;
6
- declare const folkCreatePerson: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FolkCreatePersonInput: z.ZodObject<{
5
+ emails: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ id: z.ZodString;
8
+ }, z.core.$strip>>>;
9
+ phones: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ lastName: z.ZodOptional<z.ZodString>;
11
+ firstName: z.ZodOptional<z.ZodString>;
12
+ customFieldValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
+ }, z.core.$strip>;
14
+ declare const FolkCreatePersonOutput: z.ZodObject<{
15
+ data: z.ZodNullable<z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodString>;
17
+ urls: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
18
+ emails: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
19
+ groups: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
20
+ id: z.ZodNullable<z.ZodString>;
21
+ name: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$strip>>>>;
23
+ phones: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
24
+ birthday: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
+ jobTitle: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
27
+ lastName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
28
+ addresses: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
29
+ companies: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
30
+ id: z.ZodNullable<z.ZodString>;
31
+ name: z.ZodNullable<z.ZodString>;
32
+ }, z.core.$strip>>>>;
33
+ createdAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
34
+ createdBy: z.ZodNullable<z.ZodObject<{
35
+ id: z.ZodNullable<z.ZodString>;
36
+ email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
37
+ fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
38
+ }, z.core.$strip>>;
39
+ firstName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
40
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
41
+ customFieldValues: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
42
+ interactionMetadata: z.ZodNullable<z.ZodObject<{
43
+ user: z.ZodNullable<z.ZodObject<{
44
+ approximateCount: z.ZodNullable<z.ZodNumber>;
45
+ lastInteractedAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
46
+ }, z.core.$strip>>;
47
+ workspace: z.ZodNullable<z.ZodObject<{
48
+ approximateCount: z.ZodNullable<z.ZodNumber>;
49
+ lastInteractedAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
50
+ lastInteractedBy: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
51
+ id: z.ZodNullable<z.ZodString>;
52
+ email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
53
+ fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
54
+ }, z.core.$strip>>>>;
55
+ }, z.core.$strip>>;
56
+ }, z.core.$strip>>;
57
+ strongestConnection: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
58
+ }, z.core.$strip>>;
59
+ deprecations: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
60
+ }, z.core.$strip>;
61
+ declare const folkCreatePerson: import("@keystrokehq/action").WorkflowActionDefinition<{
62
+ emails?: string[] | undefined;
63
+ groups?: {
64
+ id: string;
65
+ }[] | undefined;
66
+ phones?: string[] | undefined;
67
+ lastName?: string | undefined;
68
+ firstName?: string | undefined;
69
+ customFieldValues?: Record<string, unknown> | undefined;
70
+ }, {
71
+ data: {
72
+ id: string | null;
73
+ createdBy: {
74
+ id: string | null;
75
+ email?: string | undefined;
76
+ fullName?: string | undefined;
77
+ } | null;
78
+ interactionMetadata: {
79
+ user: {
80
+ approximateCount: number | null;
81
+ lastInteractedAt?: string | undefined;
82
+ } | null;
83
+ workspace: {
84
+ approximateCount: number | null;
85
+ lastInteractedAt?: string | undefined;
86
+ lastInteractedBy?: {
87
+ id: string | null;
88
+ email?: string | undefined;
89
+ fullName?: string | undefined;
90
+ }[] | undefined;
91
+ } | null;
92
+ } | null;
93
+ urls?: string[] | undefined;
94
+ emails?: string[] | undefined;
95
+ groups?: {
96
+ id: string | null;
97
+ name: string | null;
98
+ }[] | undefined;
99
+ phones?: string[] | undefined;
100
+ birthday?: string | undefined;
101
+ fullName?: string | undefined;
102
+ jobTitle?: string | undefined;
103
+ lastName?: string | undefined;
104
+ addresses?: string[] | undefined;
105
+ companies?: {
106
+ id: string | null;
107
+ name: string | null;
108
+ }[] | undefined;
109
+ createdAt?: string | undefined;
110
+ firstName?: string | undefined;
111
+ description?: string | undefined;
112
+ customFieldValues?: Record<string, unknown> | undefined;
113
+ strongestConnection?: Record<string, unknown> | undefined;
114
+ } | null;
115
+ deprecations?: string[] | undefined;
116
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
117
  //#endregion
8
118
  export { folkCreatePerson };
9
119
  //# sourceMappingURL=create-person.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-person.d.mts","names":[],"sources":["../../src/actions/create-person.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UASmC;AAAA,cA+C5D,sBAAA,EAAwB,CAAA,CAAE,UAGkB;AAAA,cAE5C,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-person.d.mts","names":[],"sources":["../../src/actions/create-person.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;cAwDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}