@keystrokehq/notion 0.0.10 → 0.0.15

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.
@@ -1,17 +1,13 @@
1
- import { r as notionBundle } from "../integration-D12eY2r0.mjs";
1
+ import { r as notionBundle } from "../integration--FJUCgRj.mjs";
2
2
  import { z } from "zod";
3
3
  import { CredentialSet } from "@keystrokehq/core";
4
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
5
4
  import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
6
5
 
7
6
  //#region src/_official/provider-app.d.ts
8
7
  declare const notionAppCredentialSet: CredentialSet<"keystroke:notion-app", z.ZodObject<{
9
8
  clientId: z.ZodString;
10
9
  clientSecret: z.ZodString;
11
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
12
- clientId: z.ZodString;
13
- clientSecret: z.ZodString;
14
- }, z.core.$strip>>[] | undefined>;
10
+ }, z.core.$strip>>;
15
11
  declare const notionOfficialProviderSeed: {
16
12
  readonly provider: "notion";
17
13
  readonly appRef: "notion-official";
@@ -31,9 +27,7 @@ declare const notionOfficialProviderSeed: {
31
27
  type NotionAppCredentials = InferCredentialSetAuth<typeof notionAppCredentialSet>;
32
28
  declare const notionWebhookCredentialSet: CredentialSet<"keystroke:notion-webhook", z.ZodObject<{
33
29
  verificationToken: z.ZodString;
34
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
35
- verificationToken: z.ZodString;
36
- }, z.core.$strip>>[] | undefined>;
30
+ }, z.core.$strip>>;
37
31
  type NotionWebhookCredentials = InferCredentialSetAuth<typeof notionWebhookCredentialSet>;
38
32
  //#endregion
39
33
  export { NotionAppCredentials, NotionWebhookCredentials, notionAppCredentialSet, notionBundle, notionOfficialProviderSeed, notionWebhookCredentialSet };
@@ -1,3 +1,3 @@
1
- import { a as notionOfficialProviderSeed, i as notionAppCredentialSet, n as notionBundle, o as notionWebhookCredentialSet } from "../integration-BdUbYCu5.mjs";
1
+ import { a as notionOfficialProviderSeed, i as notionAppCredentialSet, n as notionBundle, o as notionWebhookCredentialSet } from "../integration-xFeJVYim.mjs";
2
2
 
3
3
  export { notionAppCredentialSet, notionBundle, notionOfficialProviderSeed, notionWebhookCredentialSet };
@@ -1,6 +1,5 @@
1
1
  import * as zod from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
  import * as zod_v4_core0 from "zod/v4/core";
5
4
 
6
5
  //#region src/_runtime/index.d.ts
@@ -27,9 +26,7 @@ declare const notionOperations: {
27
26
  properties: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
28
27
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
29
28
  NOTION_ACCESS_TOKEN: zod.ZodString;
30
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
31
- NOTION_ACCESS_TOKEN: zod.ZodString;
32
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
29
+ }, zod_v4_core0.$strip>>], undefined>;
33
30
  readonly createPage: _keystrokehq_core0.Operation<zod.ZodObject<{
34
31
  parent: zod.ZodObject<{
35
32
  pageId: zod.ZodOptional<zod.ZodString>;
@@ -59,9 +56,7 @@ declare const notionOperations: {
59
56
  properties: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
60
57
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
61
58
  NOTION_ACCESS_TOKEN: zod.ZodString;
62
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
63
- NOTION_ACCESS_TOKEN: zod.ZodString;
64
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
59
+ }, zod_v4_core0.$strip>>], undefined>;
65
60
  readonly copyPageContent: _keystrokehq_core0.Operation<zod.ZodObject<{
66
61
  sourcePageId: zod.ZodString;
67
62
  targetPageId: zod.ZodString;
@@ -69,9 +64,7 @@ declare const notionOperations: {
69
64
  success: zod.ZodLiteral<true>;
70
65
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
71
66
  NOTION_ACCESS_TOKEN: zod.ZodString;
72
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
73
- NOTION_ACCESS_TOKEN: zod.ZodString;
74
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
67
+ }, zod_v4_core0.$strip>>], undefined>;
75
68
  readonly updatePage: _keystrokehq_core0.Operation<zod.ZodObject<{
76
69
  pageId: zod.ZodString;
77
70
  properties: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
@@ -99,9 +92,7 @@ declare const notionOperations: {
99
92
  properties: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
100
93
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
101
94
  NOTION_ACCESS_TOKEN: zod.ZodString;
102
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
103
- NOTION_ACCESS_TOKEN: zod.ZodString;
104
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
95
+ }, zod_v4_core0.$strip>>], undefined>;
105
96
  readonly trashPage: _keystrokehq_core0.Operation<zod.ZodObject<{
106
97
  pageId: zod.ZodString;
107
98
  }, zod_v4_core0.$strip>, zod.ZodObject<{
@@ -124,9 +115,7 @@ declare const notionOperations: {
124
115
  properties: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
125
116
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
126
117
  NOTION_ACCESS_TOKEN: zod.ZodString;
127
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
128
- NOTION_ACCESS_TOKEN: zod.ZodString;
129
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
118
+ }, zod_v4_core0.$strip>>], undefined>;
130
119
  readonly restorePage: _keystrokehq_core0.Operation<zod.ZodObject<{
131
120
  pageId: zod.ZodString;
132
121
  }, zod_v4_core0.$strip>, zod.ZodObject<{
@@ -149,9 +138,7 @@ declare const notionOperations: {
149
138
  properties: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
150
139
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
151
140
  NOTION_ACCESS_TOKEN: zod.ZodString;
152
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
153
- NOTION_ACCESS_TOKEN: zod.ZodString;
154
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
141
+ }, zod_v4_core0.$strip>>], undefined>;
155
142
  readonly getPageProperty: _keystrokehq_core0.Operation<zod.ZodObject<{
156
143
  pageId: zod.ZodString;
157
144
  propertyId: zod.ZodString;
@@ -166,9 +153,7 @@ declare const notionOperations: {
166
153
  hasMore: zod.ZodOptional<zod.ZodBoolean>;
167
154
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
168
155
  NOTION_ACCESS_TOKEN: zod.ZodString;
169
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
170
- NOTION_ACCESS_TOKEN: zod.ZodString;
171
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
156
+ }, zod_v4_core0.$strip>>], undefined>;
172
157
  readonly getBlock: _keystrokehq_core0.Operation<zod.ZodObject<{
173
158
  blockId: zod.ZodString;
174
159
  }, zod_v4_core0.$strip>, zod.ZodObject<{
@@ -191,9 +176,7 @@ declare const notionOperations: {
191
176
  value: zod.ZodOptional<zod.ZodUnknown>;
192
177
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
193
178
  NOTION_ACCESS_TOKEN: zod.ZodString;
194
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
195
- NOTION_ACCESS_TOKEN: zod.ZodString;
196
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
179
+ }, zod_v4_core0.$strip>>], undefined>;
197
180
  readonly listBlockChildren: _keystrokehq_core0.Operation<zod.ZodObject<{
198
181
  blockId: zod.ZodString;
199
182
  limit: zod.ZodOptional<zod.ZodNumber>;
@@ -223,9 +206,7 @@ declare const notionOperations: {
223
206
  nextCursor: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
224
207
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
225
208
  NOTION_ACCESS_TOKEN: zod.ZodString;
226
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
227
- NOTION_ACCESS_TOKEN: zod.ZodString;
228
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
209
+ }, zod_v4_core0.$strip>>], undefined>;
229
210
  readonly appendBlockChildren: _keystrokehq_core0.Operation<zod.ZodObject<{
230
211
  blockId: zod.ZodString;
231
212
  children: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
@@ -233,9 +214,7 @@ declare const notionOperations: {
233
214
  success: zod.ZodLiteral<true>;
234
215
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
235
216
  NOTION_ACCESS_TOKEN: zod.ZodString;
236
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
237
- NOTION_ACCESS_TOKEN: zod.ZodString;
238
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
217
+ }, zod_v4_core0.$strip>>], undefined>;
239
218
  readonly updateBlock: _keystrokehq_core0.Operation<zod.ZodObject<{
240
219
  blockId: zod.ZodString;
241
220
  block: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
@@ -259,9 +238,7 @@ declare const notionOperations: {
259
238
  value: zod.ZodOptional<zod.ZodUnknown>;
260
239
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
261
240
  NOTION_ACCESS_TOKEN: zod.ZodString;
262
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
263
- NOTION_ACCESS_TOKEN: zod.ZodString;
264
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
241
+ }, zod_v4_core0.$strip>>], undefined>;
265
242
  readonly deleteBlock: _keystrokehq_core0.Operation<zod.ZodObject<{
266
243
  blockId: zod.ZodString;
267
244
  }, zod_v4_core0.$strip>, zod.ZodObject<{
@@ -284,9 +261,7 @@ declare const notionOperations: {
284
261
  value: zod.ZodOptional<zod.ZodUnknown>;
285
262
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
286
263
  NOTION_ACCESS_TOKEN: zod.ZodString;
287
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
288
- NOTION_ACCESS_TOKEN: zod.ZodString;
289
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
264
+ }, zod_v4_core0.$strip>>], undefined>;
290
265
  readonly discoverDatabaseDataSources: _keystrokehq_core0.Operation<zod.ZodObject<{
291
266
  databaseId: zod.ZodString;
292
267
  }, zod_v4_core0.$strip>, zod.ZodObject<{
@@ -297,9 +272,7 @@ declare const notionOperations: {
297
272
  }, zod_v4_core0.$strip>>;
298
273
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
299
274
  NOTION_ACCESS_TOKEN: zod.ZodString;
300
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
301
- NOTION_ACCESS_TOKEN: zod.ZodString;
302
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
275
+ }, zod_v4_core0.$strip>>], undefined>;
303
276
  readonly getDataSource: _keystrokehq_core0.Operation<zod.ZodObject<{
304
277
  dataSourceId: zod.ZodString;
305
278
  }, zod_v4_core0.$strip>, zod.ZodObject<{
@@ -320,9 +293,7 @@ declare const notionOperations: {
320
293
  properties: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
321
294
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
322
295
  NOTION_ACCESS_TOKEN: zod.ZodString;
323
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
324
- NOTION_ACCESS_TOKEN: zod.ZodString;
325
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
296
+ }, zod_v4_core0.$strip>>], undefined>;
326
297
  readonly queryDataSource: _keystrokehq_core0.Operation<zod.ZodObject<{
327
298
  dataSourceId: zod.ZodString;
328
299
  filter: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
@@ -353,9 +324,7 @@ declare const notionOperations: {
353
324
  nextCursor: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
354
325
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
355
326
  NOTION_ACCESS_TOKEN: zod.ZodString;
356
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
357
- NOTION_ACCESS_TOKEN: zod.ZodString;
358
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
327
+ }, zod_v4_core0.$strip>>], undefined>;
359
328
  readonly createDataSourceEntry: _keystrokehq_core0.Operation<zod.ZodObject<{
360
329
  dataSourceId: zod.ZodString;
361
330
  properties: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
@@ -380,9 +349,7 @@ declare const notionOperations: {
380
349
  properties: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
381
350
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
382
351
  NOTION_ACCESS_TOKEN: zod.ZodString;
383
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
384
- NOTION_ACCESS_TOKEN: zod.ZodString;
385
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
352
+ }, zod_v4_core0.$strip>>], undefined>;
386
353
  readonly updateDataSourceEntry: _keystrokehq_core0.Operation<zod.ZodObject<{
387
354
  pageId: zod.ZodString;
388
355
  properties: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
@@ -407,9 +374,7 @@ declare const notionOperations: {
407
374
  properties: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
408
375
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
409
376
  NOTION_ACCESS_TOKEN: zod.ZodString;
410
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
411
- NOTION_ACCESS_TOKEN: zod.ZodString;
412
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
377
+ }, zod_v4_core0.$strip>>], undefined>;
413
378
  readonly listComments: _keystrokehq_core0.Operation<zod.ZodObject<{
414
379
  blockId: zod.ZodString;
415
380
  limit: zod.ZodOptional<zod.ZodNumber>;
@@ -443,9 +408,7 @@ declare const notionOperations: {
443
408
  nextCursor: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
444
409
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
445
410
  NOTION_ACCESS_TOKEN: zod.ZodString;
446
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
447
- NOTION_ACCESS_TOKEN: zod.ZodString;
448
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
411
+ }, zod_v4_core0.$strip>>], undefined>;
449
412
  readonly getComment: _keystrokehq_core0.Operation<zod.ZodObject<{
450
413
  commentId: zod.ZodString;
451
414
  }, zod_v4_core0.$strip>, zod.ZodObject<{
@@ -473,9 +436,7 @@ declare const notionOperations: {
473
436
  }, zod_v4_core0.$strip>>;
474
437
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
475
438
  NOTION_ACCESS_TOKEN: zod.ZodString;
476
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
477
- NOTION_ACCESS_TOKEN: zod.ZodString;
478
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
439
+ }, zod_v4_core0.$strip>>], undefined>;
479
440
  readonly createComment: _keystrokehq_core0.Operation<zod.ZodObject<{
480
441
  target: zod.ZodObject<{
481
442
  pageId: zod.ZodOptional<zod.ZodString>;
@@ -509,9 +470,7 @@ declare const notionOperations: {
509
470
  }, zod_v4_core0.$strip>>;
510
471
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
511
472
  NOTION_ACCESS_TOKEN: zod.ZodString;
512
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
513
- NOTION_ACCESS_TOKEN: zod.ZodString;
514
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
473
+ }, zod_v4_core0.$strip>>], undefined>;
515
474
  readonly getMe: _keystrokehq_core0.Operation<zod.ZodObject<{}, zod_v4_core0.$strip>, zod.ZodObject<{
516
475
  id: zod.ZodString;
517
476
  object: zod.ZodLiteral<"user">;
@@ -521,9 +480,7 @@ declare const notionOperations: {
521
480
  email: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
522
481
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
523
482
  NOTION_ACCESS_TOKEN: zod.ZodString;
524
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
525
- NOTION_ACCESS_TOKEN: zod.ZodString;
526
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
483
+ }, zod_v4_core0.$strip>>], undefined>;
527
484
  readonly getUser: _keystrokehq_core0.Operation<zod.ZodObject<{
528
485
  userId: zod.ZodString;
529
486
  }, zod_v4_core0.$strip>, zod.ZodObject<{
@@ -535,9 +492,7 @@ declare const notionOperations: {
535
492
  email: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
536
493
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
537
494
  NOTION_ACCESS_TOKEN: zod.ZodString;
538
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
539
- NOTION_ACCESS_TOKEN: zod.ZodString;
540
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
495
+ }, zod_v4_core0.$strip>>], undefined>;
541
496
  readonly listUsers: _keystrokehq_core0.Operation<zod.ZodObject<{
542
497
  limit: zod.ZodOptional<zod.ZodNumber>;
543
498
  startCursor: zod.ZodOptional<zod.ZodString>;
@@ -554,9 +509,7 @@ declare const notionOperations: {
554
509
  nextCursor: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
555
510
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
556
511
  NOTION_ACCESS_TOKEN: zod.ZodString;
557
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
558
- NOTION_ACCESS_TOKEN: zod.ZodString;
559
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
512
+ }, zod_v4_core0.$strip>>], undefined>;
560
513
  readonly searchWorkspace: _keystrokehq_core0.Operation<zod.ZodObject<{
561
514
  query: zod.ZodOptional<zod.ZodString>;
562
515
  object: zod.ZodOptional<zod.ZodEnum<{
@@ -592,9 +545,7 @@ declare const notionOperations: {
592
545
  nextCursor: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
593
546
  }, zod_v4_core0.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", zod.ZodObject<{
594
547
  NOTION_ACCESS_TOKEN: zod.ZodString;
595
- }, zod_v4_core0.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<zod.ZodObject<{
596
- NOTION_ACCESS_TOKEN: zod.ZodString;
597
- }, zod_v4_core0.$strip>>[] | undefined>], undefined>;
548
+ }, zod_v4_core0.$strip>>], undefined>;
598
549
  };
