@keystrokehq/fullenrich 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-contact-data-list.cjs.map +1 -1
  4. package/dist/actions/create-contact-data-list.d.cts +27 -3
  5. package/dist/actions/create-contact-data-list.d.cts.map +1 -1
  6. package/dist/actions/create-contact-data-list.d.mts +27 -3
  7. package/dist/actions/create-contact-data-list.d.mts.map +1 -1
  8. package/dist/actions/create-contact-data-list.mjs.map +1 -1
  9. package/dist/actions/get-current-credit-balance.cjs +1 -1
  10. package/dist/actions/get-current-credit-balance.cjs.map +1 -1
  11. package/dist/actions/get-current-credit-balance.d.cts +7 -3
  12. package/dist/actions/get-current-credit-balance.d.cts.map +1 -1
  13. package/dist/actions/get-current-credit-balance.d.mts +7 -3
  14. package/dist/actions/get-current-credit-balance.d.mts.map +1 -1
  15. package/dist/actions/get-current-credit-balance.mjs +1 -1
  16. package/dist/actions/get-current-credit-balance.mjs.map +1 -1
  17. package/dist/actions/get-enrichment-result.cjs +62 -62
  18. package/dist/actions/get-enrichment-result.cjs.map +1 -1
  19. package/dist/actions/get-enrichment-result.d.cts +181 -3
  20. package/dist/actions/get-enrichment-result.d.cts.map +1 -1
  21. package/dist/actions/get-enrichment-result.d.mts +181 -3
  22. package/dist/actions/get-enrichment-result.d.mts.map +1 -1
  23. package/dist/actions/get-enrichment-result.mjs +62 -62
  24. package/dist/actions/get-enrichment-result.mjs.map +1 -1
  25. package/dist/actions/get-reverse-email-result.cjs +47 -47
  26. package/dist/actions/get-reverse-email-result.cjs.map +1 -1
  27. package/dist/actions/get-reverse-email-result.d.cts +143 -3
  28. package/dist/actions/get-reverse-email-result.d.cts.map +1 -1
  29. package/dist/actions/get-reverse-email-result.d.mts +143 -3
  30. package/dist/actions/get-reverse-email-result.d.mts.map +1 -1
  31. package/dist/actions/get-reverse-email-result.mjs +47 -47
  32. package/dist/actions/get-reverse-email-result.mjs.map +1 -1
  33. package/dist/actions/reverse-email-lookup.cjs +1 -1
  34. package/dist/actions/reverse-email-lookup.cjs.map +1 -1
  35. package/dist/actions/reverse-email-lookup.d.cts +19 -3
  36. package/dist/actions/reverse-email-lookup.d.cts.map +1 -1
  37. package/dist/actions/reverse-email-lookup.d.mts +19 -3
  38. package/dist/actions/reverse-email-lookup.d.mts.map +1 -1
  39. package/dist/actions/reverse-email-lookup.mjs +1 -1
  40. package/dist/actions/reverse-email-lookup.mjs.map +1 -1
  41. package/dist/actions/search-company.cjs +16 -16
  42. package/dist/actions/search-company.cjs.map +1 -1
  43. package/dist/actions/search-company.d.cts +69 -3
  44. package/dist/actions/search-company.d.cts.map +1 -1
  45. package/dist/actions/search-company.d.mts +69 -3
  46. package/dist/actions/search-company.d.mts.map +1 -1
  47. package/dist/actions/search-company.mjs +16 -16
  48. package/dist/actions/search-company.mjs.map +1 -1
  49. package/dist/actions/search-people.cjs +50 -50
  50. package/dist/actions/search-people.cjs.map +1 -1
  51. package/dist/actions/search-people.d.cts +277 -3
  52. package/dist/actions/search-people.d.cts.map +1 -1
  53. package/dist/actions/search-people.d.mts +277 -3
  54. package/dist/actions/search-people.d.mts.map +1 -1
  55. package/dist/actions/search-people.mjs +50 -50
  56. package/dist/actions/search-people.mjs.map +1 -1
  57. package/dist/actions/start-bulk-enrichment.cjs +1 -1
  58. package/dist/actions/start-bulk-enrichment.cjs.map +1 -1
  59. package/dist/actions/start-bulk-enrichment.d.cts +35 -3
  60. package/dist/actions/start-bulk-enrichment.d.cts.map +1 -1
  61. package/dist/actions/start-bulk-enrichment.d.mts +35 -3
  62. package/dist/actions/start-bulk-enrichment.d.mts.map +1 -1
  63. package/dist/actions/start-bulk-enrichment.mjs +1 -1
  64. package/dist/actions/start-bulk-enrichment.mjs.map +1 -1
  65. package/dist/actions/verify-api-key.cjs +1 -1
  66. package/dist/actions/verify-api-key.cjs.map +1 -1
  67. package/dist/actions/verify-api-key.d.cts +7 -3
  68. package/dist/actions/verify-api-key.d.cts.map +1 -1
  69. package/dist/actions/verify-api-key.d.mts +7 -3
  70. package/dist/actions/verify-api-key.d.mts.map +1 -1
  71. package/dist/actions/verify-api-key.mjs +1 -1
  72. package/dist/actions/verify-api-key.mjs.map +1 -1
  73. package/dist/catalog.cjs +7 -1
  74. package/dist/catalog.cjs.map +1 -1
  75. package/dist/catalog.d.cts +8 -0
  76. package/dist/catalog.d.mts +8 -0
  77. package/dist/catalog.mjs +7 -1
  78. package/dist/catalog.mjs.map +1 -1
  79. package/package.json +2 -2
