@frogbotai/piece-notion 0.27.0 → 0.28.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.
@@ -0,0 +1,114 @@
1
+ export declare const defineAction: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined, TResult = unknown>(action: TOutput extends unknown ? import("frogbot/pieces").PieceActionDefinition<TInput, TOutput, Record<string, never>, {
2
+ request: ({ method, path, query, body, signal, }: {
3
+ method?: string;
4
+ path: string;
5
+ query?: Record<string, string | number | boolean | undefined>;
6
+ body?: unknown;
7
+ signal?: AbortSignal;
8
+ }) => Promise<unknown>;
9
+ listAll: ({ path, body, query, signal, }: {
10
+ path: string;
11
+ body?: Record<string, unknown>;
12
+ query?: Record<string, string | number | boolean | undefined>;
13
+ signal?: AbortSignal;
14
+ }) => Promise<{
15
+ [x: string]: unknown;
16
+ object: string;
17
+ id: string;
18
+ }[]>;
19
+ }, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
20
+ slug: TSlug;
21
+ } : never) => import("frogbot/pieces").PieceActionDefinition<TInput, TOutput, Record<string, never>, {
22
+ request: ({ method, path, query, body, signal, }: {
23
+ method?: string;
24
+ path: string;
25
+ query?: Record<string, string | number | boolean | undefined>;
26
+ body?: unknown;
27
+ signal?: AbortSignal;
28
+ }) => Promise<unknown>;
29
+ listAll: ({ path, body, query, signal, }: {
30
+ path: string;
31
+ body?: Record<string, unknown>;
32
+ query?: Record<string, string | number | boolean | undefined>;
33
+ signal?: AbortSignal;
34
+ }) => Promise<{
35
+ [x: string]: unknown;
36
+ object: string;
37
+ id: string;
38
+ }[]>;
39
+ }, TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : TResult> & {
40
+ slug: TSlug;
41
+ }, definePollingTrigger: <const TSlug extends string, TInput extends import("zod").ZodType, TOutput extends import("zod").ZodType | undefined = undefined>(trigger: TOutput extends unknown ? {
42
+ slug: string;
43
+ label?: string;
44
+ description: string;
45
+ input: TInput;
46
+ output?: TOutput | undefined;
47
+ sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON) | undefined;
48
+ } & {
49
+ type: "polling";
50
+ schedule?: string;
51
+ run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
52
+ request: ({ method, path, query, body, signal, }: {
53
+ method?: string;
54
+ path: string;
55
+ query?: Record<string, string | number | boolean | undefined>;
56
+ body?: unknown;
57
+ signal?: AbortSignal;
58
+ }) => Promise<unknown>;
59
+ listAll: ({ path, body, query, signal, }: {
60
+ path: string;
61
+ body?: Record<string, unknown>;
62
+ query?: Record<string, string | number | boolean | undefined>;
63
+ signal?: AbortSignal;
64
+ }) => Promise<{
65
+ [x: string]: unknown;
66
+ object: string;
67
+ id: string;
68
+ }[]>;
69
+ }> & {
70
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
71
+ }): Promise<{
72
+ events: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON)[];
73
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
74
+ }>;
75
+ } & {
76
+ slug: TSlug;
77
+ } : never) => {
78
+ slug: string;
79
+ label?: string;
80
+ description: string;
81
+ input: TInput;
82
+ output?: TOutput | undefined;
83
+ sample?: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON) | undefined;
84
+ } & {
85
+ type: "polling";
86
+ schedule?: string;
87
+ run(args: import("frogbot/pieces").PieceRunArgs<import("zod").infer<TInput>, Record<string, never>, {
88
+ request: ({ method, path, query, body, signal, }: {
89
+ method?: string;
90
+ path: string;
91
+ query?: Record<string, string | number | boolean | undefined>;
92
+ body?: unknown;
93
+ signal?: AbortSignal;
94
+ }) => Promise<unknown>;
95
+ listAll: ({ path, body, query, signal, }: {
96
+ path: string;
97
+ body?: Record<string, unknown>;
98
+ query?: Record<string, string | number | boolean | undefined>;
99
+ signal?: AbortSignal;
100
+ }) => Promise<{
101
+ [x: string]: unknown;
102
+ object: string;
103
+ id: string;
104
+ }[]>;
105
+ }> & {
106
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
107
+ }): Promise<{
108
+ events: (TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON)[];
109
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
110
+ }>;
111
+ } & {
112
+ slug: TSlug;
113
+ };
114
+ //# sourceMappingURL=define.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAIA,eAAO,MAAQ,YAAY;;cACgP,CAAC;;aAAqC,CAAC;YAAsC,CAAC;cAAqB,CAAC;;;;YAA0rC,CAAC;aAAoC,CAAC;cAAwC,CAAC;;;;;;;;;;cAA72C,CAAC;;aAAqC,CAAC;YAAsC,CAAC;cAAqB,CAAC;;;;YAA0rC,CAAC;aAAoC,CAAC;cAAwC,CAAC;;;;;;;;GAD3lD,oBAAoB;;;;;;;;;;;;kBAC0N,CAAC;;iBAAqC,CAAC;gBAAsC,CAAC;kBAAqB,CAAC;;;;gBAA0rC,CAAC;iBAAoC,CAAC;kBAAwC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;kBAA72C,CAAC;;iBAAqC,CAAC;gBAAsC,CAAC;kBAAqB,CAAC;;;;gBAA0rC,CAAC;iBAAoC,CAAC;kBAAwC,CAAC;;;;;;;;;;;;;;CADhiD,CAAC"}
package/dist/define.js ADDED
@@ -0,0 +1,3 @@
1
+ import { createPieceHelpers } from 'frogbot/pieces';
2
+ export const { defineAction, definePollingTrigger } = createPieceHelpers();
3
+ //# sourceMappingURL=define.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.js","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAIpD,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,oBAAoB,EAAE,GAAG,kBAAkB,EAAgB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -41,7 +41,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
41
41
  nextCursor: import("zod").ZodNullable<import("zod").ZodString>;