599
550
  //#endregion
600
551
  export { notionOperations };
package/dist/blocks.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/blocks.d.ts
6
5
  declare const getBlock: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -25,9 +24,7 @@ declare const getBlock: _keystrokehq_core0.Operation<z.ZodObject<{
25
24
  value: z.ZodOptional<z.ZodUnknown>;
26
25
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
27
26
  NOTION_ACCESS_TOKEN: z.ZodString;
28
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
29
- NOTION_ACCESS_TOKEN: z.ZodString;
30
- }, z.core.$strip>>[] | undefined>], undefined>;
27
+ }, z.core.$strip>>], undefined>;
31
28
  declare const listBlockChildren: _keystrokehq_core0.Operation<z.ZodObject<{
32
29
  blockId: z.ZodString;
33
30
  limit: z.ZodOptional<z.ZodNumber>;
@@ -57,9 +54,7 @@ declare const listBlockChildren: _keystrokehq_core0.Operation<z.ZodObject<{
57
54
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
55
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
59
56
  NOTION_ACCESS_TOKEN: z.ZodString;
60
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
61
- NOTION_ACCESS_TOKEN: z.ZodString;
62
- }, z.core.$strip>>[] | undefined>], undefined>;
57
+ }, z.core.$strip>>], undefined>;
63
58
  declare const appendBlockChildren: _keystrokehq_core0.Operation<z.ZodObject<{
64
59
  blockId: z.ZodString;
65
60
  children: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -67,9 +62,7 @@ declare const appendBlockChildren: _keystrokehq_core0.Operation<z.ZodObject<{
67
62
  success: z.ZodLiteral<true>;
68
63
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
69
64
  NOTION_ACCESS_TOKEN: z.ZodString;
70
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
71
- NOTION_ACCESS_TOKEN: z.ZodString;
72
- }, z.core.$strip>>[] | undefined>], undefined>;
65
+ }, z.core.$strip>>], undefined>;
73
66
  declare const updateBlock: _keystrokehq_core0.Operation<z.ZodObject<{
74
67
  blockId: z.ZodString;
75
68
  block: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -93,9 +86,7 @@ declare const updateBlock: _keystrokehq_core0.Operation<z.ZodObject<{
93
86
  value: z.ZodOptional<z.ZodUnknown>;
94
87
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
95
88
  NOTION_ACCESS_TOKEN: z.ZodString;
96
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
97
- NOTION_ACCESS_TOKEN: z.ZodString;
98
- }, z.core.$strip>>[] | undefined>], undefined>;
89
+ }, z.core.$strip>>], undefined>;
99
90
  declare const deleteBlock: _keystrokehq_core0.Operation<z.ZodObject<{
100
91
  blockId: z.ZodString;
101
92
  }, z.core.$strip>, z.ZodObject<{
@@ -118,8 +109,6 @@ declare const deleteBlock: _keystrokehq_core0.Operation<z.ZodObject<{
118
109
  value: z.ZodOptional<z.ZodUnknown>;
119
110
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
120
111
  NOTION_ACCESS_TOKEN: z.ZodString;
121
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
122
- NOTION_ACCESS_TOKEN: z.ZodString;
123
- }, z.core.$strip>>[] | undefined>], undefined>;
112
+ }, z.core.$strip>>], undefined>;
124
113
  //#endregion
