@keystrokehq/folk 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-company.cjs +7 -7
  4. package/dist/actions/create-company.cjs.map +1 -1
  5. package/dist/actions/create-company.d.cts +8 -35
  6. package/dist/actions/create-company.d.cts.map +1 -1
  7. package/dist/actions/create-company.d.mts +8 -35
  8. package/dist/actions/create-company.d.mts.map +1 -1
  9. package/dist/actions/create-company.mjs +7 -7
  10. package/dist/actions/create-company.mjs.map +1 -1
  11. package/dist/actions/create-note.cjs +6 -6
  12. package/dist/actions/create-note.cjs.map +1 -1
  13. package/dist/actions/create-note.d.cts +7 -30
  14. package/dist/actions/create-note.d.mts +7 -30
  15. package/dist/actions/create-note.mjs +6 -6
  16. package/dist/actions/create-note.mjs.map +1 -1
  17. package/dist/actions/create-person.cjs +21 -21
  18. package/dist/actions/create-person.cjs.map +1 -1
  19. package/dist/actions/create-person.d.cts +24 -70
  20. package/dist/actions/create-person.d.cts.map +1 -1
  21. package/dist/actions/create-person.d.mts +24 -70
  22. package/dist/actions/create-person.d.mts.map +1 -1
  23. package/dist/actions/create-person.mjs +21 -21
  24. package/dist/actions/create-person.mjs.map +1 -1
  25. package/dist/actions/delete-company.cjs +1 -1
  26. package/dist/actions/delete-company.cjs.map +1 -1
  27. package/dist/actions/delete-company.d.cts +2 -7
  28. package/dist/actions/delete-company.d.mts +2 -7
  29. package/dist/actions/delete-company.mjs +1 -1
  30. package/dist/actions/delete-company.mjs.map +1 -1
  31. package/dist/actions/delete-note.cjs +1 -1
  32. package/dist/actions/delete-note.cjs.map +1 -1
  33. package/dist/actions/delete-note.d.cts +2 -7
  34. package/dist/actions/delete-note.d.mts +2 -7
  35. package/dist/actions/delete-note.mjs +1 -1
  36. package/dist/actions/delete-note.mjs.map +1 -1
  37. package/dist/actions/delete-person.cjs +1 -1
  38. package/dist/actions/delete-person.cjs.map +1 -1
  39. package/dist/actions/delete-person.d.cts +2 -7
  40. package/dist/actions/delete-person.d.mts +2 -7
  41. package/dist/actions/delete-person.mjs +1 -1
  42. package/dist/actions/delete-person.mjs.map +1 -1
  43. package/dist/actions/delete-reminder.cjs +1 -1
  44. package/dist/actions/delete-reminder.cjs.map +1 -1
  45. package/dist/actions/delete-reminder.d.cts +2 -7
  46. package/dist/actions/delete-reminder.d.mts +2 -7
  47. package/dist/actions/delete-reminder.mjs +1 -1
  48. package/dist/actions/delete-reminder.mjs.map +1 -1
  49. package/dist/actions/get-company.cjs +1 -1
  50. package/dist/actions/get-company.cjs.map +1 -1
  51. package/dist/actions/get-company.d.cts +2 -17
  52. package/dist/actions/get-company.d.cts.map +1 -1
  53. package/dist/actions/get-company.d.mts +2 -17
  54. package/dist/actions/get-company.d.mts.map +1 -1
  55. package/dist/actions/get-company.mjs +1 -1
  56. package/dist/actions/get-company.mjs.map +1 -1
  57. package/dist/actions/get-current-workspace-user.d.cts +1 -7
  58. package/dist/actions/get-current-workspace-user.d.cts.map +1 -1
  59. package/dist/actions/get-current-workspace-user.d.mts +1 -7
  60. package/dist/actions/get-current-workspace-user.d.mts.map +1 -1
  61. package/dist/actions/get-note.cjs +11 -11
  62. package/dist/actions/get-note.cjs.map +1 -1
  63. package/dist/actions/get-note.d.cts +11 -65
  64. package/dist/actions/get-note.d.cts.map +1 -1
  65. package/dist/actions/get-note.d.mts +11 -65
  66. package/dist/actions/get-note.d.mts.map +1 -1
  67. package/dist/actions/get-note.mjs +11 -11
  68. package/dist/actions/get-note.mjs.map +1 -1
  69. package/dist/actions/get-person.cjs +17 -17
  70. package/dist/actions/get-person.cjs.map +1 -1
  71. package/dist/actions/get-person.d.cts +18 -47
  72. package/dist/actions/get-person.d.mts +18 -47
  73. package/dist/actions/get-person.mjs +17 -17
  74. package/dist/actions/get-person.mjs.map +1 -1
  75. package/dist/actions/get-user.cjs +1 -1
  76. package/dist/actions/get-user.cjs.map +1 -1
  77. package/dist/actions/get-user.d.cts +2 -9
  78. package/dist/actions/get-user.d.mts +2 -9
  79. package/dist/actions/get-user.mjs +1 -1
  80. package/dist/actions/get-user.mjs.map +1 -1
  81. package/dist/actions/list-companies.cjs +8 -8
  82. package/dist/actions/list-companies.cjs.map +1 -1
  83. package/dist/actions/list-companies.d.cts +9 -41
  84. package/dist/actions/list-companies.d.cts.map +1 -1
  85. package/dist/actions/list-companies.d.mts +9 -41
  86. package/dist/actions/list-companies.d.mts.map +1 -1
  87. package/dist/actions/list-companies.mjs +8 -8
  88. package/dist/actions/list-companies.mjs.map +1 -1
  89. package/dist/actions/list-group-custom-fields.cjs +5 -5
  90. package/dist/actions/list-group-custom-fields.cjs.map +1 -1
  91. package/dist/actions/list-group-custom-fields.d.cts +6 -25
  92. package/dist/actions/list-group-custom-fields.d.mts +6 -25
  93. package/dist/actions/list-group-custom-fields.mjs +5 -5
  94. package/dist/actions/list-group-custom-fields.mjs.map +1 -1
  95. package/dist/actions/list-groups.cjs +3 -3
  96. package/dist/actions/list-groups.cjs.map +1 -1
  97. package/dist/actions/list-groups.d.cts +4 -15
  98. package/dist/actions/list-groups.d.mts +4 -15
  99. package/dist/actions/list-groups.mjs +3 -3
  100. package/dist/actions/list-groups.mjs.map +1 -1
  101. package/dist/actions/list-notes.cjs +5 -5
  102. package/dist/actions/list-notes.cjs.map +1 -1
  103. package/dist/actions/list-notes.d.cts +6 -42
  104. package/dist/actions/list-notes.d.mts +6 -42
  105. package/dist/actions/list-notes.mjs +5 -5
  106. package/dist/actions/list-notes.mjs.map +1 -1
  107. package/dist/actions/list-people.cjs +14 -14
  108. package/dist/actions/list-people.cjs.map +1 -1
  109. package/dist/actions/list-people.d.cts +15 -55
  110. package/dist/actions/list-people.d.cts.map +1 -1
  111. package/dist/actions/list-people.d.mts +15 -55
  112. package/dist/actions/list-people.d.mts.map +1 -1
  113. package/dist/actions/list-people.mjs +14 -14
  114. package/dist/actions/list-people.mjs.map +1 -1
  115. package/dist/actions/list-reminders.cjs +6 -6
  116. package/dist/actions/list-reminders.cjs.map +1 -1
  117. package/dist/actions/list-reminders.d.cts +7 -38
  118. package/dist/actions/list-reminders.d.mts +7 -38
  119. package/dist/actions/list-reminders.mjs +6 -6
  120. package/dist/actions/list-reminders.mjs.map +1 -1
  121. package/dist/actions/list-users.cjs +2 -2
  122. package/dist/actions/list-users.cjs.map +1 -1
  123. package/dist/actions/list-users.d.cts +3 -15
  124. package/dist/actions/list-users.d.mts +3 -15
  125. package/dist/actions/list-users.mjs +2 -2
  126. package/dist/actions/list-users.mjs.map +1 -1
  127. package/dist/actions/list-webhooks.cjs +7 -7
  128. package/dist/actions/list-webhooks.cjs.map +1 -1
  129. package/dist/actions/list-webhooks.d.cts +8 -32
  130. package/dist/actions/list-webhooks.d.mts +8 -32
  131. package/dist/actions/list-webhooks.mjs +7 -7
  132. package/dist/actions/list-webhooks.mjs.map +1 -1
  133. package/dist/actions/update-company.cjs +2 -2
  134. package/dist/actions/update-company.cjs.map +1 -1
  135. package/dist/actions/update-company.d.cts +3 -19
  136. package/dist/actions/update-company.d.cts.map +1 -1
  137. package/dist/actions/update-company.d.mts +3 -19
  138. package/dist/actions/update-company.d.mts.map +1 -1
  139. package/dist/actions/update-company.mjs +2 -2
  140. package/dist/actions/update-company.mjs.map +1 -1
  141. package/dist/actions/update-note.cjs +9 -9
  142. package/dist/actions/update-note.cjs.map +1 -1
  143. package/dist/actions/update-note.d.cts +10 -31
  144. package/dist/actions/update-note.d.mts +10 -31
  145. package/dist/actions/update-note.mjs +9 -9
  146. package/dist/actions/update-note.mjs.map +1 -1
  147. package/dist/actions/update-person.cjs +18 -18
  148. package/dist/actions/update-person.cjs.map +1 -1
  149. package/dist/actions/update-person.d.cts +19 -51
  150. package/dist/actions/update-person.d.cts.map +1 -1
  151. package/dist/actions/update-person.d.mts +19 -51
  152. package/dist/actions/update-person.d.mts.map +1 -1
  153. package/dist/actions/update-person.mjs +18 -18
  154. package/dist/actions/update-person.mjs.map +1 -1
  155. package/package.json +1 -1
