@notionhq/custom-blocks 0.1.37 → 0.1.39

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 (42) hide show
  1. package/README.md +5 -0
  2. package/bin/notion-custom-blocks/build.d.ts +23 -0
  3. package/bin/notion-custom-blocks/bundle.d.ts +4 -0
  4. package/bin/notion-custom-blocks/bundle.js +2 -0
  5. package/bin/notion-custom-blocks/cli.d.ts +8 -0
  6. package/bin/notion-custom-blocks/tar.d.ts +11 -0
  7. package/bin/notion-custom-blocks/upload.d.ts +14 -0
  8. package/bin/notion-custom-blocks/upload.js +14 -0
  9. package/bin/notion-custom-blocks/upload.test.d.ts +1 -0
  10. package/bin/notion-custom-blocks/upload.test.js +35 -0
  11. package/dist/bridge/SandboxBridge.d.ts.map +1 -1
  12. package/dist/bridge/pendingRequests.d.ts.map +1 -1
  13. package/dist/bridge/sandboxClient.d.ts.map +1 -1
  14. package/dist/init.d.ts.map +1 -1
  15. package/dist/protocol/dataSources/dataSource.d.ts +135 -135
  16. package/dist/protocol/dataSources/propertySchema.d.ts +27 -27
  17. package/dist/protocol/messages/createPage.d.ts +15 -15
  18. package/dist/protocol/messages/createPageResult.d.ts +17 -15
  19. package/dist/protocol/messages/dataSourcesChanged.d.ts +27 -27
  20. package/dist/protocol/messages/getPage.d.ts +17 -15
  21. package/dist/protocol/messages/hostToSandbox.d.ts +114 -100
  22. package/dist/protocol/messages/init.d.ts +32 -28
  23. package/dist/protocol/messages/pageChanged.d.ts +2 -0
  24. package/dist/protocol/messages/parentChanged.d.ts +2 -0
  25. package/dist/protocol/messages/sandboxToHost.d.ts +30 -30
  26. package/dist/protocol/messages/updatePage.d.ts +15 -15
  27. package/dist/protocol/messages/updatePageResult.d.ts +17 -15
  28. package/dist/protocol/pages/page.d.ts +49 -45
  29. package/dist/protocol/parent.d.ts +5 -1
  30. package/dist/protocol/parent.js +1 -0
  31. package/dist/react/DebugMessageLog.d.ts +1 -1
  32. package/dist/react/DebugMessageLog.d.ts.map +1 -1
  33. package/dist/react/NotionCustomBlock.d.ts +1 -1
  34. package/dist/react/NotionCustomBlock.d.ts.map +1 -1
  35. package/dist/react/NotionCustomBlock.js +1 -1
  36. package/dist/react/NotionTokenScope.d.ts +1 -1
  37. package/dist/react/NotionTokenScope.d.ts.map +1 -1
  38. package/dist/version.js +1 -1
  39. package/docs/block-location.md +13 -1
  40. package/docs/deployment.md +15 -0
  41. package/docs/pages.md +1 -1
  42. package/package.json +16 -12