@@ -1,9 +1,187 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-enrichment-result.d.ts
4
- declare const FullenrichGetEnrichmentResultInput: z.ZodTypeAny;
5
- declare const FullenrichGetEnrichmentResultOutput: z.ZodTypeAny;
6
- declare const fullenrichGetEnrichmentResult: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FullenrichGetEnrichmentResultInput: z.ZodObject<{
5
+ forceResults: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6
+ enrichment_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const FullenrichGetEnrichmentResultOutput: z.ZodObject<{
9
+ id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ cost: z.ZodNullable<z.ZodObject<{
11
+ credits: z.ZodNullable<z.ZodNumber>;
12
+ }, z.core.$strip>>;
13
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ datas: z.ZodArray<z.ZodObject<{
15
+ custom: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>>;
16
+ contact: z.ZodNullable<z.ZodObject<{
17
+ domain: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ emails: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
19
+ email: z.ZodNullable<z.ZodString>;
20
+ status: z.ZodNullable<z.ZodString>;
21
+ }, z.core.$strip>>>>;
22
+ phones: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ number: z.ZodNullable<z.ZodString>;
24
+ region: z.ZodNullable<z.ZodString>;
25
+ }, z.core.$strip>>>>;
26
+ profile: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
27
+ summary: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
28
+ headline: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
29
+ lastname: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
30
+ location: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
31
+ position: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
32
+ title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
33
+ end_at: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
34
+ year: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
35
+ month: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
36
+ }, z.core.$strip>>>;
37
+ company: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
38
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
39
+ domain: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
40
+ website: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
41
+ industry: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
42
+ headcount: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
43
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
44
+ linkedin_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
45
+ headquarters: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
46
+ city: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
47
+ region: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
48
+ country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
49
+ postal_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
50
+ country_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
51
+ address_line_1: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
52
+ address_line_2: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
53
+ }, z.core.$strip>>>;
54
+ linkedin_url: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
55
+ year_founded: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
56
+ headcount_range: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
57
+ linkedin_handle: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
58
+ }, z.core.$strip>>>;
59
+ start_at: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
60
+ year: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
61
+ month: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
62
+ }, z.core.$strip>>>;
63
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
64
+ }, z.core.$strip>>>;
65
+ firstname: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
66
+ linkedin_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
67
+ linkedin_url: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
68
+ linkedin_handle: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
69
+ premium_account: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
70
+ sales_navigator_id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
71
+ }, z.core.$strip>>>;
72
+ lastname: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
73
+ firstname: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
74
+ social_medias: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
75
+ url: z.ZodNullable<z.ZodString>;
76
+ type: z.ZodNullable<z.ZodString>;
77
+ }, z.core.$strip>>>>;
78
+ personal_emails: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
79
+ email: z.ZodNullable<z.ZodString>;
80
+ status: z.ZodNullable<z.ZodString>;
81
+ }, z.core.$strip>>>>;
82
+ most_probable_email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
83
+ most_probable_phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
84
+ most_probable_email_status: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
85
+ most_probable_personal_email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
86
+ most_probable_personal_email_status: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
87
+ }, z.core.$strip>>;
88
+ }, z.core.$strip>>;
89
+ status: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
90
+ CREATED: "CREATED";
91
+ IN_PROGRESS: "IN_PROGRESS";
92
+ CANCELED: "CANCELED";
93
+ CREDITS_INSUFFICIENT: "CREDITS_INSUFFICIENT";
94
+ FINISHED: "FINISHED";
95
+ RATE_LIMIT: "RATE_LIMIT";
96
+ UNKNOWN: "UNKNOWN";
97
+ }>>>;
98
+ }, z.core.$strip>;
99
+ declare const fullenrichGetEnrichmentResult: import("@keystrokehq/action").WorkflowActionDefinition<{
100
+ enrichment_id: string;
101
+ forceResults?: boolean | undefined;
102
+ }, {
103
+ cost: {
104
+ credits: number | null;
105
+ } | null;
106
+ datas: {
107
+ contact: {
108
+ domain?: string | undefined;
109
+ emails?: {
110
+ email: string | null;
111
+ status: string | null;
112
+ }[] | undefined;
113
+ phones?: {
114
+ number: string | null;
115
+ region: string | null;
116
+ }[] | undefined;
117
+ profile?: {
118
+ summary?: string | undefined;
119
+ headline?: string | undefined;
120
+ lastname?: string | undefined;
121
+ location?: string | undefined;
122
+ position?: {
123
+ title?: string | undefined;
124
+ end_at?: {
125
+ year?: number | undefined;
126
+ month?: number | undefined;
127
+ } | undefined;
128
+ company?: {
129
+ name?: string | undefined;
130
+ domain?: string | undefined;
131
+ website?: string | undefined;
132
+ industry?: string | undefined;
133
+ headcount?: number | undefined;
134
+ description?: string | undefined;
135
+ linkedin_id?: number | undefined;
136
+ headquarters?: {
137
+ city?: string | undefined;
138
+ region?: string | undefined;
139
+ country?: string | undefined;
140
+ postal_code?: string | undefined;
141
+ country_code?: string | undefined;
142
+ address_line_1?: string | undefined;
143
+ address_line_2?: string | undefined;
144
+ } | undefined;
145
+ linkedin_url?: string | undefined;
146
+ year_founded?: number | undefined;
147
+ headcount_range?: string | undefined;
148
+ linkedin_handle?: string | undefined;
149
+ } | undefined;
150
+ start_at?: {
151
+ year?: number | undefined;
152
+ month?: number | undefined;
153
+ } | undefined;
154
+ description?: string | undefined;
155
+ } | undefined;
156
+ firstname?: string | undefined;
157
+ linkedin_id?: number | undefined;
158
+ linkedin_url?: string | undefined;
159
+ linkedin_handle?: string | undefined;
160
+ premium_account?: boolean | undefined;
161
+ sales_navigator_id?: string | undefined;
162
+ } | undefined;
163
+ lastname?: string | undefined;
164
+ firstname?: string | undefined;
165
+ social_medias?: {
166
+ url: string | null;
167
+ type: string | null;
168
+ }[] | undefined;
169
+ personal_emails?: {
170
+ email: string | null;
171
+ status: string | null;
172
+ }[] | undefined;
173
+ most_probable_email?: string | undefined;
174
+ most_probable_phone?: string | undefined;
175
+ most_probable_email_status?: string | undefined;
176
+ most_probable_personal_email?: string | undefined;
177
+ most_probable_personal_email_status?: string | undefined;
178
+ } | null;
179
+ custom?: Record<string, never> | undefined;
180
+ }[];
181
+ id?: string | undefined;
182
+ name?: string | undefined;
183
+ status?: "CREATED" | "IN_PROGRESS" | "CANCELED" | "CREDITS_INSUFFICIENT" | "FINISHED" | "RATE_LIMIT" | "UNKNOWN" | undefined;
184
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
185
  //#endregion
8
186
  export { fullenrichGetEnrichmentResult };
9
187
  //# sourceMappingURL=get-enrichment-result.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-enrichment-result.d.cts","names":[],"sources":["../../src/actions/get-enrichment-result.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAGsB;AAAA,cAkF5D,mCAAA,EAAqC,CAAA,CAAE,UAMlD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-enrichment-result.d.cts","names":[],"sources":["../../src/actions/get-enrichment-result.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAqFlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQnC,6BAAA,gCAA6B,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAMxC,MAAA;EAAA"}
@@ -1,9 +1,187 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-enrichment-result.d.ts
4
- declare const FullenrichGetEnrichmentResultInput: z.ZodTypeAny;
5
- declare const FullenrichGetEnrichmentResultOutput: z.ZodTypeAny;
6
- declare const fullenrichGetEnrichmentResult: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FullenrichGetEnrichmentResultInput: z.ZodObject<{
5
+ forceResults: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6
+ enrichment_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const FullenrichGetEnrichmentResultOutput: z.ZodObject<{
9
+ id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ cost: z.ZodNullable<z.ZodObject<{
11
+ credits: z.ZodNullable<z.ZodNumber>;
12
+ }, z.core.$strip>>;
13
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ datas: z.ZodArray<z.ZodObject<{
15
+ custom: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>>;
16
+ contact: z.ZodNullable<z.ZodObject<{
17
+ domain: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ emails: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
19
+ email: z.ZodNullable<z.ZodString>;
20
+ status: z.ZodNullable<z.ZodString>;
21
+ }, z.core.$strip>>>>;
22
+ phones: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ number: z.ZodNullable<z.ZodString>;
24
+ region: z.ZodNullable<z.ZodString>;
25
+ }, z.core.$strip>>>>;
26
+ profile: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
27
+ summary: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
28
+ headline: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
29
+ lastname: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
30
+ location: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
31
+ position: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
32
+ title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
33
+ end_at: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
34
+ year: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
35
+ month: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
36
+ }, z.core.$strip>>>;
37
+ company: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
38
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
39
+ domain: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
40
+ website: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
41
+ industry: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
42
+ headcount: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
43
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
44
+ linkedin_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
45
+ headquarters: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
46
+ city: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
47
+ region: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
48
+ country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
49
+ postal_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
50
+ country_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
51
+ address_line_1: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
52
+ address_line_2: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
53
+ }, z.core.$strip>>>;
54
+ linkedin_url: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
55
+ year_founded: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
56
+ headcount_range: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
57
+ linkedin_handle: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
58
+ }, z.core.$strip>>>;
59
+ start_at: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
60
+ year: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
61
+ month: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
62
+ }, z.core.$strip>>>;
63
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
64
+ }, z.core.$strip>>>;
65
+ firstname: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
66
+ linkedin_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
67
+ linkedin_url: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
68
+ linkedin_handle: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
69
+ premium_account: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
70
+ sales_navigator_id: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
71
+ }, z.core.$strip>>>;
72
+ lastname: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
73
+ firstname: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
74
+ social_medias: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
75
+ url: z.ZodNullable<z.ZodString>;
76
+ type: z.ZodNullable<z.ZodString>;
77
+ }, z.core.$strip>>>>;
78
+ personal_emails: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
79
+ email: z.ZodNullable<z.ZodString>;
80
+ status: z.ZodNullable<z.ZodString>;
81
+ }, z.core.$strip>>>>;
82
+ most_probable_email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
83
+ most_probable_phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
84
+ most_probable_email_status: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
85
+ most_probable_personal_email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
86
+ most_probable_personal_email_status: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
87
+ }, z.core.$strip>>;
88
+ }, z.core.$strip>>;
89
+ status: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
90
+ CREATED: "CREATED";
91
+ IN_PROGRESS: "IN_PROGRESS";
92
+ CANCELED: "CANCELED";
93
+ CREDITS_INSUFFICIENT: "CREDITS_INSUFFICIENT";
94
+ FINISHED: "FINISHED";
95
+ RATE_LIMIT: "RATE_LIMIT";
96
+ UNKNOWN: "UNKNOWN";
97
+ }>>>;
98
+ }, z.core.$strip>;
99
+ declare const fullenrichGetEnrichmentResult: import("@keystrokehq/action").WorkflowActionDefinition<{
100
+ enrichment_id: string;
101
+ forceResults?: boolean | undefined;
102
+ }, {
103
+ cost: {
104
+ credits: number | null;
105
+ } | null;
106
+ datas: {
107
+ contact: {
108
+ domain?: string | undefined;
109
+ emails?: {
110
+ email: string | null;
111
+ status: string | null;
112
+ }[] | undefined;
113
+ phones?: {
114
+ number: string | null;
115
+ region: string | null;
116
+ }[] | undefined;
117
+ profile?: {
118
+ summary?: string | undefined;
119
+ headline?: string | undefined;
120
+ lastname?: string | undefined;
121
+ location?: string | undefined;
122
+ position?: {
123
+ title?: string | undefined;
124
+ end_at?: {
125
+ year?: number | undefined;
126
+ month?: number | undefined;
127
+ } | undefined;
128
+ company?: {
129
+ name?: string | undefined;
130
+ domain?: string | undefined;
131
+ website?: string | undefined;
132
+ industry?: string | undefined;
133
+ headcount?: number | undefined;
134
+ description?: string | undefined;
135
+ linkedin_id?: number | undefined;
136
+ headquarters?: {
137
+ city?: string | undefined;
138
+ region?: string | undefined;
139
+ country?: string | undefined;
140
+ postal_code?: string | undefined;
141
+ country_code?: string | undefined;
142
+ address_line_1?: string | undefined;
143
+ address_line_2?: string | undefined;
144
+ } | undefined;
145
+ linkedin_url?: string | undefined;
146
+ year_founded?: number | undefined;
147
+ headcount_range?: string | undefined;
148
+ linkedin_handle?: string | undefined;
149
+ } | undefined;
150
+ start_at?: {
151
+ year?: number | undefined;
152
+ month?: number | undefined;
153
+ } | undefined;
154
+ description?: string | undefined;
155
+ } | undefined;
156
+ firstname?: string | undefined;
157
+ linkedin_id?: number | undefined;
158
+ linkedin_url?: string | undefined;
159
+ linkedin_handle?: string | undefined;
160
+ premium_account?: boolean | undefined;
161
+ sales_navigator_id?: string | undefined;
162
+ } | undefined;
163
+ lastname?: string | undefined;
164
+ firstname?: string | undefined;
165
+ social_medias?: {
166
+ url: string | null;
167
+ type: string | null;
168
+ }[] | undefined;
169
+ personal_emails?: {
170
+ email: string | null;
171
+ status: string | null;
172
+ }[] | undefined;
173
+ most_probable_email?: string | undefined;
174
+ most_probable_phone?: string | undefined;
175
+ most_probable_email_status?: string | undefined;
176
+ most_probable_personal_email?: string | undefined;
177
+ most_probable_personal_email_status?: string | undefined;
178
+ } | null;
179
+ custom?: Record<string, never> | undefined;
180
+ }[];
181
+ id?: string | undefined;
182
+ name?: string | undefined;
183
+ status?: "CREATED" | "IN_PROGRESS" | "CANCELED" | "CREDITS_INSUFFICIENT" | "FINISHED" | "RATE_LIMIT" | "UNKNOWN" | undefined;
184
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
185
  //#endregion
8
186
  export { fullenrichGetEnrichmentResult };
9
187
  //# sourceMappingURL=get-enrichment-result.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-enrichment-result.d.mts","names":[],"sources":["../../src/actions/get-enrichment-result.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAGsB;AAAA,cAkF5D,mCAAA,EAAqC,CAAA,CAAE,UAMlD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-enrichment-result.d.mts","names":[],"sources":["../../src/actions/get-enrichment-result.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAqFlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQnC,6BAAA,gCAA6B,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAMxC,MAAA;EAAA"}
@@ -5,83 +5,83 @@ const FullenrichGetEnrichmentResultInput = z.object({
5
5
  forceResults: z.boolean().default(false).describe("Return partial results even if job is not finished (may be incomplete)").optional(),
6
6
  enrichment_id: z.string().describe("Bulk enrichment job ID to fetch")
7
7
  }).describe("Request parameters for retrieving bulk enrichment results.");
8
- const FullenrichGetEnrichmentResult_CostInfoSchema = z.object({ credits: z.number().int().describe("Number of credits consumed by the enrichment job") });
8
+ const FullenrichGetEnrichmentResult_CostInfoSchema = z.object({ credits: z.number().int().describe("Number of credits consumed by the enrichment job").nullable() });
9
9
  const FullenrichGetEnrichmentResult_EmailItemSchema = z.object({
10
- email: z.string().describe("Enriched email address"),
11
- status: z.string().describe("Status of the email (e.g., verified, risky)")
10
+ email: z.string().describe("Enriched email address").nullable(),
11
+ status: z.string().describe("Status of the email (e.g., verified, risky)").nullable()
12
12
  });
13
13
  const FullenrichGetEnrichmentResult_PhoneItemSchema = z.object({
14
- number: z.string().describe("Phone number"),
15
- region: z.string().describe("Region or country code of the phone number")
14
+ number: z.string().describe("Phone number").nullable(),
15
+ region: z.string().describe("Region or country code of the phone number").nullable()
16
16
  });
17
17
  const FullenrichGetEnrichmentResult_DateInfoSchema = z.object({
18
- year: z.number().int().describe("Year").nullable().optional(),
19
- month: z.number().int().describe("Month (1-12)").nullable().optional()
18
+ year: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Year").optional()),
19
+ month: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Month (1-12)").optional())
20
20
  });
21
21
  const FullenrichGetEnrichmentResult_HeadquartersSchema = z.object({
22
- city: z.string().describe("City").nullable().optional(),
23
- region: z.string().describe("Region or state").nullable().optional(),
24
- country: z.string().describe("Country name").nullable().optional(),
25
- postal_code: z.string().describe("Postal code").nullable().optional(),
26
- country_code: z.string().describe("Country code").nullable().optional(),
27
- address_line_1: z.string().describe("Primary address line").nullable().optional(),
28
- address_line_2: z.string().describe("Secondary address line").nullable().optional()
22
+ city: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("City").optional()),
23
+ region: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Region or state").optional()),
24
+ country: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Country name").optional()),
25
+ postal_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Postal code").optional()),
26
+ country_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Country code").optional()),
27
+ address_line_1: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Primary address line").optional()),
28
+ address_line_2: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Secondary address line").optional())
29
29
  });
