@superdurable/connector-notion 0.0.0-stage → 0.2.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.
- package/LICENSE +21 -0
- package/README.md +32 -2
- package/dex-connector.json +748 -0
- package/dist/chunk-5TNYF4VH.js +395 -0
- package/dist/connection-C7B_dh-s.d.ts +768 -0
- package/dist/index.d.ts +530 -0
- package/dist/index.js +1804 -0
- package/dist/mock.d.ts +159 -0
- package/dist/mock.js +381 -0
- package/package.json +60 -4
|
@@ -0,0 +1,748 @@
|
|
|
1
|
+
{
|
|
2
|
+
"connectorId": "notion",
|
|
3
|
+
"releaseTag": "connectors/notion/go/v0.25.0",
|
|
4
|
+
"package": {
|
|
5
|
+
"ecosystem": "npm",
|
|
6
|
+
"name": "@superdurable/connector-notion",
|
|
7
|
+
"version": "0.2.0"
|
|
8
|
+
},
|
|
9
|
+
"factories": [
|
|
10
|
+
{
|
|
11
|
+
"name": "newSearchStep",
|
|
12
|
+
"kind": "query",
|
|
13
|
+
"operationId": "search",
|
|
14
|
+
"inputType": "SearchInput",
|
|
15
|
+
"description": "Search one bounded page of the pages and data sources shared with the connection by title, continuing with Notion's cursor.",
|
|
16
|
+
"fields": {
|
|
17
|
+
"stepType": "stepType",
|
|
18
|
+
"annotations": "annotations",
|
|
19
|
+
"connectionName": "connectionName",
|
|
20
|
+
"resultAttribute": "resultAttribute"
|
|
21
|
+
},
|
|
22
|
+
"branches": [
|
|
23
|
+
{
|
|
24
|
+
"id": "searched",
|
|
25
|
+
"field": "searched",
|
|
26
|
+
"optional": false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "noMatch",
|
|
30
|
+
"field": "noMatch",
|
|
31
|
+
"optional": true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "providerRejected",
|
|
35
|
+
"field": "providerRejected",
|
|
36
|
+
"optional": true
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "invalidResponse",
|
|
40
|
+
"field": "invalidResponse",
|
|
41
|
+
"optional": true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "defect",
|
|
45
|
+
"field": "defect",
|
|
46
|
+
"optional": true
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"inputSchema": {
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"description": "SearchInput selects one page of title matches among the pages and data sources shared with the connection.",
|
|
52
|
+
"properties": {
|
|
53
|
+
"objectType": {
|
|
54
|
+
"description": "ObjectType limits the results to pages or data sources; blank returns both.",
|
|
55
|
+
"enum": [
|
|
56
|
+
"data_source",
|
|
57
|
+
"page"
|
|
58
|
+
],
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"pageSize": {
|
|
62
|
+
"description": "PageSize is the number of results to request, 1 to 100; zero requests 20.",
|
|
63
|
+
"type": "integer"
|
|
64
|
+
},
|
|
65
|
+
"query": {
|
|
66
|
+
"description": "Query is matched against titles; blank lists every shared page and data source.",
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"sortDirection": {
|
|
70
|
+
"description": "SortDirection orders by last edit time; blank keeps Notion's relevance order.",
|
|
71
|
+
"enum": [
|
|
72
|
+
"ascending",
|
|
73
|
+
"descending"
|
|
74
|
+
],
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"startCursor": {
|
|
78
|
+
"description": "StartCursor continues a previous search with the same input; blank reads the first page.",
|
|
79
|
+
"type": "string"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"type": "object"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "newQueryDatabaseStep",
|
|
87
|
+
"kind": "query",
|
|
88
|
+
"operationId": "queryDatabase",
|
|
89
|
+
"inputType": "QueryDatabaseInput",
|
|
90
|
+
"description": "Query one bounded page of a database's rows through its data source with a typed filter and sorts, continuing with Notion's cursor.",
|
|
91
|
+
"fields": {
|
|
92
|
+
"stepType": "stepType",
|
|
93
|
+
"annotations": "annotations",
|
|
94
|
+
"connectionName": "connectionName",
|
|
95
|
+
"resultAttribute": "resultAttribute"
|
|
96
|
+
},
|
|
97
|
+
"branches": [
|
|
98
|
+
{
|
|
99
|
+
"id": "queried",
|
|
100
|
+
"field": "queried",
|
|
101
|
+
"optional": false
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"id": "notFound",
|
|
105
|
+
"field": "notFound",
|
|
106
|
+
"optional": true
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"id": "providerRejected",
|
|
110
|
+
"field": "providerRejected",
|
|
111
|
+
"optional": true
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"id": "invalidResponse",
|
|
115
|
+
"field": "invalidResponse",
|
|
116
|
+
"optional": true
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "defect",
|
|
120
|
+
"field": "defect",
|
|
121
|
+
"optional": true
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"inputSchema": {
|
|
125
|
+
"$defs": {
|
|
126
|
+
"QueryFilter": {
|
|
127
|
+
"additionalProperties": false,
|
|
128
|
+
"description": "QueryFilter is a typed Notion data source filter. Set exactly one of Property, Timestamp, And, and Or. A property condition names the property, its Type, a Condition the type supports, and the one value field the condition takes: Text for title, rich_text, url, email, phone_number, select, status, and multi_select; Number for number and unique_id; Checkbox for checkbox; Date for date; and ID for people and relation. FilterIsEmpty, FilterIsNotEmpty, and the relative date conditions such as FilterPastWeek take no value. A timestamp condition sets Timestamp, a date Condition, and Date. And and Or combine up to two levels of nested filters. An unsupported combination selects defect before any request is sent.",
|
|
129
|
+
"properties": {
|
|
130
|
+
"and": {
|
|
131
|
+
"description": "And matches pages that match every filter.",
|
|
132
|
+
"items": {
|
|
133
|
+
"$ref": "#/$defs/QueryFilter"
|
|
134
|
+
},
|
|
135
|
+
"type": "array"
|
|
136
|
+
},
|
|
137
|
+
"checkbox": {
|
|
138
|
+
"description": "Checkbox is a checkbox value.",
|
|
139
|
+
"type": "boolean"
|
|
140
|
+
},
|
|
141
|
+
"condition": {
|
|
142
|
+
"description": "Condition is the comparison.",
|
|
143
|
+
"enum": [
|
|
144
|
+
"after",
|
|
145
|
+
"before",
|
|
146
|
+
"contains",
|
|
147
|
+
"does_not_contain",
|
|
148
|
+
"does_not_equal",
|
|
149
|
+
"ends_with",
|
|
150
|
+
"equals",
|
|
151
|
+
"greater_than",
|
|
152
|
+
"greater_than_or_equal_to",
|
|
153
|
+
"is_empty",
|
|
154
|
+
"is_not_empty",
|
|
155
|
+
"less_than",
|
|
156
|
+
"less_than_or_equal_to",
|
|
157
|
+
"next_month",
|
|
158
|
+
"next_week",
|
|
159
|
+
"next_year",
|
|
160
|
+
"on_or_after",
|
|
161
|
+
"on_or_before",
|
|
162
|
+
"past_month",
|
|
163
|
+
"past_week",
|
|
164
|
+
"past_year",
|
|
165
|
+
"starts_with",
|
|
166
|
+
"this_week"
|
|
167
|
+
],
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
"date": {
|
|
171
|
+
"description": "Date is a YYYY-MM-DD date or RFC 3339 date-time value.",
|
|
172
|
+
"type": "string"
|
|
173
|
+
},
|
|
174
|
+
"id": {
|
|
175
|
+
"description": "ID is a Notion user ID for people or a page ID for relation.",
|
|
176
|
+
"type": "string"
|
|
177
|
+
},
|
|
178
|
+
"number": {
|
|
179
|
+
"description": "Number is a number value.",
|
|
180
|
+
"type": "number"
|
|
181
|
+
},
|
|
182
|
+
"or": {
|
|
183
|
+
"description": "Or matches pages that match any filter.",
|
|
184
|
+
"items": {
|
|
185
|
+
"$ref": "#/$defs/QueryFilter"
|
|
186
|
+
},
|
|
187
|
+
"type": "array"
|
|
188
|
+
},
|
|
189
|
+
"property": {
|
|
190
|
+
"description": "Property is the property name or ID that the condition reads.",
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"text": {
|
|
194
|
+
"description": "Text is a text or option-name value.",
|
|
195
|
+
"type": "string"
|
|
196
|
+
},
|
|
197
|
+
"timestamp": {
|
|
198
|
+
"description": "Timestamp filters on the page's creation or last edit time instead of a property.",
|
|
199
|
+
"enum": [
|
|
200
|
+
"created_time",
|
|
201
|
+
"last_edited_time"
|
|
202
|
+
],
|
|
203
|
+
"type": "string"
|
|
204
|
+
},
|
|
205
|
+
"type": {
|
|
206
|
+
"description": "Type is the property's Notion type, which selects the filter's shape.",
|
|
207
|
+
"enum": [
|
|
208
|
+
"checkbox",
|
|
209
|
+
"created_by",
|
|
210
|
+
"created_time",
|
|
211
|
+
"date",
|
|
212
|
+
"email",
|
|
213
|
+
"files",
|
|
214
|
+
"formula",
|
|
215
|
+
"last_edited_by",
|
|
216
|
+
"last_edited_time",
|
|
217
|
+
"multi_select",
|
|
218
|
+
"number",
|
|
219
|
+
"people",
|
|
220
|
+
"phone_number",
|
|
221
|
+
"relation",
|
|
222
|
+
"rich_text",
|
|
223
|
+
"rollup",
|
|
224
|
+
"select",
|
|
225
|
+
"status",
|
|
226
|
+
"title",
|
|
227
|
+
"unique_id",
|
|
228
|
+
"url",
|
|
229
|
+
"verification"
|
|
230
|
+
],
|
|
231
|
+
"type": "string"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"type": "object"
|
|
235
|
+
},
|
|
236
|
+
"QuerySort": {
|
|
237
|
+
"additionalProperties": false,
|
|
238
|
+
"description": "QuerySort orders query results by a property or a timestamp. Set exactly one of Property and Timestamp.",
|
|
239
|
+
"properties": {
|
|
240
|
+
"direction": {
|
|
241
|
+
"description": "Direction is ascending or descending; blank is ascending.",
|
|
242
|
+
"enum": [
|
|
243
|
+
"ascending",
|
|
244
|
+
"descending"
|
|
245
|
+
],
|
|
246
|
+
"type": "string"
|
|
247
|
+
},
|
|
248
|
+
"property": {
|
|
249
|
+
"description": "Property is the property name or ID to sort by.",
|
|
250
|
+
"type": "string"
|
|
251
|
+
},
|
|
252
|
+
"timestamp": {
|
|
253
|
+
"description": "Timestamp sorts by the page's creation or last edit time.",
|
|
254
|
+
"enum": [
|
|
255
|
+
"created_time",
|
|
256
|
+
"last_edited_time"
|
|
257
|
+
],
|
|
258
|
+
"type": "string"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"type": "object"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"additionalProperties": false,
|
|
265
|
+
"description": "QueryDatabaseInput selects one page of a database's rows. Set exactly one of DataSourceID and DatabaseID.",
|
|
266
|
+
"properties": {
|
|
267
|
+
"dataSourceId": {
|
|
268
|
+
"description": "DataSourceID is the data source to query. In Notion, open the database's settings menu > Manage data sources and choose Copy data source ID.",
|
|
269
|
+
"type": "string"
|
|
270
|
+
},
|
|
271
|
+
"databaseId": {
|
|
272
|
+
"description": "DatabaseID is the database ID from its URL, or the URL itself; the database must hold exactly one data source.",
|
|
273
|
+
"type": "string"
|
|
274
|
+
},
|
|
275
|
+
"filter": {
|
|
276
|
+
"$ref": "#/$defs/QueryFilter",
|
|
277
|
+
"description": "Filter optionally limits the rows; nil returns every row."
|
|
278
|
+
},
|
|
279
|
+
"pageSize": {
|
|
280
|
+
"description": "PageSize is the number of rows to request, 1 to 100; zero requests 50.",
|
|
281
|
+
"type": "integer"
|
|
282
|
+
},
|
|
283
|
+
"properties": {
|
|
284
|
+
"description": "Properties optionally lists the property names or IDs to return, at most 100; blank returns every property.",
|
|
285
|
+
"items": {
|
|
286
|
+
"type": "string"
|
|
287
|
+
},
|
|
288
|
+
"type": "array"
|
|
289
|
+
},
|
|
290
|
+
"sorts": {
|
|
291
|
+
"description": "Sorts optionally orders the rows; Notion guarantees no order without one.",
|
|
292
|
+
"items": {
|
|
293
|
+
"$ref": "#/$defs/QuerySort"
|
|
294
|
+
},
|
|
295
|
+
"type": "array"
|
|
296
|
+
},
|
|
297
|
+
"startCursor": {
|
|
298
|
+
"description": "StartCursor continues a previous query with the same input; blank reads the first page.",
|
|
299
|
+
"type": "string"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"type": "object"
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "newGetPageStep",
|
|
307
|
+
"kind": "query",
|
|
308
|
+
"operationId": "getPage",
|
|
309
|
+
"inputType": "GetPageInput",
|
|
310
|
+
"description": "Read one page's properties and a bounded plain-text rendering of its top-level blocks.",
|
|
311
|
+
"fields": {
|
|
312
|
+
"stepType": "stepType",
|
|
313
|
+
"annotations": "annotations",
|
|
314
|
+
"connectionName": "connectionName",
|
|
315
|
+
"resultAttribute": "resultAttribute"
|
|
316
|
+
},
|
|
317
|
+
"branches": [
|
|
318
|
+
{
|
|
319
|
+
"id": "found",
|
|
320
|
+
"field": "found",
|
|
321
|
+
"optional": false
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"id": "notFound",
|
|
325
|
+
"field": "notFound",
|
|
326
|
+
"optional": true
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"id": "providerRejected",
|
|
330
|
+
"field": "providerRejected",
|
|
331
|
+
"optional": true
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"id": "invalidResponse",
|
|
335
|
+
"field": "invalidResponse",
|
|
336
|
+
"optional": true
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"id": "defect",
|
|
340
|
+
"field": "defect",
|
|
341
|
+
"optional": true
|
|
342
|
+
}
|
|
343
|
+
],
|
|
344
|
+
"inputSchema": {
|
|
345
|
+
"additionalProperties": false,
|
|
346
|
+
"description": "GetPageInput selects one page.",
|
|
347
|
+
"properties": {
|
|
348
|
+
"maxBlocks": {
|
|
349
|
+
"description": "MaxBlocks bounds the top-level blocks read, 1 to 500; zero reads up to 100.",
|
|
350
|
+
"type": "integer"
|
|
351
|
+
},
|
|
352
|
+
"maxTextCharacters": {
|
|
353
|
+
"description": "MaxTextCharacters bounds Content.Text, 1 to 100,000 characters; zero keeps up to 20,000.",
|
|
354
|
+
"type": "integer"
|
|
355
|
+
},
|
|
356
|
+
"pageId": {
|
|
357
|
+
"description": "PageID is the page ID, with or without dashes, or the page's Notion URL.",
|
|
358
|
+
"type": "string"
|
|
359
|
+
},
|
|
360
|
+
"skipContent": {
|
|
361
|
+
"description": "ShouldSkipContent reads only the page's properties, without its blocks.",
|
|
362
|
+
"type": "boolean"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"required": [
|
|
366
|
+
"pageId"
|
|
367
|
+
],
|
|
368
|
+
"type": "object"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "newCreatePageStep",
|
|
373
|
+
"kind": "mutation",
|
|
374
|
+
"operationId": "createPage",
|
|
375
|
+
"inputType": "CreatePageInput",
|
|
376
|
+
"description": "Create one database row with typed property values and optional plain-text body paragraphs. Sync durability persists the single-dispatch fence before sending so retries cannot duplicate an unconfirmed page.",
|
|
377
|
+
"fields": {
|
|
378
|
+
"stepType": "stepType",
|
|
379
|
+
"annotations": "annotations",
|
|
380
|
+
"connectionName": "connectionName",
|
|
381
|
+
"resultAttribute": "resultAttribute"
|
|
382
|
+
},
|
|
383
|
+
"branches": [
|
|
384
|
+
{
|
|
385
|
+
"id": "created",
|
|
386
|
+
"field": "created",
|
|
387
|
+
"optional": false
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"id": "notFound",
|
|
391
|
+
"field": "notFound",
|
|
392
|
+
"optional": true
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"id": "providerRejected",
|
|
396
|
+
"field": "providerRejected",
|
|
397
|
+
"optional": true
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"id": "uncertain",
|
|
401
|
+
"field": "uncertain",
|
|
402
|
+
"optional": true
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"id": "invalidResponse",
|
|
406
|
+
"field": "invalidResponse",
|
|
407
|
+
"optional": true
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"id": "defect",
|
|
411
|
+
"field": "defect",
|
|
412
|
+
"optional": true
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"inputSchema": {
|
|
416
|
+
"$defs": {
|
|
417
|
+
"DateRange": {
|
|
418
|
+
"additionalProperties": false,
|
|
419
|
+
"description": "DateRange is a Notion date value: one date or date-time, or a range.",
|
|
420
|
+
"properties": {
|
|
421
|
+
"end": {
|
|
422
|
+
"description": "End optionally ends a range, in the same format as Start; blank means a single date.",
|
|
423
|
+
"type": "string"
|
|
424
|
+
},
|
|
425
|
+
"start": {
|
|
426
|
+
"description": "Start is a YYYY-MM-DD date or an RFC 3339 date-time such as 2026-09-30T14:00:00Z.",
|
|
427
|
+
"type": "string"
|
|
428
|
+
},
|
|
429
|
+
"timeZone": {
|
|
430
|
+
"description": "TimeZone optionally names an IANA time zone, such as America/Los_Angeles, for a date-time without an offset; blank uses the offset in Start.",
|
|
431
|
+
"type": "string"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
"required": [
|
|
435
|
+
"start"
|
|
436
|
+
],
|
|
437
|
+
"type": "object"
|
|
438
|
+
},
|
|
439
|
+
"PropertyValue": {
|
|
440
|
+
"additionalProperties": false,
|
|
441
|
+
"description": "PropertyValue is one typed property value written to a Notion page. Type selects exactly one value field: Text for title and rich_text, Number, Checkbox, Option for select and status, Options for multi_select, Date, URL, Email, PhoneNumber, UserIDs for people, and PageIDs for relation. Setting a field that does not belong to Type selects defect. The zero value of the type's field clears the property, except that a checkbox needs an explicit value and a status needs an option name. Prefer the constructors such as TitleValue and SelectValue, and ClearedValue to clear a property on purpose. Writes replace the property's whole value: a multi_select, people, or relation value lists every entry the property keeps, so repeating the same write leaves the page unchanged.",
|
|
442
|
+
"properties": {
|
|
443
|
+
"checkbox": {
|
|
444
|
+
"description": "Checkbox is a checkbox value.",
|
|
445
|
+
"type": "boolean"
|
|
446
|
+
},
|
|
447
|
+
"date": {
|
|
448
|
+
"$ref": "#/$defs/DateRange",
|
|
449
|
+
"description": "Date is a date value."
|
|
450
|
+
},
|
|
451
|
+
"email": {
|
|
452
|
+
"description": "Email is a plain email address.",
|
|
453
|
+
"type": "string"
|
|
454
|
+
},
|
|
455
|
+
"number": {
|
|
456
|
+
"description": "Number is a finite number value.",
|
|
457
|
+
"type": "number"
|
|
458
|
+
},
|
|
459
|
+
"option": {
|
|
460
|
+
"description": "Option is a select or status option name. Notion adds a missing select option to the data source; a status option must already exist.",
|
|
461
|
+
"type": "string"
|
|
462
|
+
},
|
|
463
|
+
"options": {
|
|
464
|
+
"description": "Options lists multi_select option names, at most 100, without commas.",
|
|
465
|
+
"items": {
|
|
466
|
+
"type": "string"
|
|
467
|
+
},
|
|
468
|
+
"type": "array"
|
|
469
|
+
},
|
|
470
|
+
"pageIds": {
|
|
471
|
+
"description": "PageIDs lists related page IDs for a relation value, at most 100.",
|
|
472
|
+
"items": {
|
|
473
|
+
"type": "string"
|
|
474
|
+
},
|
|
475
|
+
"type": "array"
|
|
476
|
+
},
|
|
477
|
+
"phoneNumber": {
|
|
478
|
+
"description": "PhoneNumber is free-form phone text, such as +1 206 555 0100.",
|
|
479
|
+
"type": "string"
|
|
480
|
+
},
|
|
481
|
+
"text": {
|
|
482
|
+
"description": "Text is the plain text of a title or rich_text value, at most 20,000 characters.",
|
|
483
|
+
"type": "string"
|
|
484
|
+
},
|
|
485
|
+
"type": {
|
|
486
|
+
"description": "Type is the property's Notion type.",
|
|
487
|
+
"enum": [
|
|
488
|
+
"checkbox",
|
|
489
|
+
"created_by",
|
|
490
|
+
"created_time",
|
|
491
|
+
"date",
|
|
492
|
+
"email",
|
|
493
|
+
"files",
|
|
494
|
+
"formula",
|
|
495
|
+
"last_edited_by",
|
|
496
|
+
"last_edited_time",
|
|
497
|
+
"multi_select",
|
|
498
|
+
"number",
|
|
499
|
+
"people",
|
|
500
|
+
"phone_number",
|
|
501
|
+
"relation",
|
|
502
|
+
"rich_text",
|
|
503
|
+
"rollup",
|
|
504
|
+
"select",
|
|
505
|
+
"status",
|
|
506
|
+
"title",
|
|
507
|
+
"unique_id",
|
|
508
|
+
"url",
|
|
509
|
+
"verification"
|
|
510
|
+
],
|
|
511
|
+
"type": "string"
|
|
512
|
+
},
|
|
513
|
+
"url": {
|
|
514
|
+
"description": "URL is an absolute URL value.",
|
|
515
|
+
"type": "string"
|
|
516
|
+
},
|
|
517
|
+
"userIds": {
|
|
518
|
+
"description": "UserIDs lists Notion user IDs for a people value, at most 100.",
|
|
519
|
+
"items": {
|
|
520
|
+
"type": "string"
|
|
521
|
+
},
|
|
522
|
+
"type": "array"
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"required": [
|
|
526
|
+
"type"
|
|
527
|
+
],
|
|
528
|
+
"type": "object"
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
"additionalProperties": false,
|
|
532
|
+
"description": "CreatePageInput describes one database row. Set exactly one of DataSourceID and DatabaseID.",
|
|
533
|
+
"properties": {
|
|
534
|
+
"bodyText": {
|
|
535
|
+
"description": "BodyText is optional plain text for the page body, at most 50,000 characters in at most 100 paragraphs. Blank lines separate paragraphs, other line breaks stay inside a paragraph, and the text is never read as markup.",
|
|
536
|
+
"type": "string"
|
|
537
|
+
},
|
|
538
|
+
"dataSourceId": {
|
|
539
|
+
"description": "DataSourceID is the data source that receives the row. In Notion, open the database's settings menu > Manage data sources and choose Copy data source ID.",
|
|
540
|
+
"type": "string"
|
|
541
|
+
},
|
|
542
|
+
"databaseId": {
|
|
543
|
+
"description": "DatabaseID is the database ID from its URL, or the URL itself; the database must hold exactly one data source.",
|
|
544
|
+
"type": "string"
|
|
545
|
+
},
|
|
546
|
+
"properties": {
|
|
547
|
+
"additionalProperties": {
|
|
548
|
+
"$ref": "#/$defs/PropertyValue"
|
|
549
|
+
},
|
|
550
|
+
"description": "Properties maps property names or IDs to typed values, at most 100. A property left out keeps the data source's default, such as an empty title.",
|
|
551
|
+
"type": "object"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"type": "object"
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"name": "newUpdatePagePropertiesStep",
|
|
559
|
+
"kind": "mutation",
|
|
560
|
+
"operationId": "updatePageProperties",
|
|
561
|
+
"inputType": "UpdatePagePropertiesInput",
|
|
562
|
+
"description": "Set typed property values on one page with absolute values, so a repeated or duplicated update leaves the page unchanged.",
|
|
563
|
+
"fields": {
|
|
564
|
+
"stepType": "stepType",
|
|
565
|
+
"annotations": "annotations",
|
|
566
|
+
"connectionName": "connectionName",
|
|
567
|
+
"resultAttribute": "resultAttribute"
|
|
568
|
+
},
|
|
569
|
+
"branches": [
|
|
570
|
+
{
|
|
571
|
+
"id": "updated",
|
|
572
|
+
"field": "updated",
|
|
573
|
+
"optional": false
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"id": "notFound",
|
|
577
|
+
"field": "notFound",
|
|
578
|
+
"optional": true
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"id": "providerRejected",
|
|
582
|
+
"field": "providerRejected",
|
|
583
|
+
"optional": true
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"id": "invalidResponse",
|
|
587
|
+
"field": "invalidResponse",
|
|
588
|
+
"optional": true
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"id": "defect",
|
|
592
|
+
"field": "defect",
|
|
593
|
+
"optional": true
|
|
594
|
+
}
|
|
595
|
+
],
|
|
596
|
+
"inputSchema": {
|
|
597
|
+
"$defs": {
|
|
598
|
+
"DateRange": {
|
|
599
|
+
"additionalProperties": false,
|
|
600
|
+
"description": "DateRange is a Notion date value: one date or date-time, or a range.",
|
|
601
|
+
"properties": {
|
|
602
|
+
"end": {
|
|
603
|
+
"description": "End optionally ends a range, in the same format as Start; blank means a single date.",
|
|
604
|
+
"type": "string"
|
|
605
|
+
},
|
|
606
|
+
"start": {
|
|
607
|
+
"description": "Start is a YYYY-MM-DD date or an RFC 3339 date-time such as 2026-09-30T14:00:00Z.",
|
|
608
|
+
"type": "string"
|
|
609
|
+
},
|
|
610
|
+
"timeZone": {
|
|
611
|
+
"description": "TimeZone optionally names an IANA time zone, such as America/Los_Angeles, for a date-time without an offset; blank uses the offset in Start.",
|
|
612
|
+
"type": "string"
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
"required": [
|
|
616
|
+
"start"
|
|
617
|
+
],
|
|
618
|
+
"type": "object"
|
|
619
|
+
},
|
|
620
|
+
"PropertyValue": {
|
|
621
|
+
"additionalProperties": false,
|
|
622
|
+
"description": "PropertyValue is one typed property value written to a Notion page. Type selects exactly one value field: Text for title and rich_text, Number, Checkbox, Option for select and status, Options for multi_select, Date, URL, Email, PhoneNumber, UserIDs for people, and PageIDs for relation. Setting a field that does not belong to Type selects defect. The zero value of the type's field clears the property, except that a checkbox needs an explicit value and a status needs an option name. Prefer the constructors such as TitleValue and SelectValue, and ClearedValue to clear a property on purpose. Writes replace the property's whole value: a multi_select, people, or relation value lists every entry the property keeps, so repeating the same write leaves the page unchanged.",
|
|
623
|
+
"properties": {
|
|
624
|
+
"checkbox": {
|
|
625
|
+
"description": "Checkbox is a checkbox value.",
|
|
626
|
+
"type": "boolean"
|
|
627
|
+
},
|
|
628
|
+
"date": {
|
|
629
|
+
"$ref": "#/$defs/DateRange",
|
|
630
|
+
"description": "Date is a date value."
|
|
631
|
+
},
|
|
632
|
+
"email": {
|
|
633
|
+
"description": "Email is a plain email address.",
|
|
634
|
+
"type": "string"
|
|
635
|
+
},
|
|
636
|
+
"number": {
|
|
637
|
+
"description": "Number is a finite number value.",
|
|
638
|
+
"type": "number"
|
|
639
|
+
},
|
|
640
|
+
"option": {
|
|
641
|
+
"description": "Option is a select or status option name. Notion adds a missing select option to the data source; a status option must already exist.",
|
|
642
|
+
"type": "string"
|
|
643
|
+
},
|
|
644
|
+
"options": {
|
|
645
|
+
"description": "Options lists multi_select option names, at most 100, without commas.",
|
|
646
|
+
"items": {
|
|
647
|
+
"type": "string"
|
|
648
|
+
},
|
|
649
|
+
"type": "array"
|
|
650
|
+
},
|
|
651
|
+
"pageIds": {
|
|
652
|
+
"description": "PageIDs lists related page IDs for a relation value, at most 100.",
|
|
653
|
+
"items": {
|
|
654
|
+
"type": "string"
|
|
655
|
+
},
|
|
656
|
+
"type": "array"
|
|
657
|
+
},
|
|
658
|
+
"phoneNumber": {
|
|
659
|
+
"description": "PhoneNumber is free-form phone text, such as +1 206 555 0100.",
|
|
660
|
+
"type": "string"
|
|
661
|
+
},
|
|
662
|
+
"text": {
|
|
663
|
+
"description": "Text is the plain text of a title or rich_text value, at most 20,000 characters.",
|
|
664
|
+
"type": "string"
|
|
665
|
+
},
|
|
666
|
+
"type": {
|
|
667
|
+
"description": "Type is the property's Notion type.",
|
|
668
|
+
"enum": [
|
|
669
|
+
"checkbox",
|
|
670
|
+
"created_by",
|
|
671
|
+
"created_time",
|
|
672
|
+
"date",
|
|
673
|
+
"email",
|
|
674
|
+
"files",
|
|
675
|
+
"formula",
|
|
676
|
+
"last_edited_by",
|
|
677
|
+
"last_edited_time",
|
|
678
|
+
"multi_select",
|
|
679
|
+
"number",
|
|
680
|
+
"people",
|
|
681
|
+
"phone_number",
|
|
682
|
+
"relation",
|
|
683
|
+
"rich_text",
|
|
684
|
+
"rollup",
|
|
685
|
+
"select",
|
|
686
|
+
"status",
|
|
687
|
+
"title",
|
|
688
|
+
"unique_id",
|
|
689
|
+
"url",
|
|
690
|
+
"verification"
|
|
691
|
+
],
|
|
692
|
+
"type": "string"
|
|
693
|
+
},
|
|
694
|
+
"url": {
|
|
695
|
+
"description": "URL is an absolute URL value.",
|
|
696
|
+
"type": "string"
|
|
697
|
+
},
|
|
698
|
+
"userIds": {
|
|
699
|
+
"description": "UserIDs lists Notion user IDs for a people value, at most 100.",
|
|
700
|
+
"items": {
|
|
701
|
+
"type": "string"
|
|
702
|
+
},
|
|
703
|
+
"type": "array"
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
"required": [
|
|
707
|
+
"type"
|
|
708
|
+
],
|
|
709
|
+
"type": "object"
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
"additionalProperties": false,
|
|
713
|
+
"description": "UpdatePagePropertiesInput sets property values on one page. Properties left out keep their values; every listed value replaces the property's whole value, so repeating the same input leaves the page unchanged.",
|
|
714
|
+
"properties": {
|
|
715
|
+
"pageId": {
|
|
716
|
+
"description": "PageID is the page ID, with or without dashes, or the page's Notion URL.",
|
|
717
|
+
"type": "string"
|
|
718
|
+
},
|
|
719
|
+
"properties": {
|
|
720
|
+
"additionalProperties": {
|
|
721
|
+
"$ref": "#/$defs/PropertyValue"
|
|
722
|
+
},
|
|
723
|
+
"description": "Properties maps property names or IDs to typed values, 1 to 100. Use ClearedValue to empty a property.",
|
|
724
|
+
"type": [
|
|
725
|
+
"object",
|
|
726
|
+
"null"
|
|
727
|
+
]
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
"required": [
|
|
731
|
+
"pageId",
|
|
732
|
+
"properties"
|
|
733
|
+
],
|
|
734
|
+
"type": "object"
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"name": "defineDatabaseRowChangedTriggerBinding",
|
|
739
|
+
"kind": "trigger",
|
|
740
|
+
"triggerName": "databaseRowChanged",
|
|
741
|
+
"fields": {
|
|
742
|
+
"connectionName": "connectionName",
|
|
743
|
+
"bindingName": "bindingName",
|
|
744
|
+
"configurationUI": "configurationUI"
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
]
|
|
748
|
+
}
|