@@ -31,10 +31,10 @@ declare const FolkGetNoteOutput: z.ZodObject<{
31
31
  }>>;
32
32
  }, z.core.$strip>>;
33
33
  content: z.ZodNullable<z.ZodString>;
34
- createdAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
35
- parentNote: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
34
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ parentNote: z.ZodOptional<z.ZodNullable<z.ZodObject<{
36
36
  id: z.ZodNullable<z.ZodString>;
37
- author: z.ZodPreprocess<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
37
+ author: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
38
38
  id: z.ZodNullable<z.ZodString>;
39
39
  type: z.ZodNullable<z.ZodString>;
40
40
  email: z.ZodNullable<z.ZodString>;
@@ -48,7 +48,7 @@ declare const FolkGetNoteOutput: z.ZodObject<{
48
48
  type: z.ZodNullable<z.ZodString>;
49
49
  fullName: z.ZodNullable<z.ZodString>;
50
50
  }, z.core.$strip>]>>>;
51
- entity: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
51
+ entity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
52
  id: z.ZodNullable<z.ZodString>;
53
53
  fullName: z.ZodNullable<z.ZodString>;
54
54
  entityType: z.ZodNullable<z.ZodEnum<{
@@ -57,11 +57,11 @@ declare const FolkGetNoteOutput: z.ZodObject<{
57
57
  company: "company";
58
58
  }>>;
59
59
  }, z.core.$strip>>>;
60
- content: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
61
- deleted: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
62
- createdAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
63
- parentNote: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
64
- visibility: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
60
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
62
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ parentNote: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
64
+ visibility: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
65
65
  public: "public";
66
66
  private: "private";
67
67
  }>>>;
@@ -71,65 +71,11 @@ declare const FolkGetNoteOutput: z.ZodObject<{
71
71
  private: "private";
72
72
  }>>;
73
73
  }, z.core.$strip>>;
74
- deprecations: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
74
+ deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
75
75
  }, z.core.$strip>;