@@ -55,34 +55,36 @@ export type CustomBlockDataSourceSortablePropertyType = (typeof CUSTOM_BLOCK_DAT
55
55
  * The `type` discriminator must be one of {@link NOTION_PROPERTY_TYPES}.
56
56
  */
57
57
  export declare const notionPropertySchemaSchema: v.VariantSchema<"type", [v.ObjectSchema<{
58
- readonly type: v.LiteralSchema<"title", undefined>;
59
58
  readonly name: v.StringSchema<undefined>;
60
59
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
60
+ readonly type: v.LiteralSchema<"title", undefined>;
61
61
  }, undefined>, v.ObjectSchema<{
62
- readonly type: v.LiteralSchema<"rich_text", undefined>;
63
62
  readonly name: v.StringSchema<undefined>;
64
63
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
64
+ readonly type: v.LiteralSchema<"rich_text", undefined>;
65
65
  }, undefined>, v.ObjectSchema<{
66
- readonly type: v.LiteralSchema<"number", undefined>;
67
66
  readonly name: v.StringSchema<undefined>;
68
67
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
68
+ readonly type: v.LiteralSchema<"number", undefined>;
69
69
  }, undefined>, v.ObjectSchema<{
70
- readonly type: v.LiteralSchema<"checkbox", undefined>;
71
70
  readonly name: v.StringSchema<undefined>;
72
71
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
72
+ readonly type: v.LiteralSchema<"checkbox", undefined>;
73
73
  }, undefined>, v.ObjectSchema<{
74
- readonly type: v.LiteralSchema<"url", undefined>;
75
74
  readonly name: v.StringSchema<undefined>;
76
75
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
76
+ readonly type: v.LiteralSchema<"url", undefined>;
77
77
  }, undefined>, v.ObjectSchema<{
78
- readonly type: v.LiteralSchema<"email", undefined>;
79
78
  readonly name: v.StringSchema<undefined>;
80
79
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
80
+ readonly type: v.LiteralSchema<"email", undefined>;
81
81
  }, undefined>, v.ObjectSchema<{
82
- readonly type: v.LiteralSchema<"phone_number", undefined>;
83
82
  readonly name: v.StringSchema<undefined>;
84
83
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
84
+ readonly type: v.LiteralSchema<"phone_number", undefined>;
85
85
  }, undefined>, v.ObjectSchema<{
86
+ readonly name: v.StringSchema<undefined>;
87
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
86
88
  readonly type: v.LiteralSchema<"select", undefined>;
87
89
  readonly options: v.ArraySchema<v.ObjectSchema<{
88
90
  readonly id: v.StringSchema<undefined>;
@@ -90,9 +92,9 @@ export declare const notionPropertySchemaSchema: v.VariantSchema<"type", [v.Obje
90
92
  readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
91
93
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
92
94
  }, undefined>, undefined>;
95
+ }, undefined>, v.ObjectSchema<{
93
96
  readonly name: v.StringSchema<undefined>;
94
97
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
95
- }, undefined>, v.ObjectSchema<{
96
98
  readonly type: v.LiteralSchema<"multi_select", undefined>;
97
99
  readonly options: v.ArraySchema<v.ObjectSchema<{
98
100
  readonly id: v.StringSchema<undefined>;
@@ -100,9 +102,9 @@ export declare const notionPropertySchemaSchema: v.VariantSchema<"type", [v.Obje
100
102
  readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
101
103
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
102
104
  }, undefined>, undefined>;
105
+ }, undefined>, v.ObjectSchema<{
103
106
  readonly name: v.StringSchema<undefined>;
104
107
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
105
- }, undefined>, v.ObjectSchema<{
106
108
  readonly type: v.LiteralSchema<"status", undefined>;
107
109
  readonly options: v.ArraySchema<v.ObjectSchema<{
108
110
  readonly id: v.StringSchema<undefined>;
@@ -116,77 +118,75 @@ export declare const notionPropertySchemaSchema: v.VariantSchema<"type", [v.Obje
116
118
  readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
117
119
  readonly option_ids: v.ArraySchema<v.StringSchema<undefined>, undefined>;
118
120
  }, undefined>, undefined>;
121
+ }, undefined>, v.ObjectSchema<{
119
122
  readonly name: v.StringSchema<undefined>;
120
123
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
121
- }, undefined>, v.ObjectSchema<{
122
124
  readonly type: v.LiteralSchema<"date", undefined>;
125
+ }, undefined>, v.ObjectSchema<{
123
126
  readonly name: v.StringSchema<undefined>;
124
127
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
125
- }, undefined>, v.ObjectSchema<{
126
128
  readonly type: v.LiteralSchema<"people", undefined>;
129
+ }, undefined>, v.ObjectSchema<{
127
130
  readonly name: v.StringSchema<undefined>;
128
131
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
129
- }, undefined>, v.ObjectSchema<{
130
132
  readonly type: v.LiteralSchema<"files", undefined>;
133
+ }, undefined>, v.ObjectSchema<{
131
134
  readonly name: v.StringSchema<undefined>;
132
135
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
133
- }, undefined>, v.ObjectSchema<{
134
136
  readonly type: v.LiteralSchema<"unique_id", undefined>;
137
+ }, undefined>, v.ObjectSchema<{
135
138
  readonly name: v.StringSchema<undefined>;
136
139
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
137
- }, undefined>, v.ObjectSchema<{
138
140
  readonly type: v.LiteralSchema<"relation", undefined>;
139
141
  readonly data_source_id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
140
142
  readonly dual_property: v.OptionalSchema<v.ObjectSchema<{
141
143
  readonly synced_property_id: v.StringSchema<undefined>;
142
144
  readonly synced_property_name: v.StringSchema<undefined>;
143
145
  }, undefined>, undefined>;
144
- readonly name: v.StringSchema<undefined>;
145
- readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
146
146
  }, undefined>, v.ObjectSchema<{
147
- readonly type: v.LiteralSchema<"place", undefined>;
148
147
  readonly name: v.StringSchema<undefined>;
149
148
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
149
+ readonly type: v.LiteralSchema<"place", undefined>;
150
150
  }, undefined>, v.ObjectSchema<{
151
- readonly type: v.LiteralSchema<"formula", undefined>;
152
151
  readonly name: v.StringSchema<undefined>;
153
152
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
153
+ readonly type: v.LiteralSchema<"formula", undefined>;
154
154
  }, undefined>, v.ObjectSchema<{
155
- readonly type: v.LiteralSchema<"rollup", undefined>;
156
155
  readonly name: v.StringSchema<undefined>;
157
156
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
157
+ readonly type: v.LiteralSchema<"rollup", undefined>;
158
158
  }, undefined>, v.ObjectSchema<{
159
- readonly type: v.LiteralSchema<"button", undefined>;
160
159
  readonly name: v.StringSchema<undefined>;
161
160
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
161
+ readonly type: v.LiteralSchema<"button", undefined>;
162
162
  }, undefined>, v.ObjectSchema<{
163
- readonly type: v.LiteralSchema<"verification", undefined>;
164
163
  readonly name: v.StringSchema<undefined>;
165
164
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
165
+ readonly type: v.LiteralSchema<"verification", undefined>;
166
166
  }, undefined>, v.ObjectSchema<{
167
- readonly type: v.LiteralSchema<"last_visited_time", undefined>;
168
167
  readonly name: v.StringSchema<undefined>;
169
168
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
169
+ readonly type: v.LiteralSchema<"last_visited_time", undefined>;
170
170
  }, undefined>, v.ObjectSchema<{
171
- readonly type: v.LiteralSchema<"location", undefined>;
172
171
  readonly name: v.StringSchema<undefined>;
173
172
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
173
+ readonly type: v.LiteralSchema<"location", undefined>;
174
174
  }, undefined>, v.ObjectSchema<{
175
- readonly type: v.LiteralSchema<"created_time", undefined>;
176
175
  readonly name: v.StringSchema<undefined>;
177
176
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
177
+ readonly type: v.LiteralSchema<"created_time", undefined>;
178
178
  }, undefined>, v.ObjectSchema<{
179
- readonly type: v.LiteralSchema<"last_edited_time", undefined>;
180
179
  readonly name: v.StringSchema<undefined>;
181
180
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
181
+ readonly type: v.LiteralSchema<"last_edited_time", undefined>;
182
182
  }, undefined>, v.ObjectSchema<{
183
- readonly type: v.LiteralSchema<"created_by", undefined>;
184
183
  readonly name: v.StringSchema<undefined>;
185
184
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
185
+ readonly type: v.LiteralSchema<"created_by", undefined>;
186
186
  }, undefined>, v.ObjectSchema<{
187
- readonly type: v.LiteralSchema<"last_edited_by", undefined>;
188
187
  readonly name: v.StringSchema<undefined>;
189
188
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
189
+ readonly type: v.LiteralSchema<"last_edited_by", undefined>;
190
190
  }, undefined>], undefined>;
191
191
  export type NotionPropertySchema = v.InferOutput<typeof notionPropertySchemaSchema>;
192
192
  /**
@@ -58,34 +58,35 @@ export declare const createPageMessageSchema: v.ObjectSchema<{
58
58
  * those keys before it sends this message.
59
59
  */
60
60
  readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
61
+ readonly id: v.StringSchema<undefined>;
61
62
  readonly type: v.LiteralSchema<"title", undefined>;
62
63
  readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
63
- readonly id: v.StringSchema<undefined>;
64
64
  }, undefined>, v.ObjectSchema<{
65
+ readonly id: v.StringSchema<undefined>;
65
66
  readonly type: v.LiteralSchema<"rich_text", undefined>;
66
67
  readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
67
- readonly id: v.StringSchema<undefined>;
68
68
  }, undefined>, v.ObjectSchema<{
69
+ readonly id: v.StringSchema<undefined>;
69
70
  readonly type: v.LiteralSchema<"number", undefined>;
70
71
  readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
71
- readonly id: v.StringSchema<undefined>;
72
72
  }, undefined>, v.ObjectSchema<{
73
+ readonly id: v.StringSchema<undefined>;
73
74
  readonly type: v.LiteralSchema<"url", undefined>;
74
75
  readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
75
- readonly id: v.StringSchema<undefined>;
76
76
  }, undefined>, v.ObjectSchema<{
77
+ readonly id: v.StringSchema<undefined>;
77
78
  readonly type: v.LiteralSchema<"email", undefined>;
78
79
  readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
79
- readonly id: v.StringSchema<undefined>;
80
80
  }, undefined>, v.ObjectSchema<{
81
+ readonly id: v.StringSchema<undefined>;
81
82
  readonly type: v.LiteralSchema<"phone_number", undefined>;
82
83
  readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
83
- readonly id: v.StringSchema<undefined>;
84
84
  }, undefined>, v.ObjectSchema<{
85
+ readonly id: v.StringSchema<undefined>;
85
86
  readonly type: v.LiteralSchema<"checkbox", undefined>;
86
87
  readonly checkbox: v.BooleanSchema<undefined>;
87
- readonly id: v.StringSchema<undefined>;
88
88
  }, undefined>, v.ObjectSchema<{
89
+ readonly id: v.StringSchema<undefined>;
89
90
  readonly type: v.LiteralSchema<"select", undefined>;
90
91
  readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
91
92
  readonly id: v.StringSchema<undefined>;
@@ -98,8 +99,8 @@ export declare const createPageMessageSchema: v.ObjectSchema<{
98
99
  readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
99
100
  readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
100
101
  }, undefined>], undefined>, undefined>;
101
- readonly id: v.StringSchema<undefined>;
102
102
  }, undefined>, v.ObjectSchema<{
103
+ readonly id: v.StringSchema<undefined>;
103
104
  readonly type: v.LiteralSchema<"status", undefined>;
104
105
  readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
105
106
  readonly id: v.StringSchema<undefined>;
@@ -112,8 +113,8 @@ export declare const createPageMessageSchema: v.ObjectSchema<{
112
113
  readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
113
114
  readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
114
115
  }, undefined>], undefined>, undefined>;
115
- readonly id: v.StringSchema<undefined>;
116
116
  }, undefined>, v.ObjectSchema<{
117
+ readonly id: v.StringSchema<undefined>;
117
118
  readonly type: v.LiteralSchema<"multi_select", undefined>;
118
119
  readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
119
120
  readonly id: v.StringSchema<undefined>;
@@ -126,16 +127,16 @@ export declare const createPageMessageSchema: v.ObjectSchema<{
126
127
  readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
127
128
  readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
128
129
  }, undefined>], undefined>, undefined>;
129
- readonly id: v.StringSchema<undefined>;
130
130
  }, undefined>, v.ObjectSchema<{
131
+ readonly id: v.StringSchema<undefined>;
131
132
  readonly type: v.LiteralSchema<"date", undefined>;
132
133
  readonly date: v.NullableSchema<v.ObjectSchema<{
133
134
  readonly start: v.StringSchema<undefined>;
134
135
  readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
135
136
  readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
136
137
  }, undefined>, undefined>;
137
- readonly id: v.StringSchema<undefined>;
138
138
  }, undefined>, v.ObjectSchema<{
139
+ readonly id: v.StringSchema<undefined>;
139
140
  readonly type: v.LiteralSchema<"people", undefined>;
140
141
  readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
141
142
  readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
@@ -145,15 +146,15 @@ export declare const createPageMessageSchema: v.ObjectSchema<{
145
146
  readonly id: v.StringSchema<undefined>;
146
147
  readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
147
148
  }, undefined>], undefined>, undefined>;
