@wirecat/notion-cli 0.0.0-stage → 0.1.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 (243) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/LICENSE +204 -0
  3. package/README.md +36 -2
  4. package/contracts/wirecat.json +1315 -0
  5. package/dist/bin/notion.d.ts +3 -0
  6. package/dist/bin/notion.d.ts.map +1 -0
  7. package/dist/bin/notion.js +40 -0
  8. package/dist/bin/notion.js.map +1 -0
  9. package/dist/bundle/all-profiles-OETMCOLN.js +278 -0
  10. package/dist/bundle/anthropic-5Y3O2TYM.js +91 -0
  11. package/dist/bundle/app-server-IVWBIVHC.js +231 -0
  12. package/dist/bundle/bun-EO636SAD.js +169 -0
  13. package/dist/bundle/bun-sqlite-C2T7QJ2M.js +76 -0
  14. package/dist/bundle/chunk-24FAYAML.js +52 -0
  15. package/dist/bundle/chunk-2YR3RYT4.js +73 -0
  16. package/dist/bundle/chunk-35K5T6WV.js +24 -0
  17. package/dist/bundle/chunk-3D3PFXBP.js +2315 -0
  18. package/dist/bundle/chunk-47R43UVJ.js +1068 -0
  19. package/dist/bundle/chunk-4GC5DBHW.js +100 -0
  20. package/dist/bundle/chunk-5D4AEUVA.js +24783 -0
  21. package/dist/bundle/chunk-64D5VUZ4.js +9564 -0
  22. package/dist/bundle/chunk-66PL7P4C.js +23 -0
  23. package/dist/bundle/chunk-7FII4DCE.js +362 -0
  24. package/dist/bundle/chunk-7N5QB6NL.js +156 -0
  25. package/dist/bundle/chunk-AE2KQ37N.js +95 -0
  26. package/dist/bundle/chunk-AQZO3ITW.js +58 -0
  27. package/dist/bundle/chunk-B2WFKFYL.js +1488 -0
  28. package/dist/bundle/chunk-B2XKEEFX.js +230 -0
  29. package/dist/bundle/chunk-B4B65XIO.js +73 -0
  30. package/dist/bundle/chunk-BWICUW7W.js +288 -0
  31. package/dist/bundle/chunk-CLG2ISQH.js +206 -0
  32. package/dist/bundle/chunk-CWVAYQXI.js +185 -0
  33. package/dist/bundle/chunk-D72URWJE.js +532 -0
  34. package/dist/bundle/chunk-DFDN6AUB.js +21 -0
  35. package/dist/bundle/chunk-DIM5YWBU.js +53 -0
  36. package/dist/bundle/chunk-EGTBL3MJ.js +6848 -0
  37. package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
  38. package/dist/bundle/chunk-EPAZ7DJB.js +783 -0
  39. package/dist/bundle/chunk-ESZT4WW3.js +142 -0
  40. package/dist/bundle/chunk-EU5WCOMQ.js +4001 -0
  41. package/dist/bundle/chunk-F6MLJ3V5.js +72 -0
  42. package/dist/bundle/chunk-FF4DDBCB.js +1028 -0
  43. package/dist/bundle/chunk-GA3URWIF.js +46 -0
  44. package/dist/bundle/chunk-HRTIRRXR.js +3112 -0
  45. package/dist/bundle/chunk-HWRKURQH.js +54 -0
  46. package/dist/bundle/chunk-IQWEJEB5.js +39724 -0
  47. package/dist/bundle/chunk-JK44XO2S.js +392 -0
  48. package/dist/bundle/chunk-JKIN5TOU.js +131 -0
  49. package/dist/bundle/chunk-K5TWMQSY.js +188 -0
  50. package/dist/bundle/chunk-KHOVVPLC.js +18 -0
  51. package/dist/bundle/chunk-NLDYZBTC.js +5862 -0
  52. package/dist/bundle/chunk-OWJDC4CB.js +217 -0
  53. package/dist/bundle/chunk-QBC23NHD.js +38 -0
  54. package/dist/bundle/chunk-QC3KOJT4.js +300 -0
  55. package/dist/bundle/chunk-R6ZM45NF.js +1239 -0
  56. package/dist/bundle/chunk-RAZKIHGH.js +76 -0
  57. package/dist/bundle/chunk-RDZ7SVBZ.js +731 -0
  58. package/dist/bundle/chunk-RLSFOR2D.js +161 -0
  59. package/dist/bundle/chunk-RSIS7BR7.js +2778 -0
  60. package/dist/bundle/chunk-ST2UC7FS.js +1324 -0
  61. package/dist/bundle/chunk-TR7R5DL4.js +370 -0
  62. package/dist/bundle/chunk-TSCIIXN3.js +106 -0
  63. package/dist/bundle/chunk-UWIA2G6Q.js +12737 -0
  64. package/dist/bundle/chunk-UWW24JQF.js +66 -0
  65. package/dist/bundle/chunk-WK3OSDNV.js +1197 -0
  66. package/dist/bundle/chunk-WM7663C2.js +1221 -0
  67. package/dist/bundle/chunk-WVZFXI36.js +274 -0
  68. package/dist/bundle/chunk-WWMB4UHF.js +78 -0
  69. package/dist/bundle/chunk-XC5CKHX2.js +63 -0
  70. package/dist/bundle/chunk-XL2HXHP3.js +82 -0
  71. package/dist/bundle/chunk-XQUUANA2.js +24600 -0
  72. package/dist/bundle/chunk-XYIT2XB3.js +1372 -0
  73. package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
  74. package/dist/bundle/chunk-YA4LSSDZ.js +64499 -0
  75. package/dist/bundle/chunk-ZI3YTXSF.js +2 -0
  76. package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
  77. package/dist/bundle/command-contract-6G5DC2FN.js +35 -0
  78. package/dist/bundle/command-server-entry-A66DJ3MH.js +164 -0
  79. package/dist/bundle/decode-7XOFRAAT.js +163 -0
  80. package/dist/bundle/definitions-M3U4UYHN.js +45607 -0
  81. package/dist/bundle/dispatch-FEKU5UXC.js +411 -0
  82. package/dist/bundle/dist-YFKABFFF.js +7577 -0
  83. package/dist/bundle/echarts-XD2JSWU4.js +42501 -0
  84. package/dist/bundle/embed-F3HYGAF7.js +38 -0
  85. package/dist/bundle/embedder-GSEDDUH7.js +111 -0
  86. package/dist/bundle/failure-HDJLR2YJ.js +25 -0
  87. package/dist/bundle/first-run-TXNTIUSP.js +28 -0
  88. package/dist/bundle/first-screen-JZPJND7J.js +33 -0
  89. package/dist/bundle/instructions-NZGJ4FW5.js +11 -0
  90. package/dist/bundle/mcp-VFIOZDVY.js +167 -0
  91. package/dist/bundle/node-KM3CUABH.js +2340 -0
  92. package/dist/bundle/node-RPKPDYQS.js +176 -0
  93. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  94. package/dist/bundle/node-sqlite-KH2UUYVO.js +74 -0
  95. package/dist/bundle/notion.js +185 -0
  96. package/dist/bundle/oauth-NKAI7TQD.js +20 -0
  97. package/dist/bundle/open-WSAEAA2V.js +23 -0
  98. package/dist/bundle/openai-JPVDGHG5.js +238 -0
  99. package/dist/bundle/process-5ZFVKOQX.js +91 -0
  100. package/dist/bundle/program-M3D56D6T.js +28854 -0
  101. package/dist/bundle/prompt-FROYQ5LV.js +17 -0
  102. package/dist/bundle/recognize-NYCHQMCX.js +26 -0
  103. package/dist/bundle/remote-4OERF3Z4.js +32 -0
  104. package/dist/bundle/rerank-TEGXFUWY.js +52 -0
  105. package/dist/bundle/schemas-MZNNOEYN.js +12214 -0
  106. package/dist/bundle/serve-HLYYBAXY.js +199 -0
  107. package/dist/bundle/server-D5OYNEUW.js +193 -0
  108. package/dist/bundle/server-LWZGVMNW.js +62 -0
  109. package/dist/bundle/sqlite-runtime-H2S5RR2F.js +20 -0
  110. package/dist/bundle/state-OPOXCDZL.js +36 -0
  111. package/dist/bundle/store-NHMXEJPD.js +164 -0
  112. package/dist/bundle/store-Y3KRLCJ7.js +281 -0
  113. package/dist/bundle/store-maintenance-command-D4W7WSLQ.js +53 -0
  114. package/dist/commands/api.d.ts +4 -0
  115. package/dist/commands/api.d.ts.map +1 -0
  116. package/dist/commands/api.js +140 -0
  117. package/dist/commands/api.js.map +1 -0
  118. package/dist/commands/comments.d.ts +3 -0
  119. package/dist/commands/comments.d.ts.map +1 -0
  120. package/dist/commands/comments.js +114 -0
  121. package/dist/commands/comments.js.map +1 -0
  122. package/dist/commands/databases.d.ts +3 -0
  123. package/dist/commands/databases.d.ts.map +1 -0
  124. package/dist/commands/databases.js +65 -0
  125. package/dist/commands/databases.js.map +1 -0
  126. package/dist/commands/documents.d.ts +3 -0
  127. package/dist/commands/documents.d.ts.map +1 -0
  128. package/dist/commands/documents.js +41 -0
  129. package/dist/commands/documents.js.map +1 -0
  130. package/dist/commands/session.d.ts +3 -0
  131. package/dist/commands/session.d.ts.map +1 -0
  132. package/dist/commands/session.js +104 -0
  133. package/dist/commands/session.js.map +1 -0
  134. package/dist/config.d.ts +5 -0
  135. package/dist/config.d.ts.map +1 -0
  136. package/dist/config.js +13 -0
  137. package/dist/config.js.map +1 -0
  138. package/dist/context.d.ts +46 -0
  139. package/dist/context.d.ts.map +1 -0
  140. package/dist/context.js +58 -0
  141. package/dist/context.js.map +1 -0
  142. package/dist/generated/definitions.d.ts +3 -0
  143. package/dist/generated/definitions.d.ts.map +1 -0
  144. package/dist/generated/definitions.js +45603 -0
  145. package/dist/generated/definitions.js.map +1 -0
  146. package/dist/generated/manifest.d.ts +3 -0
  147. package/dist/generated/manifest.d.ts.map +1 -0
  148. package/dist/generated/manifest.js +2089 -0
  149. package/dist/generated/manifest.js.map +1 -0
  150. package/dist/generated/metadata.d.ts +6 -0
  151. package/dist/generated/metadata.d.ts.map +1 -0
  152. package/dist/generated/metadata.js +24 -0
  153. package/dist/generated/metadata.js.map +1 -0
  154. package/dist/generated/schemas.d.ts +1223 -0
  155. package/dist/generated/schemas.d.ts.map +1 -0
  156. package/dist/generated/schemas.js +11557 -0
  157. package/dist/generated/schemas.js.map +1 -0
  158. package/dist/generated/types.d.ts +11120 -0
  159. package/dist/generated/types.d.ts.map +1 -0
  160. package/dist/generated/types.js +5 -0
  161. package/dist/generated/types.js.map +1 -0
  162. package/dist/identity.d.ts +7 -0
  163. package/dist/identity.d.ts.map +1 -0
  164. package/dist/identity.js +29 -0
  165. package/dist/identity.js.map +1 -0
  166. package/dist/index.d.ts +3 -0
  167. package/dist/index.d.ts.map +1 -0
  168. package/dist/index.js +3 -0
  169. package/dist/index.js.map +1 -0
  170. package/dist/notion/client.d.ts +42 -0
  171. package/dist/notion/client.d.ts.map +1 -0
  172. package/dist/notion/client.js +118 -0
  173. package/dist/notion/client.js.map +1 -0
  174. package/dist/notion/errors.d.ts +24 -0
  175. package/dist/notion/errors.d.ts.map +1 -0
  176. package/dist/notion/errors.js +102 -0
  177. package/dist/notion/errors.js.map +1 -0
  178. package/dist/notion/ids.d.ts +7 -0
  179. package/dist/notion/ids.d.ts.map +1 -0
  180. package/dist/notion/ids.js +37 -0
  181. package/dist/notion/ids.js.map +1 -0
  182. package/dist/notion/links.d.ts +6 -0
  183. package/dist/notion/links.d.ts.map +1 -0
  184. package/dist/notion/links.js +22 -0
  185. package/dist/notion/links.js.map +1 -0
  186. package/dist/notion/notion.d.ts +95 -0
  187. package/dist/notion/notion.d.ts.map +1 -0
  188. package/dist/notion/notion.js +269 -0
  189. package/dist/notion/notion.js.map +1 -0
  190. package/dist/notion/port.d.ts +13 -0
  191. package/dist/notion/port.d.ts.map +1 -0
  192. package/dist/notion/port.js +60 -0
  193. package/dist/notion/port.js.map +1 -0
  194. package/dist/notion/read-posts.d.ts +36 -0
  195. package/dist/notion/read-posts.d.ts.map +1 -0
  196. package/dist/notion/read-posts.js +24 -0
  197. package/dist/notion/read-posts.js.map +1 -0
  198. package/dist/notion/reads.d.ts +327 -0
  199. package/dist/notion/reads.d.ts.map +1 -0
  200. package/dist/notion/reads.js +18 -0
  201. package/dist/notion/reads.js.map +1 -0
  202. package/dist/program.d.ts +6 -0
  203. package/dist/program.d.ts.map +1 -0
  204. package/dist/program.js +62 -0
  205. package/dist/program.js.map +1 -0
  206. package/dist/sample/comments.d.ts +61 -0
  207. package/dist/sample/comments.d.ts.map +1 -0
  208. package/dist/sample/comments.js +39 -0
  209. package/dist/sample/comments.js.map +1 -0
  210. package/dist/sample/records.d.ts +16 -0
  211. package/dist/sample/records.d.ts.map +1 -0
  212. package/dist/sample/records.js +22 -0
  213. package/dist/sample/records.js.map +1 -0
  214. package/dist/sample/transport.d.ts +42 -0
  215. package/dist/sample/transport.d.ts.map +1 -0
  216. package/dist/sample/transport.js +153 -0
  217. package/dist/sample/transport.js.map +1 -0
  218. package/dist/sync/cursor.d.ts +54 -0
  219. package/dist/sync/cursor.d.ts.map +1 -0
  220. package/dist/sync/cursor.js +52 -0
  221. package/dist/sync/cursor.js.map +1 -0
  222. package/dist/sync/front-matter.d.ts +10 -0
  223. package/dist/sync/front-matter.d.ts.map +1 -0
  224. package/dist/sync/front-matter.js +114 -0
  225. package/dist/sync/front-matter.js.map +1 -0
  226. package/dist/sync/markdown.d.ts +8 -0
  227. package/dist/sync/markdown.d.ts.map +1 -0
  228. package/dist/sync/markdown.js +40 -0
  229. package/dist/sync/markdown.js.map +1 -0
  230. package/dist/sync/source.d.ts +64 -0
  231. package/dist/sync/source.d.ts.map +1 -0
  232. package/dist/sync/source.js +634 -0
  233. package/dist/sync/source.js.map +1 -0
  234. package/dist/version.d.ts +2 -0
  235. package/dist/version.d.ts.map +1 -0
  236. package/dist/version.js +2 -0
  237. package/dist/version.js.map +1 -0
  238. package/dist/wcat.d.ts +3 -0
  239. package/dist/wcat.d.ts.map +1 -0
  240. package/dist/wcat.js +4 -0
  241. package/dist/wcat.js.map +1 -0
  242. package/package.json +85 -4
  243. package/skills/notion-cli/SKILL.md +34 -0
