@dual-os/notion-api 0.0.0-stage → 6.0.4

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 (46) hide show
  1. package/LICENSE +4 -0
  2. package/Runner.js +5537 -0
  3. package/Runner.js.map +59 -0
  4. package/bundle-inventory.json +1 -0
  5. package/dist/_virtual/_rolldown/runtime.js +10 -0
  6. package/dist/_virtual/_rolldown/runtime.js.map +9 -0
  7. package/dist/auth.d.ts +37 -0
  8. package/dist/auth.d.ts.map +1 -0
  9. package/dist/auth.js +17 -0
  10. package/dist/auth.js.map +9 -0
  11. package/dist/generated/http.d.ts +81 -0
  12. package/dist/generated/http.d.ts.map +1 -0
  13. package/dist/generated/http.js +64 -0
  14. package/dist/generated/http.js.map +9 -0
  15. package/dist/generated/operations.d.ts +27637 -0
  16. package/dist/generated/operations.d.ts.map +1 -0
  17. package/dist/generated/operations.js +1162 -0
  18. package/dist/generated/operations.js.map +9 -0
  19. package/dist/generated/plugin.d.ts +261 -0
  20. package/dist/generated/plugin.d.ts.map +1 -0
  21. package/dist/generated/plugin.js +439 -0
  22. package/dist/generated/plugin.js.map +10 -0
  23. package/dist/triggers.d.ts +118 -0
  24. package/dist/triggers.d.ts.map +1 -0
  25. package/dist/triggers.js +17 -0
  26. package/dist/triggers.js.map +9 -0
  27. package/dual-plugin.json +1 -0
  28. package/licenses/@dual-os_sdk@0.9.0/LICENSE +4 -0
  29. package/licenses/@effect_platform-node-shared@4.1.2/LICENSE +21 -0
  30. package/licenses/@effect_platform-node@4.1.2/LICENSE +21 -0
  31. package/licenses/effect@4.1.2/LICENSE +21 -0
  32. package/package.json +1 -6
  33. package/plugin-1s0prvga.js +19134 -0
  34. package/plugin-1s0prvga.js.map +158 -0
  35. package/plugin-2jdfj02n.js +18 -0
  36. package/plugin-2jdfj02n.js.map +10 -0
  37. package/plugin-529jjg5q.js +1303 -0
  38. package/plugin-529jjg5q.js.map +18 -0
  39. package/plugin-7b963ree.js +167 -0
  40. package/plugin-7b963ree.js.map +10 -0
  41. package/plugin-d1qmasfk.js +62 -0
  42. package/plugin-d1qmasfk.js.map +10 -0
  43. package/plugin-v355veh7.js +105451 -0
  44. package/plugin-v355veh7.js.map +10 -0
  45. package/plugin.json +30 -0
  46. package/README.md +0 -3
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "8000C6643D60E53D64756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,261 @@
1
+ import { authMethods } from "../auth.js";
2
+ import { AgentBatchBody, AgentBatchResponse, BlockResponse, BlocksBlockResponse, CancelSessionBody, CommentResponse, CreateACommentBody, CreateADatabaseBody, CreateDatabaseBody, CreateFileBody, CreateMeetingNoteBody, CreateMeetingNoteResponse, CreateViewQueryRequest, CreateViewRequest, DatabaseResponse, DeleteAgentResponse, DeletedViewQueryResponse, FileUploadObjectResponse, GetAgentInsightsResponse, GetAgentResponse, GetPluginDirectoryResponse, GetSkillDirectoryResponse, GetUsersResponse, GetViewQueryResultsResponse, ListCommentsResponse, ListCustomEmojisResponse, ListDataSourceTemplatesResponse, ListFileUploadsResponse, ListSkillsPluginsResponse, ListViewsResponse, MovePageBody, PageMarkdownResponse, PageOrDataSourceResponse, PageResponse, PartialDataSourceViewObjectResponse, PatchBlockChildrenBody, PatchPageBody, PatchPageResponse, PostDatabaseQueryBody, PostPageBody, PostPageResponse, PostSearchBody, QueryAgentsBody, QueryAgentsResponse, QueryMeetingNotesBody, QueryMeetingNotesResponse, QuerySessionEventsBody, QuerySessionEventsResponse, QuerySessionsBody, QuerySessionsResponse, RetrieveAPagePropertyResponse, RetrieveAsyncTaskResponse, RetrieveSessionResponse, SessionResponse, UnionResponse, UpdateABlockBody, UpdateACommentBody, UpdateADataSourceBody, UpdateAgentCreditLimitBody, UpdateAgentCreditLimitResponse, UpdateAgentStatusBody, UpdateAgentStatusResponse, UpdateDatabaseBody, UpdatePageMarkdownBody, UpdatePageMarkdownResponse, UpdateSessionBody, UpdateViewRequest, UploadFileBody, UploadSkillBody, UploadSkillResponse, UserObjectResponse, ViewQueryResponse, ViewResponse } from "./operations.js";
3
+ import { triggers } from "../triggers.js";
4
+ import { HttpClient } from "effect/http";
5
+ import { Action, Group, Plugin } from "@dual-os/sdk";
6
+ //#region src/generated/plugin.d.ts
7
+ declare const agentsGroup: Group.Group<"agents", readonly [], readonly [Action.Action<"agent-batch", import("effect/Schema").Struct<{
8
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
9
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<AgentBatchBody, AgentBatchBody, never, never>>;
10
+ }>, import("effect/Schema").Codec<AgentBatchResponse, AgentBatchResponse, never, never>, true>, Action.Action<"query-agents", import("effect/Schema").Struct<{
11
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
12
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<QueryAgentsBody, QueryAgentsBody, never, never>>;
13
+ }>, import("effect/Schema").Codec<QueryAgentsResponse, QueryAgentsResponse, never, never>, true>, Action.Action<"delete-agent", import("effect/Schema").Struct<{
14
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
15
+ readonly agent_id: import("effect/Schema").Union<readonly [import("effect/Schema").Codec<string, string, never, never>, import("effect/Schema").Literals<readonly ["notion_ai", "33333333-3333-3333-3333-333333333333"]>]>;
16
+ }>, import("effect/Schema").Codec<DeleteAgentResponse, DeleteAgentResponse, never, never>, true>, Action.Action<"get-agent", import("effect/Schema").Struct<{
17
+ readonly agent_id: import("effect/Schema").Union<readonly [import("effect/Schema").Codec<string, string, never, never>, import("effect/Schema").Literals<readonly ["notion_ai", "33333333-3333-3333-3333-333333333333"]>]>;
18
+ readonly verbose: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
19
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
20
+ }>, import("effect/Schema").Codec<GetAgentResponse, GetAgentResponse, never, never>, true>, Action.Action<"update-agent-credit-limit", import("effect/Schema").Struct<{
21
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
22
+ readonly agent_id: import("effect/Schema").Union<readonly [import("effect/Schema").Codec<string, string, never, never>, import("effect/Schema").Literals<readonly ["notion_ai", "33333333-3333-3333-3333-333333333333"]>]>;
23
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<UpdateAgentCreditLimitBody, UpdateAgentCreditLimitBody, never, never>>;
24
+ }>, import("effect/Schema").Codec<UpdateAgentCreditLimitResponse, UpdateAgentCreditLimitResponse, never, never>, true>, Action.Action<"get-agent-insights", import("effect/Schema").Struct<{
25
+ readonly agent_id: import("effect/Schema").Union<readonly [import("effect/Schema").Codec<string, string, never, never>, import("effect/Schema").Literals<readonly ["notion_ai", "33333333-3333-3333-3333-333333333333"]>]>;
26
+ readonly start_time: import("effect/Schema").optionalKey<import("effect/Schema").Int>;
27
+ readonly end_time: import("effect/Schema").optionalKey<import("effect/Schema").Int>;
28
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
29
+ }>, import("effect/Schema").Codec<GetAgentInsightsResponse, GetAgentInsightsResponse, never, never>, true>, Action.Action<"update-agent-status", import("effect/Schema").Struct<{
30
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
31
+ readonly agent_id: import("effect/Schema").Union<readonly [import("effect/Schema").Codec<string, string, never, never>, import("effect/Schema").Literals<readonly ["notion_ai", "33333333-3333-3333-3333-333333333333"]>]>;
32
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<UpdateAgentStatusBody, UpdateAgentStatusBody, never, never>>;
33
+ }>, import("effect/Schema").Codec<UpdateAgentStatusResponse, UpdateAgentStatusResponse, never, never>, true>], readonly []>;
34
+ declare const agentSkillsGroup: Group.Group<"agent-skills", readonly [], readonly [Action.Action<"list-skills-plugins", import("effect/Schema").Struct<{
35
+ readonly page_size: import("effect/Schema").optionalKey<import("effect/Schema").Int>;
36
+ readonly start_cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
37
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
38
+ }>, import("effect/Schema").Codec<ListSkillsPluginsResponse, ListSkillsPluginsResponse, never, never>, true>, Action.Action<"get-plugin-directory", import("effect/Schema").Struct<{
39
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
40
+ readonly id: import("effect/Schema").String;
41
+ }>, import("effect/Schema").Codec<GetPluginDirectoryResponse, GetPluginDirectoryResponse, never, never>, true>, Action.Action<"get-skill-directory", import("effect/Schema").Struct<{
42
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
43
+ readonly id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
44
+ }>, import("effect/Schema").Codec<GetSkillDirectoryResponse, GetSkillDirectoryResponse, never, never>, true>, Action.Action<"upload-skill", import("effect/Schema").Struct<{
45
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
46
+ readonly id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
47
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<UploadSkillBody, UploadSkillBody, never, never>>;
48
+ }>, import("effect/Schema").Codec<UploadSkillResponse, UploadSkillResponse, never, never>, true>], readonly []>;
49
+ declare const asyncTasksGroup: Group.Group<"async-tasks", readonly [], readonly [Action.Action<"retrieve-async-task", import("effect/Schema").Struct<{
50
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
51
+ readonly task_id: import("effect/Schema").String;
52
+ }>, import("effect/Schema").Codec<RetrieveAsyncTaskResponse, RetrieveAsyncTaskResponse, never, never>, true>], readonly []>;
53
+ declare const meetingNotesGroup: Group.Group<"meeting-notes", readonly [], readonly [Action.Action<"create-meeting-note", import("effect/Schema").Struct<{
54
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
55
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<CreateMeetingNoteBody, CreateMeetingNoteBody, never, never>>;
56
+ }>, import("effect/Schema").Codec<CreateMeetingNoteResponse, CreateMeetingNoteResponse, never, never>, true>, Action.Action<"query-meeting-notes", import("effect/Schema").Struct<{
57
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
58
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<QueryMeetingNotesBody, QueryMeetingNotesBody, never, never>>;
59
+ }>, import("effect/Schema").Codec<QueryMeetingNotesResponse, QueryMeetingNotesResponse, never, never>, true>], readonly []>;
60
+ declare const blocksGroup: Group.Group<"blocks", readonly [], readonly [Action.Action<"delete-a-block", import("effect/Schema").Struct<{
61
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
62
+ readonly block_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
63
+ }>, import("effect/Schema").Codec<BlocksBlockResponse, BlocksBlockResponse, never, never>, true>, Action.Action<"retrieve-a-block", import("effect/Schema").Struct<{
64
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
65
+ readonly block_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
66
+ }>, import("effect/Schema").Codec<BlocksBlockResponse, BlocksBlockResponse, never, never>, true>, Action.Action<"update-a-block", import("effect/Schema").Struct<{
67
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
68
+ readonly block_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
69
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<UpdateABlockBody, UpdateABlockBody, never, never>>;
70
+ }>, import("effect/Schema").Codec<BlocksBlockResponse, BlocksBlockResponse, never, never>, true>, Action.Action<"get-block-children", import("effect/Schema").Struct<{
71
+ readonly block_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
72
+ readonly start_cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
73
+ readonly page_size: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
74
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
75
+ }>, import("effect/Schema").Codec<BlockResponse, BlockResponse, never, never>, true>, Action.Action<"patch-block-children", import("effect/Schema").Struct<{
76
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
77
+ readonly block_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
78
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<PatchBlockChildrenBody, PatchBlockChildrenBody, never, never>>;
79
+ }>, import("effect/Schema").Codec<BlockResponse, BlockResponse, never, never>, true>], readonly []>;
80
+ declare const commentsGroup: Group.Group<"comments", readonly [], readonly [Action.Action<"list-comments", import("effect/Schema").Struct<{
81
+ readonly block_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
82
+ readonly start_cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
83
+ readonly page_size: import("effect/Schema").optionalKey<import("effect/Schema").Int>;
84
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
85
+ }>, import("effect/Schema").Codec<ListCommentsResponse, ListCommentsResponse, never, never>, true>, Action.Action<"create-a-comment", import("effect/Schema").Struct<{
86
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
87
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<CreateACommentBody, CreateACommentBody, never, never>>;
88
+ }>, import("effect/Schema").Codec<CommentResponse, CommentResponse, never, never>, true>, Action.Action<"delete-a-comment", import("effect/Schema").Struct<{
89
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
90
+ readonly comment_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
91
+ }>, import("effect/Schema").Codec<CommentResponse, CommentResponse, never, never>, true>, Action.Action<"retrieve-comment", import("effect/Schema").Struct<{
92
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
93
+ readonly comment_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
94
+ }>, import("effect/Schema").Codec<CommentResponse, CommentResponse, never, never>, true>, Action.Action<"update-a-comment", import("effect/Schema").Struct<{
95
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
96
+ readonly comment_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
97
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<UpdateACommentBody, UpdateACommentBody, never, never>>;
98
+ }>, import("effect/Schema").Codec<CommentResponse, CommentResponse, never, never>, true>], readonly []>;
99
+ declare const customEmojisGroup: Group.Group<"custom-emojis", readonly [], readonly [Action.Action<"list-custom-emojis", import("effect/Schema").Struct<{
100
+ readonly start_cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
101
+ readonly page_size: import("effect/Schema").optionalKey<import("effect/Schema").Int>;
102
+ readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
103
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
104
+ }>, import("effect/Schema").Codec<ListCustomEmojisResponse, ListCustomEmojisResponse, never, never>, true>], readonly []>;
105
+ declare const dataSourcesGroup: Group.Group<"data-sources", readonly [], readonly [Action.Action<"create-a-database", import("effect/Schema").Struct<{
106
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
107
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<CreateADatabaseBody, CreateADatabaseBody, never, never>>;
108
+ }>, import("effect/Schema").Codec<UnionResponse, UnionResponse, never, never>, true>, Action.Action<"retrieve-a-data-source", import("effect/Schema").Struct<{
109
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
110
+ readonly data_source_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
111
+ }>, import("effect/Schema").Codec<UnionResponse, UnionResponse, never, never>, true>, Action.Action<"update-a-data-source", import("effect/Schema").Struct<{
112
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
113
+ readonly data_source_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
114
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<UpdateADataSourceBody, UpdateADataSourceBody, never, never>>;
115
+ }>, import("effect/Schema").Codec<UnionResponse, UnionResponse, never, never>, true>, Action.Action<"post-database-query", import("effect/Schema").Struct<{
116
+ readonly filter_properties: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").String>>;
117
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
118
+ readonly data_source_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
119
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<PostDatabaseQueryBody, PostDatabaseQueryBody, never, never>>;
120
+ }>, import("effect/Schema").Codec<PageOrDataSourceResponse, PageOrDataSourceResponse, never, never>, true>, Action.Action<"list-data-source-templates", import("effect/Schema").Struct<{
121
+ readonly data_source_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
122
+ readonly name: import("effect/Schema").optionalKey<import("effect/Schema").String>;
123
+ readonly start_cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
124
+ readonly page_size: import("effect/Schema").optionalKey<import("effect/Schema").Int>;
125
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
126
+ }>, import("effect/Schema").Codec<ListDataSourceTemplatesResponse, ListDataSourceTemplatesResponse, never, never>, true>], readonly []>;
127
+ declare const databasesGroup: Group.Group<"databases", readonly [], readonly [Action.Action<"create-database", import("effect/Schema").Struct<{
128
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
129
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<CreateDatabaseBody, CreateDatabaseBody, never, never>>;
130
+ }>, import("effect/Schema").Codec<DatabaseResponse, DatabaseResponse, never, never>, true>, Action.Action<"retrieve-database", import("effect/Schema").Struct<{
131
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
132
+ readonly database_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
133
+ }>, import("effect/Schema").Codec<DatabaseResponse, DatabaseResponse, never, never>, true>, Action.Action<"update-database", import("effect/Schema").Struct<{
134
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
135
+ readonly database_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
136
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<UpdateDatabaseBody, UpdateDatabaseBody, never, never>>;
137
+ }>, import("effect/Schema").Codec<DatabaseResponse, DatabaseResponse, never, never>, true>], readonly []>;
138
+ declare const fileUploadsGroup: Group.Group<"file-uploads", readonly [], readonly [Action.Action<"list-file-uploads", import("effect/Schema").Struct<{
139
+ readonly status: import("effect/Schema").optionalKey<import("effect/Schema").suspend<import("effect/Schema").Literals<readonly ["pending", "uploaded", "expired", "failed"]>>>;
140
+ readonly start_cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
141
+ readonly page_size: import("effect/Schema").optionalKey<import("effect/Schema").Int>;
142
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
143
+ }>, import("effect/Schema").Codec<ListFileUploadsResponse, ListFileUploadsResponse, never, never>, true>, Action.Action<"create-file", import("effect/Schema").Struct<{
144
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
145
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<CreateFileBody, CreateFileBody, never, never>>;
146
+ }>, import("effect/Schema").Codec<FileUploadObjectResponse, FileUploadObjectResponse, never, never>, true>, Action.Action<"retrieve-file-upload", import("effect/Schema").Struct<{
147
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
148
+ readonly file_upload_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
149
+ }>, import("effect/Schema").Codec<FileUploadObjectResponse, FileUploadObjectResponse, never, never>, true>, Action.Action<"complete-file-upload", import("effect/Schema").Struct<{
150
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
151
+ readonly file_upload_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
152
+ }>, import("effect/Schema").Codec<FileUploadObjectResponse, FileUploadObjectResponse, never, never>, true>, Action.Action<"upload-file", import("effect/Schema").Struct<{
153
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
154
+ readonly file_upload_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
155
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<UploadFileBody, UploadFileBody, never, never>>;
156
+ }>, import("effect/Schema").Codec<FileUploadObjectResponse, FileUploadObjectResponse, never, never>, true>], readonly []>;
157
+ declare const pagesGroup: Group.Group<"pages", readonly [], readonly [Action.Action<"post-page", import("effect/Schema").Struct<{
158
+ readonly filter_properties: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").String>>;
159
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
160
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<PostPageBody, PostPageBody, never, never>>;
161
+ }>, import("effect/Schema").Codec<PostPageResponse, PostPageResponse, never, never>, true>, Action.Action<"retrieve-a-page", import("effect/Schema").Struct<{
162
+ readonly page_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
163
+ readonly filter_properties: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").String>>;
164
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
165
+ }>, import("effect/Schema").Codec<PageResponse, PageResponse, never, never>, true>, Action.Action<"patch-page", import("effect/Schema").Struct<{
166
+ readonly filter_properties: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").String>>;
167
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
168
+ readonly page_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
169
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<PatchPageBody, PatchPageBody, never, never>>;
170
+ }>, import("effect/Schema").Codec<PatchPageResponse, PatchPageResponse, never, never>, true>, Action.Action<"retrieve-page-markdown", import("effect/Schema").Struct<{
171
+ readonly page_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
172
+ readonly include_transcript: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
173
+ readonly markdown_version: import("effect/Schema").optionalKey<import("effect/Schema").suspend<import("effect/Schema").Literals<readonly ["v1", "v2"]>>>;
174
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
175
+ }>, import("effect/Schema").Codec<PageMarkdownResponse, PageMarkdownResponse, never, never>, true>, Action.Action<"update-page-markdown", import("effect/Schema").Struct<{
176
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
177
+ readonly page_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
178
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<UpdatePageMarkdownBody, UpdatePageMarkdownBody, never, never>>;
179
+ }>, import("effect/Schema").Codec<UpdatePageMarkdownResponse, UpdatePageMarkdownResponse, never, never>, true>, Action.Action<"move-page", import("effect/Schema").Struct<{
180
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
181
+ readonly page_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
182
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<MovePageBody, MovePageBody, never, never>>;
183
+ }>, import("effect/Schema").Codec<PageResponse, PageResponse, never, never>, true>, Action.Action<"retrieve-a-page-property", import("effect/Schema").Struct<{
184
+ readonly page_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
185
+ readonly property_id: import("effect/Schema").String;
186
+ readonly start_cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
187
+ readonly page_size: import("effect/Schema").optionalKey<import("effect/Schema").Int>;
188
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
189
+ }>, import("effect/Schema").Codec<RetrieveAPagePropertyResponse, RetrieveAPagePropertyResponse, never, never>, true>], readonly []>;
190
+ declare const searchGroup: Group.Group<"search", readonly [], readonly [Action.Action<"post-search", import("effect/Schema").Struct<{
191
+ readonly filter_properties: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").String>>;
192
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
193
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<PostSearchBody, PostSearchBody, never, never>>;
194
+ }>, import("effect/Schema").Codec<PageOrDataSourceResponse, PageOrDataSourceResponse, never, never>, true>], readonly []>;
195
+ declare const sessionsGroup: Group.Group<"sessions", readonly [], readonly [Action.Action<"update-session", import("effect/Schema").Struct<{
196
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
197
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<UpdateSessionBody, UpdateSessionBody, never, never>>;
198
+ }>, import("effect/Schema").Codec<SessionResponse, SessionResponse, never, never>, true>, Action.Action<"query-sessions", import("effect/Schema").Struct<{
199
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
200
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<QuerySessionsBody, QuerySessionsBody, never, never>>;
201
+ }>, import("effect/Schema").Codec<QuerySessionsResponse, QuerySessionsResponse, never, never>, true>, Action.Action<"retrieve-session", import("effect/Schema").Struct<{
202
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
203
+ readonly session_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
204
+ }>, import("effect/Schema").Codec<RetrieveSessionResponse, RetrieveSessionResponse, never, never>, true>, Action.Action<"cancel-session", import("effect/Schema").Struct<{
205
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
206
+ readonly session_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
207
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<CancelSessionBody, CancelSessionBody, never, never>>;
208
+ }>, import("effect/Schema").Codec<SessionResponse, SessionResponse, never, never>, true>, Action.Action<"query-session-events", import("effect/Schema").Struct<{
209
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
210
+ readonly session_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
211
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<QuerySessionEventsBody, QuerySessionEventsBody, never, never>>;
212
+ }>, import("effect/Schema").Codec<QuerySessionEventsResponse, QuerySessionEventsResponse, never, never>, true>], readonly []>;
213
+ declare const usersGroup: Group.Group<"users", readonly [], readonly [Action.Action<"get-users", import("effect/Schema").Struct<{
214
+ readonly start_cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
215
+ readonly page_size: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
216
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
217
+ }>, import("effect/Schema").Codec<GetUsersResponse, GetUsersResponse, never, never>, true>, Action.Action<"get-self", import("effect/Schema").Struct<{
218
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
219
+ }>, import("effect/Schema").Codec<UserObjectResponse, UserObjectResponse, never, never>, true>, Action.Action<"get-user", import("effect/Schema").Struct<{
220
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
221
+ readonly user_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
222
+ }>, import("effect/Schema").Codec<UserObjectResponse, UserObjectResponse, never, never>, true>], readonly []>;
223
+ declare const viewsGroup: Group.Group<"views", readonly [], readonly [Action.Action<"list-views", import("effect/Schema").Struct<{
224
+ readonly database_id: import("effect/Schema").optionalKey<import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>>;
225
+ readonly data_source_id: import("effect/Schema").optionalKey<import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>>;
226
+ readonly start_cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
227
+ readonly page_size: import("effect/Schema").optionalKey<import("effect/Schema").Int>;
228
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
229
+ }>, import("effect/Schema").Codec<ListViewsResponse, ListViewsResponse, never, never>, true>, Action.Action<"create-view", import("effect/Schema").Struct<{
230
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
231
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<CreateViewRequest, CreateViewRequest, never, never>>;
232
+ }>, import("effect/Schema").Codec<ViewResponse, ViewResponse, never, never>, true>, Action.Action<"delete-view", import("effect/Schema").Struct<{
233
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
234
+ readonly view_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
235
+ }>, import("effect/Schema").Codec<PartialDataSourceViewObjectResponse, PartialDataSourceViewObjectResponse, never, never>, true>, Action.Action<"retrieve-a-view", import("effect/Schema").Struct<{
236
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
237
+ readonly view_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
238
+ }>, import("effect/Schema").Codec<ViewResponse, ViewResponse, never, never>, true>, Action.Action<"update-a-view", import("effect/Schema").Struct<{
239
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
240
+ readonly view_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
241
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<UpdateViewRequest, UpdateViewRequest, never, never>>;
242
+ }>, import("effect/Schema").Codec<ViewResponse, ViewResponse, never, never>, true>, Action.Action<"create-view-query", import("effect/Schema").Struct<{
243
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
244
+ readonly view_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
245
+ readonly payload: import("effect/Schema").suspend<import("effect/Schema").Codec<CreateViewQueryRequest, CreateViewQueryRequest, never, never>>;
246
+ }>, import("effect/Schema").Codec<ViewQueryResponse, ViewQueryResponse, never, never>, true>, Action.Action<"delete-view-query", import("effect/Schema").Struct<{
247
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
248
+ readonly view_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
249
+ readonly query_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
250
+ }>, import("effect/Schema").Codec<DeletedViewQueryResponse, DeletedViewQueryResponse, never, never>, true>, Action.Action<"get-view-query-results", import("effect/Schema").Struct<{
251
+ readonly view_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
252
+ readonly query_id: import("effect/Schema").suspend<import("effect/Schema").Codec<string, string, never, never>>;
253
+ readonly start_cursor: import("effect/Schema").optionalKey<import("effect/Schema").String>;
254
+ readonly page_size: import("effect/Schema").optionalKey<import("effect/Schema").Int>;
255
+ readonly "Notion-Version": import("effect/Schema").optionalKey<import("effect/Schema").Literal<"2026-03-11">>;
256
+ }>, import("effect/Schema").Codec<GetViewQueryResultsResponse, GetViewQueryResultsResponse, never, never>, true>], readonly []>;
257
+ export declare const notionApiPluginBase: Plugin.Definition<"notion-api", typeof authMethods, readonly [typeof agentsGroup, typeof agentSkillsGroup, typeof asyncTasksGroup, typeof meetingNotesGroup, typeof blocksGroup, typeof commentsGroup, typeof customEmojisGroup, typeof dataSourcesGroup, typeof databasesGroup, typeof fileUploadsGroup, typeof pagesGroup, typeof searchGroup, typeof sessionsGroup, typeof usersGroup, typeof viewsGroup], readonly [], typeof triggers>;
258
+ export declare const notionApiPlugin: Plugin.Provided<typeof notionApiPluginBase, Plugin.HandlerServices<typeof notionApiPluginBase> | HttpClient.HttpClient>;
259
+ //#endregion
260
+ export {};
261
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","names":["Operations.AgentBatchBody","Operations.AgentBatchResponse","Operations.QueryAgentsBody","Operations.QueryAgentsResponse","Operations.DeleteAgentResponse","Operations.GetAgentResponse","Operations.UpdateAgentCreditLimitBody","Operations.UpdateAgentCreditLimitResponse","Operations.GetAgentInsightsResponse","Operations.UpdateAgentStatusBody","Operations.UpdateAgentStatusResponse","Operations.ListSkillsPluginsResponse","Operations.GetPluginDirectoryResponse","Operations.GetSkillDirectoryResponse","Operations.UploadSkillBody","Operations.UploadSkillResponse","Operations.RetrieveAsyncTaskResponse","Operations.CreateMeetingNoteBody","Operations.CreateMeetingNoteResponse","Operations.QueryMeetingNotesBody","Operations.QueryMeetingNotesResponse","Operations.BlocksBlockResponse","Operations.UpdateABlockBody","Operations.BlockResponse","Operations.PatchBlockChildrenBody","Operations.ListCommentsResponse","Operations.CreateACommentBody","Operations.CommentResponse","Operations.UpdateACommentBody","Operations.ListCustomEmojisResponse","Operations.CreateADatabaseBody","Operations.UnionResponse","Operations.UpdateADataSourceBody","Operations.PostDatabaseQueryBody","Operations.PageOrDataSourceResponse","Operations.ListDataSourceTemplatesResponse","Operations.CreateDatabaseBody","Operations.DatabaseResponse","Operations.UpdateDatabaseBody","Operations.ListFileUploadsResponse","Operations.CreateFileBody","Operations.FileUploadObjectResponse","Operations.UploadFileBody","Operations.PostPageBody","Operations.PostPageResponse","Operations.PageResponse","Operations.PatchPageBody","Operations.PatchPageResponse","Operations.PageMarkdownResponse","Operations.UpdatePageMarkdownBody","Operations.UpdatePageMarkdownResponse","Operations.MovePageBody","Operations.RetrieveAPagePropertyResponse","Operations.PostSearchBody","Operations.UpdateSessionBody","Operations.SessionResponse","Operations.QuerySessionsBody","Operations.QuerySessionsResponse","Operations.RetrieveSessionResponse","Operations.CancelSessionBody","Operations.QuerySessionEventsBody","Operations.QuerySessionEventsResponse","Operations.GetUsersResponse","Operations.UserObjectResponse","Operations.ListViewsResponse","Operations.CreateViewRequest","Operations.ViewResponse","Operations.PartialDataSourceViewObjectResponse","Operations.UpdateViewRequest","Operations.CreateViewQueryRequest","Operations.ViewQueryResponse","Operations.DeletedViewQueryResponse","Operations.GetViewQueryResultsResponse","Auth.authMethods","Triggers.triggers"],"sources":["../../src/generated/plugin.ts"],"mappings":";;;;;;cAkUM,aAAW,MAAA,uCAAA,OAAA,8CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;4BAWhB,MAAAU,2BAAAA;cAEK,kBAAgB,MAAA,6CAAA,OAAA,sDAAA;;;;;;;;;;;;;;4BAQrB,MAAAK,qBAAAA;cAEK,iBAAe,MAAA,4CAAA,OAAA,sDAAA;;;4BAGpB,MAAAC,2BAAAA;cAEK,mBAAiB,MAAA,8CAAA,OAAA,sDAAA;;;;;;4BAGtB,MAAAI,2BAAAA;cAEK,aAAW,MAAA,uCAAA,OAAA,iDAAA;;;;;;;;;;;;;;;;;;;4BAShB,MAAAG,eAAAA;cAEK,eAAa,MAAA,yCAAA,OAAA,gDAAA;;;;;;;;;;;;;;;;;;4BASlB,MAAAI,iBAAAA;cAEK,mBAAiB,MAAA,8CAAA,OAAA,qDAAA;;;;;4BAGtB,MAAAE,0BAAAA;cAEK,kBAAgB,MAAA,6CAAA,OAAA,oDAAA;;;;;;;;;;;;;;;;;;;;;4BASrB,MAAAM,iCAAAA;cAEK,gBAAc,MAAA,0CAAA,OAAA,kDAAA;;;;;;;;;;4BAOnB,MAAAE,kBAAAA;cAEK,kBAAgB,MAAA,6CAAA,OAAA,oDAAA;;;;;;;;;;;;;;;;;;4BASrB,MAAAI,0BAAAA;cAEK,YAAU,MAAA,sCAAA,OAAA,4CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAWf,MAAAW,+BAAAA;cAEK,aAAW,MAAA,uCAAA,OAAA,8CAAA;;;;4BAGhB,MAAAlB,0BAAAA;cAEK,eAAa,MAAA,yCAAA,OAAA,iDAAA;;;;;;;;;;;;;;;;;4BASlB,MAAA2B,4BAAAA;cAEK,YAAU,MAAA,sCAAA,OAAA,4CAAA;;;;;;;;;4BAGf,MAAAE,oBAAAA;cAEK,YAAU,MAAA,sCAAA,OAAA,6CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAYf,MAAAS,6BAAAA;qBAEY,qBAAqB,OAAO,gCAEhCC,8BAEE,oBACA,yBACA,wBACA,0BACA,oBACA,sBACA,0BACA,yBACA,uBACA,yBACA,mBACA,oBACA,sBACA,mBACA,iCAGFC;qBAwII,iBAAiB,OAAO,gBAC5B,qBACP,OAAO,uBAAuB,uBAAuB,WAAW"}