30
30
  const FullenrichGetEnrichmentResult_CompanySchema = z.object({
31
- name: z.string().describe("Company name").nullable().optional(),
32
- domain: z.string().describe("Company domain").nullable().optional(),
33
- website: z.string().describe("Company website URL").nullable().optional(),
34
- industry: z.string().describe("Industry sector").nullable().optional(),
35
- headcount: z.number().int().describe("Number of employees").nullable().optional(),
36
- description: z.string().describe("Company description").nullable().optional(),
37
- linkedin_id: z.number().int().describe("LinkedIn company ID").nullable().optional(),
38
- headquarters: FullenrichGetEnrichmentResult_HeadquartersSchema.nullable().optional(),
39
- linkedin_url: z.string().describe("LinkedIn company URL").nullable().optional(),
40
- year_founded: z.number().int().describe("Year the company was founded").nullable().optional(),
41
- headcount_range: z.string().describe("Employee count range").nullable().optional(),
42
- linkedin_handle: z.string().describe("LinkedIn company handle").nullable().optional()
31
+ name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company name").optional()),
32
+ domain: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company domain").optional()),
33
+ website: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company website URL").optional()),
34
+ industry: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Industry sector").optional()),
35
+ headcount: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Number of employees").optional()),
36
+ description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Company description").optional()),
37
+ linkedin_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("LinkedIn company ID").optional()),
38
+ headquarters: z.preprocess((value) => value === null ? void 0 : value, FullenrichGetEnrichmentResult_HeadquartersSchema.optional()),
39
+ linkedin_url: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("LinkedIn company URL").optional()),
40
+ year_founded: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Year the company was founded").optional()),
41
+ headcount_range: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Employee count range").optional()),
42
+ linkedin_handle: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("LinkedIn company handle").optional())
43
43
  });
