@notionhq/custom-blocks 0.2.21 → 0.2.23

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 (70) hide show
  1. package/README.md +2 -0
  2. package/dist/bridge/SandboxBridge.d.ts +14 -18
  3. package/dist/bridge/SandboxBridge.d.ts.map +1 -1
  4. package/dist/bridge/SandboxBridge.js +59 -201
  5. package/dist/bridge/SandboxInitialization.d.ts +52 -0
  6. package/dist/bridge/SandboxInitialization.d.ts.map +1 -0
  7. package/dist/bridge/SandboxInitialization.js +217 -0
  8. package/dist/bridge/dataSources/query.d.ts.map +1 -1
  9. package/dist/bridge/dataSources/query.js +39 -23
  10. package/dist/bridge/messageInterceptor.d.ts +4 -0
  11. package/dist/bridge/messageInterceptor.d.ts.map +1 -0
  12. package/dist/bridge/messageInterceptor.js +1 -0
  13. package/dist/bridge/sandboxClient.d.ts +3 -2
  14. package/dist/bridge/sandboxClient.d.ts.map +1 -1
  15. package/dist/bridge/sandboxClient.js +3 -5
  16. package/dist/bridge.d.ts +11 -0
  17. package/dist/bridge.d.ts.map +1 -0
  18. package/dist/bridge.js +11 -0
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/init.d.ts +4 -38
  22. package/dist/init.d.ts.map +1 -1
  23. package/dist/init.js +4 -91
  24. package/dist/initTypes.d.ts +31 -0
  25. package/dist/initTypes.d.ts.map +1 -0
  26. package/dist/initTypes.js +18 -0
  27. package/dist/protocol/dataSources/propertySchema.d.ts +1 -1
  28. package/dist/protocol/dataSources/propertySchema.js +2 -0
  29. package/dist/protocol/dataSources/sortDirection.d.ts +3 -0
  30. package/dist/protocol/dataSources/sortDirection.js +2 -0
  31. package/dist/protocol/index.d.ts +1 -0
  32. package/dist/protocol/index.js +1 -0
  33. package/dist/protocol/manifest.d.ts +10 -3
  34. package/dist/protocol/manifest.js +5 -1
  35. package/dist/protocol/messages/connect.d.ts +9 -2
  36. package/dist/protocol/messages/hostToSandbox.d.ts +9 -5
  37. package/dist/protocol/messages/init.d.ts +10 -3
  38. package/dist/protocol/messages/queryDataSource.d.ts +300 -47
  39. package/dist/protocol/messages/queryDataSource.js +107 -9
  40. package/dist/protocol/messages/sandboxToHost.d.ts +103 -18
  41. package/dist/styles/nds.css +1 -1
  42. package/dist/types.d.ts +8 -3
  43. package/dist/types.d.ts.map +1 -1
  44. package/dist/version.js +1 -1
  45. package/docs/bridge-interceptors.md +27 -0
  46. package/docs/data-sources.md +93 -13
  47. package/docs/errors.md +3 -2
  48. package/docs/lifecycle.md +1 -1
  49. package/docs/pages.md +22 -10
  50. package/package.json +4 -4
  51. package/src/bridge/SandboxBridge.ts +74 -239
  52. package/src/bridge/SandboxInitialization.ts +295 -0
  53. package/src/bridge/dataSources/query.ts +51 -25
  54. package/src/bridge/messageInterceptor.ts +6 -0
  55. package/src/bridge/sandboxClient.ts +6 -5
  56. package/src/bridge.ts +17 -0
  57. package/src/index.ts +1 -0
  58. package/src/init.ts +8 -119
  59. package/src/initTypes.ts +43 -0
  60. package/src/styles/nds.css +1 -1
  61. package/src/styles/nds.css.metadata.json +3 -3
  62. package/src/types.ts +11 -2
  63. package/dist/bridge/primedResponses.d.ts +0 -8
  64. package/dist/bridge/primedResponses.d.ts.map +0 -1
  65. package/dist/bridge/primedResponses.js +0 -5
  66. package/dist/testing.d.ts +0 -12
  67. package/dist/testing.d.ts.map +0 -1
  68. package/dist/testing.js +0 -9
  69. package/src/bridge/primedResponses.ts +0 -11
  70. package/src/testing.ts +0 -19
