@keystrokehq/folk 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-company.cjs +12 -12
- package/dist/actions/create-company.cjs.map +1 -1
- package/dist/actions/create-company.d.cts +14 -40
- package/dist/actions/create-company.d.cts.map +1 -1
- package/dist/actions/create-company.d.mts +14 -40
- package/dist/actions/create-company.d.mts.map +1 -1
- package/dist/actions/create-company.mjs +12 -12
- package/dist/actions/create-company.mjs.map +1 -1
- package/dist/actions/create-note.cjs +11 -11
- package/dist/actions/create-note.cjs.map +1 -1
- package/dist/actions/create-note.d.cts +12 -35
- package/dist/actions/create-note.d.mts +12 -35
- package/dist/actions/create-note.mjs +11 -11
- package/dist/actions/create-note.mjs.map +1 -1
- package/dist/actions/create-person.cjs +30 -30
- package/dist/actions/create-person.cjs.map +1 -1
- package/dist/actions/create-person.d.cts +35 -80
- package/dist/actions/create-person.d.cts.map +1 -1
- package/dist/actions/create-person.d.mts +35 -80
- package/dist/actions/create-person.d.mts.map +1 -1
- package/dist/actions/create-person.mjs +30 -30
- package/dist/actions/create-person.mjs.map +1 -1
- package/dist/actions/delete-company.cjs +3 -3
- package/dist/actions/delete-company.cjs.map +1 -1
- package/dist/actions/delete-company.d.cts +4 -9
- package/dist/actions/delete-company.d.mts +4 -9
- package/dist/actions/delete-company.mjs +3 -3
- package/dist/actions/delete-company.mjs.map +1 -1
- package/dist/actions/delete-note.cjs +3 -3
- package/dist/actions/delete-note.cjs.map +1 -1
- package/dist/actions/delete-note.d.cts +4 -9
- package/dist/actions/delete-note.d.mts +4 -9
- package/dist/actions/delete-note.mjs +3 -3
- package/dist/actions/delete-note.mjs.map +1 -1
- package/dist/actions/delete-person.cjs +3 -3
- package/dist/actions/delete-person.cjs.map +1 -1
- package/dist/actions/delete-person.d.cts +4 -9
- package/dist/actions/delete-person.d.mts +4 -9
- package/dist/actions/delete-person.mjs +3 -3
- package/dist/actions/delete-person.mjs.map +1 -1
- package/dist/actions/delete-reminder.cjs +3 -3
- package/dist/actions/delete-reminder.cjs.map +1 -1
- package/dist/actions/delete-reminder.d.cts +4 -9
- package/dist/actions/delete-reminder.d.mts +4 -9
- package/dist/actions/delete-reminder.mjs +3 -3
- package/dist/actions/delete-reminder.mjs.map +1 -1
- package/dist/actions/get-company.cjs +4 -4
- package/dist/actions/get-company.cjs.map +1 -1
- package/dist/actions/get-company.d.cts +5 -20
- package/dist/actions/get-company.d.cts.map +1 -1
- package/dist/actions/get-company.d.mts +5 -20
- package/dist/actions/get-company.d.mts.map +1 -1
- package/dist/actions/get-company.mjs +4 -4
- package/dist/actions/get-company.mjs.map +1 -1
- package/dist/actions/get-current-workspace-user.cjs +2 -2
- package/dist/actions/get-current-workspace-user.cjs.map +1 -1
- package/dist/actions/get-current-workspace-user.d.cts +3 -9
- package/dist/actions/get-current-workspace-user.d.cts.map +1 -1
- package/dist/actions/get-current-workspace-user.d.mts +3 -9
- package/dist/actions/get-current-workspace-user.d.mts.map +1 -1
- package/dist/actions/get-current-workspace-user.mjs +2 -2
- package/dist/actions/get-current-workspace-user.mjs.map +1 -1
- package/dist/actions/get-note.cjs +18 -18
- package/dist/actions/get-note.cjs.map +1 -1
- package/dist/actions/get-note.d.cts +22 -76
- package/dist/actions/get-note.d.cts.map +1 -1
- package/dist/actions/get-note.d.mts +22 -76
- package/dist/actions/get-note.d.mts.map +1 -1
- package/dist/actions/get-note.mjs +18 -18
- package/dist/actions/get-note.mjs.map +1 -1
- package/dist/actions/get-person.cjs +21 -21
- package/dist/actions/get-person.cjs.map +1 -1
- package/dist/actions/get-person.d.cts +22 -51
- package/dist/actions/get-person.d.mts +22 -51
- package/dist/actions/get-person.mjs +21 -21
- package/dist/actions/get-person.mjs.map +1 -1
- package/dist/actions/get-user.cjs +3 -3
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +4 -11
- package/dist/actions/get-user.d.mts +4 -11
- package/dist/actions/get-user.mjs +3 -3
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/list-companies.cjs +14 -14
- package/dist/actions/list-companies.cjs.map +1 -1
- package/dist/actions/list-companies.d.cts +17 -49
- package/dist/actions/list-companies.d.cts.map +1 -1
- package/dist/actions/list-companies.d.mts +17 -49
- package/dist/actions/list-companies.d.mts.map +1 -1
- package/dist/actions/list-companies.mjs +14 -14
- package/dist/actions/list-companies.mjs.map +1 -1
- package/dist/actions/list-group-custom-fields.cjs +10 -10
- package/dist/actions/list-group-custom-fields.cjs.map +1 -1
- package/dist/actions/list-group-custom-fields.d.cts +12 -31
- package/dist/actions/list-group-custom-fields.d.mts +12 -31
- package/dist/actions/list-group-custom-fields.mjs +10 -10
- package/dist/actions/list-group-custom-fields.mjs.map +1 -1
- package/dist/actions/list-groups.cjs +6 -6
- package/dist/actions/list-groups.cjs.map +1 -1
- package/dist/actions/list-groups.d.cts +8 -19
- package/dist/actions/list-groups.d.mts +8 -19
- package/dist/actions/list-groups.mjs +6 -6
- package/dist/actions/list-groups.mjs.map +1 -1
- package/dist/actions/list-notes.cjs +13 -13
- package/dist/actions/list-notes.cjs.map +1 -1
- package/dist/actions/list-notes.d.cts +15 -51
- package/dist/actions/list-notes.d.mts +15 -51
- package/dist/actions/list-notes.mjs +13 -13
- package/dist/actions/list-notes.mjs.map +1 -1
- package/dist/actions/list-people.cjs +22 -22
- package/dist/actions/list-people.cjs.map +1 -1
- package/dist/actions/list-people.d.cts +25 -65
- package/dist/actions/list-people.d.cts.map +1 -1
- package/dist/actions/list-people.d.mts +25 -65
- package/dist/actions/list-people.d.mts.map +1 -1
- package/dist/actions/list-people.mjs +22 -22
- package/dist/actions/list-people.mjs.map +1 -1
- package/dist/actions/list-reminders.cjs +11 -11
- package/dist/actions/list-reminders.cjs.map +1 -1
- package/dist/actions/list-reminders.d.cts +14 -45
- package/dist/actions/list-reminders.d.mts +14 -45
- package/dist/actions/list-reminders.mjs +11 -11
- package/dist/actions/list-reminders.mjs.map +1 -1
- package/dist/actions/list-users.cjs +5 -5
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +7 -19
- package/dist/actions/list-users.d.mts +7 -19
- package/dist/actions/list-users.mjs +5 -5
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +12 -12
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +14 -38
- package/dist/actions/list-webhooks.d.mts +14 -38
- package/dist/actions/list-webhooks.mjs +12 -12
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/update-company.cjs +6 -6
- package/dist/actions/update-company.cjs.map +1 -1
- package/dist/actions/update-company.d.cts +8 -23
- package/dist/actions/update-company.d.cts.map +1 -1
- package/dist/actions/update-company.d.mts +8 -23
- package/dist/actions/update-company.d.mts.map +1 -1
- package/dist/actions/update-company.mjs +6 -6
- package/dist/actions/update-company.mjs.map +1 -1
- package/dist/actions/update-note.cjs +14 -14
- package/dist/actions/update-note.cjs.map +1 -1
- package/dist/actions/update-note.d.cts +15 -36
- package/dist/actions/update-note.d.mts +15 -36
- package/dist/actions/update-note.mjs +14 -14
- package/dist/actions/update-note.mjs.map +1 -1
- package/dist/actions/update-person.cjs +25 -25
- package/dist/actions/update-person.cjs.map +1 -1
- package/dist/actions/update-person.d.cts +28 -58
- package/dist/actions/update-person.d.cts.map +1 -1
- package/dist/actions/update-person.d.mts +28 -58
- package/dist/actions/update-person.d.mts.map +1 -1
- package/dist/actions/update-person.mjs +25 -25
- package/dist/actions/update-person.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ declare const FolkUpdatePersonInput: z.ZodObject<{
|
|
|
6
6
|
emails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
7
|
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
8
|
id: z.ZodString;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>>;
|
|
10
10
|
phones: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
11
|
birthday: z.ZodOptional<z.ZodString>;
|
|
12
12
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -17,7 +17,7 @@ declare const FolkUpdatePersonInput: z.ZodObject<{
|
|
|
17
17
|
companies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
18
|
id: z.ZodOptional<z.ZodString>;
|
|
19
19
|
name: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>>;
|
|
21
21
|
firstName: z.ZodOptional<z.ZodString>;
|
|
22
22
|
description: z.ZodOptional<z.ZodString>;
|
|
23
23
|
customFieldValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -25,41 +25,42 @@ declare const FolkUpdatePersonInput: z.ZodObject<{
|
|
|
25
25
|
declare const FolkUpdatePersonOutput: z.ZodObject<{
|
|
26
26
|
data: z.ZodNullable<z.ZodObject<{
|
|
27
27
|
id: z.ZodNullable<z.ZodString>;
|
|
28
|
-
urls: z.
|
|
29
|
-
emails: z.
|
|
30
|
-
groups: z.
|
|
28
|
+
urls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
29
|
+
emails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
30
|
+
groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
31
31
|
id: z.ZodNullable<z.ZodString>;
|
|
32
32
|
name: z.ZodNullable<z.ZodString>;
|
|
33
|
-
}, z.core.$
|
|
34
|
-
phones: z.
|
|
35
|
-
birthday: z.
|
|
36
|
-
fullName: z.
|
|
37
|
-
jobTitle: z.
|
|
38
|
-
lastName: z.
|
|
39
|
-
addresses: z.
|
|
40
|
-
companies: z.
|
|
33
|
+
}, z.core.$loose>>>>;
|
|
34
|
+
phones: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
35
|
+
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
jobTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
addresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
40
|
+
companies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
41
41
|
id: z.ZodNullable<z.ZodString>;
|
|
42
42
|
name: z.ZodNullable<z.ZodString>;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
createdAt: z.
|
|
45
|
-
createdBy: z.
|
|
43
|
+
}, z.core.$loose>>>>;
|
|
44
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
46
|
id: z.ZodNullable<z.ZodString>;
|
|
47
47
|
email: z.ZodNullable<z.ZodString>;
|
|
48
48
|
fullName: z.ZodNullable<z.ZodString>;
|
|
49
|
-
}, z.core.$
|
|
50
|
-
firstName: z.
|
|
51
|
-
description: z.
|
|
52
|
-
customFieldValues: z.
|
|
53
|
-
interactionMetadata: z.
|
|
54
|
-
strongestConnection: z.
|
|
55
|
-
}, z.core.$
|
|
56
|
-
deprecations: z.
|
|
57
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>>;
|
|
50
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
customFieldValues: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
53
|
+
interactionMetadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
54
|
+
strongestConnection: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
55
|
+
}, z.core.$loose>>;
|
|
56
|
+
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
57
|
+
}, z.core.$loose>;
|
|
58
58
|
declare const folkUpdatePerson: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
59
59
|
personId: string;
|
|
60
60
|
urls?: string[] | undefined;
|
|
61
61
|
emails?: string[] | undefined;
|
|
62
62
|
groups?: {
|
|
63
|
+
[x: string]: unknown;
|
|
63
64
|
id: string;
|
|
64
65
|
}[] | undefined;
|
|
65
66
|
phones?: string[] | undefined;
|
|
@@ -69,45 +70,14 @@ declare const folkUpdatePerson: import("@keystrokehq/action").WorkflowActionDefi
|
|
|
69
70
|
lastName?: string | undefined;
|
|
70
71
|
addresses?: string[] | undefined;
|
|
71
72
|
companies?: {
|
|
73
|
+
[x: string]: unknown;
|
|
72
74
|
id?: string | undefined;
|
|
73
75
|
name?: string | undefined;
|
|
74
76
|
}[] | undefined;
|
|
75
77
|
firstName?: string | undefined;
|
|
76
78
|
description?: string | undefined;
|
|
77
79
|
customFieldValues?: Record<string, unknown> | undefined;
|
|
78
|
-
},
|
|
79
|
-
data: {
|
|
80
|
-
id: string | null;
|
|
81
|
-
urls?: string[] | undefined;
|
|
82
|
-
emails?: string[] | undefined;
|
|
83
|
-
groups?: {
|
|
84
|
-
id: string | null;
|
|
85
|
-
name: string | null;
|
|
86
|
-
}[] | undefined;
|
|
87
|
-
phones?: string[] | undefined;
|
|
88
|
-
birthday?: string | undefined;
|
|
89
|
-
fullName?: string | undefined;
|
|
90
|
-
jobTitle?: string | undefined;
|
|
91
|
-
lastName?: string | undefined;
|
|
92
|
-
addresses?: string[] | undefined;
|
|
93
|
-
companies?: {
|
|
94
|
-
id: string | null;
|
|
95
|
-
name: string | null;
|
|
96
|
-
}[] | undefined;
|
|
97
|
-
createdAt?: string | undefined;
|
|
98
|
-
createdBy?: {
|
|
99
|
-
id: string | null;
|
|
100
|
-
email: string | null;
|
|
101
|
-
fullName: string | null;
|
|
102
|
-
} | undefined;
|
|
103
|
-
firstName?: string | undefined;
|
|
104
|
-
description?: string | undefined;
|
|
105
|
-
customFieldValues?: Record<string, unknown> | undefined;
|
|
106
|
-
interactionMetadata?: Record<string, unknown> | undefined;
|
|
107
|
-
strongestConnection?: Record<string, unknown> | undefined;
|
|
108
|
-
} | null;
|
|
109
|
-
deprecations?: string[] | undefined;
|
|
110
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
80
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
111
81
|
//#endregion
|
|
112
82
|
export { folkUpdatePerson };
|
|
113
83
|
//# sourceMappingURL=update-person.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-person.d.cts","names":[],"sources":["../../src/actions/update-person.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAsDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
|
|
1
|
+
{"version":3,"file":"update-person.d.cts","names":[],"sources":["../../src/actions/update-person.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAsDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA;;;;;;;;;;;;;;;;;;;;;sBAM3B,MAAA;AAAA"}
|
|
@@ -6,7 +6,7 @@ declare const FolkUpdatePersonInput: z.ZodObject<{
|
|
|
6
6
|
emails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
7
|
groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
8
|
id: z.ZodString;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>>;
|
|
10
10
|
phones: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
11
|
birthday: z.ZodOptional<z.ZodString>;
|
|
12
12
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -17,7 +17,7 @@ declare const FolkUpdatePersonInput: z.ZodObject<{
|
|
|
17
17
|
companies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
18
|
id: z.ZodOptional<z.ZodString>;
|
|
19
19
|
name: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>>;
|
|
21
21
|
firstName: z.ZodOptional<z.ZodString>;
|
|
22
22
|
description: z.ZodOptional<z.ZodString>;
|
|
23
23
|
customFieldValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -25,41 +25,42 @@ declare const FolkUpdatePersonInput: z.ZodObject<{
|
|
|
25
25
|
declare const FolkUpdatePersonOutput: z.ZodObject<{
|
|
26
26
|
data: z.ZodNullable<z.ZodObject<{
|
|
27
27
|
id: z.ZodNullable<z.ZodString>;
|
|
28
|
-
urls: z.
|
|
29
|
-
emails: z.
|
|
30
|
-
groups: z.
|
|
28
|
+
urls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
29
|
+
emails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
30
|
+
groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
31
31
|
id: z.ZodNullable<z.ZodString>;
|
|
32
32
|
name: z.ZodNullable<z.ZodString>;
|
|
33
|
-
}, z.core.$
|
|
34
|
-
phones: z.
|
|
35
|
-
birthday: z.
|
|
36
|
-
fullName: z.
|
|
37
|
-
jobTitle: z.
|
|
38
|
-
lastName: z.
|
|
39
|
-
addresses: z.
|
|
40
|
-
companies: z.
|
|
33
|
+
}, z.core.$loose>>>>;
|
|
34
|
+
phones: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
35
|
+
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
jobTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
addresses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
40
|
+
companies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
41
41
|
id: z.ZodNullable<z.ZodString>;
|
|
42
42
|
name: z.ZodNullable<z.ZodString>;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
createdAt: z.
|
|
45
|
-
createdBy: z.
|
|
43
|
+
}, z.core.$loose>>>>;
|
|
44
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
46
|
id: z.ZodNullable<z.ZodString>;
|
|
47
47
|
email: z.ZodNullable<z.ZodString>;
|
|
48
48
|
fullName: z.ZodNullable<z.ZodString>;
|
|
49
|
-
}, z.core.$
|
|
50
|
-
firstName: z.
|
|
51
|
-
description: z.
|
|
52
|
-
customFieldValues: z.
|
|
53
|
-
interactionMetadata: z.
|
|
54
|
-
strongestConnection: z.
|
|
55
|
-
}, z.core.$
|
|
56
|
-
deprecations: z.
|
|
57
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>>;
|
|
50
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
customFieldValues: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
53
|
+
interactionMetadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
54
|
+
strongestConnection: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
55
|
+
}, z.core.$loose>>;
|
|
56
|
+
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
57
|
+
}, z.core.$loose>;
|
|
58
58
|
declare const folkUpdatePerson: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
59
59
|
personId: string;
|
|
60
60
|
urls?: string[] | undefined;
|
|
61
61
|
emails?: string[] | undefined;
|
|
62
62
|
groups?: {
|
|
63
|
+
[x: string]: unknown;
|
|
63
64
|
id: string;
|
|
64
65
|
}[] | undefined;
|
|
65
66
|
phones?: string[] | undefined;
|
|
@@ -69,45 +70,14 @@ declare const folkUpdatePerson: import("@keystrokehq/action").WorkflowActionDefi
|
|
|
69
70
|
lastName?: string | undefined;
|
|
70
71
|
addresses?: string[] | undefined;
|
|
71
72
|
companies?: {
|
|
73
|
+
[x: string]: unknown;
|
|
72
74
|
id?: string | undefined;
|
|
73
75
|
name?: string | undefined;
|
|
74
76
|
}[] | undefined;
|
|
75
77
|
firstName?: string | undefined;
|
|
76
78
|
description?: string | undefined;
|
|
77
79
|
customFieldValues?: Record<string, unknown> | undefined;
|
|
78
|
-
},
|
|
79
|
-
data: {
|
|
80
|
-
id: string | null;
|
|
81
|
-
urls?: string[] | undefined;
|
|
82
|
-
emails?: string[] | undefined;
|
|
83
|
-
groups?: {
|
|
84
|
-
id: string | null;
|
|
85
|
-
name: string | null;
|
|
86
|
-
}[] | undefined;
|
|
87
|
-
phones?: string[] | undefined;
|
|
88
|
-
birthday?: string | undefined;
|
|
89
|
-
fullName?: string | undefined;
|
|
90
|
-
jobTitle?: string | undefined;
|
|
91
|
-
lastName?: string | undefined;
|
|
92
|
-
addresses?: string[] | undefined;
|
|
93
|
-
companies?: {
|
|
94
|
-
id: string | null;
|
|
95
|
-
name: string | null;
|
|
96
|
-
}[] | undefined;
|
|
97
|
-
createdAt?: string | undefined;
|
|
98
|
-
createdBy?: {
|
|
99
|
-
id: string | null;
|
|
100
|
-
email: string | null;
|
|
101
|
-
fullName: string | null;
|
|
102
|
-
} | undefined;
|
|
103
|
-
firstName?: string | undefined;
|
|
104
|
-
description?: string | undefined;
|
|
105
|
-
customFieldValues?: Record<string, unknown> | undefined;
|
|
106
|
-
interactionMetadata?: Record<string, unknown> | undefined;
|
|
107
|
-
strongestConnection?: Record<string, unknown> | undefined;
|
|
108
|
-
} | null;
|
|
109
|
-
deprecations?: string[] | undefined;
|
|
110
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
80
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
111
81
|
//#endregion
|
|
112
82
|
export { folkUpdatePerson };
|
|
113
83
|
//# sourceMappingURL=update-person.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-person.d.mts","names":[],"sources":["../../src/actions/update-person.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAsDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
|
|
1
|
+
{"version":3,"file":"update-person.d.mts","names":[],"sources":["../../src/actions/update-person.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAsDrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA;;;;;;;;;;;;;;;;;;;;;sBAM3B,MAAA;AAAA"}
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
const FolkUpdatePersonInput = z.object({
|
|
5
5
|
urls: z.array(z.string()).describe("List of URLs associated with the person; replaces existing URLs.").optional(),
|
|
6
6
|
emails: z.array(z.string()).describe("List of email addresses associated with the person; replaces existing emails.").optional(),
|
|
7
|
-
groups: z.array(z.object({ id: z.string().describe("ID of the group to add the person to.") }).describe("Reference to a group by its ID.")).describe("Groups to associate with the person; list values replace existing groups. When removing a person from a group, their custom field values for that group are also removed.").optional(),
|
|
7
|
+
groups: z.array(z.object({ id: z.string().describe("ID of the group to add the person to.") }).passthrough().describe("Reference to a group by its ID.")).describe("Groups to associate with the person; list values replace existing groups. When removing a person from a group, their custom field values for that group are also removed.").optional(),
|
|
8
8
|
phones: z.array(z.string()).describe("List of phone numbers associated with the person; replaces existing phones.").optional(),
|
|
9
9
|
birthday: z.string().describe("The person's birthday in ISO 8601 date format (YYYY-MM-DD). Set to null to remove.").optional(),
|
|
10
10
|
fullName: z.string().describe("The full name of the person.").optional(),
|
|
@@ -15,7 +15,7 @@ const FolkUpdatePersonInput = z.object({
|
|
|
15
15
|
companies: z.array(z.object({
|
|
16
16
|
id: z.string().describe("ID of an existing company. Use this to reference an existing company.").optional(),
|
|
17
17
|
name: z.string().describe("Name of the company. Use this to create a new company or reference by name.").optional()
|
|
18
|
-
}).describe("Reference to a company by name or ID.")).describe("Companies to associate with the person; list values replace existing companies.").optional(),
|
|
18
|
+
}).passthrough().describe("Reference to a company by name or ID.")).describe("Companies to associate with the person; list values replace existing companies.").optional(),
|
|
19
19
|
firstName: z.string().describe("The first name of the person.").optional(),
|
|
20
20
|
description: z.string().describe("A short description of the person.").optional(),
|
|
21
21
|
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()
|
|
@@ -23,36 +23,36 @@ const FolkUpdatePersonInput = z.object({
|
|
|
23
23
|
const FolkUpdatePerson_UpdatePersonGroupSchema = z.object({
|
|
24
24
|
id: z.string().describe("Group ID.").nullable(),
|
|
25
25
|
name: z.string().describe("Group name.").nullable()
|
|
26
|
-
}).describe("A group associated with the person in the response.");
|
|
26
|
+
}).passthrough().describe("A group associated with the person in the response.");
|
|
27
27
|
const FolkUpdatePerson_UpdatePersonCompanySchema = z.object({
|
|
28
28
|
id: z.string().describe("Company ID.").nullable(),
|
|
29
29
|
name: z.string().describe("Company name.").nullable()
|
|
30
|
-
}).describe("A company associated with the person in the response.");
|
|
30
|
+
}).passthrough().describe("A company associated with the person in the response.");
|
|
31
31
|
const FolkUpdatePerson_UpdatePersonCreatedBySchema = z.object({
|
|
32
32
|
id: z.string().describe("The user's unique identifier").nullable(),
|
|
33
33
|
email: z.string().describe("The user's email address").nullable(),
|
|
34
34
|
fullName: z.string().describe("The user's full name").nullable()
|
|
35
|
-
}).describe("User information for the person who created this record.");
|
|
35
|
+
}).passthrough().describe("User information for the person who created this record.");
|
|
36
36
|
const FolkUpdatePerson_UpdatePersonResponseDataSchema = z.object({
|
|
37
37
|
id: z.string().describe("Unique ID of the person.").nullable(),
|
|
38
|
-
urls: z.
|
|
39
|
-
emails: z.
|
|
40
|
-
groups: z.
|
|
41
|
-
phones: z.
|
|
42
|
-
birthday: z.
|
|
43
|
-
fullName: z.
|
|
44
|
-
jobTitle: z.
|
|
45
|
-
lastName: z.
|
|
46
|
-
addresses: z.
|
|
47
|
-
companies: z.
|
|
48
|
-
createdAt: z.
|
|
49
|
-
createdBy:
|
|
50
|
-
firstName: z.
|
|
51
|
-
description: z.
|
|
52
|
-
customFieldValues: z.
|
|
53
|
-
interactionMetadata: z.
|
|
54
|
-
strongestConnection: z.
|
|
55
|
-
}).describe("Data returned after updating a person.");
|
|
38
|
+
urls: z.array(z.string()).describe("URLs associated with the person.").nullable().optional(),
|
|
39
|
+
emails: z.array(z.string()).describe("Email addresses associated with the person.").nullable().optional(),
|
|
40
|
+
groups: z.array(FolkUpdatePerson_UpdatePersonGroupSchema).describe("Groups associated with the person.").nullable().optional(),
|
|
41
|
+
phones: z.array(z.string()).describe("Phone numbers associated with the person.").nullable().optional(),
|
|
42
|
+
birthday: z.string().describe("The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set.").nullable().optional(),
|
|
43
|
+
fullName: z.string().describe("The person's full name.").nullable().optional(),
|
|
44
|
+
jobTitle: z.string().describe("The person's job title.").nullable().optional(),
|
|
45
|
+
lastName: z.string().describe("The person's last name.").nullable().optional(),
|
|
46
|
+
addresses: z.array(z.string()).describe("Addresses associated with the person.").nullable().optional(),
|
|
47
|
+
companies: z.array(FolkUpdatePerson_UpdatePersonCompanySchema).describe("Companies associated with the person.").nullable().optional(),
|
|
48
|
+
createdAt: z.string().describe("ISO8601 timestamp of when this person record was created.").nullable().optional(),
|
|
49
|
+
createdBy: FolkUpdatePerson_UpdatePersonCreatedBySchema.nullable().optional(),
|
|
50
|
+
firstName: z.string().describe("The person's first name.").nullable().optional(),
|
|
51
|
+
description: z.string().describe("Description of the person.").nullable().optional(),
|
|
52
|
+
customFieldValues: z.record(z.string(), z.unknown()).describe("Custom field values keyed by group ID.").nullable().optional(),
|
|
53
|
+
interactionMetadata: z.record(z.string(), z.unknown()).describe("Metadata about interactions with this person, including counts and timestamps.").nullable().optional(),
|
|
54
|
+
strongestConnection: z.record(z.string(), z.unknown()).describe("Information about the strongest connection to this person.").nullable().optional()
|
|
55
|
+
}).passthrough().describe("Data returned after updating a person.");
|
|
56
56
|
const folkUpdatePerson = action("FOLK_UPDATE_PERSON", {
|
|
57
57
|
slug: "folk-update-person",
|
|
58
58
|
name: "Update Person",
|
|
@@ -60,8 +60,8 @@ const folkUpdatePerson = action("FOLK_UPDATE_PERSON", {
|
|
|
60
60
|
input: FolkUpdatePersonInput,
|
|
61
61
|
output: z.object({
|
|
62
62
|
data: FolkUpdatePerson_UpdatePersonResponseDataSchema.nullable(),
|
|
63
|
-
deprecations: z.
|
|
64
|
-
}).describe("Full response schema for updating a person.")
|
|
63
|
+
deprecations: z.array(z.string()).describe("Any deprecation notices returned by the API.").nullable().optional()
|
|
64
|
+
}).passthrough().describe("Full response schema for updating a person.")
|
|
65
65
|
});
|
|
66
66
|
//#endregion
|
|
67
67
|
export { folkUpdatePerson };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-person.mjs","names":[],"sources":["../../src/actions/update-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdatePersonInput = z.object({\n urls: z.array(z.string()).describe(\"List of URLs associated with the person; replaces existing URLs.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the person; replaces existing emails.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).describe(\"Reference to a group by its ID.\")).describe(\"Groups to associate with the person; list values replace existing groups. When removing a person from a group, their custom field values for that group are also removed.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the person; replaces existing phones.\").optional(),\n birthday: z.string().describe(\"The person's birthday in ISO 8601 date format (YYYY-MM-DD). Set to null to remove.\").optional(),\n fullName: z.string().describe(\"The full name of the person.\").optional(),\n jobTitle: z.string().describe(\"The job title of the person.\").optional(),\n lastName: z.string().describe(\"The last name of the person.\").optional(),\n personId: z.string().describe(\"The ID of the person to update. Must be exactly 40 characters long.\"),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the person; replaces existing addresses.\").optional(),\n companies: z.array(z.object({\n id: z.string().describe(\"ID of an existing company. Use this to reference an existing company.\").optional(),\n name: z.string().describe(\"Name of the company. Use this to create a new company or reference by name.\").optional(),\n}).describe(\"Reference to a company by name or ID.\")).describe(\"Companies to associate with the person; list values replace existing companies.\").optional(),\n firstName: z.string().describe(\"The first name of the person.\").optional(),\n description: z.string().describe(\"A short description of the person.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for updating an existing person. Only provided fields will be updated; list fields replace existing values entirely.\");\nconst FolkUpdatePerson_UpdatePersonGroupSchema = z.object({\n id: z.string().describe(\"Group ID.\").nullable(),\n name: z.string().describe(\"Group name.\").nullable(),\n}).describe(\"A group associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCompanySchema = z.object({\n id: z.string().describe(\"Company ID.\").nullable(),\n name: z.string().describe(\"Company name.\").nullable(),\n}).describe(\"A company associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCreatedBySchema = z.object({\n id: z.string().describe(\"The user's unique identifier\").nullable(),\n email: z.string().describe(\"The user's email address\").nullable(),\n fullName: z.string().describe(\"The user's full name\").nullable(),\n}).describe(\"User information for the person who created this record.\");\nconst FolkUpdatePerson_UpdatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the person.\").nullable(),\n urls: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"URLs associated with the person.\").optional()),\n emails: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Email addresses associated with the person.\").optional()),\n groups: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkUpdatePerson_UpdatePersonGroupSchema).describe(\"Groups associated with the person.\").optional()),\n phones: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Phone numbers associated with the person.\").optional()),\n birthday: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set.\").optional()),\n fullName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's full name.\").optional()),\n jobTitle: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's job title.\").optional()),\n lastName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's last name.\").optional()),\n addresses: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Addresses associated with the person.\").optional()),\n companies: z.preprocess((value) => (value === null ? undefined : value), z.array(FolkUpdatePerson_UpdatePersonCompanySchema).describe(\"Companies associated with the person.\").optional()),\n createdAt: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO8601 timestamp of when this person record was created.\").optional()),\n createdBy: z.preprocess((value) => (value === null ? undefined : value), FolkUpdatePerson_UpdatePersonCreatedBySchema.optional()),\n firstName: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The person's first name.\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Description of the person.\").optional()),\n customFieldValues: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Custom field values keyed by group ID.\").optional()),\n interactionMetadata: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Metadata about interactions with this person, including counts and timestamps.\").optional()),\n strongestConnection: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Information about the strongest connection to this person.\").optional()),\n}).describe(\"Data returned after updating a person.\");\nexport const FolkUpdatePersonOutput = z.object({\n data: FolkUpdatePerson_UpdatePersonResponseDataSchema.nullable(),\n deprecations: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").optional()),\n}).describe(\"Full response schema for updating a person.\");\n\nexport const folkUpdatePerson = action(\"FOLK_UPDATE_PERSON\", {\n slug: \"folk-update-person\",\n name: \"Update Person\",\n description: \"Tool to update an existing person in the workspace. Use after confirming the person ID; only provided fields are updated and list fields replace existing values.\",\n input: FolkUpdatePersonInput,\n output: FolkUpdatePersonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAChH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC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AC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC;CACvI,mBAAmB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;CAChL,qBAAqB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC;CAC1N,qBAAqB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC;AACxM,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAMpD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoC,EAAE,OAAO;EAC7C,MAAM,gDAAgD,SAAS;EAC/D,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,6CAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-person.mjs","names":[],"sources":["../../src/actions/update-person.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkUpdatePersonInput = z.object({\n urls: z.array(z.string()).describe(\"List of URLs associated with the person; replaces existing URLs.\").optional(),\n emails: z.array(z.string()).describe(\"List of email addresses associated with the person; replaces existing emails.\").optional(),\n groups: z.array(z.object({\n id: z.string().describe(\"ID of the group to add the person to.\"),\n}).passthrough().describe(\"Reference to a group by its ID.\")).describe(\"Groups to associate with the person; list values replace existing groups. When removing a person from a group, their custom field values for that group are also removed.\").optional(),\n phones: z.array(z.string()).describe(\"List of phone numbers associated with the person; replaces existing phones.\").optional(),\n birthday: z.string().describe(\"The person's birthday in ISO 8601 date format (YYYY-MM-DD). Set to null to remove.\").optional(),\n fullName: z.string().describe(\"The full name of the person.\").optional(),\n jobTitle: z.string().describe(\"The job title of the person.\").optional(),\n lastName: z.string().describe(\"The last name of the person.\").optional(),\n personId: z.string().describe(\"The ID of the person to update. Must be exactly 40 characters long.\"),\n addresses: z.array(z.string()).describe(\"List of addresses associated with the person; replaces existing addresses.\").optional(),\n companies: z.array(z.object({\n id: z.string().describe(\"ID of an existing company. Use this to reference an existing company.\").optional(),\n name: z.string().describe(\"Name of the company. Use this to create a new company or reference by name.\").optional(),\n}).passthrough().describe(\"Reference to a company by name or ID.\")).describe(\"Companies to associate with the person; list values replace existing companies.\").optional(),\n firstName: z.string().describe(\"The first name of the person.\").optional(),\n description: z.string().describe(\"A short description of the person.\").optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values grouped by group ID. Values depend on field type: text, number, date, select, contact, user, etc.\").optional(),\n}).describe(\"Request schema for updating an existing person. Only provided fields will be updated; list fields replace existing values entirely.\");\nconst FolkUpdatePerson_UpdatePersonGroupSchema = z.object({\n id: z.string().describe(\"Group ID.\").nullable(),\n name: z.string().describe(\"Group name.\").nullable(),\n}).passthrough().describe(\"A group associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCompanySchema = z.object({\n id: z.string().describe(\"Company ID.\").nullable(),\n name: z.string().describe(\"Company name.\").nullable(),\n}).passthrough().describe(\"A company associated with the person in the response.\");\nconst FolkUpdatePerson_UpdatePersonCreatedBySchema = z.object({\n id: z.string().describe(\"The user's unique identifier\").nullable(),\n email: z.string().describe(\"The user's email address\").nullable(),\n fullName: z.string().describe(\"The user's full name\").nullable(),\n}).passthrough().describe(\"User information for the person who created this record.\");\nconst FolkUpdatePerson_UpdatePersonResponseDataSchema = z.object({\n id: z.string().describe(\"Unique ID of the person.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the person.\").nullable().optional(),\n emails: z.array(z.string()).describe(\"Email addresses associated with the person.\").nullable().optional(),\n groups: z.array(FolkUpdatePerson_UpdatePersonGroupSchema).describe(\"Groups associated with the person.\").nullable().optional(),\n phones: z.array(z.string()).describe(\"Phone numbers associated with the person.\").nullable().optional(),\n birthday: z.string().describe(\"The person's birthday as an ISO8601 date string (YYYY-MM-DD), or null if not set.\").nullable().optional(),\n fullName: z.string().describe(\"The person's full name.\").nullable().optional(),\n jobTitle: z.string().describe(\"The person's job title.\").nullable().optional(),\n lastName: z.string().describe(\"The person's last name.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Addresses associated with the person.\").nullable().optional(),\n companies: z.array(FolkUpdatePerson_UpdatePersonCompanySchema).describe(\"Companies associated with the person.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp of when this person record was created.\").nullable().optional(),\n createdBy: FolkUpdatePerson_UpdatePersonCreatedBySchema.nullable().optional(),\n firstName: z.string().describe(\"The person's first name.\").nullable().optional(),\n description: z.string().describe(\"Description of the person.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values keyed by group ID.\").nullable().optional(),\n interactionMetadata: z.record(z.string(), z.unknown()).describe(\"Metadata about interactions with this person, including counts and timestamps.\").nullable().optional(),\n strongestConnection: z.record(z.string(), z.unknown()).describe(\"Information about the strongest connection to this person.\").nullable().optional(),\n}).passthrough().describe(\"Data returned after updating a person.\");\nexport const FolkUpdatePersonOutput = z.object({\n data: FolkUpdatePerson_UpdatePersonResponseDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Any deprecation notices returned by the API.\").nullable().optional(),\n}).passthrough().describe(\"Full response schema for updating a person.\");\n\nexport const folkUpdatePerson = action(\"FOLK_UPDATE_PERSON\", {\n slug: \"folk-update-person\",\n name: \"Update Person\",\n description: \"Tool to update an existing person in the workspace. Use after confirming the person ID;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