44
44
  const FullenrichGetEnrichmentResult_PositionSchema = z.object({
45
- title: z.string().describe("Job title").nullable().optional(),
46
- end_at: FullenrichGetEnrichmentResult_DateInfoSchema.nullable().optional(),
47
- company: FullenrichGetEnrichmentResult_CompanySchema.nullable().optional(),
48
- start_at: FullenrichGetEnrichmentResult_DateInfoSchema.nullable().optional(),
49
- description: z.string().describe("Position description").nullable().optional()
45
+ title: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Job title").optional()),
46
+ end_at: z.preprocess((value) => value === null ? void 0 : value, FullenrichGetEnrichmentResult_DateInfoSchema.optional()),
47
+ company: z.preprocess((value) => value === null ? void 0 : value, FullenrichGetEnrichmentResult_CompanySchema.optional()),
48
+ start_at: z.preprocess((value) => value === null ? void 0 : value, FullenrichGetEnrichmentResult_DateInfoSchema.optional()),
49
+ description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Position description").optional())
50
50
  });
51
51
  const FullenrichGetEnrichmentResult_ContactProfileSchema = z.object({
52
- summary: z.string().describe("Profile summary or bio").nullable().optional(),
53
- headline: z.string().describe("Profile headline or title").nullable().optional(),
54
- lastname: z.string().describe("Last name as detected on profile").nullable().optional(),
55
- location: z.string().describe("Profile location").nullable().optional(),
56
- position: FullenrichGetEnrichmentResult_PositionSchema.nullable().optional(),
57
- firstname: z.string().describe("First name as detected on profile").nullable().optional(),
58
- linkedin_id: z.number().int().describe("LinkedIn profile ID").nullable().optional(),
59
- linkedin_url: z.string().describe("LinkedIn profile URL").nullable().optional(),
60
- linkedin_handle: z.string().describe("LinkedIn handle or username").nullable().optional(),
61
- premium_account: z.boolean().describe("Whether the profile has a premium account").nullable().optional(),
62
- sales_navigator_id: z.string().describe("Sales Navigator profile ID").nullable().optional()
52
+ summary: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Profile summary or bio").optional()),
53
+ headline: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Profile headline or title").optional()),
54
+ lastname: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Last name as detected on profile").optional()),
55
+ location: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Profile location").optional()),
56
+ position: z.preprocess((value) => value === null ? void 0 : value, FullenrichGetEnrichmentResult_PositionSchema.optional()),
57
+ firstname: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("First name as detected on profile").optional()),
58
+ linkedin_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("LinkedIn profile ID").optional()),
59
+ linkedin_url: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("LinkedIn profile URL").optional()),
60
+ linkedin_handle: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("LinkedIn handle or username").optional()),
61
+ premium_account: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether the profile has a premium account").optional()),
62
+ sales_navigator_id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Sales Navigator profile ID").optional())
63
63
  });