42
42
  limit: import("zod").ZodNumber;
43
43
  }, import("zod/v4/core").$strip>;
44
- }, import("zod/v4/core").$strip>, object, {
44
+ }, import("zod/v4/core").$strip>, Record<string, never>, {
45
45
  request: ({ method, path, query, body, signal, }: {
46
46
  method?: string;
47
47
  path: string;
@@ -59,6 +59,19 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
59
59
  object: string;
60
60
  id: string;
61
61
  }[]>;
62
+ }, {
63
+ success: true;
64
+ data: {
65
+ [x: string]: unknown;
66
+ object: string;
67
+ id: string;
68
+ }[];
69
+ pagination: {
70
+ count: number;
71
+ hasMore: boolean;
72
+ nextCursor: string | null;
73
+ limit: number;
74
+ };
62
75
  }> & {
63
76
  slug: "listDatabases";
64
77
  }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -73,7 +86,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
73
86
  archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
74
87
  url: import("zod").ZodOptional<import("zod").ZodString>;
75
88
  properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
76
- }, import("zod/v4/core").$loose>, object, {
89
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
77
90
  request: ({ method, path, query, body, signal, }: {
78
91
  method?: string;
79
92
  path: string;
@@ -91,6 +104,15 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
91
104
  object: string;
92
105
  id: string;
93
106
  }[]>;
107
+ }, {
108
+ [x: string]: unknown;
109
+ object: string;
110
+ id: string;
111
+ created_time?: string | undefined;
112
+ last_edited_time?: string | undefined;
113
+ archived?: boolean | undefined;
114
+ url?: string | undefined;
115
+ properties?: Record<string, unknown> | undefined;
94
116
  }> & {
95
117
  slug: "createDatabaseItem";
96
118
  }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -105,7 +127,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
105
127
  archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
106
128
  url: import("zod").ZodOptional<import("zod").ZodString>;
107
129
  properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
108
- }, import("zod/v4/core").$loose>, object, {
130
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
109
131
  request: ({ method, path, query, body, signal, }: {
110
132
  method?: string;
111
133
  path: string;
@@ -123,6 +145,15 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
123
145
  object: string;
124
146
  id: string;
125
147
  }[]>;
148
+ }, {
149
+ [x: string]: unknown;
150
+ object: string;
151
+ id: string;
152
+ created_time?: string | undefined;
153
+ last_edited_time?: string | undefined;
154
+ archived?: boolean | undefined;
155
+ url?: string | undefined;
156
+ properties?: Record<string, unknown> | undefined;
126
157
  }> & {
127
158
  slug: "updateDatabaseItem";
128
159
  }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -134,7 +165,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
134
165
  object: import("zod").ZodString;
135
166
  id: import("zod").ZodString;
136
167
  }, import("zod/v4/core").$loose>>;
