@notionhq/client 5.14.0 → 5.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/README.md +45 -9
  2. package/build/package.json +1 -1
  3. package/build/src/Client.d.ts +7 -1
  4. package/build/src/Client.d.ts.map +1 -1
  5. package/build/src/Client.js +21 -5
  6. package/build/src/Client.js.map +1 -1
  7. package/build/src/api-endpoints/blocks.d.ts +1010 -0
  8. package/build/src/api-endpoints/blocks.d.ts.map +1 -0
  9. package/build/src/api-endpoints/blocks.js +90 -0
  10. package/build/src/api-endpoints/blocks.js.map +1 -0
  11. package/build/src/api-endpoints/comments.d.ts +112 -0
  12. package/build/src/api-endpoints/comments.d.ts.map +1 -0
  13. package/build/src/api-endpoints/comments.js +42 -0
  14. package/build/src/api-endpoints/comments.js.map +1 -0
  15. package/build/src/api-endpoints/common.d.ts +1976 -0
  16. package/build/src/api-endpoints/common.d.ts.map +1 -0
  17. package/build/src/api-endpoints/common.js +5 -0
  18. package/build/src/api-endpoints/common.js.map +1 -0
  19. package/build/src/api-endpoints/custom-emojis.d.ts +26 -0
  20. package/build/src/api-endpoints/custom-emojis.d.ts.map +1 -0
  21. package/build/src/api-endpoints/custom-emojis.js +16 -0
  22. package/build/src/api-endpoints/custom-emojis.js.map +1 -0
  23. package/build/src/api-endpoints/data-sources.d.ts +430 -0
  24. package/build/src/api-endpoints/data-sources.d.ts.map +1 -0
  25. package/build/src/api-endpoints/data-sources.js +64 -0
  26. package/build/src/api-endpoints/data-sources.js.map +1 -0
  27. package/build/src/api-endpoints/databases.d.ts +109 -0
  28. package/build/src/api-endpoints/databases.d.ts.map +1 -0
  29. package/build/src/api-endpoints/databases.js +53 -0
  30. package/build/src/api-endpoints/databases.js.map +1 -0
  31. package/build/src/api-endpoints/file-uploads.d.ts +138 -0
  32. package/build/src/api-endpoints/file-uploads.d.ts.map +1 -0
  33. package/build/src/api-endpoints/file-uploads.js +63 -0
  34. package/build/src/api-endpoints/file-uploads.js.map +1 -0
  35. package/build/src/api-endpoints/oauth.d.ts +90 -0
  36. package/build/src/api-endpoints/oauth.d.ts.map +1 -0
  37. package/build/src/api-endpoints/oauth.js +42 -0
  38. package/build/src/api-endpoints/oauth.js.map +1 -0
  39. package/build/src/api-endpoints/pages.d.ts +639 -0
  40. package/build/src/api-endpoints/pages.d.ts.map +1 -0
  41. package/build/src/api-endpoints/pages.js +102 -0
  42. package/build/src/api-endpoints/pages.js.map +1 -0
  43. package/build/src/api-endpoints/search.d.ts +36 -0
  44. package/build/src/api-endpoints/search.d.ts.map +1 -0
  45. package/build/src/api-endpoints/search.js +16 -0
  46. package/build/src/api-endpoints/search.js.map +1 -0
  47. package/build/src/api-endpoints/users.d.ts +53 -0
  48. package/build/src/api-endpoints/users.d.ts.map +1 -0
  49. package/build/src/api-endpoints/users.js +36 -0
  50. package/build/src/api-endpoints/users.js.map +1 -0
  51. package/build/src/api-endpoints/views.d.ts +504 -0
  52. package/build/src/api-endpoints/views.d.ts.map +1 -0
  53. package/build/src/api-endpoints/views.js +86 -0
  54. package/build/src/api-endpoints/views.js.map +1 -0
  55. package/build/src/api-endpoints/webhooks.d.ts +302 -0
  56. package/build/src/api-endpoints/webhooks.d.ts.map +1 -0
  57. package/build/src/api-endpoints/webhooks.js +5 -0
  58. package/build/src/api-endpoints/webhooks.js.map +1 -0
  59. package/build/src/api-endpoints.d.ts +13 -4916
  60. package/build/src/api-endpoints.d.ts.map +1 -1
  61. package/build/src/api-endpoints.js +31 -533
  62. package/build/src/api-endpoints.js.map +1 -1
  63. package/build/src/constants.d.ts +32 -0
  64. package/build/src/constants.d.ts.map +1 -0
  65. package/build/src/constants.js +35 -0
  66. package/build/src/constants.js.map +1 -0
  67. package/build/src/errors.d.ts +2 -1
  68. package/build/src/errors.d.ts.map +1 -1
  69. package/build/src/errors.js +3 -0
  70. package/build/src/errors.js.map +1 -1
  71. package/build/src/index.d.ts +2 -1
  72. package/build/src/index.d.ts.map +1 -1
  73. package/build/src/index.js +8 -1
  74. package/build/src/index.js.map +1 -1
  75. package/package.json +1 -1