76
76
  declare const folkGetNote: import("@keystrokehq/action").WorkflowActionDefinition<{
77
77
  note_id: string;
78
- }, {
79
- data: {
80
- id: string | null;
81
- author: {
82
- id: string | null;
83
- type: string | null;
84
- email: string | null;
85
- deleted: boolean | null;
86
- fullName: string | null;
87
- } | {
88
- id: string | null;
89
- type: string | null;
90
- deleted: boolean | null;
91
- } | {
92
- type: string | null;
93
- fullName: string | null;
94
- };
95
- entity: {
96
- id: string | null;
97
- fullName: string | null;
98
- entityType: "object" | "person" | "company" | null;
99
- } | null;
100
- content: string | null;
101
- visibility: "public" | "private" | null;
102
- createdAt?: string | undefined;
103
- parentNote?: {
104
- id: string | null;
105
- author?: {
106
- id: string | null;
107
- type: string | null;
108
- email: string | null;
109
- deleted: boolean | null;
110
- fullName: string | null;
111
- } | {
112
- id: string | null;
113
- type: string | null;
114
- deleted: boolean | null;
115
- } | {
116
- type: string | null;
117
- fullName: string | null;
118
- } | undefined;
119
- entity?: {
120
- id: string | null;
121
- fullName: string | null;
122
- entityType: "object" | "person" | "company" | null;
123
- } | undefined;
124
- content?: string | undefined;
125
- deleted?: boolean | undefined;
126
- createdAt?: string | undefined;
127
- parentNote?: Record<string, unknown> | undefined;
128
- visibility?: "public" | "private" | undefined;
129
- } | undefined;
130
- } | null;
131
- deprecations?: string[] | undefined;
132
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
78
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
133
79
  //#endregion
134
80
  export { folkGetNote };
135
81
  //# sourceMappingURL=get-note.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-note.d.cts","names":[],"sources":["../../src/actions/get-note.ts"],"mappings":";;;cAIa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;cA2ChB,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKjB,WAAA,gCAAW,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAMtB,MAAA"}
1
+ {"version":3,"file":"get-note.d.cts","names":[],"sources":["../../src/actions/get-note.ts"],"mappings":";;;cAIa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;cA2ChB,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKjB,WAAA,gCAAW,wBAAA"}
@@ -31,10 +31,10 @@ declare const FolkGetNoteOutput: z.ZodObject<{
31
31
  }>>;
32
32
  }, z.core.$strip>>;
33
33
  content: z.ZodNullable<z.ZodString>;
34
- createdAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
35
- parentNote: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
34
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ parentNote: z.ZodOptional<z.ZodNullable<z.ZodObject<{
36
36
  id: z.ZodNullable<z.ZodString>;
37
- author: z.ZodPreprocess<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
37
+ author: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
38
38
  id: z.ZodNullable<z.ZodString>;
39
39
  type: z.ZodNullable<z.ZodString>;
40
40
  email: z.ZodNullable<z.ZodString>;
@@ -48,7 +48,7 @@ declare const FolkGetNoteOutput: z.ZodObject<{
48
48
  type: z.ZodNullable<z.ZodString>;
49
49
  fullName: z.ZodNullable<z.ZodString>;
50
50
  }, z.core.$strip>]>>>;
51
- entity: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
51
+ entity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
52
  id: z.ZodNullable<z.ZodString>;
53
53
  fullName: z.ZodNullable<z.ZodString>;
54
54
  entityType: z.ZodNullable<z.ZodEnum<{
@@ -57,11 +57,11 @@ declare const FolkGetNoteOutput: z.ZodObject<{
57
57
  company: "company";
58
58
  }>>;
59
59
  }, z.core.$strip>>>;
60
- content: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
61
- deleted: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
62
- createdAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
63
- parentNote: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
64
- visibility: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
60
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
62
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ parentNote: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
64
+ visibility: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
65
65
  public: "public";
66
66
  private: "private";
67
67
  }>>>;
@@ -71,65 +71,11 @@ declare const FolkGetNoteOutput: z.ZodObject<{
71
71
  private: "private";
72
72
  }>>;
73
73
  }, z.core.$strip>>;
74
- deprecations: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
74
+ deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
75
75
  }, z.core.$strip>;