137
- }, import("zod/v4/core").$strip>, object, {
168
+ }, import("zod/v4/core").$strip>, Record<string, never>, {
138
169
  request: ({ method, path, query, body, signal, }: {
139
170
  method?: string;
140
171
  path: string;
@@ -152,6 +183,13 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
152
183
  object: string;
153
184
  id: string;
154
185
  }[]>;
186
+ }, {
187
+ success: boolean;
188
+ results: {
189
+ [x: string]: unknown;
190
+ object: string;
191
+ id: string;
192
+ }[];
155
193
  }> & {
156
194
  slug: "findDatabaseItem";
157
195
  }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -171,7 +209,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
171
209
  nextCursor: import("zod").ZodNullable<import("zod").ZodString>;
172
210
  limit: import("zod").ZodNumber;
173
211
  }, import("zod/v4/core").$strip>;
174
- }, import("zod/v4/core").$strip>, object, {
212
+ }, import("zod/v4/core").$strip>, Record<string, never>, {
175
213
  request: ({ method, path, query, body, signal, }: {
176
214
  method?: string;
177
215
  path: string;
@@ -189,6 +227,19 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
189
227
  object: string;
190
228
  id: string;
191
229
  }[]>;
230
+ }, {
231
+ success: true;
232
+ data: {
233
+ [x: string]: unknown;
234
+ object: string;
235
+ id: string;
236
+ }[];
237
+ pagination: {
238
+ count: number;
239
+ hasMore: boolean;
240
+ nextCursor: string | null;
241
+ limit: number;
242
+ };
192
243
  }> & {
193
244
  slug: "listDatabasePages";
194
245
  }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -203,7 +254,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
203
254
  archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
204
255
  url: import("zod").ZodOptional<import("zod").ZodString>;
205
256
  properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
206
- }, import("zod/v4/core").$loose>, object, {
257
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
207
258
  request: ({ method, path, query, body, signal, }: {
208
259
  method?: string;
209
260
  path: string;
@@ -221,6 +272,15 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
221
272
  object: string;
222
273
  id: string;
223
274
  }[]>;
275
+ }, {
276
+ [x: string]: unknown;
277
+ object: string;
278
+ id: string;
279
+ created_time?: string | undefined;
280
+ last_edited_time?: string | undefined;
281
+ archived?: boolean | undefined;
282
+ url?: string | undefined;
283
+ properties?: Record<string, unknown> | undefined;
224
284
  }> & {
225
285
  slug: "createPage";
226
286
  }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -234,7 +294,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
234
294
  }, import("zod/v4/core").$loose>>;
235
295
  has_more: import("zod").ZodBoolean;
236
296
  next_cursor: import("zod").ZodNullable<import("zod").ZodString>;