125
114
  export { appendBlockChildren, deleteBlock, getBlock, listBlockChildren, updateBlock };
package/dist/blocks.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { appendBlockChildrenInChunks, createNotionClient, listAllPaginatedResults, withRateLimitRetry } from "./client.mjs";
2
2
  import { normalizeBlock, normalizeListMeta, notionBlockSchema, notionListResponseSchema, notionSuccessResponseSchema } from "./schemas.mjs";
3
- import { t as notionOperation } from "./factory-BFy8QmFf.mjs";
3
+ import { t as notionOperation } from "./factory-BmLNLbSq.mjs";
4
4
  import { r as buildPaginationInput } from "./shared-C6A6JPl3.mjs";
5
5
  import { z } from "zod";
6
6
 
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as NotionCredentials } from "./integration-D12eY2r0.mjs";
1
+ import { t as NotionCredentials } from "./integration--FJUCgRj.mjs";
2
2
  import { Client } from "@notionhq/client";
3
3
 
4
4
  //#region src/client.d.ts
package/dist/client.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as notion } from "./integration-BdUbYCu5.mjs";
1
+ import { t as notion } from "./integration-xFeJVYim.mjs";
2
2
  import { CredentialRevokedError } from "@keystrokehq/core/errors";
3
3
  import { createErrorNormalizingProxy } from "@keystrokehq/integration-authoring";