76
76
  declare const folkGetNote: import("@keystrokehq/action").WorkflowActionDefinition<{
77
77
  note_id: string;
78
- }, {
79
- data: {
80
- id: string | null;
81
- author: {
82
- id: string | null;
83
- type: string | null;
84
- email: string | null;
85
- deleted: boolean | null;
86
- fullName: string | null;
87
- } | {
88
- id: string | null;
89
- type: string | null;
90
- deleted: boolean | null;
91
- } | {
92
- type: string | null;
93
- fullName: string | null;
94
- };
95
- entity: {
96
- id: string | null;
97
- fullName: string | null;
98
- entityType: "object" | "person" | "company" | null;
99
- } | null;
100
- content: string | null;
101
- visibility: "public" | "private" | null;
102
- createdAt?: string | undefined;
103
- parentNote?: {
104
- id: string | null;
105
- author?: {
106
- id: string | null;
107
- type: string | null;
108
- email: string | null;
109
- deleted: boolean | null;
110
- fullName: string | null;
111
- } | {
112
- id: string | null;
113
- type: string | null;
114
- deleted: boolean | null;
115
- } | {
116
- type: string | null;
117
- fullName: string | null;
118
- } | undefined;
119
- entity?: {
120
- id: string | null;
121
- fullName: string | null;
122
- entityType: "object" | "person" | "company" | null;
123
- } | undefined;
124
- content?: string | undefined;
125
- deleted?: boolean | undefined;
126
- createdAt?: string | undefined;
127
- parentNote?: Record<string, unknown> | undefined;
128
- visibility?: "public" | "private" | undefined;
129
- } | undefined;
130
- } | null;
131
- deprecations?: string[] | undefined;
132
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
78
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
133
79
  //#endregion
134
80
  export { folkGetNote };
135
81
  //# sourceMappingURL=get-note.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-note.d.mts","names":[],"sources":["../../src/actions/get-note.ts"],"mappings":";;;cAIa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;cA2ChB,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKjB,WAAA,gCAAW,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAMtB,MAAA"}
1
+ {"version":3,"file":"get-note.d.mts","names":[],"sources":["../../src/actions/get-note.ts"],"mappings":";;;cAIa,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;cA2ChB,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKjB,WAAA,gCAAW,wBAAA"}
@@ -29,17 +29,17 @@ const FolkGetNote_GetNoteEntitySchema = z.object({
29
29
  }).describe("Entity (person, company, or object) associated with the note.");
30
30
  const FolkGetNote_GetNoteParentNoteSchema = z.object({
31
31
  id: z.string().describe("Parent note identifier").nullable(),
32
- author: z.preprocess((value) => value === null ? void 0 : value, z.union([
32
+ author: z.union([
33
33
  FolkGetNote_GetNoteActiveUserSchema,
34
34
  FolkGetNote_GetNoteDeletedUserSchema,
35
35
  FolkGetNote_GetNoteAssistantSchema
36
- ]).optional()),
37
- entity: z.preprocess((value) => value === null ? void 0 : value, FolkGetNote_GetNoteEntitySchema.optional()),
38
- content: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Parent note content").optional()),
39
- deleted: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether the parent note has been deleted").optional()),
40
- createdAt: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO 8601 timestamp when the parent note was created").optional()),
41
- parentNote: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Grandparent note if parent is also a reply").optional()),
42
- visibility: z.preprocess((value) => value === null ? void 0 : value, z.enum(["public", "private"]).describe("Visibility of the parent note").optional())
36
+ ]).nullable().optional(),
37
+ entity: FolkGetNote_GetNoteEntitySchema.nullable().optional(),
38
+ content: z.string().describe("Parent note content").nullable().optional(),
39
+ deleted: z.boolean().describe("Whether the parent note has been deleted").nullable().optional(),
40
+ createdAt: z.string().describe("ISO 8601 timestamp when the parent note was created").nullable().optional(),
41
+ parentNote: z.record(z.string(), z.unknown()).describe("Grandparent note if parent is also a reply").nullable().optional(),
42
+ visibility: z.enum(["public", "private"]).describe("Visibility of the parent note").nullable().optional()
43
43
  }).describe("Parent note information if this note is a reply.");
44
44
  const FolkGetNote_GetNoteDataSchema = z.object({
45
45
  id: z.string().describe("Unique identifier of the note").nullable(),
@@ -50,8 +50,8 @@ const FolkGetNote_GetNoteDataSchema = z.object({
50
50
  ]),
51
51
  entity: FolkGetNote_GetNoteEntitySchema.nullable(),
52
52
  content: z.string().describe("Note content in text or markdown format").nullable(),
53
- createdAt: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO 8601 timestamp when the note was created").optional()),
54
- parentNote: z.preprocess((value) => value === null ? void 0 : value, FolkGetNote_GetNoteParentNoteSchema.optional()),
53
+ createdAt: z.string().describe("ISO 8601 timestamp when the note was created").nullable().optional(),
54
+ parentNote: FolkGetNote_GetNoteParentNoteSchema.nullable().optional(),
55
55
  visibility: z.enum(["public", "private"]).describe("Visibility setting for the note").nullable()
56
56
  }).describe("Note data object returned by the API.");
57
57
  const folkGetNote = action("FOLK_GET_NOTE", {
@@ -61,7 +61,7 @@ const folkGetNote = action("FOLK_GET_NOTE", {
61
61
  input: FolkGetNoteInput,
62
62
  output: z.object({
63
63
  data: FolkGetNote_GetNoteDataSchema.nullable(),
64
- deprecations: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("List of deprecation warnings, if any").optional())
64
+ deprecations: z.array(z.string()).describe("List of deprecation warnings, if any").nullable().optional()
65
65
  }).describe("Full response schema for get-note endpoint.")
66
66
  });
67
67
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-note.mjs","names":[],"sources":["../../src/actions/get-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkGetNoteInput = z.object({\n note_id: z.string().describe(\"The ID of the note to retrieve. Must be exactly 40 characters long.\"),\n}).describe(\"Request parameters for retrieving a note by its ID.\");\nconst FolkGetNote_GetNoteActiveUserSchema = z.object({\n id: z.string().describe(\"User identifier\").nullable(),\n type: z.string().describe(\"Author type for active user\").nullable(),\n email: z.string().describe(\"User's email address\").nullable(),\n deleted: z.boolean().describe(\"User deletion status\").nullable(),\n fullName: z.string().describe(\"User's full name\").nullable(),\n}).describe(\"Active user author information.\");\nconst FolkGetNote_GetNoteDeletedUserSchema = z.object({\n id: z.string().describe(\"User identifier\").nullable(),\n type: z.string().describe(\"Author type for deleted user\").nullable(),\n deleted: z.boolean().describe(\"User deletion status\").nullable(),\n}).describe(\"Deleted user author information.\");\nconst FolkGetNote_GetNoteAssistantSchema = z.object({\n type: z.string().describe(\"Author type for assistant\").nullable(),\n fullName: z.string().describe(\"Assistant's display name\").nullable(),\n}).describe(\"Assistant author information.\");\nconst FolkGetNote_GetNoteEntitySchema = z.object({\n id: z.string().describe(\"Entity identifier (40 characters)\").nullable(),\n fullName: z.string().describe(\"Full name of the entity\").nullable(),\n entityType: z.enum([\"person\", \"company\", \"object\"]).describe(\"Type of entity the note is attached to\").nullable(),\n}).describe(\"Entity (person, company, or object) associated with the note.\");\nconst FolkGetNote_GetNoteParentNoteSchema = z.object({\n id: z.string().describe(\"Parent note identifier\").nullable(),\n author: z.preprocess((value) => (value === null ? undefined : value), z.union([FolkGetNote_GetNoteActiveUserSchema, FolkGetNote_GetNoteDeletedUserSchema, FolkGetNote_GetNoteAssistantSchema]).optional()),\n entity: z.preprocess((value) => (value === null ? undefined : value), FolkGetNote_GetNoteEntitySchema.optional()),\n content: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Parent note content\").optional()),\n deleted: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the parent note has been deleted\").optional()),\n createdAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the parent note was created\").optional()),\n parentNote: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Grandparent note if parent is also a reply\").optional()),\n visibility: z.preprocess((value) => (value === null ? undefined : value), z.enum([\"public\", \"private\"]).describe(\"Visibility of the parent note\").optional()),\n}).describe(\"Parent note information if this note is a reply.\");\nconst FolkGetNote_GetNoteDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the note\").nullable(),\n author: z.union([FolkGetNote_GetNoteActiveUserSchema, FolkGetNote_GetNoteDeletedUserSchema, FolkGetNote_GetNoteAssistantSchema]),\n entity: FolkGetNote_GetNoteEntitySchema.nullable(),\n content: z.string().describe(\"Note content in text or markdown format\").nullable(),\n createdAt: z.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), FolkGetNote_GetNoteParentNoteSchema.optional()),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility setting for the note\").nullable(),\n}).describe(\"Note data object returned by the API.\");\nexport const FolkGetNoteOutput = z.object({\n data: FolkGetNote_GetNoteDataSchema.nullable(),\n deprecations: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"List of deprecation warnings, if any\").optional()),\n}).describe(\"Full response schema for get-note endpoint.\");\n\nexport const folkGetNote = action(\"FOLK_GET_NOTE\", {\n slug: \"folk-get-note\",\n name: \"Get Note\",\n description: \"Tool to retrieve an existing note by its ID. Use when you need the full content and metadata of a specific note.\",\n input: FolkGetNoteInput,\n output: FolkGetNoteOutput,\n});\n"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AAQ,EAAE,MAAM;EAAC;EAAqC;EAAsC;CAAkC,CAAC;CAC/H,QAAQ,gCAAgC,SAAS;CACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC;CACvJ,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,oCAAoC,SAAS,CAAC;CACxH,YAAY,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAMnD,MAAa,cAAc,OAAO,iBAAiB;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+B,EAAE,OAAO;EACxC,MAAM,8BAA8B,SAAS;EAC7C,cAAc,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;CAC7J,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-note.mjs","names":[],"sources":["../../src/actions/get-note.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkGetNoteInput = z.object({\n note_id: z.string().describe(\"The ID of the note to retrieve. Must be exactly 40 characters long.\"),\n}).describe(\"Request parameters for retrieving a note by its ID.\");\nconst FolkGetNote_GetNoteActiveUserSchema = z.object({\n id: z.string().describe(\"User identifier\").nullable(),\n type: z.string().describe(\"Author type for active user\").nullable(),\n email: z.string().describe(\"User's email address\").nullable(),\n deleted: z.boolean().describe(\"User deletion status\").nullable(),\n fullName: z.string().describe(\"User's full name\").nullable(),\n}).describe(\"Active user author information.\");\nconst FolkGetNote_GetNoteDeletedUserSchema = z.object({\n id: z.string().describe(\"User identifier\").nullable(),\n type: z.string().describe(\"Author type for deleted user\").nullable(),\n deleted: z.boolean().describe(\"User deletion status\").nullable(),\n}).describe(\"Deleted user author information.\");\nconst FolkGetNote_GetNoteAssistantSchema = z.object({\n type: z.string().describe(\"Author type for assistant\").nullable(),\n fullName: z.string().describe(\"Assistant's display name\").nullable(),\n}).describe(\"Assistant author information.\");\nconst FolkGetNote_GetNoteEntitySchema = z.object({\n id: z.string().describe(\"Entity identifier (40 characters)\").nullable(),\n fullName: z.string().describe(\"Full name of the entity\").nullable(),\n entityType: z.enum([\"person\", \"company\", \"object\"]).describe(\"Type of entity the note is attached to\").nullable(),\n}).describe(\"Entity (person, company, or object) associated with the note.\");\nconst FolkGetNote_GetNoteParentNoteSchema = z.object({\n id: z.string().describe(\"Parent note identifier\").nullable(),\n author: z.union([FolkGetNote_GetNoteActiveUserSchema, FolkGetNote_GetNoteDeletedUserSchema, FolkGetNote_GetNoteAssistantSchema]).nullable().optional(),\n entity: FolkGetNote_GetNoteEntitySchema.nullable().optional(),\n content: z.string().describe(\"Parent note content\").nullable().optional(),\n deleted: z.boolean().describe(\"Whether the parent note has been deleted\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the parent note was created\").nullable().optional(),\n parentNote: z.record(z.string(), z.unknown()).describe(\"Grandparent note if parent is also a reply\").nullable().optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility of the parent note\").nullable().optional(),\n}).describe(\"Parent note information if this note is a reply.\");\nconst FolkGetNote_GetNoteDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the note\").nullable(),\n author: z.union([FolkGetNote_GetNoteActiveUserSchema, FolkGetNote_GetNoteDeletedUserSchema, FolkGetNote_GetNoteAssistantSchema]),\n entity: FolkGetNote_GetNoteEntitySchema.nullable(),\n content: z.string().describe(\"Note content in text or markdown format\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the note was created\").nullable().optional(),\n parentNote: FolkGetNote_GetNoteParentNoteSchema.nullable().optional(),\n visibility: z.enum([\"public\", \"private\"]).describe(\"Visibility setting for the note\").nullable(),\n}).describe(\"Note data object returned by the API.\");\nexport const FolkGetNoteOutput = z.object({\n data: FolkGetNote_GetNoteDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"List of deprecation warnings, if any\").nullable().optional(),\n}).describe(\"Full response schema for get-note endpoint.\");\n\nexport const folkGetNote = action(\"FOLK_GET_NOTE\", {\n slug: \"folk-get-note\",\n name: \"Get Note\",\n description: \"Tool to retrieve an existing note by its ID. Use when you need the full content and metadata of a specific note.\",\n input: FolkGetNoteInput,\n output: FolkGetNoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mBAAmB,EAAE,OAAO,EACvC,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,EACpG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;AAC7D,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AACj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AAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,gCAAgC,EAAE,OAAO;CAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,QAAQ,EAAE,MAAM;EAAC;EAAqC;EAAsC;CAAkC,CAAC;CAC/H,QAAQ,gCAAgC,SAAS;CACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAY,oCAAoC,SAAS,CAAC,CAAC,SAAS;CACpE,YAAY,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAMnD,MAAa,cAAc,OAAO,iBAAiB;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+B,EAAE,OAAO;EACxC,MAAM,8BAA8B,SAAS;EAC7C,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
@@ -17,23 +17,23 @@ const FolkGetPerson_CreatedByUserSchema = zod.z.object({
17
17
  }).describe("User information for the person who created this record.");
18
18
  const FolkGetPersonOutput = zod.z.object({
19
19
  id: zod.z.string().describe("The unique identifier of the person").nullable(),
20
- urls: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("A list of URLs associated with the person (websites, social profiles, etc.)").optional()),
21
- emails: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("A list of the person's email addresses").optional()),
22
- groups: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FolkGetPerson_GroupItemSchema).describe("A list of groups the person belongs to").optional()),
23
- phones: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("A list of the person's phone numbers").optional()),
24
- 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()),
25
- fullName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The person's full name").optional()),
26
- jobTitle: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The person's job title").optional()),
27
- lastName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The person's last name").optional()),
28
- addresses: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("A list of the person's street addresses").optional()),
29
- companies: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FolkGetPerson_CompanyItemSchema).describe("A list of companies associated with the person").optional()),
30
- createdAt: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO8601 timestamp of when this person record was created").optional()),
31
- createdBy: zod.z.preprocess((value) => value === null ? void 0 : value, FolkGetPerson_CreatedByUserSchema.optional()),
32
- firstName: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The person's first name").optional()),
33
- description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("A description of the person").optional()),
34
- customFieldValues: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field values organized by group ID, containing key-value pairs specific to each group").optional()),
35
- 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()),
36
- 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())
20
+ urls: zod.z.array(zod.z.string()).describe("A list of URLs associated with the person (websites, social profiles, etc.)").nullable().optional(),
21
+ emails: zod.z.array(zod.z.string()).describe("A list of the person's email addresses").nullable().optional(),
22
+ groups: zod.z.array(FolkGetPerson_GroupItemSchema).describe("A list of groups the person belongs to").nullable().optional(),
23
+ phones: zod.z.array(zod.z.string()).describe("A list of the person's phone numbers").nullable().optional(),
24
+ birthday: zod.z.string().describe("The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set").nullable().optional(),
25
+ fullName: zod.z.string().describe("The person's full name").nullable().optional(),
26
+ jobTitle: zod.z.string().describe("The person's job title").nullable().optional(),
27
+ lastName: zod.z.string().describe("The person's last name").nullable().optional(),
28
+ addresses: zod.z.array(zod.z.string()).describe("A list of the person's street addresses").nullable().optional(),
29
+ companies: zod.z.array(FolkGetPerson_CompanyItemSchema).describe("A list of companies associated with the person").nullable().optional(),
30
+ createdAt: zod.z.string().describe("ISO8601 timestamp of when this person record was created").nullable().optional(),
31
+ createdBy: FolkGetPerson_CreatedByUserSchema.nullable().optional(),
32
+ firstName: zod.z.string().describe("The person's first name").nullable().optional(),
33
+ description: zod.z.string().describe("A description of the person").nullable().optional(),
34
+ customFieldValues: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field values organized by group ID, containing key-value pairs specific to each group").nullable().optional(),
35
+ interactionMetadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata about interactions with this person, including counts and timestamps").nullable().optional(),
36
+ strongestConnection: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Information about the strongest connection to this person").nullable().optional()
37
37
  }).describe("Response schema for retrieving a person by ID.");