237
- }, import("zod/v4/core").$loose>, object, {
297
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
238
298
  request: ({ method, path, query, body, signal, }: {
239
299
  method?: string;
240
300
  path: string;
@@ -252,6 +312,16 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
252
312
  object: string;
253
313
  id: string;
254
314
  }[]>;
315
+ }, {
316
+ [x: string]: unknown;
317
+ object: "list";
318
+ results: {
319
+ [x: string]: unknown;
320
+ object: string;
321
+ id: string;
322
+ }[];
323
+ has_more: boolean;
324
+ next_cursor: string | null;
255
325
  }> & {
256
326
  slug: "appendToPage";
257
327
  }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -260,7 +330,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
260
330
  }, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
261
331
  object: import("zod").ZodString;
262
332
  id: import("zod").ZodString;
263
- }, import("zod/v4/core").$loose>>, object, {
333
+ }, import("zod/v4/core").$loose>>, Record<string, never>, {
264
334
  request: ({ method, path, query, body, signal, }: {
265
335
  method?: string;
266
336
  path: string;
@@ -278,7 +348,11 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
278
348
  object: string;
279
349
  id: string;
280
350
  }[]>;
281
- }> & {
351
+ }, {
352
+ [x: string]: unknown;
353
+ object: string;
354
+ id: string;
355
+ }[]> & {
282
356
  slug: "getBlockContent";
283
357
  }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
284
358
  databaseId: import("zod").ZodString;
@@ -291,7 +365,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
291
365
  archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
292
366
  url: import("zod").ZodOptional<import("zod").ZodString>;
293
367
  properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
294
- }, import("zod/v4/core").$loose>, object, {
368
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
295
369
  request: ({ method, path, query, body, signal, }: {
296
370
  method?: string;
297
371
  path: string;
@@ -309,8 +383,17 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
309
383
  object: string;
310
384
  id: string;
311
385
  }[]>;
386
+ }, {
387
+ [x: string]: unknown;
388
+ object: string;
389
+ id: string;
390
+ created_time?: string | undefined;
391
+ last_edited_time?: string | undefined;
392
+ archived?: boolean | undefined;
393
+ url?: string | undefined;
394
+ properties?: Record<string, unknown> | undefined;
312
395
  }> & {
313
- slug: "archiveDatabaseItem" | "restoreDatabaseItem";
396
+ slug: "archiveDatabaseItem";
314
397
  }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
315
398
  databaseId: import("zod").ZodString;
316
399
  itemId: import("zod").ZodString;
@@ -322,7 +405,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
322
405
  archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
323
406
  url: import("zod").ZodOptional<import("zod").ZodString>;
324
407
  properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
325
- }, import("zod/v4/core").$loose>, object, {
408
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
326
409
  request: ({ method, path, query, body, signal, }: {
327
410
  method?: string;
328
411
  path: string;
@@ -340,8 +423,17 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
340
423
  object: string;
341
424
  id: string;
342
425
  }[]>;
426
+ }, {
427
+ [x: string]: unknown;
428
+ object: string;
429
+ id: string;
430
+ created_time?: string | undefined;
431
+ last_edited_time?: string | undefined;
432
+ archived?: boolean | undefined;
433
+ url?: string | undefined;
434
+ properties?: Record<string, unknown> | undefined;
343
435
  }> & {
344
- slug: "archiveDatabaseItem" | "restoreDatabaseItem";
436
+ slug: "restoreDatabaseItem";
345
437
  }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
346
438
  pageId: import("zod").ZodString;
347
439
  commentText: import("zod").ZodString;
@@ -352,7 +444,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
352
444
  last_edited_time: import("zod").ZodOptional<import("zod").ZodString>;
353
445
  discussion_id: import("zod").ZodOptional<import("zod").ZodString>;
354
446
  rich_text: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown>>;
355
- }, import("zod/v4/core").$loose>, object, {
447
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
356
448
  request: ({ method, path, query, body, signal, }: {
357
449
  method?: string;
358
450
  path: string;
@@ -370,6 +462,14 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
370
462
  object: string;
371
463
  id: string;
372
464
  }[]>;
465
+ }, {
466
+ [x: string]: unknown;
467
+ object: string;
468
+ id: string;
469
+ created_time: string;
470
+ last_edited_time?: string | undefined;
471
+ discussion_id?: string | undefined;
472
+ rich_text?: unknown[] | undefined;
373
473
  }> & {
374
474
  slug: "addComment";
375
475
  }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -377,7 +477,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
377
477
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
378
478
  object: import("zod").ZodString;
379
479
  id: import("zod").ZodString;
380
- }, import("zod/v4/core").$loose>, object, {
480
+ }, import("zod/v4/core").$loose>, Record<string, never>, {
381
481
  request: ({ method, path, query, body, signal, }: {
382
482
  method?: string;
383
483
  path: string;
@@ -395,6 +495,10 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
395
495
  object: string;
396
496
  id: string;
397
497
  }[]>;
498
+ }, {
499
+ [x: string]: unknown;
500
+ object: string;
501
+ id: string;
398
502
  }> & {
399
503
  slug: "retrieveDatabase";
400
504
  }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
@@ -406,7 +510,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
406
510
  last_edited_time: import("zod").ZodOptional<import("zod").ZodString>;
407
511
  discussion_id: import("zod").ZodOptional<import("zod").ZodString>;
408
512
  rich_text: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown>>;
409
- }, import("zod/v4/core").$loose>>, object, {
513
+ }, import("zod/v4/core").$loose>>, Record<string, never>, {
410
514
  request: ({ method, path, query, body, signal, }: {
411
515
  method?: string;
412
516
  path: string;
@@ -424,7 +528,15 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
424
528
  object: string;
425
529
  id: string;
426
530
  }[]>;
427
- }> & {
531
+ }, {
532
+ [x: string]: unknown;
533
+ object: string;
534
+ id: string;
535
+ created_time: string;
536
+ last_edited_time?: string | undefined;
537
+ discussion_id?: string | undefined;
538
+ rich_text?: unknown[] | undefined;
539
+ }[]> & {
428
540
  slug: "getPageComments";
429
541
  }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
430
542
  title: import("zod").ZodString;
@@ -433,7 +545,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
433
545
  }, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