4
4
  import { Client } from "@notionhq/client";
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/comments.d.ts
6
5
  declare const listComments: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -36,9 +35,7 @@ declare const listComments: _keystrokehq_core0.Operation<z.ZodObject<{
36
35
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
36
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
38
37
  NOTION_ACCESS_TOKEN: z.ZodString;
39
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
40
- NOTION_ACCESS_TOKEN: z.ZodString;
41
- }, z.core.$strip>>[] | undefined>], undefined>;
38
+ }, z.core.$strip>>], undefined>;
42
39
  declare const getComment: _keystrokehq_core0.Operation<z.ZodObject<{
43
40
  commentId: z.ZodString;
44
41
  }, z.core.$strip>, z.ZodObject<{
@@ -66,9 +63,7 @@ declare const getComment: _keystrokehq_core0.Operation<z.ZodObject<{
66
63
  }, z.core.$strip>>;
67
64
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
68
65
  NOTION_ACCESS_TOKEN: z.ZodString;
69
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
70
- NOTION_ACCESS_TOKEN: z.ZodString;
71
- }, z.core.$strip>>[] | undefined>], undefined>;
66
+ }, z.core.$strip>>], undefined>;
72
67
  declare const createComment: _keystrokehq_core0.Operation<z.ZodObject<{
73
68
  target: z.ZodObject<{
74
69
  pageId: z.ZodOptional<z.ZodString>;
@@ -102,8 +97,6 @@ declare const createComment: _keystrokehq_core0.Operation<z.ZodObject<{
102
97
  }, z.core.$strip>>;
103
98
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
104
99
  NOTION_ACCESS_TOKEN: z.ZodString;
105
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
106
- NOTION_ACCESS_TOKEN: z.ZodString;
107
- }, z.core.$strip>>[] | undefined>], undefined>;
100
+ }, z.core.$strip>>], undefined>;
108
101
  //#endregion