@@ -0,0 +1,2089 @@
1
+ // GENERATED. DO NOT EDIT.
2
+ // Source: spec/notion/openapi.json, verified by provenance.json
3
+ // Run: pnpm generate
4
+ export const operations = [
5
+ {
6
+ id: "get-self",
7
+ command: "get-self",
8
+ binding: {
9
+ kind: "http",
10
+ method: "GET",
11
+ path: "/v1/users/me",
12
+ },
13
+ effect: "read",
14
+ summary: "Retrieve your token's bot user",
15
+ tags: ["Users"],
16
+ parameters: [],
17
+ response: {
18
+ confidence: "contract",
19
+ schema: "UserObjectResponse",
20
+ },
21
+ },
22
+ {
23
+ id: "get-user",
24
+ command: "get-user",
25
+ binding: {
26
+ kind: "http",
27
+ method: "GET",
28
+ path: "/v1/users/{user_id}",
29
+ },
30
+ effect: "read",
31
+ summary: "Retrieve a user",
32
+ tags: ["Users"],
33
+ parameters: [
34
+ {
35
+ name: "user_id",
36
+ in: "path",
37
+ required: true,
38
+ schema: {
39
+ description: "The ID of the user or bot to retrieve.",
40
+ type: "ref",
41
+ ref: "idRequest",
42
+ },
43
+ },
44
+ ],
45
+ response: {
46
+ confidence: "contract",
47
+ schema: "UserObjectResponse",
48
+ },
49
+ },
50
+ {
51
+ id: "get-users",
52
+ command: "get-users",
53
+ binding: {
54
+ kind: "http",
55
+ method: "GET",
56
+ path: "/v1/users",
57
+ },
58
+ effect: "read",
59
+ summary: "List all users",
60
+ tags: ["Users"],
61
+ parameters: [
62
+ {
63
+ name: "start_cursor",
64
+ in: "query",
65
+ required: false,
66
+ schema: {
67
+ type: "string",
68
+ },
69
+ },
70
+ {
71
+ name: "page_size",
72
+ in: "query",
73
+ required: false,
74
+ schema: {
75
+ type: "number",
76
+ },
77
+ },
78
+ ],
79
+ response: {
80
+ confidence: "contract",
81
+ schema: "GetUsersResponse",
82
+ },
83
+ },
84
+ {
85
+ id: "post-page",
86
+ command: "post-page",
87
+ binding: {
88
+ kind: "http",
89
+ method: "POST",
90
+ path: "/v1/pages",
91
+ },
92
+ effect: "write",
93
+ summary: "Create a page",
94
+ tags: ["Pages"],
95
+ parameters: [
96
+ {
97
+ name: "filter_properties",
98
+ in: "query",
99
+ required: false,
100
+ schema: {
101
+ description: "Property names or IDs to include in each page's `properties` object. Other properties are left out. Repeat the parameter to pass more than one value, for example `filter_properties=title&filter_properties=Status`. Pages that aren't in a data source always return only `title`.",
102
+ type: "array",
103
+ items: {
104
+ type: "string",
105
+ },
106
+ },
107
+ },
108
+ ],
109
+ request: {
110
+ required: true,
111
+ confidence: "contract",
112
+ schema: "PostPageRequest",
113
+ },
114
+ response: {
115
+ confidence: "contract",
116
+ schema: "PostPageResponse",
117
+ },
118
+ },
119
+ {
120
+ id: "retrieve-a-page",
121
+ command: "retrieve-a-page",
122
+ binding: {
123
+ kind: "http",
124
+ method: "GET",
125
+ path: "/v1/pages/{page_id}",
126
+ },
127
+ effect: "read",
128
+ summary: "Retrieve a page",
129
+ tags: ["Pages"],
130
+ parameters: [
131
+ {
132
+ name: "page_id",
133
+ in: "path",
134
+ required: true,
135
+ schema: {
136
+ description: "The ID of the page to retrieve.",
137
+ type: "ref",
138
+ ref: "idRequest",
139
+ },
140
+ },
141
+ {
142
+ name: "filter_properties",
143
+ in: "query",
144
+ required: false,
145
+ schema: {
146
+ description: "Property names or IDs to include in each page's `properties` object. Other properties are left out. Repeat the parameter to pass more than one value, for example `filter_properties=title&filter_properties=Status`. Pages that aren't in a data source always return only `title`.",
147
+ type: "array",
148
+ items: {
149
+ type: "string",
150
+ },
151
+ maxItems: 100,
152
+ },
153
+ },
154
+ ],
155
+ response: {
156
+ confidence: "contract",
157
+ schema: "RetrieveAPageResponse",
158
+ },
159
+ },
160
+ {
161
+ id: "patch-page",
162
+ command: "patch-page",
163
+ binding: {
164
+ kind: "http",
165
+ method: "PATCH",
166
+ path: "/v1/pages/{page_id}",
167
+ },
168
+ effect: "write",
169
+ summary: "Update page",
170
+ tags: ["Pages"],
171
+ parameters: [
172
+ {
173
+ name: "page_id",
174
+ in: "path",
175
+ required: true,
176
+ schema: {
177
+ type: "ref",
178
+ ref: "idRequest",
179
+ },
180
+ },
181
+ {
182
+ name: "filter_properties",
183
+ in: "query",
184
+ required: false,
185
+ schema: {
186
+ description: "Property names or IDs to include in each page's `properties` object. Other properties are left out. Repeat the parameter to pass more than one value, for example `filter_properties=title&filter_properties=Status`. Pages that aren't in a data source always return only `title`.",
187
+ type: "array",
188
+ items: {
189
+ type: "string",
190
+ },
191
+ },
192
+ },
193
+ ],
194
+ request: {
195
+ required: true,
196
+ confidence: "contract",
197
+ schema: "PatchPageRequest",
198
+ },
199
+ response: {
200
+ confidence: "contract",
201
+ schema: "PatchPageResponse",
202
+ },
203
+ },
204
+ {
205
+ id: "move-page",
206
+ command: "move-page",
207
+ binding: {
208
+ kind: "http",
209
+ method: "POST",
210
+ path: "/v1/pages/{page_id}/move",
211
+ },
212
+ effect: "write",
213
+ summary: "Move a page",
214
+ tags: ["Pages"],
215
+ parameters: [
216
+ {
217
+ name: "page_id",
218
+ in: "path",
219
+ required: true,
220
+ schema: {
221
+ description: "The ID of the page to move.",
222
+ type: "ref",
223
+ ref: "idRequest",
224
+ },
225
+ },
226
+ ],
227
+ request: {
228
+ required: true,
229
+ confidence: "contract",
230
+ schema: "MovePageRequest",
231
+ },
232
+ response: {
233
+ confidence: "contract",
234
+ schema: "MovePageResponse",
235
+ },
236
+ },
237
+ {
238
+ id: "retrieve-a-page-property",
239
+ command: "retrieve-a-page-property",
240
+ binding: {
241
+ kind: "http",
242
+ method: "GET",
243
+ path: "/v1/pages/{page_id}/properties/{property_id}",
244
+ },
245
+ effect: "read",
246
+ summary: "Retrieve a page property item",
247
+ tags: ["Pages"],
248
+ parameters: [
249
+ {
250
+ name: "page_id",
251
+ in: "path",
252
+ required: true,
253
+ schema: {
254
+ description: "The ID of the page containing the property.",
255
+ type: "ref",
256
+ ref: "idRequest",
257
+ },
258
+ },
259
+ {
260
+ name: "property_id",
261
+ in: "path",
262
+ required: true,
263
+ schema: {
264
+ description: "The ID or name of the property to retrieve.",
265
+ type: "string",
266
+ },
267
+ },
268
+ {
269
+ name: "start_cursor",
270
+ in: "query",
271
+ required: false,
272
+ schema: {
273
+ type: "string",
274
+ },
275
+ },
276
+ {
277
+ name: "page_size",
278
+ in: "query",
279
+ required: false,
280
+ schema: {
281
+ type: "integer",
282
+ },
283
+ },
284
+ ],
285
+ response: {
286
+ confidence: "contract",
287
+ schema: "RetrieveAPagePropertyResponse",
288
+ },
289
+ },
290
+ {
291
+ id: "retrieve-page-markdown",
292
+ command: "retrieve-page-markdown",
293
+ binding: {
294
+ kind: "http",
295
+ method: "GET",
296
+ path: "/v1/pages/{page_id}/markdown",
297
+ },
298
+ effect: "read",
299
+ summary: "Retrieve a page as markdown",
300
+ tags: ["Pages"],
301
+ parameters: [
302
+ {
303
+ name: "page_id",
304
+ in: "path",
305
+ required: true,
306
+ schema: {
307
+ description: "The ID of the page (or block) to retrieve as markdown. Non-navigable block IDs from truncated responses can be passed here to fetch their subtrees.",
308
+ type: "ref",
309
+ ref: "idRequest",
310
+ },
311
+ },
312
+ {
313
+ name: "include_transcript",
314
+ in: "query",
315
+ required: false,
316
+ schema: {
317
+ description: "Whether to include meeting note transcripts. Defaults to false. When true, full transcripts are included; when false, a placeholder with the meeting note URL is shown instead.",
318
+ type: "boolean",
319
+ },
320
+ },
321
+ {
322
+ name: "markdown_version",
323
+ in: "query",
324
+ required: false,
325
+ schema: {
326
+ description: "The Markdown syntax to use. `v2` is [Notion-flavored Markdown](/guides/data-apis/notion-flavored-markdown) and is recommended. `v1` is enhanced markdown. It's deprecated. It's the default on current Notion-Versions. The next Notion-Version rejects `v1` with a `400` `validation_error`.",
327
+ type: "string",
328
+ enum: ["v1", "v2"],
329
+ },
330
+ },
331
+ ],
332
+ response: {
333
+ confidence: "contract",
334
+ schema: "PageMarkdownResponse",
335
+ },
336
+ },
337
+ {
338
+ id: "update-page-markdown",
339
+ command: "update-page-markdown",
340
+ binding: {
341
+ kind: "http",
342
+ method: "PATCH",
343
+ path: "/v1/pages/{page_id}/markdown",
344
+ },
345
+ effect: "write",
346
+ summary: "Update a page's content as markdown",
347
+ tags: ["Pages"],
348
+ parameters: [
349
+ {
350
+ name: "page_id",
351
+ in: "path",
352
+ required: true,
353
+ schema: {
354
+ description: "The ID of the page to update.",
355
+ type: "ref",
356
+ ref: "idRequest",
357
+ },
358
+ },
359
+ ],
360
+ request: {
361
+ required: true,
362
+ confidence: "contract",
363
+ schema: "UpdatePageMarkdownRequest",
364
+ },
365
+ response: {
366
+ confidence: "contract",
367
+ schema: "PageMarkdownResponse",
368
+ },
369
+ },
370
+ {
371
+ id: "retrieve-async-task",
372
+ command: "retrieve-async-task",
373
+ binding: {
374
+ kind: "http",
375
+ method: "GET",
376
+ path: "/v1/async_tasks/{task_id}",
377
+ },
378
+ effect: "read",
379
+ summary: "Retrieve an async task",
380
+ tags: ["Async tasks"],
381
+ parameters: [
382
+ {
383
+ name: "task_id",
384
+ in: "path",
385
+ required: true,
386
+ schema: {
387
+ description: "The ID of the async task to retrieve.",
388
+ type: "string",
389
+ minLength: 1,
390
+ },
391
+ },
392
+ ],
393
+ response: {
394
+ confidence: "contract",
395
+ schema: "RetrieveAsyncTaskResponse",
396
+ },
397
+ },
398
+ {
399
+ id: "retrieve-a-block",
400
+ command: "retrieve-a-block",
401
+ binding: {
402
+ kind: "http",
403
+ method: "GET",
404
+ path: "/v1/blocks/{block_id}",
405
+ },
406
+ effect: "read",
407
+ summary: "Retrieve a block",
408
+ tags: ["Blocks"],
409
+ parameters: [
410
+ {
411
+ name: "block_id",
412
+ in: "path",
413
+ required: true,
414
+ schema: {
415
+ type: "ref",
416
+ ref: "idRequest",
417
+ },
418
+ },
419
+ ],
420
+ response: {
421
+ confidence: "contract",
422
+ schema: "RetrieveABlockResponse",
423
+ },
424
+ },
425
+ {
426
+ id: "update-a-block",
427
+ command: "update-a-block",
428
+ binding: {
429
+ kind: "http",
430
+ method: "PATCH",
431
+ path: "/v1/blocks/{block_id}",
432
+ },
433
+ effect: "write",
434
+ summary: "Update a block",
435
+ tags: ["Blocks"],
436
+ parameters: [
437
+ {
438
+ name: "block_id",
439
+ in: "path",
440
+ required: true,
441
+ schema: {
442
+ type: "ref",
443
+ ref: "idRequest",
444
+ },
445
+ },
446
+ ],
447
+ request: {
448
+ required: true,
449
+ confidence: "contract",
450
+ schema: "UpdateABlockRequest",
451
+ },
452
+ response: {
453
+ confidence: "contract",
454
+ schema: "UpdateABlockResponse",
455
+ },
456
+ },
457
+ {
458
+ id: "delete-a-block",
459
+ command: "delete-a-block",
460
+ binding: {
461
+ kind: "http",
462
+ method: "DELETE",
463
+ path: "/v1/blocks/{block_id}",
464
+ },
465
+ effect: "destructive",
466
+ summary: "Delete a block",
467
+ tags: ["Blocks"],
468
+ parameters: [
469
+ {
470
+ name: "block_id",
471
+ in: "path",
472
+ required: true,
473
+ schema: {
474
+ type: "ref",
475
+ ref: "idRequest",
476
+ },
477
+ },
478
+ ],
479
+ response: {
480
+ confidence: "contract",
481
+ schema: "DeleteABlockResponse",
482
+ },
483
+ },
484
+ {
485
+ id: "get-block-children",
486
+ command: "get-block-children",
487
+ binding: {
488
+ kind: "http",
489
+ method: "GET",
490
+ path: "/v1/blocks/{block_id}/children",
491
+ },
492
+ effect: "read",
493
+ summary: "Retrieve block children",
494
+ tags: ["Blocks"],
495
+ parameters: [
496
+ {
497
+ name: "block_id",
498
+ in: "path",
499
+ required: true,
500
+ schema: {
501
+ type: "ref",
502
+ ref: "idRequest",
503
+ },
504
+ },
505
+ {
506
+ name: "start_cursor",
507
+ in: "query",
508
+ required: false,
509
+ schema: {
510
+ type: "string",
511
+ },
512
+ },
513
+ {
514
+ name: "page_size",
515
+ in: "query",
516
+ required: false,
517
+ schema: {
518
+ type: "number",
519
+ },
520
+ },
521
+ ],
522
+ response: {
523
+ confidence: "contract",
524
+ schema: "GetBlockChildrenResponse",
525
+ },
526
+ },
527
+ {
528
+ id: "patch-block-children",
529
+ command: "patch-block-children",
530
+ binding: {
531
+ kind: "http",
532
+ method: "PATCH",
533
+ path: "/v1/blocks/{block_id}/children",
534
+ },
535
+ effect: "write",
536
+ summary: "Append block children",
537
+ tags: ["Blocks"],
538
+ parameters: [
539
+ {
540
+ name: "block_id",
541
+ in: "path",
542
+ required: true,
543
+ schema: {
544
+ type: "ref",
545
+ ref: "idRequest",
546
+ },
547
+ },
548
+ ],
549
+ request: {
550
+ required: true,
551
+ confidence: "contract",
552
+ schema: "PatchBlockChildrenRequest",
553
+ },
554
+ response: {
555
+ confidence: "contract",
556
+ schema: "PatchBlockChildrenResponse",
557
+ },
558
+ },
559
+ {
560
+ id: "retrieve-a-data-source",
561
+ command: "retrieve-a-data-source",
562
+ binding: {
563
+ kind: "http",
564
+ method: "GET",
565
+ path: "/v1/data_sources/{data_source_id}",
566
+ },
567
+ effect: "read",
568
+ summary: "Retrieve a data source",
569
+ tags: ["Data sources"],
570
+ parameters: [
571
+ {
572
+ name: "data_source_id",
573
+ in: "path",
574
+ required: true,
575
+ schema: {
576
+ description: "ID of a Notion data source.",
577
+ type: "ref",
578
+ ref: "idRequest",
579
+ },
580
+ },
581
+ ],
582
+ response: {
583
+ confidence: "contract",
584
+ schema: "RetrieveADataSourceResponse",
585
+ },
586
+ },
587
+ {
588
+ id: "update-a-data-source",
589
+ command: "update-a-data-source",
590
+ binding: {
591
+ kind: "http",
592
+ method: "PATCH",
593
+ path: "/v1/data_sources/{data_source_id}",
594
+ },
595
+ effect: "write",
596
+ summary: "Update a data source",
597
+ tags: ["Data sources"],
598
+ parameters: [
599
+ {
600
+ name: "data_source_id",
601
+ in: "path",
602
+ required: true,
603
+ schema: {
604
+ description: "ID of a Notion data source.",
605
+ type: "ref",
606
+ ref: "idRequest",
607
+ },
608
+ },
609
+ ],
610
+ request: {
611
+ required: true,
612
+ confidence: "contract",
613
+ schema: "UpdateADataSourceRequest",
614
+ },
615
+ response: {
616
+ confidence: "contract",
617
+ schema: "UpdateADataSourceResponse",
618
+ },
619
+ },
620
+ {
621
+ id: "post-database-query",
622
+ command: "post-database-query",
623
+ binding: {
624
+ kind: "http",
625
+ method: "POST",
626
+ path: "/v1/data_sources/{data_source_id}/query",
627
+ },
628
+ effect: "read",
629
+ summary: "Query a data source",
630
+ tags: ["Data sources"],
631
+ parameters: [
632
+ {
633
+ name: "data_source_id",
634
+ in: "path",
635
+ required: true,
636
+ schema: {
637
+ type: "ref",
638
+ ref: "idRequest",
639
+ },
640
+ },
641
+ {
642
+ name: "filter_properties",
643
+ in: "query",
644
+ required: false,
645
+ schema: {
646
+ description: "Property names or IDs to include in each page's `properties` object. Other properties are left out. Repeat the parameter to pass more than one value, for example `filter_properties=title&filter_properties=Status`. Pages that aren't in a data source always return only `title`.",
647
+ type: "array",
648
+ items: {
649
+ type: "string",
650
+ },
651
+ },
652
+ },
653
+ ],
654
+ request: {
655
+ required: true,
656
+ confidence: "contract",
657
+ schema: "PostDatabaseQueryRequest",
658
+ },
659
+ response: {
660
+ confidence: "contract",
661
+ schema: "PageOrDataSourceListResponse",
662
+ },
663
+ },
664
+ {
665
+ id: "create-a-database",
666
+ command: "create-a-database",
667
+ binding: {
668
+ kind: "http",
669
+ method: "POST",
670
+ path: "/v1/data_sources",
671
+ },
672
+ effect: "write",
673
+ summary: "Create a data source",
674
+ tags: ["Data sources"],
675
+ parameters: [],
676
+ request: {
677
+ required: true,
678
+ confidence: "contract",
679
+ schema: "CreateADatabaseRequest",
680
+ },
681
+ response: {
682
+ confidence: "contract",
683
+ schema: "CreateADatabaseResponse",
684
+ },
685
+ },
686
+ {
687
+ id: "list-data-source-templates",
688
+ command: "list-data-source-templates",
689
+ binding: {
690
+ kind: "http",
691
+ method: "GET",
692
+ path: "/v1/data_sources/{data_source_id}/templates",
693
+ },
694
+ effect: "read",
695
+ summary: "List templates in a data source",
696
+ tags: ["Data sources"],
697
+ parameters: [
698
+ {
699
+ name: "data_source_id",
700
+ in: "path",
701
+ required: true,
702
+ schema: {
703
+ description: "ID of a Notion data source.",
704
+ type: "ref",
705
+ ref: "idRequest",
706
+ },
707
+ },
708
+ {
709
+ name: "name",
710
+ in: "query",
711
+ required: false,
712
+ schema: {
713
+ description: "Filter templates by name (case-insensitive substring match).",
714
+ type: "string",
715
+ },
716
+ },
717
+ {
718
+ name: "start_cursor",
719
+ in: "query",
720
+ required: false,
721
+ schema: {
722
+ description: "If supplied, this endpoint will return a page of results starting after the cursor provided. If not supplied, this endpoint will return the first page of results.",
723
+ type: "string",
724
+ },
725
+ },
726
+ {
727
+ name: "page_size",
728
+ in: "query",
729
+ required: false,
730
+ schema: {
731
+ description: "The number of items from the full list desired in the response. Maximum: 100",
732
+ type: "integer",
733
+ minimum: 1,
734
+ maximum: 100,
735
+ },
736
+ },
737
+ ],
738
+ response: {
739
+ confidence: "contract",
740
+ schema: "ListDataSourceTemplatesResponse",
741
+ },
742
+ },
743
+ {
744
+ id: "retrieve-database",
745
+ command: "retrieve-database",
746
+ binding: {
747
+ kind: "http",
748
+ method: "GET",
749
+ path: "/v1/databases/{database_id}",
750
+ },
751
+ effect: "read",
752
+ summary: "Retrieve a database",
753
+ tags: ["Databases"],
754
+ parameters: [
755
+ {
756
+ name: "database_id",
757
+ in: "path",
758
+ required: true,
759
+ schema: {
760
+ description: "ID of a Notion database, a container for one or more data sources.",
761
+ type: "ref",
762
+ ref: "idRequest",
763
+ },
764
+ },
765
+ ],
766
+ response: {
767
+ confidence: "contract",
768
+ schema: "RetrieveDatabaseResponse",
769
+ },
770
+ },
771
+ {
772
+ id: "update-database",
773
+ command: "update-database",
774
+ binding: {
775
+ kind: "http",
776
+ method: "PATCH",
777
+ path: "/v1/databases/{database_id}",
778
+ },
779
+ effect: "write",
780
+ summary: "Update a database",
781
+ tags: ["Databases"],
782
+ parameters: [
783
+ {
784
+ name: "database_id",
785
+ in: "path",
786
+ required: true,
787
+ schema: {
788
+ description: "ID of a Notion database, a container for one or more data sources.",
789
+ type: "ref",
790
+ ref: "idRequest",
791
+ },
792
+ },
793
+ ],
794
+ request: {
795
+ required: true,
796
+ confidence: "contract",
797
+ schema: "UpdateDatabaseRequest",
798
+ },
799
+ response: {
800
+ confidence: "contract",
801
+ schema: "UpdateDatabaseResponse",
802
+ },
803
+ },
804
+ {
805
+ id: "create-database",
806
+ command: "create-database",
807
+ binding: {
808
+ kind: "http",
809
+ method: "POST",
810
+ path: "/v1/databases",
811
+ },
812
+ effect: "write",
813
+ summary: "Create a database",
814
+ tags: ["Databases"],
815
+ parameters: [],
816
+ request: {
817
+ required: true,
818
+ confidence: "contract",
819
+ schema: "CreateDatabaseRequest",
820
+ },
821
+ response: {
822
+ confidence: "contract",
823
+ schema: "CreateDatabaseResponse",
824
+ },
825
+ },
826
+ {
827
+ id: "post-search",
828
+ command: "post-search",
829
+ binding: {
830
+ kind: "http",
831
+ method: "POST",
832
+ path: "/v1/search",
833
+ },
834
+ effect: "read",
835
+ summary: "Search by title",
836
+ tags: ["Search"],
837
+ parameters: [
838
+ {
839
+ name: "filter_properties",
840
+ in: "query",
841
+ required: false,
842
+ schema: {
843
+ description: "Property names or IDs to include in each page's `properties` object. Other properties are left out. Repeat the parameter to pass more than one value, for example `filter_properties=title&filter_properties=Status`. Pages that aren't in a data source always return only `title`. Search skips names or IDs that don't exist on a page.",
844
+ type: "array",
845
+ items: {
846
+ type: "string",
847
+ },
848
+ },
849
+ },
850
+ ],
851
+ request: {
852
+ required: true,
853
+ confidence: "contract",
854
+ schema: "PostSearchRequest",
855
+ },
856
+ response: {
857
+ confidence: "contract",
858
+ schema: "PageOrDataSourceListResponse",
859
+ },
860
+ },
861
+ {
862
+ id: "list-comments",
863
+ command: "list-comments",
864
+ binding: {
865
+ kind: "http",
866
+ method: "GET",
867
+ path: "/v1/comments",
868
+ },
869
+ effect: "read",
870
+ summary: "List comments",
871
+ tags: ["Comments"],
872
+ parameters: [
873
+ {
874
+ name: "block_id",
875
+ in: "query",
876
+ required: true,
877
+ schema: {
878
+ description: "Identifier for a Notion block or page.",
879
+ type: "ref",
880
+ ref: "idRequest",
881
+ },
882
+ },
883
+ {
884
+ name: "start_cursor",
885
+ in: "query",
886
+ required: false,
887
+ schema: {
888
+ description: "If supplied, this endpoint will return a page of results starting after the cursor provided. If not supplied, this endpoint will return the first page of results.",
889
+ type: "string",
890
+ },
891
+ },
892
+ {
893
+ name: "page_size",
894
+ in: "query",
895
+ required: false,
896
+ schema: {
897
+ description: "The number of items from the full list desired in the response. Maximum: 100",
898
+ type: "integer",
899
+ minimum: 1,
900
+ maximum: 100,
901
+ },
902
+ },
903
+ ],
904
+ response: {
905
+ confidence: "contract",
906
+ schema: "ListCommentsResponse",
907
+ },
908
+ },
909
+ {
910
+ id: "create-a-comment",
911
+ command: "create-a-comment",
912
+ binding: {
913
+ kind: "http",
914
+ method: "POST",
915
+ path: "/v1/comments",
916
+ },
917
+ effect: "write",
918
+ summary: "Create a comment",
919
+ tags: ["Comments"],
920
+ parameters: [],
921
+ request: {
922
+ required: true,
923
+ confidence: "contract",
924
+ schema: "CreateACommentRequest",
925
+ },
926
+ response: {
927
+ confidence: "contract",
928
+ schema: "CreateACommentResponse",
929
+ },
930
+ },
931
+ {
932
+ id: "retrieve-comment",
933
+ command: "retrieve-comment",
934
+ binding: {
935
+ kind: "http",
936
+ method: "GET",
937
+ path: "/v1/comments/{comment_id}",
938
+ },
939
+ effect: "read",
940
+ summary: "Retrieve a comment",
941
+ tags: ["Comments"],
942
+ parameters: [
943
+ {
944
+ name: "comment_id",
945
+ in: "path",
946
+ required: true,
947
+ schema: {
948
+ description: "The ID of the comment to retrieve.",
949
+ type: "ref",
950
+ ref: "idRequest",
951
+ },
952
+ },
953
+ ],
954
+ response: {
955
+ confidence: "contract",
956
+ schema: "RetrieveCommentResponse",
957
+ },
958
+ },
959
+ {
960
+ id: "update-a-comment",
961
+ command: "update-a-comment",
962
+ binding: {
963
+ kind: "http",
964
+ method: "PATCH",
965
+ path: "/v1/comments/{comment_id}",
966
+ },
967
+ effect: "write",
968
+ summary: "Update a comment",
969
+ tags: ["Comments"],
970
+ parameters: [
971
+ {
972
+ name: "comment_id",
973
+ in: "path",
974
+ required: true,
975
+ schema: {
976
+ description: "The ID of the comment to update.",
977
+ type: "ref",
978
+ ref: "idRequest",
979
+ },
980
+ },
981
+ ],
982
+ request: {
983
+ required: true,
984
+ confidence: "contract",
985
+ schema: "UpdateACommentRequest",
986
+ },
987
+ response: {
988
+ confidence: "contract",
989
+ schema: "UpdateACommentResponse",
990
+ },
991
+ },
992
+ {
993
+ id: "delete-a-comment",
994
+ command: "delete-a-comment",
995
+ binding: {
996
+ kind: "http",
997
+ method: "DELETE",
998
+ path: "/v1/comments/{comment_id}",
999
+ },
1000
+ effect: "destructive",
1001
+ summary: "Delete a comment",
1002
+ tags: ["Comments"],
1003
+ parameters: [
1004
+ {
1005
+ name: "comment_id",
1006
+ in: "path",
1007
+ required: true,
1008
+ schema: {
1009
+ description: "The ID of the comment to delete.",
1010
+ type: "ref",
1011
+ ref: "idRequest",
1012
+ },
1013
+ },
1014
+ ],
1015
+ response: {
1016
+ confidence: "contract",
1017
+ schema: "DeleteACommentResponse",
1018
+ },
1019
+ },
1020
+ {
1021
+ id: "list-file-uploads",
1022
+ command: "list-file-uploads",
1023
+ binding: {
1024
+ kind: "http",
1025
+ method: "GET",
1026
+ path: "/v1/file_uploads",
1027
+ },
1028
+ effect: "read",
1029
+ summary: "List file uploads",
1030
+ tags: ["File uploads"],
1031
+ parameters: [
1032
+ {
1033
+ name: "status",
1034
+ in: "query",
1035
+ required: false,
1036
+ schema: {
1037
+ description: "If supplied, the endpoint will return file uploads with the specified status.",
1038
+ type: "string",
1039
+ enum: ["pending", "uploaded", "expired", "failed"],
1040
+ },
1041
+ },
1042
+ {
1043
+ name: "start_cursor",
1044
+ in: "query",
1045
+ required: false,
1046
+ schema: {
1047
+ description: "If supplied, this endpoint will return a page of results starting after the cursor provided. If not supplied, this endpoint will return the first page of results.",
1048
+ type: "string",
1049
+ },
1050
+ },
1051
+ {
1052
+ name: "page_size",
1053
+ in: "query",
1054
+ required: false,
1055
+ schema: {
1056
+ description: "The number of items from the full list desired in the response. Maximum: 100",
1057
+ type: "integer",
1058
+ minimum: 1,
1059
+ maximum: 100,
1060
+ },
1061
+ },
1062
+ ],
1063
+ response: {
1064
+ confidence: "contract",
1065
+ schema: "ListFileUploadsResponse",
1066
+ },
1067
+ },
1068
+ {
1069
+ id: "create-file",
1070
+ command: "create-file",
1071
+ binding: {
1072
+ kind: "http",
1073
+ method: "POST",
1074
+ path: "/v1/file_uploads",
1075
+ },
1076
+ effect: "write",
1077
+ summary: "Create a file upload",
1078
+ tags: ["File uploads"],
1079
+ parameters: [],
1080
+ request: {
1081
+ required: true,
1082
+ confidence: "contract",
1083
+ schema: "CreateFileRequest",
1084
+ },
1085
+ response: {
1086
+ confidence: "contract",
1087
+ schema: "FileUploadObjectResponse",
1088
+ },
1089
+ },
1090
+ {
1091
+ id: "complete-file-upload",
1092
+ command: "complete-file-upload",
1093
+ binding: {
1094
+ kind: "http",
1095
+ method: "POST",
1096
+ path: "/v1/file_uploads/{file_upload_id}/complete",
1097
+ },
1098
+ effect: "write",
1099
+ summary: "Complete a multi-part file upload",
1100
+ tags: ["File uploads"],
1101
+ parameters: [
1102
+ {
1103
+ name: "file_upload_id",
1104
+ in: "path",
1105
+ required: true,
1106
+ schema: {
1107
+ description: "Identifier for a Notion file upload object.",
1108
+ type: "ref",
1109
+ ref: "idRequest",
1110
+ },
1111
+ },
1112
+ ],
1113
+ response: {
1114
+ confidence: "contract",
1115
+ schema: "FileUploadObjectResponse",
1116
+ },
1117
+ },
1118
+ {
1119
+ id: "retrieve-file-upload",
1120
+ command: "retrieve-file-upload",
1121
+ binding: {
1122
+ kind: "http",
1123
+ method: "GET",
1124
+ path: "/v1/file_uploads/{file_upload_id}",
1125
+ },
1126
+ effect: "read",
1127
+ summary: "Retrieve a file upload",
1128
+ tags: ["File uploads"],
1129
+ parameters: [
1130
+ {
1131
+ name: "file_upload_id",
1132
+ in: "path",
1133
+ required: true,
1134
+ schema: {
1135
+ description: "Identifier for a Notion file upload object.",
1136
+ type: "ref",
1137
+ ref: "idRequest",
1138
+ },
1139
+ },
1140
+ ],
1141
+ response: {
1142
+ confidence: "contract",
1143
+ schema: "FileUploadObjectResponse",
1144
+ },
1145
+ },
1146
+ {
1147
+ id: "list-custom-emojis",
1148
+ command: "list-custom-emojis",
1149
+ binding: {
1150
+ kind: "http",
1151
+ method: "GET",
1152
+ path: "/v1/custom_emojis",
1153
+ },
1154
+ effect: "read",
1155
+ summary: "List custom emojis",
1156
+ tags: ["Custom emojis"],
1157
+ parameters: [
1158
+ {
1159
+ name: "start_cursor",
1160
+ in: "query",
1161
+ required: false,
1162
+ schema: {
1163
+ description: "If supplied, this endpoint will return a page of results starting after the cursor provided. If not supplied, this endpoint will return the first page of results.",
1164
+ type: "string",
1165
+ },
1166
+ },
1167
+ {
1168
+ name: "page_size",
1169
+ in: "query",
1170
+ required: false,
1171
+ schema: {
1172
+ description: "The number of items from the full list desired in the response. Maximum: 100",
1173
+ type: "integer",
1174
+ minimum: 1,
1175
+ maximum: 100,
1176
+ },
1177
+ },
1178
+ {
1179
+ name: "name",
1180
+ in: "query",
1181
+ required: false,
1182
+ schema: {
1183
+ description: "If supplied, filters custom emojis by exact name match. Useful for resolving a custom emoji name to its ID.",
1184
+ type: "string",
1185
+ },
1186
+ },
1187
+ ],
1188
+ response: {
1189
+ confidence: "contract",
1190
+ schema: "ListCustomEmojisResponse",
1191
+ },
1192
+ },
1193
+ {
1194
+ id: "list-views",
1195
+ command: "list-views",
1196
+ binding: {
1197
+ kind: "http",
1198
+ method: "GET",
1199
+ path: "/v1/views",
1200
+ },
1201
+ effect: "read",
1202
+ summary: "List views",
1203
+ tags: ["Views"],
1204
+ parameters: [
1205
+ {
1206
+ name: "database_id",
1207
+ in: "query",
1208
+ required: false,
1209
+ schema: {
1210
+ description: "ID of a Notion database (collection view block) to list views for. At least one of database_id or data_source_id is required.",
1211
+ type: "ref",
1212
+ ref: "idRequest",
1213
+ },
1214
+ },
1215
+ {
1216
+ name: "data_source_id",
1217
+ in: "query",
1218
+ required: false,
1219
+ schema: {
1220
+ description: "ID of a data source (collection) to list all views for, including linked views across the workspace. At least one of database_id or data_source_id is required.",
1221
+ type: "ref",
1222
+ ref: "idRequest",
1223
+ },
1224
+ },
1225
+ {
1226
+ name: "start_cursor",
1227
+ in: "query",
1228
+ required: false,
1229
+ schema: {
1230
+ description: "If supplied, this endpoint will return a page of results starting after the cursor provided. If not supplied, this endpoint will return the first page of results.",
1231
+ type: "string",
1232
+ },
1233
+ },
1234
+ {
1235
+ name: "page_size",
1236
+ in: "query",
1237
+ required: false,
1238
+ schema: {
1239
+ description: "The number of items from the full list desired in the response. Maximum: 100",
1240
+ type: "integer",
1241
+ minimum: 1,
1242
+ maximum: 100,
1243
+ },
1244
+ },
1245
+ ],
1246
+ response: {
1247
+ confidence: "contract",
1248
+ schema: "ListViewsResponse",
1249
+ },
1250
+ },
1251
+ {
1252
+ id: "create-view",
1253
+ command: "create-view",
1254
+ binding: {
1255
+ kind: "http",
1256
+ method: "POST",
1257
+ path: "/v1/views",
1258
+ },
1259
+ effect: "write",
1260
+ summary: "Create a view",
1261
+ tags: ["Views"],
1262
+ parameters: [],
1263
+ request: {
1264
+ required: true,
1265
+ confidence: "contract",
1266
+ schema: "CreateViewRequest",
1267
+ },
1268
+ response: {
1269
+ confidence: "contract",
1270
+ schema: "CreateViewResponse",
1271
+ },
1272
+ },
1273
+ {
1274
+ id: "retrieve-a-view",
1275
+ command: "retrieve-a-view",
1276
+ binding: {
1277
+ kind: "http",
1278
+ method: "GET",
1279
+ path: "/v1/views/{view_id}",
1280
+ },
1281
+ effect: "read",
1282
+ summary: "Retrieve a view",
1283
+ tags: ["Views"],
1284
+ parameters: [
1285
+ {
1286
+ name: "view_id",
1287
+ in: "path",
1288
+ required: true,
1289
+ schema: {
1290
+ description: "ID of a Notion view.",
1291
+ type: "ref",
1292
+ ref: "idRequest",
1293
+ },
1294
+ },
1295
+ ],
1296
+ response: {
1297
+ confidence: "contract",
1298
+ schema: "RetrieveAViewResponse",
1299
+ },
1300
+ },
1301
+ {
1302
+ id: "update-a-view",
1303
+ command: "update-a-view",
1304
+ binding: {
1305
+ kind: "http",
1306
+ method: "PATCH",
1307
+ path: "/v1/views/{view_id}",
1308
+ },
1309
+ effect: "write",
1310
+ summary: "Update a view",
1311
+ tags: ["Views"],
1312
+ parameters: [
1313
+ {
1314
+ name: "view_id",
1315
+ in: "path",
1316
+ required: true,
1317
+ schema: {
1318
+ description: "ID of a Notion view.",
1319
+ type: "ref",
1320
+ ref: "idRequest",
1321
+ },
1322
+ },
1323
+ ],
1324
+ request: {
1325
+ required: true,
1326
+ confidence: "contract",
1327
+ schema: "UpdateViewRequest",
1328
+ },
1329
+ response: {
1330
+ confidence: "contract",
1331
+ schema: "UpdateAViewResponse",
1332
+ },
1333
+ },
1334
+ {
1335
+ id: "delete-view",
1336
+ command: "delete-view",
1337
+ binding: {
1338
+ kind: "http",
1339
+ method: "DELETE",
1340
+ path: "/v1/views/{view_id}",
1341
+ },
1342
+ effect: "destructive",
1343
+ summary: "Delete a view",
1344
+ tags: ["Views"],
1345
+ parameters: [
1346
+ {
1347
+ name: "view_id",
1348
+ in: "path",
1349
+ required: true,
1350
+ schema: {
1351
+ description: "The ID of the view to delete.",
1352
+ type: "ref",
1353
+ ref: "idRequest",
1354
+ },
1355
+ },
1356
+ ],
1357
+ response: {
1358
+ confidence: "contract",
1359
+ schema: "PartialDataSourceViewObjectResponse",
1360
+ },
1361
+ },
1362
+ {
1363
+ id: "create-view-query",
1364
+ command: "create-view-query",
1365
+ binding: {
1366
+ kind: "http",
1367
+ method: "POST",
1368
+ path: "/v1/views/{view_id}/queries",
1369
+ },
1370
+ effect: "read",
1371
+ summary: "Create a view query",
1372
+ tags: ["Views"],
1373
+ parameters: [
1374
+ {
1375
+ name: "view_id",
1376
+ in: "path",
1377
+ required: true,
1378
+ schema: {
1379
+ description: "The ID of the view.",
1380
+ type: "ref",
1381
+ ref: "idRequest",
1382
+ },
1383
+ },
1384
+ ],
1385
+ request: {
1386
+ required: true,
1387
+ confidence: "contract",
1388
+ schema: "CreateViewQueryRequest",
1389
+ },
1390
+ response: {
1391
+ confidence: "contract",
1392
+ schema: "ViewQueryResponse",
1393
+ },
1394
+ },
1395
+ {
1396
+ id: "get-view-query-results",
1397
+ command: "get-view-query-results",
1398
+ binding: {
1399
+ kind: "http",
1400
+ method: "GET",
1401
+ path: "/v1/views/{view_id}/queries/{query_id}",
1402
+ },
1403
+ effect: "read",
1404
+ summary: "Get view query results",
1405
+ tags: ["Views"],
1406
+ parameters: [
1407
+ {
1408
+ name: "view_id",
1409
+ in: "path",
1410
+ required: true,
1411
+ schema: {
1412
+ description: "The ID of the view.",
1413
+ type: "ref",
1414
+ ref: "idRequest",
1415
+ },
1416
+ },
1417
+ {
1418
+ name: "query_id",
1419
+ in: "path",
1420
+ required: true,
1421
+ schema: {
1422
+ description: "The ID of the query.",
1423
+ type: "ref",
1424
+ ref: "idRequest",
1425
+ },
1426
+ },
1427
+ {
1428
+ name: "start_cursor",
1429
+ in: "query",
1430
+ required: false,
1431
+ schema: {
1432
+ description: "If supplied, this endpoint will return a page of results starting after the cursor provided.",
1433
+ type: "string",
1434
+ },
1435
+ },
1436
+ {
1437
+ name: "page_size",
1438
+ in: "query",
1439
+ required: false,
1440
+ schema: {
1441
+ description: "The number of results to return per page. Maximum: 100",
1442
+ type: "integer",
1443
+ minimum: 1,
1444
+ maximum: 100,
1445
+ },
1446
+ },
1447
+ ],
1448
+ response: {
1449
+ confidence: "contract",
1450
+ schema: "GetViewQueryResultsResponse",
1451
+ },
1452
+ },
1453
+ {
1454
+ id: "delete-view-query",
1455
+ command: "delete-view-query",
1456
+ binding: {
1457
+ kind: "http",
1458
+ method: "DELETE",
1459
+ path: "/v1/views/{view_id}/queries/{query_id}",
1460
+ },
1461
+ effect: "destructive",
1462
+ summary: "Delete a view query",
1463
+ tags: ["Views"],
1464
+ parameters: [
1465
+ {
1466
+ name: "view_id",
1467
+ in: "path",
1468
+ required: true,
1469
+ schema: {
1470
+ description: "The ID of the view.",
1471
+ type: "ref",
1472
+ ref: "idRequest",
1473
+ },
1474
+ },
1475
+ {
1476
+ name: "query_id",
1477
+ in: "path",
1478
+ required: true,
1479
+ schema: {
1480
+ description: "The ID of the query.",
1481
+ type: "ref",
1482
+ ref: "idRequest",
1483
+ },
1484
+ },
1485
+ ],
1486
+ response: {
1487
+ confidence: "contract",
1488
+ schema: "DeletedViewQueryResponse",
1489
+ },
1490
+ },
1491
+ {
1492
+ id: "create-meeting-note",
1493
+ command: "create-meeting-note",
1494
+ binding: {
1495
+ kind: "http",
1496
+ method: "POST",
1497
+ path: "/v1/blocks/meeting_notes",
1498
+ },
1499
+ effect: "write",
1500
+ summary: "Create a meeting note",
1501
+ tags: ["Meeting notes"],
1502
+ parameters: [],
1503
+ request: {
1504
+ required: true,
1505
+ confidence: "contract",
1506
+ schema: "CreateMeetingNoteRequest",
1507
+ },
1508
+ response: {
1509
+ confidence: "contract",
1510
+ schema: "CreateMeetingNoteResponse",
1511
+ },
1512
+ },
1513
+ {
1514
+ id: "query-meeting-notes",
1515
+ command: "query-meeting-notes",
1516
+ binding: {
1517
+ kind: "http",
1518
+ method: "POST",
1519
+ path: "/v1/blocks/meeting_notes/query",
1520
+ },
1521
+ effect: "read",
1522
+ summary: "Query meeting notes",
1523
+ tags: ["Meeting notes"],
1524
+ parameters: [],
1525
+ request: {
1526
+ required: true,
1527
+ confidence: "contract",
1528
+ schema: "QueryMeetingNotesRequest",
1529
+ },
1530
+ response: {
1531
+ confidence: "contract",
1532
+ schema: "QueryMeetingNotesResponse",
1533
+ },
1534
+ },
1535
+ {
1536
+ id: "query-agents",
1537
+ command: "query-agents",
1538
+ binding: {
1539
+ kind: "http",
1540
+ method: "POST",
1541
+ path: "/v1/agents/query",
1542
+ },
1543
+ effect: "read",
1544
+ summary: "Query agents",
1545
+ tags: ["Agents"],
1546
+ parameters: [],
1547
+ request: {
1548
+ required: true,
1549
+ confidence: "contract",
1550
+ schema: "QueryAgentsRequest",
1551
+ },
1552
+ response: {
1553
+ confidence: "contract",
1554
+ schema: "QueryAgentsResponse",
1555
+ },
1556
+ },
1557
+ {
1558
+ id: "get-agent",
1559
+ command: "get-agent",
1560
+ binding: {
1561
+ kind: "http",
1562
+ method: "GET",
1563
+ path: "/v1/agents/{agent_id}",
1564
+ },
1565
+ effect: "read",
1566
+ summary: "Get agent",
1567
+ tags: ["Agents"],
1568
+ parameters: [
1569
+ {
1570
+ name: "agent_id",
1571
+ in: "path",
1572
+ required: true,
1573
+ schema: {
1574
+ description: "The agent ID (a UUID), or `notion_ai` for the personal agent. Endpoint-specific restrictions still apply.",
1575
+ type: "union",
1576
+ of: [
1577
+ {
1578
+ type: "ref",
1579
+ ref: "idRequest",
1580
+ },
1581
+ {
1582
+ description: "Always `notion_ai`",
1583
+ type: "string",
1584
+ enum: ["notion_ai"],
1585
+ },
1586
+ ],
1587
+ },
1588
+ },
1589
+ {
1590
+ name: "verbose",
1591
+ in: "query",
1592
+ required: false,
1593
+ schema: {
1594
+ description: "Whether to include the agent's inline instructions. Defaults to false.",
1595
+ type: "boolean",
1596
+ },
1597
+ },
1598
+ ],
1599
+ response: {
1600
+ confidence: "contract",
1601
+ schema: "GetAgentResponse",
1602
+ },
1603
+ },
1604
+ {
1605
+ id: "update-agent",
1606
+ command: "update-agent",
1607
+ binding: {
1608
+ kind: "http",
1609
+ method: "PATCH",
1610
+ path: "/v1/agents/{agent_id}",
1611
+ },
1612
+ effect: "write",
1613
+ summary: "Update agent",
1614
+ tags: ["Agents"],
1615
+ parameters: [
1616
+ {
1617
+ name: "agent_id",
1618
+ in: "path",
1619
+ required: true,
1620
+ schema: {
1621
+ description: "The agent ID (a UUID), or `notion_ai` for the personal agent. Endpoint-specific restrictions still apply.",
1622
+ type: "union",
1623
+ of: [
1624
+ {
1625
+ type: "ref",
1626
+ ref: "idRequest",
1627
+ },
1628
+ {
1629
+ description: "Always `notion_ai`",
1630
+ type: "string",
1631
+ enum: ["notion_ai"],
1632
+ },
1633
+ ],
1634
+ },
1635
+ },
1636
+ ],
1637
+ request: {
1638
+ required: true,
1639
+ confidence: "contract",
1640
+ schema: "UpdateAgentRequest",
1641
+ },
1642
+ response: {
1643
+ confidence: "contract",
1644
+ schema: "UpdateAgentResponse",
1645
+ },
1646
+ },
1647
+ {
1648
+ id: "delete-agent",
1649
+ command: "delete-agent",
1650
+ binding: {
1651
+ kind: "http",
1652
+ method: "DELETE",
1653
+ path: "/v1/agents/{agent_id}",
1654
+ },
1655
+ effect: "destructive",
1656
+ summary: "Delete agent",
1657
+ tags: ["Agents"],
1658
+ parameters: [
1659
+ {
1660
+ name: "agent_id",
1661
+ in: "path",
1662
+ required: true,
1663
+ schema: {
1664
+ description: "The agent ID (a UUID), or `notion_ai` for the personal agent. The personal agent cannot be deleted.",
1665
+ type: "union",
1666
+ of: [
1667
+ {
1668
+ type: "ref",
1669
+ ref: "idRequest",
1670
+ },
1671
+ {
1672
+ description: "Always `notion_ai`",
1673
+ type: "string",
1674
+ enum: ["notion_ai"],
1675
+ },
1676
+ ],
1677
+ },
1678
+ },
1679
+ ],
1680
+ response: {
1681
+ confidence: "contract",
1682
+ schema: "DeleteAgentResponse",
1683
+ },
1684
+ },
1685
+ {
1686
+ id: "get-agent-insights",
1687
+ command: "get-agent-insights",
1688
+ binding: {
1689
+ kind: "http",
1690
+ method: "GET",
1691
+ path: "/v1/agents/{agent_id}/insights",
1692
+ },
1693
+ effect: "read",
1694
+ summary: "Get agent insights",
1695
+ tags: ["Agents"],
1696
+ parameters: [
1697
+ {
1698
+ name: "agent_id",
1699
+ in: "path",
1700
+ required: true,
1701
+ schema: {
1702
+ description: "The agent ID (a UUID), or `notion_ai` for the personal agent. Endpoint-specific restrictions still apply.",
1703
+ type: "union",
1704
+ of: [
1705
+ {
1706
+ type: "ref",
1707
+ ref: "idRequest",
1708
+ },
1709
+ {
1710
+ description: "Always `notion_ai`",
1711
+ type: "string",
1712
+ enum: ["notion_ai"],
1713
+ },
1714
+ ],
1715
+ },
1716
+ },
1717
+ {
1718
+ name: "start_time",
1719
+ in: "query",
1720
+ required: false,
1721
+ schema: {
1722
+ description: "Start of the insights window, as an epoch timestamp in seconds. Must be supplied together with `end_time`; if either is omitted the window defaults to the current billing period.",
1723
+ type: "integer",
1724
+ minimum: 0,
1725
+ },
1726
+ },
1727
+ {
1728
+ name: "end_time",
1729
+ in: "query",
1730
+ required: false,
1731
+ schema: {
1732
+ description: "End of the insights window, as an epoch timestamp in seconds. Must be supplied together with `start_time`; if either is omitted the window defaults to the current billing period.",
1733
+ type: "integer",
1734
+ minimum: 0,
1735
+ },
1736
+ },
1737
+ ],
1738
+ response: {
1739
+ confidence: "contract",
1740
+ schema: "GetAgentInsightsResponse",
1741
+ },
1742
+ },
1743
+ {
1744
+ id: "update-agent-status",
1745
+ command: "update-agent-status",
1746
+ binding: {
1747
+ kind: "http",
1748
+ method: "PATCH",
1749
+ path: "/v1/agents/{agent_id}/status",
1750
+ },
1751
+ effect: "write",
1752
+ summary: "Update agent status",
1753
+ tags: ["Agents"],
1754
+ deprecated: true,
1755
+ parameters: [
1756
+ {
1757
+ name: "agent_id",
1758
+ in: "path",
1759
+ required: true,
1760
+ schema: {
1761
+ description: "The agent ID (a UUID), or `notion_ai` for the personal agent. Endpoint-specific restrictions still apply.",
1762
+ type: "union",
1763
+ of: [
1764
+ {
1765
+ type: "ref",
1766
+ ref: "idRequest",
1767
+ },
1768
+ {
1769
+ description: "Always `notion_ai`",
1770
+ type: "string",
1771
+ enum: ["notion_ai"],
1772
+ },
1773
+ ],
1774
+ },
1775
+ },
1776
+ ],
1777
+ request: {
1778
+ required: true,
1779
+ confidence: "contract",
1780
+ schema: "UpdateAgentStatusRequest",
1781
+ },
1782
+ response: {
1783
+ confidence: "contract",
1784
+ schema: "UpdateAgentStatusResponse",
1785
+ },
1786
+ },
1787
+ {
1788
+ id: "update-agent-credit-limit",
1789
+ command: "update-agent-credit-limit",
1790
+ binding: {
1791
+ kind: "http",
1792
+ method: "PATCH",
1793
+ path: "/v1/agents/{agent_id}/credit_limit",
1794
+ },
1795
+ effect: "write",
1796
+ summary: "Update agent credit limit",
1797
+ tags: ["Agents"],
1798
+ parameters: [
1799
+ {
1800
+ name: "agent_id",
1801
+ in: "path",
1802
+ required: true,
1803
+ schema: {
1804
+ description: "The ID of the custom agent (a UUID). The personal agent (Notion AI) is not supported by this endpoint.",
1805
+ type: "union",
1806
+ of: [
1807
+ {
1808
+ type: "ref",
1809
+ ref: "idRequest",
1810
+ },
1811
+ {
1812
+ description: "Always `notion_ai`",
1813
+ type: "string",
1814
+ enum: ["notion_ai"],
1815
+ },
1816
+ ],
1817
+ },
1818
+ },
1819
+ ],
1820
+ request: {
1821
+ required: true,
1822
+ confidence: "contract",
1823
+ schema: "UpdateAgentCreditLimitRequest",
1824
+ },
1825
+ response: {
1826
+ confidence: "contract",
1827
+ schema: "UpdateAgentCreditLimitResponse",
1828
+ },
1829
+ },
1830
+ {
1831
+ id: "agent-batch",
1832
+ command: "agent-batch",
1833
+ binding: {
1834
+ kind: "http",
1835
+ method: "POST",
1836
+ path: "/v1/agents/batch",
1837
+ },
1838
+ effect: "write",
1839
+ summary: "Apply many agent operations",
1840
+ tags: ["Agents"],
1841
+ parameters: [],
1842
+ request: {
1843
+ required: true,
1844
+ confidence: "contract",
1845
+ schema: "AgentBatchRequest",
1846
+ },
1847
+ response: {
1848
+ confidence: "contract",
1849
+ schema: "AgentBatchResponse",
1850
+ },
1851
+ },
1852
+ {
1853
+ id: "list-skills-plugins",
1854
+ command: "list-skills-plugins",
1855
+ binding: {
1856
+ kind: "http",
1857
+ method: "GET",
1858
+ path: "/v1/ai/plugins",
1859
+ },
1860
+ effect: "read",
1861
+ summary: "List skills plugins",
1862
+ tags: ["Agent Skills"],
1863
+ parameters: [
1864
+ {
1865
+ name: "page_size",
1866
+ in: "query",
1867
+ required: false,
1868
+ schema: {
1869
+ description: "The number of items to return. Maximum: 100.",
1870
+ type: "integer",
1871
+ minimum: 1,
1872
+ maximum: 100,
1873
+ },
1874
+ },
1875
+ {
1876
+ name: "start_cursor",
1877
+ in: "query",
1878
+ required: false,
1879
+ schema: {
1880
+ description: "An opaque cursor returned by the previous page of results.",
1881
+ type: "string",
1882
+ minLength: 1,
1883
+ maxLength: 200,
1884
+ pattern: "^[A-Za-z0-9]+$",
1885
+ },
1886
+ },
1887
+ ],
1888
+ response: {
1889
+ confidence: "contract",
1890
+ schema: "ListSkillsPluginsResponse",
1891
+ },
1892
+ },
1893
+ {
1894
+ id: "get-plugin-directory",
1895
+ command: "get-plugin-directory",
1896
+ binding: {
1897
+ kind: "http",
1898
+ method: "GET",
1899
+ path: "/v1/ai/plugins/{id}",
1900
+ },
1901
+ effect: "read",
1902
+ summary: "Get a plugin directory",
1903
+ tags: ["Agent Skills"],
1904
+ parameters: [
1905
+ {
1906
+ name: "id",
1907
+ in: "path",
1908
+ required: true,
1909
+ schema: {
1910
+ type: "string",
1911
+ minLength: 1,
1912
+ maxLength: 200,
1913
+ pattern: "^[^\\u0000-\\u001f\\u007f]+$",
1914
+ },
1915
+ },
1916
+ ],
1917
+ response: {
1918
+ confidence: "contract",
1919
+ schema: "GetPluginDirectoryResponse",
1920
+ },
1921
+ },
1922
+ {
1923
+ id: "get-skill-directory",
1924
+ command: "get-skill-directory",
1925
+ binding: {
1926
+ kind: "http",
1927
+ method: "GET",
1928
+ path: "/v1/ai/skills/{id}",
1929
+ },
1930
+ effect: "read",
1931
+ summary: "Get a skill directory",
1932
+ tags: ["Agent Skills"],
1933
+ parameters: [
1934
+ {
1935
+ name: "id",
1936
+ in: "path",
1937
+ required: true,
1938
+ schema: {
1939
+ description: "Identifier for a Notion skill page.",
1940
+ type: "ref",
1941
+ ref: "idRequest",
1942
+ },
1943
+ },
1944
+ ],
1945
+ response: {
1946
+ confidence: "contract",
1947
+ schema: "GetSkillDirectoryResponse",
1948
+ },
1949
+ },
1950
+ {
1951
+ id: "update-session",
1952
+ command: "update-session",
1953
+ binding: {
1954
+ kind: "http",
1955
+ method: "POST",
1956
+ path: "/v1/sessions",
1957
+ },
1958
+ effect: "write",
1959
+ summary: "Update a session",
1960
+ tags: ["Sessions"],
1961
+ parameters: [],
1962
+ request: {
1963
+ required: true,
1964
+ confidence: "contract",
1965
+ schema: "UpdateSessionRequest",
1966
+ },
1967
+ response: {
1968
+ confidence: "contract",
1969
+ schema: "UpdateSessionResponse",
1970
+ },
1971
+ },
1972
+ {
1973
+ id: "retrieve-session",
1974
+ command: "retrieve-session",
1975
+ binding: {
1976
+ kind: "http",
1977
+ method: "GET",
1978
+ path: "/v1/sessions/{session_id}",
1979
+ },
1980
+ effect: "read",
1981
+ summary: "Retrieve a session",
1982
+ tags: ["Sessions"],
1983
+ parameters: [
1984
+ {
1985
+ name: "session_id",
1986
+ in: "path",
1987
+ required: true,
1988
+ schema: {
1989
+ description: "The ID of the session to retrieve.",
1990
+ type: "ref",
1991
+ ref: "idRequest",
1992
+ },
1993
+ },
1994
+ ],
1995
+ response: {
1996
+ confidence: "contract",
1997
+ schema: "RetrieveSessionResponse",
1998
+ },
1999
+ },
2000
+ {
2001
+ id: "query-sessions",
2002
+ command: "query-sessions",
2003
+ binding: {
2004
+ kind: "http",
2005
+ method: "POST",
2006
+ path: "/v1/sessions/query",
2007
+ },
2008
+ effect: "read",
2009
+ summary: "Query sessions",
2010
+ tags: ["Sessions"],
2011
+ parameters: [],
2012
+ request: {
2013
+ required: true,
2014
+ confidence: "contract",
2015
+ schema: "QuerySessionsRequest",
2016
+ },
2017
+ response: {
2018
+ confidence: "contract",
2019
+ schema: "QuerySessionsResponse",
2020
+ },
2021
+ },
2022
+ {
2023
+ id: "query-session-events",
2024
+ command: "query-session-events",
2025
+ binding: {
2026
+ kind: "http",
2027
+ method: "POST",
2028
+ path: "/v1/sessions/{session_id}/events/query",
2029
+ },
2030
+ effect: "read",
2031
+ summary: "Query session events",
2032
+ tags: ["Sessions"],
2033
+ parameters: [
2034
+ {
2035
+ name: "session_id",
2036
+ in: "path",
2037
+ required: true,
2038
+ schema: {
2039
+ description: "The ID of the session whose events should be queried.",
2040
+ type: "ref",
2041
+ ref: "idRequest",
2042
+ },
2043
+ },
2044
+ ],
2045
+ request: {
2046
+ required: true,
2047
+ confidence: "contract",
2048
+ schema: "QuerySessionEventsRequest",
2049
+ },
2050
+ response: {
2051
+ confidence: "contract",
2052
+ schema: "QuerySessionEventsResponse",
2053
+ },
2054
+ },
2055
+ {
2056
+ id: "cancel-session",
2057
+ command: "cancel-session",
2058
+ binding: {
2059
+ kind: "http",
2060
+ method: "POST",
2061
+ path: "/v1/sessions/{session_id}/cancel",
2062
+ },
2063
+ effect: "write",
2064
+ summary: "Cancel a session",
2065
+ tags: ["Sessions"],
2066
+ parameters: [
2067
+ {
2068
+ name: "session_id",
2069
+ in: "path",
2070
+ required: true,
2071
+ schema: {
2072
+ description: "The ID of the session to cancel.",
2073
+ type: "ref",
2074
+ ref: "idRequest",
2075
+ },
2076
+ },
2077
+ ],
2078
+ request: {
2079
+ required: true,
2080
+ confidence: "contract",
2081
+ schema: "CancelSessionRequest",
2082
+ },
2083
+ response: {
2084
+ confidence: "contract",
2085
+ schema: "CancelSessionResponse",
2086
+ },
2087
+ },
2088
+ ];
2089
+ //# sourceMappingURL=manifest.js.map