434
546
  object: import("zod").ZodString;
435
547
  id: import("zod").ZodString;
436
- }, import("zod/v4/core").$loose>>, object, {
548
+ }, import("zod/v4/core").$loose>>, Record<string, never>, {
437
549
  request: ({ method, path, query, body, signal, }: {
438
550
  method?: string;
439
551
  path: string;
@@ -451,7 +563,11 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
451
563
  object: string;
452
564
  id: string;
453
565
  }[]>;
454
- }> & {
566
+ }, {
567
+ [x: string]: unknown;
568
+ object: string;
569
+ id: string;
570
+ }[]> & {
455
571
  slug: "findPage";
456
572
  }, import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
457
573
  method: import("zod").ZodEnum<{
@@ -463,7 +579,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
463
579
  path: import("zod").ZodString;
464
580
  query: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>>;
465
581
  body: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
466
- }, import("zod/v4/core").$strip>, import("zod").ZodJSONSchema, object, {
582
+ }, import("zod/v4/core").$strip>, import("zod").ZodJSONSchema, Record<string, never>, {
467
583
  request: ({ method, path, query, body, signal, }: {
468
584
  method?: string;
469
585
  path: string;
@@ -481,7 +597,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
481
597
  object: string;
482
598
  id: string;
483
599
  }[]>;
484
- }> & {
600
+ }, import("zod").JSONType> & {
485
601
  slug: "customApiCall";
486
602
  }];
487
603
  readonly triggers: readonly [{
@@ -515,7 +631,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
515
631
  schedule?: string;
516
632
  run(args: import("frogbot/pieces").PieceRunArgs<{
517
633
  databaseId: string;
518
- }, object, {
634
+ }, Record<string, never>, {
519
635
  request: ({ method, path, query, body, signal, }: {
520
636
  method?: string;
521
637
  path: string;
@@ -534,7 +650,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
534
650
  id: string;
535
651
  }[]>;
536
652
  }> & {
537
- cursor?: number | undefined;
653
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
538
654
  }): Promise<{
539
655
  events: {
540
656
  [x: string]: unknown;
@@ -546,10 +662,10 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
546
662
  url?: string | undefined;
547
663
  properties?: Record<string, unknown> | undefined;
548
664
  }[];
549
- cursor?: number | undefined;
665
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
550
666
  }>;
551
667
  } & {
552
- slug: "newDatabaseItem" | "updatedDatabaseItem";
668
+ slug: "newDatabaseItem";
553
669
  }, {
554
670
  slug: string;
555
671
  label?: string;
@@ -581,7 +697,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
581
697
  schedule?: string;
582
698
  run(args: import("frogbot/pieces").PieceRunArgs<{
583
699
  databaseId: string;
584
- }, object, {
700
+ }, Record<string, never>, {
585
701
  request: ({ method, path, query, body, signal, }: {
586
702
  method?: string;
587
703
  path: string;
@@ -600,7 +716,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
600
716
  id: string;
601
717
  }[]>;
602
718
  }> & {
603
- cursor?: number | undefined;
719
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
604
720
  }): Promise<{
605
721
  events: {
606
722
  [x: string]: unknown;
@@ -612,10 +728,10 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
612
728
  url?: string | undefined;
613
729
  properties?: Record<string, unknown> | undefined;
614
730
  }[];
615
- cursor?: number | undefined;
731
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
616
732
  }>;
617
733
  } & {
618
- slug: "newDatabaseItem" | "updatedDatabaseItem";
734
+ slug: "updatedDatabaseItem";
619
735
  }, {
620
736
  slug: string;
621
737
  label?: string;
@@ -645,7 +761,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
645
761
  schedule?: string;
646
762
  run(args: import("frogbot/pieces").PieceRunArgs<{
647
763
  pageId: string;
648
- }, object, {
764
+ }, Record<string, never>, {
649
765
  request: ({ method, path, query, body, signal, }: {
650
766
  method?: string;
651
767
  path: string;
@@ -664,7 +780,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
664
780
  id: string;
665
781
  }[]>;
666
782
  }> & {
667
- cursor?: number | undefined;
783
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
668
784
  }): Promise<{
669
785
  events: {
670
786
  [x: string]: unknown;
@@ -675,7 +791,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
675
791
  discussion_id?: string | undefined;
676
792
  rich_text?: unknown[] | undefined;
677
793
  }[];
678
- cursor?: number | undefined;
794
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
679
795
  }>;
680
796
  } & {
681
797
  slug: "newComment";
@@ -706,7 +822,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
706
822
  } & {
707
823
  type: "polling";
708
824
  schedule?: string;
709
- run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, object, {
825
+ run(args: import("frogbot/pieces").PieceRunArgs<Record<string, never>, Record<string, never>, {
710
826
  request: ({ method, path, query, body, signal, }: {
711
827
  method?: string;
712
828
  path: string;
@@ -725,7 +841,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
725
841
  id: string;
726
842
  }[]>;
727
843
  }> & {
728
- cursor?: number | undefined;
844
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
729
845
  }): Promise<{
730
846
  events: {
731
847
  [x: string]: unknown;
@@ -737,7 +853,7 @@ export declare const createNotion: import("frogbot/pieces").PieceFactory<{
737
853
  url?: string | undefined;
738
854
  properties?: Record<string, unknown> | undefined;
739
855
  }[];
740
- cursor?: number | undefined;
856
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
741
857
  }>;
742
858
  } & {
743
859
  slug: "updatedPage";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AASjD,eAAO,MAAM,a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