@vibesdotdev/integrations-notion 0.0.0-stage → 1.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/LICENSE +126 -0
  2. package/README.md +142 -2
  3. package/dist/client/helper.d.ts +16 -0
  4. package/dist/client/helper.d.ts.map +1 -0
  5. package/dist/client/helper.js +17 -0
  6. package/dist/client/helper.js.map +1 -0
  7. package/dist/client/index.d.ts +3 -0
  8. package/dist/client/index.d.ts.map +1 -0
  9. package/dist/client/index.js +3 -0
  10. package/dist/client/index.js.map +1 -0
  11. package/dist/client/runtime-client.d.ts +89 -0
  12. package/dist/client/runtime-client.d.ts.map +1 -0
  13. package/dist/client/runtime-client.js +130 -0
  14. package/dist/client/runtime-client.js.map +1 -0
  15. package/dist/docs/integrations-notion.docs.descriptor.d.ts +19 -0
  16. package/dist/docs/integrations-notion.docs.descriptor.d.ts.map +1 -0
  17. package/dist/docs/integrations-notion.docs.descriptor.js +62 -0
  18. package/dist/docs/integrations-notion.docs.descriptor.js.map +1 -0
  19. package/dist/index.d.ts +23 -0
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +28 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/integrations-notion.plugin.d.ts +19 -0
  24. package/dist/integrations-notion.plugin.d.ts.map +1 -0
  25. package/dist/integrations-notion.plugin.js +37 -0
  26. package/dist/integrations-notion.plugin.js.map +1 -0
  27. package/dist/notion/index.d.ts +12 -0
  28. package/dist/notion/index.d.ts.map +1 -0
  29. package/dist/notion/index.js +13 -0
  30. package/dist/notion/index.js.map +1 -0
  31. package/dist/notion/notion-client.d.ts +119 -0
  32. package/dist/notion/notion-client.d.ts.map +1 -0
  33. package/dist/notion/notion-client.js +438 -0
  34. package/dist/notion/notion-client.js.map +1 -0
  35. package/dist/notion/notion-implementation.d.ts +72 -0
  36. package/dist/notion/notion-implementation.d.ts.map +1 -0
  37. package/dist/notion/notion-implementation.js +222 -0
  38. package/dist/notion/notion-implementation.js.map +1 -0
  39. package/dist/notion/notion-schemas.d.ts +2 -0
  40. package/dist/notion/notion-schemas.d.ts.map +1 -0
  41. package/dist/notion/notion-schemas.js +2 -0
  42. package/dist/notion/notion-schemas.js.map +1 -0
  43. package/dist/notion/system.integration.notion.descriptor.d.ts +69 -0
  44. package/dist/notion/system.integration.notion.descriptor.d.ts.map +1 -0
  45. package/dist/notion/system.integration.notion.descriptor.js +109 -0
  46. package/dist/notion/system.integration.notion.descriptor.js.map +1 -0
  47. package/dist/notion.catalog.plugin.d.ts +78 -0
  48. package/dist/notion.catalog.plugin.d.ts.map +1 -0
  49. package/dist/notion.catalog.plugin.js +21 -0
  50. package/dist/notion.catalog.plugin.js.map +1 -0
  51. package/dist/notion.client.plugin.d.ts +3 -0
  52. package/dist/notion.client.plugin.d.ts.map +1 -0
  53. package/dist/notion.client.plugin.js +49 -0
  54. package/dist/notion.client.plugin.js.map +1 -0
  55. package/dist/schemas/json.d.ts +6 -0
  56. package/dist/schemas/json.d.ts.map +1 -0
  57. package/dist/schemas/json.js +4 -0
  58. package/dist/schemas/json.js.map +1 -0
  59. package/dist/schemas/notion.d.ts +221 -0
  60. package/dist/schemas/notion.d.ts.map +1 -0
  61. package/dist/schemas/notion.js +130 -0
  62. package/dist/schemas/notion.js.map +1 -0
  63. package/dist/schemas/oauth.d.ts +63 -0
  64. package/dist/schemas/oauth.d.ts.map +1 -0
  65. package/dist/schemas/oauth.js +15 -0
  66. package/dist/schemas/oauth.js.map +1 -0
  67. package/dist/schemas/operations.d.ts +556 -0
  68. package/dist/schemas/operations.d.ts.map +1 -0
  69. package/dist/schemas/operations.js +39 -0
  70. package/dist/schemas/operations.js.map +1 -0
  71. package/dist/schemas/sync.d.ts +32 -0
  72. package/dist/schemas/sync.d.ts.map +1 -0
  73. package/dist/schemas/sync.js +12 -0
  74. package/dist/schemas/sync.js.map +1 -0
  75. package/dist/schemas/tools.d.ts +239 -0
  76. package/dist/schemas/tools.d.ts.map +1 -0
  77. package/dist/schemas/tools.js +93 -0
  78. package/dist/schemas/tools.js.map +1 -0
  79. package/dist/schemas/vendor.d.ts +150 -0
  80. package/dist/schemas/vendor.d.ts.map +1 -0
  81. package/dist/schemas/vendor.js +31 -0
  82. package/dist/schemas/vendor.js.map +1 -0
  83. package/dist/server/oauth.d.ts +17 -0
  84. package/dist/server/oauth.d.ts.map +1 -0
  85. package/dist/server/oauth.js +64 -0
  86. package/dist/server/oauth.js.map +1 -0
  87. package/dist/sync/knowledge.notion.sync-mapping.descriptor.d.ts +15 -0
  88. package/dist/sync/knowledge.notion.sync-mapping.descriptor.d.ts.map +1 -0
  89. package/dist/sync/knowledge.notion.sync-mapping.descriptor.js +15 -0
  90. package/dist/sync/knowledge.notion.sync-mapping.descriptor.js.map +1 -0
  91. package/dist/sync/knowledge.notion.sync-mapping.impl.d.ts +13 -0
  92. package/dist/sync/knowledge.notion.sync-mapping.impl.d.ts.map +1 -0
  93. package/dist/sync/knowledge.notion.sync-mapping.impl.js +27 -0
  94. package/dist/sync/knowledge.notion.sync-mapping.impl.js.map +1 -0
  95. package/dist/sync/notion-record-projection.d.ts +16 -0
  96. package/dist/sync/notion-record-projection.d.ts.map +1 -0
  97. package/dist/sync/notion-record-projection.js +50 -0
  98. package/dist/sync/notion-record-projection.js.map +1 -0
  99. package/dist/sync/notion.sync-endpoint.descriptor.d.ts +14 -0
  100. package/dist/sync/notion.sync-endpoint.descriptor.d.ts.map +1 -0
  101. package/dist/sync/notion.sync-endpoint.descriptor.js +10 -0
  102. package/dist/sync/notion.sync-endpoint.descriptor.js.map +1 -0
  103. package/dist/sync/notion.sync-endpoint.impl.d.ts +55 -0
  104. package/dist/sync/notion.sync-endpoint.impl.d.ts.map +1 -0
  105. package/dist/sync/notion.sync-endpoint.impl.js +557 -0
  106. package/dist/sync/notion.sync-endpoint.impl.js.map +1 -0
  107. package/dist/sync/projects.notion.sync-mapping.descriptor.d.ts +15 -0
  108. package/dist/sync/projects.notion.sync-mapping.descriptor.d.ts.map +1 -0
  109. package/dist/sync/projects.notion.sync-mapping.descriptor.js +15 -0
  110. package/dist/sync/projects.notion.sync-mapping.descriptor.js.map +1 -0
  111. package/dist/sync/projects.notion.sync-mapping.impl.d.ts +13 -0
  112. package/dist/sync/projects.notion.sync-mapping.impl.d.ts.map +1 -0
  113. package/dist/sync/projects.notion.sync-mapping.impl.js +26 -0
  114. package/dist/sync/projects.notion.sync-mapping.impl.js.map +1 -0
  115. package/dist/sync/work.notion.sync-mapping.descriptor.d.ts +15 -0
  116. package/dist/sync/work.notion.sync-mapping.descriptor.d.ts.map +1 -0
  117. package/dist/sync/work.notion.sync-mapping.descriptor.js +15 -0
  118. package/dist/sync/work.notion.sync-mapping.descriptor.js.map +1 -0
  119. package/dist/sync/work.notion.sync-mapping.impl.d.ts +13 -0
  120. package/dist/sync/work.notion.sync-mapping.impl.d.ts.map +1 -0
  121. package/dist/sync/work.notion.sync-mapping.impl.js +63 -0
  122. package/dist/sync/work.notion.sync-mapping.impl.js.map +1 -0
  123. package/dist/tools/descriptors.d.ts +781 -0
  124. package/dist/tools/descriptors.d.ts.map +1 -0
  125. package/dist/tools/descriptors.js +129 -0
  126. package/dist/tools/descriptors.js.map +1 -0
  127. package/dist/tools/impl.d.ts +12 -0
  128. package/dist/tools/impl.d.ts.map +1 -0
  129. package/dist/tools/impl.js +61 -0
  130. package/dist/tools/impl.js.map +1 -0
  131. package/dist/tools/index.d.ts +3 -0
  132. package/dist/tools/index.d.ts.map +1 -0
  133. package/dist/tools/index.js +3 -0
  134. package/dist/tools/index.js.map +1 -0
  135. package/dist/tools/schemas.d.ts +2 -0
  136. package/dist/tools/schemas.d.ts.map +1 -0
  137. package/dist/tools/schemas.js +2 -0
  138. package/dist/tools/schemas.js.map +1 -0
  139. package/package.json +105 -4