148
- readonly id: v.StringSchema<undefined>;
149
149
  }, undefined>, v.ObjectSchema<{
150
+ readonly id: v.StringSchema<undefined>;
150
151
  readonly type: v.LiteralSchema<"relation", undefined>;
151
152
  readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
152
153
  readonly relation: v.ArraySchema<v.ObjectSchema<{
153
154
  readonly id: v.StringSchema<undefined>;
154
155
  }, undefined>, undefined>;
155
- readonly id: v.StringSchema<undefined>;
156
156
  }, undefined>, v.ObjectSchema<{
157
+ readonly id: v.StringSchema<undefined>;
157
158
  readonly type: v.LiteralSchema<"files", undefined>;
158
159
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
159
160
  readonly type: v.LiteralSchema<"external", undefined>;
@@ -169,8 +170,8 @@ export declare const createPageMessageSchema: v.ObjectSchema<{
169
170
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
170
171
  }, undefined>;
171
172
  }, undefined>], undefined>, undefined>;
172
- readonly id: v.StringSchema<undefined>;
173
173
  }, undefined>, v.ObjectSchema<{
174
+ readonly id: v.StringSchema<undefined>;
174
175
  readonly type: v.LiteralSchema<"place", undefined>;
175
176
  readonly place: v.NullableSchema<v.ObjectSchema<{
176
177
  readonly lat: v.NumberSchema<undefined>;
@@ -180,7 +181,6 @@ export declare const createPageMessageSchema: v.ObjectSchema<{
180
181
  readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
181
182
  readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
182
183
  }, undefined>, undefined>;
183
- readonly id: v.StringSchema<undefined>;
184
184
  }, undefined>], undefined>, undefined>;
