@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,6 +1,7 @@
|
|
|
1
1
|
import type { NotionClient } from '../client';
|
|
2
|
-
import { type PaginatedList, type PaginationParameters } from '../schemas';
|
|
2
|
+
import { type NotionDataSource, type PaginatedList, type PaginationParameters } from '../schemas';
|
|
3
3
|
import { DataSource, Page } from '../models';
|
|
4
|
+
import { BaseAPI } from './base.api';
|
|
4
5
|
/**
|
|
5
6
|
* Parent for creating a data source.
|
|
6
7
|
*/
|
|
@@ -89,8 +90,792 @@ export interface QueryDataSourceOptions extends PaginationParameters {
|
|
|
89
90
|
* Data sources are individual tables of data that live under a Notion database.
|
|
90
91
|
* As of API version 2025-09-03, data sources have their own API endpoints.
|
|
91
92
|
*/
|
|
92
|
-
export declare class DataSourcesAPI {
|
|
93
|
-
|
|
93
|
+
export declare class DataSourcesAPI extends BaseAPI<NotionDataSource, DataSource> {
|
|
94
|
+
protected readonly client: NotionClient;
|
|
95
|
+
protected config: {
|
|
96
|
+
schema: import("zod").ZodObject<{
|
|
97
|
+
object: import("zod").ZodLiteral<"data_source">;
|
|
98
|
+
id: import("zod").ZodUUID;
|
|
99
|
+
properties: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
100
|
+
type: import("zod").ZodLiteral<"checkbox">;
|
|
101
|
+
id: import("zod").ZodString;
|
|
102
|
+
name: import("zod").ZodString;
|
|
103
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
104
|
+
checkbox: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
105
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
106
|
+
type: import("zod").ZodLiteral<"created_by">;
|
|
107
|
+
id: import("zod").ZodString;
|
|
108
|
+
name: import("zod").ZodString;
|
|
109
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
110
|
+
created_by: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
111
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
112
|
+
type: import("zod").ZodLiteral<"created_time">;
|
|
113
|
+
id: import("zod").ZodString;
|
|
114
|
+
name: import("zod").ZodString;
|
|
115
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
116
|
+
created_time: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
117
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
118
|
+
type: import("zod").ZodLiteral<"date">;
|
|
119
|
+
id: import("zod").ZodString;
|
|
120
|
+
name: import("zod").ZodString;
|
|
121
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
122
|
+
date: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
123
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
124
|
+
type: import("zod").ZodLiteral<"email">;
|
|
125
|
+
id: import("zod").ZodString;
|
|
126
|
+
name: import("zod").ZodString;
|
|
127
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
128
|
+
email: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
129
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
130
|
+
type: import("zod").ZodLiteral<"files">;
|
|
131
|
+
id: import("zod").ZodString;
|
|
132
|
+
name: import("zod").ZodString;
|
|
133
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
134
|
+
files: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
135
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
136
|
+
type: import("zod").ZodLiteral<"formula">;
|
|
137
|
+
id: import("zod").ZodString;
|
|
138
|
+
name: import("zod").ZodString;
|
|
139
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
140
|
+
formula: import("zod").ZodObject<{
|
|
141
|
+
expression: import("zod").ZodString;
|
|
142
|
+
}, import("zod/v4/core").$strip>;
|
|
143
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
144
|
+
type: import("zod").ZodLiteral<"last_edited_by">;
|
|
145
|
+
id: import("zod").ZodString;
|
|
146
|
+
name: import("zod").ZodString;
|
|
147
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
148
|
+
last_edited_by: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
149
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
150
|
+
type: import("zod").ZodLiteral<"last_edited_time">;
|
|
151
|
+
id: import("zod").ZodString;
|
|
152
|
+
name: import("zod").ZodString;
|
|
153
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
154
|
+
last_edited_time: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
155
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
156
|
+
type: import("zod").ZodLiteral<"multi_select">;
|
|
157
|
+
id: import("zod").ZodString;
|
|
158
|
+
name: import("zod").ZodString;
|
|
159
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
160
|
+
multi_select: import("zod").ZodObject<{
|
|
161
|
+
options: import("zod").ZodArray<import("zod").ZodObject<{
|
|
162
|
+
id: import("zod").ZodString;
|
|
163
|
+
name: import("zod").ZodString;
|
|
164
|
+
color: import("zod").ZodEnum<{
|
|
165
|
+
blue: "blue";
|
|
166
|
+
brown: "brown";
|
|
167
|
+
default: "default";
|
|
168
|
+
gray: "gray";
|
|
169
|
+
green: "green";
|
|
170
|
+
orange: "orange";
|
|
171
|
+
pink: "pink";
|
|
172
|
+
purple: "purple";
|
|
173
|
+
red: "red";
|
|
174
|
+
yellow: "yellow";
|
|
175
|
+
}>;
|
|
176
|
+
}, import("zod/v4/core").$strip>>;
|
|
177
|
+
}, import("zod/v4/core").$strip>;
|
|
178
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
179
|
+
type: import("zod").ZodLiteral<"number">;
|
|
180
|
+
id: import("zod").ZodString;
|
|
181
|
+
name: import("zod").ZodString;
|
|
182
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
183
|
+
number: import("zod").ZodObject<{
|
|
184
|
+
format: import("zod").ZodEnum<{
|
|
185
|
+
number: "number";
|
|
186
|
+
argentine_peso: "argentine_peso";
|
|
187
|
+
baht: "baht";
|
|
188
|
+
australian_dollar: "australian_dollar";
|
|
189
|
+
canadian_dollar: "canadian_dollar";
|
|
190
|
+
chilean_peso: "chilean_peso";
|
|
191
|
+
colombian_peso: "colombian_peso";
|
|
192
|
+
danish_krone: "danish_krone";
|
|
193
|
+
dirham: "dirham";
|
|
194
|
+
dollar: "dollar";
|
|
195
|
+
euro: "euro";
|
|
196
|
+
forint: "forint";
|
|
197
|
+
franc: "franc";
|
|
198
|
+
hong_kong_dollar: "hong_kong_dollar";
|
|
199
|
+
koruna: "koruna";
|
|
200
|
+
krona: "krona";
|
|
201
|
+
leu: "leu";
|
|
202
|
+
lira: "lira";
|
|
203
|
+
mexican_peso: "mexican_peso";
|
|
204
|
+
new_taiwan_dollar: "new_taiwan_dollar";
|
|
205
|
+
new_zealand_dollar: "new_zealand_dollar";
|
|
206
|
+
norwegian_krone: "norwegian_krone";
|
|
207
|
+
number_with_commas: "number_with_commas";
|
|
208
|
+
percent: "percent";
|
|
209
|
+
philippine_peso: "philippine_peso";
|
|
210
|
+
pound: "pound";
|
|
211
|
+
peruvian_sol: "peruvian_sol";
|
|
212
|
+
rand: "rand";
|
|
213
|
+
real: "real";
|
|
214
|
+
ringgit: "ringgit";
|
|
215
|
+
riyal: "riyal";
|
|
216
|
+
ruble: "ruble";
|
|
217
|
+
rupee: "rupee";
|
|
218
|
+
rupiah: "rupiah";
|
|
219
|
+
shekel: "shekel";
|
|
220
|
+
singapore_dollar: "singapore_dollar";
|
|
221
|
+
uruguayan_peso: "uruguayan_peso";
|
|
222
|
+
yen: "yen";
|
|
223
|
+
yuan: "yuan";
|
|
224
|
+
won: "won";
|
|
225
|
+
zloty: "zloty";
|
|
226
|
+
}>;
|
|
227
|
+
}, import("zod/v4/core").$strip>;
|
|
228
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
229
|
+
type: import("zod").ZodLiteral<"people">;
|
|
230
|
+
id: import("zod").ZodString;
|
|
231
|
+
name: import("zod").ZodString;
|
|
232
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
233
|
+
people: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
234
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
235
|
+
type: import("zod").ZodLiteral<"phone_number">;
|
|
236
|
+
id: import("zod").ZodString;
|
|
237
|
+
name: import("zod").ZodString;
|
|
238
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
239
|
+
phone_number: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
240
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
241
|
+
type: import("zod").ZodLiteral<"place">;
|
|
242
|
+
id: import("zod").ZodString;
|
|
243
|
+
name: import("zod").ZodString;
|
|
244
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
245
|
+
place: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
246
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
247
|
+
type: import("zod").ZodLiteral<"relation">;
|
|
248
|
+
id: import("zod").ZodString;
|
|
249
|
+
name: import("zod").ZodString;
|
|
250
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
251
|
+
relation: import("zod").ZodObject<{
|
|
252
|
+
data_source_id: import("zod").ZodUUID;
|
|
253
|
+
synced_property_id: import("zod").ZodString;
|
|
254
|
+
synced_property_name: import("zod").ZodString;
|
|
255
|
+
}, import("zod/v4/core").$strip>;
|
|
256
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
257
|
+
type: import("zod").ZodLiteral<"rich_text">;
|
|
258
|
+
id: import("zod").ZodString;
|
|
259
|
+
name: import("zod").ZodString;
|
|
260
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
261
|
+
rich_text: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
262
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
263
|
+
type: import("zod").ZodLiteral<"rollup">;
|
|
264
|
+
id: import("zod").ZodString;
|
|
265
|
+
name: import("zod").ZodString;
|
|
266
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
267
|
+
rollup: import("zod").ZodObject<{
|
|
268
|
+
rollup_property_name: import("zod").ZodString;
|
|
269
|
+
relation_property_name: import("zod").ZodString;
|
|
270
|
+
rollup_property_id: import("zod").ZodString;
|
|
271
|
+
relation_property_id: import("zod").ZodString;
|
|
272
|
+
function: import("zod").ZodEnum<{
|
|
273
|
+
range: "range";
|
|
274
|
+
checked: "checked";
|
|
275
|
+
average: "average";
|
|
276
|
+
count_per_group: "count_per_group";
|
|
277
|
+
count: "count";
|
|
278
|
+
count_values: "count_values";
|
|
279
|
+
date_range: "date_range";
|
|
280
|
+
earliest_date: "earliest_date";
|
|
281
|
+
empty: "empty";
|
|
282
|
+
latest_date: "latest_date";
|
|
283
|
+
max: "max";
|
|
284
|
+
median: "median";
|
|
285
|
+
min: "min";
|
|
286
|
+
not_empty: "not_empty";
|
|
287
|
+
percent_checked: "percent_checked";
|
|
288
|
+
percent_empty: "percent_empty";
|
|
289
|
+
percent_not_empty: "percent_not_empty";
|
|
290
|
+
percent_per_group: "percent_per_group";
|
|
291
|
+
percent_unchecked: "percent_unchecked";
|
|
292
|
+
unchecked: "unchecked";
|
|
293
|
+
unique: "unique";
|
|
294
|
+
show_original: "show_original";
|
|
295
|
+
show_unique: "show_unique";
|
|
296
|
+
sum: "sum";
|
|
297
|
+
}>;
|
|
298
|
+
}, import("zod/v4/core").$strip>;
|
|
299
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
300
|
+
type: import("zod").ZodLiteral<"select">;
|
|
301
|
+
id: import("zod").ZodString;
|
|
302
|
+
name: import("zod").ZodString;
|
|
303
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
304
|
+
select: import("zod").ZodObject<{
|
|
305
|
+
options: import("zod").ZodArray<import("zod").ZodObject<{
|
|
306
|
+
id: import("zod").ZodString;
|
|
307
|
+
name: import("zod").ZodString;
|
|
308
|
+
color: import("zod").ZodEnum<{
|
|
309
|
+
blue: "blue";
|
|
310
|
+
brown: "brown";
|
|
311
|
+
default: "default";
|
|
312
|
+
gray: "gray";
|
|
313
|
+
green: "green";
|
|
314
|
+
orange: "orange";
|
|
315
|
+
pink: "pink";
|
|
316
|
+
purple: "purple";
|
|
317
|
+
red: "red";
|
|
318
|
+
yellow: "yellow";
|
|
319
|
+
}>;
|
|
320
|
+
}, import("zod/v4/core").$strip>>;
|
|
321
|
+
}, import("zod/v4/core").$strip>;
|
|
322
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
323
|
+
type: import("zod").ZodLiteral<"status">;
|
|
324
|
+
id: import("zod").ZodString;
|
|
325
|
+
name: import("zod").ZodString;
|
|
326
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
327
|
+
status: import("zod").ZodObject<{
|
|
328
|
+
options: import("zod").ZodArray<import("zod").ZodObject<{
|
|
329
|
+
id: import("zod").ZodString;
|
|
330
|
+
name: import("zod").ZodString;
|
|
331
|
+
color: import("zod").ZodEnum<{
|
|
332
|
+
blue: "blue";
|
|
333
|
+
brown: "brown";
|
|
334
|
+
default: "default";
|
|
335
|
+
gray: "gray";
|
|
336
|
+
green: "green";
|
|
337
|
+
orange: "orange";
|
|
338
|
+
pink: "pink";
|
|
339
|
+
purple: "purple";
|
|
340
|
+
red: "red";
|
|
341
|
+
yellow: "yellow";
|
|
342
|
+
}>;
|
|
343
|
+
}, import("zod/v4/core").$strip>>;
|
|
344
|
+
groups: import("zod").ZodArray<import("zod").ZodObject<{
|
|
345
|
+
id: import("zod").ZodString;
|
|
346
|
+
name: import("zod").ZodString;
|
|
347
|
+
color: import("zod").ZodEnum<{
|
|
348
|
+
blue: "blue";
|
|
349
|
+
brown: "brown";
|
|
350
|
+
default: "default";
|
|
351
|
+
gray: "gray";
|
|
352
|
+
green: "green";
|
|
353
|
+
orange: "orange";
|
|
354
|
+
pink: "pink";
|
|
355
|
+
purple: "purple";
|
|
356
|
+
red: "red";
|
|
357
|
+
yellow: "yellow";
|
|
358
|
+
}>;
|
|
359
|
+
option_ids: import("zod").ZodArray<import("zod").ZodString>;
|
|
360
|
+
}, import("zod/v4/core").$strip>>;
|
|
361
|
+
}, import("zod/v4/core").$strip>;
|
|
362
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
363
|
+
type: import("zod").ZodLiteral<"title">;
|
|
364
|
+
id: import("zod").ZodString;
|
|
365
|
+
name: import("zod").ZodString;
|
|
366
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
367
|
+
title: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
368
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
369
|
+
type: import("zod").ZodLiteral<"url">;
|
|
370
|
+
id: import("zod").ZodString;
|
|
371
|
+
name: import("zod").ZodString;
|
|
372
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
373
|
+
url: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
374
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
375
|
+
type: import("zod").ZodLiteral<"unique_id">;
|
|
376
|
+
id: import("zod").ZodString;
|
|
377
|
+
name: import("zod").ZodString;
|
|
378
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
379
|
+
unique_id: import("zod").ZodObject<{
|
|
380
|
+
prefix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
381
|
+
}, import("zod/v4/core").$strip>;
|
|
382
|
+
}, import("zod/v4/core").$strip>], "type">>;
|
|
383
|
+
parent: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
384
|
+
type: import("zod").ZodLiteral<"database_id">;
|
|
385
|
+
database_id: import("zod").ZodUUID;
|
|
386
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
387
|
+
type: import("zod").ZodLiteral<"data_source_id">;
|
|
388
|
+
data_source_id: import("zod").ZodUUID;
|
|
389
|
+
database_id: import("zod").ZodUUID;
|
|
390
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
391
|
+
type: import("zod").ZodLiteral<"page_id">;
|
|
392
|
+
page_id: import("zod").ZodUUID;
|
|
393
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
394
|
+
type: import("zod").ZodLiteral<"workspace">;
|
|
395
|
+
workspace: import("zod").ZodLiteral<true>;
|
|
396
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
397
|
+
type: import("zod").ZodLiteral<"block_id">;
|
|
398
|
+
block_id: import("zod").ZodUUID;
|
|
399
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
400
|
+
database_parent: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
401
|
+
type: import("zod").ZodLiteral<"database_id">;
|
|
402
|
+
database_id: import("zod").ZodUUID;
|
|
403
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
404
|
+
type: import("zod").ZodLiteral<"data_source_id">;
|
|
405
|
+
data_source_id: import("zod").ZodUUID;
|
|
406
|
+
database_id: import("zod").ZodUUID;
|
|
407
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
408
|
+
type: import("zod").ZodLiteral<"page_id">;
|
|
409
|
+
page_id: import("zod").ZodUUID;
|
|
410
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
411
|
+
type: import("zod").ZodLiteral<"workspace">;
|
|
412
|
+
workspace: import("zod").ZodLiteral<true>;
|
|
413
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
414
|
+
type: import("zod").ZodLiteral<"block_id">;
|
|
415
|
+
block_id: import("zod").ZodUUID;
|
|
416
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
417
|
+
created_time: import("zod").ZodUnion<readonly [import("zod").ZodISODateTime, import("zod").ZodISODate]>;
|
|
418
|
+
created_by: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
419
|
+
object: import("zod").ZodLiteral<"user">;
|
|
420
|
+
id: import("zod").ZodUUID;
|
|
421
|
+
type: import("zod").ZodLiteral<"person">;
|
|
422
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
423
|
+
avatar_url: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodURL, import("zod").ZodNull]>>;
|
|
424
|
+
person: import("zod").ZodObject<{
|
|
425
|
+
email: import("zod").ZodEmail;
|
|
426
|
+
}, import("zod/v4/core").$strip>;
|
|
427
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
428
|
+
object: import("zod").ZodLiteral<"user">;
|
|
429
|
+
id: import("zod").ZodUUID;
|
|
430
|
+
type: import("zod").ZodLiteral<"bot">;
|
|
431
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
432
|
+
avatar_url: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodURL, import("zod").ZodNull]>>;
|
|
433
|
+
bot: import("zod").ZodObject<{
|
|
434
|
+
owner: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
435
|
+
type: import("zod").ZodLiteral<"workspace">;
|
|
436
|
+
workspace: import("zod").ZodLiteral<true>;
|
|
437
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
438
|
+
type: import("zod").ZodLiteral<"user">;
|
|
439
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
440
|
+
workspace_name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
441
|
+
workspace_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
442
|
+
workspace_limits: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
443
|
+
max_file_upload_size_in_bytes: import("zod").ZodInt;
|
|
444
|
+
}, import("zod/v4/core").$strip>>;
|
|
445
|
+
}, import("zod/v4/core").$strip>;
|
|
446
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
447
|
+
object: import("zod").ZodLiteral<"user">;
|
|
448
|
+
id: import("zod").ZodUUID;
|
|
449
|
+
}, import("zod/v4/core").$strip>]>;
|
|
450
|
+
last_edited_time: import("zod").ZodUnion<readonly [import("zod").ZodISODateTime, import("zod").ZodISODate]>;
|
|
451
|
+
last_edited_by: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
452
|
+
object: import("zod").ZodLiteral<"user">;
|
|
453
|
+
id: import("zod").ZodUUID;
|
|
454
|
+
type: import("zod").ZodLiteral<"person">;
|
|
455
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
456
|
+
avatar_url: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodURL, import("zod").ZodNull]>>;
|
|
457
|
+
person: import("zod").ZodObject<{
|
|
458
|
+
email: import("zod").ZodEmail;
|
|
459
|
+
}, import("zod/v4/core").$strip>;
|
|
460
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
461
|
+
object: import("zod").ZodLiteral<"user">;
|
|
462
|
+
id: import("zod").ZodUUID;
|
|
463
|
+
type: import("zod").ZodLiteral<"bot">;
|
|
464
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
465
|
+
avatar_url: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodURL, import("zod").ZodNull]>>;
|
|
466
|
+
bot: import("zod").ZodObject<{
|
|
467
|
+
owner: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
468
|
+
type: import("zod").ZodLiteral<"workspace">;
|
|
469
|
+
workspace: import("zod").ZodLiteral<true>;
|
|
470
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
471
|
+
type: import("zod").ZodLiteral<"user">;
|
|
472
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
473
|
+
workspace_name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
474
|
+
workspace_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
475
|
+
workspace_limits: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
476
|
+
max_file_upload_size_in_bytes: import("zod").ZodInt;
|
|
477
|
+
}, import("zod/v4/core").$strip>>;
|
|
478
|
+
}, import("zod/v4/core").$strip>;
|
|
479
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
480
|
+
object: import("zod").ZodLiteral<"user">;
|
|
481
|
+
id: import("zod").ZodUUID;
|
|
482
|
+
}, import("zod/v4/core").$strip>]>;
|
|
483
|
+
title: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
484
|
+
type: import("zod").ZodLiteral<"text">;
|
|
485
|
+
text: import("zod").ZodObject<{
|
|
486
|
+
content: import("zod").ZodString;
|
|
487
|
+
link: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
488
|
+
url: import("zod").ZodURL;
|
|
489
|
+
}, import("zod/v4/core").$strip>>;
|
|
490
|
+
}, import("zod/v4/core").$strip>;
|
|
491
|
+
annotations: import("zod").ZodObject<{
|
|
492
|
+
bold: import("zod").ZodBoolean;
|
|
493
|
+
italic: import("zod").ZodBoolean;
|
|
494
|
+
strikethrough: import("zod").ZodBoolean;
|
|
495
|
+
underline: import("zod").ZodBoolean;
|
|
496
|
+
code: import("zod").ZodBoolean;
|
|
497
|
+
color: import("zod").ZodEnum<{
|
|
498
|
+
blue: "blue";
|
|
499
|
+
blue_background: "blue_background";
|
|
500
|
+
brown: "brown";
|
|
501
|
+
brown_background: "brown_background";
|
|
502
|
+
default: "default";
|
|
503
|
+
gray: "gray";
|
|
504
|
+
gray_background: "gray_background";
|
|
505
|
+
green: "green";
|
|
506
|
+
green_background: "green_background";
|
|
507
|
+
orange: "orange";
|
|
508
|
+
orange_background: "orange_background";
|
|
509
|
+
pink: "pink";
|
|
510
|
+
pink_background: "pink_background";
|
|
511
|
+
purple: "purple";
|
|
512
|
+
purple_background: "purple_background";
|
|
513
|
+
red: "red";
|
|
514
|
+
red_background: "red_background";
|
|
515
|
+
yellow: "yellow";
|
|
516
|
+
yellow_background: "yellow_background";
|
|
517
|
+
}>;
|
|
518
|
+
}, import("zod/v4/core").$strip>;
|
|
519
|
+
plain_text: import("zod").ZodString;
|
|
520
|
+
href: import("zod").ZodNullable<import("zod").ZodURL>;
|
|
521
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
522
|
+
type: import("zod").ZodLiteral<"mention">;
|
|
523
|
+
mention: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
524
|
+
type: import("zod").ZodLiteral<"database">;
|
|
525
|
+
database: import("zod").ZodObject<{
|
|
526
|
+
id: import("zod").ZodUUID;
|
|
527
|
+
}, import("zod/v4/core").$strip>;
|
|
528
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
529
|
+
type: import("zod").ZodLiteral<"date">;
|
|
530
|
+
date: import("zod").ZodObject<{
|
|
531
|
+
start: import("zod").ZodUnion<readonly [import("zod").ZodISODateTime, import("zod").ZodISODate]>;
|
|
532
|
+
end: import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodISODateTime, import("zod").ZodISODate]>>;
|
|
533
|
+
time_zone: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
534
|
+
}, import("zod/v4/core").$strip>;
|
|
535
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
536
|
+
type: import("zod").ZodLiteral<"link_preview">;
|
|
537
|
+
link_preview: import("zod").ZodObject<{
|
|
538
|
+
url: import("zod").ZodURL;
|
|
539
|
+
}, import("zod/v4/core").$strip>;
|
|
540
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
541
|
+
type: import("zod").ZodLiteral<"page">;
|
|
542
|
+
page: import("zod").ZodObject<{
|
|
543
|
+
id: import("zod").ZodUUID;
|
|
544
|
+
}, import("zod/v4/core").$strip>;
|
|
545
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
546
|
+
type: import("zod").ZodLiteral<"template_mention">;
|
|
547
|
+
template_mention: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
548
|
+
type: import("zod").ZodLiteral<"template_mention_date">;
|
|
549
|
+
template_mention_date: import("zod").ZodEnum<{
|
|
550
|
+
today: "today";
|
|
551
|
+
now: "now";
|
|
552
|
+
}>;
|
|
553
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
554
|
+
type: import("zod").ZodLiteral<"template_mention_user">;
|
|
555
|
+
template_mention_user: import("zod").ZodLiteral<"me">;
|
|
556
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
557
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
558
|
+
type: import("zod").ZodLiteral<"user">;
|
|
559
|
+
user: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
560
|
+
object: import("zod").ZodLiteral<"user">;
|
|
561
|
+
id: import("zod").ZodUUID;
|
|
562
|
+
type: import("zod").ZodLiteral<"person">;
|
|
563
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
564
|
+
avatar_url: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodURL, import("zod").ZodNull]>>;
|
|
565
|
+
person: import("zod").ZodObject<{
|
|
566
|
+
email: import("zod").ZodEmail;
|
|
567
|
+
}, import("zod/v4/core").$strip>;
|
|
568
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
569
|
+
object: import("zod").ZodLiteral<"user">;
|
|
570
|
+
id: import("zod").ZodUUID;
|
|
571
|
+
type: import("zod").ZodLiteral<"bot">;
|
|
572
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
573
|
+
avatar_url: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodURL, import("zod").ZodNull]>>;
|
|
574
|
+
bot: import("zod").ZodObject<{
|
|
575
|
+
owner: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
576
|
+
type: import("zod").ZodLiteral<"workspace">;
|
|
577
|
+
workspace: import("zod").ZodLiteral<true>;
|
|
578
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
579
|
+
type: import("zod").ZodLiteral<"user">;
|
|
580
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
581
|
+
workspace_name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
582
|
+
workspace_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
583
|
+
workspace_limits: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
584
|
+
max_file_upload_size_in_bytes: import("zod").ZodInt;
|
|
585
|
+
}, import("zod/v4/core").$strip>>;
|
|
586
|
+
}, import("zod/v4/core").$strip>;
|
|
587
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
588
|
+
object: import("zod").ZodLiteral<"user">;
|
|
589
|
+
id: import("zod").ZodUUID;
|
|
590
|
+
}, import("zod/v4/core").$strip>]>;
|
|
591
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
592
|
+
annotations: import("zod").ZodObject<{
|
|
593
|
+
bold: import("zod").ZodBoolean;
|
|
594
|
+
italic: import("zod").ZodBoolean;
|
|
595
|
+
strikethrough: import("zod").ZodBoolean;
|
|
596
|
+
underline: import("zod").ZodBoolean;
|
|
597
|
+
code: import("zod").ZodBoolean;
|
|
598
|
+
color: import("zod").ZodEnum<{
|
|
599
|
+
blue: "blue";
|
|
600
|
+
blue_background: "blue_background";
|
|
601
|
+
brown: "brown";
|
|
602
|
+
brown_background: "brown_background";
|
|
603
|
+
default: "default";
|
|
604
|
+
gray: "gray";
|
|
605
|
+
gray_background: "gray_background";
|
|
606
|
+
green: "green";
|
|
607
|
+
green_background: "green_background";
|
|
608
|
+
orange: "orange";
|
|
609
|
+
orange_background: "orange_background";
|
|
610
|
+
pink: "pink";
|
|
611
|
+
pink_background: "pink_background";
|
|
612
|
+
purple: "purple";
|
|
613
|
+
purple_background: "purple_background";
|
|
614
|
+
red: "red";
|
|
615
|
+
red_background: "red_background";
|
|
616
|
+
yellow: "yellow";
|
|
617
|
+
yellow_background: "yellow_background";
|
|
618
|
+
}>;
|
|
619
|
+
}, import("zod/v4/core").$strip>;
|
|
620
|
+
plain_text: import("zod").ZodString;
|
|
621
|
+
href: import("zod").ZodNullable<import("zod").ZodURL>;
|
|
622
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
623
|
+
type: import("zod").ZodLiteral<"equation">;
|
|
624
|
+
equation: import("zod").ZodObject<{
|
|
625
|
+
expression: import("zod").ZodString;
|
|
626
|
+
}, import("zod/v4/core").$strip>;
|
|
627
|
+
annotations: import("zod").ZodObject<{
|
|
628
|
+
bold: import("zod").ZodBoolean;
|
|
629
|
+
italic: import("zod").ZodBoolean;
|
|
630
|
+
strikethrough: import("zod").ZodBoolean;
|
|
631
|
+
underline: import("zod").ZodBoolean;
|
|
632
|
+
code: import("zod").ZodBoolean;
|
|
633
|
+
color: import("zod").ZodEnum<{
|
|
634
|
+
blue: "blue";
|
|
635
|
+
blue_background: "blue_background";
|
|
636
|
+
brown: "brown";
|
|
637
|
+
brown_background: "brown_background";
|
|
638
|
+
default: "default";
|
|
639
|
+
gray: "gray";
|
|
640
|
+
gray_background: "gray_background";
|
|
641
|
+
green: "green";
|
|
642
|
+
green_background: "green_background";
|
|
643
|
+
orange: "orange";
|
|
644
|
+
orange_background: "orange_background";
|
|
645
|
+
pink: "pink";
|
|
646
|
+
pink_background: "pink_background";
|
|
647
|
+
purple: "purple";
|
|
648
|
+
purple_background: "purple_background";
|
|
649
|
+
red: "red";
|
|
650
|
+
red_background: "red_background";
|
|
651
|
+
yellow: "yellow";
|
|
652
|
+
yellow_background: "yellow_background";
|
|
653
|
+
}>;
|
|
654
|
+
}, import("zod/v4/core").$strip>;
|
|
655
|
+
plain_text: import("zod").ZodString;
|
|
656
|
+
href: import("zod").ZodNullable<import("zod").ZodURL>;
|
|
657
|
+
}, import("zod/v4/core").$strip>], "type">>;
|
|
658
|
+
description: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
659
|
+
type: import("zod").ZodLiteral<"text">;
|
|
660
|
+
text: import("zod").ZodObject<{
|
|
661
|
+
content: import("zod").ZodString;
|
|
662
|
+
link: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
663
|
+
url: import("zod").ZodURL;
|
|
664
|
+
}, import("zod/v4/core").$strip>>;
|
|
665
|
+
}, import("zod/v4/core").$strip>;
|
|
666
|
+
annotations: import("zod").ZodObject<{
|
|
667
|
+
bold: import("zod").ZodBoolean;
|
|
668
|
+
italic: import("zod").ZodBoolean;
|
|
669
|
+
strikethrough: import("zod").ZodBoolean;
|
|
670
|
+
underline: import("zod").ZodBoolean;
|
|
671
|
+
code: import("zod").ZodBoolean;
|
|
672
|
+
color: import("zod").ZodEnum<{
|
|
673
|
+
blue: "blue";
|
|
674
|
+
blue_background: "blue_background";
|
|
675
|
+
brown: "brown";
|
|
676
|
+
brown_background: "brown_background";
|
|
677
|
+
default: "default";
|
|
678
|
+
gray: "gray";
|
|
679
|
+
gray_background: "gray_background";
|
|
680
|
+
green: "green";
|
|
681
|
+
green_background: "green_background";
|
|
682
|
+
orange: "orange";
|
|
683
|
+
orange_background: "orange_background";
|
|
684
|
+
pink: "pink";
|
|
685
|
+
pink_background: "pink_background";
|
|
686
|
+
purple: "purple";
|
|
687
|
+
purple_background: "purple_background";
|
|
688
|
+
red: "red";
|
|
689
|
+
red_background: "red_background";
|
|
690
|
+
yellow: "yellow";
|
|
691
|
+
yellow_background: "yellow_background";
|
|
692
|
+
}>;
|
|
693
|
+
}, import("zod/v4/core").$strip>;
|
|
694
|
+
plain_text: import("zod").ZodString;
|
|
695
|
+
href: import("zod").ZodNullable<import("zod").ZodURL>;
|
|
696
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
697
|
+
type: import("zod").ZodLiteral<"mention">;
|
|
698
|
+
mention: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
699
|
+
type: import("zod").ZodLiteral<"database">;
|
|
700
|
+
database: import("zod").ZodObject<{
|
|
701
|
+
id: import("zod").ZodUUID;
|
|
702
|
+
}, import("zod/v4/core").$strip>;
|
|
703
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
704
|
+
type: import("zod").ZodLiteral<"date">;
|
|
705
|
+
date: import("zod").ZodObject<{
|
|
706
|
+
start: import("zod").ZodUnion<readonly [import("zod").ZodISODateTime, import("zod").ZodISODate]>;
|
|
707
|
+
end: import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodISODateTime, import("zod").ZodISODate]>>;
|
|
708
|
+
time_zone: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
709
|
+
}, import("zod/v4/core").$strip>;
|
|
710
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
711
|
+
type: import("zod").ZodLiteral<"link_preview">;
|
|
712
|
+
link_preview: import("zod").ZodObject<{
|
|
713
|
+
url: import("zod").ZodURL;
|
|
714
|
+
}, import("zod/v4/core").$strip>;
|
|
715
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
716
|
+
type: import("zod").ZodLiteral<"page">;
|
|
717
|
+
page: import("zod").ZodObject<{
|
|
718
|
+
id: import("zod").ZodUUID;
|
|
719
|
+
}, import("zod/v4/core").$strip>;
|
|
720
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
721
|
+
type: import("zod").ZodLiteral<"template_mention">;
|
|
722
|
+
template_mention: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
723
|
+
type: import("zod").ZodLiteral<"template_mention_date">;
|
|
724
|
+
template_mention_date: import("zod").ZodEnum<{
|
|
725
|
+
today: "today";
|
|
726
|
+
now: "now";
|
|
727
|
+
}>;
|
|
728
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
729
|
+
type: import("zod").ZodLiteral<"template_mention_user">;
|
|
730
|
+
template_mention_user: import("zod").ZodLiteral<"me">;
|
|
731
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
732
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
733
|
+
type: import("zod").ZodLiteral<"user">;
|
|
734
|
+
user: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
735
|
+
object: import("zod").ZodLiteral<"user">;
|
|
736
|
+
id: import("zod").ZodUUID;
|
|
737
|
+
type: import("zod").ZodLiteral<"person">;
|
|
738
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
739
|
+
avatar_url: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodURL, import("zod").ZodNull]>>;
|
|
740
|
+
person: import("zod").ZodObject<{
|
|
741
|
+
email: import("zod").ZodEmail;
|
|
742
|
+
}, import("zod/v4/core").$strip>;
|
|
743
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
744
|
+
object: import("zod").ZodLiteral<"user">;
|
|
745
|
+
id: import("zod").ZodUUID;
|
|
746
|
+
type: import("zod").ZodLiteral<"bot">;
|
|
747
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
748
|
+
avatar_url: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodURL, import("zod").ZodNull]>>;
|
|
749
|
+
bot: import("zod").ZodObject<{
|
|
750
|
+
owner: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
751
|
+
type: import("zod").ZodLiteral<"workspace">;
|
|
752
|
+
workspace: import("zod").ZodLiteral<true>;
|
|
753
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
754
|
+
type: import("zod").ZodLiteral<"user">;
|
|
755
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
756
|
+
workspace_name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
757
|
+
workspace_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
758
|
+
workspace_limits: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
759
|
+
max_file_upload_size_in_bytes: import("zod").ZodInt;
|
|
760
|
+
}, import("zod/v4/core").$strip>>;
|
|
761
|
+
}, import("zod/v4/core").$strip>;
|
|
762
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
763
|
+
object: import("zod").ZodLiteral<"user">;
|
|
764
|
+
id: import("zod").ZodUUID;
|
|
765
|
+
}, import("zod/v4/core").$strip>]>;
|
|
766
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
767
|
+
annotations: import("zod").ZodObject<{
|
|
768
|
+
bold: import("zod").ZodBoolean;
|
|
769
|
+
italic: import("zod").ZodBoolean;
|
|
770
|
+
strikethrough: import("zod").ZodBoolean;
|
|
771
|
+
underline: import("zod").ZodBoolean;
|
|
772
|
+
code: import("zod").ZodBoolean;
|
|
773
|
+
color: import("zod").ZodEnum<{
|
|
774
|
+
blue: "blue";
|
|
775
|
+
blue_background: "blue_background";
|
|
776
|
+
brown: "brown";
|
|
777
|
+
brown_background: "brown_background";
|
|
778
|
+
default: "default";
|
|
779
|
+
gray: "gray";
|
|
780
|
+
gray_background: "gray_background";
|
|
781
|
+
green: "green";
|
|
782
|
+
green_background: "green_background";
|
|
783
|
+
orange: "orange";
|
|
784
|
+
orange_background: "orange_background";
|
|
785
|
+
pink: "pink";
|
|
786
|
+
pink_background: "pink_background";
|
|
787
|
+
purple: "purple";
|
|
788
|
+
purple_background: "purple_background";
|
|
789
|
+
red: "red";
|
|
790
|
+
red_background: "red_background";
|
|
791
|
+
yellow: "yellow";
|
|
792
|
+
yellow_background: "yellow_background";
|
|
793
|
+
}>;
|
|
794
|
+
}, import("zod/v4/core").$strip>;
|
|
795
|
+
plain_text: import("zod").ZodString;
|
|
796
|
+
href: import("zod").ZodNullable<import("zod").ZodURL>;
|
|
797
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
798
|
+
type: import("zod").ZodLiteral<"equation">;
|
|
799
|
+
equation: import("zod").ZodObject<{
|
|
800
|
+
expression: import("zod").ZodString;
|
|
801
|
+
}, import("zod/v4/core").$strip>;
|
|
802
|
+
annotations: import("zod").ZodObject<{
|
|
803
|
+
bold: import("zod").ZodBoolean;
|
|
804
|
+
italic: import("zod").ZodBoolean;
|
|
805
|
+
strikethrough: import("zod").ZodBoolean;
|
|
806
|
+
underline: import("zod").ZodBoolean;
|
|
807
|
+
code: import("zod").ZodBoolean;
|
|
808
|
+
color: import("zod").ZodEnum<{
|
|
809
|
+
blue: "blue";
|
|
810
|
+
blue_background: "blue_background";
|
|
811
|
+
brown: "brown";
|
|
812
|
+
brown_background: "brown_background";
|
|
813
|
+
default: "default";
|
|
814
|
+
gray: "gray";
|
|
815
|
+
gray_background: "gray_background";
|
|
816
|
+
green: "green";
|
|
817
|
+
green_background: "green_background";
|
|
818
|
+
orange: "orange";
|
|
819
|
+
orange_background: "orange_background";
|
|
820
|
+
pink: "pink";
|
|
821
|
+
pink_background: "pink_background";
|
|
822
|
+
purple: "purple";
|
|
823
|
+
purple_background: "purple_background";
|
|
824
|
+
red: "red";
|
|
825
|
+
red_background: "red_background";
|
|
826
|
+
yellow: "yellow";
|
|
827
|
+
yellow_background: "yellow_background";
|
|
828
|
+
}>;
|
|
829
|
+
}, import("zod/v4/core").$strip>;
|
|
830
|
+
plain_text: import("zod").ZodString;
|
|
831
|
+
href: import("zod").ZodNullable<import("zod").ZodURL>;
|
|
832
|
+
}, import("zod/v4/core").$strip>], "type">>;
|
|
833
|
+
icon: import("zod").ZodNullable<import("zod").ZodUnion<readonly [import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
834
|
+
type: import("zod").ZodLiteral<"file">;
|
|
835
|
+
file: import("zod").ZodObject<{
|
|
836
|
+
url: import("zod").ZodURL;
|
|
837
|
+
expiry_time: import("zod").ZodUnion<readonly [import("zod").ZodISODateTime, import("zod").ZodISODate]>;
|
|
838
|
+
}, import("zod/v4/core").$strip>;
|
|
839
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
840
|
+
type: import("zod").ZodLiteral<"file_upload">;
|
|
841
|
+
file_upload: import("zod").ZodObject<{
|
|
842
|
+
id: import("zod").ZodUUID;
|
|
843
|
+
}, import("zod/v4/core").$strip>;
|
|
844
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
845
|
+
type: import("zod").ZodLiteral<"external">;
|
|
846
|
+
external: import("zod").ZodObject<{
|
|
847
|
+
url: import("zod").ZodURL;
|
|
848
|
+
}, import("zod/v4/core").$strip>;
|
|
849
|
+
}, import("zod/v4/core").$strip>], "type">, import("zod").ZodObject<{
|
|
850
|
+
type: import("zod").ZodLiteral<"emoji">;
|
|
851
|
+
emoji: import("zod").ZodString;
|
|
852
|
+
}, import("zod/v4/core").$strip>]>>;
|
|
853
|
+
cover: import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
854
|
+
type: import("zod").ZodLiteral<"file">;
|
|
855
|
+
file: import("zod").ZodObject<{
|
|
856
|
+
url: import("zod").ZodURL;
|
|
857
|
+
expiry_time: import("zod").ZodUnion<readonly [import("zod").ZodISODateTime, import("zod").ZodISODate]>;
|
|
858
|
+
}, import("zod/v4/core").$strip>;
|
|
859
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
860
|
+
type: import("zod").ZodLiteral<"file_upload">;
|
|
861
|
+
file_upload: import("zod").ZodObject<{
|
|
862
|
+
id: import("zod").ZodUUID;
|
|
863
|
+
}, import("zod/v4/core").$strip>;
|
|
864
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
865
|
+
type: import("zod").ZodLiteral<"external">;
|
|
866
|
+
external: import("zod").ZodObject<{
|
|
867
|
+
url: import("zod").ZodURL;
|
|
868
|
+
}, import("zod/v4/core").$strip>;
|
|
869
|
+
}, import("zod/v4/core").$strip>], "type">>;
|
|
870
|
+
url: import("zod").ZodURL;
|
|
871
|
+
public_url: import("zod").ZodUnion<readonly [import("zod").ZodURL, import("zod").ZodNull]>;
|
|
872
|
+
is_inline: import("zod").ZodBoolean;
|
|
873
|
+
archived: import("zod").ZodBoolean;
|
|
874
|
+
in_trash: import("zod").ZodBoolean;
|
|
875
|
+
}, import("zod/v4/core").$strip>;
|
|
876
|
+
ModelClass: typeof DataSource;
|
|
877
|
+
listType: "data_source";
|
|
878
|
+
};
|
|
94
879
|
constructor(client: NotionClient);
|
|
95
880
|
/**
|
|
96
881
|
* Retrieve a data source by ID.
|
|
@@ -161,4 +946,3 @@ export declare class DataSourcesAPI {
|
|
|
161
946
|
*/
|
|
162
947
|
untrash(dataSourceId: string): Promise<DataSource>;
|
|
163
948
|
}
|
|
164
|
-
//# sourceMappingURL=dataSources.api.d.ts.map
|