109
102
  export { createComment, getComment, listComments };
package/dist/comments.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createNotionClient, withRateLimitRetry } from "./client.mjs";
2
2
  import { normalizeComment, normalizeListMeta, notionCommentSchema, notionListResponseSchema } from "./schemas.mjs";
3
- import { t as notionOperation } from "./factory-BFy8QmFf.mjs";
3
+ import { t as notionOperation } from "./factory-BmLNLbSq.mjs";
4
4
  import { i as buildPlainTextRichText, r as buildPaginationInput, t as buildCommentTarget } from "./shared-C6A6JPl3.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -1,2 +1,2 @@
1
- import { i as notionOfficialIntegration, n as notion, t as NotionCredentials } from "./integration-D12eY2r0.mjs";
1
+ import { i as notionOfficialIntegration, n as notion, t as NotionCredentials } from "./integration--FJUCgRj.mjs";
2
2
  export { type NotionCredentials, notion, notionOfficialIntegration };
@@ -1,3 +1,3 @@
1
- import { r as notionOfficialIntegration, t as notion } from "./integration-BdUbYCu5.mjs";
1
+ import { r as notionOfficialIntegration, t as notion } from "./integration-xFeJVYim.mjs";
2
2
 
3
3
  export { notion, notionOfficialIntegration };
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/data-sources.d.ts
6
5
  declare const discoverDatabaseDataSources: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -13,9 +12,7 @@ declare const discoverDatabaseDataSources: _keystrokehq_core0.Operation<z.ZodObj
13
12
  }, z.core.$strip>>;
14
13
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
15
14
  NOTION_ACCESS_TOKEN: z.ZodString;
16
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
17
- NOTION_ACCESS_TOKEN: z.ZodString;
18
- }, z.core.$strip>>[] | undefined>], undefined>;
15
+ }, z.core.$strip>>], undefined>;
19
16
  declare const getDataSource: _keystrokehq_core0.Operation<z.ZodObject<{
20
17
  dataSourceId: z.ZodString;
21
18
  }, z.core.$strip>, z.ZodObject<{
@@ -36,9 +33,7 @@ declare const getDataSource: _keystrokehq_core0.Operation<z.ZodObject<{
36
33
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
37
34
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
38
35
  NOTION_ACCESS_TOKEN: z.ZodString;
39
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
40
- NOTION_ACCESS_TOKEN: z.ZodString;
41
- }, z.core.$strip>>[] | undefined>], undefined>;
36
+ }, z.core.$strip>>], undefined>;
42
37
  declare const queryDataSource: _keystrokehq_core0.Operation<z.ZodObject<{
43
38
  dataSourceId: z.ZodString;
44
39
  filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -69,9 +64,7 @@ declare const queryDataSource: _keystrokehq_core0.Operation<z.ZodObject<{
69
64
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
65
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
71
66
  NOTION_ACCESS_TOKEN: z.ZodString;
72
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
73
- NOTION_ACCESS_TOKEN: z.ZodString;
74
- }, z.core.$strip>>[] | undefined>], undefined>;
67
+ }, z.core.$strip>>], undefined>;
75
68
  declare const createDataSourceEntry: _keystrokehq_core0.Operation<z.ZodObject<{
76
69
  dataSourceId: z.ZodString;
77
70
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -96,9 +89,7 @@ declare const createDataSourceEntry: _keystrokehq_core0.Operation<z.ZodObject<{
96
89
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
97
90
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
98
91
  NOTION_ACCESS_TOKEN: z.ZodString;
99
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
100
- NOTION_ACCESS_TOKEN: z.ZodString;
101
- }, z.core.$strip>>[] | undefined>], undefined>;
92
+ }, z.core.$strip>>], undefined>;
102
93
  declare const updateDataSourceEntry: _keystrokehq_core0.Operation<z.ZodObject<{
103
94
  pageId: z.ZodString;
104
95
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -123,8 +114,6 @@ declare const updateDataSourceEntry: _keystrokehq_core0.Operation<z.ZodObject<{
123
114
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
124
115
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
125
116
  NOTION_ACCESS_TOKEN: z.ZodString;
126
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
127
- NOTION_ACCESS_TOKEN: z.ZodString;
128
- }, z.core.$strip>>[] | undefined>], undefined>;
117
+ }, z.core.$strip>>], undefined>;
129
118
  //#endregion
130
119
  export { createDataSourceEntry, discoverDatabaseDataSources, getDataSource, queryDataSource, updateDataSourceEntry };
@@ -1,6 +1,6 @@
1
1
  import { createNotionClient, withRateLimitRetry } from "./client.mjs";
2
2
  import { normalizeDataSource, normalizeListMeta, normalizePage, notionDataSourceSchema, notionListResponseSchema, notionPageSchema } from "./schemas.mjs";
3
- import { t as notionOperation } from "./factory-BFy8QmFf.mjs";
3
+ import { t as notionOperation } from "./factory-BmLNLbSq.mjs";
4
4
  import { r as buildPaginationInput } from "./shared-C6A6JPl3.mjs";
5
5
  import { z } from "zod";
6
6
 
@@ -1,4 +1,4 @@
1
- import { t as notion } from "./integration-BdUbYCu5.mjs";
1
+ import { t as notion } from "./integration-xFeJVYim.mjs";
2
2
  import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
3
3
 
4
4
  //#region src/factory.ts
