@frogbotai/piece-hubspot 0.0.0-stage → 0.41.0

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 (99) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +146 -2
  3. package/dist/actions/associations.d.ts +161 -0
  4. package/dist/actions/associations.d.ts.map +1 -0
  5. package/dist/actions/associations.js +192 -0
  6. package/dist/actions/associations.js.map +1 -0
  7. package/dist/actions/createOrUpdateContact.d.ts +36 -0
  8. package/dist/actions/createOrUpdateContact.d.ts.map +1 -0
  9. package/dist/actions/createOrUpdateContact.js +65 -0
  10. package/dist/actions/createOrUpdateContact.js.map +1 -0
  11. package/dist/actions/crm.d.ts +1042 -0
  12. package/dist/actions/crm.d.ts.map +1 -0
  13. package/dist/actions/crm.js +266 -0
  14. package/dist/actions/crm.js.map +1 -0
  15. package/dist/actions/crud.d.ts +180 -0
  16. package/dist/actions/crud.d.ts.map +1 -0
  17. package/dist/actions/crud.js +203 -0
  18. package/dist/actions/crud.js.map +1 -0
  19. package/dist/actions/customApiCall.d.ts +6 -0
  20. package/dist/actions/customApiCall.d.ts.map +1 -0
  21. package/dist/actions/customApiCall.js +10 -0
  22. package/dist/actions/customApiCall.js.map +1 -0
  23. package/dist/actions/lists.d.ts +42 -0
  24. package/dist/actions/lists.d.ts.map +1 -0
  25. package/dist/actions/lists.js +108 -0
  26. package/dist/actions/lists.js.map +1 -0
  27. package/dist/actions/lookups.d.ts +110 -0
  28. package/dist/actions/lookups.d.ts.map +1 -0
  29. package/dist/actions/lookups.js +71 -0
  30. package/dist/actions/lookups.js.map +1 -0
  31. package/dist/actions/marketing.d.ts +45 -0
  32. package/dist/actions/marketing.d.ts.map +1 -0
  33. package/dist/actions/marketing.js +75 -0
  34. package/dist/actions/marketing.js.map +1 -0
  35. package/dist/actions/options.d.ts +38 -0
  36. package/dist/actions/options.d.ts.map +1 -0
  37. package/dist/actions/options.js +229 -0
  38. package/dist/actions/options.js.map +1 -0
  39. package/dist/actions/reads.d.ts +351 -0
  40. package/dist/actions/reads.d.ts.map +1 -0
  41. package/dist/actions/reads.js +253 -0
  42. package/dist/actions/reads.js.map +1 -0
  43. package/dist/actions/uploadFile.d.ts +47 -0
  44. package/dist/actions/uploadFile.d.ts.map +1 -0
  45. package/dist/actions/uploadFile.js +66 -0
  46. package/dist/actions/uploadFile.js.map +1 -0
  47. package/dist/client.d.ts +31 -0
  48. package/dist/client.d.ts.map +1 -0
  49. package/dist/client.js +115 -0
  50. package/dist/client.js.map +1 -0
  51. package/dist/config.d.ts +24 -0
  52. package/dist/config.d.ts.map +1 -0
  53. package/dist/config.js +35 -0
  54. package/dist/config.js.map +1 -0
  55. package/dist/define.d.ts +76 -0
  56. package/dist/define.d.ts.map +1 -0
  57. package/dist/define.js +4 -0
  58. package/dist/define.js.map +1 -0
  59. package/dist/files.d.ts +13 -0
  60. package/dist/files.d.ts.map +1 -0
  61. package/dist/files.js +55 -0
  62. package/dist/files.js.map +1 -0
  63. package/dist/index.d.ts +3463 -0
  64. package/dist/index.d.ts.map +1 -0
  65. package/dist/index.js +173 -0
  66. package/dist/index.js.map +1 -0
  67. package/dist/objects.d.ts +57 -0
  68. package/dist/objects.d.ts.map +1 -0
  69. package/dist/objects.js +194 -0
  70. package/dist/objects.js.map +1 -0
  71. package/dist/pagination.d.ts +41 -0
  72. package/dist/pagination.d.ts.map +1 -0
  73. package/dist/pagination.js +29 -0
  74. package/dist/pagination.js.map +1 -0
  75. package/dist/records.d.ts +99 -0
  76. package/dist/records.d.ts.map +1 -0
  77. package/dist/records.js +106 -0
  78. package/dist/records.js.map +1 -0
  79. package/dist/triggers/marketing.d.ts +167 -0
  80. package/dist/triggers/marketing.d.ts.map +1 -0
  81. package/dist/triggers/marketing.js +227 -0
  82. package/dist/triggers/marketing.js.map +1 -0
  83. package/dist/triggers/newContactInList.d.ts +75 -0
  84. package/dist/triggers/newContactInList.d.ts.map +1 -0
  85. package/dist/triggers/newContactInList.js +78 -0
  86. package/dist/triggers/newContactInList.js.map +1 -0
  87. package/dist/triggers/newEngagement.d.ts +91 -0
  88. package/dist/triggers/newEngagement.d.ts.map +1 -0
  89. package/dist/triggers/newEngagement.js +125 -0
  90. package/dist/triggers/newEngagement.js.map +1 -0
  91. package/dist/triggers/poll.d.ts +94 -0
  92. package/dist/triggers/poll.d.ts.map +1 -0
  93. package/dist/triggers/poll.js +141 -0
  94. package/dist/triggers/poll.js.map +1 -0
  95. package/dist/triggers/records.d.ts +1234 -0
  96. package/dist/triggers/records.d.ts.map +1 -0
  97. package/dist/triggers/records.js +249 -0
  98. package/dist/triggers/records.js.map +1 -0
  99. package/package.json +41 -3
