@notionhq/apps 0.0.33 → 0.0.35

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 (60) hide show
  1. package/README.md +59 -5
  2. package/dist/configured-events.d.ts +45 -0
  3. package/dist/configured-events.d.ts.map +1 -0
  4. package/dist/configured-events.js +38 -0
  5. package/dist/configured-events.test.d.ts +2 -0
  6. package/dist/configured-events.test.d.ts.map +1 -0
  7. package/dist/custom-block.d.ts +1 -1
  8. package/dist/events-types.test.d.ts +2 -0
  9. package/dist/events-types.test.d.ts.map +1 -0
  10. package/dist/{triggers.d.ts → events.d.ts} +1 -1
  11. package/dist/events.d.ts.map +1 -0
  12. package/dist/{triggers.generated.d.ts → events.generated.d.ts} +20 -38
  13. package/dist/events.generated.d.ts.map +1 -0
  14. package/dist/{triggers.generated.js → events.generated.js} +9 -35
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +2 -0
  18. package/dist/notion-as-code/custom-agent.d.ts +15 -60
  19. package/dist/notion-as-code/custom-agent.d.ts.map +1 -1
  20. package/dist/notion-as-code/custom-agent.js +15 -1
  21. package/dist/notion-as-code/database.d.ts +11 -0
  22. package/dist/notion-as-code/database.d.ts.map +1 -1
  23. package/dist/notion-as-code/database.js +12 -0
  24. package/dist/notion-as-code/index.d.ts +1 -1
  25. package/dist/notion-as-code/index.d.ts.map +1 -1
  26. package/dist/notion-as-code/intents.d.ts +7 -1
  27. package/dist/notion-as-code/intents.d.ts.map +1 -1
  28. package/dist/notion-as-code/recurrence.d.ts +49 -0
  29. package/dist/notion-as-code/recurrence.d.ts.map +1 -0
  30. package/dist/notion-as-code/recurrence.js +0 -0
  31. package/dist/workflow.d.ts +4 -4
  32. package/dist/workflow.d.ts.map +1 -1
  33. package/dist/workflow.js +2 -2
  34. package/package.json +7 -7
  35. package/skills/connections/SKILL.md +3 -3
  36. package/skills/notion-as-code/SKILL.md +11 -7
  37. package/skills/workflow/SKILL.md +25 -5
  38. package/src/cli/build.test.ts +30 -0
  39. package/src/configured-events.test.ts +90 -0
  40. package/src/configured-events.ts +101 -0
  41. package/src/connections.ts +1 -1
  42. package/src/events-types.test.ts +110 -0
  43. package/src/{triggers.generated.ts → events.generated.ts} +21 -55
  44. package/src/index.ts +1 -0
  45. package/src/notion-as-code/custom-agent.test.ts +82 -2
  46. package/src/notion-as-code/custom-agent.ts +46 -74
  47. package/src/notion-as-code/database.ts +27 -0
  48. package/src/notion-as-code/index.ts +2 -0
  49. package/src/notion-as-code/intents.ts +2 -1
  50. package/src/notion-as-code/notion-as-code-types.test.ts +4 -1
  51. package/src/notion-as-code/recurrence.ts +58 -0
  52. package/src/workflow-access-types.test.ts +4 -4
  53. package/src/workflow-connections-types.test.ts +7 -7
  54. package/src/workflow-types.test.ts +23 -23
  55. package/src/workflow.test.ts +39 -39
  56. package/src/workflow.ts +7 -7
  57. package/dist/triggers.d.ts.map +0 -1
  58. package/dist/triggers.generated.d.ts.map +0 -1
  59. /package/dist/{triggers.js → events.js} +0 -0
  60. /package/src/{triggers.ts → events.ts} +0 -0