@@ -0,0 +1,430 @@
1
+ import type { DataSourceParentResponse, DatabaseParentResponse, EmptyObject, GroupFilterOperatorArray, IdRequest, IdResponse, NumberFormat, PageCoverResponse, PageIconRequest, PageIconResponse, PageObjectResponse, ParentOfDataSourceRequest, ParentOfDatabaseResponse, PartialPageObjectResponse, PartialUserObjectResponse, PropertyConfigurationRequest, PropertyDescriptionRequest, PropertyFilter, RichTextItemRequest, RichTextItemResponse, RollupFunction, SelectColor, StatusPropertyConfigUpdateRequest, TimestampFilter } from "./common";
2
+ type CheckboxDatabasePropertyConfigResponse = {
3
+ type: "checkbox";
4
+ checkbox: EmptyObject;
5
+ };
6
+ type CreatedByDatabasePropertyConfigResponse = {
7
+ type: "created_by";
8
+ created_by: EmptyObject;
9
+ };
10
+ type CreatedTimeDatabasePropertyConfigResponse = {
11
+ type: "created_time";
12
+ created_time: EmptyObject;
13
+ };
14
+ export type DataSourceObjectResponse = {
15
+ object: "data_source";
16
+ id: IdResponse;
17
+ title: Array<RichTextItemResponse>;
18
+ description: Array<RichTextItemResponse>;
19
+ parent: ParentOfDataSourceResponse;
20
+ database_parent: ParentOfDatabaseResponse;
21
+ is_inline: boolean;
22
+ in_trash: boolean;
23
+ /** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
24
+ archived: boolean;
25
+ created_time: string;
26
+ last_edited_time: string;
27
+ created_by: PartialUserObjectResponse;
28
+ last_edited_by: PartialUserObjectResponse;
29
+ properties: Record<string, DatabasePropertyConfigResponse>;
30
+ icon: PageIconResponse | null;
31
+ cover: PageCoverResponse | null;
32
+ url: string;
33
+ public_url: string | null;
34
+ };
35
+ type DatabasePropertyConfigResponse = DatabasePropertyConfigResponseCommon & (NumberDatabasePropertyConfigResponse | FormulaDatabasePropertyConfigResponse | SelectDatabasePropertyConfigResponse | MultiSelectDatabasePropertyConfigResponse | StatusDatabasePropertyConfigResponse | RelationDatabasePropertyConfigResponse | RollupDatabasePropertyConfigResponse | UniqueIdDatabasePropertyConfigResponse | TitleDatabasePropertyConfigResponse | RichTextDatabasePropertyConfigResponse | UrlDatabasePropertyConfigResponse | PeopleDatabasePropertyConfigResponse | FilesDatabasePropertyConfigResponse | EmailDatabasePropertyConfigResponse | PhoneNumberDatabasePropertyConfigResponse | DateDatabasePropertyConfigResponse | CheckboxDatabasePropertyConfigResponse | CreatedByDatabasePropertyConfigResponse | CreatedTimeDatabasePropertyConfigResponse | LastEditedByDatabasePropertyConfigResponse | LastEditedTimeDatabasePropertyConfigResponse);
36
+ type DatabasePropertyConfigResponseCommon = {
37
+ id: string;
38
+ name: string;
39
+ description: PropertyDescriptionRequest | null;
40
+ };
41
+ type DatabasePropertyRelationConfigResponse = DatabasePropertyRelationConfigResponseCommon & (SinglePropertyDatabasePropertyRelationConfigResponse | DualPropertyDatabasePropertyRelationConfigResponse);
42
+ type DatabasePropertyRelationConfigResponseCommon = {
43
+ database_id: IdResponse;
44
+ data_source_id: IdResponse;
45
+ };
46
+ type DateDatabasePropertyConfigResponse = {
47
+ type: "date";
48
+ date: EmptyObject;
49
+ };
50
+ type DualPropertyDatabasePropertyRelationConfigResponse = {
51
+ type?: "dual_property";
52
+ dual_property: {
53
+ synced_property_id: string;
54
+ synced_property_name: string;
55
+ };
56
+ };
57
+ type EmailDatabasePropertyConfigResponse = {
58
+ type: "email";
59
+ email: EmptyObject;
60
+ };
61
+ type FilesDatabasePropertyConfigResponse = {
62
+ type: "files";
63
+ files: EmptyObject;
64
+ };
65
+ type FormulaDatabasePropertyConfigResponse = {
66
+ type: "formula";
67
+ formula: {
68
+ expression: string;
69
+ };
70
+ };
71
+ type LastEditedByDatabasePropertyConfigResponse = {
72
+ type: "last_edited_by";
73
+ last_edited_by: EmptyObject;
74
+ };
75
+ type LastEditedTimeDatabasePropertyConfigResponse = {
76
+ type: "last_edited_time";
77
+ last_edited_time: EmptyObject;
78
+ };
79
+ type MultiSelectDatabasePropertyConfigResponse = {
80
+ type: "multi_select";
81
+ multi_select: {
82
+ options: Array<SelectPropertyResponse>;
83
+ };
84
+ };
85
+ type NumberDatabasePropertyConfigResponse = {
86
+ type: "number";
87
+ number: {
88
+ format: NumberFormat;
89
+ };
90
+ };
91
+ /**
92
+ * The parent of the data source. This is typically a database (`database_id`), but for
93
+ * externally synced data sources, can be another data source (`data_source_id`).
94
+ */
95
+ type ParentOfDataSourceResponse = DatabaseParentResponse | DataSourceParentResponse;
96
+ export type PartialDataSourceObjectResponse = {
97
+ object: "data_source";
98
+ id: IdResponse;
99
+ properties: Record<string, DatabasePropertyConfigResponse>;
100
+ };
101
+ type PeopleDatabasePropertyConfigResponse = {
102
+ type: "people";
103
+ people: EmptyObject;
104
+ };
105
+ type PhoneNumberDatabasePropertyConfigResponse = {
106
+ type: "phone_number";
107
+ phone_number: EmptyObject;
108
+ };
109
+ type RelationDatabasePropertyConfigResponse = {
110
+ type: "relation";
111
+ relation: DatabasePropertyRelationConfigResponse;
112
+ };
113
+ type RichTextDatabasePropertyConfigResponse = {
114
+ type: "rich_text";
115
+ rich_text: EmptyObject;
116
+ };
117
+ type RollupDatabasePropertyConfigResponse = {
118
+ type: "rollup";
119
+ rollup: {
120
+ function: RollupFunction;
121
+ rollup_property_name: string;
122
+ relation_property_name: string;
123
+ rollup_property_id: string;
124
+ relation_property_id: string;
125
+ };
126
+ };
127
+ type SelectDatabasePropertyConfigResponse = {
128
+ type: "select";
129
+ select: {
130
+ options: Array<SelectPropertyResponse>;
131
+ };
132
+ };
133
+ type SelectPropertyResponse = {
134
+ id: string;
135
+ name: string;
136
+ color: SelectColor;
137
+ description: string | null;
138
+ };
139
+ type SinglePropertyDatabasePropertyRelationConfigResponse = {
140
+ type: "single_property";
141
+ single_property: EmptyObject;
142
+ };
143
+ type StatusDatabasePropertyConfigResponse = {
144
+ type: "status";
145
+ status: {
146
+ options: Array<StatusPropertyResponse>;
147
+ groups: Array<{
148
+ id: string;
149
+ name: string;
150
+ color: SelectColor;
151
+ option_ids: Array<string>;
152
+ }>;
153
+ };
154
+ };
155
+ type StatusPropertyResponse = {
156
+ id: string;
157
+ name: string;
158
+ color: SelectColor;
159
+ description: string | null;
160
+ };
161
+ type TitleDatabasePropertyConfigResponse = {
162
+ type: "title";
163
+ title: EmptyObject;
164
+ };
165
+ type UniqueIdDatabasePropertyConfigResponse = {
166
+ type: "unique_id";
167
+ unique_id: {
168
+ prefix: string | null;
169
+ };
170
+ };
171
+ type UrlDatabasePropertyConfigResponse = {
172
+ type: "url";
173
+ url: EmptyObject;
174
+ };
175
+ type GetDataSourcePathParameters = {
176
+ data_source_id: IdRequest;
177
+ };
178
+ export type GetDataSourceParameters = GetDataSourcePathParameters;
179
+ export type GetDataSourceResponse = PartialDataSourceObjectResponse | DataSourceObjectResponse;
180
+ /**
181
+ * Retrieve a data source
182
+ */
183
+ export declare const getDataSource: {
184
+ readonly method: "get";
185
+ readonly pathParams: readonly ["data_source_id"];
186
+ readonly queryParams: readonly [];
187
+ readonly bodyParams: readonly [];
188
+ readonly path: (p: GetDataSourcePathParameters) => string;
189
+ };
190
+ type UpdateDataSourcePathParameters = {
191
+ data_source_id: IdRequest;
192
+ };
193
+ type UpdateDataSourceBodyParameters = {
194
+ title?: Array<RichTextItemRequest>;
195
+ icon?: PageIconRequest | null;
196
+ properties?: Record<string, ({
197
+ name?: string;
198
+ description?: PropertyDescriptionRequest | null;
199
+ } & ({
200
+ type?: "number";
201
+ number: {
202
+ format?: NumberFormat;
203
+ };
204
+ } | {
205
+ type?: "formula";
206
+ formula: {
207
+ expression?: string;
208
+ };
209
+ } | {
210
+ type?: "select";
211
+ select: {
212
+ options?: Array<{
213
+ color?: SelectColor;
214
+ description?: string | null;
215
+ } & ({
216
+ name: string;
217
+ id?: string;
218
+ } | {
219
+ id: string;
220
+ name?: string;
221
+ })>;
222
+ };
223
+ } | {
224
+ type?: "multi_select";
225
+ multi_select: {
226
+ options?: Array<{
227
+ color?: SelectColor;
228
+ description?: string | null;
229
+ } & ({
230
+ name: string;
231
+ id?: string;
232
+ } | {
233
+ id: string;
234
+ name?: string;
235
+ })>;
236
+ };
237
+ } | {
238
+ type?: "status";
239
+ status: StatusPropertyConfigUpdateRequest;
240
+ } | {
241
+ type?: "relation";
242
+ relation: {
243
+ data_source_id: IdRequest;
244
+ } & ({
245
+ type?: "single_property";
246
+ single_property: EmptyObject;
247
+ } | {
248
+ type?: "dual_property";
249
+ dual_property: {
250
+ synced_property_id?: string;
251
+ synced_property_name?: string;
252
+ };
253
+ });
254
+ } | {
255
+ type?: "rollup";
256
+ rollup: {
257
+ function: RollupFunction;
258
+ } & ({
259
+ relation_property_name: string;
260
+ rollup_property_name: string;
261
+ } | {
262
+ relation_property_id: string;
263
+ rollup_property_name: string;
264
+ } | {
265
+ relation_property_name: string;
266
+ rollup_property_id: string;
267
+ } | {
268
+ relation_property_id: string;
269
+ rollup_property_id: string;
270
+ });
271
+ } | {
272
+ type?: "unique_id";
273
+ unique_id: {
274
+ prefix?: string | null;
275
+ };
276
+ } | {
277
+ type?: "title";
278
+ title: EmptyObject;
279
+ } | {
280
+ type?: "rich_text";
281
+ rich_text: EmptyObject;
282
+ } | {
283
+ type?: "url";
284
+ url: EmptyObject;
285
+ } | {
286
+ type?: "people";
287
+ people: EmptyObject;
288
+ } | {
289
+ type?: "files";
290
+ files: EmptyObject;
291
+ } | {
292
+ type?: "email";
293
+ email: EmptyObject;
294
+ } | {
295
+ type?: "phone_number";
296
+ phone_number: EmptyObject;
297
+ } | {
298
+ type?: "date";
299
+ date: EmptyObject;
300
+ } | {
301
+ type?: "checkbox";
302
+ checkbox: EmptyObject;
303
+ } | {
304
+ type?: "created_by";
305
+ created_by: EmptyObject;
306
+ } | {
307
+ type?: "created_time";
308
+ created_time: EmptyObject;
309
+ } | {
310
+ type?: "last_edited_by";
311
+ last_edited_by: EmptyObject;
312
+ } | {
313
+ type?: "last_edited_time";
314
+ last_edited_time: EmptyObject;
315
+ } | {
316
+ type?: "place";
317
+ place: EmptyObject;
318
+ })) | {
319
+ name: string;
320
+ } | null>;
321
+ in_trash?: boolean;
322
+ /** @deprecated Use `in_trash` instead. */
323
+ archived?: boolean;
324
+ parent?: ParentOfDataSourceRequest;
325
+ };
326
+ export type UpdateDataSourceParameters = UpdateDataSourcePathParameters & UpdateDataSourceBodyParameters;
327
+ export type UpdateDataSourceResponse = PartialDataSourceObjectResponse | DataSourceObjectResponse;
328
+ /**
329
+ * Update a data source
330
+ */
331
+ export declare const updateDataSource: {
332
+ readonly method: "patch";
333
+ readonly pathParams: readonly ["data_source_id"];
334
+ readonly queryParams: readonly [];
335
+ readonly bodyParams: readonly ["archived", "title", "icon", "properties", "in_trash", "parent"];
336
+ readonly path: (p: UpdateDataSourcePathParameters) => string;
337
+ };
338
+ type QueryDataSourcePathParameters = {
339
+ data_source_id: IdRequest;
340
+ };
341
+ type QueryDataSourceQueryParameters = {
342
+ filter_properties?: Array<string>;
343
+ };
344
+ type QueryDataSourceBodyParameters = {
345
+ sorts?: Array<{
346
+ property: string;
347
+ direction: "ascending" | "descending";
348
+ } | {
349
+ timestamp: "created_time" | "last_edited_time";
350
+ direction: "ascending" | "descending";
351
+ }>;
352
+ filter?: {
353
+ or: GroupFilterOperatorArray;
354
+ } | {
355
+ and: GroupFilterOperatorArray;
356
+ } | PropertyFilter | TimestampFilter;
357
+ start_cursor?: string;
358
+ page_size?: number;
359
+ in_trash?: boolean;
360
+ /** @deprecated Use `in_trash` instead. */
361
+ archived?: boolean;
362
+ result_type?: "page" | "data_source";
363
+ };
364
+ export type QueryDataSourceParameters = QueryDataSourcePathParameters & QueryDataSourceQueryParameters & QueryDataSourceBodyParameters;
365
+ export type QueryDataSourceResponse = {
366
+ type: "page_or_data_source";
367
+ page_or_data_source: EmptyObject;
368
+ object: "list";
369
+ next_cursor: string | null;
370
+ has_more: boolean;
371
+ results: Array<PageObjectResponse | PartialPageObjectResponse | PartialDataSourceObjectResponse | DataSourceObjectResponse>;
372
+ };
373
+ /**
374
+ * Query a data source
375
+ */
376
+ export declare const queryDataSource: {
377
+ readonly method: "post";
378
+ readonly pathParams: readonly ["data_source_id"];
379
+ readonly queryParams: readonly ["filter_properties"];
380
+ readonly bodyParams: readonly ["archived", "sorts", "filter", "start_cursor", "page_size", "in_trash", "result_type"];
381
+ readonly path: (p: QueryDataSourcePathParameters) => string;
382
+ };
383
+ type CreateDataSourceBodyParameters = {
384
+ parent: ParentOfDataSourceRequest;
385
+ properties: Record<string, PropertyConfigurationRequest>;
386
+ title?: Array<RichTextItemRequest>;
387
+ icon?: PageIconRequest | null;
388
+ };
389
+ export type CreateDataSourceParameters = CreateDataSourceBodyParameters;
390
+ export type CreateDataSourceResponse = PartialDataSourceObjectResponse | DataSourceObjectResponse;
391
+ /**
392
+ * Create a data source
393
+ */
394
+ export declare const createDataSource: {
395
+ readonly method: "post";
396
+ readonly pathParams: readonly [];
397
+ readonly queryParams: readonly [];
398
+ readonly bodyParams: readonly ["parent", "properties", "title", "icon"];
399
+ readonly path: () => string;
400
+ };
401
+ type ListDataSourceTemplatesPathParameters = {
402
+ data_source_id: IdRequest;
403
+ };
404
+ type ListDataSourceTemplatesQueryParameters = {
405
+ name?: string;
406
+ start_cursor?: string;
407
+ page_size?: number;
408
+ };
409
+ export type ListDataSourceTemplatesParameters = ListDataSourceTemplatesPathParameters & ListDataSourceTemplatesQueryParameters;
410
+ export type ListDataSourceTemplatesResponse = {
411
+ templates: Array<{
412
+ id: IdResponse;
413
+ name: string;
414
+ is_default: boolean;
415
+ }>;
416
+ has_more: boolean;
417
+ next_cursor: IdResponse | null;
418
+ };
419
+ /**
420
+ * List templates in a data source
421
+ */
422
+ export declare const listDataSourceTemplates: {
423
+ readonly method: "get";
424
+ readonly pathParams: readonly ["data_source_id"];
425
+ readonly queryParams: readonly ["name", "start_cursor", "page_size"];
426
+ readonly bodyParams: readonly [];
427
+ readonly path: (p: ListDataSourceTemplatesPathParameters) => string;
428
+ };
429
+ export {};
430
+ //# sourceMappingURL=data-sources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-sources.d.ts","sourceRoot":"","sources":["../../../src/api-endpoints/data-sources.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACtB,WAAW,EACX,wBAAwB,EACxB,SAAS,EACT,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,4BAA4B,EAC5B,0BAA0B,EAC1B,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,iCAAiC,EACjC,eAAe,EAChB,MAAM,UAAU,CAAA;AAEjB,KAAK,sCAAsC,GAAG;IAE5C,IAAI,EAAE,UAAU,CAAA;IAChB,QAAQ,EAAE,WAAW,CAAA;CACtB,CAAA;AAED,KAAK,uCAAuC,GAAG;IAE7C,IAAI,EAAE,YAAY,CAAA;IAClB,UAAU,EAAE,WAAW,CAAA;CACxB,CAAA;AAED,KAAK,yCAAyC,GAAG;IAE/C,IAAI,EAAE,cAAc,CAAA;IACpB,YAAY,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IAErC,MAAM,EAAE,aAAa,CAAA;IAErB,EAAE,EAAE,UAAU,CAAA;IAEd,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAA;IAElC,WAAW,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAA;IAExC,MAAM,EAAE,0BAA0B,CAAA;IAGlC,eAAe,EAAE,wBAAwB,CAAA;IAEzC,SAAS,EAAE,OAAO,CAAA;IAElB,QAAQ,EAAE,OAAO,CAAA;IACjB,qHAAqH;IACrH,QAAQ,EAAE,OAAO,CAAA;IAEjB,YAAY,EAAE,MAAM,CAAA;IAEpB,gBAAgB,EAAE,MAAM,CAAA;IAExB,UAAU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AA8B,CAAA;AAEvE,MAAM,MAAM,wBAAwB,GAChC,+BAA+B,GAC/B,wBAAwB,CAAA;AAE5B;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;yBAMjB,MAAM;CACR,CAAA;AAEV,KAAK,qCAAqC,GAAG;IAE3C,cAAc,EAAE,SAAS,CAAA;CAC1B,CAAA;AAED,KAAK,sCAAsC,GAAG;IAE5C,IAAI,CAAC,EAAE,MAAM,CAAA;IAGb,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,iCAAiC,GAC3C,qCAAqC,GAAG,sCAAsC,CAAA;AAEhF,MAAM,MAAM,+BAA+B,GAAG;IAE5C,SAAS,EAAE,KAAK,CAAC;QAEf,EAAE,EAAE,UAAU,CAAA;QAEd,IAAI,EAAE,MAAM,CAAA;QAEZ,UAAU,EAAE,OAAO,CAAA;KACpB,CAAC,CAAA;IAEF,QAAQ,EAAE,OAAO,CAAA;IAEjB,WAAW,EAAE,UAAU,GAAG,IAAI,CAAA;CAC/B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;uBAMxB,qCAAqC,KAAG,MAAM;CAEhD,CAAA"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ // cspell:disable-file
3
+ // Note: This is a generated file. DO NOT EDIT!
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.listDataSourceTemplates = exports.createDataSource = exports.queryDataSource = exports.updateDataSource = exports.getDataSource = void 0;
6
+ /**
7
+ * Retrieve a data source
8
+ */
9
+ exports.getDataSource = {
10
+ method: "get",
11
+ pathParams: ["data_source_id"],
12
+ queryParams: [],
13
+ bodyParams: [],
14
+ path: (p) => `data_sources/${p.data_source_id}`,
15
+ };
16
+ /**
17
+ * Update a data source
18
+ */
19
+ exports.updateDataSource = {
20
+ method: "patch",
21
+ pathParams: ["data_source_id"],
22
+ queryParams: [],
23
+ bodyParams: ["archived", "title", "icon", "properties", "in_trash", "parent"],
24
+ path: (p) => `data_sources/${p.data_source_id}`,
25
+ };
26
+ /**
27
+ * Query a data source
28
+ */
29
+ exports.queryDataSource = {
30
+ method: "post",
31
+ pathParams: ["data_source_id"],
32
+ queryParams: ["filter_properties"],
33
+ bodyParams: [
34
+ "archived",
35
+ "sorts",
36
+ "filter",
37
+ "start_cursor",
38
+ "page_size",
39
+ "in_trash",
40
+ "result_type",
41
+ ],
42
+ path: (p) => `data_sources/${p.data_source_id}/query`,
43
+ };
44
+ /**
45
+ * Create a data source
46
+ */
47
+ exports.createDataSource = {
48
+ method: "post",
49
+ pathParams: [],
50
+ queryParams: [],
51
+ bodyParams: ["parent", "properties", "title", "icon"],
52
+ path: () => `data_sources`,
53
+ };
54
+ /**
55
+ * List templates in a data source
56
+ */
57
+ exports.listDataSourceTemplates = {
58
+ method: "get",
59
+ pathParams: ["data_source_id"],
60
+ queryParams: ["name", "start_cursor", "page_size"],
61
+ bodyParams: [],
62
+ path: (p) => `data_sources/${p.data_source_id}/templates`,
63
+ };
64
+ //# sourceMappingURL=data-sources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-sources.js","sourceRoot":"","sources":["../../../src/api-endpoints/data-sources.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AAsU/C;;GAEG;AACU,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAA8B,EAAU,EAAE,CAC/C,gBAAgB,CAAC,CAAC,cAAc,EAAE;CAC5B,CAAA;AAgMV;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,MAAM,EAAE,OAAO;IACf,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC;IAE7E,IAAI,EAAE,CAAC,CAAiC,EAAU,EAAE,CAClD,gBAAgB,CAAC,CAAC,cAAc,EAAE;CAC5B,CAAA;AAoDV;;GAEG;AACU,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,WAAW,EAAE,CAAC,mBAAmB,CAAC;IAClC,UAAU,EAAE;QACV,UAAU;QACV,OAAO;QACP,QAAQ;QACR,cAAc;QACd,WAAW;QACX,UAAU;QACV,aAAa;KACd;IAED,IAAI,EAAE,CAAC,CAAgC,EAAU,EAAE,CACjD,gBAAgB,CAAC,CAAC,cAAc,QAAQ;CAClC,CAAA;AAmBV;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,CAAC;IAErD,IAAI,EAAE,GAAW,EAAE,CAAC,cAAc;CAC1B,CAAA;AAoCV;;GAEG;AACU,QAAA,uBAAuB,GAAG;IACrC,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,WAAW,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,WAAW,CAAC;IAClD,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAwC,EAAU,EAAE,CACzD,gBAAgB,CAAC,CAAC,cAAc,YAAY;CACtC,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n DataSourceParentResponse,\n DatabaseParentResponse,\n EmptyObject,\n GroupFilterOperatorArray,\n IdRequest,\n IdResponse,\n NumberFormat,\n PageCoverResponse,\n PageIconRequest,\n PageIconResponse,\n PageObjectResponse,\n ParentOfDataSourceRequest,\n ParentOfDatabaseResponse,\n PartialPageObjectResponse,\n PartialUserObjectResponse,\n PropertyConfigurationRequest,\n PropertyDescriptionRequest,\n PropertyFilter,\n RichTextItemRequest,\n RichTextItemResponse,\n RollupFunction,\n SelectColor,\n StatusPropertyConfigUpdateRequest,\n TimestampFilter,\n} from \"./common\"\n\ntype CheckboxDatabasePropertyConfigResponse = {\n // Always `checkbox`\n type: \"checkbox\"\n checkbox: EmptyObject\n}\n\ntype CreatedByDatabasePropertyConfigResponse = {\n // Always `created_by`\n type: \"created_by\"\n created_by: EmptyObject\n}\n\ntype CreatedTimeDatabasePropertyConfigResponse = {\n // Always `created_time`\n type: \"created_time\"\n created_time: EmptyObject\n}\n\nexport type DataSourceObjectResponse = {\n // The data source object type name.\n object: \"data_source\"\n // The ID of the data source.\n id: IdResponse\n // The title of the data source.\n title: Array<RichTextItemResponse>\n // The description of the data source.\n description: Array<RichTextItemResponse>\n // The parent of the data source.\n parent: ParentOfDataSourceResponse\n // The parent of the data source's containing database. This is typically a page, block,\n // or workspace, but can be another database in the case of wikis.\n database_parent: ParentOfDatabaseResponse\n // Whether the data source is inline.\n is_inline: boolean\n // Whether the data source is in the trash.\n in_trash: boolean\n /** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */\n archived: boolean\n // The time when the data source was created.\n created_time: string\n // The time when the data source was last edited.\n last_edited_time: string\n // The user who created the data source.\n created_by: PartialUserObjectResponse\n // The user who last edited the data source.\n last_edited_by: PartialUserObjectResponse\n // The properties schema of the data source.\n properties: Record<string, DatabasePropertyConfigResponse>\n // The icon of the data source.\n icon: PageIconResponse | null\n // The cover of the data source.\n cover: PageCoverResponse | null\n // The URL of the data source.\n url: string\n // The public URL of the data source if it is publicly accessible.\n public_url: string | null\n}\n\ntype DatabasePropertyConfigResponse = DatabasePropertyConfigResponseCommon &\n (\n | NumberDatabasePropertyConfigResponse\n | FormulaDatabasePropertyConfigResponse\n | SelectDatabasePropertyConfigResponse\n | MultiSelectDatabasePropertyConfigResponse\n | StatusDatabasePropertyConfigResponse\n | RelationDatabasePropertyConfigResponse\n | RollupDatabasePropertyConfigResponse\n | UniqueIdDatabasePropertyConfigResponse\n | TitleDatabasePropertyConfigResponse\n | RichTextDatabasePropertyConfigResponse\n | UrlDatabasePropertyConfigResponse\n | PeopleDatabasePropertyConfigResponse\n | FilesDatabasePropertyConfigResponse\n | EmailDatabasePropertyConfigResponse\n | PhoneNumberDatabasePropertyConfigResponse\n | DateDatabasePropertyConfigResponse\n | CheckboxDatabasePropertyConfigResponse\n | CreatedByDatabasePropertyConfigResponse\n | CreatedTimeDatabasePropertyConfigResponse\n | LastEditedByDatabasePropertyConfigResponse\n | LastEditedTimeDatabasePropertyConfigResponse\n )\n\ntype DatabasePropertyConfigResponseCommon = {\n // The ID of the property.\n id: string\n // The name of the property.\n name: string\n // The description of the property.\n description: PropertyDescriptionRequest | null\n}\n\ntype DatabasePropertyRelationConfigResponse =\n DatabasePropertyRelationConfigResponseCommon &\n (\n | SinglePropertyDatabasePropertyRelationConfigResponse\n | DualPropertyDatabasePropertyRelationConfigResponse\n )\n\ntype DatabasePropertyRelationConfigResponseCommon = {\n database_id: IdResponse\n data_source_id: IdResponse\n}\n\ntype DateDatabasePropertyConfigResponse = {\n // Always `date`\n type: \"date\"\n date: EmptyObject\n}\n\ntype DualPropertyDatabasePropertyRelationConfigResponse = {\n // Always `dual_property`\n type?: \"dual_property\"\n dual_property: { synced_property_id: string; synced_property_name: string }\n}\n\ntype EmailDatabasePropertyConfigResponse = {\n // Always `email`\n type: \"email\"\n email: EmptyObject\n}\n\ntype FilesDatabasePropertyConfigResponse = {\n // Always `files`\n type: \"files\"\n files: EmptyObject\n}\n\ntype FormulaDatabasePropertyConfigResponse = {\n // Always `formula`\n type: \"formula\"\n formula: { expression: string }\n}\n\ntype LastEditedByDatabasePropertyConfigResponse = {\n // Always `last_edited_by`\n type: \"last_edited_by\"\n last_edited_by: EmptyObject\n}\n\ntype LastEditedTimeDatabasePropertyConfigResponse = {\n // Always `last_edited_time`\n type: \"last_edited_time\"\n last_edited_time: EmptyObject\n}\n\ntype MultiSelectDatabasePropertyConfigResponse = {\n // Always `multi_select`\n type: \"multi_select\"\n multi_select: { options: Array<SelectPropertyResponse> }\n}\n\ntype NumberDatabasePropertyConfigResponse = {\n // Always `number`\n type: \"number\"\n number: {\n // The number format for the property.\n format: NumberFormat\n }\n}\n\n/**\n * The parent of the data source. This is typically a database (`database_id`), but for\n * externally synced data sources, can be another data source (`data_source_id`).\n */\ntype ParentOfDataSourceResponse =\n | DatabaseParentResponse\n | DataSourceParentResponse\n\nexport type PartialDataSourceObjectResponse = {\n // The data source object type name.\n object: \"data_source\"\n // The ID of the data source.\n id: IdResponse\n // The properties schema of the data source.\n properties: Record<string, DatabasePropertyConfigResponse>\n}\n\ntype PeopleDatabasePropertyConfigResponse = {\n // Always `people`\n type: \"people\"\n people: EmptyObject\n}\n\ntype PhoneNumberDatabasePropertyConfigResponse = {\n // Always `phone_number`\n type: \"phone_number\"\n phone_number: EmptyObject\n}\n\ntype RelationDatabasePropertyConfigResponse = {\n // Always `relation`\n type: \"relation\"\n relation: DatabasePropertyRelationConfigResponse\n}\n\ntype RichTextDatabasePropertyConfigResponse = {\n // Always `rich_text`\n type: \"rich_text\"\n rich_text: EmptyObject\n}\n\ntype RollupDatabasePropertyConfigResponse = {\n // Always `rollup`\n type: \"rollup\"\n rollup: {\n // The function to use for the rollup, e.g. count, count_values, percent_not_empty, max.\n function: RollupFunction\n rollup_property_name: string\n relation_property_name: string\n rollup_property_id: string\n relation_property_id: string\n }\n}\n\ntype SelectDatabasePropertyConfigResponse = {\n // Always `select`\n type: \"select\"\n select: { options: Array<SelectPropertyResponse> }\n}\n\ntype SelectPropertyResponse = {\n id: string\n name: string\n color: SelectColor\n description: string | null\n}\n\ntype SinglePropertyDatabasePropertyRelationConfigResponse = {\n // Always `single_property`\n type: \"single_property\"\n single_property: EmptyObject\n}\n\ntype StatusDatabasePropertyConfigResponse = {\n // Always `status`\n type: \"status\"\n status: {\n // The options for the status property.\n options: Array<StatusPropertyResponse>\n // The groups for the status property.\n groups: Array<{\n // The ID of the status group.\n id: string\n // The name of the status group.\n name: string\n // The color of the status group.\n color: SelectColor\n // The IDs of the status options in this group.\n option_ids: Array<string>\n }>\n }\n}\n\ntype StatusPropertyResponse = {\n // The ID of the status option.\n id: string\n // The name of the status option.\n name: string\n // The color of the status option.\n color: SelectColor\n // The description of the status option.\n description: string | null\n}\n\ntype TitleDatabasePropertyConfigResponse = {\n // Always `title`\n type: \"title\"\n title: EmptyObject\n}\n\ntype UniqueIdDatabasePropertyConfigResponse = {\n // Always `unique_id`\n type: \"unique_id\"\n unique_id: {\n // The prefix for the unique ID.\n prefix: string | null\n }\n}\n\ntype UrlDatabasePropertyConfigResponse = {\n // Always `url`\n type: \"url\"\n url: EmptyObject\n}\n\ntype GetDataSourcePathParameters = {\n // ID of a Notion data source.\n data_source_id: IdRequest\n}\n\nexport type GetDataSourceParameters = GetDataSourcePathParameters\n\nexport type GetDataSourceResponse =\n | PartialDataSourceObjectResponse\n | DataSourceObjectResponse\n\n/**\n * Retrieve a data source\n */\nexport const getDataSource = {\n method: \"get\",\n pathParams: [\"data_source_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetDataSourcePathParameters): string =>\n `data_sources/${p.data_source_id}`,\n} as const\n\ntype UpdateDataSourcePathParameters = {\n // ID of a Notion data source.\n data_source_id: IdRequest\n}\n\ntype UpdateDataSourceBodyParameters = {\n // Title of data source as it appears in Notion.\n title?: Array<RichTextItemRequest>\n // Page icon.\n icon?: PageIconRequest | null\n // The property schema of the data source. The keys are property names or IDs, and the\n // values are property configuration objects. Properties set to null will be removed.\n properties?: Record<\n string,\n | ({\n // The name of the property.\n name?: string\n // The description of the property.\n description?: PropertyDescriptionRequest | null\n } & (\n | {\n // Always `number`\n type?: \"number\"\n number: { format?: NumberFormat }\n }\n | {\n // Always `formula`\n type?: \"formula\"\n formula: { expression?: string }\n }\n | {\n // Always `select`\n type?: \"select\"\n select: {\n options?: Array<\n { color?: SelectColor; description?: string | null } & (\n | { name: string; id?: string }\n | { id: string; name?: string }\n )\n >\n }\n }\n | {\n // Always `multi_select`\n type?: \"multi_select\"\n multi_select: {\n options?: Array<\n { color?: SelectColor; description?: string | null } & (\n | { name: string; id?: string }\n | { id: string; name?: string }\n )\n >\n }\n }\n | {\n // Always `status`\n type?: \"status\"\n status: StatusPropertyConfigUpdateRequest\n }\n | {\n // Always `relation`\n type?: \"relation\"\n relation: { data_source_id: IdRequest } & (\n | {\n // Always `single_property`\n type?: \"single_property\"\n single_property: EmptyObject\n }\n | {\n // Always `dual_property`\n type?: \"dual_property\"\n dual_property: {\n synced_property_id?: string\n synced_property_name?: string\n }\n }\n )\n }\n | {\n // Always `rollup`\n type?: \"rollup\"\n rollup: {\n // The function to use for the rollup, e.g. count, count_values, percent_not_empty, max.\n function: RollupFunction\n } & (\n | { relation_property_name: string; rollup_property_name: string }\n | { relation_property_id: string; rollup_property_name: string }\n | { relation_property_name: string; rollup_property_id: string }\n | { relation_property_id: string; rollup_property_id: string }\n )\n }\n | {\n // Always `unique_id`\n type?: \"unique_id\"\n unique_id: { prefix?: string | null }\n }\n | {\n // Always `title`\n type?: \"title\"\n title: EmptyObject\n }\n | {\n // Always `rich_text`\n type?: \"rich_text\"\n rich_text: EmptyObject\n }\n | {\n // Always `url`\n type?: \"url\"\n url: EmptyObject\n }\n | {\n // Always `people`\n type?: \"people\"\n people: EmptyObject\n }\n | {\n // Always `files`\n type?: \"files\"\n files: EmptyObject\n }\n | {\n // Always `email`\n type?: \"email\"\n email: EmptyObject\n }\n | {\n // Always `phone_number`\n type?: \"phone_number\"\n phone_number: EmptyObject\n }\n | {\n // Always `date`\n type?: \"date\"\n date: EmptyObject\n }\n | {\n // Always `checkbox`\n type?: \"checkbox\"\n checkbox: EmptyObject\n }\n | {\n // Always `created_by`\n type?: \"created_by\"\n created_by: EmptyObject\n }\n | {\n // Always `created_time`\n type?: \"created_time\"\n created_time: EmptyObject\n }\n | {\n // Always `last_edited_by`\n type?: \"last_edited_by\"\n last_edited_by: EmptyObject\n }\n | {\n // Always `last_edited_time`\n type?: \"last_edited_time\"\n last_edited_time: EmptyObject\n }\n | {\n // Always `place`\n type?: \"place\"\n place: EmptyObject\n }\n ))\n | {\n // The new name of the property.\n name: string\n }\n | null\n >\n // Whether the database should be moved to or from the trash. If not provided, the trash\n // status will not be updated.\n in_trash?: boolean\n /** @deprecated Use `in_trash` instead. */\n archived?: boolean\n // The parent of the data source, when moving it to a different database. If not\n // provided, the parent will not be updated.\n parent?: ParentOfDataSourceRequest\n}\n\nexport type UpdateDataSourceParameters = UpdateDataSourcePathParameters &\n UpdateDataSourceBodyParameters\n\nexport type UpdateDataSourceResponse =\n | PartialDataSourceObjectResponse\n | DataSourceObjectResponse\n\n/**\n * Update a data source\n */\nexport const updateDataSource = {\n method: \"patch\",\n pathParams: [\"data_source_id\"],\n queryParams: [],\n bodyParams: [\"archived\", \"title\", \"icon\", \"properties\", \"in_trash\", \"parent\"],\n\n path: (p: UpdateDataSourcePathParameters): string =>\n `data_sources/${p.data_source_id}`,\n} as const\n\ntype QueryDataSourcePathParameters = {\n data_source_id: IdRequest\n}\n\ntype QueryDataSourceQueryParameters = {\n filter_properties?: Array<string>\n}\n\ntype QueryDataSourceBodyParameters = {\n sorts?: Array<\n | { property: string; direction: \"ascending\" | \"descending\" }\n | {\n timestamp: \"created_time\" | \"last_edited_time\"\n direction: \"ascending\" | \"descending\"\n }\n >\n filter?:\n | { or: GroupFilterOperatorArray }\n | { and: GroupFilterOperatorArray }\n | PropertyFilter\n | TimestampFilter\n start_cursor?: string\n page_size?: number\n in_trash?: boolean\n /** @deprecated Use `in_trash` instead. */\n archived?: boolean\n // Optionally filter the results to only include pages or data sources. Regular, non-wiki\n // databases only support page children. The default behavior is no result type\n // filtering, in other words, returning both pages and data sources for wikis.\n result_type?: \"page\" | \"data_source\"\n}\n\nexport type QueryDataSourceParameters = QueryDataSourcePathParameters &\n QueryDataSourceQueryParameters &\n QueryDataSourceBodyParameters\n\nexport type QueryDataSourceResponse = {\n type: \"page_or_data_source\"\n page_or_data_source: EmptyObject\n object: \"list\"\n next_cursor: string | null\n has_more: boolean\n results: Array<\n | PageObjectResponse\n | PartialPageObjectResponse\n | PartialDataSourceObjectResponse\n | DataSourceObjectResponse\n >\n}\n\n/**\n * Query a data source\n */\nexport const queryDataSource = {\n method: \"post\",\n pathParams: [\"data_source_id\"],\n queryParams: [\"filter_properties\"],\n bodyParams: [\n \"archived\",\n \"sorts\",\n \"filter\",\n \"start_cursor\",\n \"page_size\",\n \"in_trash\",\n \"result_type\",\n ],\n\n path: (p: QueryDataSourcePathParameters): string =>\n `data_sources/${p.data_source_id}/query`,\n} as const\n\ntype CreateDataSourceBodyParameters = {\n // An object specifying the parent of the new data source to be created.\n parent: ParentOfDataSourceRequest\n // Property schema of data source.\n properties: Record<string, PropertyConfigurationRequest>\n // Title of data source as it appears in Notion.\n title?: Array<RichTextItemRequest>\n // Page icon.\n icon?: PageIconRequest | null\n}\n\nexport type CreateDataSourceParameters = CreateDataSourceBodyParameters\n\nexport type CreateDataSourceResponse =\n | PartialDataSourceObjectResponse\n | DataSourceObjectResponse\n\n/**\n * Create a data source\n */\nexport const createDataSource = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\"parent\", \"properties\", \"title\", \"icon\"],\n\n path: (): string => `data_sources`,\n} as const\n\ntype ListDataSourceTemplatesPathParameters = {\n // ID of a Notion data source.\n data_source_id: IdRequest\n}\n\ntype ListDataSourceTemplatesQueryParameters = {\n // Filter templates by name (case-insensitive substring match).\n name?: string\n // If supplied, this endpoint will return a page of results starting after the cursor\n // provided. If not supplied, this endpoint will return the first page of results.\n start_cursor?: string\n // The number of items from the full list desired in the response. Maximum: 100\n page_size?: number\n}\n\nexport type ListDataSourceTemplatesParameters =\n ListDataSourceTemplatesPathParameters & ListDataSourceTemplatesQueryParameters\n\nexport type ListDataSourceTemplatesResponse = {\n // Array of templates available in this data source.\n templates: Array<{\n // ID of the template page.\n id: IdResponse\n // Name of the template.\n name: string\n // Whether this template is the default template for the data source.\n is_default: boolean\n }>\n // Whether there are more templates available beyond this page.\n has_more: boolean\n // Cursor to use for the next page of results. Null if there are no more results.\n next_cursor: IdResponse | null\n}\n\n/**\n * List templates in a data source\n */\nexport const listDataSourceTemplates = {\n method: \"get\",\n pathParams: [\"data_source_id\"],\n queryParams: [\"name\", \"start_cursor\", \"page_size\"],\n bodyParams: [],\n\n path: (p: ListDataSourceTemplatesPathParameters): string =>\n `data_sources/${p.data_source_id}/templates`,\n} as const\n"]}
@@ -0,0 +1,109 @@
1
+ import type { IdRequest, IdResponse, InitialDataSourceRequest, PageCoverRequest, PageCoverResponse, PageIconRequest, PageIconResponse, ParentOfDatabaseResponse, RichTextItemRequest, RichTextItemResponse } from "./common";
2
+ type DataSourceReferenceResponse = {
3
+ id: IdResponse;
4
+ name: string;
5
+ };
6
+ export type DatabaseObjectResponse = {
7
+ object: "database";
8
+ id: IdResponse;
9
+ title: Array<RichTextItemResponse>;
10
+ description: Array<RichTextItemResponse>;
11
+ parent: ParentOfDatabaseResponse;
12
+ is_inline: boolean;
13
+ in_trash: boolean;
14
+ /** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
15
+ archived: boolean;
16
+ is_locked: boolean;
17
+ created_time: string;
18
+ last_edited_time: string;
19
+ data_sources: Array<DataSourceReferenceResponse>;
20
+ icon: PageIconResponse | null;
21
+ cover: PageCoverResponse | null;
22
+ url: string;
23
+ public_url: string | null;
24
+ };
25
+ export type PartialDatabaseObjectResponse = {
26
+ object: "database";
27
+ id: IdResponse;
28
+ };
29
+ type GetDatabasePathParameters = {
30
+ database_id: IdRequest;
31
+ };
32
+ export type GetDatabaseParameters = GetDatabasePathParameters;
33
+ export type GetDatabaseResponse = PartialDatabaseObjectResponse | DatabaseObjectResponse;
34
+ /**
35
+ * Retrieve a database
36
+ */
37
+ export declare const getDatabase: {
38
+ readonly method: "get";
39
+ readonly pathParams: readonly ["database_id"];
40
+ readonly queryParams: readonly [];
41
+ readonly bodyParams: readonly [];
42
+ readonly path: (p: GetDatabasePathParameters) => string;
43
+ };
44
+ type UpdateDatabasePathParameters = {
45
+ database_id: IdRequest;
46
+ };
47
+ type UpdateDatabaseBodyParameters = {
48
+ parent?: {
49
+ type: "page_id" | "workspace";
50
+ } & ({
51
+ type: "page_id";
52
+ page_id: IdRequest;
53
+ } | {
54
+ type: "workspace";
55
+ workspace: true;
56
+ });
57
+ title?: Array<RichTextItemRequest>;
58
+ description?: Array<RichTextItemRequest>;
59
+ is_inline?: boolean;
60
+ icon?: PageIconRequest;
61
+ cover?: PageCoverRequest;
62
+ in_trash?: boolean;
63
+ /** @deprecated Use `in_trash` instead. */
64
+ archived?: boolean;
65
+ is_locked?: boolean;
66
+ };
67
+ export type UpdateDatabaseParameters = UpdateDatabasePathParameters & UpdateDatabaseBodyParameters;
68
+ export type UpdateDatabaseResponse = PartialDatabaseObjectResponse | DatabaseObjectResponse;
69
+ /**
70
+ * Update a database
71
+ */
72
+ export declare const updateDatabase: {
73
+ readonly method: "patch";
74
+ readonly pathParams: readonly ["database_id"];
75
+ readonly queryParams: readonly [];
76
+ readonly bodyParams: readonly ["parent", "title", "description", "is_inline", "icon", "cover", "in_trash", "is_locked"];
77
+ readonly path: (p: UpdateDatabasePathParameters) => string;
78
+ };
79
+ type CreateDatabaseBodyParameters = {
80
+ parent: {
81
+ type: "page_id" | "workspace";
82
+ } & ({
83
+ type: "page_id";
84
+ page_id: IdRequest;
85
+ } | {
86
+ type: "workspace";
87
+ workspace: true;
88
+ });
89
+ title?: Array<RichTextItemRequest>;
90
+ description?: Array<RichTextItemRequest>;
91
+ is_inline?: boolean;
92
+ initial_data_source?: InitialDataSourceRequest;
93
+ icon?: PageIconRequest;
94
+ cover?: PageCoverRequest;
95
+ };
96
+ export type CreateDatabaseParameters = CreateDatabaseBodyParameters;
97
+ export type CreateDatabaseResponse = PartialDatabaseObjectResponse | DatabaseObjectResponse;
98
+ /**
99
+ * Create a database
100
+ */
101
+ export declare const createDatabase: {
102
+ readonly method: "post";
103
+ readonly pathParams: readonly [];
104
+ readonly queryParams: readonly [];
105
+ readonly bodyParams: readonly ["parent", "title", "description", "is_inline", "initial_data_source", "icon", "cover"];
106
+ readonly path: () => string;
107
+ };
108
+ export {};
109
+ //# sourceMappingURL=databases.d.ts.map