@@ -1,5 +1,14 @@
1
1
  import * as v from "valibot";
2
- import { notionDataSourceIdSchema } from "../ids.js";
2
+ import { notionSortDirectionSchema } from "../dataSources/sortDirection.js";
3
+ import { notionDataSourceIdSchema, notionPageIdSchema } from "../ids.js";
4
+ const relationPageIdSchema = v.pipe(notionPageIdSchema, v.regex(/^(?:[0-9a-f]{32}|[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12})$/i), v.transform(id => id
5
+ .replaceAll("-", "")
6
+ .toLowerCase()
7
+ .replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/, "$1-$2-$3-$4-$5")));
8
+ export const customBlockRelationFilterOperatorSchema = v.union([
9
+ v.strictObject({ contains: relationPageIdSchema }),
10
+ v.strictObject({ does_not_contain: relationPageIdSchema }),
11
+ ]);
3
12
  const emptyOperatorSchema = v.union([
4
13
  v.strictObject({ is_empty: v.literal(true) }),
5
14
  v.strictObject({ is_not_empty: v.literal(true) }),
@@ -55,21 +64,110 @@ export const customBlockOptionFilterOperatorSchema = v.union([
55
64
  v.strictObject({ does_not_equal: stringOrStringArraySchema }),
56
65
  emptyOperatorSchema,
57
66
  ]);
67
+ export const customBlockStatusGroupNameSchema = v.picklist([
68
+ "To-do",
69
+ "In progress",
70
+ "Complete",
71
+ "Current",
72
+ "Future",
73
+ ]);
74
+ const customBlockStatusGroupFilterValueSchema = v.union([
75
+ customBlockStatusGroupNameSchema,
76
+ v.pipe(v.array(customBlockStatusGroupNameSchema), v.minLength(1), v.maxLength(5)),
77
+ ]);
78
+ export const customBlockStatusGroupFilterOperatorSchema = v.union([
79
+ v.strictObject({ group_equals: customBlockStatusGroupFilterValueSchema }),
80
+ v.strictObject({
81
+ group_does_not_equal: customBlockStatusGroupFilterValueSchema,
82
+ }),
83
+ ]);
84
+ export const customBlockStatusFilterOperatorSchema = v.union([
85
+ customBlockOptionFilterOperatorSchema,
86
+ customBlockStatusGroupFilterOperatorSchema,
87
+ ]);
58
88
  export const customBlockContainsFilterOperatorSchema = v.union([
59
89
  v.strictObject({ contains: stringOrStringArraySchema }),
60
90
  v.strictObject({ contains_all: stringOrStringArraySchema }),
61
91
  v.strictObject({ does_not_contain: stringOrStringArraySchema }),
62
92
  emptyOperatorSchema,
63
93
  ]);
94
+ const dateTargetSchema = v.picklist(["start_date", "end_date"]);
95
+ export const customBlockRelativeDateValueSchema = v.picklist([
96
+ "today",
97
+ "tomorrow",
98
+ "yesterday",
99
+ "one_week_ago",
100
+ "one_week_from_now",
101
+ "one_month_ago",
102
+ "one_month_from_now",
103
+ ]);
104
+ const dateComparisonValueSchema = v.union([
105
+ customBlockRelativeDateValueSchema,
106
+ v.string(),
107
+ ]);
64
108
  export const customBlockDateFilterOperatorSchema = v.union([
65
- v.strictObject({ equals: v.string() }),
66
- v.strictObject({ before: v.string() }),
67
- v.strictObject({ after: v.string() }),
68
- v.strictObject({ on_or_before: v.string() }),
69
- v.strictObject({ on_or_after: v.string() }),
70
- emptyOperatorSchema,
109
+ v.strictObject({
110
+ target: v.optional(dateTargetSchema),
111
+ equals: dateComparisonValueSchema,
112
+ }),
113
+ v.strictObject({
114
+ target: v.optional(dateTargetSchema),
115
+ before: dateComparisonValueSchema,
116
+ }),
117
+ v.strictObject({
118
+ target: v.optional(dateTargetSchema),
119
+ after: dateComparisonValueSchema,
120
+ }),
121
+ v.strictObject({
122
+ target: v.optional(dateTargetSchema),
123
+ on_or_before: dateComparisonValueSchema,
124
+ }),
125
+ v.strictObject({
126
+ target: v.optional(dateTargetSchema),
127
+ on_or_after: dateComparisonValueSchema,
128
+ }),
129
+ v.strictObject({
130
+ target: v.optional(dateTargetSchema),
131
+ this_week: v.strictObject({}),
132
+ }),
133
+ v.strictObject({
134
+ target: v.optional(dateTargetSchema),
135
+ past_week: v.strictObject({}),
136
+ }),
137
+ v.strictObject({
138
+ target: v.optional(dateTargetSchema),
139
+ past_month: v.strictObject({}),
140
+ }),
141
+ v.strictObject({
142
+ target: v.optional(dateTargetSchema),
143
+ past_year: v.strictObject({}),
144
+ }),
145
+ v.strictObject({
146
+ target: v.optional(dateTargetSchema),
147
+ next_week: v.strictObject({}),
148
+ }),
149
+ v.strictObject({
150
+ target: v.optional(dateTargetSchema),
151
+ next_month: v.strictObject({}),
152
+ }),
153
+ v.strictObject({
154
+ target: v.optional(dateTargetSchema),
155
+ next_year: v.strictObject({}),
156
+ }),
157
+ v.strictObject({
158
+ target: v.optional(dateTargetSchema),
159
+ is_empty: v.literal(true),
160
+ }),
161
+ v.strictObject({
162
+ target: v.optional(dateTargetSchema),
163
+ is_not_empty: v.literal(true),
164
+ }),
71
165
  ]);
72
166
  export const resolvedCustomBlockDataSourcePropertyFilterSchema = v.union([
167
+ v.strictObject({
168
+ propertyId: v.string(),
169
+ relation: customBlockRelationFilterOperatorSchema,
170
+ }),
73
171
  v.strictObject({
74
172
  propertyId: v.string(),
75
173
  created_by: customBlockCreatedByFilterOperatorSchema,
@@ -112,7 +210,7 @@ export const resolvedCustomBlockDataSourcePropertyFilterSchema = v.union([
112
210
  }),
113
211
  v.strictObject({
114
212
  propertyId: v.string(),
115
- status: customBlockOptionFilterOperatorSchema,
213
+ status: customBlockStatusFilterOperatorSchema,
116
214
  }),
117
215
  v.strictObject({
118
216
  propertyId: v.string(),
@@ -133,7 +231,7 @@ export const resolvedCustomBlockDataSourceFilterSchema = v.union([
133
231
  export const CUSTOM_BLOCK_DATA_SOURCE_QUERY_MAX_SORTS = 10;
134
232
  export const resolvedCustomBlockDataSourceSortSchema = v.strictObject({
135
233
  propertyId: v.string(),
136
- direction: v.picklist(["ascending", "descending"]),
234
+ direction: notionSortDirectionSchema,
137
235
  });
138
236
  /**
139
237
  * Message sent by the sandbox to ask the host for the current rows in a resolved
@@ -11,7 +11,14 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
11
11
  readonly status: v.LiteralSchema<"success", undefined>;
12
12
  readonly manifest: v.OptionalSchema<v.ObjectSchema<{
13
13
  readonly version: v.LiteralSchema<1, undefined>;
14
- readonly dataSources: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
14
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
15
+ readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
16
+ readonly slashCommand: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
17
+ readonly icon: v.OptionalSchema<v.ObjectSchema<{
18
+ readonly type: v.LiteralSchema<"emoji", undefined>;
19
+ readonly emoji: v.StringSchema<undefined>;
20
+ }, undefined>, undefined>;
21
+ readonly dataSources: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
15
22
  readonly name: v.StringSchema<undefined>;
16
23
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
17
24
  readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
@@ -26,7 +33,7 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
26
33
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
27
34
  readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "last_visited_time", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
28
35
  }, undefined>, undefined>, {}>;
29
- }, undefined>, undefined>;
36
+ }, undefined>, undefined>, {}>;
30
37
  }, undefined>, undefined>;
31
38
  }, undefined>, v.ObjectSchema<{
32
39
  readonly type: v.LiteralSchema<"connect", undefined>;
@@ -59,6 +66,13 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
59
66
  readonly dataSourceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
60
67
  readonly limit: v.NumberSchema<undefined>;
61
68
  readonly filter: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.StrictObjectSchema<{
69
+ readonly propertyId: v.StringSchema<undefined>;
70
+ readonly relation: v.UnionSchema<[v.StrictObjectSchema<{
71
+ readonly contains: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>, v.RegexAction<string & v.Brand<"NotionPageId">, undefined>, v.TransformAction<string & v.Brand<"NotionPageId">, string>]>;
72
+ }, undefined>, v.StrictObjectSchema<{
73
+ readonly does_not_contain: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>, v.RegexAction<string & v.Brand<"NotionPageId">, undefined>, v.TransformAction<string & v.Brand<"NotionPageId">, string>]>;
74
+ }, undefined>], undefined>;
75
+ }, undefined>, v.StrictObjectSchema<{
62
76
  readonly propertyId: v.StringSchema<undefined>;
63
77
  readonly created_by: v.UnionSchema<[v.StrictObjectSchema<{
64
78
  readonly contains: v.StrictObjectSchema<{
@@ -222,7 +236,7 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
222
236
  }, undefined>], undefined>], undefined>;
223
237
  }, undefined>, v.StrictObjectSchema<{
224
238
  readonly propertyId: v.StringSchema<undefined>;
225
- readonly status: v.UnionSchema<[v.StrictObjectSchema<{
239
+ readonly status: v.UnionSchema<[v.UnionSchema<[v.StrictObjectSchema<{
226
240
  readonly equals: v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>;
227
241
  }, undefined>, v.StrictObjectSchema<{
228
242
  readonly does_not_equal: v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>;
@@ -230,24 +244,56 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
230
244
  readonly is_empty: v.LiteralSchema<true, undefined>;
231
245
  }, undefined>, v.StrictObjectSchema<{
232
246
  readonly is_not_empty: v.LiteralSchema<true, undefined>;
247
+ }, undefined>], undefined>], undefined>, v.UnionSchema<[v.StrictObjectSchema<{
248
+ readonly group_equals: v.UnionSchema<[v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, undefined>, v.MinLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 1, undefined>, v.MaxLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 5, undefined>]>], undefined>;
249
+ }, undefined>, v.StrictObjectSchema<{
250
+ readonly group_does_not_equal: v.UnionSchema<[v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, undefined>, v.MinLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 1, undefined>, v.MaxLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 5, undefined>]>], undefined>;
233
251
  }, undefined>], undefined>], undefined>;
234
252
  }, undefined>, v.StrictObjectSchema<{
235
253
  readonly propertyId: v.StringSchema<undefined>;
236
254
  readonly date: v.UnionSchema<[v.StrictObjectSchema<{
237
- readonly equals: v.StringSchema<undefined>;
255
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
256
+ readonly equals: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
238
257
  }, undefined>, v.StrictObjectSchema<{
239
- readonly before: v.StringSchema<undefined>;
258
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
259
+ readonly before: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
240
260
  }, undefined>, v.StrictObjectSchema<{
241
- readonly after: v.StringSchema<undefined>;
261
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
262
+ readonly after: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
242
263
  }, undefined>, v.StrictObjectSchema<{
243
- readonly on_or_before: v.StringSchema<undefined>;
264
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
265
+ readonly on_or_before: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
244
266
  }, undefined>, v.StrictObjectSchema<{
245
- readonly on_or_after: v.StringSchema<undefined>;
246
- }, undefined>, v.UnionSchema<[v.StrictObjectSchema<{
267
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
268
+ readonly on_or_after: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
269
+ }, undefined>, v.StrictObjectSchema<{
270
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
271
+ readonly this_week: v.StrictObjectSchema<{}, undefined>;
272
+ }, undefined>, v.StrictObjectSchema<{
273
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
274
+ readonly past_week: v.StrictObjectSchema<{}, undefined>;
275
+ }, undefined>, v.StrictObjectSchema<{
276
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
277
+ readonly past_month: v.StrictObjectSchema<{}, undefined>;
278
+ }, undefined>, v.StrictObjectSchema<{
279
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
280
+ readonly past_year: v.StrictObjectSchema<{}, undefined>;
281
+ }, undefined>, v.StrictObjectSchema<{
282
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
283
+ readonly next_week: v.StrictObjectSchema<{}, undefined>;
284
+ }, undefined>, v.StrictObjectSchema<{
285
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
286
+ readonly next_month: v.StrictObjectSchema<{}, undefined>;
287
+ }, undefined>, v.StrictObjectSchema<{
288
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
289
+ readonly next_year: v.StrictObjectSchema<{}, undefined>;
290
+ }, undefined>, v.StrictObjectSchema<{
291
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
247
292
  readonly is_empty: v.LiteralSchema<true, undefined>;
248
293
  }, undefined>, v.StrictObjectSchema<{
294
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
249
295
  readonly is_not_empty: v.LiteralSchema<true, undefined>;
250
- }, undefined>], undefined>], undefined>;
296
+ }, undefined>], undefined>;
251
297
  }, undefined>, v.StrictObjectSchema<{
252
298
  readonly propertyId: v.StringSchema<undefined>;
253
299
  readonly people: v.UnionSchema<[v.StrictObjectSchema<{
@@ -267,6 +313,13 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
267
313
  }, undefined>], undefined>], undefined>;
268
314
  }, undefined>], undefined>, v.StrictObjectSchema<{
269
315
  readonly and: v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
316
+ readonly propertyId: v.StringSchema<undefined>;
317
+ readonly relation: v.UnionSchema<[v.StrictObjectSchema<{
318
+ readonly contains: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>, v.RegexAction<string & v.Brand<"NotionPageId">, undefined>, v.TransformAction<string & v.Brand<"NotionPageId">, string>]>;
319
+ }, undefined>, v.StrictObjectSchema<{
320
+ readonly does_not_contain: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>, v.RegexAction<string & v.Brand<"NotionPageId">, undefined>, v.TransformAction<string & v.Brand<"NotionPageId">, string>]>;
321
+ }, undefined>], undefined>;
322
+ }, undefined>, v.StrictObjectSchema<{
270
323
  readonly propertyId: v.StringSchema<undefined>;
271
324
  readonly created_by: v.UnionSchema<[v.StrictObjectSchema<{
272
325
  readonly contains: v.StrictObjectSchema<{
@@ -430,7 +483,7 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
430
483
  }, undefined>], undefined>], undefined>;
431
484
  }, undefined>, v.StrictObjectSchema<{
432
485
  readonly propertyId: v.StringSchema<undefined>;
433
- readonly status: v.UnionSchema<[v.StrictObjectSchema<{
486
+ readonly status: v.UnionSchema<[v.UnionSchema<[v.StrictObjectSchema<{
434
487
  readonly equals: v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>;
435
488
  }, undefined>, v.StrictObjectSchema<{
436
489
  readonly does_not_equal: v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>;
@@ -438,24 +491,56 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
438
491
  readonly is_empty: v.LiteralSchema<true, undefined>;
439
492
  }, undefined>, v.StrictObjectSchema<{
440
493
  readonly is_not_empty: v.LiteralSchema<true, undefined>;
494
+ }, undefined>], undefined>], undefined>, v.UnionSchema<[v.StrictObjectSchema<{
495
+ readonly group_equals: v.UnionSchema<[v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, undefined>, v.MinLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 1, undefined>, v.MaxLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 5, undefined>]>], undefined>;
496
+ }, undefined>, v.StrictObjectSchema<{
497
+ readonly group_does_not_equal: v.UnionSchema<[v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, undefined>, v.MinLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 1, undefined>, v.MaxLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 5, undefined>]>], undefined>;
441
498
  }, undefined>], undefined>], undefined>;
442
499
  }, undefined>, v.StrictObjectSchema<{
443
500
  readonly propertyId: v.StringSchema<undefined>;
444
501
  readonly date: v.UnionSchema<[v.StrictObjectSchema<{
445
- readonly equals: v.StringSchema<undefined>;
502
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
503
+ readonly equals: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
446
504
  }, undefined>, v.StrictObjectSchema<{
447
- readonly before: v.StringSchema<undefined>;
505
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
506
+ readonly before: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
448
507
  }, undefined>, v.StrictObjectSchema<{
449
- readonly after: v.StringSchema<undefined>;
508
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
509
+ readonly after: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
450
510
  }, undefined>, v.StrictObjectSchema<{
451
- readonly on_or_before: v.StringSchema<undefined>;
511
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
512
+ readonly on_or_before: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
452
513
  }, undefined>, v.StrictObjectSchema<{
453
- readonly on_or_after: v.StringSchema<undefined>;
454
- }, undefined>, v.UnionSchema<[v.StrictObjectSchema<{
514
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
515
+ readonly on_or_after: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
516
+ }, undefined>, v.StrictObjectSchema<{
517
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
518
+ readonly this_week: v.StrictObjectSchema<{}, undefined>;
519
+ }, undefined>, v.StrictObjectSchema<{
520
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
521
+ readonly past_week: v.StrictObjectSchema<{}, undefined>;
522
+ }, undefined>, v.StrictObjectSchema<{
523
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
524
+ readonly past_month: v.StrictObjectSchema<{}, undefined>;
525
+ }, undefined>, v.StrictObjectSchema<{
526
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
527
+ readonly past_year: v.StrictObjectSchema<{}, undefined>;
528
+ }, undefined>, v.StrictObjectSchema<{
529
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
530
+ readonly next_week: v.StrictObjectSchema<{}, undefined>;
531
+ }, undefined>, v.StrictObjectSchema<{
532
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
533
+ readonly next_month: v.StrictObjectSchema<{}, undefined>;
534
+ }, undefined>, v.StrictObjectSchema<{
535
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
536
+ readonly next_year: v.StrictObjectSchema<{}, undefined>;
537
+ }, undefined>, v.StrictObjectSchema<{
538
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
455
539
  readonly is_empty: v.LiteralSchema<true, undefined>;
456
540
  }, undefined>, v.StrictObjectSchema<{
541
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
457
542
  readonly is_not_empty: v.LiteralSchema<true, undefined>;
458
- }, undefined>], undefined>], undefined>;
543
+ }, undefined>], undefined>;
459
544
  }, undefined>, v.StrictObjectSchema<{
460
545
  readonly propertyId: v.StringSchema<undefined>;
461
546
  readonly people: v.UnionSchema<[v.StrictObjectSchema<{