185
185
  readonly position: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
186
186
  readonly type: v.LiteralSchema<"start", undefined>;
@@ -34,36 +34,39 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
34
34
  }, undefined>, v.ObjectSchema<{
35
35
  readonly type: v.LiteralSchema<"agent_id", undefined>;
36
36
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
37
+ }, undefined>, v.ObjectSchema<{
38
+ readonly type: v.LiteralSchema<"unavailable", undefined>;
37
39
  }, undefined>], undefined>;
38
40
  readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
41
+ readonly id: v.StringSchema<undefined>;
39
42
  readonly type: v.LiteralSchema<"title", undefined>;
40
43
  readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
41
- readonly id: v.StringSchema<undefined>;
42
44
  }, undefined>, v.ObjectSchema<{
45
+ readonly id: v.StringSchema<undefined>;
43
46
  readonly type: v.LiteralSchema<"rich_text", undefined>;
44
47
  readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
45
- readonly id: v.StringSchema<undefined>;
46
48
  }, undefined>, v.ObjectSchema<{
49
+ readonly id: v.StringSchema<undefined>;
47
50
  readonly type: v.LiteralSchema<"number", undefined>;
48
51
  readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
49
- readonly id: v.StringSchema<undefined>;
50
52
  }, undefined>, v.ObjectSchema<{
53
+ readonly id: v.StringSchema<undefined>;
51
54
  readonly type: v.LiteralSchema<"url", undefined>;
52
55
  readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
53
- readonly id: v.StringSchema<undefined>;
54
56
  }, undefined>, v.ObjectSchema<{
57
+ readonly id: v.StringSchema<undefined>;
55
58
  readonly type: v.LiteralSchema<"email", undefined>;
56
59
  readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
57
- readonly id: v.StringSchema<undefined>;
58
60
  }, undefined>, v.ObjectSchema<{
61
+ readonly id: v.StringSchema<undefined>;
59
62
  readonly type: v.LiteralSchema<"phone_number", undefined>;
60
63
  readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
61
- readonly id: v.StringSchema<undefined>;
62
64
  }, undefined>, v.ObjectSchema<{
65
+ readonly id: v.StringSchema<undefined>;
63
66
  readonly type: v.LiteralSchema<"checkbox", undefined>;
64
67
  readonly checkbox: v.BooleanSchema<undefined>;
65
- readonly id: v.StringSchema<undefined>;
66
68
  }, undefined>, v.ObjectSchema<{
69
+ readonly id: v.StringSchema<undefined>;
67
70
  readonly type: v.LiteralSchema<"select", undefined>;
68
71
  readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
69
72
  readonly id: v.StringSchema<undefined>;
@@ -76,8 +79,8 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
76
79
  readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
77
80
  readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
78
81
  }, undefined>], undefined>, undefined>;
