@visus-io/notion-sdk-ts 2.0.0 → 2.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.
- package/README.md +66 -921
- package/dist/api/base.api.d.ts +161 -0
- package/dist/api/base.api.js +228 -0
- package/dist/api/blocks.api.d.ts +3867 -4
- package/dist/api/blocks.api.js +16 -47
- package/dist/api/comments.api.d.ts +259 -4
- package/dist/api/comments.api.js +11 -29
- package/dist/api/dataSources.api.d.ts +788 -4
- package/dist/api/dataSources.api.js +14 -28
- package/dist/api/databases.api.d.ts +491 -4
- package/dist/api/databases.api.js +20 -45
- package/dist/api/fileUploads.api.d.ts +25 -3
- package/dist/api/fileUploads.api.js +7 -2
- package/dist/api/index.d.ts +0 -1
- package/dist/api/index.js +0 -1
- package/dist/api/pages.api.d.ts +864 -3
- package/dist/api/pages.api.js +14 -28
- package/dist/api/search.api.d.ts +0 -1
- package/dist/api/search.api.js +5 -11
- package/dist/api/users.api.d.ts +40 -4
- package/dist/api/users.api.js +12 -35
- package/dist/client.d.ts +0 -1
- package/dist/client.js +0 -1
- package/dist/errors.d.ts +0 -1
- package/dist/errors.js +0 -1
- package/dist/helpers/block.helpers.d.ts +4 -1
- package/dist/helpers/block.helpers.js +11 -1
- package/dist/helpers/file.helpers.d.ts +0 -1
- package/dist/helpers/file.helpers.js +0 -1
- package/dist/helpers/filter.helpers.d.ts +0 -1
- package/dist/helpers/filter.helpers.js +0 -1
- package/dist/helpers/index.d.ts +0 -1
- package/dist/helpers/index.js +0 -1
- package/dist/helpers/pagination.helpers.d.ts +0 -1
- package/dist/helpers/pagination.helpers.js +0 -1
- package/dist/helpers/parent.helpers.d.ts +0 -1
- package/dist/helpers/parent.helpers.js +0 -1
- package/dist/helpers/property.helpers.d.ts +0 -1
- package/dist/helpers/property.helpers.js +0 -1
- package/dist/helpers/richText.helpers.d.ts +0 -1
- package/dist/helpers/richText.helpers.js +0 -1
- package/dist/helpers/sort.helpers.d.ts +0 -1
- package/dist/helpers/sort.helpers.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/models/base.model.d.ts +2 -3
- package/dist/models/base.model.js +0 -1
- package/dist/models/block.model.d.ts +0 -1
- package/dist/models/block.model.js +0 -1
- package/dist/models/comment.model.d.ts +0 -1
- package/dist/models/comment.model.js +0 -1
- package/dist/models/dataSource.model.d.ts +0 -1
- package/dist/models/dataSource.model.js +0 -1
- package/dist/models/database.model.d.ts +0 -1
- package/dist/models/database.model.js +0 -1
- package/dist/models/fileUpload.model.d.ts +0 -1
- package/dist/models/fileUpload.model.js +0 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/dist/models/page.model.d.ts +0 -1
- package/dist/models/page.model.js +0 -1
- package/dist/models/richText.model.d.ts +0 -1
- package/dist/models/richText.model.js +0 -1
- package/dist/models/user.model.d.ts +0 -1
- package/dist/models/user.model.js +0 -1
- package/dist/notion.d.ts +0 -1
- package/dist/notion.js +0 -1
- package/dist/schemas/block.schema.d.ts +261 -82
- package/dist/schemas/block.schema.js +157 -82
- package/dist/schemas/codeLanguages.d.ts +0 -1
- package/dist/schemas/codeLanguages.js +0 -1
- package/dist/schemas/colors.d.ts +0 -1
- package/dist/schemas/colors.js +0 -1
- package/dist/schemas/comment.schema.d.ts +9 -10
- package/dist/schemas/comment.schema.js +54 -21
- package/dist/schemas/dataSource.schema.d.ts +13 -14
- package/dist/schemas/dataSource.schema.js +46 -13
- package/dist/schemas/database.schema.d.ts +13 -14
- package/dist/schemas/database.schema.js +51 -18
- package/dist/schemas/emoji.schema.d.ts +1 -2
- package/dist/schemas/emoji.schema.js +37 -5
- package/dist/schemas/file.schema.d.ts +3 -4
- package/dist/schemas/file.schema.js +49 -16
- package/dist/schemas/fileUpload.schema.d.ts +3 -4
- package/dist/schemas/fileUpload.schema.js +47 -14
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/page.schema.d.ts +30 -31
- package/dist/schemas/page.schema.js +47 -14
- package/dist/schemas/pageProperties.schema.d.ts +47 -48
- package/dist/schemas/pageProperties.schema.js +162 -129
- package/dist/schemas/pagination.schema.d.ts +1 -2
- package/dist/schemas/pagination.schema.js +40 -8
- package/dist/schemas/parent.schema.d.ts +1 -2
- package/dist/schemas/parent.schema.js +51 -19
- package/dist/schemas/propertyObjects.schema.d.ts +1 -2
- package/dist/schemas/propertyObjects.schema.js +194 -162
- package/dist/schemas/richText.schema.d.ts +7 -8
- package/dist/schemas/richText.schema.js +95 -57
- package/dist/schemas/shared.schema.d.ts +15 -0
- package/dist/schemas/shared.schema.js +54 -0
- package/dist/schemas/user.schema.d.ts +3 -4
- package/dist/schemas/user.schema.js +63 -31
- package/dist/validation.d.ts +0 -1
- package/dist/validation.js +0 -1
- package/package.json +3 -1
- package/dist/api/blocks.api.d.ts.map +0 -1
- package/dist/api/blocks.api.js.map +0 -1
- package/dist/api/comments.api.d.ts.map +0 -1
- package/dist/api/comments.api.js.map +0 -1
- package/dist/api/dataSources.api.d.ts.map +0 -1
- package/dist/api/dataSources.api.js.map +0 -1
- package/dist/api/databases.api.d.ts.map +0 -1
- package/dist/api/databases.api.js.map +0 -1
- package/dist/api/fileUploads.api.d.ts.map +0 -1
- package/dist/api/fileUploads.api.js.map +0 -1
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/index.js.map +0 -1
- package/dist/api/pages.api.d.ts.map +0 -1
- package/dist/api/pages.api.js.map +0 -1
- package/dist/api/search.api.d.ts.map +0 -1
- package/dist/api/search.api.js.map +0 -1
- package/dist/api/users.api.d.ts.map +0 -1
- package/dist/api/users.api.js.map +0 -1
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/helpers/block.helpers.d.ts.map +0 -1
- package/dist/helpers/block.helpers.js.map +0 -1
- package/dist/helpers/file.helpers.d.ts.map +0 -1
- package/dist/helpers/file.helpers.js.map +0 -1
- package/dist/helpers/filter.helpers.d.ts.map +0 -1
- package/dist/helpers/filter.helpers.js.map +0 -1
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/helpers/index.js.map +0 -1
- package/dist/helpers/pagination.helpers.d.ts.map +0 -1
- package/dist/helpers/pagination.helpers.js.map +0 -1
- package/dist/helpers/parent.helpers.d.ts.map +0 -1
- package/dist/helpers/parent.helpers.js.map +0 -1
- package/dist/helpers/property.helpers.d.ts.map +0 -1
- package/dist/helpers/property.helpers.js.map +0 -1
- package/dist/helpers/richText.helpers.d.ts.map +0 -1
- package/dist/helpers/richText.helpers.js.map +0 -1
- package/dist/helpers/sort.helpers.d.ts.map +0 -1
- package/dist/helpers/sort.helpers.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/models/base.model.d.ts.map +0 -1
- package/dist/models/base.model.js.map +0 -1
- package/dist/models/block.model.d.ts.map +0 -1
- package/dist/models/block.model.js.map +0 -1
- package/dist/models/comment.model.d.ts.map +0 -1
- package/dist/models/comment.model.js.map +0 -1
- package/dist/models/dataSource.model.d.ts.map +0 -1
- package/dist/models/dataSource.model.js.map +0 -1
- package/dist/models/database.model.d.ts.map +0 -1
- package/dist/models/database.model.js.map +0 -1
- package/dist/models/fileUpload.model.d.ts.map +0 -1
- package/dist/models/fileUpload.model.js.map +0 -1
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/index.js.map +0 -1
- package/dist/models/page.model.d.ts.map +0 -1
- package/dist/models/page.model.js.map +0 -1
- package/dist/models/richText.model.d.ts.map +0 -1
- package/dist/models/richText.model.js.map +0 -1
- package/dist/models/user.model.d.ts.map +0 -1
- package/dist/models/user.model.js.map +0 -1
- package/dist/notion.d.ts.map +0 -1
- package/dist/notion.js.map +0 -1
- package/dist/schemas/block.schema.d.ts.map +0 -1
- package/dist/schemas/block.schema.js.map +0 -1
- package/dist/schemas/codeLanguages.d.ts.map +0 -1
- package/dist/schemas/codeLanguages.js.map +0 -1
- package/dist/schemas/colors.d.ts.map +0 -1
- package/dist/schemas/colors.js.map +0 -1
- package/dist/schemas/comment.schema.d.ts.map +0 -1
- package/dist/schemas/comment.schema.js.map +0 -1
- package/dist/schemas/dataSource.schema.d.ts.map +0 -1
- package/dist/schemas/dataSource.schema.js.map +0 -1
- package/dist/schemas/database.schema.d.ts.map +0 -1
- package/dist/schemas/database.schema.js.map +0 -1
- package/dist/schemas/emoji.schema.d.ts.map +0 -1
- package/dist/schemas/emoji.schema.js.map +0 -1
- package/dist/schemas/file.schema.d.ts.map +0 -1
- package/dist/schemas/file.schema.js.map +0 -1
- package/dist/schemas/fileUpload.schema.d.ts.map +0 -1
- package/dist/schemas/fileUpload.schema.js.map +0 -1
- package/dist/schemas/index.d.ts.map +0 -1
- package/dist/schemas/index.js.map +0 -1
- package/dist/schemas/page.schema.d.ts.map +0 -1
- package/dist/schemas/page.schema.js.map +0 -1
- package/dist/schemas/pageProperties.schema.d.ts.map +0 -1
- package/dist/schemas/pageProperties.schema.js.map +0 -1
- package/dist/schemas/pagination.schema.d.ts.map +0 -1
- package/dist/schemas/pagination.schema.js.map +0 -1
- package/dist/schemas/parent.schema.d.ts.map +0 -1
- package/dist/schemas/parent.schema.js.map +0 -1
- package/dist/schemas/propertyObjects.schema.d.ts.map +0 -1
- package/dist/schemas/propertyObjects.schema.js.map +0 -1
- package/dist/schemas/richText.schema.d.ts.map +0 -1
- package/dist/schemas/richText.schema.js.map +0 -1
- package/dist/schemas/user.schema.d.ts.map +0 -1
- package/dist/schemas/user.schema.js.map +0 -1
- package/dist/validation.d.ts.map +0 -1
- package/dist/validation.js.map +0 -1
|
@@ -1,13 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
36
|
exports.blockSchema = void 0;
|
|
4
|
-
const
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
5
38
|
const codeLanguages_1 = require("./codeLanguages");
|
|
6
39
|
const colors_1 = require("./colors");
|
|
7
40
|
const emoji_schema_1 = require("./emoji.schema");
|
|
8
41
|
const file_schema_1 = require("./file.schema");
|
|
9
42
|
const parent_schema_1 = require("./parent.schema");
|
|
10
43
|
const richText_schema_1 = require("./richText.schema");
|
|
44
|
+
const shared_schema_1 = require("./shared.schema");
|
|
11
45
|
const user_schema_1 = require("./user.schema");
|
|
12
46
|
/**
|
|
13
47
|
* Notion block object schema.
|
|
@@ -18,17 +52,24 @@ const user_schema_1 = require("./user.schema");
|
|
|
18
52
|
* Notion API reference:
|
|
19
53
|
* https://developers.notion.com/reference/block
|
|
20
54
|
*/
|
|
21
|
-
|
|
55
|
+
let childrenSchema;
|
|
56
|
+
const getChildrenSchema = () => {
|
|
57
|
+
childrenSchema ??= z.array(exports.blockSchema).optional();
|
|
58
|
+
return childrenSchema;
|
|
59
|
+
};
|
|
60
|
+
const headingsObjectSchema = z.object({
|
|
22
61
|
rich_text: richText_schema_1.richTextSchema,
|
|
23
|
-
color:
|
|
24
|
-
is_toggleable:
|
|
25
|
-
children
|
|
62
|
+
color: z.enum(colors_1.NOTION_COLORS),
|
|
63
|
+
is_toggleable: z.boolean(),
|
|
64
|
+
get children() {
|
|
65
|
+
return getChildrenSchema();
|
|
66
|
+
},
|
|
26
67
|
});
|
|
27
|
-
exports.blockSchema =
|
|
28
|
-
object:
|
|
29
|
-
id:
|
|
68
|
+
exports.blockSchema = z.object({
|
|
69
|
+
object: z.literal('block'),
|
|
70
|
+
id: z.uuid(),
|
|
30
71
|
parent: parent_schema_1.parentSchema,
|
|
31
|
-
type:
|
|
72
|
+
type: z.enum([
|
|
32
73
|
'audio',
|
|
33
74
|
'bookmark',
|
|
34
75
|
'breadcrumb',
|
|
@@ -59,168 +100,202 @@ exports.blockSchema = zod_1.z.object({
|
|
|
59
100
|
'template',
|
|
60
101
|
'to_do',
|
|
61
102
|
'toggle',
|
|
103
|
+
'transcription',
|
|
62
104
|
'unsupported',
|
|
63
105
|
'video',
|
|
64
106
|
]),
|
|
65
|
-
created_time:
|
|
107
|
+
created_time: shared_schema_1.notionDateStringSchema,
|
|
66
108
|
created_by: user_schema_1.userSchema,
|
|
67
|
-
last_edited_time:
|
|
109
|
+
last_edited_time: shared_schema_1.notionDateStringSchema,
|
|
68
110
|
last_edited_by: user_schema_1.userSchema,
|
|
69
|
-
archived:
|
|
70
|
-
in_trash:
|
|
71
|
-
has_children:
|
|
111
|
+
archived: z.boolean(),
|
|
112
|
+
in_trash: z.boolean(),
|
|
113
|
+
has_children: z.boolean(),
|
|
72
114
|
// Block-specific properties
|
|
73
115
|
audio: file_schema_1.fileSchema.optional(),
|
|
74
|
-
bookmark:
|
|
116
|
+
bookmark: z
|
|
75
117
|
.object({
|
|
76
118
|
caption: richText_schema_1.richTextSchema,
|
|
77
|
-
url:
|
|
119
|
+
url: z.url(),
|
|
78
120
|
})
|
|
79
121
|
.optional(),
|
|
80
|
-
breadcrumb:
|
|
81
|
-
bulleted_list_item:
|
|
122
|
+
breadcrumb: z.object({}).optional(),
|
|
123
|
+
bulleted_list_item: z
|
|
82
124
|
.object({
|
|
83
125
|
rich_text: richText_schema_1.richTextSchema,
|
|
84
|
-
color:
|
|
85
|
-
children
|
|
126
|
+
color: z.enum(colors_1.NOTION_COLORS),
|
|
127
|
+
get children() {
|
|
128
|
+
return getChildrenSchema();
|
|
129
|
+
},
|
|
86
130
|
})
|
|
87
131
|
.optional(),
|
|
88
|
-
callout:
|
|
132
|
+
callout: z
|
|
89
133
|
.object({
|
|
90
134
|
rich_text: richText_schema_1.richTextSchema,
|
|
91
|
-
icon:
|
|
92
|
-
color:
|
|
93
|
-
children
|
|
135
|
+
icon: z.union([emoji_schema_1.emojiSchema, file_schema_1.fileSchema]),
|
|
136
|
+
color: z.enum(colors_1.NOTION_COLORS),
|
|
137
|
+
get children() {
|
|
138
|
+
return getChildrenSchema();
|
|
139
|
+
},
|
|
94
140
|
})
|
|
95
141
|
.optional(),
|
|
96
|
-
child_database:
|
|
142
|
+
child_database: z
|
|
97
143
|
.object({
|
|
98
|
-
title:
|
|
144
|
+
title: z.string().trim(),
|
|
99
145
|
})
|
|
100
146
|
.optional(),
|
|
101
|
-
child_page:
|
|
147
|
+
child_page: z
|
|
102
148
|
.object({
|
|
103
|
-
title:
|
|
149
|
+
title: z.string().trim(),
|
|
104
150
|
})
|
|
105
151
|
.optional(),
|
|
106
|
-
code:
|
|
152
|
+
code: z
|
|
107
153
|
.object({
|
|
108
154
|
caption: richText_schema_1.richTextSchema,
|
|
109
155
|
rich_text: richText_schema_1.richTextSchema,
|
|
110
|
-
language:
|
|
156
|
+
language: z.enum(codeLanguages_1.CODE_BLOCK_LANGUAGES),
|
|
157
|
+
})
|
|
158
|
+
.optional(),
|
|
159
|
+
column_list: z.object({}).optional(),
|
|
160
|
+
column: z
|
|
161
|
+
.object({
|
|
162
|
+
width_ratio: z.number().min(0).max(1).optional(),
|
|
163
|
+
get children() {
|
|
164
|
+
return getChildrenSchema();
|
|
165
|
+
},
|
|
111
166
|
})
|
|
112
167
|
.optional(),
|
|
113
|
-
|
|
114
|
-
|
|
168
|
+
divider: z.object({}).optional(),
|
|
169
|
+
embed: z
|
|
115
170
|
.object({
|
|
116
|
-
|
|
117
|
-
children: zod_1.z.array(zod_1.z.any()).optional(),
|
|
171
|
+
url: z.url(),
|
|
118
172
|
})
|
|
119
173
|
.optional(),
|
|
120
|
-
|
|
121
|
-
embed: zod_1.z
|
|
174
|
+
equation: z
|
|
122
175
|
.object({
|
|
123
|
-
|
|
176
|
+
// eslint-disable-next-line zod/prefer-string-schema-with-trim -- LaTeX expression must preserve whitespace from Notion API
|
|
177
|
+
expression: z.string(),
|
|
124
178
|
})
|
|
125
179
|
.optional(),
|
|
126
|
-
|
|
127
|
-
file: zod_1.z
|
|
180
|
+
file: z
|
|
128
181
|
.object({
|
|
129
182
|
caption: richText_schema_1.richTextSchema,
|
|
130
|
-
type:
|
|
183
|
+
type: z.enum(['file', 'file_upload', 'external']),
|
|
131
184
|
file: file_schema_1.fileSchema.optional(),
|
|
132
185
|
external: file_schema_1.fileSchema.optional(),
|
|
133
186
|
file_upload: file_schema_1.fileSchema.optional(),
|
|
134
|
-
name:
|
|
187
|
+
name: z.string().trim().optional(),
|
|
135
188
|
})
|
|
136
189
|
.optional(),
|
|
137
|
-
heading_1:
|
|
138
|
-
heading_2:
|
|
139
|
-
heading_3:
|
|
190
|
+
heading_1: headingsObjectSchema.optional(),
|
|
191
|
+
heading_2: headingsObjectSchema.optional(),
|
|
192
|
+
heading_3: headingsObjectSchema.optional(),
|
|
140
193
|
image: file_schema_1.fileSchema.optional(),
|
|
141
|
-
link_preview:
|
|
142
|
-
numbered_list_item:
|
|
194
|
+
link_preview: z.object({ url: z.url() }).optional(),
|
|
195
|
+
numbered_list_item: z
|
|
143
196
|
.object({
|
|
144
197
|
rich_text: richText_schema_1.richTextSchema,
|
|
145
|
-
color:
|
|
146
|
-
list_start_index:
|
|
147
|
-
list_format:
|
|
148
|
-
children
|
|
198
|
+
color: z.enum(colors_1.NOTION_COLORS),
|
|
199
|
+
list_start_index: z.int().optional(),
|
|
200
|
+
list_format: z.enum(['numbers', 'letters', 'roman']).optional(),
|
|
201
|
+
get children() {
|
|
202
|
+
return getChildrenSchema();
|
|
203
|
+
},
|
|
149
204
|
})
|
|
150
205
|
.optional(),
|
|
151
|
-
paragraph:
|
|
206
|
+
paragraph: z
|
|
152
207
|
.object({
|
|
153
208
|
rich_text: richText_schema_1.richTextSchema,
|
|
154
|
-
color:
|
|
155
|
-
children
|
|
209
|
+
color: z.enum(colors_1.NOTION_COLORS),
|
|
210
|
+
get children() {
|
|
211
|
+
return getChildrenSchema();
|
|
212
|
+
},
|
|
156
213
|
})
|
|
157
214
|
.optional(),
|
|
158
|
-
pdf:
|
|
215
|
+
pdf: z
|
|
159
216
|
.object({
|
|
160
217
|
caption: richText_schema_1.richTextSchema,
|
|
161
|
-
type:
|
|
218
|
+
type: z.enum(['file', 'file_upload', 'external']),
|
|
162
219
|
file: file_schema_1.fileSchema.optional(),
|
|
163
220
|
external: file_schema_1.fileSchema.optional(),
|
|
164
221
|
file_upload: file_schema_1.fileSchema.optional(),
|
|
165
|
-
name:
|
|
222
|
+
name: z.string().trim().optional(),
|
|
166
223
|
})
|
|
167
224
|
.optional(),
|
|
168
|
-
quote:
|
|
225
|
+
quote: z
|
|
169
226
|
.object({
|
|
170
227
|
rich_text: richText_schema_1.richTextSchema,
|
|
171
|
-
color:
|
|
172
|
-
children
|
|
228
|
+
color: z.enum(colors_1.NOTION_COLORS),
|
|
229
|
+
get children() {
|
|
230
|
+
return getChildrenSchema();
|
|
231
|
+
},
|
|
173
232
|
})
|
|
174
233
|
.optional(),
|
|
175
|
-
synced_block:
|
|
234
|
+
synced_block: z
|
|
176
235
|
.object({
|
|
177
|
-
synced_from:
|
|
236
|
+
synced_from: z
|
|
178
237
|
.object({
|
|
179
|
-
type:
|
|
180
|
-
block_id:
|
|
238
|
+
type: z.literal('block_id'),
|
|
239
|
+
block_id: z.uuid(),
|
|
181
240
|
})
|
|
182
241
|
.nullable(),
|
|
183
|
-
children
|
|
242
|
+
get children() {
|
|
243
|
+
return getChildrenSchema();
|
|
244
|
+
},
|
|
184
245
|
})
|
|
185
246
|
.optional(),
|
|
186
|
-
table:
|
|
247
|
+
table: z
|
|
187
248
|
.object({
|
|
188
|
-
table_width:
|
|
189
|
-
has_column_header:
|
|
190
|
-
has_row_header:
|
|
249
|
+
table_width: z.int(),
|
|
250
|
+
has_column_header: z.boolean(),
|
|
251
|
+
has_row_header: z.boolean(),
|
|
191
252
|
})
|
|
192
253
|
.optional(),
|
|
193
|
-
table_of_contents:
|
|
254
|
+
table_of_contents: z
|
|
194
255
|
.object({
|
|
195
|
-
color:
|
|
256
|
+
color: z.enum(colors_1.NOTION_COLORS),
|
|
196
257
|
})
|
|
197
258
|
.optional(),
|
|
198
|
-
table_row:
|
|
259
|
+
table_row: z
|
|
199
260
|
.object({
|
|
200
|
-
cells:
|
|
261
|
+
cells: z.array(richText_schema_1.richTextSchema),
|
|
262
|
+
})
|
|
263
|
+
.optional(),
|
|
264
|
+
template: z
|
|
265
|
+
.object({
|
|
266
|
+
rich_text: richText_schema_1.richTextSchema,
|
|
267
|
+
get children() {
|
|
268
|
+
return getChildrenSchema();
|
|
269
|
+
},
|
|
201
270
|
})
|
|
202
271
|
.optional(),
|
|
203
|
-
|
|
272
|
+
to_do: z
|
|
204
273
|
.object({
|
|
205
274
|
rich_text: richText_schema_1.richTextSchema,
|
|
206
|
-
|
|
275
|
+
checked: z.boolean().optional(),
|
|
276
|
+
color: z.enum(colors_1.NOTION_COLORS),
|
|
277
|
+
get children() {
|
|
278
|
+
return getChildrenSchema();
|
|
279
|
+
},
|
|
207
280
|
})
|
|
208
281
|
.optional(),
|
|
209
|
-
|
|
282
|
+
toggle: z
|
|
210
283
|
.object({
|
|
211
284
|
rich_text: richText_schema_1.richTextSchema,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
285
|
+
color: z.enum(colors_1.NOTION_COLORS),
|
|
286
|
+
get children() {
|
|
287
|
+
return getChildrenSchema();
|
|
288
|
+
},
|
|
215
289
|
})
|
|
216
290
|
.optional(),
|
|
217
|
-
|
|
291
|
+
transcription: z
|
|
218
292
|
.object({
|
|
219
293
|
rich_text: richText_schema_1.richTextSchema,
|
|
220
|
-
|
|
221
|
-
|
|
294
|
+
get children() {
|
|
295
|
+
return getChildrenSchema();
|
|
296
|
+
},
|
|
222
297
|
})
|
|
223
298
|
.optional(),
|
|
299
|
+
unsupported: z.object({}).optional(),
|
|
224
300
|
video: file_schema_1.fileSchema.optional(),
|
|
225
301
|
});
|
|
226
|
-
//# sourceMappingURL=block.schema.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
/** All programming languages supported by Notion code blocks. */
|
|
2
2
|
export declare const CODE_BLOCK_LANGUAGES: readonly ["abap", "arduino", "bash", "basic", "c", "clojure", "coffeescript", "c++", "c#", "css", "dart", "diff", "docker", "elixir", "elm", "erlang", "flow", "fortran", "f#", "gherkin", "glsl", "go", "graphql", "groovy", "haskell", "html", "java", "javascript", "json", "julia", "kotlin", "latex", "less", "lisp", "livescript", "lua", "makefile", "markdown", "markup", "matlab", "mermaid", "nix", "objective-c", "ocaml", "pascal", "perl", "php", "plain text", "powershell", "prolog", "protobuf", "python", "r", "reason", "ruby", "rust", "sass", "scala", "scheme", "scss", "shell", "sql", "swift", "typescript", "vb.net", "verilog", "vhdl", "visual basic", "webassembly", "xml", "yaml", "java/c/c++/c#"];
|
|
3
3
|
export type CodeBlockLanguage = (typeof CODE_BLOCK_LANGUAGES)[number];
|
|
4
|
-
//# sourceMappingURL=codeLanguages.d.ts.map
|
package/dist/schemas/colors.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
/** All color options supported by Notion. */
|
|
2
2
|
export declare const NOTION_COLORS: readonly ["blue", "blue_background", "brown", "brown_background", "default", "gray", "gray_background", "green", "green_background", "orange", "orange_background", "pink", "pink_background", "purple", "purple_background", "red", "red_background", "yellow", "yellow_background"];
|
|
3
3
|
export type NotionColor = (typeof NOTION_COLORS)[number];
|
|
4
|
-
//# sourceMappingURL=colors.d.ts.map
|
package/dist/schemas/colors.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod';
|
|
2
2
|
/** Comment attachment schema. */
|
|
3
3
|
export declare const commentAttachmentSchema: z.ZodObject<{
|
|
4
4
|
category: z.ZodEnum<{
|
|
@@ -10,7 +10,7 @@ export declare const commentAttachmentSchema: z.ZodObject<{
|
|
|
10
10
|
}>;
|
|
11
11
|
file: z.ZodObject<{
|
|
12
12
|
url: z.ZodURL;
|
|
13
|
-
expiry_time: z.ZodISODateTime
|
|
13
|
+
expiry_time: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
16
|
export type CommentAttachment = z.infer<typeof commentAttachmentSchema>;
|
|
@@ -44,7 +44,7 @@ export declare const commentSchema: z.ZodObject<{
|
|
|
44
44
|
block_id: z.ZodUUID;
|
|
45
45
|
}, z.core.$strip>], "type">;
|
|
46
46
|
discussion_id: z.ZodUUID;
|
|
47
|
-
created_time: z.ZodISODateTime
|
|
47
|
+
created_time: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
|
|
48
48
|
created_by: z.ZodUnion<readonly [z.ZodObject<{
|
|
49
49
|
object: z.ZodLiteral<"user">;
|
|
50
50
|
id: z.ZodUUID;
|
|
@@ -70,14 +70,14 @@ export declare const commentSchema: z.ZodObject<{
|
|
|
70
70
|
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
71
|
workspace_id: z.ZodOptional<z.ZodString>;
|
|
72
72
|
workspace_limits: z.ZodOptional<z.ZodObject<{
|
|
73
|
-
max_file_upload_size_in_bytes: z.
|
|
73
|
+
max_file_upload_size_in_bytes: z.ZodInt;
|
|
74
74
|
}, z.core.$strip>>;
|
|
75
75
|
}, z.core.$strip>;
|
|
76
76
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
77
|
object: z.ZodLiteral<"user">;
|
|
78
78
|
id: z.ZodUUID;
|
|
79
79
|
}, z.core.$strip>]>;
|
|
80
|
-
last_edited_time: z.ZodISODateTime
|
|
80
|
+
last_edited_time: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
|
|
81
81
|
rich_text: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
82
82
|
type: z.ZodLiteral<"text">;
|
|
83
83
|
text: z.ZodObject<{
|
|
@@ -126,8 +126,8 @@ export declare const commentSchema: z.ZodObject<{
|
|
|
126
126
|
}, z.core.$strip>, z.ZodObject<{
|
|
127
127
|
type: z.ZodLiteral<"date">;
|
|
128
128
|
date: z.ZodObject<{
|
|
129
|
-
start: z.
|
|
130
|
-
end: z.ZodNullable<z.
|
|
129
|
+
start: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
|
|
130
|
+
end: z.ZodNullable<z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>>;
|
|
131
131
|
time_zone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
132
|
}, z.core.$strip>;
|
|
133
133
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -179,7 +179,7 @@ export declare const commentSchema: z.ZodObject<{
|
|
|
179
179
|
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
180
180
|
workspace_id: z.ZodOptional<z.ZodString>;
|
|
181
181
|
workspace_limits: z.ZodOptional<z.ZodObject<{
|
|
182
|
-
max_file_upload_size_in_bytes: z.
|
|
182
|
+
max_file_upload_size_in_bytes: z.ZodInt;
|
|
183
183
|
}, z.core.$strip>>;
|
|
184
184
|
}, z.core.$strip>;
|
|
185
185
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -263,7 +263,7 @@ export declare const commentSchema: z.ZodObject<{
|
|
|
263
263
|
}>;
|
|
264
264
|
file: z.ZodObject<{
|
|
265
265
|
url: z.ZodURL;
|
|
266
|
-
expiry_time: z.ZodISODateTime
|
|
266
|
+
expiry_time: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
|
|
267
267
|
}, z.core.$strip>;
|
|
268
268
|
}, z.core.$strip>>>;
|
|
269
269
|
display_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -275,4 +275,3 @@ export declare const commentSchema: z.ZodObject<{
|
|
|
275
275
|
}, z.core.$strip>]>>;
|
|
276
276
|
}, z.core.$strip>;
|
|
277
277
|
export type NotionComment = z.infer<typeof commentSchema>;
|
|
278
|
-
//# sourceMappingURL=comment.schema.d.ts.map
|
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
36
|
exports.commentSchema = exports.commentDisplayNameSchema = exports.commentAttachmentSchema = void 0;
|
|
4
|
-
const
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
5
38
|
const parent_schema_1 = require("./parent.schema");
|
|
6
39
|
const richText_schema_1 = require("./richText.schema");
|
|
40
|
+
const shared_schema_1 = require("./shared.schema");
|
|
7
41
|
const user_schema_1 = require("./user.schema");
|
|
8
42
|
/**
|
|
9
43
|
* Notion comment object schema.
|
|
@@ -15,36 +49,35 @@ const user_schema_1 = require("./user.schema");
|
|
|
15
49
|
* https://developers.notion.com/reference/comment-object
|
|
16
50
|
*/
|
|
17
51
|
/** Comment attachment file schema. */
|
|
18
|
-
const commentAttachmentFileSchema =
|
|
19
|
-
url:
|
|
20
|
-
expiry_time:
|
|
52
|
+
const commentAttachmentFileSchema = z.object({
|
|
53
|
+
url: z.url(),
|
|
54
|
+
expiry_time: shared_schema_1.notionDateStringSchema,
|
|
21
55
|
});
|
|
22
56
|
/** Comment attachment schema. */
|
|
23
|
-
exports.commentAttachmentSchema =
|
|
24
|
-
category:
|
|
57
|
+
exports.commentAttachmentSchema = z.object({
|
|
58
|
+
category: z.enum(['image', 'video', 'file', 'audio', 'pdf']),
|
|
25
59
|
file: commentAttachmentFileSchema,
|
|
26
60
|
});
|
|
27
61
|
/** Comment display name schema (user or custom). */
|
|
28
|
-
exports.commentDisplayNameSchema =
|
|
29
|
-
|
|
30
|
-
type:
|
|
31
|
-
resolved_name:
|
|
62
|
+
exports.commentDisplayNameSchema = z.union([
|
|
63
|
+
z.object({
|
|
64
|
+
type: z.literal('user'),
|
|
65
|
+
resolved_name: z.string().trim(),
|
|
32
66
|
}),
|
|
33
|
-
|
|
34
|
-
type:
|
|
35
|
-
resolved_name:
|
|
67
|
+
z.object({
|
|
68
|
+
type: z.literal('custom'),
|
|
69
|
+
resolved_name: z.string().trim(),
|
|
36
70
|
}),
|
|
37
71
|
]);
|
|
38
|
-
exports.commentSchema =
|
|
39
|
-
object:
|
|
40
|
-
id:
|
|
72
|
+
exports.commentSchema = z.object({
|
|
73
|
+
object: z.literal('comment'),
|
|
74
|
+
id: z.uuid(),
|
|
41
75
|
parent: parent_schema_1.parentSchema,
|
|
42
|
-
discussion_id:
|
|
43
|
-
created_time:
|
|
76
|
+
discussion_id: z.uuid(),
|
|
77
|
+
created_time: shared_schema_1.notionDateStringSchema,
|
|
44
78
|
created_by: user_schema_1.userSchema,
|
|
45
|
-
last_edited_time:
|
|
79
|
+
last_edited_time: shared_schema_1.notionDateStringSchema,
|
|
46
80
|
rich_text: richText_schema_1.richTextSchema,
|
|
47
|
-
attachments:
|
|
81
|
+
attachments: z.array(exports.commentAttachmentSchema).optional(),
|
|
48
82
|
display_name: exports.commentDisplayNameSchema.optional(),
|
|
49
83
|
});
|
|
50
|
-
//# sourceMappingURL=comment.schema.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* Notion data source object schema.
|
|
4
4
|
*
|
|
@@ -329,7 +329,7 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
329
329
|
type: z.ZodLiteral<"block_id">;
|
|
330
330
|
block_id: z.ZodUUID;
|
|
331
331
|
}, z.core.$strip>], "type">;
|
|
332
|
-
created_time: z.ZodISODateTime
|
|
332
|
+
created_time: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
|
|
333
333
|
created_by: z.ZodUnion<readonly [z.ZodObject<{
|
|
334
334
|
object: z.ZodLiteral<"user">;
|
|
335
335
|
id: z.ZodUUID;
|
|
@@ -355,14 +355,14 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
355
355
|
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
356
356
|
workspace_id: z.ZodOptional<z.ZodString>;
|
|
357
357
|
workspace_limits: z.ZodOptional<z.ZodObject<{
|
|
358
|
-
max_file_upload_size_in_bytes: z.
|
|
358
|
+
max_file_upload_size_in_bytes: z.ZodInt;
|
|
359
359
|
}, z.core.$strip>>;
|
|
360
360
|
}, z.core.$strip>;
|
|
361
361
|
}, z.core.$strip>, z.ZodObject<{
|
|
362
362
|
object: z.ZodLiteral<"user">;
|
|
363
363
|
id: z.ZodUUID;
|
|
364
364
|
}, z.core.$strip>]>;
|
|
365
|
-
last_edited_time: z.ZodISODateTime
|
|
365
|
+
last_edited_time: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
|
|
366
366
|
last_edited_by: z.ZodUnion<readonly [z.ZodObject<{
|
|
367
367
|
object: z.ZodLiteral<"user">;
|
|
368
368
|
id: z.ZodUUID;
|
|
@@ -388,7 +388,7 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
388
388
|
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
389
389
|
workspace_id: z.ZodOptional<z.ZodString>;
|
|
390
390
|
workspace_limits: z.ZodOptional<z.ZodObject<{
|
|
391
|
-
max_file_upload_size_in_bytes: z.
|
|
391
|
+
max_file_upload_size_in_bytes: z.ZodInt;
|
|
392
392
|
}, z.core.$strip>>;
|
|
393
393
|
}, z.core.$strip>;
|
|
394
394
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -443,8 +443,8 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
443
443
|
}, z.core.$strip>, z.ZodObject<{
|
|
444
444
|
type: z.ZodLiteral<"date">;
|
|
445
445
|
date: z.ZodObject<{
|
|
446
|
-
start: z.
|
|
447
|
-
end: z.ZodNullable<z.
|
|
446
|
+
start: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
|
|
447
|
+
end: z.ZodNullable<z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>>;
|
|
448
448
|
time_zone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
449
449
|
}, z.core.$strip>;
|
|
450
450
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -496,7 +496,7 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
496
496
|
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
497
497
|
workspace_id: z.ZodOptional<z.ZodString>;
|
|
498
498
|
workspace_limits: z.ZodOptional<z.ZodObject<{
|
|
499
|
-
max_file_upload_size_in_bytes: z.
|
|
499
|
+
max_file_upload_size_in_bytes: z.ZodInt;
|
|
500
500
|
}, z.core.$strip>>;
|
|
501
501
|
}, z.core.$strip>;
|
|
502
502
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -618,8 +618,8 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
618
618
|
}, z.core.$strip>, z.ZodObject<{
|
|
619
619
|
type: z.ZodLiteral<"date">;
|
|
620
620
|
date: z.ZodObject<{
|
|
621
|
-
start: z.
|
|
622
|
-
end: z.ZodNullable<z.
|
|
621
|
+
start: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
|
|
622
|
+
end: z.ZodNullable<z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>>;
|
|
623
623
|
time_zone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
624
624
|
}, z.core.$strip>;
|
|
625
625
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -671,7 +671,7 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
671
671
|
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
672
672
|
workspace_id: z.ZodOptional<z.ZodString>;
|
|
673
673
|
workspace_limits: z.ZodOptional<z.ZodObject<{
|
|
674
|
-
max_file_upload_size_in_bytes: z.
|
|
674
|
+
max_file_upload_size_in_bytes: z.ZodInt;
|
|
675
675
|
}, z.core.$strip>>;
|
|
676
676
|
}, z.core.$strip>;
|
|
677
677
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -749,7 +749,7 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
749
749
|
type: z.ZodLiteral<"file">;
|
|
750
750
|
file: z.ZodObject<{
|
|
751
751
|
url: z.ZodURL;
|
|
752
|
-
expiry_time: z.ZodISODateTime
|
|
752
|
+
expiry_time: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
|
|
753
753
|
}, z.core.$strip>;
|
|
754
754
|
}, z.core.$strip>, z.ZodObject<{
|
|
755
755
|
type: z.ZodLiteral<"file_upload">;
|
|
@@ -769,7 +769,7 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
769
769
|
type: z.ZodLiteral<"file">;
|
|
770
770
|
file: z.ZodObject<{
|
|
771
771
|
url: z.ZodURL;
|
|
772
|
-
expiry_time: z.ZodISODateTime
|
|
772
|
+
expiry_time: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
|
|
773
773
|
}, z.core.$strip>;
|
|
774
774
|
}, z.core.$strip>, z.ZodObject<{
|
|
775
775
|
type: z.ZodLiteral<"file_upload">;
|
|
@@ -789,4 +789,3 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
789
789
|
in_trash: z.ZodBoolean;
|
|
790
790
|
}, z.core.$strip>;
|
|
791
791
|
export type NotionDataSource = z.infer<typeof dataSourceSchema>;
|
|
792
|
-
//# sourceMappingURL=dataSource.schema.d.ts.map
|