@@ -0,0 +1,62 @@
1
+ const integrationsNotionMarkdown = `---
2
+ title: Notion Integration
3
+ summary: Cursor-based Notion transport for domain-owned projections.
4
+ parent: integrations
5
+ order: 3
6
+ ---
7
+
8
+ # Notion integration
9
+
10
+ The Notion package owns authenticated Notion API 2026-03-11 transport and a canonical runtime client. It does not decide whether a page becomes a knowledge item, project, or document.
11
+
12
+ ## Runtime surface
13
+
14
+ - \`notion.users.*\`, \`notion.dataSources.*\`, \`notion.databases.get\`, and \`notion.pages.*\` expose typed operations.
15
+ - \`notion.search()\` searches the connected workspace.
16
+ - \`notion.pull()\` returns one cursor page, optionally filtered by \`last_edited_time\`.
17
+ - \`sync.endpoint.notion.pages\` projects one bounded data-source page into \`title\`, \`contentText\`, \`contentType\`, \`projectId\`, \`status\`, and \`priority\`; it derives stable keys from an explicit rich-text property and returns provider page ids after apply.
18
+ - Agent tools \`notion.search\`, \`notion.data-sources.get/query\`, and \`notion.pages.get\` expose bounded reads. \`notion.pages.create/update\` are approval-gated explicit writes through the canonical runtime client; there is no archive or delete tool.
19
+
20
+ Database objects are containers. Retrieve one to discover its child data-source IDs, then query \`notion.dataSources\`. Search filters are \`page\` and \`data_source\`; page parents use \`data_source_id\`; trash state is \`inTrash\`.
21
+
22
+ The pull result reports only what Notion returned. This package owns versioned \`knowledge.notion@1\`, \`projects.notion@1\`, and \`work.notion@1\` mappings; product features may register additional mappings and own direction, authority, deletion policy, and trigger before changes are applied. The endpoint validates every mapped target property before writing. \`Title\` plus an existing rich-text \`Content\` property work by default; bindings can select existing properties with \`titleProperty\`, \`contentProperty\`, \`contentTypeProperty\`, \`projectIdProperty\`, \`statusProperty\`, and \`priorityProperty\`.
23
+
24
+ ## Contracts and OAuth
25
+
26
+ All four namespaces validate operation inputs and results. Database, data-source,
27
+ and page getters return null for confirmed absence. Missing or malformed data
28
+ raises a typed contract refusal. Explicit JSON contracts preserve extensible
29
+ properties and blocks. Generic invocation retains result validation.
30
+
31
+ The explicit server/oauth entrypoint validates token responses, replaces secrets
32
+ through the host owner's list/create/update API, and preserves the previous
33
+ refresh token when no replacement is returned. Public failures contain no vendor
34
+ bodies, remote messages, record contents, or credentials. Mutations make one
35
+ transport attempt; ambiguous writes remain unknown for sync reconciliation.
36
+ Retry pacing and scheduling belong to lifecycle and Workers.
37
+
38
+ Hosts supply integration/store, system/settings-reader, storage backing, Logging,
39
+ Storage, and the integrations owner. Consumers declare the platform infra/service
40
+ origin and internal service credential. Tool resolution requires the tools/tool
41
+ owner and trusted user identity. Concrete providers live at the explicit notion
42
+ entrypoint.
43
+
44
+ ## Safety
45
+
46
+ Credentials stay in the hosted integration provider. Direct hosts register \`integrations\`, then \`sync\`, then the host plugin; consumers register \`sync\` before the client plugin and never register the host provider. Agent writes reject credential fields and oversized payloads, and identity comes only from surface-asserted metadata projected by the runtime. Cursor state and synchronized anchors belong to the owning sync feature. Provider ids are scoped by data source. Content hashes cover semantic fields only—not Notion ids, timestamps, URLs, raw property envelopes, or sync keys. Trashed pages are explicit Notion tombstones; absence from a cursor page is never deletion evidence, and archive/delete without an observed page fails visibly.
47
+ `;
48
+ const descriptor = {
49
+ kind: 'docs/topic',
50
+ id: 'integrations.notion',
51
+ title: 'Notion Integration',
52
+ summary: 'Cursor-based Notion transport for domain-owned projections.',
53
+ body: { type: 'markdown', sourceType: 'raw', source: integrationsNotionMarkdown },
54
+ parent: 'integrations',
55
+ order: 3,
56
+ tags: ['integrations', 'notion', 'sync'],
57
+ surfaces: ['web', 'in-app'],
58
+ hardware: ['consumer', 'cloud'],
59
+ enabled: true
60
+ };
61
+ export default descriptor;
62
+ //# sourceMappingURL=integrations-notion.docs.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations-notion.docs.descriptor.js","sourceRoot":"","sources":["../../src/docs/integrations-notion.docs.descriptor.ts"],"names":[],"mappings":"AAAA,MAAM,0BAA0B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8ClC,CAAC;AAEF,MAAM,UAAU,GAAG;IAClB,IAAI,EAAE,YAAY;IAClB,EAAE,EAAE,qBAAqB;IACzB,KAAK,EAAE,oBAAoB;IAC3B,OAAO,EAAE,6DAA6D;IACtE,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,0BAA0B,EAAE;IACjF,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC,cAAc,EAAE,QAAQ,EAAE,MAAM,CAAC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;IAC3B,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,IAAI;CACJ,CAAC;AAEX,eAAe,UAAU,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @vibesdotdev/integrations-notion
3
+ *
4
+ * Notion integration provider for the Vibes platform.
5
+ * Provides Notion API client for workspace and database management.
6
+ *
7
+ * @module @vibesdotdev/integrations-notion
8
+ */
9
+ export { default as integrationsNotionPlugin } from './integrations-notion.plugin.ts';
10
+ export { default } from './integrations-notion.plugin.ts';
11
+ export { default as integrationsNotionClientPlugin, integrationsNotionClientPlugin as notionClientPlugin } from './notion.client.plugin.ts';
12
+ export { NotionClient, getVibesNotionClient, type NotionInvokeIdentity } from './client/index.ts';
13
+ export { NOTION_TOOL_IDS, isNotionToolId, notionSearchToolDescriptor, notionDataSourcesGetToolDescriptor, notionDataSourcesQueryToolDescriptor, notionPagesGetToolDescriptor, notionPagesCreateToolDescriptor, notionPagesUpdateToolDescriptor, notionToolDescriptors, NotionSearchToolInputSchema, NotionSearchToolOutputSchema, NotionDataSourcesGetToolInputSchema, NotionDataSourcesGetToolOutputSchema, NotionDataSourcesQueryToolInputSchema, NotionDataSourcesQueryToolOutputSchema, NotionPagesGetToolInputSchema, NotionPageToolOutputSchema, NotionPagesCreateToolInputSchema, NotionPagesUpdateToolInputSchema, NotionPageWriteToolOutputSchema, type NotionToolId, type NotionSearchToolInput, type NotionDataSourcesGetToolInput, type NotionDataSourcesQueryToolInput, type NotionPagesGetToolInput, type NotionPagesCreateToolInput, type NotionPagesUpdateToolInput } from './tools/index.ts';
14
+ export { default as notionDescriptor } from './notion/system.integration.notion.descriptor.ts';
15
+ export { default as knowledgeNotionSyncMappingDescriptor, KNOWLEDGE_NOTION_SYNC_MAPPING } from './sync/knowledge.notion.sync-mapping.descriptor.ts';
16
+ export { default as projectsNotionSyncMappingDescriptor, PROJECTS_NOTION_SYNC_MAPPING } from './sync/projects.notion.sync-mapping.descriptor.ts';
17
+ export { default as workNotionSyncMappingDescriptor, WORK_NOTION_SYNC_MAPPING } from './sync/work.notion.sync-mapping.descriptor.ts';
18
+ export { default as notionDescriptorReexport } from './notion/system.integration.notion.descriptor.ts';
19
+ export { NotionUserSchema, NotionWorkspaceSchema, NotionDatabasePropertySchema, NotionDataSourcePropertySchema, NotionDatabaseDataSourceSchema, NotionDatabaseSchema, NotionDataSourceSchema, NotionPagePropertyValueSchema, NotionPageSchema, NotionBlockSchema, CreateNotionPageSchema, UpdateNotionPageSchema, NotionQueryFilterSchema, QueryNotionDataSourceSchema, NotionPullOptionsSchema, NotionPullResultSchema, NotionIntegrationConfigSchema } from './schemas/notion.ts';
20
+ export type { NotionUser, NotionWorkspace, NotionDatabaseProperty, NotionDataSourceProperty, NotionDatabaseDataSource, NotionDatabase, NotionDataSource, NotionPagePropertyValue, NotionPage, NotionBlock, CreateNotionPageInput, UpdateNotionPageInput, NotionQueryFilter, QueryNotionDataSourceInput, NotionPullResult, NotionPullOptions, NotionIntegrationConfig } from './schemas/notion.ts';
21
+ export { NOTION_API_VERSION, NotionAPIClient, NotionAPIError } from './notion/notion-client.ts';
22
+ export type { NotionClientConfig, NotionFetch } from './notion/notion-client.ts';
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iCAAiC,CAA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EAChB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACvB,sBAAsB,EACtB,6BAA6B,EAC7B,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACX,UAAU,EACV,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,0BAA0B,EAC1B,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChG,YAAY,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @vibesdotdev/integrations-notion
3
+ *
4
+ * Notion integration provider for the Vibes platform.
5
+ * Provides Notion API client for workspace and database management.
6
+ *
7
+ * @module @vibesdotdev/integrations-notion
8
+ */
9
+ // Plugin export
10
+ export { default as integrationsNotionPlugin } from "./integrations-notion.plugin.js";
11
+ export { default } from "./integrations-notion.plugin.js";
12
+ export { default as integrationsNotionClientPlugin, integrationsNotionClientPlugin as notionClientPlugin } from "./notion.client.plugin.js";
13
+ // Canonical runtime client (consumer-facing entrypoint)
14
+ export { NotionClient, getVibesNotionClient } from "./client/index.js";
15
+ export { NOTION_TOOL_IDS, isNotionToolId, notionSearchToolDescriptor, notionDataSourcesGetToolDescriptor, notionDataSourcesQueryToolDescriptor, notionPagesGetToolDescriptor, notionPagesCreateToolDescriptor, notionPagesUpdateToolDescriptor, notionToolDescriptors, NotionSearchToolInputSchema, NotionSearchToolOutputSchema, NotionDataSourcesGetToolInputSchema, NotionDataSourcesGetToolOutputSchema, NotionDataSourcesQueryToolInputSchema, NotionDataSourcesQueryToolOutputSchema, NotionPagesGetToolInputSchema, NotionPageToolOutputSchema, NotionPagesCreateToolInputSchema, NotionPagesUpdateToolInputSchema, NotionPageWriteToolOutputSchema } from "./tools/index.js";
16
+ // Notion descriptor export
17
+ export { default as notionDescriptor } from "./notion/system.integration.notion.descriptor.js";
18
+ export { default as knowledgeNotionSyncMappingDescriptor, KNOWLEDGE_NOTION_SYNC_MAPPING } from "./sync/knowledge.notion.sync-mapping.descriptor.js";
19
+ export { default as projectsNotionSyncMappingDescriptor, PROJECTS_NOTION_SYNC_MAPPING } from "./sync/projects.notion.sync-mapping.descriptor.js";
20
+ export { default as workNotionSyncMappingDescriptor, WORK_NOTION_SYNC_MAPPING } from "./sync/work.notion.sync-mapping.descriptor.js";
21
+ // Notion module exports
22
+ export { default as notionDescriptorReexport } from "./notion/system.integration.notion.descriptor.js";
23
+ export {
24
+ // Schemas
25
+ NotionUserSchema, NotionWorkspaceSchema, NotionDatabasePropertySchema, NotionDataSourcePropertySchema, NotionDatabaseDataSourceSchema, NotionDatabaseSchema, NotionDataSourceSchema, NotionPagePropertyValueSchema, NotionPageSchema, NotionBlockSchema, CreateNotionPageSchema, UpdateNotionPageSchema, NotionQueryFilterSchema, QueryNotionDataSourceSchema, NotionPullOptionsSchema, NotionPullResultSchema, NotionIntegrationConfigSchema } from "./schemas/notion.js";
26
+ // Client
27
+ export { NOTION_API_VERSION, NotionAPIClient, NotionAPIError } from "./notion/notion-client.js";
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,gBAAgB;AAChB,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EACN,OAAO,IAAI,8BAA8B,EACzC,8BAA8B,IAAI,kBAAkB,EACpD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}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Integrations Notion Plugin
3
+ *
4
+ * Host plugin for the platform integration worker. Registers:
5
+ *
6
+ * 1. The `integration/provider` descriptor (id `integration.notion`) +
7
+ * `NotionIntegration` implementation, which holds the API token and
8
+ * dispatches the declared page/database/user/search ops via
9
+ * `NotionAPIClient`.
10
+ *
11
+ * 2. The client-only plugin, which owns the canonical `runtime/client`
12
+ * descriptor (id `notion`) + `NotionClient` implementation and is the typed
13
+ * surface (`notion.pages.*`, `notion.dataSources.*`, `notion.users.*`,
14
+ * `notion.search()`). Apps resolve it via `getVibesNotionClient(runtime)`
15
+ * and never reach for `NotionAPIClient` directly.
16
+ */
17
+ export declare const integrationsNotionPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
18
+ export default integrationsNotionPlugin;
19
+ //# sourceMappingURL=integrations-notion.plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations-notion.plugin.d.ts","sourceRoot":"","sources":["../src/integrations-notion.plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAOH,eAAO,MAAM,wBAAwB,6CAenC,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Integrations Notion Plugin
3
+ *
4
+ * Host plugin for the platform integration worker. Registers:
5
+ *
6
+ * 1. The `integration/provider` descriptor (id `integration.notion`) +
7
+ * `NotionIntegration` implementation, which holds the API token and
8
+ * dispatches the declared page/database/user/search ops via
9
+ * `NotionAPIClient`.
10
+ *
11
+ * 2. The client-only plugin, which owns the canonical `runtime/client`
12
+ * descriptor (id `notion`) + `NotionClient` implementation and is the typed
13
+ * surface (`notion.pages.*`, `notion.dataSources.*`, `notion.users.*`,
14
+ * `notion.search()`). Apps resolve it via `getVibesNotionClient(runtime)`
15
+ * and never reach for `NotionAPIClient` directly.
16
+ */
17
+ import { createRuntimePlugin, loader } from '@vibesdotdev/kernel/factory';
18
+ import integrationsNotionClientPlugin from "./notion.client.plugin.js";
19
+ import notionDescriptor from "./notion/system.integration.notion.descriptor.js";
20
+ export const integrationsNotionPlugin = createRuntimePlugin({
21
+ id: 'integrations-notion',
22
+ name: 'Integrations Notion Plugin',
23
+ description: 'Host-side Notion integration provider plus its canonical client',
24
+ dependencies: ['integrations', 'sync'],
25
+ descriptors: [notionDescriptor],
26
+ loaders: [
27
+ loader(notionDescriptor.id, { kind: 'integration/provider' }, async () => {
28
+ const { NotionIntegration } = await import("./notion/notion-implementation.js");
29
+ return { default: NotionIntegration };
30
+ })
31
+ ],
32
+ onRegister: async (runtime) => {
33
+ await runtime.registerPlugin(integrationsNotionClientPlugin);
34
+ }
35
+ });
36
+ export default integrationsNotionPlugin;
37
+ //# sourceMappingURL=integrations-notion.plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations-notion.plugin.js","sourceRoot":"","sources":["../src/integrations-notion.plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1E,OAAO,8BAA8B,MAAM,2BAA2B,CAAC;AACvE,OAAO,gBAAgB,MAAM,kDAAkD,CAAC;AAEhF,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;IAC3D,EAAE,EAAE,qBAAqB;IACzB,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,iEAAiE;IAC9E,YAAY,EAAE,CAAC,cAAc,EAAE,MAAM,CAAC;IACtC,WAAW,EAAE,CAAC,gBAAgB,CAAC;IAC/B,OAAO,EAAE;QACR,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,EAAE,KAAK,IAAI,EAAE;YACxE,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,mCAAmC,CAAC,CAAC;YAChF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;QACvC,CAAC,CAAC;KACF;IACD,UAAU,EAAE,KAAK,EAAE,OAAmB,EAAE,EAAE;QACzC,MAAM,OAAO,CAAC,cAAc,CAAC,8BAA8B,CAAC,CAAC;IAC9D,CAAC;CACD,CAAC,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Notion integration module
3
+ *
4
+ * Provides API client and integration implementation for Notion workspace management.
5
+ */
6
+ export { default as notionDescriptor } from './system.integration.notion.descriptor.ts';
7
+ export { NotionUserSchema, NotionWorkspaceSchema, NotionDatabasePropertySchema, NotionDataSourcePropertySchema, NotionDatabaseDataSourceSchema, NotionDatabaseSchema, NotionDataSourceSchema, NotionPagePropertyValueSchema, NotionPageSchema, NotionBlockSchema, CreateNotionPageSchema, UpdateNotionPageSchema, NotionQueryFilterSchema, QueryNotionDataSourceSchema, NotionPullOptionsSchema, NotionPullResultSchema, NotionIntegrationConfigSchema } from './notion-schemas.ts';
8
+ export type { NotionUser, NotionWorkspace, NotionDatabaseProperty, NotionDataSourceProperty, NotionDatabaseDataSource, NotionDatabase, NotionDataSource, NotionPagePropertyValue, NotionPage, NotionBlock, CreateNotionPageInput, UpdateNotionPageInput, NotionQueryFilter, QueryNotionDataSourceInput, NotionPullResult, NotionPullOptions, NotionIntegrationConfig } from './notion-schemas.ts';
9
+ export { NOTION_API_VERSION, NotionAPIClient, NotionAPIError } from './notion-client.ts';
10
+ export type { NotionClientConfig, NotionFetch } from './notion-client.ts';
11
+ export { NotionIntegration } from './notion-implementation.ts';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notion/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAGxF,OAAO,EACN,gBAAgB,EAChB,qBAAqB,EACrB,4BAA4B,EAC5B,8BAA8B,EAC9B,8BAA8B,EAC9B,oBAAoB,EACpB,sBAAsB,EACtB,6BAA6B,EAC7B,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACvB,sBAAsB,EACtB,6BAA6B,EAC7B,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACX,UAAU,EACV,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,0BAA0B,EAC1B,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzF,YAAY,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAG1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Notion integration module
3
+ *
4
+ * Provides API client and integration implementation for Notion workspace management.
5
+ */
6
+ export { default as notionDescriptor } from "./system.integration.notion.descriptor.js";
7
+ // Schemas
8
+ export { NotionUserSchema, NotionWorkspaceSchema, NotionDatabasePropertySchema, NotionDataSourcePropertySchema, NotionDatabaseDataSourceSchema, NotionDatabaseSchema, NotionDataSourceSchema, NotionPagePropertyValueSchema, NotionPageSchema, NotionBlockSchema, CreateNotionPageSchema, UpdateNotionPageSchema, NotionQueryFilterSchema, QueryNotionDataSourceSchema, NotionPullOptionsSchema, NotionPullResultSchema, NotionIntegrationConfigSchema } from "./notion-schemas.js";
9
+ // Client
10
+ export { NOTION_API_VERSION, NotionAPIClient, NotionAPIError } from "./notion-client.js";
11
+ // Implementation
12
+ export { NotionIntegration } from "./notion-implementation.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/notion/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAExF,UAAU;AACV,OAAO,EACN,gBAAgB,EAChB,qBAAqB,EACrB,4BAA4B,EAC5B,8BAA8B,EAC9B,8BAA8B,EAC9B,oBAAoB,EACpB,sBAAsB,EACtB,6BAA6B,EAC7B,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACvB,sBAAsB,EACtB,6BAA6B,EAC7B,MAAM,qBAAqB,CAAC;AAqB7B,SAAS;AACT,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzF,iBAAiB;AACjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,119 @@
1
+ import type { NotionUser, NotionDatabase, NotionDataSource, NotionPage, CreateNotionPageInput, UpdateNotionPageInput, QueryNotionDataSourceInput, NotionBlock } from './notion-schemas.ts';
2
+ import { CapabilityError } from '@vibesdotdev/kernel';
3
+ import { type JsonObject } from '../schemas/json.ts';
4
+ import type { VibesRuntime } from '@vibesdotdev/kernel';
5
+ export interface NotionClientConfig {
6
+ apiToken?: string;
7
+ /** The runtime whose lifecycle paces retry backoff. */
8
+ runtime: Pick<VibesRuntime, 'lifecycle'>;
9
+ /** Custom fetch implementation (for testing). */
10
+ fetchFn?: NotionFetch;
11
+ }
12
+ export type NotionFetch = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
13
+ export declare const NOTION_API_VERSION = "2026-03-11";
14
+ /**
15
+ * Notion API client.
16
+ *
17
+ * Provides methods for CRUD operations on pages, databases, and blocks.
18
+ * Uses the Notion REST API with authentication via integration token.
19
+ */
20
+ export declare class NotionAPIClient {
21
+ private readonly apiToken;
22
+ private readonly fetchFn;
23
+ private readonly runtime;
24
+ constructor(config: NotionClientConfig);
25
+ /**
26
+ * Get the authenticated bot user's information.
27
+ */
28
+ getMe(): Promise<NotionUser>;
29
+ /**
30
+ * List all users in the workspace.
31
+ */
32
+ listUsers(): Promise<NotionUser[]>;
33
+ /**
34
+ * Get a single user by ID.
35
+ */
36
+ getUser(userId: string): Promise<NotionUser | null>;
37
+ /**
38
+ * Get a database by ID.
39
+ */
40
+ getDatabase(databaseId: string): Promise<NotionDatabase | null>;
41
+ /**
42
+ * Get a data source by ID.
43
+ */
44
+ getDataSource(dataSourceId: string): Promise<NotionDataSource | null>;
45
+ /**
46
+ * Query a data source to get pages/items.
47
+ */
48
+ queryDataSource(input: QueryNotionDataSourceInput): Promise<{
49
+ dataSourceId: string;
50
+ pages: NotionPage[];
51
+ hasMore: boolean;
52
+ nextCursor?: string;
53
+ }>;
54
+ /**
55
+ * Search for data sources and pages.
56
+ */
57
+ search(query?: string, options?: {
58
+ filter?: 'data_source' | 'page';
59
+ pageSize?: number;
60
+ startCursor?: string;
61
+ }): Promise<{
62
+ dataSources: NotionDataSource[];
63
+ pages: NotionPage[];
64
+ hasMore: boolean;
65
+ nextCursor?: string;
66
+ }>;
67
+ /**
68
+ * Get a page by ID.
69
+ */
70
+ getPage(pageId: string): Promise<NotionPage | null>;
71
+ /**
72
+ * Create a new page.
73
+ */
74
+ createPage(input: CreateNotionPageInput): Promise<NotionPage>;
75
+ /**
76
+ * Update an existing page.
77
+ */
78
+ updatePage(pageId: string, input: UpdateNotionPageInput): Promise<NotionPage>;
79
+ /**
80
+ * Move a page to the trash.
81
+ */
82
+ archivePage(pageId: string): Promise<void>;
83
+ /**
84
+ * Restore a trashed page.
85
+ */
86
+ restorePage(pageId: string): Promise<void>;
87
+ /**
88
+ * Permanently delete a page (move to trash).
89
+ * Note: Notion API doesn't support hard delete, this moves to trash.
90
+ */
91
+ deletePage(pageId: string): Promise<void>;
92
+ /**
93
+ * Get block children (content of a page or block).
94
+ */
95
+ getBlockChildren(blockId: string, options?: {
96
+ pageSize?: number;
97
+ startCursor?: string;
98
+ }): Promise<{
99
+ blocks: NotionBlock[];
100
+ hasMore: boolean;
101
+ nextCursor?: string;
102
+ }>;
103
+ /**
104
+ * Append block children to a page or block.
105
+ */
106
+ appendBlockChildren(blockId: string, children: Array<JsonObject>): Promise<NotionBlock[]>;
107
+ private doRequest;
108
+ private normalizeUser;
109
+ private normalizeDatabase;
110
+ private normalizeDataSource;
111
+ private normalizePage;
112
+ private normalizeBlock;
113
+ }
114
+ /** Compatibility constructor; failure codes and reasons belong to CapabilityError. */
115
+ export declare class NotionAPIError extends CapabilityError {
116
+ status?: number | undefined;
117
+ constructor(_message: string, status?: number | undefined, _vendorCode?: string, subject?: string);
118
+ }
119
+ //# sourceMappingURL=notion-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notion-client.d.ts","sourceRoot":"","sources":["../../src/notion/notion-client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,WAAW,EACX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGxD,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;IACzC,iDAAiD;IACjD,OAAO,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,EAAE,IA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