64
64
  const FullenrichGetEnrichmentResult_SocialMediaItemSchema = z.object({
65
- url: z.string().describe("URL of the social media profile"),
66
- type: z.string().describe("Type of social media (e.g., LinkedIn, Twitter)")
65
+ url: z.string().describe("URL of the social media profile").nullable(),
66
+ type: z.string().describe("Type of social media (e.g., LinkedIn, Twitter)").nullable()
67
67
  });
68
68
  const FullenrichGetEnrichmentResult_ContactSchema = z.object({
69
- domain: z.string().describe("Contact's email domain").nullable().optional(),
70
- emails: z.array(FullenrichGetEnrichmentResult_EmailItemSchema).describe("List of emails found for the contact").nullable().optional(),
71
- phones: z.array(FullenrichGetEnrichmentResult_PhoneItemSchema).describe("List of phone numbers found for the contact").nullable().optional(),
72
- profile: FullenrichGetEnrichmentResult_ContactProfileSchema.nullable().optional(),
73
- lastname: z.string().describe("Contact's last name").nullable().optional(),
74
- firstname: z.string().describe("Contact's first name").nullable().optional(),
75
- social_medias: z.array(FullenrichGetEnrichmentResult_SocialMediaItemSchema).describe("List of social media profiles for the contact").nullable().optional(),
76
- personal_emails: z.array(FullenrichGetEnrichmentResult_EmailItemSchema).describe("List of personal emails found for the contact").nullable().optional(),
77
- most_probable_email: z.string().describe("Most probable email address").nullable().optional(),
78
- most_probable_phone: z.string().describe("Most probable phone number").nullable().optional(),
79
- most_probable_email_status: z.string().describe("Status of most probable email").nullable().optional(),
80
- most_probable_personal_email: z.string().describe("Most probable personal email address").nullable().optional(),
81
- most_probable_personal_email_status: z.string().describe("Status of most probable personal email").nullable().optional()
69
+ domain: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact's email domain").optional()),
70
+ emails: z.preprocess((value) => value === null ? void 0 : value, z.array(FullenrichGetEnrichmentResult_EmailItemSchema).describe("List of emails found for the contact").optional()),
71
+ phones: z.preprocess((value) => value === null ? void 0 : value, z.array(FullenrichGetEnrichmentResult_PhoneItemSchema).describe("List of phone numbers found for the contact").optional()),
72
+ profile: z.preprocess((value) => value === null ? void 0 : value, FullenrichGetEnrichmentResult_ContactProfileSchema.optional()),
73
+ lastname: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact's last name").optional()),
74
+ firstname: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Contact's first name").optional()),
75
+ social_medias: z.preprocess((value) => value === null ? void 0 : value, z.array(FullenrichGetEnrichmentResult_SocialMediaItemSchema).describe("List of social media profiles for the contact").optional()),
76
+ personal_emails: z.preprocess((value) => value === null ? void 0 : value, z.array(FullenrichGetEnrichmentResult_EmailItemSchema).describe("List of personal emails found for the contact").optional()),
77
+ most_probable_email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Most probable email address").optional()),
78
+ most_probable_phone: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Most probable phone number").optional()),
79
+ most_probable_email_status: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Status of most probable email").optional()),
80
+ most_probable_personal_email: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Most probable personal email address").optional()),
81
+ most_probable_personal_email_status: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Status of most probable personal email").optional())
82
82
  });