@@ -0,0 +1,24 @@
1
+ import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
2
+ import { z } from "zod";
3
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
+ import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
5
+
6
+ //#region src/integration.d.ts
7
+ declare const notionOfficialIntegration: {
8
+ id: "notion";
9
+ name: string;
10
+ description: string;
11
+ credentialType: "oauth";
12
+ auth: z.ZodObject<{
13
+ NOTION_ACCESS_TOKEN: z.ZodString;
14
+ }, z.core.$strip>;
15
+ };
16
+ declare const notionBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"notion", z.ZodObject<{
17
+ NOTION_ACCESS_TOKEN: z.ZodString;
18
+ }, z.core.$strip>>;
19
+ declare const notion: _keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
20
+ NOTION_ACCESS_TOKEN: z.ZodString;
21
+ }, z.core.$strip>>;
22
+ type NotionCredentials = InferCredentialSetAuth<typeof notion>;
23
+ //#endregion
24
+ export { notionOfficialIntegration as i, notion as n, notionBundle as r, NotionCredentials as t };
@@ -1,11 +1,11 @@
1
1
  import { defineOfficialIntegration, officialCredentialSetId } from "@keystrokehq/integration-authoring/official";
2
2
  import { z } from "zod";
3
3
  import { CredentialSet } from "@keystrokehq/core";
4
- import { oauthDefaults, oauthPresets, pipe } from "@keystrokehq/credential-connection";
5
4
 
6
5
  //#region src/_official/provider-app.ts
7
6
  const notionAppCredentialSet = new CredentialSet({
8
7
  id: officialCredentialSetId("notion-app"),
8
+ credentialType: "manual",
9
9
  exposure: "platform-only",
10
10
  name: "Notion App",
11
11
  auth: z.object({
@@ -31,34 +31,12 @@ const notionOfficialProviderSeed = {
31
31
  };
32
32
  const notionWebhookCredentialSet = new CredentialSet({
33
33
  id: officialCredentialSetId("notion-webhook"),
34
+ credentialType: "manual",
34
35
  exposure: "platform-only",
35
36
  name: "Notion Webhook",
36
37
  auth: z.object({ verificationToken: z.string().min(1) })
37
38
  });
38
39
 
39
- //#endregion
40
- //#region src/oauth-connection.ts
41
- const notionTokenExchange = oauthPresets.basicAuthJsonBody();
42
- const notionOAuthConnection = {
43
- kind: "oauth",
44
- tokenType: "refreshable",
45
- authUrl: "https://api.notion.com/v1/oauth/authorize",
46
- tokenUrl: "https://api.notion.com/v1/oauth/token",
47
- revokeUrl: "https://api.notion.com/v1/oauth/revoke",
48
- scopes: [
49
- "content:read",
50
- "content:write",
51
- "comments:read",
52
- "comments:write",
53
- "users:read"
54
- ],
55
- vault: { accessToken: "NOTION_ACCESS_TOKEN" },
56
- oauth: { id: "official.notion.oauth" },
57
- buildAuthUrl: pipe(oauthDefaults.buildAuthUrl, oauthPresets.noScopeParam, oauthPresets.extraAuthParams({ owner: "user" })),
58
- exchangeCode: pipe(oauthDefaults.exchangeCode, notionTokenExchange.exchangeCode),
59
- refreshToken: pipe(oauthDefaults.refreshToken, notionTokenExchange.refreshToken)
60
- };
61
-
62
40
  //#endregion
63
41
  //#region src/integration.ts
64
42
  const notionAuthSchema = z.object({ NOTION_ACCESS_TOKEN: z.string().min(1) });
@@ -66,19 +44,8 @@ const notionOfficialIntegration = {
66
44
  id: "notion",
67
45
  name: "Notion",
68
46
  description: "Notion pages, blocks, data sources, comments, users, search, and triggers",
69
- auth: notionAuthSchema,
70
- connections: [{
71
- id: "oauth",
72
- label: "Connect Notion workspace",
73
- recommended: true,
74
- ...notionOAuthConnection
75
- }, {
76
- id: "integration-token",
77
- kind: "manual",
78
- label: "Use internal integration token",
79
- advanced: true,
80
- input: notionAuthSchema
81
- }]
47
+ credentialType: "oauth",
48
+ auth: notionAuthSchema
82
49
  };
83
50
  const notionBundle = defineOfficialIntegration({
84
51
  ...notionOfficialIntegration,
package/dist/pages.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/pages.d.ts
6
5
  declare const getPage: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -25,9 +24,7 @@ declare const getPage: _keystrokehq_core0.Operation<z.ZodObject<{
25
24
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
26
25
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
27
26
  NOTION_ACCESS_TOKEN: z.ZodString;
28
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
29
- NOTION_ACCESS_TOKEN: z.ZodString;
30
- }, z.core.$strip>>[] | undefined>], undefined>;
27
+ }, z.core.$strip>>], undefined>;
31
28
  declare const createPage: _keystrokehq_core0.Operation<z.ZodObject<{
32
29
  parent: z.ZodObject<{
33
30
  pageId: z.ZodOptional<z.ZodString>;
@@ -57,9 +54,7 @@ declare const createPage: _keystrokehq_core0.Operation<z.ZodObject<{
57
54
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
58
55
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
59
56
  NOTION_ACCESS_TOKEN: z.ZodString;
60
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
61
- NOTION_ACCESS_TOKEN: z.ZodString;
62
- }, z.core.$strip>>[] | undefined>], undefined>;
57
+ }, z.core.$strip>>], undefined>;
63
58
  declare const updatePage: _keystrokehq_core0.Operation<z.ZodObject<{
64
59
  pageId: z.ZodString;
65
60
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -87,9 +82,7 @@ declare const updatePage: _keystrokehq_core0.Operation<z.ZodObject<{
87
82
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
88
83
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
89
84
  NOTION_ACCESS_TOKEN: z.ZodString;
90
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
91
- NOTION_ACCESS_TOKEN: z.ZodString;
92
- }, z.core.$strip>>[] | undefined>], undefined>;
85
+ }, z.core.$strip>>], undefined>;
93
86
  declare const copyPageContent: _keystrokehq_core0.Operation<z.ZodObject<{
94
87
  sourcePageId: z.ZodString;
95
88
  targetPageId: z.ZodString;
@@ -97,9 +90,7 @@ declare const copyPageContent: _keystrokehq_core0.Operation<z.ZodObject<{
97
90
  success: z.ZodLiteral<true>;
98
91
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
99
92
  NOTION_ACCESS_TOKEN: z.ZodString;
100
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
101
- NOTION_ACCESS_TOKEN: z.ZodString;
102
- }, z.core.$strip>>[] | undefined>], undefined>;
93
+ }, z.core.$strip>>], undefined>;
103
94
  declare const trashPage: _keystrokehq_core0.Operation<z.ZodObject<{
104
95
  pageId: z.ZodString;
105
96
  }, z.core.$strip>, z.ZodObject<{
@@ -122,9 +113,7 @@ declare const trashPage: _keystrokehq_core0.Operation<z.ZodObject<{
122
113
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
123
114
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
124
115
  NOTION_ACCESS_TOKEN: z.ZodString;
125
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
126
- NOTION_ACCESS_TOKEN: z.ZodString;
127
- }, z.core.$strip>>[] | undefined>], undefined>;
116
+ }, z.core.$strip>>], undefined>;
128
117
  declare const getPageProperty: _keystrokehq_core0.Operation<z.ZodObject<{
129
118
  pageId: z.ZodString;
130
119
  propertyId: z.ZodString;
@@ -139,9 +128,7 @@ declare const getPageProperty: _keystrokehq_core0.Operation<z.ZodObject<{
139
128
  hasMore: z.ZodOptional<z.ZodBoolean>;
140
129
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
141
130
  NOTION_ACCESS_TOKEN: z.ZodString;
142
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
143
- NOTION_ACCESS_TOKEN: z.ZodString;
144
- }, z.core.$strip>>[] | undefined>], undefined>;
131
+ }, z.core.$strip>>], undefined>;
145
132
  declare const restorePage: _keystrokehq_core0.Operation<z.ZodObject<{
146
133
  pageId: z.ZodString;
147
134
  }, z.core.$strip>, z.ZodObject<{
@@ -164,8 +151,6 @@ declare const restorePage: _keystrokehq_core0.Operation<z.ZodObject<{
164
151
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
165
152
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
166
153
  NOTION_ACCESS_TOKEN: z.ZodString;
167
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
168
- NOTION_ACCESS_TOKEN: z.ZodString;
169
- }, z.core.$strip>>[] | undefined>], undefined>;
154
+ }, z.core.$strip>>], undefined>;
170
155
  //#endregion