@@ -0,0 +1,3463 @@
1
+ import { z } from 'zod';
2
+ import { createHubSpotClient } from './client.js';
3
+ export { HubSpotError } from './client.js';
4
+ /** HubSpot's own scope strings, each under its own name. */
5
+ export declare const hubspotScopes: {
6
+ files: "files";
7
+ "crm.objects.contacts.read": "crm.objects.contacts.read";
8
+ "crm.objects.contacts.write": "crm.objects.contacts.write";
9
+ "crm.objects.companies.read": "crm.objects.companies.read";
10
+ "crm.objects.companies.write": "crm.objects.companies.write";
11
+ "crm.objects.deals.read": "crm.objects.deals.read";
12
+ "crm.objects.deals.write": "crm.objects.deals.write";
13
+ "crm.objects.tickets.read": "crm.objects.tickets.read";
14
+ "crm.objects.tickets.write": "crm.objects.tickets.write";
15
+ "crm.objects.line_items.read": "crm.objects.line_items.read";
16
+ "crm.objects.line_items.write": "crm.objects.line_items.write";
17
+ "crm.objects.custom.read": "crm.objects.custom.read";
18
+ "crm.objects.custom.write": "crm.objects.custom.write";
19
+ "crm.objects.owners.read": "crm.objects.owners.read";
20
+ "crm.lists.read": "crm.lists.read";
21
+ "crm.lists.write": "crm.lists.write";
22
+ "crm.schemas.contacts.read": "crm.schemas.contacts.read";
23
+ "crm.schemas.companies.read": "crm.schemas.companies.read";
24
+ "crm.schemas.deals.read": "crm.schemas.deals.read";
25
+ "crm.schemas.custom.read": "crm.schemas.custom.read";
26
+ "e-commerce": "e-commerce";
27
+ "sales-email-read": "sales-email-read";
28
+ forms: "forms";
29
+ automation: "automation";
30
+ "communication_preferences.read_write": "communication_preferences.read_write";
31
+ };
32
+ export declare const hubspotOAuth: {
33
+ authorizationUrl: string;
34
+ tokenUrl: string;
35
+ scopes: {
36
+ catalog: {
37
+ files: "files";
38
+ "crm.objects.contacts.read": "crm.objects.contacts.read";
39
+ "crm.objects.contacts.write": "crm.objects.contacts.write";
40
+ "crm.objects.companies.read": "crm.objects.companies.read";
41
+ "crm.objects.companies.write": "crm.objects.companies.write";
42
+ "crm.objects.deals.read": "crm.objects.deals.read";
43
+ "crm.objects.deals.write": "crm.objects.deals.write";
44
+ "crm.objects.tickets.read": "crm.objects.tickets.read";
45
+ "crm.objects.tickets.write": "crm.objects.tickets.write";
46
+ "crm.objects.line_items.read": "crm.objects.line_items.read";
47
+ "crm.objects.line_items.write": "crm.objects.line_items.write";
48
+ "crm.objects.custom.read": "crm.objects.custom.read";
49
+ "crm.objects.custom.write": "crm.objects.custom.write";
50
+ "crm.objects.owners.read": "crm.objects.owners.read";
51
+ "crm.lists.read": "crm.lists.read";
52
+ "crm.lists.write": "crm.lists.write";
53
+ "crm.schemas.contacts.read": "crm.schemas.contacts.read";
54
+ "crm.schemas.companies.read": "crm.schemas.companies.read";
55
+ "crm.schemas.deals.read": "crm.schemas.deals.read";
56
+ "crm.schemas.custom.read": "crm.schemas.custom.read";
57
+ "e-commerce": "e-commerce";
58
+ "sales-email-read": "sales-email-read";
59
+ forms: "forms";
60
+ automation: "automation";
61
+ "communication_preferences.read_write": "communication_preferences.read_write";
62
+ };
63
+ defaults: ("crm.objects.companies.read" | "crm.objects.deals.read" | "crm.objects.tickets.read" | "crm.objects.owners.read" | "crm.lists.read" | "crm.schemas.contacts.read" | "crm.schemas.companies.read" | "crm.schemas.deals.read" | "crm.schemas.custom.read")[];
64
+ required: "crm.objects.contacts.read"[];
65
+ };
66
+ toAuth({ tokens }: {
67
+ tokens: import("frogbot/pieces").OAuthTokens;
68
+ }): {
69
+ accessToken: string;
70
+ };
71
+ account({ tokens, client, req }: {
72
+ tokens: import("frogbot/pieces").OAuthTokens;
73
+ client: {
74
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
75
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
76
+ authorize(headers: Headers): void;
77
+ };
78
+ req: import("frogbot/pieces").FrogBotRequest;
79
+ }): Promise<{
80
+ email?: string | undefined;
81
+ id: string;
82
+ label: string;
83
+ }>;
84
+ };
85
+ export declare const createHubSpot: import("frogbot/pieces").PieceFactory<{
86
+ readonly slug: "hubspot";
87
+ readonly label: "HubSpot";
88
+ readonly admin: {
89
+ readonly description: "Import, create, update and find HubSpot contacts, companies, deals, tickets, activities and lists";
90
+ readonly group: "Sales and CRM";
91
+ };
92
+ readonly auth: z.ZodObject<{
93
+ accessToken: z.ZodString;
94
+ }, z.core.$strip>;
95
+ readonly oauth: {
96
+ authorizationUrl: string;
97
+ tokenUrl: string;
98
+ scopes: {
99
+ catalog: {
100
+ files: "files";
101
+ "crm.objects.contacts.read": "crm.objects.contacts.read";
102
+ "crm.objects.contacts.write": "crm.objects.contacts.write";
103
+ "crm.objects.companies.read": "crm.objects.companies.read";
104
+ "crm.objects.companies.write": "crm.objects.companies.write";
105
+ "crm.objects.deals.read": "crm.objects.deals.read";
106
+ "crm.objects.deals.write": "crm.objects.deals.write";
107
+ "crm.objects.tickets.read": "crm.objects.tickets.read";
108
+ "crm.objects.tickets.write": "crm.objects.tickets.write";
109
+ "crm.objects.line_items.read": "crm.objects.line_items.read";
110
+ "crm.objects.line_items.write": "crm.objects.line_items.write";
111
+ "crm.objects.custom.read": "crm.objects.custom.read";
112
+ "crm.objects.custom.write": "crm.objects.custom.write";
113
+ "crm.objects.owners.read": "crm.objects.owners.read";
114
+ "crm.lists.read": "crm.lists.read";
115
+ "crm.lists.write": "crm.lists.write";
116
+ "crm.schemas.contacts.read": "crm.schemas.contacts.read";
117
+ "crm.schemas.companies.read": "crm.schemas.companies.read";
118
+ "crm.schemas.deals.read": "crm.schemas.deals.read";
119
+ "crm.schemas.custom.read": "crm.schemas.custom.read";
120
+ "e-commerce": "e-commerce";
121
+ "sales-email-read": "sales-email-read";
122
+ forms: "forms";
123
+ automation: "automation";
124
+ "communication_preferences.read_write": "communication_preferences.read_write";
125
+ };
126
+ defaults: ("crm.objects.companies.read" | "crm.objects.deals.read" | "crm.objects.tickets.read" | "crm.objects.owners.read" | "crm.lists.read" | "crm.schemas.contacts.read" | "crm.schemas.companies.read" | "crm.schemas.deals.read" | "crm.schemas.custom.read")[];
127
+ required: "crm.objects.contacts.read"[];
128
+ };
129
+ toAuth({ tokens }: {
130
+ tokens: import("frogbot/pieces").OAuthTokens;
131
+ }): {
132
+ accessToken: string;
133
+ };
134
+ account({ tokens, client, req }: {
135
+ tokens: import("frogbot/pieces").OAuthTokens;
136
+ client: {
137
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
138
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
139
+ authorize(headers: Headers): void;
140
+ };
141
+ req: import("frogbot/pieces").FrogBotRequest;
142
+ }): Promise<{
143
+ email?: string | undefined;
144
+ id: string;
145
+ label: string;
146
+ }>;
147
+ };
148
+ readonly client: typeof createHubSpotClient;
149
+ readonly actions: readonly [import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
150
+ limit: z.ZodDefault<z.ZodNumber>;
151
+ cursor: z.ZodOptional<z.ZodString>;
152
+ objectType: z.ZodUnion<readonly [z.ZodEnum<{
153
+ contacts: "contacts";
154
+ companies: "companies";
155
+ deals: "deals";
156
+ tickets: "tickets";
157
+ notes: "notes";
158
+ emails: "emails";
159
+ calls: "calls";
160
+ meetings: "meetings";
161
+ tasks: "tasks";
162
+ line_items: "line_items";
163
+ products: "products";
164
+ }>, z.ZodTemplateLiteral<`2-${number}`>]>;
165
+ properties: z.ZodOptional<z.ZodArray<z.ZodString>>;
166
+ associations: z.ZodOptional<z.ZodArray<z.ZodString>>;
167
+ }, z.core.$strip>, z.ZodObject<{
168
+ results: z.ZodArray<z.ZodObject<{
169
+ id: z.ZodString;
170
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
171
+ createdAt: z.ZodOptional<z.ZodString>;
172
+ updatedAt: z.ZodOptional<z.ZodString>;
173
+ archived: z.ZodOptional<z.ZodBoolean>;
174
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
175
+ results: z.ZodArray<z.ZodObject<{
176
+ id: z.ZodString;
177
+ type: z.ZodString;
178
+ }, z.core.$strip>>;
179
+ }, z.core.$strip>>>;
180
+ }, z.core.$strip>>;
181
+ nextCursor: z.ZodNullable<z.ZodString>;
182
+ }, z.core.$strip>, Record<string, never>, {
183
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
184
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
185
+ authorize(headers: Headers): void;
186
+ }, {
187
+ results: {
188
+ id: string;
189
+ properties: Record<string, string | null>;
190
+ createdAt?: string | undefined;
191
+ updatedAt?: string | undefined;
192
+ archived?: boolean | undefined;
193
+ associations?: Record<string, {
194
+ results: {
195
+ id: string;
196
+ type: string;
197
+ }[];
198
+ }> | undefined;
199
+ }[];
200
+ nextCursor: string | null;
201
+ }> & {
202
+ slug: "listRecords";
203
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
204
+ fromType: z.ZodUnion<readonly [z.ZodEnum<{
205
+ contacts: "contacts";
206
+ companies: "companies";
207
+ deals: "deals";
208
+ tickets: "tickets";
209
+ notes: "notes";
210
+ emails: "emails";
211
+ calls: "calls";
212
+ meetings: "meetings";
213
+ tasks: "tasks";
214
+ line_items: "line_items";
215
+ products: "products";
216
+ }>, z.ZodTemplateLiteral<`2-${number}`>]>;
217
+ toType: z.ZodUnion<readonly [z.ZodEnum<{
218
+ contacts: "contacts";
219
+ companies: "companies";
220
+ deals: "deals";
221
+ tickets: "tickets";
222
+ notes: "notes";
223
+ emails: "emails";
224
+ calls: "calls";
225
+ meetings: "meetings";
226
+ tasks: "tasks";
227
+ line_items: "line_items";
228
+ products: "products";
229
+ }>, z.ZodTemplateLiteral<`2-${number}`>]>;
230
+ ids: z.ZodArray<z.ZodString>;
231
+ cursors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
232
+ }, z.core.$strip>, z.ZodObject<{
233
+ results: z.ZodArray<z.ZodObject<{
234
+ id: z.ZodString;
235
+ associations: z.ZodArray<z.ZodObject<{
236
+ id: z.ZodString;
237
+ labels: z.ZodArray<z.ZodObject<{
238
+ category: z.ZodString;
239
+ typeId: z.ZodNumber;
240
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
241
+ }, z.core.$strip>>;
242
+ }, z.core.$strip>>;
243
+ nextCursor: z.ZodNullable<z.ZodString>;
244
+ }, z.core.$strip>>;
245
+ errors: z.ZodArray<z.ZodObject<{
246
+ message: z.ZodString;
247
+ category: z.ZodOptional<z.ZodString>;
248
+ }, z.core.$strip>>;
249
+ }, z.core.$strip>, Record<string, never>, {
250
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
251
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
252
+ authorize(headers: Headers): void;
253
+ }, {
254
+ results: {
255
+ id: string;
256
+ associations: {
257
+ id: string;
258
+ labels: {
259
+ category: string;
260
+ typeId: number;
261
+ label?: string | null | undefined;
262
+ }[];
263
+ }[];
264
+ nextCursor: string | null;
265
+ }[];
266
+ errors: {
267
+ message: string;
268
+ category?: string | undefined;
269
+ }[];
270
+ }> & {
271
+ slug: "listAssociations";
272
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
273
+ query: z.ZodOptional<z.ZodString>;
274
+ objectTypeId: z.ZodOptional<z.ZodString>;
275
+ limit: z.ZodDefault<z.ZodNumber>;
276
+ cursor: z.ZodOptional<z.ZodString>;
277
+ }, z.core.$strip>, z.ZodObject<{
278
+ results: z.ZodArray<z.ZodObject<{
279
+ listId: z.ZodString;
280
+ name: z.ZodString;
281
+ objectTypeId: z.ZodString;
282
+ processingType: z.ZodString;
283
+ processingStatus: z.ZodOptional<z.ZodString>;
284
+ createdAt: z.ZodOptional<z.ZodString>;
285
+ updatedAt: z.ZodOptional<z.ZodString>;
286
+ additionalProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>>;
287
+ }, z.core.$strip>>;
288
+ nextCursor: z.ZodNullable<z.ZodString>;
289
+ }, z.core.$strip>, Record<string, never>, {
290
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
291
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
292
+ authorize(headers: Headers): void;
293
+ }, {
294
+ results: {
295
+ listId: string;
296
+ name: string;
297
+ objectTypeId: string;
298
+ processingType: string;
299
+ processingStatus?: string | undefined;
300
+ createdAt?: string | undefined;
301
+ updatedAt?: string | undefined;
302
+ additionalProperties?: Record<string, string> | undefined;
303
+ }[];
304
+ nextCursor: string | null;
305
+ }> & {
306
+ slug: "listLists";
307
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
308
+ limit: z.ZodDefault<z.ZodNumber>;
309
+ cursor: z.ZodOptional<z.ZodString>;
310
+ listId: z.ZodString;
311
+ }, z.core.$strip>, z.ZodObject<{
312
+ results: z.ZodArray<z.ZodObject<{
313
+ recordId: z.ZodString;
314
+ membershipTimestamp: z.ZodOptional<z.ZodString>;
315
+ }, z.core.$strip>>;
316
+ nextCursor: z.ZodNullable<z.ZodString>;
317
+ }, z.core.$strip>, Record<string, never>, {
318
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
319
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
320
+ authorize(headers: Headers): void;
321
+ }, {
322
+ results: {
323
+ recordId: string;
324
+ membershipTimestamp?: string | undefined;
325
+ }[];
326
+ nextCursor: string | null;
327
+ }> & {
328
+ slug: "listListMembers";
329
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
330
+ limit: z.ZodDefault<z.ZodNumber>;
331
+ cursor: z.ZodOptional<z.ZodString>;
332
+ archived: z.ZodOptional<z.ZodBoolean>;
333
+ }, z.core.$strip>, z.ZodObject<{
334
+ results: z.ZodArray<z.ZodObject<{
335
+ id: z.ZodString;
336
+ email: z.ZodOptional<z.ZodString>;
337
+ firstName: z.ZodOptional<z.ZodString>;
338
+ lastName: z.ZodOptional<z.ZodString>;
339
+ userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
340
+ type: z.ZodOptional<z.ZodString>;
341
+ archived: z.ZodOptional<z.ZodBoolean>;
342
+ createdAt: z.ZodOptional<z.ZodString>;
343
+ updatedAt: z.ZodOptional<z.ZodString>;
344
+ teams: z.ZodOptional<z.ZodArray<z.ZodObject<{
345
+ id: z.ZodString;
346
+ name: z.ZodString;
347
+ primary: z.ZodOptional<z.ZodBoolean>;
348
+ }, z.core.$strip>>>;
349
+ }, z.core.$strip>>;
350
+ nextCursor: z.ZodNullable<z.ZodString>;
351
+ }, z.core.$strip>, Record<string, never>, {
352
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
353
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
354
+ authorize(headers: Headers): void;
355
+ }, {
356
+ results: {
357
+ id: string;
358
+ email?: string | undefined;
359
+ firstName?: string | undefined;
360
+ lastName?: string | undefined;
361
+ userId?: number | null | undefined;
362
+ type?: string | undefined;
363
+ archived?: boolean | undefined;
364
+ createdAt?: string | undefined;
365
+ updatedAt?: string | undefined;
366
+ teams?: {
367
+ id: string;
368
+ name: string;
369
+ primary?: boolean | undefined;
370
+ }[] | undefined;
371
+ }[];
372
+ nextCursor: string | null;
373
+ }> & {
374
+ slug: "listOwners";
375
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
376
+ objectType: z.ZodEnum<{
377
+ deals: "deals";
378
+ tickets: "tickets";
379
+ }>;
380
+ }, z.core.$strip>, z.ZodObject<{
381
+ results: z.ZodArray<z.ZodObject<{
382
+ id: z.ZodString;
383
+ label: z.ZodString;
384
+ displayOrder: z.ZodNumber;
385
+ archived: z.ZodOptional<z.ZodBoolean>;
386
+ stages: z.ZodArray<z.ZodObject<{
387
+ id: z.ZodString;
388
+ label: z.ZodString;
389
+ displayOrder: z.ZodNumber;
390
+ archived: z.ZodOptional<z.ZodBoolean>;
391
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
392
+ createdAt: z.ZodOptional<z.ZodString>;
393
+ updatedAt: z.ZodOptional<z.ZodString>;
394
+ }, z.core.$strip>>;
395
+ createdAt: z.ZodOptional<z.ZodString>;
396
+ updatedAt: z.ZodOptional<z.ZodString>;
397
+ }, z.core.$strip>>;
398
+ }, z.core.$strip>, Record<string, never>, {
399
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
400
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
401
+ authorize(headers: Headers): void;
402
+ }, {
403
+ results: {
404
+ id: string;
405
+ label: string;
406
+ displayOrder: number;
407
+ stages: {
408
+ id: string;
409
+ label: string;
410
+ displayOrder: number;
411
+ archived?: boolean | undefined;
412
+ metadata?: Record<string, string> | undefined;
413
+ createdAt?: string | undefined;
414
+ updatedAt?: string | undefined;
415
+ }[];
416
+ archived?: boolean | undefined;
417
+ createdAt?: string | undefined;
418
+ updatedAt?: string | undefined;
419
+ }[];
420
+ }> & {
421
+ slug: "listPipelines";
422
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
423
+ objectType: z.ZodUnion<readonly [z.ZodEnum<{
424
+ contacts: "contacts";
425
+ companies: "companies";
426
+ deals: "deals";
427
+ tickets: "tickets";
428
+ notes: "notes";
429
+ emails: "emails";
430
+ calls: "calls";
431
+ meetings: "meetings";
432
+ tasks: "tasks";
433
+ line_items: "line_items";
434
+ products: "products";
435
+ }>, z.ZodTemplateLiteral<`2-${number}`>]>;
436
+ archived: z.ZodOptional<z.ZodBoolean>;
437
+ }, z.core.$strip>, z.ZodObject<{
438
+ results: z.ZodArray<z.ZodObject<{
439
+ name: z.ZodString;
440
+ label: z.ZodString;
441
+ type: z.ZodString;
442
+ fieldType: z.ZodString;
443
+ description: z.ZodOptional<z.ZodString>;
444
+ groupName: z.ZodOptional<z.ZodString>;
445
+ hidden: z.ZodOptional<z.ZodBoolean>;
446
+ calculated: z.ZodOptional<z.ZodBoolean>;
447
+ hubspotDefined: z.ZodOptional<z.ZodBoolean>;
448
+ referencedObjectType: z.ZodOptional<z.ZodString>;
449
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
450
+ label: z.ZodString;
451
+ value: z.ZodString;
452
+ displayOrder: z.ZodOptional<z.ZodNumber>;
453
+ hidden: z.ZodOptional<z.ZodBoolean>;
454
+ }, z.core.$strip>>>;
455
+ modificationMetadata: z.ZodOptional<z.ZodObject<{
456
+ archivable: z.ZodOptional<z.ZodBoolean>;
457
+ readOnlyDefinition: z.ZodOptional<z.ZodBoolean>;
458
+ readOnlyValue: z.ZodOptional<z.ZodBoolean>;
459
+ }, z.core.$strip>>;
460
+ }, z.core.$strip>>;
461
+ }, z.core.$strip>, Record<string, never>, {
462
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
463
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
464
+ authorize(headers: Headers): void;
465
+ }, {
466
+ results: {
467
+ name: string;
468
+ label: string;
469
+ type: string;
470
+ fieldType: string;
471
+ description?: string | undefined;
472
+ groupName?: string | undefined;
473
+ hidden?: boolean | undefined;
474
+ calculated?: boolean | undefined;
475
+ hubspotDefined?: boolean | undefined;
476
+ referencedObjectType?: string | undefined;
477
+ options?: {
478
+ label: string;
479
+ value: string;
480
+ displayOrder?: number | undefined;
481
+ hidden?: boolean | undefined;
482
+ }[] | undefined;
483
+ modificationMetadata?: {
484
+ archivable?: boolean | undefined;
485
+ readOnlyDefinition?: boolean | undefined;
486
+ readOnlyValue?: boolean | undefined;
487
+ } | undefined;
488
+ }[];
489
+ }> & {
490
+ slug: "listProperties";
491
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
492
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
493
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
494
+ }, z.core.$strip>, z.ZodObject<{
495
+ id: z.ZodString;
496
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
497
+ createdAt: z.ZodOptional<z.ZodString>;
498
+ updatedAt: z.ZodOptional<z.ZodString>;
499
+ archived: z.ZodOptional<z.ZodBoolean>;
500
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
501
+ results: z.ZodArray<z.ZodObject<{
502
+ id: z.ZodString;
503
+ type: z.ZodString;
504
+ }, z.core.$strip>>;
505
+ }, z.core.$strip>>>;
506
+ }, z.core.$strip>, Record<string, never>, {
507
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
508
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
509
+ authorize(headers: Headers): void;
510
+ }, {
511
+ id: string;
512
+ properties: Record<string, string | null>;
513
+ createdAt?: string | undefined;
514
+ updatedAt?: string | undefined;
515
+ archived?: boolean | undefined;
516
+ associations?: Record<string, {
517
+ results: {
518
+ id: string;
519
+ type: string;
520
+ }[];
521
+ }> | undefined;
522
+ }> & {
523
+ slug: "createContact";
524
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
525
+ contactId: z.ZodString;
526
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
527
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
528
+ }, z.core.$strip>, z.ZodObject<{
529
+ id: z.ZodString;
530
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
531
+ createdAt: z.ZodOptional<z.ZodString>;
532
+ updatedAt: z.ZodOptional<z.ZodString>;
533
+ archived: z.ZodOptional<z.ZodBoolean>;
534
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
535
+ results: z.ZodArray<z.ZodObject<{
536
+ id: z.ZodString;
537
+ type: z.ZodString;
538
+ }, z.core.$strip>>;
539
+ }, z.core.$strip>>>;
540
+ }, z.core.$strip>, Record<string, never>, {
541
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
542
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
543
+ authorize(headers: Headers): void;
544
+ }, {
545
+ id: string;
546
+ properties: Record<string, string | null>;
547
+ createdAt?: string | undefined;
548
+ updatedAt?: string | undefined;
549
+ archived?: boolean | undefined;
550
+ associations?: Record<string, {
551
+ results: {
552
+ id: string;
553
+ type: string;
554
+ }[];
555
+ }> | undefined;
556
+ }> & {
557
+ slug: "updateContact";
558
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
559
+ contactId: z.ZodString;
560
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
561
+ }, z.core.$strip>, z.ZodObject<{
562
+ id: z.ZodString;
563
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
564
+ createdAt: z.ZodOptional<z.ZodString>;
565
+ updatedAt: z.ZodOptional<z.ZodString>;
566
+ archived: z.ZodOptional<z.ZodBoolean>;
567
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
568
+ results: z.ZodArray<z.ZodObject<{
569
+ id: z.ZodString;
570
+ type: z.ZodString;
571
+ }, z.core.$strip>>;
572
+ }, z.core.$strip>>>;
573
+ }, z.core.$strip>, Record<string, never>, {
574
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
575
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
576
+ authorize(headers: Headers): void;
577
+ }, {
578
+ id: string;
579
+ properties: Record<string, string | null>;
580
+ createdAt?: string | undefined;
581
+ updatedAt?: string | undefined;
582
+ archived?: boolean | undefined;
583
+ associations?: Record<string, {
584
+ results: {
585
+ id: string;
586
+ type: string;
587
+ }[];
588
+ }> | undefined;
589
+ }> & {
590
+ slug: "getContact";
591
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
592
+ firstSearchPropertyName: z.ZodString;
593
+ firstSearchPropertyValue: z.ZodString;
594
+ secondSearchPropertyName: z.ZodOptional<z.ZodString>;
595
+ secondSearchPropertyValue: z.ZodOptional<z.ZodString>;
596
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
597
+ }, z.core.$strip>, z.ZodObject<{
598
+ total: z.ZodNumber;
599
+ results: z.ZodArray<z.ZodObject<{
600
+ id: z.ZodString;
601
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
602
+ createdAt: z.ZodOptional<z.ZodString>;
603
+ updatedAt: z.ZodOptional<z.ZodString>;
604
+ archived: z.ZodOptional<z.ZodBoolean>;
605
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
606
+ results: z.ZodArray<z.ZodObject<{
607
+ id: z.ZodString;
608
+ type: z.ZodString;
609
+ }, z.core.$strip>>;
610
+ }, z.core.$strip>>>;
611
+ }, z.core.$strip>>;
612
+ }, z.core.$strip>, Record<string, never>, {
613
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
614
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
615
+ authorize(headers: Headers): void;
616
+ }, {
617
+ total: number;
618
+ results: {
619
+ id: string;
620
+ properties: Record<string, string | null>;
621
+ createdAt?: string | undefined;
622
+ updatedAt?: string | undefined;
623
+ archived?: boolean | undefined;
624
+ associations?: Record<string, {
625
+ results: {
626
+ id: string;
627
+ type: string;
628
+ }[];
629
+ }> | undefined;
630
+ }[];
631
+ }> & {
632
+ slug: "findContact";
633
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
634
+ email: z.ZodString;
635
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
636
+ }, z.core.$strip>, z.ZodObject<{
637
+ id: z.ZodString;
638
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
639
+ createdAt: z.ZodOptional<z.ZodString>;
640
+ updatedAt: z.ZodOptional<z.ZodString>;
641
+ archived: z.ZodOptional<z.ZodBoolean>;
642
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
643
+ results: z.ZodArray<z.ZodObject<{
644
+ id: z.ZodString;
645
+ type: z.ZodString;
646
+ }, z.core.$strip>>;
647
+ }, z.core.$strip>>>;
648
+ }, z.core.$strip>, Record<string, never>, {
649
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
650
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
651
+ authorize(headers: Headers): void;
652
+ }, {
653
+ id: string;
654
+ properties: Record<string, string | null>;
655
+ createdAt?: string | undefined;
656
+ updatedAt?: string | undefined;
657
+ archived?: boolean | undefined;
658
+ associations?: Record<string, {
659
+ results: {
660
+ id: string;
661
+ type: string;
662
+ }[];
663
+ }> | undefined;
664
+ }> & {
665
+ slug: "createOrUpdateContact";
666
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
667
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
668
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
669
+ }, z.core.$strip>, z.ZodObject<{
670
+ id: z.ZodString;
671
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
672
+ createdAt: z.ZodOptional<z.ZodString>;
673
+ updatedAt: z.ZodOptional<z.ZodString>;
674
+ archived: z.ZodOptional<z.ZodBoolean>;
675
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
676
+ results: z.ZodArray<z.ZodObject<{
677
+ id: z.ZodString;
678
+ type: z.ZodString;
679
+ }, z.core.$strip>>;
680
+ }, z.core.$strip>>>;
681
+ }, z.core.$strip>, Record<string, never>, {
682
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
683
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
684
+ authorize(headers: Headers): void;
685
+ }, {
686
+ id: string;
687
+ properties: Record<string, string | null>;
688
+ createdAt?: string | undefined;
689
+ updatedAt?: string | undefined;
690
+ archived?: boolean | undefined;
691
+ associations?: Record<string, {
692
+ results: {
693
+ id: string;
694
+ type: string;
695
+ }[];
696
+ }> | undefined;
697
+ }> & {
698
+ slug: "createCompany";
699
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
700
+ companyId: z.ZodString;
701
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
702
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
703
+ }, z.core.$strip>, z.ZodObject<{
704
+ id: z.ZodString;
705
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
706
+ createdAt: z.ZodOptional<z.ZodString>;
707
+ updatedAt: z.ZodOptional<z.ZodString>;
708
+ archived: z.ZodOptional<z.ZodBoolean>;
709
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
710
+ results: z.ZodArray<z.ZodObject<{
711
+ id: z.ZodString;
712
+ type: z.ZodString;
713
+ }, z.core.$strip>>;
714
+ }, z.core.$strip>>>;
715
+ }, z.core.$strip>, Record<string, never>, {
716
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
717
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
718
+ authorize(headers: Headers): void;
719
+ }, {
720
+ id: string;
721
+ properties: Record<string, string | null>;
722
+ createdAt?: string | undefined;
723
+ updatedAt?: string | undefined;
724
+ archived?: boolean | undefined;
725
+ associations?: Record<string, {
726
+ results: {
727
+ id: string;
728
+ type: string;
729
+ }[];
730
+ }> | undefined;
731
+ }> & {
732
+ slug: "updateCompany";
733
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
734
+ companyId: z.ZodString;
735
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
736
+ }, z.core.$strip>, z.ZodObject<{
737
+ id: z.ZodString;
738
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
739
+ createdAt: z.ZodOptional<z.ZodString>;
740
+ updatedAt: z.ZodOptional<z.ZodString>;
741
+ archived: z.ZodOptional<z.ZodBoolean>;
742
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
743
+ results: z.ZodArray<z.ZodObject<{
744
+ id: z.ZodString;
745
+ type: z.ZodString;
746
+ }, z.core.$strip>>;
747
+ }, z.core.$strip>>>;
748
+ }, z.core.$strip>, Record<string, never>, {
749
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
750
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
751
+ authorize(headers: Headers): void;
752
+ }, {
753
+ id: string;
754
+ properties: Record<string, string | null>;
755
+ createdAt?: string | undefined;
756
+ updatedAt?: string | undefined;
757
+ archived?: boolean | undefined;
758
+ associations?: Record<string, {
759
+ results: {
760
+ id: string;
761
+ type: string;
762
+ }[];
763
+ }> | undefined;
764
+ }> & {
765
+ slug: "getCompany";
766
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
767
+ firstSearchPropertyName: z.ZodString;
768
+ firstSearchPropertyValue: z.ZodString;
769
+ secondSearchPropertyName: z.ZodOptional<z.ZodString>;
770
+ secondSearchPropertyValue: z.ZodOptional<z.ZodString>;
771
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
772
+ }, z.core.$strip>, z.ZodObject<{
773
+ total: z.ZodNumber;
774
+ results: z.ZodArray<z.ZodObject<{
775
+ id: z.ZodString;
776
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
777
+ createdAt: z.ZodOptional<z.ZodString>;
778
+ updatedAt: z.ZodOptional<z.ZodString>;
779
+ archived: z.ZodOptional<z.ZodBoolean>;
780
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
781
+ results: z.ZodArray<z.ZodObject<{
782
+ id: z.ZodString;
783
+ type: z.ZodString;
784
+ }, z.core.$strip>>;
785
+ }, z.core.$strip>>>;
786
+ }, z.core.$strip>>;
787
+ }, z.core.$strip>, Record<string, never>, {
788
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
789
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
790
+ authorize(headers: Headers): void;
791
+ }, {
792
+ total: number;
793
+ results: {
794
+ id: string;
795
+ properties: Record<string, string | null>;
796
+ createdAt?: string | undefined;
797
+ updatedAt?: string | undefined;
798
+ archived?: boolean | undefined;
799
+ associations?: Record<string, {
800
+ results: {
801
+ id: string;
802
+ type: string;
803
+ }[];
804
+ }> | undefined;
805
+ }[];
806
+ }> & {
807
+ slug: "findCompany";
808
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
809
+ pipelineId: z.ZodString;
810
+ pipelineStageId: z.ZodString;
811
+ dealname: z.ZodString;
812
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
813
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
814
+ }, z.core.$strip>, z.ZodObject<{
815
+ id: z.ZodString;
816
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
817
+ createdAt: z.ZodOptional<z.ZodString>;
818
+ updatedAt: z.ZodOptional<z.ZodString>;
819
+ archived: z.ZodOptional<z.ZodBoolean>;
820
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
821
+ results: z.ZodArray<z.ZodObject<{
822
+ id: z.ZodString;
823
+ type: z.ZodString;
824
+ }, z.core.$strip>>;
825
+ }, z.core.$strip>>>;
826
+ }, z.core.$strip>, Record<string, never>, {
827
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
828
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
829
+ authorize(headers: Headers): void;
830
+ }, {
831
+ id: string;
832
+ properties: Record<string, string | null>;
833
+ createdAt?: string | undefined;
834
+ updatedAt?: string | undefined;
835
+ archived?: boolean | undefined;
836
+ associations?: Record<string, {
837
+ results: {
838
+ id: string;
839
+ type: string;
840
+ }[];
841
+ }> | undefined;
842
+ }> & {
843
+ slug: "createDeal";
844
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
845
+ dealId: z.ZodString;
846
+ dealname: z.ZodOptional<z.ZodString>;
847
+ pipelineId: z.ZodOptional<z.ZodString>;
848
+ pipelineStageId: z.ZodOptional<z.ZodString>;
849
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
850
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
851
+ }, z.core.$strip>, z.ZodObject<{
852
+ id: z.ZodString;
853
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
854
+ createdAt: z.ZodOptional<z.ZodString>;
855
+ updatedAt: z.ZodOptional<z.ZodString>;
856
+ archived: z.ZodOptional<z.ZodBoolean>;
857
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
858
+ results: z.ZodArray<z.ZodObject<{
859
+ id: z.ZodString;
860
+ type: z.ZodString;
861
+ }, z.core.$strip>>;
862
+ }, z.core.$strip>>>;
863
+ }, z.core.$strip>, Record<string, never>, {
864
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
865
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
866
+ authorize(headers: Headers): void;
867
+ }, {
868
+ id: string;
869
+ properties: Record<string, string | null>;
870
+ createdAt?: string | undefined;
871
+ updatedAt?: string | undefined;
872
+ archived?: boolean | undefined;
873
+ associations?: Record<string, {
874
+ results: {
875
+ id: string;
876
+ type: string;
877
+ }[];
878
+ }> | undefined;
879
+ }> & {
880
+ slug: "updateDeal";
881
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
882
+ dealId: z.ZodString;
883
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
884
+ }, z.core.$strip>, z.ZodObject<{
885
+ id: z.ZodString;
886
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
887
+ createdAt: z.ZodOptional<z.ZodString>;
888
+ updatedAt: z.ZodOptional<z.ZodString>;
889
+ archived: z.ZodOptional<z.ZodBoolean>;
890
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
891
+ results: z.ZodArray<z.ZodObject<{
892
+ id: z.ZodString;
893
+ type: z.ZodString;
894
+ }, z.core.$strip>>;
895
+ }, z.core.$strip>>>;
896
+ }, z.core.$strip>, Record<string, never>, {
897
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
898
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
899
+ authorize(headers: Headers): void;
900
+ }, {
901
+ id: string;
902
+ properties: Record<string, string | null>;
903
+ createdAt?: string | undefined;
904
+ updatedAt?: string | undefined;
905
+ archived?: boolean | undefined;
906
+ associations?: Record<string, {
907
+ results: {
908
+ id: string;
909
+ type: string;
910
+ }[];
911
+ }> | undefined;
912
+ }> & {
913
+ slug: "getDeal";
914
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
915
+ firstSearchPropertyName: z.ZodString;
916
+ firstSearchPropertyValue: z.ZodString;
917
+ secondSearchPropertyName: z.ZodOptional<z.ZodString>;
918
+ secondSearchPropertyValue: z.ZodOptional<z.ZodString>;
919
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
920
+ }, z.core.$strip>, z.ZodObject<{
921
+ total: z.ZodNumber;
922
+ results: z.ZodArray<z.ZodObject<{
923
+ id: z.ZodString;
924
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
925
+ createdAt: z.ZodOptional<z.ZodString>;
926
+ updatedAt: z.ZodOptional<z.ZodString>;
927
+ archived: z.ZodOptional<z.ZodBoolean>;
928
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
929
+ results: z.ZodArray<z.ZodObject<{
930
+ id: z.ZodString;
931
+ type: z.ZodString;
932
+ }, z.core.$strip>>;
933
+ }, z.core.$strip>>>;
934
+ }, z.core.$strip>>;
935
+ }, z.core.$strip>, Record<string, never>, {
936
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
937
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
938
+ authorize(headers: Headers): void;
939
+ }, {
940
+ total: number;
941
+ results: {
942
+ id: string;
943
+ properties: Record<string, string | null>;
944
+ createdAt?: string | undefined;
945
+ updatedAt?: string | undefined;
946
+ archived?: boolean | undefined;
947
+ associations?: Record<string, {
948
+ results: {
949
+ id: string;
950
+ type: string;
951
+ }[];
952
+ }> | undefined;
953
+ }[];
954
+ }> & {
955
+ slug: "findDeal";
956
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
957
+ pipelineId: z.ZodString;
958
+ pipelineStageId: z.ZodString;
959
+ ticketName: z.ZodString;
960
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
961
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
962
+ }, z.core.$strip>, z.ZodObject<{
963
+ id: z.ZodString;
964
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
965
+ createdAt: z.ZodOptional<z.ZodString>;
966
+ updatedAt: z.ZodOptional<z.ZodString>;
967
+ archived: z.ZodOptional<z.ZodBoolean>;
968
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
969
+ results: z.ZodArray<z.ZodObject<{
970
+ id: z.ZodString;
971
+ type: z.ZodString;
972
+ }, z.core.$strip>>;
973
+ }, z.core.$strip>>>;
974
+ }, z.core.$strip>, Record<string, never>, {
975
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
976
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
977
+ authorize(headers: Headers): void;
978
+ }, {
979
+ id: string;
980
+ properties: Record<string, string | null>;
981
+ createdAt?: string | undefined;
982
+ updatedAt?: string | undefined;
983
+ archived?: boolean | undefined;
984
+ associations?: Record<string, {
985
+ results: {
986
+ id: string;
987
+ type: string;
988
+ }[];
989
+ }> | undefined;
990
+ }> & {
991
+ slug: "createTicket";
992
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
993
+ ticketId: z.ZodString;
994
+ ticketName: z.ZodOptional<z.ZodString>;
995
+ pipelineId: z.ZodOptional<z.ZodString>;
996
+ pipelineStageId: z.ZodOptional<z.ZodString>;
997
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
998
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
999
+ }, z.core.$strip>, z.ZodObject<{
1000
+ id: z.ZodString;
1001
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1002
+ createdAt: z.ZodOptional<z.ZodString>;
1003
+ updatedAt: z.ZodOptional<z.ZodString>;
1004
+ archived: z.ZodOptional<z.ZodBoolean>;
1005
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1006
+ results: z.ZodArray<z.ZodObject<{
1007
+ id: z.ZodString;
1008
+ type: z.ZodString;
1009
+ }, z.core.$strip>>;
1010
+ }, z.core.$strip>>>;
1011
+ }, z.core.$strip>, Record<string, never>, {
1012
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1013
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1014
+ authorize(headers: Headers): void;
1015
+ }, {
1016
+ id: string;
1017
+ properties: Record<string, string | null>;
1018
+ createdAt?: string | undefined;
1019
+ updatedAt?: string | undefined;
1020
+ archived?: boolean | undefined;
1021
+ associations?: Record<string, {
1022
+ results: {
1023
+ id: string;
1024
+ type: string;
1025
+ }[];
1026
+ }> | undefined;
1027
+ }> & {
1028
+ slug: "updateTicket";
1029
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1030
+ ticketId: z.ZodString;
1031
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1032
+ }, z.core.$strip>, z.ZodObject<{
1033
+ id: z.ZodString;
1034
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1035
+ createdAt: z.ZodOptional<z.ZodString>;
1036
+ updatedAt: z.ZodOptional<z.ZodString>;
1037
+ archived: z.ZodOptional<z.ZodBoolean>;
1038
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1039
+ results: z.ZodArray<z.ZodObject<{
1040
+ id: z.ZodString;
1041
+ type: z.ZodString;
1042
+ }, z.core.$strip>>;
1043
+ }, z.core.$strip>>>;
1044
+ }, z.core.$strip>, Record<string, never>, {
1045
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1046
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1047
+ authorize(headers: Headers): void;
1048
+ }, {
1049
+ id: string;
1050
+ properties: Record<string, string | null>;
1051
+ createdAt?: string | undefined;
1052
+ updatedAt?: string | undefined;
1053
+ archived?: boolean | undefined;
1054
+ associations?: Record<string, {
1055
+ results: {
1056
+ id: string;
1057
+ type: string;
1058
+ }[];
1059
+ }> | undefined;
1060
+ }> & {
1061
+ slug: "getTicket";
1062
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1063
+ firstSearchPropertyName: z.ZodString;
1064
+ firstSearchPropertyValue: z.ZodString;
1065
+ secondSearchPropertyName: z.ZodOptional<z.ZodString>;
1066
+ secondSearchPropertyValue: z.ZodOptional<z.ZodString>;
1067
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1068
+ }, z.core.$strip>, z.ZodObject<{
1069
+ total: z.ZodNumber;
1070
+ results: z.ZodArray<z.ZodObject<{
1071
+ id: z.ZodString;
1072
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1073
+ createdAt: z.ZodOptional<z.ZodString>;
1074
+ updatedAt: z.ZodOptional<z.ZodString>;
1075
+ archived: z.ZodOptional<z.ZodBoolean>;
1076
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1077
+ results: z.ZodArray<z.ZodObject<{
1078
+ id: z.ZodString;
1079
+ type: z.ZodString;
1080
+ }, z.core.$strip>>;
1081
+ }, z.core.$strip>>>;
1082
+ }, z.core.$strip>>;
1083
+ }, z.core.$strip>, Record<string, never>, {
1084
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1085
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1086
+ authorize(headers: Headers): void;
1087
+ }, {
1088
+ total: number;
1089
+ results: {
1090
+ id: string;
1091
+ properties: Record<string, string | null>;
1092
+ createdAt?: string | undefined;
1093
+ updatedAt?: string | undefined;
1094
+ archived?: boolean | undefined;
1095
+ associations?: Record<string, {
1096
+ results: {
1097
+ id: string;
1098
+ type: string;
1099
+ }[];
1100
+ }> | undefined;
1101
+ }[];
1102
+ }> & {
1103
+ slug: "findTicket";
1104
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1105
+ productId: z.ZodString;
1106
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
1107
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1108
+ }, z.core.$strip>, z.ZodObject<{
1109
+ id: z.ZodString;
1110
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1111
+ createdAt: z.ZodOptional<z.ZodString>;
1112
+ updatedAt: z.ZodOptional<z.ZodString>;
1113
+ archived: z.ZodOptional<z.ZodBoolean>;
1114
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1115
+ results: z.ZodArray<z.ZodObject<{
1116
+ id: z.ZodString;
1117
+ type: z.ZodString;
1118
+ }, z.core.$strip>>;
1119
+ }, z.core.$strip>>>;
1120
+ }, z.core.$strip>, Record<string, never>, {
1121
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1122
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1123
+ authorize(headers: Headers): void;
1124
+ }, {
1125
+ id: string;
1126
+ properties: Record<string, string | null>;
1127
+ createdAt?: string | undefined;
1128
+ updatedAt?: string | undefined;
1129
+ archived?: boolean | undefined;
1130
+ associations?: Record<string, {
1131
+ results: {
1132
+ id: string;
1133
+ type: string;
1134
+ }[];
1135
+ }> | undefined;
1136
+ }> & {
1137
+ slug: "createLineItem";
1138
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1139
+ lineItemId: z.ZodString;
1140
+ productId: z.ZodOptional<z.ZodString>;
1141
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
1142
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1143
+ }, z.core.$strip>, z.ZodObject<{
1144
+ id: z.ZodString;
1145
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1146
+ createdAt: z.ZodOptional<z.ZodString>;
1147
+ updatedAt: z.ZodOptional<z.ZodString>;
1148
+ archived: z.ZodOptional<z.ZodBoolean>;
1149
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1150
+ results: z.ZodArray<z.ZodObject<{
1151
+ id: z.ZodString;
1152
+ type: z.ZodString;
1153
+ }, z.core.$strip>>;
1154
+ }, z.core.$strip>>>;
1155
+ }, z.core.$strip>, Record<string, never>, {
1156
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1157
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1158
+ authorize(headers: Headers): void;
1159
+ }, {
1160
+ id: string;
1161
+ properties: Record<string, string | null>;
1162
+ createdAt?: string | undefined;
1163
+ updatedAt?: string | undefined;
1164
+ archived?: boolean | undefined;
1165
+ associations?: Record<string, {
1166
+ results: {
1167
+ id: string;
1168
+ type: string;
1169
+ }[];
1170
+ }> | undefined;
1171
+ }> & {
1172
+ slug: "updateLineItem";
1173
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1174
+ lineItemId: z.ZodString;
1175
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1176
+ }, z.core.$strip>, z.ZodObject<{
1177
+ id: z.ZodString;
1178
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1179
+ createdAt: z.ZodOptional<z.ZodString>;
1180
+ updatedAt: z.ZodOptional<z.ZodString>;
1181
+ archived: z.ZodOptional<z.ZodBoolean>;
1182
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1183
+ results: z.ZodArray<z.ZodObject<{
1184
+ id: z.ZodString;
1185
+ type: z.ZodString;
1186
+ }, z.core.$strip>>;
1187
+ }, z.core.$strip>>>;
1188
+ }, z.core.$strip>, Record<string, never>, {
1189
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1190
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1191
+ authorize(headers: Headers): void;
1192
+ }, {
1193
+ id: string;
1194
+ properties: Record<string, string | null>;
1195
+ createdAt?: string | undefined;
1196
+ updatedAt?: string | undefined;
1197
+ archived?: boolean | undefined;
1198
+ associations?: Record<string, {
1199
+ results: {
1200
+ id: string;
1201
+ type: string;
1202
+ }[];
1203
+ }> | undefined;
1204
+ }> & {
1205
+ slug: "getLineItem";
1206
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1207
+ firstSearchPropertyName: z.ZodString;
1208
+ firstSearchPropertyValue: z.ZodString;
1209
+ secondSearchPropertyName: z.ZodOptional<z.ZodString>;
1210
+ secondSearchPropertyValue: z.ZodOptional<z.ZodString>;
1211
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1212
+ }, z.core.$strip>, z.ZodObject<{
1213
+ total: z.ZodNumber;
1214
+ results: z.ZodArray<z.ZodObject<{
1215
+ id: z.ZodString;
1216
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1217
+ createdAt: z.ZodOptional<z.ZodString>;
1218
+ updatedAt: z.ZodOptional<z.ZodString>;
1219
+ archived: z.ZodOptional<z.ZodBoolean>;
1220
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1221
+ results: z.ZodArray<z.ZodObject<{
1222
+ id: z.ZodString;
1223
+ type: z.ZodString;
1224
+ }, z.core.$strip>>;
1225
+ }, z.core.$strip>>>;
1226
+ }, z.core.$strip>>;
1227
+ }, z.core.$strip>, Record<string, never>, {
1228
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1229
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1230
+ authorize(headers: Headers): void;
1231
+ }, {
1232
+ total: number;
1233
+ results: {
1234
+ id: string;
1235
+ properties: Record<string, string | null>;
1236
+ createdAt?: string | undefined;
1237
+ updatedAt?: string | undefined;
1238
+ archived?: boolean | undefined;
1239
+ associations?: Record<string, {
1240
+ results: {
1241
+ id: string;
1242
+ type: string;
1243
+ }[];
1244
+ }> | undefined;
1245
+ }[];
1246
+ }> & {
1247
+ slug: "findLineItem";
1248
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1249
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
1250
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1251
+ }, z.core.$strip>, z.ZodObject<{
1252
+ id: z.ZodString;
1253
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1254
+ createdAt: z.ZodOptional<z.ZodString>;
1255
+ updatedAt: z.ZodOptional<z.ZodString>;
1256
+ archived: z.ZodOptional<z.ZodBoolean>;
1257
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1258
+ results: z.ZodArray<z.ZodObject<{
1259
+ id: z.ZodString;
1260
+ type: z.ZodString;
1261
+ }, z.core.$strip>>;
1262
+ }, z.core.$strip>>>;
1263
+ }, z.core.$strip>, Record<string, never>, {
1264
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1265
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1266
+ authorize(headers: Headers): void;
1267
+ }, {
1268
+ id: string;
1269
+ properties: Record<string, string | null>;
1270
+ createdAt?: string | undefined;
1271
+ updatedAt?: string | undefined;
1272
+ archived?: boolean | undefined;
1273
+ associations?: Record<string, {
1274
+ results: {
1275
+ id: string;
1276
+ type: string;
1277
+ }[];
1278
+ }> | undefined;
1279
+ }> & {
1280
+ slug: "createProduct";
1281
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1282
+ productId: z.ZodString;
1283
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
1284
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1285
+ }, z.core.$strip>, z.ZodObject<{
1286
+ id: z.ZodString;
1287
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1288
+ createdAt: z.ZodOptional<z.ZodString>;
1289
+ updatedAt: z.ZodOptional<z.ZodString>;
1290
+ archived: z.ZodOptional<z.ZodBoolean>;
1291
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1292
+ results: z.ZodArray<z.ZodObject<{
1293
+ id: z.ZodString;
1294
+ type: z.ZodString;
1295
+ }, z.core.$strip>>;
1296
+ }, z.core.$strip>>>;
1297
+ }, z.core.$strip>, Record<string, never>, {
1298
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1299
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1300
+ authorize(headers: Headers): void;
1301
+ }, {
1302
+ id: string;
1303
+ properties: Record<string, string | null>;
1304
+ createdAt?: string | undefined;
1305
+ updatedAt?: string | undefined;
1306
+ archived?: boolean | undefined;
1307
+ associations?: Record<string, {
1308
+ results: {
1309
+ id: string;
1310
+ type: string;
1311
+ }[];
1312
+ }> | undefined;
1313
+ }> & {
1314
+ slug: "updateProduct";
1315
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1316
+ productId: z.ZodString;
1317
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1318
+ }, z.core.$strip>, z.ZodObject<{
1319
+ id: z.ZodString;
1320
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1321
+ createdAt: z.ZodOptional<z.ZodString>;
1322
+ updatedAt: z.ZodOptional<z.ZodString>;
1323
+ archived: z.ZodOptional<z.ZodBoolean>;
1324
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1325
+ results: z.ZodArray<z.ZodObject<{
1326
+ id: z.ZodString;
1327
+ type: z.ZodString;
1328
+ }, z.core.$strip>>;
1329
+ }, z.core.$strip>>>;
1330
+ }, z.core.$strip>, Record<string, never>, {
1331
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1332
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1333
+ authorize(headers: Headers): void;
1334
+ }, {
1335
+ id: string;
1336
+ properties: Record<string, string | null>;
1337
+ createdAt?: string | undefined;
1338
+ updatedAt?: string | undefined;
1339
+ archived?: boolean | undefined;
1340
+ associations?: Record<string, {
1341
+ results: {
1342
+ id: string;
1343
+ type: string;
1344
+ }[];
1345
+ }> | undefined;
1346
+ }> & {
1347
+ slug: "getProduct";
1348
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1349
+ firstSearchPropertyName: z.ZodString;
1350
+ firstSearchPropertyValue: z.ZodString;
1351
+ secondSearchPropertyName: z.ZodOptional<z.ZodString>;
1352
+ secondSearchPropertyValue: z.ZodOptional<z.ZodString>;
1353
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1354
+ }, z.core.$strip>, z.ZodObject<{
1355
+ total: z.ZodNumber;
1356
+ results: z.ZodArray<z.ZodObject<{
1357
+ id: z.ZodString;
1358
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1359
+ createdAt: z.ZodOptional<z.ZodString>;
1360
+ updatedAt: z.ZodOptional<z.ZodString>;
1361
+ archived: z.ZodOptional<z.ZodBoolean>;
1362
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1363
+ results: z.ZodArray<z.ZodObject<{
1364
+ id: z.ZodString;
1365
+ type: z.ZodString;
1366
+ }, z.core.$strip>>;
1367
+ }, z.core.$strip>>>;
1368
+ }, z.core.$strip>>;
1369
+ }, z.core.$strip>, Record<string, never>, {
1370
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1371
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1372
+ authorize(headers: Headers): void;
1373
+ }, {
1374
+ total: number;
1375
+ results: {
1376
+ id: string;
1377
+ properties: Record<string, string | null>;
1378
+ createdAt?: string | undefined;
1379
+ updatedAt?: string | undefined;
1380
+ archived?: boolean | undefined;
1381
+ associations?: Record<string, {
1382
+ results: {
1383
+ id: string;
1384
+ type: string;
1385
+ }[];
1386
+ }> | undefined;
1387
+ }[];
1388
+ }> & {
1389
+ slug: "findProduct";
1390
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1391
+ customObjectType: z.ZodString;
1392
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
1393
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1394
+ }, z.core.$strip>, z.ZodObject<{
1395
+ id: z.ZodString;
1396
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1397
+ createdAt: z.ZodOptional<z.ZodString>;
1398
+ updatedAt: z.ZodOptional<z.ZodString>;
1399
+ archived: z.ZodOptional<z.ZodBoolean>;
1400
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1401
+ results: z.ZodArray<z.ZodObject<{
1402
+ id: z.ZodString;
1403
+ type: z.ZodString;
1404
+ }, z.core.$strip>>;
1405
+ }, z.core.$strip>>>;
1406
+ }, z.core.$strip>, Record<string, never>, {
1407
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1408
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1409
+ authorize(headers: Headers): void;
1410
+ }, {
1411
+ id: string;
1412
+ properties: Record<string, string | null>;
1413
+ createdAt?: string | undefined;
1414
+ updatedAt?: string | undefined;
1415
+ archived?: boolean | undefined;
1416
+ associations?: Record<string, {
1417
+ results: {
1418
+ id: string;
1419
+ type: string;
1420
+ }[];
1421
+ }> | undefined;
1422
+ }> & {
1423
+ slug: "createCustomObject";
1424
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1425
+ customObjectType: z.ZodString;
1426
+ customObjectId: z.ZodString;
1427
+ objectProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
1428
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1429
+ }, z.core.$strip>, z.ZodObject<{
1430
+ id: z.ZodString;
1431
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1432
+ createdAt: z.ZodOptional<z.ZodString>;
1433
+ updatedAt: z.ZodOptional<z.ZodString>;
1434
+ archived: z.ZodOptional<z.ZodBoolean>;
1435
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1436
+ results: z.ZodArray<z.ZodObject<{
1437
+ id: z.ZodString;
1438
+ type: z.ZodString;
1439
+ }, z.core.$strip>>;
1440
+ }, z.core.$strip>>>;
1441
+ }, z.core.$strip>, Record<string, never>, {
1442
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1443
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1444
+ authorize(headers: Headers): void;
1445
+ }, {
1446
+ id: string;
1447
+ properties: Record<string, string | null>;
1448
+ createdAt?: string | undefined;
1449
+ updatedAt?: string | undefined;
1450
+ archived?: boolean | undefined;
1451
+ associations?: Record<string, {
1452
+ results: {
1453
+ id: string;
1454
+ type: string;
1455
+ }[];
1456
+ }> | undefined;
1457
+ }> & {
1458
+ slug: "updateCustomObject";
1459
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1460
+ customObjectType: z.ZodString;
1461
+ customObjectId: z.ZodString;
1462
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1463
+ }, z.core.$strip>, z.ZodObject<{
1464
+ id: z.ZodString;
1465
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1466
+ createdAt: z.ZodOptional<z.ZodString>;
1467
+ updatedAt: z.ZodOptional<z.ZodString>;
1468
+ archived: z.ZodOptional<z.ZodBoolean>;
1469
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1470
+ results: z.ZodArray<z.ZodObject<{
1471
+ id: z.ZodString;
1472
+ type: z.ZodString;
1473
+ }, z.core.$strip>>;
1474
+ }, z.core.$strip>>>;
1475
+ }, z.core.$strip>, Record<string, never>, {
1476
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1477
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1478
+ authorize(headers: Headers): void;
1479
+ }, {
1480
+ id: string;
1481
+ properties: Record<string, string | null>;
1482
+ createdAt?: string | undefined;
1483
+ updatedAt?: string | undefined;
1484
+ archived?: boolean | undefined;
1485
+ associations?: Record<string, {
1486
+ results: {
1487
+ id: string;
1488
+ type: string;
1489
+ }[];
1490
+ }> | undefined;
1491
+ }> & {
1492
+ slug: "getCustomObject";
1493
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1494
+ customObjectType: z.ZodString;
1495
+ firstSearchPropertyName: z.ZodString;
1496
+ firstSearchPropertyValue: z.ZodString;
1497
+ secondSearchPropertyName: z.ZodOptional<z.ZodString>;
1498
+ secondSearchPropertyValue: z.ZodOptional<z.ZodString>;
1499
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1500
+ }, z.core.$strip>, z.ZodObject<{
1501
+ total: z.ZodNumber;
1502
+ results: z.ZodArray<z.ZodObject<{
1503
+ id: z.ZodString;
1504
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1505
+ createdAt: z.ZodOptional<z.ZodString>;
1506
+ updatedAt: z.ZodOptional<z.ZodString>;
1507
+ archived: z.ZodOptional<z.ZodBoolean>;
1508
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1509
+ results: z.ZodArray<z.ZodObject<{
1510
+ id: z.ZodString;
1511
+ type: z.ZodString;
1512
+ }, z.core.$strip>>;
1513
+ }, z.core.$strip>>>;
1514
+ }, z.core.$strip>>;
1515
+ }, z.core.$strip>, Record<string, never>, {
1516
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1517
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1518
+ authorize(headers: Headers): void;
1519
+ }, {
1520
+ total: number;
1521
+ results: {
1522
+ id: string;
1523
+ properties: Record<string, string | null>;
1524
+ createdAt?: string | undefined;
1525
+ updatedAt?: string | undefined;
1526
+ archived?: boolean | undefined;
1527
+ associations?: Record<string, {
1528
+ results: {
1529
+ id: string;
1530
+ type: string;
1531
+ }[];
1532
+ }> | undefined;
1533
+ }[];
1534
+ }> & {
1535
+ slug: "findCustomObject";
1536
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1537
+ fromObjectType: z.ZodUnion<readonly [z.ZodEnum<{
1538
+ contacts: "contacts";
1539
+ companies: "companies";
1540
+ deals: "deals";
1541
+ tickets: "tickets";
1542
+ notes: "notes";
1543
+ emails: "emails";
1544
+ calls: "calls";
1545
+ meetings: "meetings";
1546
+ tasks: "tasks";
1547
+ line_items: "line_items";
1548
+ products: "products";
1549
+ }>, z.ZodTemplateLiteral<`2-${number}`>]>;
1550
+ fromObjectId: z.ZodString;
1551
+ toObjectType: z.ZodUnion<readonly [z.ZodEnum<{
1552
+ contacts: "contacts";
1553
+ companies: "companies";
1554
+ deals: "deals";
1555
+ tickets: "tickets";
1556
+ notes: "notes";
1557
+ emails: "emails";
1558
+ calls: "calls";
1559
+ meetings: "meetings";
1560
+ tasks: "tasks";
1561
+ line_items: "line_items";
1562
+ products: "products";
1563
+ }>, z.ZodTemplateLiteral<`2-${number}`>]>;
1564
+ associationType: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
1565
+ toObjectIds: z.ZodArray<z.ZodString>;
1566
+ }, z.core.$strip>, z.ZodObject<{
1567
+ totalAssociations: z.ZodNumber;
1568
+ batchCount: z.ZodNumber;
1569
+ results: z.ZodArray<z.ZodObject<{
1570
+ fromObjectId: z.ZodCoercedString<unknown>;
1571
+ toObjectId: z.ZodCoercedString<unknown>;
1572
+ labels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
1573
+ }, z.core.$strip>>;
1574
+ errors: z.ZodArray<z.ZodObject<{
1575
+ message: z.ZodString;
1576
+ category: z.ZodOptional<z.ZodString>;
1577
+ }, z.core.$strip>>;
1578
+ }, z.core.$strip>, Record<string, never>, {
1579
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1580
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1581
+ authorize(headers: Headers): void;
1582
+ }, {
1583
+ totalAssociations: number;
1584
+ batchCount: number;
1585
+ results: {
1586
+ fromObjectId: string;
1587
+ toObjectId: string;
1588
+ labels: string[];
1589
+ }[];
1590
+ errors: {
1591
+ message: string;
1592
+ category?: string | undefined;
1593
+ }[];
1594
+ }> & {
1595
+ slug: "createAssociations";
1596
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1597
+ fromObjectType: z.ZodUnion<readonly [z.ZodEnum<{
1598
+ contacts: "contacts";
1599
+ companies: "companies";
1600
+ deals: "deals";
1601
+ tickets: "tickets";
1602
+ notes: "notes";
1603
+ emails: "emails";
1604
+ calls: "calls";
1605
+ meetings: "meetings";
1606
+ tasks: "tasks";
1607
+ line_items: "line_items";
1608
+ products: "products";
1609
+ }>, z.ZodTemplateLiteral<`2-${number}`>]>;
1610
+ fromObjectId: z.ZodString;
1611
+ toObjectType: z.ZodUnion<readonly [z.ZodEnum<{
1612
+ contacts: "contacts";
1613
+ companies: "companies";
1614
+ deals: "deals";
1615
+ tickets: "tickets";
1616
+ notes: "notes";
1617
+ emails: "emails";
1618
+ calls: "calls";
1619
+ meetings: "meetings";
1620
+ tasks: "tasks";
1621
+ line_items: "line_items";
1622
+ products: "products";
1623
+ }>, z.ZodTemplateLiteral<`2-${number}`>]>;
1624
+ associationType: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
1625
+ toObjectIds: z.ZodArray<z.ZodString>;
1626
+ }, z.core.$strip>, z.ZodObject<{
1627
+ success: z.ZodLiteral<true>;
1628
+ totalAssociations: z.ZodNumber;
1629
+ batchCount: z.ZodNumber;
1630
+ }, z.core.$strip>, Record<string, never>, {
1631
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1632
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1633
+ authorize(headers: Headers): void;
1634
+ }, {
1635
+ success: true;
1636
+ totalAssociations: number;
1637
+ batchCount: number;
1638
+ }> & {
1639
+ slug: "removeAssociations";
1640
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1641
+ fromObjectId: z.ZodString;
1642
+ fromObjectType: z.ZodUnion<readonly [z.ZodEnum<{
1643
+ contacts: "contacts";
1644
+ companies: "companies";
1645
+ deals: "deals";
1646
+ tickets: "tickets";
1647
+ notes: "notes";
1648
+ emails: "emails";
1649
+ calls: "calls";
1650
+ meetings: "meetings";
1651
+ tasks: "tasks";
1652
+ line_items: "line_items";
1653
+ products: "products";
1654
+ }>, z.ZodTemplateLiteral<`2-${number}`>]>;
1655
+ toObjectType: z.ZodUnion<readonly [z.ZodEnum<{
1656
+ contacts: "contacts";
1657
+ companies: "companies";
1658
+ deals: "deals";
1659
+ tickets: "tickets";
1660
+ notes: "notes";
1661
+ emails: "emails";
1662
+ calls: "calls";
1663
+ meetings: "meetings";
1664
+ tasks: "tasks";
1665
+ line_items: "line_items";
1666
+ products: "products";
1667
+ }>, z.ZodTemplateLiteral<`2-${number}`>]>;
1668
+ }, z.core.$strip>, z.ZodObject<{
1669
+ results: z.ZodArray<z.ZodObject<{
1670
+ toObjectId: z.ZodCoercedString<unknown>;
1671
+ associationTypes: z.ZodArray<z.ZodObject<{
1672
+ category: z.ZodString;
1673
+ typeId: z.ZodNumber;
1674
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1675
+ }, z.core.$strip>>;
1676
+ }, z.core.$strip>>;
1677
+ }, z.core.$strip>, Record<string, never>, {
1678
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1679
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1680
+ authorize(headers: Headers): void;
1681
+ }, {
1682
+ results: {
1683
+ toObjectId: string;
1684
+ associationTypes: {
1685
+ category: string;
1686
+ typeId: number;
1687
+ label?: string | null | undefined;
1688
+ }[];
1689
+ }[];
1690
+ }> & {
1691
+ slug: "findAssociations";
1692
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1693
+ listId: z.ZodString;
1694
+ email: z.ZodString;
1695
+ }, z.core.$strip>, z.ZodObject<{
1696
+ contactId: z.ZodString;
1697
+ recordsIdsAdded: z.ZodArray<z.ZodString>;
1698
+ recordIdsRemoved: z.ZodArray<z.ZodString>;
1699
+ recordIdsMissing: z.ZodArray<z.ZodString>;
1700
+ }, z.core.$strip>, Record<string, never>, {
1701
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1702
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1703
+ authorize(headers: Headers): void;
1704
+ }, {
1705
+ contactId: string;
1706
+ recordsIdsAdded: string[];
1707
+ recordIdsRemoved: string[];
1708
+ recordIdsMissing: string[];
1709
+ }> & {
1710
+ slug: "addContactToList";
1711
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1712
+ listId: z.ZodString;
1713
+ email: z.ZodString;
1714
+ }, z.core.$strip>, z.ZodObject<{
1715
+ contactId: z.ZodString;
1716
+ recordsIdsAdded: z.ZodArray<z.ZodString>;
1717
+ recordIdsRemoved: z.ZodArray<z.ZodString>;
1718
+ recordIdsMissing: z.ZodArray<z.ZodString>;
1719
+ }, z.core.$strip>, Record<string, never>, {
1720
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1721
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1722
+ authorize(headers: Headers): void;
1723
+ }, {
1724
+ contactId: string;
1725
+ recordsIdsAdded: string[];
1726
+ recordIdsRemoved: string[];
1727
+ recordIdsMissing: string[];
1728
+ }> & {
1729
+ slug: "removeContactFromList";
1730
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1731
+ email: z.ZodEmail;
1732
+ }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
1733
+ id: z.ZodString;
1734
+ email: z.ZodOptional<z.ZodString>;
1735
+ firstName: z.ZodOptional<z.ZodString>;
1736
+ lastName: z.ZodOptional<z.ZodString>;
1737
+ userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1738
+ type: z.ZodOptional<z.ZodString>;
1739
+ archived: z.ZodOptional<z.ZodBoolean>;
1740
+ createdAt: z.ZodOptional<z.ZodString>;
1741
+ updatedAt: z.ZodOptional<z.ZodString>;
1742
+ teams: z.ZodOptional<z.ZodArray<z.ZodObject<{
1743
+ id: z.ZodString;
1744
+ name: z.ZodString;
1745
+ primary: z.ZodOptional<z.ZodBoolean>;
1746
+ }, z.core.$strip>>>;
1747
+ }, z.core.$strip>>, Record<string, never>, {
1748
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1749
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1750
+ authorize(headers: Headers): void;
1751
+ }, {
1752
+ id: string;
1753
+ email?: string | undefined;
1754
+ firstName?: string | undefined;
1755
+ lastName?: string | undefined;
1756
+ userId?: number | null | undefined;
1757
+ type?: string | undefined;
1758
+ archived?: boolean | undefined;
1759
+ createdAt?: string | undefined;
1760
+ updatedAt?: string | undefined;
1761
+ teams?: {
1762
+ id: string;
1763
+ name: string;
1764
+ primary?: boolean | undefined;
1765
+ }[] | undefined;
1766
+ } | null> & {
1767
+ slug: "getOwnerByEmail";
1768
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1769
+ ownerId: z.ZodString;
1770
+ }, z.core.$strip>, z.ZodObject<{
1771
+ id: z.ZodString;
1772
+ email: z.ZodOptional<z.ZodString>;
1773
+ firstName: z.ZodOptional<z.ZodString>;
1774
+ lastName: z.ZodOptional<z.ZodString>;
1775
+ userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1776
+ type: z.ZodOptional<z.ZodString>;
1777
+ archived: z.ZodOptional<z.ZodBoolean>;
1778
+ createdAt: z.ZodOptional<z.ZodString>;
1779
+ updatedAt: z.ZodOptional<z.ZodString>;
1780
+ teams: z.ZodOptional<z.ZodArray<z.ZodObject<{
1781
+ id: z.ZodString;
1782
+ name: z.ZodString;
1783
+ primary: z.ZodOptional<z.ZodBoolean>;
1784
+ }, z.core.$strip>>>;
1785
+ }, z.core.$strip>, Record<string, never>, {
1786
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1787
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1788
+ authorize(headers: Headers): void;
1789
+ }, {
1790
+ id: string;
1791
+ email?: string | undefined;
1792
+ firstName?: string | undefined;
1793
+ lastName?: string | undefined;
1794
+ userId?: number | null | undefined;
1795
+ type?: string | undefined;
1796
+ archived?: boolean | undefined;
1797
+ createdAt?: string | undefined;
1798
+ updatedAt?: string | undefined;
1799
+ teams?: {
1800
+ id: string;
1801
+ name: string;
1802
+ primary?: boolean | undefined;
1803
+ }[] | undefined;
1804
+ }> & {
1805
+ slug: "getOwnerById";
1806
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1807
+ objectType: z.ZodEnum<{
1808
+ deals: "deals";
1809
+ tickets: "tickets";
1810
+ }>;
1811
+ pipelineId: z.ZodString;
1812
+ stageId: z.ZodString;
1813
+ }, z.core.$strip>, z.ZodObject<{
1814
+ id: z.ZodString;
1815
+ label: z.ZodString;
1816
+ displayOrder: z.ZodNumber;
1817
+ archived: z.ZodOptional<z.ZodBoolean>;
1818
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1819
+ createdAt: z.ZodOptional<z.ZodString>;
1820
+ updatedAt: z.ZodOptional<z.ZodString>;
1821
+ }, z.core.$strip>, Record<string, never>, {
1822
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1823
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1824
+ authorize(headers: Headers): void;
1825
+ }, {
1826
+ id: string;
1827
+ label: string;
1828
+ displayOrder: number;
1829
+ archived?: boolean | undefined;
1830
+ metadata?: Record<string, string> | undefined;
1831
+ createdAt?: string | undefined;
1832
+ updatedAt?: string | undefined;
1833
+ }> & {
1834
+ slug: "getPipelineStageDetails";
1835
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1836
+ folderId: z.ZodString;
1837
+ fileName: z.ZodString;
1838
+ accessLevel: z.ZodEnum<{
1839
+ PUBLIC_INDEXABLE: "PUBLIC_INDEXABLE";
1840
+ PUBLIC_NOT_INDEXABLE: "PUBLIC_NOT_INDEXABLE";
1841
+ PRIVATE: "PRIVATE";
1842
+ }>;
1843
+ file: z.ZodObject<{
1844
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1845
+ name: z.ZodOptional<z.ZodString>;
1846
+ }, z.core.$strip>;
1847
+ }, z.core.$strip>, z.ZodObject<{
1848
+ id: z.ZodString;
1849
+ name: z.ZodOptional<z.ZodString>;
1850
+ path: z.ZodOptional<z.ZodString>;
1851
+ url: z.ZodOptional<z.ZodString>;
1852
+ defaultHostingUrl: z.ZodOptional<z.ZodString>;
1853
+ size: z.ZodOptional<z.ZodNumber>;
1854
+ type: z.ZodOptional<z.ZodString>;
1855
+ extension: z.ZodOptional<z.ZodString>;
1856
+ access: z.ZodOptional<z.ZodString>;
1857
+ parentFolderId: z.ZodOptional<z.ZodString>;
1858
+ createdAt: z.ZodOptional<z.ZodString>;
1859
+ updatedAt: z.ZodOptional<z.ZodString>;
1860
+ }, z.core.$strip>, Record<string, never>, {
1861
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1862
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1863
+ authorize(headers: Headers): void;
1864
+ }, {
1865
+ id: string;
1866
+ name?: string | undefined;
1867
+ path?: string | undefined;
1868
+ url?: string | undefined;
1869
+ defaultHostingUrl?: string | undefined;
1870
+ size?: number | undefined;
1871
+ type?: string | undefined;
1872
+ extension?: string | undefined;
1873
+ access?: string | undefined;
1874
+ parentFolderId?: string | undefined;
1875
+ createdAt?: string | undefined;
1876
+ updatedAt?: string | undefined;
1877
+ }> & {
1878
+ slug: "uploadFile";
1879
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1880
+ workflowId: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
1881
+ email: z.ZodEmail;
1882
+ }, z.core.$strip>, z.ZodObject<{
1883
+ workflowId: z.ZodNumber;
1884
+ email: z.ZodString;
1885
+ enrolled: z.ZodLiteral<true>;
1886
+ }, z.core.$strip>, Record<string, never>, {
1887
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1888
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1889
+ authorize(headers: Headers): void;
1890
+ }, {
1891
+ workflowId: number;
1892
+ email: string;
1893
+ enrolled: true;
1894
+ }> & {
1895
+ slug: "addContactToWorkflow";
1896
+ }, import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
1897
+ email: z.ZodEmail;
1898
+ }, z.core.$strip>, z.ZodObject<{
1899
+ results: z.ZodArray<z.ZodObject<{
1900
+ subscriptionId: z.ZodCoercedString<unknown>;
1901
+ subscriptionName: z.ZodOptional<z.ZodString>;
1902
+ status: z.ZodString;
1903
+ channel: z.ZodString;
1904
+ timestamp: z.ZodOptional<z.ZodString>;
1905
+ }, z.core.$strip>>;
1906
+ }, z.core.$strip>, Record<string, never>, {
1907
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1908
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1909
+ authorize(headers: Headers): void;
1910
+ }, {
1911
+ results: {
1912
+ subscriptionId: string;
1913
+ status: string;
1914
+ channel: string;
1915
+ subscriptionName?: string | undefined;
1916
+ timestamp?: string | undefined;
1917
+ }[];
1918
+ }> & {
1919
+ slug: "removeEmailSubscription";
1920
+ }, import("frogbot/pieces").CustomApiCallAction<Record<string, never>, {
1921
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1922
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1923
+ authorize(headers: Headers): void;
1924
+ }>];
1925
+ readonly triggers: readonly [{
1926
+ slug: string;
1927
+ label?: string;
1928
+ description: string;
1929
+ input: z.ZodObject<{
1930
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1931
+ }, z.core.$strip>;
1932
+ output?: z.ZodObject<{
1933
+ id: z.ZodString;
1934
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
1935
+ createdAt: z.ZodOptional<z.ZodString>;
1936
+ updatedAt: z.ZodOptional<z.ZodString>;
1937
+ archived: z.ZodOptional<z.ZodBoolean>;
1938
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1939
+ results: z.ZodArray<z.ZodObject<{
1940
+ id: z.ZodString;
1941
+ type: z.ZodString;
1942
+ }, z.core.$strip>>;
1943
+ }, z.core.$strip>>>;
1944
+ }, z.core.$strip> | undefined;
1945
+ sample?: {
1946
+ id: string;
1947
+ properties: Record<string, string | null>;
1948
+ createdAt?: string | undefined;
1949
+ updatedAt?: string | undefined;
1950
+ archived?: boolean | undefined;
1951
+ associations?: Record<string, {
1952
+ results: {
1953
+ id: string;
1954
+ type: string;
1955
+ }[];
1956
+ }> | undefined;
1957
+ } | undefined;
1958
+ } & {
1959
+ type: "polling";
1960
+ schedule?: string;
1961
+ run(args: {
1962
+ input: {
1963
+ additionalPropertiesToRetrieve?: string[] | undefined;
1964
+ };
1965
+ options: Record<string, never>;
1966
+ client: {
1967
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
1968
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
1969
+ authorize(headers: Headers): void;
1970
+ };
1971
+ req: import("frogbot/pieces").FrogBotRequest;
1972
+ } & {
1973
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1974
+ }): Promise<{
1975
+ events: {
1976
+ id: string;
1977
+ properties: Record<string, string | null>;
1978
+ createdAt?: string | undefined;
1979
+ updatedAt?: string | undefined;
1980
+ archived?: boolean | undefined;
1981
+ associations?: Record<string, {
1982
+ results: {
1983
+ id: string;
1984
+ type: string;
1985
+ }[];
1986
+ }> | undefined;
1987
+ }[];
1988
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1989
+ }>;
1990
+ } & {
1991
+ slug: "newContact";
1992
+ }, {
1993
+ slug: string;
1994
+ label?: string;
1995
+ description: string;
1996
+ input: z.ZodObject<{
1997
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
1998
+ }, z.core.$strip>;
1999
+ output?: z.ZodObject<{
2000
+ id: z.ZodString;
2001
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2002
+ createdAt: z.ZodOptional<z.ZodString>;
2003
+ updatedAt: z.ZodOptional<z.ZodString>;
2004
+ archived: z.ZodOptional<z.ZodBoolean>;
2005
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2006
+ results: z.ZodArray<z.ZodObject<{
2007
+ id: z.ZodString;
2008
+ type: z.ZodString;
2009
+ }, z.core.$strip>>;
2010
+ }, z.core.$strip>>>;
2011
+ }, z.core.$strip> | undefined;
2012
+ sample?: {
2013
+ id: string;
2014
+ properties: Record<string, string | null>;
2015
+ createdAt?: string | undefined;
2016
+ updatedAt?: string | undefined;
2017
+ archived?: boolean | undefined;
2018
+ associations?: Record<string, {
2019
+ results: {
2020
+ id: string;
2021
+ type: string;
2022
+ }[];
2023
+ }> | undefined;
2024
+ } | undefined;
2025
+ } & {
2026
+ type: "polling";
2027
+ schedule?: string;
2028
+ run(args: {
2029
+ input: {
2030
+ additionalPropertiesToRetrieve?: string[] | undefined;
2031
+ };
2032
+ options: Record<string, never>;
2033
+ client: {
2034
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2035
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2036
+ authorize(headers: Headers): void;
2037
+ };
2038
+ req: import("frogbot/pieces").FrogBotRequest;
2039
+ } & {
2040
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2041
+ }): Promise<{
2042
+ events: {
2043
+ id: string;
2044
+ properties: Record<string, string | null>;
2045
+ createdAt?: string | undefined;
2046
+ updatedAt?: string | undefined;
2047
+ archived?: boolean | undefined;
2048
+ associations?: Record<string, {
2049
+ results: {
2050
+ id: string;
2051
+ type: string;
2052
+ }[];
2053
+ }> | undefined;
2054
+ }[];
2055
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2056
+ }>;
2057
+ } & {
2058
+ slug: "newOrUpdatedContact";
2059
+ }, {
2060
+ slug: string;
2061
+ label?: string;
2062
+ description: string;
2063
+ input: z.ZodObject<{
2064
+ propertyName: z.ZodString;
2065
+ }, z.core.$strip>;
2066
+ output?: z.ZodObject<{
2067
+ id: z.ZodString;
2068
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2069
+ createdAt: z.ZodOptional<z.ZodString>;
2070
+ updatedAt: z.ZodOptional<z.ZodString>;
2071
+ archived: z.ZodOptional<z.ZodBoolean>;
2072
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2073
+ results: z.ZodArray<z.ZodObject<{
2074
+ id: z.ZodString;
2075
+ type: z.ZodString;
2076
+ }, z.core.$strip>>;
2077
+ }, z.core.$strip>>>;
2078
+ }, z.core.$strip> | undefined;
2079
+ sample?: {
2080
+ id: string;
2081
+ properties: Record<string, string | null>;
2082
+ createdAt?: string | undefined;
2083
+ updatedAt?: string | undefined;
2084
+ archived?: boolean | undefined;
2085
+ associations?: Record<string, {
2086
+ results: {
2087
+ id: string;
2088
+ type: string;
2089
+ }[];
2090
+ }> | undefined;
2091
+ } | undefined;
2092
+ } & {
2093
+ type: "polling";
2094
+ schedule?: string;
2095
+ run(args: {
2096
+ input: {
2097
+ propertyName: string;
2098
+ };
2099
+ options: Record<string, never>;
2100
+ client: {
2101
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2102
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2103
+ authorize(headers: Headers): void;
2104
+ };
2105
+ req: import("frogbot/pieces").FrogBotRequest;
2106
+ } & {
2107
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2108
+ }): Promise<{
2109
+ events: {
2110
+ id: string;
2111
+ properties: Record<string, string | null>;
2112
+ createdAt?: string | undefined;
2113
+ updatedAt?: string | undefined;
2114
+ archived?: boolean | undefined;
2115
+ associations?: Record<string, {
2116
+ results: {
2117
+ id: string;
2118
+ type: string;
2119
+ }[];
2120
+ }> | undefined;
2121
+ }[];
2122
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2123
+ }>;
2124
+ } & {
2125
+ slug: "newContactPropertyChange";
2126
+ }, {
2127
+ slug: string;
2128
+ label?: string;
2129
+ description: string;
2130
+ input: z.ZodObject<{
2131
+ listId: z.ZodString;
2132
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
2133
+ }, z.core.$strip>;
2134
+ output?: z.ZodObject<{
2135
+ id: z.ZodString;
2136
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2137
+ createdAt: z.ZodOptional<z.ZodString>;
2138
+ updatedAt: z.ZodOptional<z.ZodString>;
2139
+ archived: z.ZodOptional<z.ZodBoolean>;
2140
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2141
+ results: z.ZodArray<z.ZodObject<{
2142
+ id: z.ZodString;
2143
+ type: z.ZodString;
2144
+ }, z.core.$strip>>;
2145
+ }, z.core.$strip>>>;
2146
+ membershipTimestamp: z.ZodString;
2147
+ }, z.core.$strip> | undefined;
2148
+ sample?: {
2149
+ id: string;
2150
+ properties: Record<string, string | null>;
2151
+ membershipTimestamp: string;
2152
+ createdAt?: string | undefined;
2153
+ updatedAt?: string | undefined;
2154
+ archived?: boolean | undefined;
2155
+ associations?: Record<string, {
2156
+ results: {
2157
+ id: string;
2158
+ type: string;
2159
+ }[];
2160
+ }> | undefined;
2161
+ } | undefined;
2162
+ } & {
2163
+ type: "polling";
2164
+ schedule?: string;
2165
+ run(args: {
2166
+ input: {
2167
+ listId: string;
2168
+ additionalPropertiesToRetrieve?: string[] | undefined;
2169
+ };
2170
+ options: Record<string, never>;
2171
+ client: {
2172
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2173
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2174
+ authorize(headers: Headers): void;
2175
+ };
2176
+ req: import("frogbot/pieces").FrogBotRequest;
2177
+ } & {
2178
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2179
+ }): Promise<{
2180
+ events: {
2181
+ id: string;
2182
+ properties: Record<string, string | null>;
2183
+ membershipTimestamp: string;
2184
+ createdAt?: string | undefined;
2185
+ updatedAt?: string | undefined;
2186
+ archived?: boolean | undefined;
2187
+ associations?: Record<string, {
2188
+ results: {
2189
+ id: string;
2190
+ type: string;
2191
+ }[];
2192
+ }> | undefined;
2193
+ }[];
2194
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2195
+ }>;
2196
+ } & {
2197
+ slug: "newContactInList";
2198
+ }, {
2199
+ slug: string;
2200
+ label?: string;
2201
+ description: string;
2202
+ input: z.ZodObject<{
2203
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
2204
+ }, z.core.$strip>;
2205
+ output?: z.ZodObject<{
2206
+ id: z.ZodString;
2207
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2208
+ createdAt: z.ZodOptional<z.ZodString>;
2209
+ updatedAt: z.ZodOptional<z.ZodString>;
2210
+ archived: z.ZodOptional<z.ZodBoolean>;
2211
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2212
+ results: z.ZodArray<z.ZodObject<{
2213
+ id: z.ZodString;
2214
+ type: z.ZodString;
2215
+ }, z.core.$strip>>;
2216
+ }, z.core.$strip>>>;
2217
+ }, z.core.$strip> | undefined;
2218
+ sample?: {
2219
+ id: string;
2220
+ properties: Record<string, string | null>;
2221
+ createdAt?: string | undefined;
2222
+ updatedAt?: string | undefined;
2223
+ archived?: boolean | undefined;
2224
+ associations?: Record<string, {
2225
+ results: {
2226
+ id: string;
2227
+ type: string;
2228
+ }[];
2229
+ }> | undefined;
2230
+ } | undefined;
2231
+ } & {
2232
+ type: "polling";
2233
+ schedule?: string;
2234
+ run(args: {
2235
+ input: {
2236
+ additionalPropertiesToRetrieve?: string[] | undefined;
2237
+ };
2238
+ options: Record<string, never>;
2239
+ client: {
2240
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2241
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2242
+ authorize(headers: Headers): void;
2243
+ };
2244
+ req: import("frogbot/pieces").FrogBotRequest;
2245
+ } & {
2246
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2247
+ }): Promise<{
2248
+ events: {
2249
+ id: string;
2250
+ properties: Record<string, string | null>;
2251
+ createdAt?: string | undefined;
2252
+ updatedAt?: string | undefined;
2253
+ archived?: boolean | undefined;
2254
+ associations?: Record<string, {
2255
+ results: {
2256
+ id: string;
2257
+ type: string;
2258
+ }[];
2259
+ }> | undefined;
2260
+ }[];
2261
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2262
+ }>;
2263
+ } & {
2264
+ slug: "newCompany";
2265
+ }, {
2266
+ slug: string;
2267
+ label?: string;
2268
+ description: string;
2269
+ input: z.ZodObject<{
2270
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
2271
+ }, z.core.$strip>;
2272
+ output?: z.ZodObject<{
2273
+ id: z.ZodString;
2274
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2275
+ createdAt: z.ZodOptional<z.ZodString>;
2276
+ updatedAt: z.ZodOptional<z.ZodString>;
2277
+ archived: z.ZodOptional<z.ZodBoolean>;
2278
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2279
+ results: z.ZodArray<z.ZodObject<{
2280
+ id: z.ZodString;
2281
+ type: z.ZodString;
2282
+ }, z.core.$strip>>;
2283
+ }, z.core.$strip>>>;
2284
+ }, z.core.$strip> | undefined;
2285
+ sample?: {
2286
+ id: string;
2287
+ properties: Record<string, string | null>;
2288
+ createdAt?: string | undefined;
2289
+ updatedAt?: string | undefined;
2290
+ archived?: boolean | undefined;
2291
+ associations?: Record<string, {
2292
+ results: {
2293
+ id: string;
2294
+ type: string;
2295
+ }[];
2296
+ }> | undefined;
2297
+ } | undefined;
2298
+ } & {
2299
+ type: "polling";
2300
+ schedule?: string;
2301
+ run(args: {
2302
+ input: {
2303
+ additionalPropertiesToRetrieve?: string[] | undefined;
2304
+ };
2305
+ options: Record<string, never>;
2306
+ client: {
2307
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2308
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2309
+ authorize(headers: Headers): void;
2310
+ };
2311
+ req: import("frogbot/pieces").FrogBotRequest;
2312
+ } & {
2313
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2314
+ }): Promise<{
2315
+ events: {
2316
+ id: string;
2317
+ properties: Record<string, string | null>;
2318
+ createdAt?: string | undefined;
2319
+ updatedAt?: string | undefined;
2320
+ archived?: boolean | undefined;
2321
+ associations?: Record<string, {
2322
+ results: {
2323
+ id: string;
2324
+ type: string;
2325
+ }[];
2326
+ }> | undefined;
2327
+ }[];
2328
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2329
+ }>;
2330
+ } & {
2331
+ slug: "newOrUpdatedCompany";
2332
+ }, {
2333
+ slug: string;
2334
+ label?: string;
2335
+ description: string;
2336
+ input: z.ZodObject<{
2337
+ propertyName: z.ZodString;
2338
+ }, z.core.$strip>;
2339
+ output?: z.ZodObject<{
2340
+ id: z.ZodString;
2341
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2342
+ createdAt: z.ZodOptional<z.ZodString>;
2343
+ updatedAt: z.ZodOptional<z.ZodString>;
2344
+ archived: z.ZodOptional<z.ZodBoolean>;
2345
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2346
+ results: z.ZodArray<z.ZodObject<{
2347
+ id: z.ZodString;
2348
+ type: z.ZodString;
2349
+ }, z.core.$strip>>;
2350
+ }, z.core.$strip>>>;
2351
+ }, z.core.$strip> | undefined;
2352
+ sample?: {
2353
+ id: string;
2354
+ properties: Record<string, string | null>;
2355
+ createdAt?: string | undefined;
2356
+ updatedAt?: string | undefined;
2357
+ archived?: boolean | undefined;
2358
+ associations?: Record<string, {
2359
+ results: {
2360
+ id: string;
2361
+ type: string;
2362
+ }[];
2363
+ }> | undefined;
2364
+ } | undefined;
2365
+ } & {
2366
+ type: "polling";
2367
+ schedule?: string;
2368
+ run(args: {
2369
+ input: {
2370
+ propertyName: string;
2371
+ };
2372
+ options: Record<string, never>;
2373
+ client: {
2374
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2375
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2376
+ authorize(headers: Headers): void;
2377
+ };
2378
+ req: import("frogbot/pieces").FrogBotRequest;
2379
+ } & {
2380
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2381
+ }): Promise<{
2382
+ events: {
2383
+ id: string;
2384
+ properties: Record<string, string | null>;
2385
+ createdAt?: string | undefined;
2386
+ updatedAt?: string | undefined;
2387
+ archived?: boolean | undefined;
2388
+ associations?: Record<string, {
2389
+ results: {
2390
+ id: string;
2391
+ type: string;
2392
+ }[];
2393
+ }> | undefined;
2394
+ }[];
2395
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2396
+ }>;
2397
+ } & {
2398
+ slug: "newCompanyPropertyChange";
2399
+ }, {
2400
+ slug: string;
2401
+ label?: string;
2402
+ description: string;
2403
+ input: z.ZodObject<{
2404
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
2405
+ }, z.core.$strip>;
2406
+ output?: z.ZodObject<{
2407
+ id: z.ZodString;
2408
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2409
+ createdAt: z.ZodOptional<z.ZodString>;
2410
+ updatedAt: z.ZodOptional<z.ZodString>;
2411
+ archived: z.ZodOptional<z.ZodBoolean>;
2412
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2413
+ results: z.ZodArray<z.ZodObject<{
2414
+ id: z.ZodString;
2415
+ type: z.ZodString;
2416
+ }, z.core.$strip>>;
2417
+ }, z.core.$strip>>>;
2418
+ }, z.core.$strip> | undefined;
2419
+ sample?: {
2420
+ id: string;
2421
+ properties: Record<string, string | null>;
2422
+ createdAt?: string | undefined;
2423
+ updatedAt?: string | undefined;
2424
+ archived?: boolean | undefined;
2425
+ associations?: Record<string, {
2426
+ results: {
2427
+ id: string;
2428
+ type: string;
2429
+ }[];
2430
+ }> | undefined;
2431
+ } | undefined;
2432
+ } & {
2433
+ type: "polling";
2434
+ schedule?: string;
2435
+ run(args: {
2436
+ input: {
2437
+ additionalPropertiesToRetrieve?: string[] | undefined;
2438
+ };
2439
+ options: Record<string, never>;
2440
+ client: {
2441
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2442
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2443
+ authorize(headers: Headers): void;
2444
+ };
2445
+ req: import("frogbot/pieces").FrogBotRequest;
2446
+ } & {
2447
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2448
+ }): Promise<{
2449
+ events: {
2450
+ id: string;
2451
+ properties: Record<string, string | null>;
2452
+ createdAt?: string | undefined;
2453
+ updatedAt?: string | undefined;
2454
+ archived?: boolean | undefined;
2455
+ associations?: Record<string, {
2456
+ results: {
2457
+ id: string;
2458
+ type: string;
2459
+ }[];
2460
+ }> | undefined;
2461
+ }[];
2462
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2463
+ }>;
2464
+ } & {
2465
+ slug: "newDeal";
2466
+ }, {
2467
+ slug: string;
2468
+ label?: string;
2469
+ description: string;
2470
+ input: z.ZodObject<{
2471
+ propertyName: z.ZodString;
2472
+ }, z.core.$strip>;
2473
+ output?: z.ZodObject<{
2474
+ id: z.ZodString;
2475
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2476
+ createdAt: z.ZodOptional<z.ZodString>;
2477
+ updatedAt: z.ZodOptional<z.ZodString>;
2478
+ archived: z.ZodOptional<z.ZodBoolean>;
2479
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2480
+ results: z.ZodArray<z.ZodObject<{
2481
+ id: z.ZodString;
2482
+ type: z.ZodString;
2483
+ }, z.core.$strip>>;
2484
+ }, z.core.$strip>>>;
2485
+ }, z.core.$strip> | undefined;
2486
+ sample?: {
2487
+ id: string;
2488
+ properties: Record<string, string | null>;
2489
+ createdAt?: string | undefined;
2490
+ updatedAt?: string | undefined;
2491
+ archived?: boolean | undefined;
2492
+ associations?: Record<string, {
2493
+ results: {
2494
+ id: string;
2495
+ type: string;
2496
+ }[];
2497
+ }> | undefined;
2498
+ } | undefined;
2499
+ } & {
2500
+ type: "polling";
2501
+ schedule?: string;
2502
+ run(args: {
2503
+ input: {
2504
+ propertyName: string;
2505
+ };
2506
+ options: Record<string, never>;
2507
+ client: {
2508
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2509
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2510
+ authorize(headers: Headers): void;
2511
+ };
2512
+ req: import("frogbot/pieces").FrogBotRequest;
2513
+ } & {
2514
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2515
+ }): Promise<{
2516
+ events: {
2517
+ id: string;
2518
+ properties: Record<string, string | null>;
2519
+ createdAt?: string | undefined;
2520
+ updatedAt?: string | undefined;
2521
+ archived?: boolean | undefined;
2522
+ associations?: Record<string, {
2523
+ results: {
2524
+ id: string;
2525
+ type: string;
2526
+ }[];
2527
+ }> | undefined;
2528
+ }[];
2529
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2530
+ }>;
2531
+ } & {
2532
+ slug: "newDealPropertyChange";
2533
+ }, {
2534
+ slug: string;
2535
+ label?: string;
2536
+ description: string;
2537
+ input: z.ZodObject<{
2538
+ pipelineId: z.ZodString;
2539
+ stageId: z.ZodString;
2540
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
2541
+ }, z.core.$strip>;
2542
+ output?: z.ZodObject<{
2543
+ id: z.ZodString;
2544
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2545
+ createdAt: z.ZodOptional<z.ZodString>;
2546
+ updatedAt: z.ZodOptional<z.ZodString>;
2547
+ archived: z.ZodOptional<z.ZodBoolean>;
2548
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2549
+ results: z.ZodArray<z.ZodObject<{
2550
+ id: z.ZodString;
2551
+ type: z.ZodString;
2552
+ }, z.core.$strip>>;
2553
+ }, z.core.$strip>>>;
2554
+ }, z.core.$strip> | undefined;
2555
+ sample?: {
2556
+ id: string;
2557
+ properties: Record<string, string | null>;
2558
+ createdAt?: string | undefined;
2559
+ updatedAt?: string | undefined;
2560
+ archived?: boolean | undefined;
2561
+ associations?: Record<string, {
2562
+ results: {
2563
+ id: string;
2564
+ type: string;
2565
+ }[];
2566
+ }> | undefined;
2567
+ } | undefined;
2568
+ } & {
2569
+ type: "polling";
2570
+ schedule?: string;
2571
+ run(args: {
2572
+ input: {
2573
+ pipelineId: string;
2574
+ stageId: string;
2575
+ additionalPropertiesToRetrieve?: string[] | undefined;
2576
+ };
2577
+ options: Record<string, never>;
2578
+ client: {
2579
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2580
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2581
+ authorize(headers: Headers): void;
2582
+ };
2583
+ req: import("frogbot/pieces").FrogBotRequest;
2584
+ } & {
2585
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2586
+ }): Promise<{
2587
+ events: {
2588
+ id: string;
2589
+ properties: Record<string, string | null>;
2590
+ createdAt?: string | undefined;
2591
+ updatedAt?: string | undefined;
2592
+ archived?: boolean | undefined;
2593
+ associations?: Record<string, {
2594
+ results: {
2595
+ id: string;
2596
+ type: string;
2597
+ }[];
2598
+ }> | undefined;
2599
+ }[];
2600
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2601
+ }>;
2602
+ } & {
2603
+ slug: "dealStageUpdated";
2604
+ }, {
2605
+ slug: string;
2606
+ label?: string;
2607
+ description: string;
2608
+ input: z.ZodObject<{
2609
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
2610
+ }, z.core.$strip>;
2611
+ output?: z.ZodObject<{
2612
+ id: z.ZodString;
2613
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2614
+ createdAt: z.ZodOptional<z.ZodString>;
2615
+ updatedAt: z.ZodOptional<z.ZodString>;
2616
+ archived: z.ZodOptional<z.ZodBoolean>;
2617
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2618
+ results: z.ZodArray<z.ZodObject<{
2619
+ id: z.ZodString;
2620
+ type: z.ZodString;
2621
+ }, z.core.$strip>>;
2622
+ }, z.core.$strip>>>;
2623
+ }, z.core.$strip> | undefined;
2624
+ sample?: {
2625
+ id: string;
2626
+ properties: Record<string, string | null>;
2627
+ createdAt?: string | undefined;
2628
+ updatedAt?: string | undefined;
2629
+ archived?: boolean | undefined;
2630
+ associations?: Record<string, {
2631
+ results: {
2632
+ id: string;
2633
+ type: string;
2634
+ }[];
2635
+ }> | undefined;
2636
+ } | undefined;
2637
+ } & {
2638
+ type: "polling";
2639
+ schedule?: string;
2640
+ run(args: {
2641
+ input: {
2642
+ additionalPropertiesToRetrieve?: string[] | undefined;
2643
+ };
2644
+ options: Record<string, never>;
2645
+ client: {
2646
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2647
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2648
+ authorize(headers: Headers): void;
2649
+ };
2650
+ req: import("frogbot/pieces").FrogBotRequest;
2651
+ } & {
2652
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2653
+ }): Promise<{
2654
+ events: {
2655
+ id: string;
2656
+ properties: Record<string, string | null>;
2657
+ createdAt?: string | undefined;
2658
+ updatedAt?: string | undefined;
2659
+ archived?: boolean | undefined;
2660
+ associations?: Record<string, {
2661
+ results: {
2662
+ id: string;
2663
+ type: string;
2664
+ }[];
2665
+ }> | undefined;
2666
+ }[];
2667
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2668
+ }>;
2669
+ } & {
2670
+ slug: "newTicket";
2671
+ }, {
2672
+ slug: string;
2673
+ label?: string;
2674
+ description: string;
2675
+ input: z.ZodObject<{
2676
+ propertyName: z.ZodString;
2677
+ }, z.core.$strip>;
2678
+ output?: z.ZodObject<{
2679
+ id: z.ZodString;
2680
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2681
+ createdAt: z.ZodOptional<z.ZodString>;
2682
+ updatedAt: z.ZodOptional<z.ZodString>;
2683
+ archived: z.ZodOptional<z.ZodBoolean>;
2684
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2685
+ results: z.ZodArray<z.ZodObject<{
2686
+ id: z.ZodString;
2687
+ type: z.ZodString;
2688
+ }, z.core.$strip>>;
2689
+ }, z.core.$strip>>>;
2690
+ }, z.core.$strip> | undefined;
2691
+ sample?: {
2692
+ id: string;
2693
+ properties: Record<string, string | null>;
2694
+ createdAt?: string | undefined;
2695
+ updatedAt?: string | undefined;
2696
+ archived?: boolean | undefined;
2697
+ associations?: Record<string, {
2698
+ results: {
2699
+ id: string;
2700
+ type: string;
2701
+ }[];
2702
+ }> | undefined;
2703
+ } | undefined;
2704
+ } & {
2705
+ type: "polling";
2706
+ schedule?: string;
2707
+ run(args: {
2708
+ input: {
2709
+ propertyName: string;
2710
+ };
2711
+ options: Record<string, never>;
2712
+ client: {
2713
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2714
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2715
+ authorize(headers: Headers): void;
2716
+ };
2717
+ req: import("frogbot/pieces").FrogBotRequest;
2718
+ } & {
2719
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2720
+ }): Promise<{
2721
+ events: {
2722
+ id: string;
2723
+ properties: Record<string, string | null>;
2724
+ createdAt?: string | undefined;
2725
+ updatedAt?: string | undefined;
2726
+ archived?: boolean | undefined;
2727
+ associations?: Record<string, {
2728
+ results: {
2729
+ id: string;
2730
+ type: string;
2731
+ }[];
2732
+ }> | undefined;
2733
+ }[];
2734
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2735
+ }>;
2736
+ } & {
2737
+ slug: "newTicketPropertyChange";
2738
+ }, {
2739
+ slug: string;
2740
+ label?: string;
2741
+ description: string;
2742
+ input: z.ZodObject<{
2743
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
2744
+ }, z.core.$strip>;
2745
+ output?: z.ZodObject<{
2746
+ id: z.ZodString;
2747
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2748
+ createdAt: z.ZodOptional<z.ZodString>;
2749
+ updatedAt: z.ZodOptional<z.ZodString>;
2750
+ archived: z.ZodOptional<z.ZodBoolean>;
2751
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2752
+ results: z.ZodArray<z.ZodObject<{
2753
+ id: z.ZodString;
2754
+ type: z.ZodString;
2755
+ }, z.core.$strip>>;
2756
+ }, z.core.$strip>>>;
2757
+ }, z.core.$strip> | undefined;
2758
+ sample?: {
2759
+ id: string;
2760
+ properties: Record<string, string | null>;
2761
+ createdAt?: string | undefined;
2762
+ updatedAt?: string | undefined;
2763
+ archived?: boolean | undefined;
2764
+ associations?: Record<string, {
2765
+ results: {
2766
+ id: string;
2767
+ type: string;
2768
+ }[];
2769
+ }> | undefined;
2770
+ } | undefined;
2771
+ } & {
2772
+ type: "polling";
2773
+ schedule?: string;
2774
+ run(args: {
2775
+ input: {
2776
+ additionalPropertiesToRetrieve?: string[] | undefined;
2777
+ };
2778
+ options: Record<string, never>;
2779
+ client: {
2780
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2781
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2782
+ authorize(headers: Headers): void;
2783
+ };
2784
+ req: import("frogbot/pieces").FrogBotRequest;
2785
+ } & {
2786
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2787
+ }): Promise<{
2788
+ events: {
2789
+ id: string;
2790
+ properties: Record<string, string | null>;
2791
+ createdAt?: string | undefined;
2792
+ updatedAt?: string | undefined;
2793
+ archived?: boolean | undefined;
2794
+ associations?: Record<string, {
2795
+ results: {
2796
+ id: string;
2797
+ type: string;
2798
+ }[];
2799
+ }> | undefined;
2800
+ }[];
2801
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2802
+ }>;
2803
+ } & {
2804
+ slug: "newLineItem";
2805
+ }, {
2806
+ slug: string;
2807
+ label?: string;
2808
+ description: string;
2809
+ input: z.ZodObject<{
2810
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
2811
+ }, z.core.$strip>;
2812
+ output?: z.ZodObject<{
2813
+ id: z.ZodString;
2814
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2815
+ createdAt: z.ZodOptional<z.ZodString>;
2816
+ updatedAt: z.ZodOptional<z.ZodString>;
2817
+ archived: z.ZodOptional<z.ZodBoolean>;
2818
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2819
+ results: z.ZodArray<z.ZodObject<{
2820
+ id: z.ZodString;
2821
+ type: z.ZodString;
2822
+ }, z.core.$strip>>;
2823
+ }, z.core.$strip>>>;
2824
+ }, z.core.$strip> | undefined;
2825
+ sample?: {
2826
+ id: string;
2827
+ properties: Record<string, string | null>;
2828
+ createdAt?: string | undefined;
2829
+ updatedAt?: string | undefined;
2830
+ archived?: boolean | undefined;
2831
+ associations?: Record<string, {
2832
+ results: {
2833
+ id: string;
2834
+ type: string;
2835
+ }[];
2836
+ }> | undefined;
2837
+ } | undefined;
2838
+ } & {
2839
+ type: "polling";
2840
+ schedule?: string;
2841
+ run(args: {
2842
+ input: {
2843
+ additionalPropertiesToRetrieve?: string[] | undefined;
2844
+ };
2845
+ options: Record<string, never>;
2846
+ client: {
2847
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2848
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2849
+ authorize(headers: Headers): void;
2850
+ };
2851
+ req: import("frogbot/pieces").FrogBotRequest;
2852
+ } & {
2853
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2854
+ }): Promise<{
2855
+ events: {
2856
+ id: string;
2857
+ properties: Record<string, string | null>;
2858
+ createdAt?: string | undefined;
2859
+ updatedAt?: string | undefined;
2860
+ archived?: boolean | undefined;
2861
+ associations?: Record<string, {
2862
+ results: {
2863
+ id: string;
2864
+ type: string;
2865
+ }[];
2866
+ }> | undefined;
2867
+ }[];
2868
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2869
+ }>;
2870
+ } & {
2871
+ slug: "newOrUpdatedLineItem";
2872
+ }, {
2873
+ slug: string;
2874
+ label?: string;
2875
+ description: string;
2876
+ input: z.ZodObject<{
2877
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
2878
+ }, z.core.$strip>;
2879
+ output?: z.ZodObject<{
2880
+ id: z.ZodString;
2881
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2882
+ createdAt: z.ZodOptional<z.ZodString>;
2883
+ updatedAt: z.ZodOptional<z.ZodString>;
2884
+ archived: z.ZodOptional<z.ZodBoolean>;
2885
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2886
+ results: z.ZodArray<z.ZodObject<{
2887
+ id: z.ZodString;
2888
+ type: z.ZodString;
2889
+ }, z.core.$strip>>;
2890
+ }, z.core.$strip>>>;
2891
+ }, z.core.$strip> | undefined;
2892
+ sample?: {
2893
+ id: string;
2894
+ properties: Record<string, string | null>;
2895
+ createdAt?: string | undefined;
2896
+ updatedAt?: string | undefined;
2897
+ archived?: boolean | undefined;
2898
+ associations?: Record<string, {
2899
+ results: {
2900
+ id: string;
2901
+ type: string;
2902
+ }[];
2903
+ }> | undefined;
2904
+ } | undefined;
2905
+ } & {
2906
+ type: "polling";
2907
+ schedule?: string;
2908
+ run(args: {
2909
+ input: {
2910
+ additionalPropertiesToRetrieve?: string[] | undefined;
2911
+ };
2912
+ options: Record<string, never>;
2913
+ client: {
2914
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2915
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2916
+ authorize(headers: Headers): void;
2917
+ };
2918
+ req: import("frogbot/pieces").FrogBotRequest;
2919
+ } & {
2920
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2921
+ }): Promise<{
2922
+ events: {
2923
+ id: string;
2924
+ properties: Record<string, string | null>;
2925
+ createdAt?: string | undefined;
2926
+ updatedAt?: string | undefined;
2927
+ archived?: boolean | undefined;
2928
+ associations?: Record<string, {
2929
+ results: {
2930
+ id: string;
2931
+ type: string;
2932
+ }[];
2933
+ }> | undefined;
2934
+ }[];
2935
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2936
+ }>;
2937
+ } & {
2938
+ slug: "newProduct";
2939
+ }, {
2940
+ slug: string;
2941
+ label?: string;
2942
+ description: string;
2943
+ input: z.ZodObject<{
2944
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
2945
+ }, z.core.$strip>;
2946
+ output?: z.ZodObject<{
2947
+ id: z.ZodString;
2948
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2949
+ createdAt: z.ZodOptional<z.ZodString>;
2950
+ updatedAt: z.ZodOptional<z.ZodString>;
2951
+ archived: z.ZodOptional<z.ZodBoolean>;
2952
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2953
+ results: z.ZodArray<z.ZodObject<{
2954
+ id: z.ZodString;
2955
+ type: z.ZodString;
2956
+ }, z.core.$strip>>;
2957
+ }, z.core.$strip>>>;
2958
+ }, z.core.$strip> | undefined;
2959
+ sample?: {
2960
+ id: string;
2961
+ properties: Record<string, string | null>;
2962
+ createdAt?: string | undefined;
2963
+ updatedAt?: string | undefined;
2964
+ archived?: boolean | undefined;
2965
+ associations?: Record<string, {
2966
+ results: {
2967
+ id: string;
2968
+ type: string;
2969
+ }[];
2970
+ }> | undefined;
2971
+ } | undefined;
2972
+ } & {
2973
+ type: "polling";
2974
+ schedule?: string;
2975
+ run(args: {
2976
+ input: {
2977
+ additionalPropertiesToRetrieve?: string[] | undefined;
2978
+ };
2979
+ options: Record<string, never>;
2980
+ client: {
2981
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
2982
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
2983
+ authorize(headers: Headers): void;
2984
+ };
2985
+ req: import("frogbot/pieces").FrogBotRequest;
2986
+ } & {
2987
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
2988
+ }): Promise<{
2989
+ events: {
2990
+ id: string;
2991
+ properties: Record<string, string | null>;
2992
+ createdAt?: string | undefined;
2993
+ updatedAt?: string | undefined;
2994
+ archived?: boolean | undefined;
2995
+ associations?: Record<string, {
2996
+ results: {
2997
+ id: string;
2998
+ type: string;
2999
+ }[];
3000
+ }> | undefined;
3001
+ }[];
3002
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3003
+ }>;
3004
+ } & {
3005
+ slug: "newOrUpdatedProduct";
3006
+ }, {
3007
+ slug: string;
3008
+ label?: string;
3009
+ description: string;
3010
+ input: z.ZodObject<{
3011
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
3012
+ }, z.core.$strip>;
3013
+ output?: z.ZodObject<{
3014
+ id: z.ZodString;
3015
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
3016
+ createdAt: z.ZodOptional<z.ZodString>;
3017
+ updatedAt: z.ZodOptional<z.ZodString>;
3018
+ archived: z.ZodOptional<z.ZodBoolean>;
3019
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3020
+ results: z.ZodArray<z.ZodObject<{
3021
+ id: z.ZodString;
3022
+ type: z.ZodString;
3023
+ }, z.core.$strip>>;
3024
+ }, z.core.$strip>>>;
3025
+ }, z.core.$strip> | undefined;
3026
+ sample?: {
3027
+ id: string;
3028
+ properties: Record<string, string | null>;
3029
+ createdAt?: string | undefined;
3030
+ updatedAt?: string | undefined;
3031
+ archived?: boolean | undefined;
3032
+ associations?: Record<string, {
3033
+ results: {
3034
+ id: string;
3035
+ type: string;
3036
+ }[];
3037
+ }> | undefined;
3038
+ } | undefined;
3039
+ } & {
3040
+ type: "polling";
3041
+ schedule?: string;
3042
+ run(args: {
3043
+ input: {
3044
+ additionalPropertiesToRetrieve?: string[] | undefined;
3045
+ };
3046
+ options: Record<string, never>;
3047
+ client: {
3048
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
3049
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
3050
+ authorize(headers: Headers): void;
3051
+ };
3052
+ req: import("frogbot/pieces").FrogBotRequest;
3053
+ } & {
3054
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3055
+ }): Promise<{
3056
+ events: {
3057
+ id: string;
3058
+ properties: Record<string, string | null>;
3059
+ createdAt?: string | undefined;
3060
+ updatedAt?: string | undefined;
3061
+ archived?: boolean | undefined;
3062
+ associations?: Record<string, {
3063
+ results: {
3064
+ id: string;
3065
+ type: string;
3066
+ }[];
3067
+ }> | undefined;
3068
+ }[];
3069
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3070
+ }>;
3071
+ } & {
3072
+ slug: "newTask";
3073
+ }, {
3074
+ slug: string;
3075
+ label?: string;
3076
+ description: string;
3077
+ input: z.ZodObject<{
3078
+ customObjectType: z.ZodString;
3079
+ additionalPropertiesToRetrieve: z.ZodOptional<z.ZodArray<z.ZodString>>;
3080
+ }, z.core.$strip>;
3081
+ output?: z.ZodObject<{
3082
+ id: z.ZodString;
3083
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
3084
+ createdAt: z.ZodOptional<z.ZodString>;
3085
+ updatedAt: z.ZodOptional<z.ZodString>;
3086
+ archived: z.ZodOptional<z.ZodBoolean>;
3087
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3088
+ results: z.ZodArray<z.ZodObject<{
3089
+ id: z.ZodString;
3090
+ type: z.ZodString;
3091
+ }, z.core.$strip>>;
3092
+ }, z.core.$strip>>>;
3093
+ }, z.core.$strip> | undefined;
3094
+ sample?: {
3095
+ id: string;
3096
+ properties: Record<string, string | null>;
3097
+ createdAt?: string | undefined;
3098
+ updatedAt?: string | undefined;
3099
+ archived?: boolean | undefined;
3100
+ associations?: Record<string, {
3101
+ results: {
3102
+ id: string;
3103
+ type: string;
3104
+ }[];
3105
+ }> | undefined;
3106
+ } | undefined;
3107
+ } & {
3108
+ type: "polling";
3109
+ schedule?: string;
3110
+ run(args: {
3111
+ input: {
3112
+ customObjectType: string;
3113
+ additionalPropertiesToRetrieve?: string[] | undefined;
3114
+ };
3115
+ options: Record<string, never>;
3116
+ client: {
3117
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
3118
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
3119
+ authorize(headers: Headers): void;
3120
+ };
3121
+ req: import("frogbot/pieces").FrogBotRequest;
3122
+ } & {
3123
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3124
+ }): Promise<{
3125
+ events: {
3126
+ id: string;
3127
+ properties: Record<string, string | null>;
3128
+ createdAt?: string | undefined;
3129
+ updatedAt?: string | undefined;
3130
+ archived?: boolean | undefined;
3131
+ associations?: Record<string, {
3132
+ results: {
3133
+ id: string;
3134
+ type: string;
3135
+ }[];
3136
+ }> | undefined;
3137
+ }[];
3138
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3139
+ }>;
3140
+ } & {
3141
+ slug: "newCustomObject";
3142
+ }, {
3143
+ slug: string;
3144
+ label?: string;
3145
+ description: string;
3146
+ input: z.ZodObject<{
3147
+ customObjectType: z.ZodString;
3148
+ propertyName: z.ZodString;
3149
+ }, z.core.$strip>;
3150
+ output?: z.ZodObject<{
3151
+ id: z.ZodString;
3152
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
3153
+ createdAt: z.ZodOptional<z.ZodString>;
3154
+ updatedAt: z.ZodOptional<z.ZodString>;
3155
+ archived: z.ZodOptional<z.ZodBoolean>;
3156
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3157
+ results: z.ZodArray<z.ZodObject<{
3158
+ id: z.ZodString;
3159
+ type: z.ZodString;
3160
+ }, z.core.$strip>>;
3161
+ }, z.core.$strip>>>;
3162
+ }, z.core.$strip> | undefined;
3163
+ sample?: {
3164
+ id: string;
3165
+ properties: Record<string, string | null>;
3166
+ createdAt?: string | undefined;
3167
+ updatedAt?: string | undefined;
3168
+ archived?: boolean | undefined;
3169
+ associations?: Record<string, {
3170
+ results: {
3171
+ id: string;
3172
+ type: string;
3173
+ }[];
3174
+ }> | undefined;
3175
+ } | undefined;
3176
+ } & {
3177
+ type: "polling";
3178
+ schedule?: string;
3179
+ run(args: {
3180
+ input: {
3181
+ customObjectType: string;
3182
+ propertyName: string;
3183
+ };
3184
+ options: Record<string, never>;
3185
+ client: {
3186
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
3187
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
3188
+ authorize(headers: Headers): void;
3189
+ };
3190
+ req: import("frogbot/pieces").FrogBotRequest;
3191
+ } & {
3192
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3193
+ }): Promise<{
3194
+ events: {
3195
+ id: string;
3196
+ properties: Record<string, string | null>;
3197
+ createdAt?: string | undefined;
3198
+ updatedAt?: string | undefined;
3199
+ archived?: boolean | undefined;
3200
+ associations?: Record<string, {
3201
+ results: {
3202
+ id: string;
3203
+ type: string;
3204
+ }[];
3205
+ }> | undefined;
3206
+ }[];
3207
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3208
+ }>;
3209
+ } & {
3210
+ slug: "newCustomObjectPropertyChange";
3211
+ }, {
3212
+ slug: string;
3213
+ label?: string;
3214
+ description: string;
3215
+ input: z.ZodObject<{
3216
+ eventType: z.ZodOptional<z.ZodEnum<{
3217
+ EMAIL: "EMAIL";
3218
+ NOTE: "NOTE";
3219
+ CALL: "CALL";
3220
+ MEETING: "MEETING";
3221
+ TASK: "TASK";
3222
+ }>>;
3223
+ }, z.core.$strip>;
3224
+ output?: z.ZodObject<{
3225
+ type: z.ZodEnum<{
3226
+ EMAIL: "EMAIL";
3227
+ NOTE: "NOTE";
3228
+ CALL: "CALL";
3229
+ MEETING: "MEETING";
3230
+ TASK: "TASK";
3231
+ }>;
3232
+ record: z.ZodObject<{
3233
+ id: z.ZodString;
3234
+ properties: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
3235
+ createdAt: z.ZodOptional<z.ZodString>;
3236
+ updatedAt: z.ZodOptional<z.ZodString>;
3237
+ archived: z.ZodOptional<z.ZodBoolean>;
3238
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3239
+ results: z.ZodArray<z.ZodObject<{
3240
+ id: z.ZodString;
3241
+ type: z.ZodString;
3242
+ }, z.core.$strip>>;
3243
+ }, z.core.$strip>>>;
3244
+ }, z.core.$strip>;
3245
+ }, z.core.$strip> | undefined;
3246
+ sample?: {
3247
+ type: "EMAIL" | "NOTE" | "CALL" | "MEETING" | "TASK";
3248
+ record: {
3249
+ id: string;
3250
+ properties: Record<string, string | null>;
3251
+ createdAt?: string | undefined;
3252
+ updatedAt?: string | undefined;
3253
+ archived?: boolean | undefined;
3254
+ associations?: Record<string, {
3255
+ results: {
3256
+ id: string;
3257
+ type: string;
3258
+ }[];
3259
+ }> | undefined;
3260
+ };
3261
+ } | undefined;
3262
+ } & {
3263
+ type: "polling";
3264
+ schedule?: string;
3265
+ run(args: {
3266
+ input: {
3267
+ eventType?: "EMAIL" | "NOTE" | "CALL" | "MEETING" | "TASK" | undefined;
3268
+ };
3269
+ options: Record<string, never>;
3270
+ client: {
3271
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
3272
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
3273
+ authorize(headers: Headers): void;
3274
+ };
3275
+ req: import("frogbot/pieces").FrogBotRequest;
3276
+ } & {
3277
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3278
+ }): Promise<{
3279
+ events: {
3280
+ type: "EMAIL" | "NOTE" | "CALL" | "MEETING" | "TASK";
3281
+ record: {
3282
+ id: string;
3283
+ properties: Record<string, string | null>;
3284
+ createdAt?: string | undefined;
3285
+ updatedAt?: string | undefined;
3286
+ archived?: boolean | undefined;
3287
+ associations?: Record<string, {
3288
+ results: {
3289
+ id: string;
3290
+ type: string;
3291
+ }[];
3292
+ }> | undefined;
3293
+ };
3294
+ }[];
3295
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3296
+ }>;
3297
+ } & {
3298
+ slug: "newEngagement";
3299
+ }, {
3300
+ slug: string;
3301
+ label?: string;
3302
+ description: string;
3303
+ input: z.ZodObject<{
3304
+ formId: z.ZodString;
3305
+ allowMultipleFiles: z.ZodDefault<z.ZodBoolean>;
3306
+ }, z.core.$strip>;
3307
+ output?: z.ZodObject<{
3308
+ conversionId: z.ZodOptional<z.ZodString>;
3309
+ submittedAt: z.ZodNumber;
3310
+ pageUrl: z.ZodOptional<z.ZodString>;
3311
+ values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3312
+ }, z.core.$strip> | undefined;
3313
+ sample?: {
3314
+ submittedAt: number;
3315
+ values: Record<string, string | string[]>;
3316
+ conversionId?: string | undefined;
3317
+ pageUrl?: string | undefined;
3318
+ } | undefined;
3319
+ } & {
3320
+ type: "polling";
3321
+ schedule?: string;
3322
+ run(args: {
3323
+ input: {
3324
+ formId: string;
3325
+ allowMultipleFiles: boolean;
3326
+ };
3327
+ options: Record<string, never>;
3328
+ client: {
3329
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
3330
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
3331
+ authorize(headers: Headers): void;
3332
+ };
3333
+ req: import("frogbot/pieces").FrogBotRequest;
3334
+ } & {
3335
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3336
+ }): Promise<{
3337
+ events: {
3338
+ submittedAt: number;
3339
+ values: Record<string, string | string[]>;
3340
+ conversionId?: string | undefined;
3341
+ pageUrl?: string | undefined;
3342
+ }[];
3343
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3344
+ }>;
3345
+ } & {
3346
+ slug: "newFormSubmission";
3347
+ }, {
3348
+ slug: string;
3349
+ label?: string;
3350
+ description: string;
3351
+ input: z.ZodObject<{
3352
+ eventType: z.ZodOptional<z.ZodEnum<{
3353
+ SENT: "SENT";
3354
+ DROPPED: "DROPPED";
3355
+ PROCESSED: "PROCESSED";
3356
+ DELIVERED: "DELIVERED";
3357
+ DEFERRED: "DEFERRED";
3358
+ BOUNCE: "BOUNCE";
3359
+ OPEN: "OPEN";
3360
+ CLICK: "CLICK";
3361
+ STATUSCHANGE: "STATUSCHANGE";
3362
+ SPAMREPORT: "SPAMREPORT";
3363
+ }>>;
3364
+ }, z.core.$strip>;
3365
+ output?: z.ZodObject<{
3366
+ id: z.ZodString;
3367
+ created: z.ZodNumber;
3368
+ type: z.ZodString;
3369
+ recipient: z.ZodOptional<z.ZodString>;
3370
+ emailCampaignId: z.ZodOptional<z.ZodNumber>;
3371
+ }, z.core.$loose> | undefined;
3372
+ sample?: {
3373
+ [x: string]: unknown;
3374
+ id: string;
3375
+ created: number;
3376
+ type: string;
3377
+ recipient?: string | undefined;
3378
+ emailCampaignId?: number | undefined;
3379
+ } | undefined;
3380
+ } & {
3381
+ type: "polling";
3382
+ schedule?: string;
3383
+ run(args: {
3384
+ input: {
3385
+ eventType?: "SENT" | "DROPPED" | "PROCESSED" | "DELIVERED" | "DEFERRED" | "BOUNCE" | "OPEN" | "CLICK" | "STATUSCHANGE" | "SPAMREPORT" | undefined;
3386
+ };
3387
+ options: Record<string, never>;
3388
+ client: {
3389
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
3390
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
3391
+ authorize(headers: Headers): void;
3392
+ };
3393
+ req: import("frogbot/pieces").FrogBotRequest;
3394
+ } & {
3395
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3396
+ }): Promise<{
3397
+ events: {
3398
+ [x: string]: unknown;
3399
+ id: string;
3400
+ created: number;
3401
+ type: string;
3402
+ recipient?: string | undefined;
3403
+ emailCampaignId?: number | undefined;
3404
+ }[];
3405
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3406
+ }>;
3407
+ } & {
3408
+ slug: "newEmailEvent";
3409
+ }, {
3410
+ slug: string;
3411
+ label?: string;
3412
+ description: string;
3413
+ input: z.ZodObject<{}, z.core.$strip>;
3414
+ output?: z.ZodObject<{
3415
+ timestamp: z.ZodNumber;
3416
+ recipient: z.ZodString;
3417
+ portalId: z.ZodOptional<z.ZodNumber>;
3418
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3419
+ change: z.ZodOptional<z.ZodString>;
3420
+ }, z.core.$loose>>>;
3421
+ }, z.core.$loose> | undefined;
3422
+ sample?: {
3423
+ [x: string]: unknown;
3424
+ timestamp: number;
3425
+ recipient: string;
3426
+ portalId?: number | undefined;
3427
+ changes?: {
3428
+ [x: string]: unknown;
3429
+ change?: string | undefined;
3430
+ }[] | undefined;
3431
+ } | undefined;
3432
+ } & {
3433
+ type: "polling";
3434
+ schedule?: string;
3435
+ run(args: {
3436
+ input: Record<string, never>;
3437
+ options: Record<string, never>;
3438
+ client: {
3439
+ json: (request: import("./client.js").HubSpotRequest) => Promise<unknown>;
3440
+ request: <T>(schema: z.ZodType<T>, options: import("./client.js").HubSpotRequest) => Promise<T>;
3441
+ authorize(headers: Headers): void;
3442
+ };
3443
+ req: import("frogbot/pieces").FrogBotRequest;
3444
+ } & {
3445
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3446
+ }): Promise<{
3447
+ events: {
3448
+ [x: string]: unknown;
3449
+ timestamp: number;
3450
+ recipient: string;
3451
+ portalId?: number | undefined;
3452
+ changes?: {
3453
+ [x: string]: unknown;
3454
+ change?: string | undefined;
3455
+ }[] | undefined;
3456
+ }[];
3457
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
3458
+ }>;
3459
+ } & {
3460
+ slug: "newEmailSubscriptionsTimeline";
3461
+ }];
3462
+ }>;
3463
+ //# sourceMappingURL=index.d.ts.map