83
83
  const FullenrichGetEnrichmentResult_DataItemSchema = z.object({
84
- custom: z.object({}).describe("Custom key/value pairs provided in enrichment request").nullable().optional(),
84
+ custom: z.preprocess((value) => value === null ? void 0 : value, z.object({}).describe("Custom key/value pairs provided in enrichment request").optional()),
85
85
  contact: FullenrichGetEnrichmentResult_ContactSchema.nullable()
86
86
  });
87
87
  const fullenrichGetEnrichmentResult = action("FULLENRICH_GET_ENRICHMENT_RESULT", {
@@ -90,11 +90,11 @@ const fullenrichGetEnrichmentResult = action("FULLENRICH_GET_ENRICHMENT_RESULT",
90
90
  description: "Tool to retrieve results of a bulk enrichment by enrichment ID. Use after submitting a bulk enrichment job to check its status and get enriched data.",
91
91
  input: FullenrichGetEnrichmentResultInput,
92
92
  output: z.object({
93
- id: z.string().describe("Enrichment job ID").nullable().optional(),
93
+ id: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Enrichment job ID").optional()),
94
94
  cost: FullenrichGetEnrichmentResult_CostInfoSchema.nullable(),
95
- name: z.string().describe("Enrichment job name").nullable().optional(),
95
+ name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Enrichment job name").optional()),
96
96
  datas: z.array(FullenrichGetEnrichmentResult_DataItemSchema).describe("Array of enrichment result items"),
97
- status: z.enum([
97
+ status: z.preprocess((value) => value === null ? void 0 : value, z.enum([
98
98
  "CREATED",
99
99
  "IN_PROGRESS",
100
100
  "CANCELED",
@@ -102,7 +102,7 @@ const fullenrichGetEnrichmentResult = action("FULLENRICH_GET_ENRICHMENT_RESULT",
102
102
  "FINISHED",
103
103
  "RATE_LIMIT",
104
104
  "UNKNOWN"
105
- ]).describe("Status of the enrichment job").nullable().optional()
105
+ ]).describe("Status of the enrichment job").optional())
106
106
  })
107
107
  });
108
108
  //#endregion