171
156
  export { copyPageContent, createPage, getPage, getPageProperty, restorePage, trashPage, updatePage };
package/dist/pages.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NOTION_MAX_BLOCK_CHILDREN_PER_REQUEST, appendBlockChildrenAndReturnResults, chunkArray, createNotionClient, listAllPaginatedResults, withRateLimitRetry } from "./client.mjs";
2
2
  import { normalizePage, normalizePagePropertyItem, notionPagePropertyItemSchema, notionPageSchema, notionSuccessResponseSchema } from "./schemas.mjs";
3
- import { t as notionOperation } from "./factory-BFy8QmFf.mjs";
3
+ import { t as notionOperation } from "./factory-BmLNLbSq.mjs";
4
4
  import { i as buildPlainTextRichText, n as buildPageParent, r as buildPaginationInput } from "./shared-C6A6JPl3.mjs";
5
5
  import { z } from "zod";
6
6
 
package/dist/search.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/search.d.ts
6
5
  declare const searchWorkspace: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -38,8 +37,6 @@ declare const searchWorkspace: _keystrokehq_core0.Operation<z.ZodObject<{
38
37
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
38
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
40
39
  NOTION_ACCESS_TOKEN: z.ZodString;
41
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
42
- NOTION_ACCESS_TOKEN: z.ZodString;
43
- }, z.core.$strip>>[] | undefined>], undefined>;
40
+ }, z.core.$strip>>], undefined>;
44
41
  //#endregion
45
42
  export { searchWorkspace };
package/dist/search.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createNotionClient, withRateLimitRetry } from "./client.mjs";
2
2
  import { normalizeListMeta, normalizeSearchResult, notionListResponseSchema, notionSearchResultSchema } from "./schemas.mjs";
3
- import { t as notionOperation } from "./factory-BFy8QmFf.mjs";
3
+ import { t as notionOperation } from "./factory-BmLNLbSq.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/search.ts
@@ -1,4 +1,4 @@
1
- import { n as notion } from "./integration-D12eY2r0.mjs";
1
+ import { n as notion } from "./integration--FJUCgRj.mjs";
2
2
  import { z } from "zod";
3
3
  import { BoundTrigger } from "@keystrokehq/core";
4
4
  import { IntegrationTriggerBindingOptions } from "@keystrokehq/integration-authoring";
package/dist/triggers.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as notion } from "./integration-BdUbYCu5.mjs";
1
+ import { t as notion } from "./integration-xFeJVYim.mjs";
2
2
  import { createNotionClient, withRateLimitRetry } from "./client.mjs";
3
3
  import { createPollingEvent, notionPollingEventSchema } from "./events.mjs";
4
4
  import { z } from "zod";
package/dist/users.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/users.d.ts
6
5
  declare const getMe: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
@@ -12,9 +11,7 @@ declare const getMe: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>
12
11
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
12
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
14
13
  NOTION_ACCESS_TOKEN: z.ZodString;