79
- readonly id: v.StringSchema<undefined>;
80
82
  }, undefined>, v.ObjectSchema<{
83
+ readonly id: v.StringSchema<undefined>;
81
84
  readonly type: v.LiteralSchema<"status", undefined>;
82
85
  readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
83
86
  readonly id: v.StringSchema<undefined>;
@@ -90,8 +93,8 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
90
93
  readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
91
94
  readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
92
95
  }, undefined>], undefined>, undefined>;
93
- readonly id: v.StringSchema<undefined>;
94
96
  }, undefined>, v.ObjectSchema<{
97
+ readonly id: v.StringSchema<undefined>;
95
98
  readonly type: v.LiteralSchema<"multi_select", undefined>;
96
99
  readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
97
100
  readonly id: v.StringSchema<undefined>;
@@ -104,16 +107,16 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
104
107
  readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
105
108
  readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
106
109
  }, undefined>], undefined>, undefined>;
107
- readonly id: v.StringSchema<undefined>;
108
110
  }, undefined>, v.ObjectSchema<{
111
+ readonly id: v.StringSchema<undefined>;
109
112
  readonly type: v.LiteralSchema<"date", undefined>;
110
113
  readonly date: v.NullableSchema<v.ObjectSchema<{
111
114
  readonly start: v.StringSchema<undefined>;
112
115
  readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
113
116
  readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
114
117
  }, undefined>, undefined>;
115
- readonly id: v.StringSchema<undefined>;
116
118
  }, undefined>, v.ObjectSchema<{
119
+ readonly id: v.StringSchema<undefined>;
117
120
  readonly type: v.LiteralSchema<"people", undefined>;
118
121
  readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
119
122
  readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
@@ -123,15 +126,15 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
123
126
  readonly id: v.StringSchema<undefined>;
124
127
  readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
125
128
  }, undefined>], undefined>, undefined>;