38
38
  const folkGetPerson = require_action.action("FOLK_GET_PERSON", {
39
39
  slug: "folk-get-person",
@@ -1 +1 @@
1
- {"version":3,"file":"get-person.cjs","names":["z","action"],"sources":["../../src/actions/get-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkGetPersonInput = z.object({\n person_id: z.string().describe(\"The unique identifier of the person to retrieve. Must be exactly 40 characters long (format: per_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Request schema for retrieving a person by their unique ID.\");\nconst FolkGetPerson_GroupItemSchema = z.object({\n id: z.string().describe(\"The group's unique identifier\").nullable(),\n name: z.string().describe(\"The group's name\").nullable(),\n}).describe(\"A group that a person belongs to.\");\nconst FolkGetPerson_CompanyItemSchema = z.object({\n id: z.string().describe(\"The company's unique identifier\").nullable(),\n name: z.string().describe(\"The company's name\").nullable(),\n}).describe(\"A company associated with a person.\");\nconst FolkGetPerson_CreatedByUserSchema = z.object({\n id: z.string().describe(\"The user's unique identifier\").nullable(),\n email: z.string().describe(\"The user's email address\").nullable(),\n fullName: z.string().describe(\"The user's full name\").nullable(),\n}).describe(\"User information for the person who created this record.\");\nexport const FolkGetPersonOutput = z.object({\n id: z.string().describe(\"The unique identifier of the person\").nullable(),\n urls: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"A list of URLs associated with the person (websites, social profiles, etc.)\").optional()),\n emails: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"A list of the person's email addresses\").optional()),\n groups: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkGetPerson_GroupItemSchema).describe(\"A list of groups the person belongs to\").optional()),\n phones: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"A list of the person's phone numbers\").optional()),\n birthday: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set\").optional()),\n fullName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's full name\").optional()),\n jobTitle: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's job title\").optional()),\n lastName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's last name\").optional()),\n addresses: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"A list of the person's street addresses\").optional()),\n companies: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkGetPerson_CompanyItemSchema).describe(\"A list of companies associated with the person\").optional()),\n createdAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO8601 timestamp of when this person record was created\").optional()),\n createdBy: z.preprocess((value) => (value === null ? undefined : value), FolkGetPerson_CreatedByUserSchema.optional()),\n firstName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's first name\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"A description of the person\").optional()),\n customFieldValues: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Custom field values organized by group ID, containing key-value pairs specific to each group\").optional()),\n interactionMetadata: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Metadata about interactions with this person, including counts and timestamps\").optional()),\n strongestConnection: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Information about the strongest connection to this person\").optional()),\n}).describe(\"Response schema for retrieving a person by ID.\");\n\nexport const folkGetPerson = action(\"FOLK_GET_PERSON\", {\n slug: \"folk-get-person\",\n name: \"Get Person\",\n description: \"Tool to retrieve an existing person by their ID. Use when you need full profile details of a person by their unique identifier.\",\n input: FolkGetPersonInput,\n output: FolkGetPersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO,EACzC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI,EACzK,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;AACzD,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,kCAAkCA,IAAAA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aA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC;CACxI,mBAAmBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC;CACtO,qBAAqBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC;CACzN,qBAAqBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC;AACvM,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-person.cjs","names":["z","action"],"sources":["../../src/actions/get-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkGetPersonInput = z.object({\n person_id: z.string().describe(\"The unique identifier of the person to retrieve. Must be exactly 40 characters long (format: per_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)\"),\n}).describe(\"Request schema for retrieving a person by their unique ID.\");\nconst FolkGetPerson_GroupItemSchema = z.object({\n id: z.string().describe(\"The group's unique identifier\").nullable(),\n name: z.string().describe(\"The group's name\").nullable(),\n}).describe(\"A group that a person belongs to.\");\nconst FolkGetPerson_CompanyItemSchema = z.object({\n id: z.string().describe(\"The company's unique identifier\").nullable(),\n name: z.string().describe(\"The company's name\").nullable(),\n}).describe(\"A company associated with a person.\");\nconst FolkGetPerson_CreatedByUserSchema = z.object({\n id: z.string().describe(\"The user's unique identifier\").nullable(),\n email: z.string().describe(\"The user's email address\").nullable(),\n fullName: z.string().describe(\"The user's full name\").nullable(),\n}).describe(\"User information for the person who created this record.\");\nexport const FolkGetPersonOutput = z.object({\n id: z.string().describe(\"The unique identifier of the person\").nullable(),\n urls: z.array(z.string()).describe(\"A list of URLs associated with the person (websites, social profiles, etc.)\").nullable().optional(),\n emails: z.array(z.string()).describe(\"A list of the person's email addresses\").nullable().optional(),\n groups: z.array(FolkGetPerson_GroupItemSchema).describe(\"A list of groups the person belongs to\").nullable().optional(),\n phones: z.array(z.string()).describe(\"A list of the person's phone numbers\").nullable().optional(),\n birthday: z.string().describe(\"The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set\").nullable().optional(),\n fullName: z.string().describe(\"The person's full name\").nullable().optional(),\n jobTitle: z.string().describe(\"The person's job title\").nullable().optional(),\n lastName: z.string().describe(\"The person's last name\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"A list of the person's street addresses\").nullable().optional(),\n companies: z.array(FolkGetPerson_CompanyItemSchema).describe(\"A list of companies associated with the person\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp of when this person record was created\").nullable().optional(),\n createdBy: FolkGetPerson_CreatedByUserSchema.nullable().optional(),\n firstName: z.string().describe(\"The person's first name\").nullable().optional(),\n description: z.string().describe(\"A description of the person\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values organized by group ID, containing key-value pairs specific to each group\").nullable().optional(),\n interactionMetadata: z.record(z.string(), z.unknown()).describe(\"Metadata about interactions with this person, including counts and timestamps\").nullable().optional(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Information about the strongest connection to this person\").nullable().optional(),\n}).describe(\"Response schema for retrieving a person by ID.\");\n\nexport const folkGetPerson = action(\"FOLK_GET_PERSON\", {\n slug: \"folk-get-person\",\n name: \"Get Person\",\n description: \"Tool to retrieve an existing person by their ID. Use when you need full profile details of a person by their unique identifier.\",\n input: FolkGetPersonInput,\n output: FolkGetPersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO,EACzC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI,EACzK,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;AACzD,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AAC3D,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC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AAS;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClL,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,66 +6,37 @@ declare const FolkGetPersonInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const FolkGetPersonOutput: z.ZodObject<{
8
8
  id: z.ZodNullable<z.ZodString>;
9
- urls: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
10
- emails: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
11
- groups: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
9
+ urls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
10
+ emails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
12
12
  id: z.ZodNullable<z.ZodString>;
13
13
  name: z.ZodNullable<z.ZodString>;
14
14
  }, z.core.$strip>>>>;
15
- phones: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
16
- birthday: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
- jobTitle: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- lastName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
- addresses: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
21
- companies: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
15
+ phones: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
16
+ birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ jobTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ addresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
21
+ companies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
22
22
  id: z.ZodNullable<z.ZodString>;
23
23
  name: z.ZodNullable<z.ZodString>;
24
24
  }, z.core.$strip>>>>;
25
- createdAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
- createdBy: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
25
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
27
  id: z.ZodNullable<z.ZodString>;
28
28
  email: z.ZodNullable<z.ZodString>;
29
29
  fullName: z.ZodNullable<z.ZodString>;
30
30
  }, z.core.$strip>>>;
31
- firstName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
- description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
33
- customFieldValues: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
34
- interactionMetadata: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
35
- strongestConnection: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
31
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ customFieldValues: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
34
+ interactionMetadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
35
+ strongestConnection: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
36
36
  }, z.core.$strip>;
37
37
  declare const folkGetPerson: import("@keystrokehq/action").WorkflowActionDefinition<{
38
38
  person_id: string;
39
- }, {
40
- id: string | null;
41
- urls?: string[] | undefined;
42
- emails?: string[] | undefined;
43
- groups?: {
44
- id: string | null;
45
- name: string | null;
46
- }[] | undefined;
47
- phones?: string[] | undefined;
48
- birthday?: string | undefined;
49
- fullName?: string | undefined;
50
- jobTitle?: string | undefined;
51
- lastName?: string | undefined;
52
- addresses?: string[] | undefined;
53
- companies?: {
54
- id: string | null;
55
- name: string | null;
56
- }[] | undefined;
57
- createdAt?: string | undefined;
58
- createdBy?: {
59
- id: string | null;
60
- email: string | null;
61
- fullName: string | null;
62
- } | undefined;
63
- firstName?: string | undefined;
64
- description?: string | undefined;
65
- customFieldValues?: Record<string, unknown> | undefined;
66
- interactionMetadata?: Record<string, unknown> | undefined;
67
- strongestConnection?: Record<string, unknown> | undefined;
68
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
39
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
69
40
  //#endregion
70
41
  export { folkGetPerson };
71
42
  //# sourceMappingURL=get-person.d.cts.map
@@ -6,66 +6,37 @@ declare const FolkGetPersonInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const FolkGetPersonOutput: z.ZodObject<{
8
8
  id: z.ZodNullable<z.ZodString>;
9
- urls: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
10
- emails: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
11
- groups: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
9
+ urls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
10
+ emails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
12
12
  id: z.ZodNullable<z.ZodString>;
13
13
  name: z.ZodNullable<z.ZodString>;
14
14
  }, z.core.$strip>>>>;
15
- phones: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
16
- birthday: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- fullName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
- jobTitle: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- lastName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
- addresses: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
21
- companies: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
15
+ phones: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
16
+ birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ jobTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ addresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
21
+ companies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
22
22
  id: z.ZodNullable<z.ZodString>;
23
23
  name: z.ZodNullable<z.ZodString>;
24
24
  }, z.core.$strip>>>>;
25
- createdAt: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
- createdBy: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
25
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
27
  id: z.ZodNullable<z.ZodString>;
28
28
  email: z.ZodNullable<z.ZodString>;
29
29
  fullName: z.ZodNullable<z.ZodString>;
30
30
  }, z.core.$strip>>>;