15
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
16
- NOTION_ACCESS_TOKEN: z.ZodString;
17
- }, z.core.$strip>>[] | undefined>], undefined>;
14
+ }, z.core.$strip>>], undefined>;
18
15
  declare const getUser: _keystrokehq_core0.Operation<z.ZodObject<{
19
16
  userId: z.ZodString;
20
17
  }, z.core.$strip>, z.ZodObject<{
@@ -26,9 +23,7 @@ declare const getUser: _keystrokehq_core0.Operation<z.ZodObject<{
26
23
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
24
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
28
25
  NOTION_ACCESS_TOKEN: z.ZodString;
29
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
30
- NOTION_ACCESS_TOKEN: z.ZodString;
31
- }, z.core.$strip>>[] | undefined>], undefined>;
26
+ }, z.core.$strip>>], undefined>;
32
27
  declare const listUsers: _keystrokehq_core0.Operation<z.ZodObject<{
33
28
  limit: z.ZodOptional<z.ZodNumber>;
34
29
  startCursor: z.ZodOptional<z.ZodString>;
@@ -45,8 +40,6 @@ declare const listUsers: _keystrokehq_core0.Operation<z.ZodObject<{
45
40
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
41
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
47
42
  NOTION_ACCESS_TOKEN: z.ZodString;
48
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
49
- NOTION_ACCESS_TOKEN: z.ZodString;
50
- }, z.core.$strip>>[] | undefined>], undefined>;
43
+ }, z.core.$strip>>], undefined>;
51
44
  //#endregion
52
45
  export { getMe, getUser, listUsers };
package/dist/users.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createNotionClient, withRateLimitRetry } from "./client.mjs";
2
2
  import { normalizeListMeta, normalizeUser, notionListResponseSchema, notionUserSchema } from "./schemas.mjs";
3
- import { t as notionOperation } from "./factory-BFy8QmFf.mjs";
3
+ import { t as notionOperation } from "./factory-BmLNLbSq.mjs";
4
4
  import { r as buildPaginationInput } from "./shared-C6A6JPl3.mjs";
5
5
  import { z } from "zod";
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/notion",
3
- "version": "0.0.10",
3
+ "version": "0.0.15",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -76,20 +76,19 @@
76
76
  "LICENSE"
77
77
  ],
78
78
  "dependencies": {
79
- "@keystrokehq/credential-connection": "^1.0.0",
80
- "@keystrokehq/integration-authoring": "^0.0.8",
79
+ "@keystrokehq/integration-authoring": "^0.0.9",
81
80
  "@notionhq/client": "^5.17.0",
82
81
  "zod": "^4.3.6"
83
82
  },
84
83
  "peerDependencies": {
85
- "@keystrokehq/core": ">=0.0.8 <0.1.0"
84
+ "@keystrokehq/core": ">=0.0.13 <0.1.0"
86
85
  },
87
86
  "devDependencies": {
88
87
  "@types/node": "^22.19.11",
89
88
  "tsdown": "^0.20.3",
90
89
  "typescript": "^5.9.3",
91
90
  "vitest": "^4.0.18",
92
- "@keystrokehq/core": "^0.0.8",
91
+ "@keystrokehq/core": "^0.0.13",
93
92
  "@keystrokehq/test-utils": "0.0.0",
94
93
  "@keystrokehq/typescript-config": "0.0.0"
95
94
  },
@@ -1,56 +0,0 @@
1
- import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
2
- import { z } from "zod";
3
- import * as _keystrokehq_core0 from "@keystrokehq/core";
4
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
5
- import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
6
-
7
- //#region src/integration.d.ts
8
- declare const notionOfficialIntegration: {
9
- id: "notion";
10
- name: string;
11
- description: string;
12
- auth: z.ZodObject<{
13
- NOTION_ACCESS_TOKEN: z.ZodString;
14
- }, z.core.$strip>;
15
- connections: ({
16
- kind: "oauth";
17
- tokenType: "refreshable";
18
- authUrl: "https://api.notion.com/v1/oauth/authorize";
19
- tokenUrl: "https://api.notion.com/v1/oauth/token";
20
- revokeUrl: "https://api.notion.com/v1/oauth/revoke";
21
- scopes: readonly ["content:read", "content:write", "comments:read", "comments:write", "users:read"];
22
- vault: {
23
- readonly accessToken: "NOTION_ACCESS_TOKEN";
24
- };
25
- oauth: {
26
- readonly id: "official.notion.oauth";
27
- };
28
- buildAuthUrl: _keystrokehq_core_credential_set0.BuildAuthUrlHook;
29
- exchangeCode: _keystrokehq_core_credential_set0.ExchangeCodeHook;
30
- refreshToken: _keystrokehq_core_credential_set0.RefreshTokenHook;
31
- id: string;
32
- label: string;
33
- recommended: true;
34
- advanced?: undefined;
35
- input?: undefined;
36
- } | {
37
- id: string;
38
- kind: "manual";
39
- label: string;
40
- advanced: true;
41
- input: z.ZodObject<{
42
- NOTION_ACCESS_TOKEN: z.ZodString;
43
- }, z.core.$strip>;
44
- })[];
45
- };
46
- declare const notionBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"notion", z.ZodObject<{
47
- NOTION_ACCESS_TOKEN: z.ZodString;
48
- }, z.core.$strip>>;
49
- declare const notion: _keystrokehq_core0.CredentialSet<"keystroke:notion", z.ZodObject<{
50
- NOTION_ACCESS_TOKEN: z.ZodString;
51
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
52
- NOTION_ACCESS_TOKEN: z.ZodString;
53
- }, z.core.$strip>>[] | undefined>;
54
- type NotionCredentials = InferCredentialSetAuth<typeof notion>;
55
- //#endregion
56
- export { notionOfficialIntegration as i, notion as n, notionBundle as r, NotionCredentials as t };