126
- readonly id: v.StringSchema<undefined>;
127
129
  }, undefined>, v.ObjectSchema<{
130
+ readonly id: v.StringSchema<undefined>;
128
131
  readonly type: v.LiteralSchema<"relation", undefined>;
129
132
  readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
130
133
  readonly relation: v.ArraySchema<v.ObjectSchema<{
131
134
  readonly id: v.StringSchema<undefined>;
132
135
  }, undefined>, undefined>;
133
- readonly id: v.StringSchema<undefined>;
134
136
  }, undefined>, v.ObjectSchema<{
137
+ readonly id: v.StringSchema<undefined>;
135
138
  readonly type: v.LiteralSchema<"files", undefined>;
136
139
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
137
140
  readonly type: v.LiteralSchema<"external", undefined>;
@@ -147,8 +150,8 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
147
150
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
148
151
  }, undefined>;
149
152
  }, undefined>], undefined>, undefined>;
150
- readonly id: v.StringSchema<undefined>;
151
153
  }, undefined>, v.ObjectSchema<{
154
+ readonly id: v.StringSchema<undefined>;
152
155
  readonly type: v.LiteralSchema<"place", undefined>;
153
156
  readonly place: v.NullableSchema<v.ObjectSchema<{
154
157
  readonly lat: v.NumberSchema<undefined>;
@@ -158,7 +161,6 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
158
161
  readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
159
162
  readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
160
163
  }, undefined>, undefined>;
161
- readonly id: v.StringSchema<undefined>;
162
164
  }, undefined>], undefined>, undefined>;
163
165
  readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