package/README.md CHANGED
@@ -34,7 +34,7 @@ const home = page({
34
34
  export default workflow({
35
35
  name: "Follow up",
36
36
  description: "Runs when a page is created",
37
- triggers: ({ triggers }) => [triggers.notionPageCreated()],
37
+ triggers: ({ events }) => [events.notionPageCreated()],
38
38
  handler: async () => {},
39
39
  });
40
40
  ```
@@ -88,7 +88,7 @@ skills with the SDK keeps their instructions up to date with the installed API.
88
88
  The SDK requires Node 26 or newer. It supports workflows and database syncs.
89
89
 
90
90
  ```ts
91
- import { triggers } from "@notionhq/apps/triggers";
91
+ import { events } from "@notionhq/apps/events";
92
92
  import { workflow } from "@notionhq/apps";
93
93
  import { connections } from "@notionhq/apps/workflow";
94
94
  ```
@@ -99,7 +99,7 @@ Add a connection requirement to a workflow when it needs Calendar:
99
99
  export default workflow({
100
100
  name: "Schedule follow-up",
101
101
  description: "Schedules a follow-up after a page is created",
102
- triggers: [triggers.notionPageCreated()],
102
+ triggers: [events.notionPageCreated()],
103
103
  connections: { calendar: connections.calendar() },
104
104
  handler: async () => {},
105
105
  });
@@ -126,8 +126,7 @@ appropriate `context.notion` call, for example
126
126
  `context.notion.pages.retrieve({ page_id: "page-id" })`; the call remains subject
127
127
  to the existing workflow permissions. UI grants do not create `context.access`
128
128
  aliases. Pages, databases, data sources, and custom agents are supported by
129
- named bindings. Workflows with nonempty `access` cannot use `--local-build`.
130
- See the [workflow skill](./skills/workflow/SKILL.md#resources-created-with-the-app)
129
+ named bindings. See the [workflow skill](./skills/workflow/SKILL.md#resources-created-with-the-app)
131
130
  for access levels and a complete example.
132
131
 
133
132
  ## Data-source syncs
@@ -295,3 +294,58 @@ Publishing is initiated only from the GitHub Actions UI:
295
294
  The workflow always increments the patch version. It builds, checks, and tests the
296
295
  SDK before committing the new version, creating a `v*` GitHub release,
297
296
  and publishing `@notionhq/apps` to npm.
297
+
298
+ ## Configured workflow events
299
+
300
+ Use `events` from `@notionhq/apps` (or `@notionhq/apps/events`) inside the workflow's
301
+ `triggers` array. The old `triggers` helper and `/triggers` export have been removed;
302
+ replace helper imports and calls, but keep the `triggers` configuration key.
303
+ Connection-scoped callbacks now use `triggers: ({ events }) => [...]`.
304
+
305
+ ```ts
306
+ import { database, events, workflow } from "@notionhq/apps";
307
+
308
+ const tasks = database("tasks-db", {
309
+ dataSourceResourceId: "tasks-source",
310
+ name: "Tasks",
311
+ schema: {
312
+ Name: { resourceId: "task-name", type: "title" },
313
+ Status: { resourceId: "task-status", type: "select", options: [] },
314
+ },
315
+ });
316
+
317
+ export default workflow({
318
+ name: "Task maintenance",
319
+ description: "Processes tasks on a schedule and when they change",
320
+ triggers: [
321
+ events.scheduled({
322
+ frequency: "week",
323
+ interval: 1,
324
+ weekdays: { MO: true, WE: true, FR: true },
325
+ start: "2026-09-23T09:00:00",
326
+ timeZone: "America/Los_Angeles",
327
+ }),
328
+ events.notionPageCreated({ dataSource: tasks.dataSource }),
329
+ events.notionPageUpdated({
330
+ dataSource: tasks.dataSource,
331
+ properties: [tasks.dataSource.properties.Status],
332
+ }),
333
+ ],
334
+ handler: async (event, context) => {
335
+ await context.step("Log event", () => console.log(event.type));
336
+ },
337
+ });
338
+ ```
339
+
340
+ Property handles autocomplete from the declared schema; use handles, not property-name
341
+ strings. To watch page content without properties, pass `includePageContent: true`.
342
+ Page events watch rows in the selected data source, not arbitrary individual pages.
343
+ Scheduled events accept hourly through yearly recurrence settings.
344
+
345
+ Deploy configured events with `ntn apps deploy` after the backend support is
346
+ deployed. Deployment updates the workflow draft's configured
347
+ trigger set while preserving triggers added in Notion. Open the workflow in Notion
348
+ and save it to activate the schedule or page watch; redeployments also require a
349
+ save to apply changes. Watched databases receive read access; add `access`
350
+ declarations when the workflow needs more access. Zero-argument helpers such
351
+ as `events.scheduled()` leave configuration to Notion instead.
@@ -0,0 +1,45 @@
1
+ import type { DataSourceHandle, PropertyHandle } from "./notion-as-code/database.js";
2
+ import type { NotionAsCodeSchema } from "./notion-as-code/intents.js";
3
+ import type { RecurrenceSchedule } from "./notion-as-code/recurrence.js";
4
+ export type RecurrenceTrigger = {
5
+ type: "recurrence";
6
+ } & (RecurrenceSchedule | {
7
+ frequency?: never;
8
+ });
9
+ export type NotionPageCreatedTrigger = {
10
+ type: "notion.page.created";
11
+ dataSourceResourceId?: string;
12
+ };
13
+ export type NotionPageUpdatedTrigger = {
14
+ type: "notion.page.updated";
15
+ dataSourceResourceId?: string;
16
+ propertyResourceIds?: string[];
17
+ includePageContent?: boolean;
18
+ };
19
+ type WatchablePropertyType = "title" | "text" | "number" | "select" | "multi_select" | "status" | "date" | "person" | "checkbox" | "url" | "email" | "phone_number" | "relation";
20
+ type WatchableProperty<Property extends NotionAsCodeSchema[string]> = Property extends {
21
+ type: WatchablePropertyType;
22
+ } ? PropertyHandle<Property> : never;
23
+ type SourceProperty<Schema extends NotionAsCodeSchema> = WatchableProperty<Schema[keyof Schema]>;
24
+ export type PageUpdatedOptions<Schema extends NotionAsCodeSchema> = {
25
+ dataSource: DataSourceHandle<Schema>;
26
+ } & ({
27
+ properties: readonly [
28
+ SourceProperty<NoInfer<Schema>>,
29
+ ...SourceProperty<NoInfer<Schema>>[]
30
+ ];
31
+ includePageContent?: boolean;
32
+ } | {
33
+ properties?: readonly SourceProperty<NoInfer<Schema>>[];
34
+ includePageContent: true;
35
+ });
36
+ /** Configure a recurrence, or omit options to set it up in Notion. */
37
+ export declare function scheduled(options?: RecurrenceSchedule): RecurrenceTrigger;
38
+ /** Watch new rows in a declared data source, or configure the source in Notion. */
39
+ export declare function notionPageCreated(options?: {
40
+ dataSource: DataSourceHandle;
41
+ }): NotionPageCreatedTrigger;
42
+ /** Watch typed properties and/or page content in a declared data source. */
43
+ export declare function notionPageUpdated<const Schema extends NotionAsCodeSchema>(options?: PageUpdatedOptions<Schema>): NotionPageUpdatedTrigger;
44
+ export {};
45
+ //# sourceMappingURL=configured-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configured-events.d.ts","sourceRoot":"","sources":["../src/configured-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACrF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,GAAG,CACtD,kBAAkB,GAClB;IAAE,SAAS,CAAC,EAAE,KAAK,CAAA;CAAE,CACvB,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,oBAAoB,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B,CAK3B;AAED,4EAA4E;AAC5E,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,MAAM,SAAS,kBAAkB,EACxE,OAAO,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAClC,wBAAwB,CA4B1B"}
@@ -0,0 +1,38 @@
1
+ function scheduled(options) {
2
+ return { type: "recurrence", ...options };
3
+ }
4
+ function notionPageCreated(options) {
5
+ return {
6
+ type: "notion.page.created",
7
+ ...options ? { dataSourceResourceId: options.dataSource.resourceId } : {}
8
+ };
9
+ }
10
+ function notionPageUpdated(options) {
11
+ if (!options) return { type: "notion.page.updated" };
12
+ const { dataSource, properties = [], includePageContent = false } = options;
13
+ if (properties.length === 0 && !includePageContent) {
14
+ throw new Error("Page-updated events must watch at least one property or page content");
15
+ }
16
+ for (const property of properties) {
17
+ if (property.dataSourceResourceId !== dataSource.resourceId || dataSource.properties[property.name]?.resourceId !== property.resourceId) {
18
+ throw new Error(
19
+ `Property "${property.name}" does not belong to data source "${dataSource.resourceId}"`
20
+ );
21
+ }
22
+ }
23
+ return {
24
+ type: "notion.page.updated",
25
+ dataSourceResourceId: dataSource.resourceId,
26
+ ...properties.length ? {
27
+ propertyResourceIds: [
28
+ ...new Set(properties.map((property) => property.resourceId))
29
+ ]
30
+ } : {},
31
+ includePageContent
32
+ };
33
+ }
34
+ export {
35
+ notionPageCreated,
36
+ notionPageUpdated,
37
+ scheduled
38
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=configured-events.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configured-events.test.d.ts","sourceRoot":"","sources":["../src/configured-events.test.ts"],"names":[],"mappings":""}
@@ -56,7 +56,7 @@ export declare function customBlock(options: CustomBlockOptions): {
56
56
  [x: string]: {
57
57
  name: string;
58
58
  description?: string | undefined;
59
- type: "number" | "date" | "url" | "title" | "email" | "phone_number" | "checkbox" | "select" | "multi_select" | "status" | "people" | "place" | "relation" | "created_by" | "last_edited_by" | "created_time" | "last_edited_time" | "last_visited_time" | "location" | "formula" | "rollup" | "verification" | "rich_text" | "files" | "unique_id" | "button";
59
+ type: "number" | "date" | "url" | "title" | "email" | "phone_number" | "checkbox" | "select" | "multi_select" | "status" | "people" | "place" | "relation" | "verification" | "created_by" | "last_edited_by" | "created_time" | "last_edited_time" | "last_visited_time" | "location" | "formula" | "rollup" | "rich_text" | "files" | "unique_id" | "button";
60
60
  };
61
61
  };
62
62
  }>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=events-types.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events-types.test.d.ts","sourceRoot":"","sources":["../src/events-types.test.ts"],"names":[],"mappings":""}
@@ -362,4 +362,4 @@ export type TriggerType = keyof TriggerEventMap;
362
362
  /** Discriminated union of all trigger events. Derived from TriggerEventMap. */
363
363
  export type TriggerEvent = TriggerEventMap[TriggerType];
364
364
  export {};
365
- //# sourceMappingURL=triggers.d.ts.map
365
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,2EAA2E;AAC3E,MAAM,MAAM,gBAAgB,GAAG;IAC9B,CAAC,GAAG,EAAE,KAAK,MAAM,EAAE,GAAG,OAAO,CAAC;CAC9B,CAAC;AAMF,8CAA8C;AAC9C,MAAM,MAAM,WAAW,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,6CAA6C;AAC7C,MAAM,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACpB,CAAC;AAEF,2BAA2B;AAC3B,MAAM,MAAM,QAAQ,GAAG;IACtB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACnB,CAAC;AAEF,uBAAuB;AACvB,MAAM,MAAM,aAAa,GAAG;IAC3B,eAAe;IACf,SAAS,EAAE,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IAC9C,qBAAqB,EAAE,sBAAsB,CAAC;IAC9C,sCAAsC,EAAE,sCAAsC,CAAC;IAC/E,sCAAsC,EAAE,uBAAuB,CAAC;IAChE,wBAAwB,EAAE,yBAAyB,CAAC;IACpD,uBAAuB,EAAE,wBAAwB,CAAC;IAClD,+BAA+B,EAAE,+BAA+B,CAAC;IACjE,kBAAkB,EAAE,YAAY,CAAC;IACjC,+BAA+B,EAAE,iCAAiC,CAAC;IACnE,UAAU,EAAE,eAAe,CAAC;CAC5B,CAAC;AAEF,8DAA8D;AAC9D,MAAM,MAAM,WAAW,GAAG,MAAM,eAAe,CAAC;AAEhD,+EAA+E;AAC/E,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC"}
@@ -1,6 +1,13 @@
1
1
  import type { WorkflowConnectionDeclarations, WorkflowConnectionKeys } from "./connections.js";
2
- import type { CalendarEventCanceledEvent, CalendarEventCreatedEvent, CalendarEventUpdatedEvent, DiscordInteractionEvent, GoogleDriveOauthFilesChangedEvent, MailEmailReceivedEvent, MailEmailSentEvent, MailLabelAppliedEvent, NotionAgentMentionedEvent, NotionButtonPressedEvent, NotionCommentAddedEvent, NotionDatabaseAgentUpdatedEvent, NotionMeetingNoteSummaryCompletedEvent, NotionPageCreatedEvent, NotionPageDeletedEvent, NotionPageUpdatedEvent, RecurrenceEvent, SlackAppMentionEvent, SlackMessageEvent, SlackReactionAddedEvent, WebhookEvent } from "./triggers.js";
3
- export type { Actor, ActorLike, CalendarEventCanceledEvent, CalendarEventCreatedEvent, CalendarEventLike, CalendarEventUpdatedEvent, ChatMessageLike, ChatThreadMessage, DiscordChatThreadMessage, DiscordInteractionEvent, EmailMessageLike, EmailThreadLike, EmailTriggerMessage, GoogleDriveOauthFilesChangedEvent, LinkLike, MailEmailReceivedEvent, MailEmailSentEvent, MailLabelAppliedEvent, MessageLike, NotionAgentMentionedEvent, NotionButtonPressedEvent, NotionCommentAddedEvent, NotionDatabaseAgentUpdatedEvent, NotionMeetingNoteSummaryCompletedEvent, NotionPageCreatedEvent, NotionPageDeletedEvent, NotionPageEdit, NotionPageUpdatedEvent, RecurrenceEvent, RecurrenceFrequency, SlackAppMentionEvent, SlackChatThreadMessage, SlackMessageEvent, SlackReactionAddedEvent, ThreadLike, ThreadMessage, TimestampLike, TriggerEvent, TriggerEventBase, TriggerEventMap, TriggerType, VendorActor, VendorExtensions, WebhookEvent, } from "./triggers.js";
2
+ import { scheduled, notionPageCreated, notionPageUpdated } from "./configured-events.js";
3
+ import type { NotionPageCreatedTrigger, NotionPageUpdatedTrigger, PageUpdatedOptions, RecurrenceTrigger } from "./configured-events.js";
4
+ import type { DataSourceHandle } from "./notion-as-code/database.js";
5
+ import type { NotionAsCodeSchema } from "./notion-as-code/intents.js";
6
+ import type { RecurrenceSchedule } from "./notion-as-code/recurrence.js";
7
+ import type { CalendarEventCanceledEvent, CalendarEventCreatedEvent, CalendarEventUpdatedEvent, DiscordInteractionEvent, GoogleDriveOauthFilesChangedEvent, MailEmailReceivedEvent, MailEmailSentEvent, MailLabelAppliedEvent, NotionAgentMentionedEvent, NotionButtonPressedEvent, NotionCommentAddedEvent, NotionDatabaseAgentUpdatedEvent, NotionMeetingNoteSummaryCompletedEvent, NotionPageCreatedEvent, NotionPageDeletedEvent, NotionPageUpdatedEvent, RecurrenceEvent, SlackAppMentionEvent, SlackMessageEvent, SlackReactionAddedEvent, WebhookEvent } from "./events.js";
8
+ export type { Actor, ActorLike, CalendarEventCanceledEvent, CalendarEventCreatedEvent, CalendarEventLike, CalendarEventUpdatedEvent, ChatMessageLike, ChatThreadMessage, DiscordChatThreadMessage, DiscordInteractionEvent, EmailMessageLike, EmailThreadLike, EmailTriggerMessage, GoogleDriveOauthFilesChangedEvent, LinkLike, MailEmailReceivedEvent, MailEmailSentEvent, MailLabelAppliedEvent, MessageLike, NotionAgentMentionedEvent, NotionButtonPressedEvent, NotionCommentAddedEvent, NotionDatabaseAgentUpdatedEvent, NotionMeetingNoteSummaryCompletedEvent, NotionPageCreatedEvent, NotionPageDeletedEvent, NotionPageEdit, NotionPageUpdatedEvent, RecurrenceEvent, RecurrenceFrequency, SlackAppMentionEvent, SlackChatThreadMessage, SlackMessageEvent, SlackReactionAddedEvent, ThreadLike, ThreadMessage, TimestampLike, TriggerEvent, TriggerEventBase, TriggerEventMap, TriggerType, VendorActor, VendorExtensions, WebhookEvent, } from "./events.js";
9
+ export type { NotionPageCreatedTrigger, NotionPageUpdatedTrigger, PageUpdatedOptions, RecurrenceTrigger } from "./configured-events.js";
10
+ export type { RecurrenceSchedule } from "./notion-as-code/recurrence.js";
4
11
  /** Triggers immediately after a new message is posted in Slack (includes new threads and replies) */
5
12
  export type SlackMessageTrigger<TKey extends string = string> = {
6
13
  type: "slack.message";
@@ -61,14 +68,6 @@ export type CalendarEventCanceledTrigger<TKey extends string = string> = {
61
68
  /** Key of the declared calendar connection. */
62
69
  connectionKey?: TKey;
63
70
  };
64
- /** A page has been added to a database. */
65
- export type NotionPageCreatedTrigger = {
66
- type: "notion.page.created";
67
- };
68
- /** A page was updated. */
69
- export type NotionPageUpdatedTrigger = {
70
- type: "notion.page.updated";
71
- };
72
71
  /** A page was deleted. */
73
72
  export type NotionPageDeletedTrigger = {
74
73
  type: "notion.page.deleted";
@@ -103,12 +102,8 @@ export type GoogleDriveOauthFilesChangedTrigger<TKey extends string = string> =
103
102
  /** Key of the declared googleDriveOauth connection. */
104
103
  connectionKey?: TKey;
105
104
  };
106
- /** A recurring schedule fired. */
107
- export type RecurrenceTrigger = {
108
- type: "recurrence";
109
- };
110
105
  /** Creators for each event that can trigger a workflow. */
111
- export declare const triggers: {
106
+ export declare const events: {
112
107
  /**
113
108
  * Declare that a workflow can run on `slack.message` events.
114
109
  *
@@ -189,18 +184,8 @@ export declare const triggers: {
189
184
  readonly calendarEventCanceled: <const TKey extends string = never>(options?: {
190
185
  connectionKey: TKey;
191
186
  } | undefined) => CalendarEventCanceledTrigger<TKey>;
192
- /**
193
- * Declare that a workflow can run on `notion.page.created` events.
194
- *
195
- * A page has been added to a database.
196
- */
197
- readonly notionPageCreated: () => NotionPageCreatedTrigger;
198
- /**
199
- * Declare that a workflow can run on `notion.page.updated` events.
200
- *
201
- * A page was updated.
202
- */
203
- readonly notionPageUpdated: () => NotionPageUpdatedTrigger;
187
+ readonly notionPageCreated: typeof notionPageCreated;
188
+ readonly notionPageUpdated: typeof notionPageUpdated;
204
189
  /**
205
190
  * Declare that a workflow can run on `notion.page.deleted` events.
206
191
  *
@@ -251,15 +236,10 @@ export declare const triggers: {
251
236
  readonly googleDriveOauthFilesChanged: <const TKey extends string = never>(options?: {
252
237
  connectionKey: TKey;
253
238
  } | undefined) => GoogleDriveOauthFilesChangedTrigger<TKey>;
254
- /**
255
- * Declare that a workflow can run on `recurrence` events.
256
- *
257
- * A recurring schedule fired.
258
- */
259
- readonly scheduled: () => RecurrenceTrigger;
239
+ readonly scheduled: typeof scheduled;
260
240
  };
261
241
  /** Trigger creators restricted to the workflow's declared provider keys. */
262
- export type WorkflowTriggerCreators<TConnections extends WorkflowConnectionDeclarations> = {
242
+ export type WorkflowEventCreators<TConnections extends WorkflowConnectionDeclarations> = {
263
243
  slackMessage(options?: {
264
244
  connectionKey: WorkflowConnectionKeys<TConnections, "slack">;
265
245
  }): SlackMessageTrigger<WorkflowConnectionKeys<TConnections, "slack">>;
@@ -290,8 +270,10 @@ export type WorkflowTriggerCreators<TConnections extends WorkflowConnectionDecla
290
270
  calendarEventCanceled(options?: {
291
271
  connectionKey: WorkflowConnectionKeys<TConnections, "calendar">;
292
272
  }): CalendarEventCanceledTrigger<WorkflowConnectionKeys<TConnections, "calendar">>;
293
- notionPageCreated(): NotionPageCreatedTrigger;
294
- notionPageUpdated(): NotionPageUpdatedTrigger;
273
+ notionPageCreated(options?: {
274
+ dataSource: DataSourceHandle;
275
+ }): NotionPageCreatedTrigger;
276
+ notionPageUpdated<const Schema extends NotionAsCodeSchema>(options?: PageUpdatedOptions<Schema>): NotionPageUpdatedTrigger;
295
277
  notionPageDeleted(): NotionPageDeletedTrigger;
296
278
  notionMeetingNoteSummaryCompleted(): NotionMeetingNoteSummaryCompletedTrigger;
297
279
  notionCommentAdded(): NotionCommentAddedTrigger;
@@ -302,7 +284,7 @@ export type WorkflowTriggerCreators<TConnections extends WorkflowConnectionDecla
302
284
  googleDriveOauthFilesChanged(options?: {
303
285
  connectionKey: WorkflowConnectionKeys<TConnections, "googleDriveOauth">;
304
286
  }): GoogleDriveOauthFilesChangedTrigger<WorkflowConnectionKeys<TConnections, "googleDriveOauth">>;
305
- scheduled(): RecurrenceTrigger;
287
+ scheduled(options?: RecurrenceSchedule): RecurrenceTrigger;
306
288
  };
307
289
  /** Triggers whose connection keys belong to the declared provider. */
308
290
  export type WorkflowTriggerForConnections<TConnections extends WorkflowConnectionDeclarations> = SlackMessageTrigger<WorkflowConnectionKeys<TConnections, "slack">> | SlackReactionAddedTrigger<WorkflowConnectionKeys<TConnections, "slack">> | SlackAppMentionTrigger<WorkflowConnectionKeys<TConnections, "slack">> | DiscordInteractionTrigger<WorkflowConnectionKeys<TConnections, "discord">> | MailEmailReceivedTrigger<WorkflowConnectionKeys<TConnections, "mail">> | MailEmailSentTrigger<WorkflowConnectionKeys<TConnections, "mail">> | MailLabelAppliedTrigger<WorkflowConnectionKeys<TConnections, "mail">> | CalendarEventCreatedTrigger<WorkflowConnectionKeys<TConnections, "calendar">> | CalendarEventUpdatedTrigger<WorkflowConnectionKeys<TConnections, "calendar">> | CalendarEventCanceledTrigger<WorkflowConnectionKeys<TConnections, "calendar">> | NotionPageCreatedTrigger | NotionPageUpdatedTrigger | NotionPageDeletedTrigger | NotionMeetingNoteSummaryCompletedTrigger | NotionCommentAddedTrigger | NotionAgentMentionedTrigger | NotionButtonPressedTrigger | NotionDatabaseAgentUpdatedTrigger | WebhookTrigger | GoogleDriveOauthFilesChangedTrigger<WorkflowConnectionKeys<TConnections, "googleDriveOauth">> | RecurrenceTrigger;
@@ -336,4 +318,4 @@ export type WorkflowEventMap = {
336
318
  "googleDriveOauth.filesChanged": GoogleDriveOauthFilesChangedEvent;
337
319
  recurrence: RecurrenceEvent;
338
320
  };
339
- //# sourceMappingURL=triggers.generated.d.ts.map
321
+ //# sourceMappingURL=events.generated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.generated.d.ts","sourceRoot":"","sources":["../src/events.generated.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/F,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACzF,OAAO,KAAK,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACxI,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,OAAO,KAAK,EACX,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,iCAAiC,EACjC,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,+BAA+B,EAC/B,sCAAsC,EACtC,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,EACZ,MAAM,aAAa,CAAC;AAErB,YAAY,EACX,KAAK,EACL,SAAS,EACT,0BAA0B,EAC1B,yBAAyB,EACzB,iBAAiB,EACjB,yBAAyB,EACzB,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,iCAAiC,EACjC,QAA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AA4B,GAC5B,wBAAwB,GACxB,wBAAwB,GACxB,wBAAwB,GACxB,wCAAwC,GACxC,yBAAyB,GACzB,2BAA2B,GAC3B,0BAA0B,GAC1B,iCAAiC,GACjC,cAAc,GACd,mCAAmC,GACnC,iBAAiB,CAAC;AAErB,yCAAyC;AACzC,eAAO,MAAM,sBAAsB,2hBAsBzB,CAAC;AAEX,sCAAsC;AACtC,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,8EAA8E;AAC9E,MAAM,MAAM,gBAAgB,GAAG;IAC9B,eAAe,EAAE,iBAAiB,CAAC;IACnC,sBAAsB,EAAE,uBAAuB,CAAC;IAChD,mBAAmB,EAAE,oBAAoB,CAAC;IAC1C,qBAAqB,EAAE,uBAAuB,CAAC;IAC/C,qBAAqB,EAAE,sBAAsB,CAAC;IAC9C,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,oBAAoB,EAAE,qBAAqB,CAAC;IAC5C,wBAAwB,EAAE,yBAAyB,CAAC;IACpD,wBAAwB,EAAE,yBAAyB,CAAC;IACpD,yBAAyB,EAAE,0BAA0B,CAAC;IACtD,qBAAqB,EAAE,sBAAsB,CAAC;IAC9C,qBAAqB,EAAE,sBAAsB,CAAC;IAC9C,qBAAqB,EAAE,sBAAsB,CAAC;IAC9C,sCAAsC,EAAE,sCAAsC,CAAC;IAC/E,sCAAsC,EAAE,uBAAuB,CAAC;IAChE,wBAAwB,EAAE,yBAAyB,CAAC;IACpD,uBAAuB,EAAE,wBAAwB,CAAC;IAClD,+BAA+B,EAAE,+BAA+B,CAAC;IACjE,kBAAkB,EAAE,YAAY,CAAC;IACjC,+BAA+B,EAAE,iCAAiC,CAAC;IACnE,UAAU,EAAE,eAAe,CAAC;CAC5B,CAAC"}
@@ -1,4 +1,5 @@
1
- const triggers = {
1
+ import { scheduled, notionPageCreated, notionPageUpdated } from "./configured-events.js";
2
+ const events = {
2
3
  /**
3
4
  * Declare that a workflow can run on `slack.message` events.
4
5
  *
@@ -109,26 +110,8 @@ const triggers = {
109
110
  ...options === void 0 ? {} : { connectionKey: options.connectionKey }
110
111
  };
111
112
  },
112
- /**
113
- * Declare that a workflow can run on `notion.page.created` events.
114
- *
115
- * A page has been added to a database.
116
- */
117
- notionPageCreated() {
118
- return {
119
- type: "notion.page.created"
120
- };
121
- },
122
- /**
123
- * Declare that a workflow can run on `notion.page.updated` events.
124
- *
125
- * A page was updated.
126
- */
127
- notionPageUpdated() {
128
- return {
129
- type: "notion.page.updated"
130
- };
131
- },
113
+ notionPageCreated,
114
+ notionPageUpdated,
132
115
  /**
133
116
  * Declare that a workflow can run on `notion.page.deleted` events.
134
117
  *
@@ -210,19 +193,10 @@ const triggers = {
210
193
  ...options === void 0 ? {} : { connectionKey: options.connectionKey }
211
194
  };
212
195
  },
213
- /**
214
- * Declare that a workflow can run on `recurrence` events.
215
- *
216
- * A recurring schedule fired.
217
- */
218
- scheduled() {
219
- return {
220
- type: "recurrence"
221
- };
222
- }
196
+ scheduled
223
197
  };
224
- function createWorkflowTriggers() {
225
- return triggers;
198
+ function createWorkflowEvents() {
199
+ return events;
226
200
  }
227
201
  const WORKFLOW_TRIGGER_TYPES = [
228
202
  "slack.message",
@@ -249,6 +223,6 @@ const WORKFLOW_TRIGGER_TYPES = [
249
223
  ];
250
224
  export {
251
225
  WORKFLOW_TRIGGER_TYPES,
252
- createWorkflowTriggers,
253
- triggers
226
+ createWorkflowEvents,
227
+ events
254
228
  };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { events } from "./events.generated.js";
1
2
  export { customBlock, type CustomBlockHandle } from "./custom-block.js";
2
3
  export { customAgent } from "./notion-as-code/custom-agent.js";
3
4
  export { database } from "./notion-as-code/database.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,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AAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EACN,MAAM,EACN,KAAK,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,4BAA4B,GACjC,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { events } from "./events.generated.js";
1
2
  import { customBlock } from "./custom-block.js";
2
3
  import { customAgent } from "./notion-as-code/custom-agent.js";
3
4
  import { database } from "./notion-as-code/database.js";
@@ -15,6 +16,7 @@ export {
15
16
  customAgent,
16
17
  customBlock,
17
18
  database,
19
+ events,
18
20
  input,
19
21
  page,
20
22
  sync,
@@ -1,52 +1,8 @@
1
1
  import { type WorkflowAccessDeclaration } from "../workflow-access.js";
2
2
  import type { NotionAsCodeIcon, ResourceId } from "./intents.js";
3
- type RecurrenceWeekday = "MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU";
4
- /** A nonempty selection of weekdays for a weekly recurrence. */
5
- export type RecurrenceWeekdays = {
6
- [Day in RecurrenceWeekday]?: true;
7
- } & {
8
- [Day in RecurrenceWeekday]: Required<Pick<Record<RecurrenceWeekday, true>, Day>>;
9
- }[RecurrenceWeekday];
10
- export type MonthlyWeekdayOccurrence = "1st" | "2nd" | "3rd" | "4th" | "last";
11
- export type MonthlyRecurrenceRestriction = {
12
- type: "day_of_month";
13
- day: number;
14
- } | {
15
- type: "weekday_of_month";
16
- weekday: RecurrenceWeekday;
17
- occurrence: MonthlyWeekdayOccurrence;
18
- };
19
- export type RecurrenceScheduleEnd = {
20
- type: "date";
21
- endsAt: string;
22
- } | {
23
- type: "occurrences";
24
- count: number;
25
- };
26
- type RecurrenceScheduleBase = {
27
- interval: number;
28
- start: string;
29
- timeZone: string;
30
- end?: RecurrenceScheduleEnd;
31
- };
32
- export type HourlyRecurrenceSchedule = RecurrenceScheduleBase & {
33
- frequency: "hour";
34
- };
35
- export type DailyRecurrenceSchedule = RecurrenceScheduleBase & {
36
- frequency: "day";
37
- };
38
- export type WeeklyRecurrenceSchedule = RecurrenceScheduleBase & {
39
- frequency: "week";
40
- weekdays: RecurrenceWeekdays;
41
- };
42
- export type MonthlyRecurrenceSchedule = RecurrenceScheduleBase & {
43
- frequency: "month";
44
- monthlyRestriction: MonthlyRecurrenceRestriction;
45
- };
46
- export type YearlyRecurrenceSchedule = RecurrenceScheduleBase & {
47
- frequency: "year";
48
- };
49
- export type CustomAgentRecurrenceSchedule = (HourlyRecurrenceSchedule | DailyRecurrenceSchedule | WeeklyRecurrenceSchedule | MonthlyRecurrenceSchedule | YearlyRecurrenceSchedule) & {
3
+ import type { RecurrenceSchedule } from "./recurrence.js";
4
+ export type { RecurrenceWeekdays, MonthlyWeekdayOccurrence, MonthlyRecurrenceRestriction, RecurrenceScheduleEnd, HourlyRecurrenceSchedule, DailyRecurrenceSchedule, WeeklyRecurrenceSchedule, MonthlyRecurrenceSchedule, YearlyRecurrenceSchedule, RecurrenceSchedule, } from "./recurrence.js";
5
+ export type CustomAgentRecurrenceSchedule = RecurrenceSchedule & {
50
6
  type: "recurrence";
51
7
  };
52
8
  export type CustomAgentTriggerBase = {
@@ -60,6 +16,8 @@ export type PropertyTriggerCondition = {
60
16
  export type CustomAgentPageAddedTrigger = CustomAgentTriggerBase & {
61
17
  type: "page_added";
62
18
  dataSourceResourceId: ResourceId;
19
+ /** Wait for follow-up edits before running the agent. Defaults to false in Apps. */
20
+ waitForEditsToFinish?: boolean;
63
21
  };
64
22
  type PropertyUpdatedTriggerTarget = {
65
23
  propertyConditions: Readonly<Record<ResourceId, PropertyTriggerCondition>>;
@@ -71,6 +29,8 @@ type PropertyUpdatedTriggerTarget = {
71
29
  export type CustomAgentPropertyUpdatedTrigger = CustomAgentTriggerBase & PropertyUpdatedTriggerTarget & {
72
30
  type: "property_updated";
73
31
  dataSourceResourceId: ResourceId;
32
+ /** Wait for follow-up edits before running the agent. Defaults to false in Apps. */
33
+ waitForEditsToFinish?: boolean;
74
34
  };
75
35
  export type CustomAgentTrigger = CustomAgentRecurrenceTrigger | CustomAgentPageAddedTrigger | CustomAgentPropertyUpdatedTrigger;
76
36
  /**
@@ -85,15 +45,8 @@ export type CustomAgentAccess = Extract<WorkflowAccessDeclaration, {
85
45
  readonly resourceType: "page" | "database";
86
46
  };
87
47
  }>;
88
- /**
89
- * URL trust settings for a custom agent.
90
- *
91
- * URL trust is independent from web access: an agent can trust URLs without
92
- * being granted web search access.
93
- */
94
- export type CustomAgentTrustedUrls = {
95
- type: "all";
96
- };
48
+ /** Trust every URL, trust no URLs, or trust a nonempty list of up to 20 URL globs. */
49
+ export type CustomAgentTrustedUrls = "all" | "none" | [string, ...string[]];
97
50
  export type CustomAgentArgs = {
98
51
  resourceId: ResourceId;
99
52
  name: string;
@@ -102,6 +55,8 @@ export type CustomAgentArgs = {
102
55
  }>;
103
56
  instructions?: string;
104
57
  model?: "ambrosia-tart-high" | "opal-quince-medium" | "almond-croissant-low";
58
+ /** Whether the agent can use the Web Browser. Omission preserves the existing setting. */
59
+ browserUse?: boolean;
105
60
  /**
106
61
  * Whether the agent can use web search. Defaults to `false` when omitted for
107
62
  * a new agent. When updating an existing agent, omitting this field preserves
@@ -109,9 +64,10 @@ export type CustomAgentArgs = {
109
64
  */
110
65
  webAccess?: boolean;
111
66
  /**
112
- * URL trust policy for this agent. `{ type: "all" }` allows every HTTP and
113
- * HTTPS URL. For a new agent, omitting this field leaves URL trust disabled;
114
- * for an existing agent, omission preserves the current URL trust policy.
67
+ * Set `"all"` to trust every HTTP and HTTPS URL, `"none"` to disable URL
68
+ * trust, or provide a nonempty list of up to 20 URL globs. Omission leaves
69
+ * trust disabled for a new agent and preserves it for an existing agent.
70
+ * URL trust is independent from web search.
115
71
  */
116
72
  trustedUrls?: CustomAgentTrustedUrls;
117
73
  /**
@@ -131,5 +87,4 @@ export type CustomAgentHandle = {
131
87
  };
132
88
  /** Declare a custom agent and validate every resource reference. */
133
89
  export declare function customAgent(args: CustomAgentArgs): CustomAgentHandle;
134
- export {};
135
90
  //# sourceMappingURL=custom-agent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-agent.d.ts","sourceRoot":"","sources":["../../src/notion-as-code/custom-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACnG,OAAO,KAAK,EAAqB,gBAAgB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAIpF,KAAK,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAExE,gEAAgE;AAChE,MAAM,MAAM,kBAAkB,GAAG;KAC/B,GAAG,IAAI,iBAAiB,CAAC,CAAC,EAAE,IAAI;CACjC,GAAG;KACF,GAAG,IAAI,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;CAChF,CAAC,iBAAiB,CAAC,CAAC;AAErB,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAE9E,MAAM,MAAM,4BAA4B,GACrC;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE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