31
- firstName: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
- description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
33
- customFieldValues: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
34
- interactionMetadata: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
35
- strongestConnection: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
31
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ customFieldValues: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
34
+ interactionMetadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
35
+ strongestConnection: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
36
36
  }, z.core.$strip>;
37
37
  declare const folkGetPerson: import("@keystrokehq/action").WorkflowActionDefinition<{
38
38
  person_id: string;
39
- }, {
40
- id: string | null;
41
- urls?: string[] | undefined;
42
- emails?: string[] | undefined;
43
- groups?: {
44
- id: string | null;
45
- name: string | null;
46
- }[] | undefined;
47
- phones?: string[] | undefined;
48
- birthday?: string | undefined;
49
- fullName?: string | undefined;
50
- jobTitle?: string | undefined;
51
- lastName?: string | undefined;
52
- addresses?: string[] | undefined;
53
- companies?: {
54
- id: string | null;
55
- name: string | null;
56
- }[] | undefined;
57
- createdAt?: string | undefined;
58
- createdBy?: {
59
- id: string | null;
60
- email: string | null;
61
- fullName: string | null;
62
- } | undefined;
63
- firstName?: string | undefined;
64
- description?: string | undefined;
65
- customFieldValues?: Record<string, unknown> | undefined;
66
- interactionMetadata?: Record<string, unknown> | undefined;
67
- strongestConnection?: Record<string, unknown> | undefined;
68
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
39
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
69
40
  //#endregion
70
41
  export { folkGetPerson };
71
42
  //# sourceMappingURL=get-person.d.mts.map
@@ -22,23 +22,23 @@ const folkGetPerson = action("FOLK_GET_PERSON", {
22
22
  input: FolkGetPersonInput,
23
23
  output: z.object({
24
24
  id: z.string().describe("The unique identifier of the person").nullable(),
25
- urls: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("A list of URLs associated with the person (websites, social profiles, etc.)").optional()),
26
- emails: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("A list of the person's email addresses").optional()),
27
- groups: z.preprocess((value) => value === null ? void 0 : value, z.array(FolkGetPerson_GroupItemSchema).describe("A list of groups the person belongs to").optional()),
28
- phones: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("A list of the person's phone numbers").optional()),
29
- birthday: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set").optional()),
30
- fullName: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The person's full name").optional()),
31
- jobTitle: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The person's job title").optional()),
32
- lastName: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The person's last name").optional()),
33
- addresses: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("A list of the person's street addresses").optional()),
34
- companies: z.preprocess((value) => value === null ? void 0 : value, z.array(FolkGetPerson_CompanyItemSchema).describe("A list of companies associated with the person").optional()),
35
- createdAt: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO8601 timestamp of when this person record was created").optional()),
36
- createdBy: z.preprocess((value) => value === null ? void 0 : value, FolkGetPerson_CreatedByUserSchema.optional()),
37
- firstName: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The person's first name").optional()),
38
- description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("A description of the person").optional()),
39
- customFieldValues: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Custom field values organized by group ID, containing key-value pairs specific to each group").optional()),
40
- interactionMetadata: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Metadata about interactions with this person, including counts and timestamps").optional()),
41
- strongestConnection: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Information about the strongest connection to this person").optional())
25
+ urls: z.array(z.string()).describe("A list of URLs associated with the person (websites, social profiles, etc.)").nullable().optional(),
26
+ emails: z.array(z.string()).describe("A list of the person's email addresses").nullable().optional(),
27
+ groups: z.array(FolkGetPerson_GroupItemSchema).describe("A list of groups the person belongs to").nullable().optional(),
28
+ phones: z.array(z.string()).describe("A list of the person's phone numbers").nullable().optional(),
29
+ birthday: z.string().describe("The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set").nullable().optional(),
30
+ fullName: z.string().describe("The person's full name").nullable().optional(),
31
+ jobTitle: z.string().describe("The person's job title").nullable().optional(),
32
+ lastName: z.string().describe("The person's last name").nullable().optional(),
33
+ addresses: z.array(z.string()).describe("A list of the person's street addresses").nullable().optional(),
34
+ companies: z.array(FolkGetPerson_CompanyItemSchema).describe("A list of companies associated with the person").nullable().optional(),
35
+ createdAt: z.string().describe("ISO8601 timestamp of when this person record was created").nullable().optional(),
36
+ createdBy: FolkGetPerson_CreatedByUserSchema.nullable().optional(),
37
+ firstName: z.string().describe("The person's first name").nullable().optional(),
38
+ description: z.string().describe("A description of the person").nullable().optional(),
39
+ customFieldValues: z.record(z.string(), z.unknown()).describe("Custom field values organized by group ID, containing key-value pairs specific to each group").nullable().optional(),
40
+ interactionMetadata: z.record(z.string(), z.unknown()).describe("Metadata about interactions with this person, including counts and timestamps").nullable().optional(),
41
+ strongestConnection: z.record(z.string(), z.unknown()).describe("Information about the strongest connection to this person").nullable().optional()
42
42
  }).describe("Response schema for retrieving a person by ID.")
43
43
  });
44
44
  //#endregion