164
166
  readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -16,34 +16,36 @@ export declare const dataSourcesChangedMessageSchema: v.ObjectSchema<{
16
16
  readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
17
17
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
18
18
  readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
19
- readonly type: v.LiteralSchema<"title", undefined>;
20
19
  readonly name: v.StringSchema<undefined>;
21
20
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
21
+ readonly type: v.LiteralSchema<"title", undefined>;
22
22
  }, undefined>, v.ObjectSchema<{
23
- readonly type: v.LiteralSchema<"rich_text", undefined>;
24
23
  readonly name: v.StringSchema<undefined>;
25
24
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
25
+ readonly type: v.LiteralSchema<"rich_text", undefined>;
26
26
  }, undefined>, v.ObjectSchema<{
27
- readonly type: v.LiteralSchema<"number", undefined>;
28
27
  readonly name: v.StringSchema<undefined>;
29
28
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
29
+ readonly type: v.LiteralSchema<"number", undefined>;
30
30
  }, undefined>, v.ObjectSchema<{
31
- readonly type: v.LiteralSchema<"checkbox", undefined>;
32
31
  readonly name: v.StringSchema<undefined>;
33
32
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
33
+ readonly type: v.LiteralSchema<"checkbox", undefined>;
34
34
  }, undefined>, v.ObjectSchema<{
35
- readonly type: v.LiteralSchema<"url", undefined>;
36
35
  readonly name: v.StringSchema<undefined>;
37
36
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
37
+ readonly type: v.LiteralSchema<"url", undefined>;
38
38
  }, undefined>, v.ObjectSchema<{
39
- readonly type: v.LiteralSchema<"email", undefined>;
40
39
  readonly name: v.StringSchema<undefined>;
41
40
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
41
+ readonly type: v.LiteralSchema<"email", undefined>;
42
42
  }, undefined>, v.ObjectSchema<{
43
- readonly type: v.LiteralSchema<"phone_number", undefined>;
44
43
  readonly name: v.StringSchema<undefined>;
45
44
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
45
+ readonly type: v.LiteralSchema<"phone_number", undefined>;
46
46
  }, undefined>, v.ObjectSchema<{
47
+ readonly name: v.StringSchema<undefined>;
48
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
47
49
  readonly type: v.LiteralSchema<"select", undefined>;
48
50
  readonly options: v.ArraySchema<v.ObjectSchema<{
49
51
  readonly id: v.StringSchema<undefined>;
@@ -51,9 +53,9 @@ export declare const dataSourcesChangedMessageSchema: v.ObjectSchema<{
51
53
  readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
52
54
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
53
55
  }, undefined>, undefined>;
56
+ }, undefined>, v.ObjectSchema<{
54
57
  readonly name: v.StringSchema<undefined>;
55
58
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
56
- }, undefined>, v.ObjectSchema<{
57
59
  readonly type: v.LiteralSchema<"multi_select", undefined>;
58
60
  readonly options: v.ArraySchema<v.ObjectSchema<{
59
61
  readonly id: v.StringSchema<undefined>;
@@ -61,9 +63,9 @@ export declare const dataSourcesChangedMessageSchema: v.ObjectSchema<{
61
63
  readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
62
64
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
63
65
  }, undefined>, undefined>;
66
+ }, undefined>, v.ObjectSchema<{
64
67
  readonly name: v.StringSchema<undefined>;
65
68
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
66
- }, undefined>, v.ObjectSchema<{
67
69
  readonly type: v.LiteralSchema<"status", undefined>;
68
70
  readonly options: v.ArraySchema<v.ObjectSchema<{
69
71
  readonly id: v.StringSchema<undefined>;
@@ -77,77 +79,75 @@ export declare const dataSourcesChangedMessageSchema: v.ObjectSchema<{
77
79
  readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
78
80
  readonly option_ids: v.ArraySchema<v.StringSchema<undefined>, undefined>;
79
81
  }, undefined>, undefined>;
82
+ }, undefined>, v.ObjectSchema<{
80
83
  readonly name: v.StringSchema<undefined>;
81
84
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
82
- }, undefined>, v.ObjectSchema<{
83
85
  readonly type: v.LiteralSchema<"date", undefined>;
86
+ }, undefined>, v.ObjectSchema<{
84
87
  readonly name: v.StringSchema<undefined>;
85
88
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
86
- }, undefined>, v.ObjectSchema<{
87
89
  readonly type: v.LiteralSchema<"people", undefined>;
90
+ }, undefined>, v.ObjectSchema<{
88
91
  readonly name: v.StringSchema<undefined>;
89
92
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
90
- }, undefined>, v.ObjectSchema<{
91
93
  readonly type: v.LiteralSchema<"files", undefined>;
94
+ }, undefined>, v.ObjectSchema<{
92
95
  readonly name: v.StringSchema<undefined>;
93
96
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
94
- }, undefined>, v.ObjectSchema<{
95
97
  readonly type: v.LiteralSchema<"unique_id", undefined>;
98
+ }, undefined>, v.ObjectSchema<{
96
99
  readonly name: v.StringSchema<undefined>;
97
100
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
98
- }, undefined>, v.ObjectSchema<{
99
101
  readonly type: v.LiteralSchema<"relation", undefined>;
100
102
  readonly data_source_id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
101
103
  readonly dual_property: v.OptionalSchema<v.ObjectSchema<{
102
104
  readonly synced_property_id: v.StringSchema<undefined>;
103
105
  readonly synced_property_name: v.StringSchema<undefined>;
104
106
  }, undefined>, undefined>;
105
- readonly name: v.StringSchema<undefined>;
106
- readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
107
107
  }, undefined>, v.ObjectSchema<{
108
- readonly type: v.LiteralSchema<"place", undefined>;
109
108
  readonly name: v.StringSchema<undefined>;
110
109
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
110
+ readonly type: v.LiteralSchema<"place", undefined>;
111
111
  }, undefined>, v.ObjectSchema<{
112
- readonly type: v.LiteralSchema<"formula", undefined>;
113
112
  readonly name: v.StringSchema<undefined>;
114
113
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
114
+ readonly type: v.LiteralSchema<"formula", undefined>;
115
115
  }, undefined>, v.ObjectSchema<{
116
- readonly type: v.LiteralSchema<"rollup", undefined>;
117
116
  readonly name: v.StringSchema<undefined>;
118
117
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
118
+ readonly type: v.LiteralSchema<"rollup", undefined>;
119
119
  }, undefined>, v.ObjectSchema<{
120
- readonly type: v.LiteralSchema<"button", undefined>;
121
120
  readonly name: v.StringSchema<undefined>;
122
121
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
122
+ readonly type: v.LiteralSchema<"button", undefined>;
123
123
  }, undefined>, v.ObjectSchema<{
124
- readonly type: v.LiteralSchema<"verification", undefined>;
125
124
  readonly name: v.StringSchema<undefined>;
126
125
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
126
+ readonly type: v.LiteralSchema<"verification", undefined>;
127
127
  }, undefined>, v.ObjectSchema<{
128
- readonly type: v.LiteralSchema<"last_visited_time", undefined>;
129
128
  readonly name: v.StringSchema<undefined>;
130
129
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
130
+ readonly type: v.LiteralSchema<"last_visited_time", undefined>;
131
131
  }, undefined>, v.ObjectSchema<{
132
- readonly type: v.LiteralSchema<"location", undefined>;
133
132
  readonly name: v.StringSchema<undefined>;
134
133
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
134
+ readonly type: v.LiteralSchema<"location", undefined>;
135
135
  }, undefined>, v.ObjectSchema<{
136
- readonly type: v.LiteralSchema<"created_time", undefined>;
137
136
  readonly name: v.StringSchema<undefined>;
138
137
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
138
+ readonly type: v.LiteralSchema<"created_time", undefined>;
139
139
  }, undefined>, v.ObjectSchema<{
140
- readonly type: v.LiteralSchema<"last_edited_time", undefined>;
141
140
  readonly name: v.StringSchema<undefined>;
142
141
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
142
+ readonly type: v.LiteralSchema<"last_edited_time", undefined>;
143
143
  }, undefined>, v.ObjectSchema<{
144
- readonly type: v.LiteralSchema<"created_by", undefined>;
145
144
  readonly name: v.StringSchema<undefined>;
146
145
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
146
+ readonly type: v.LiteralSchema<"created_by", undefined>;
147
147
  }, undefined>, v.ObjectSchema<{
148
- readonly type: v.LiteralSchema<"last_edited_by", undefined>;
149
148
  readonly name: v.StringSchema<undefined>;
150
149
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
150
+ readonly type: v.LiteralSchema<"last_edited_by", undefined>;
151
151
  }, undefined>], undefined>, undefined>;
152
152
  }, undefined>, undefined>;
153
153
  readonly propertyIdsByKey: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;