@constructive-sdk/cli 0.14.9 → 0.14.11

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.
@@ -12,13 +12,18 @@ const fieldSchema = {
12
12
  schemaId: 'uuid',
13
13
  privateSchemaId: 'uuid',
14
14
  notificationsTableId: 'uuid',
15
- eventsTableId: 'uuid',
15
+ readStateTableId: 'uuid',
16
16
  preferencesTableId: 'uuid',
17
17
  channelsTableId: 'uuid',
18
18
  deliveryLogTableId: 'uuid',
19
19
  ownerTableId: 'uuid',
20
20
  userSettingsTableId: 'uuid',
21
21
  organizationSettingsTableId: 'uuid',
22
+ hasChannels: 'boolean',
23
+ hasPreferences: 'boolean',
24
+ hasSettingsExtension: 'boolean',
25
+ hasDigestMetadata: 'boolean',
26
+ hasSubscriptions: 'boolean',
22
27
  };
23
28
  const usage = '\nnotifications-module <command>\n\nCommands:\n list List notificationsModule records\n find-first Find first matching notificationsModule record\n get Get a notificationsModule by ID\n create Create a new notificationsModule\n update Update an existing notificationsModule\n delete Delete a notificationsModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
24
29
  export default async (argv, prompter, _options) => {
@@ -67,13 +72,18 @@ async function handleList(argv, _prompter) {
67
72
  schemaId: true,
68
73
  privateSchemaId: true,
69
74
  notificationsTableId: true,
70
- eventsTableId: true,
75
+ readStateTableId: true,
71
76
  preferencesTableId: true,
72
77
  channelsTableId: true,
73
78
  deliveryLogTableId: true,
74
79
  ownerTableId: true,
75
80
  userSettingsTableId: true,
76
81
  organizationSettingsTableId: true,
82
+ hasChannels: true,
83
+ hasPreferences: true,
84
+ hasSettingsExtension: true,
85
+ hasDigestMetadata: true,
86
+ hasSubscriptions: true,
77
87
  };
78
88
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
79
89
  const client = getClient();
@@ -96,13 +106,18 @@ async function handleFindFirst(argv, _prompter) {
96
106
  schemaId: true,
97
107
  privateSchemaId: true,
98
108
  notificationsTableId: true,
99
- eventsTableId: true,
109
+ readStateTableId: true,
100
110
  preferencesTableId: true,
101
111
  channelsTableId: true,
102
112
  deliveryLogTableId: true,
103
113
  ownerTableId: true,
104
114
  userSettingsTableId: true,
105
115
  organizationSettingsTableId: true,
116
+ hasChannels: true,
117
+ hasPreferences: true,
118
+ hasSettingsExtension: true,
119
+ hasDigestMetadata: true,
120
+ hasSubscriptions: true,
106
121
  };
107
122
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
108
123
  const client = getClient();
@@ -137,13 +152,18 @@ async function handleGet(argv, prompter) {
137
152
  schemaId: true,
138
153
  privateSchemaId: true,
139
154
  notificationsTableId: true,
140
- eventsTableId: true,
155
+ readStateTableId: true,
141
156
  preferencesTableId: true,
142
157
  channelsTableId: true,
143
158
  deliveryLogTableId: true,
144
159
  ownerTableId: true,
145
160
  userSettingsTableId: true,
146
161
  organizationSettingsTableId: true,
162
+ hasChannels: true,
163
+ hasPreferences: true,
164
+ hasSettingsExtension: true,
165
+ hasDigestMetadata: true,
166
+ hasSubscriptions: true,
147
167
  },
148
168
  })
149
169
  .execute();
@@ -189,8 +209,8 @@ async function handleCreate(argv, prompter) {
189
209
  },
190
210
  {
191
211
  type: 'text',
192
- name: 'eventsTableId',
193
- message: 'eventsTableId',
212
+ name: 'readStateTableId',
213
+ message: 'readStateTableId',
194
214
  required: false,
195
215
  skipPrompt: true,
196
216
  },
@@ -236,6 +256,41 @@ async function handleCreate(argv, prompter) {
236
256
  required: false,
237
257
  skipPrompt: true,
238
258
  },
259
+ {
260
+ type: 'boolean',
261
+ name: 'hasChannels',
262
+ message: 'hasChannels',
263
+ required: false,
264
+ skipPrompt: true,
265
+ },
266
+ {
267
+ type: 'boolean',
268
+ name: 'hasPreferences',
269
+ message: 'hasPreferences',
270
+ required: false,
271
+ skipPrompt: true,
272
+ },
273
+ {
274
+ type: 'boolean',
275
+ name: 'hasSettingsExtension',
276
+ message: 'hasSettingsExtension',
277
+ required: false,
278
+ skipPrompt: true,
279
+ },
280
+ {
281
+ type: 'boolean',
282
+ name: 'hasDigestMetadata',
283
+ message: 'hasDigestMetadata',
284
+ required: false,
285
+ skipPrompt: true,
286
+ },
287
+ {
288
+ type: 'boolean',
289
+ name: 'hasSubscriptions',
290
+ message: 'hasSubscriptions',
291
+ required: false,
292
+ skipPrompt: true,
293
+ },
239
294
  ]);
240
295
  const answers = coerceAnswers(rawAnswers, fieldSchema);
241
296
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -247,13 +302,18 @@ async function handleCreate(argv, prompter) {
247
302
  schemaId: cleanedData.schemaId,
248
303
  privateSchemaId: cleanedData.privateSchemaId,
249
304
  notificationsTableId: cleanedData.notificationsTableId,
250
- eventsTableId: cleanedData.eventsTableId,
305
+ readStateTableId: cleanedData.readStateTableId,
251
306
  preferencesTableId: cleanedData.preferencesTableId,
252
307
  channelsTableId: cleanedData.channelsTableId,
253
308
  deliveryLogTableId: cleanedData.deliveryLogTableId,
254
309
  ownerTableId: cleanedData.ownerTableId,
255
310
  userSettingsTableId: cleanedData.userSettingsTableId,
256
311
  organizationSettingsTableId: cleanedData.organizationSettingsTableId,
312
+ hasChannels: cleanedData.hasChannels,
313
+ hasPreferences: cleanedData.hasPreferences,
314
+ hasSettingsExtension: cleanedData.hasSettingsExtension,
315
+ hasDigestMetadata: cleanedData.hasDigestMetadata,
316
+ hasSubscriptions: cleanedData.hasSubscriptions,
257
317
  },
258
318
  select: {
259
319
  id: true,
@@ -261,13 +321,18 @@ async function handleCreate(argv, prompter) {
261
321
  schemaId: true,
262
322
  privateSchemaId: true,
263
323
  notificationsTableId: true,
264
- eventsTableId: true,
324
+ readStateTableId: true,
265
325
  preferencesTableId: true,
266
326
  channelsTableId: true,
267
327
  deliveryLogTableId: true,
268
328
  ownerTableId: true,
269
329
  userSettingsTableId: true,
270
330
  organizationSettingsTableId: true,
331
+ hasChannels: true,
332
+ hasPreferences: true,
333
+ hasSettingsExtension: true,
334
+ hasDigestMetadata: true,
335
+ hasSubscriptions: true,
271
336
  },
272
337
  })
273
338
  .execute();
@@ -319,8 +384,8 @@ async function handleUpdate(argv, prompter) {
319
384
  },
320
385
  {
321
386
  type: 'text',
322
- name: 'eventsTableId',
323
- message: 'eventsTableId',
387
+ name: 'readStateTableId',
388
+ message: 'readStateTableId',
324
389
  required: false,
325
390
  skipPrompt: true,
326
391
  },
@@ -366,6 +431,41 @@ async function handleUpdate(argv, prompter) {
366
431
  required: false,
367
432
  skipPrompt: true,
368
433
  },
434
+ {
435
+ type: 'boolean',
436
+ name: 'hasChannels',
437
+ message: 'hasChannels',
438
+ required: false,
439
+ skipPrompt: true,
440
+ },
441
+ {
442
+ type: 'boolean',
443
+ name: 'hasPreferences',
444
+ message: 'hasPreferences',
445
+ required: false,
446
+ skipPrompt: true,
447
+ },
448
+ {
449
+ type: 'boolean',
450
+ name: 'hasSettingsExtension',
451
+ message: 'hasSettingsExtension',
452
+ required: false,
453
+ skipPrompt: true,
454
+ },
455
+ {
456
+ type: 'boolean',
457
+ name: 'hasDigestMetadata',
458
+ message: 'hasDigestMetadata',
459
+ required: false,
460
+ skipPrompt: true,
461
+ },
462
+ {
463
+ type: 'boolean',
464
+ name: 'hasSubscriptions',
465
+ message: 'hasSubscriptions',
466
+ required: false,
467
+ skipPrompt: true,
468
+ },
369
469
  ]);
370
470
  const answers = coerceAnswers(rawAnswers, fieldSchema);
371
471
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -380,13 +480,18 @@ async function handleUpdate(argv, prompter) {
380
480
  schemaId: cleanedData.schemaId,
381
481
  privateSchemaId: cleanedData.privateSchemaId,
382
482
  notificationsTableId: cleanedData.notificationsTableId,
383
- eventsTableId: cleanedData.eventsTableId,
483
+ readStateTableId: cleanedData.readStateTableId,
384
484
  preferencesTableId: cleanedData.preferencesTableId,
385
485
  channelsTableId: cleanedData.channelsTableId,
386
486
  deliveryLogTableId: cleanedData.deliveryLogTableId,
387
487
  ownerTableId: cleanedData.ownerTableId,
388
488
  userSettingsTableId: cleanedData.userSettingsTableId,
389
489
  organizationSettingsTableId: cleanedData.organizationSettingsTableId,
490
+ hasChannels: cleanedData.hasChannels,
491
+ hasPreferences: cleanedData.hasPreferences,
492
+ hasSettingsExtension: cleanedData.hasSettingsExtension,
493
+ hasDigestMetadata: cleanedData.hasDigestMetadata,
494
+ hasSubscriptions: cleanedData.hasSubscriptions,
390
495
  },
391
496
  select: {
392
497
  id: true,
@@ -394,13 +499,18 @@ async function handleUpdate(argv, prompter) {
394
499
  schemaId: true,
395
500
  privateSchemaId: true,
396
501
  notificationsTableId: true,
397
- eventsTableId: true,
502
+ readStateTableId: true,
398
503
  preferencesTableId: true,
399
504
  channelsTableId: true,
400
505
  deliveryLogTableId: true,
401
506
  ownerTableId: true,
402
507
  userSettingsTableId: true,
403
508
  organizationSettingsTableId: true,
509
+ hasChannels: true,
510
+ hasPreferences: true,
511
+ hasSettingsExtension: true,
512
+ hasDigestMetadata: true,
513
+ hasSubscriptions: true,
404
514
  },
405
515
  })
406
516
  .execute();
@@ -1572,13 +1572,18 @@ export interface NotificationsModule {
1572
1572
  schemaId?: string | null;
1573
1573
  privateSchemaId?: string | null;
1574
1574
  notificationsTableId?: string | null;
1575
- eventsTableId?: string | null;
1575
+ readStateTableId?: string | null;
1576
1576
  preferencesTableId?: string | null;
1577
1577
  channelsTableId?: string | null;
1578
1578
  deliveryLogTableId?: string | null;
1579
1579
  ownerTableId?: string | null;
1580
1580
  userSettingsTableId?: string | null;
1581
1581
  organizationSettingsTableId?: string | null;
1582
+ hasChannels?: boolean | null;
1583
+ hasPreferences?: boolean | null;
1584
+ hasSettingsExtension?: boolean | null;
1585
+ hasDigestMetadata?: boolean | null;
1586
+ hasSubscriptions?: boolean | null;
1582
1587
  }
1583
1588
  /** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */
1584
1589
  export interface DatabaseProvisionModule {
@@ -2798,12 +2803,12 @@ export interface NotificationsModuleRelations {
2798
2803
  channelsTableByChannelsTableId?: Table | null;
2799
2804
  database?: Database | null;
2800
2805
  deliveryLogTableByDeliveryLogTableId?: Table | null;
2801
- eventsTableByEventsTableId?: Table | null;
2802
2806
  notificationsTableByNotificationsTableId?: Table | null;
2803
2807
  organizationSettingsTableByOrganizationSettingsTableId?: Table | null;
2804
2808
  ownerTable?: Table | null;
2805
2809
  preferencesTableByPreferencesTableId?: Table | null;
2806
2810
  privateSchema?: Schema | null;
2811
+ readStateTableByReadStateTableId?: Table | null;
2807
2812
  schema?: Schema | null;
2808
2813
  userSettingsTableByUserSettingsTableId?: Table | null;
2809
2814
  }
@@ -5439,13 +5444,18 @@ export type NotificationsModuleSelect = {
5439
5444
  schemaId?: boolean;
5440
5445
  privateSchemaId?: boolean;
5441
5446
  notificationsTableId?: boolean;
5442
- eventsTableId?: boolean;
5447
+ readStateTableId?: boolean;
5443
5448
  preferencesTableId?: boolean;
5444
5449
  channelsTableId?: boolean;
5445
5450
  deliveryLogTableId?: boolean;
5446
5451
  ownerTableId?: boolean;
5447
5452
  userSettingsTableId?: boolean;
5448
5453
  organizationSettingsTableId?: boolean;
5454
+ hasChannels?: boolean;
5455
+ hasPreferences?: boolean;
5456
+ hasSettingsExtension?: boolean;
5457
+ hasDigestMetadata?: boolean;
5458
+ hasSubscriptions?: boolean;
5449
5459
  channelsTableByChannelsTableId?: {
5450
5460
  select: TableSelect;
5451
5461
  };
@@ -5455,9 +5465,6 @@ export type NotificationsModuleSelect = {
5455
5465
  deliveryLogTableByDeliveryLogTableId?: {
5456
5466
  select: TableSelect;
5457
5467
  };
5458
- eventsTableByEventsTableId?: {
5459
- select: TableSelect;
5460
- };
5461
5468
  notificationsTableByNotificationsTableId?: {
5462
5469
  select: TableSelect;
5463
5470
  };
@@ -5473,6 +5480,9 @@ export type NotificationsModuleSelect = {
5473
5480
  privateSchema?: {
5474
5481
  select: SchemaSelect;
5475
5482
  };
5483
+ readStateTableByReadStateTableId?: {
5484
+ select: TableSelect;
5485
+ };
5476
5486
  schema?: {
5477
5487
  select: SchemaSelect;
5478
5488
  };
@@ -9600,8 +9610,8 @@ export interface NotificationsModuleFilter {
9600
9610
  privateSchemaId?: UUIDFilter;
9601
9611
  /** Filter by the object’s `notificationsTableId` field. */
9602
9612
  notificationsTableId?: UUIDFilter;
9603
- /** Filter by the object’s `eventsTableId` field. */
9604
- eventsTableId?: UUIDFilter;
9613
+ /** Filter by the object’s `readStateTableId` field. */
9614
+ readStateTableId?: UUIDFilter;
9605
9615
  /** Filter by the object’s `preferencesTableId` field. */
9606
9616
  preferencesTableId?: UUIDFilter;
9607
9617
  /** Filter by the object’s `channelsTableId` field. */
@@ -9614,6 +9624,16 @@ export interface NotificationsModuleFilter {
9614
9624
  userSettingsTableId?: UUIDFilter;
9615
9625
  /** Filter by the object’s `organizationSettingsTableId` field. */
9616
9626
  organizationSettingsTableId?: UUIDFilter;
9627
+ /** Filter by the object’s `hasChannels` field. */
9628
+ hasChannels?: BooleanFilter;
9629
+ /** Filter by the object’s `hasPreferences` field. */
9630
+ hasPreferences?: BooleanFilter;
9631
+ /** Filter by the object’s `hasSettingsExtension` field. */
9632
+ hasSettingsExtension?: BooleanFilter;
9633
+ /** Filter by the object’s `hasDigestMetadata` field. */
9634
+ hasDigestMetadata?: BooleanFilter;
9635
+ /** Filter by the object’s `hasSubscriptions` field. */
9636
+ hasSubscriptions?: BooleanFilter;
9617
9637
  /** Checks for all expressions in this list. */
9618
9638
  and?: NotificationsModuleFilter[];
9619
9639
  /** Checks for any expressions in this list. */
@@ -9622,12 +9642,14 @@ export interface NotificationsModuleFilter {
9622
9642
  not?: NotificationsModuleFilter;
9623
9643
  /** Filter by the object’s `channelsTableByChannelsTableId` relation. */
9624
9644
  channelsTableByChannelsTableId?: TableFilter;
9645
+ /** A related `channelsTableByChannelsTableId` exists. */
9646
+ channelsTableByChannelsTableIdExists?: boolean;
9625
9647
  /** Filter by the object’s `database` relation. */
9626
9648
  database?: DatabaseFilter;
9627
9649
  /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */
9628
9650
  deliveryLogTableByDeliveryLogTableId?: TableFilter;
9629
- /** Filter by the object’s `eventsTableByEventsTableId` relation. */
9630
- eventsTableByEventsTableId?: TableFilter;
9651
+ /** A related `deliveryLogTableByDeliveryLogTableId` exists. */
9652
+ deliveryLogTableByDeliveryLogTableIdExists?: boolean;
9631
9653
  /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */
9632
9654
  notificationsTableByNotificationsTableId?: TableFilter;
9633
9655
  /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */
@@ -9638,8 +9660,12 @@ export interface NotificationsModuleFilter {
9638
9660
  ownerTable?: TableFilter;
9639
9661
  /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */
9640
9662
  preferencesTableByPreferencesTableId?: TableFilter;
9663
+ /** A related `preferencesTableByPreferencesTableId` exists. */
9664
+ preferencesTableByPreferencesTableIdExists?: boolean;
9641
9665
  /** Filter by the object’s `privateSchema` relation. */
9642
9666
  privateSchema?: SchemaFilter;
9667
+ /** Filter by the object’s `readStateTableByReadStateTableId` relation. */
9668
+ readStateTableByReadStateTableId?: TableFilter;
9643
9669
  /** Filter by the object’s `schema` relation. */
9644
9670
  schema?: SchemaFilter;
9645
9671
  /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */
@@ -11314,7 +11340,7 @@ export type StorageModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_
11314
11340
  export type EntityTypeProvisionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'PARENT_ENTITY_ASC' | 'PARENT_ENTITY_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'IS_VISIBLE_ASC' | 'IS_VISIBLE_DESC' | 'HAS_LIMITS_ASC' | 'HAS_LIMITS_DESC' | 'HAS_PROFILES_ASC' | 'HAS_PROFILES_DESC' | 'HAS_LEVELS_ASC' | 'HAS_LEVELS_DESC' | 'HAS_STORAGE_ASC' | 'HAS_STORAGE_DESC' | 'STORAGE_CONFIG_ASC' | 'STORAGE_CONFIG_DESC' | 'SKIP_ENTITY_POLICIES_ASC' | 'SKIP_ENTITY_POLICIES_DESC' | 'TABLE_PROVISION_ASC' | 'TABLE_PROVISION_DESC' | 'OUT_MEMBERSHIP_TYPE_ASC' | 'OUT_MEMBERSHIP_TYPE_DESC' | 'OUT_ENTITY_TABLE_ID_ASC' | 'OUT_ENTITY_TABLE_ID_DESC' | 'OUT_ENTITY_TABLE_NAME_ASC' | 'OUT_ENTITY_TABLE_NAME_DESC' | 'OUT_INSTALLED_MODULES_ASC' | 'OUT_INSTALLED_MODULES_DESC' | 'OUT_STORAGE_MODULE_ID_ASC' | 'OUT_STORAGE_MODULE_ID_DESC' | 'OUT_BUCKETS_TABLE_ID_ASC' | 'OUT_BUCKETS_TABLE_ID_DESC' | 'OUT_FILES_TABLE_ID_ASC' | 'OUT_FILES_TABLE_ID_DESC';
11315
11341
  export type WebauthnCredentialsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC';
11316
11342
  export type WebauthnAuthModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC' | 'CREDENTIALS_TABLE_ID_ASC' | 'CREDENTIALS_TABLE_ID_DESC' | 'SESSIONS_TABLE_ID_ASC' | 'SESSIONS_TABLE_ID_DESC' | 'SESSION_CREDENTIALS_TABLE_ID_ASC' | 'SESSION_CREDENTIALS_TABLE_ID_DESC' | 'SESSION_SECRETS_TABLE_ID_ASC' | 'SESSION_SECRETS_TABLE_ID_DESC' | 'AUTH_SETTINGS_TABLE_ID_ASC' | 'AUTH_SETTINGS_TABLE_ID_DESC' | 'RP_ID_ASC' | 'RP_ID_DESC' | 'RP_NAME_ASC' | 'RP_NAME_DESC' | 'ORIGIN_ALLOWLIST_ASC' | 'ORIGIN_ALLOWLIST_DESC' | 'ATTESTATION_TYPE_ASC' | 'ATTESTATION_TYPE_DESC' | 'REQUIRE_USER_VERIFICATION_ASC' | 'REQUIRE_USER_VERIFICATION_DESC' | 'RESIDENT_KEY_ASC' | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_ASC' | 'CHALLENGE_EXPIRY_DESC';
11317
- export type NotificationsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'NOTIFICATIONS_TABLE_ID_ASC' | 'NOTIFICATIONS_TABLE_ID_DESC' | 'EVENTS_TABLE_ID_ASC' | 'EVENTS_TABLE_ID_DESC' | 'PREFERENCES_TABLE_ID_ASC' | 'PREFERENCES_TABLE_ID_DESC' | 'CHANNELS_TABLE_ID_ASC' | 'CHANNELS_TABLE_ID_DESC' | 'DELIVERY_LOG_TABLE_ID_ASC' | 'DELIVERY_LOG_TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC' | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC';
11343
+ export type NotificationsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'NOTIFICATIONS_TABLE_ID_ASC' | 'NOTIFICATIONS_TABLE_ID_DESC' | 'READ_STATE_TABLE_ID_ASC' | 'READ_STATE_TABLE_ID_DESC' | 'PREFERENCES_TABLE_ID_ASC' | 'PREFERENCES_TABLE_ID_DESC' | 'CHANNELS_TABLE_ID_ASC' | 'CHANNELS_TABLE_ID_DESC' | 'DELIVERY_LOG_TABLE_ID_ASC' | 'DELIVERY_LOG_TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC' | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' | 'HAS_CHANNELS_ASC' | 'HAS_CHANNELS_DESC' | 'HAS_PREFERENCES_ASC' | 'HAS_PREFERENCES_DESC' | 'HAS_SETTINGS_EXTENSION_ASC' | 'HAS_SETTINGS_EXTENSION_DESC' | 'HAS_DIGEST_METADATA_ASC' | 'HAS_DIGEST_METADATA_DESC' | 'HAS_SUBSCRIPTIONS_ASC' | 'HAS_SUBSCRIPTIONS_DESC';
11318
11344
  export type DatabaseProvisionModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_NAME_ASC' | 'DATABASE_NAME_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'SUBDOMAIN_ASC' | 'SUBDOMAIN_DESC' | 'DOMAIN_ASC' | 'DOMAIN_DESC' | 'MODULES_ASC' | 'MODULES_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'BOOTSTRAP_USER_ASC' | 'BOOTSTRAP_USER_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'ERROR_MESSAGE_ASC' | 'ERROR_MESSAGE_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC';
11319
11345
  export type AppAdminGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
11320
11346
  export type AppOwnerGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
@@ -13849,13 +13875,18 @@ export interface CreateNotificationsModuleInput {
13849
13875
  schemaId?: string;
13850
13876
  privateSchemaId?: string;
13851
13877
  notificationsTableId?: string;
13852
- eventsTableId?: string;
13878
+ readStateTableId?: string;
13853
13879
  preferencesTableId?: string;
13854
13880
  channelsTableId?: string;
13855
13881
  deliveryLogTableId?: string;
13856
13882
  ownerTableId?: string;
13857
13883
  userSettingsTableId?: string;
13858
13884
  organizationSettingsTableId?: string;
13885
+ hasChannels?: boolean;
13886
+ hasPreferences?: boolean;
13887
+ hasSettingsExtension?: boolean;
13888
+ hasDigestMetadata?: boolean;
13889
+ hasSubscriptions?: boolean;
13859
13890
  };
13860
13891
  }
13861
13892
  export interface NotificationsModulePatch {
@@ -13863,13 +13894,18 @@ export interface NotificationsModulePatch {
13863
13894
  schemaId?: string | null;
13864
13895
  privateSchemaId?: string | null;
13865
13896
  notificationsTableId?: string | null;
13866
- eventsTableId?: string | null;
13897
+ readStateTableId?: string | null;
13867
13898
  preferencesTableId?: string | null;
13868
13899
  channelsTableId?: string | null;
13869
13900
  deliveryLogTableId?: string | null;
13870
13901
  ownerTableId?: string | null;
13871
13902
  userSettingsTableId?: string | null;
13872
13903
  organizationSettingsTableId?: string | null;
13904
+ hasChannels?: boolean | null;
13905
+ hasPreferences?: boolean | null;
13906
+ hasSettingsExtension?: boolean | null;
13907
+ hasDigestMetadata?: boolean | null;
13908
+ hasSubscriptions?: boolean | null;
13873
13909
  }
13874
13910
  export interface UpdateNotificationsModuleInput {
13875
13911
  clientMutationId?: string;
@@ -20073,8 +20109,8 @@ export interface NotificationsModuleFilter {
20073
20109
  privateSchemaId?: UUIDFilter;
20074
20110
  /** Filter by the object’s `notificationsTableId` field. */
20075
20111
  notificationsTableId?: UUIDFilter;
20076
- /** Filter by the object’s `eventsTableId` field. */
20077
- eventsTableId?: UUIDFilter;
20112
+ /** Filter by the object’s `readStateTableId` field. */
20113
+ readStateTableId?: UUIDFilter;
20078
20114
  /** Filter by the object’s `preferencesTableId` field. */
20079
20115
  preferencesTableId?: UUIDFilter;
20080
20116
  /** Filter by the object’s `channelsTableId` field. */
@@ -20087,6 +20123,16 @@ export interface NotificationsModuleFilter {
20087
20123
  userSettingsTableId?: UUIDFilter;
20088
20124
  /** Filter by the object’s `organizationSettingsTableId` field. */
20089
20125
  organizationSettingsTableId?: UUIDFilter;
20126
+ /** Filter by the object’s `hasChannels` field. */
20127
+ hasChannels?: BooleanFilter;
20128
+ /** Filter by the object’s `hasPreferences` field. */
20129
+ hasPreferences?: BooleanFilter;
20130
+ /** Filter by the object’s `hasSettingsExtension` field. */
20131
+ hasSettingsExtension?: BooleanFilter;
20132
+ /** Filter by the object’s `hasDigestMetadata` field. */
20133
+ hasDigestMetadata?: BooleanFilter;
20134
+ /** Filter by the object’s `hasSubscriptions` field. */
20135
+ hasSubscriptions?: BooleanFilter;
20090
20136
  /** Checks for all expressions in this list. */
20091
20137
  and?: NotificationsModuleFilter[];
20092
20138
  /** Checks for any expressions in this list. */
@@ -20095,12 +20141,14 @@ export interface NotificationsModuleFilter {
20095
20141
  not?: NotificationsModuleFilter;
20096
20142
  /** Filter by the object’s `channelsTableByChannelsTableId` relation. */
20097
20143
  channelsTableByChannelsTableId?: TableFilter;
20144
+ /** A related `channelsTableByChannelsTableId` exists. */
20145
+ channelsTableByChannelsTableIdExists?: boolean;
20098
20146
  /** Filter by the object’s `database` relation. */
20099
20147
  database?: DatabaseFilter;
20100
20148
  /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */
20101
20149
  deliveryLogTableByDeliveryLogTableId?: TableFilter;
20102
- /** Filter by the object’s `eventsTableByEventsTableId` relation. */
20103
- eventsTableByEventsTableId?: TableFilter;
20150
+ /** A related `deliveryLogTableByDeliveryLogTableId` exists. */
20151
+ deliveryLogTableByDeliveryLogTableIdExists?: boolean;
20104
20152
  /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */
20105
20153
  notificationsTableByNotificationsTableId?: TableFilter;
20106
20154
  /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */
@@ -20111,8 +20159,12 @@ export interface NotificationsModuleFilter {
20111
20159
  ownerTable?: TableFilter;
20112
20160
  /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */
20113
20161
  preferencesTableByPreferencesTableId?: TableFilter;
20162
+ /** A related `preferencesTableByPreferencesTableId` exists. */
20163
+ preferencesTableByPreferencesTableIdExists?: boolean;
20114
20164
  /** Filter by the object’s `privateSchema` relation. */
20115
20165
  privateSchema?: SchemaFilter;
20166
+ /** Filter by the object’s `readStateTableByReadStateTableId` relation. */
20167
+ readStateTableByReadStateTableId?: TableFilter;
20116
20168
  /** Filter by the object’s `schema` relation. */
20117
20169
  schema?: SchemaFilter;
20118
20170
  /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-sdk/cli",
3
- "version": "0.14.9",
3
+ "version": "0.14.11",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive CLI SDK - Auto-generated GraphQL CLI with ORM client, context management, and interactive prompts",
6
6
  "main": "index.js",
@@ -55,11 +55,11 @@
55
55
  "yanse": "^0.2.1"
56
56
  },
57
57
  "devDependencies": {
58
- "@constructive-io/graphql-codegen": "^4.30.8",
58
+ "@constructive-io/graphql-codegen": "^4.31.0",
59
59
  "@types/node": "^22.19.11",
60
60
  "makage": "^0.3.0",
61
61
  "tsx": "^4.19.0",
62
62
  "typescript": "^5.9.3"
63
63
  },
64
- "gitHead": "ad2d49ede1f962293e13d68843831897f267915d"
64
+ "gitHead": "434a578648cb04d3ed25e79a75c654f71573292f"
65
65
  }
@@ -14,13 +14,18 @@ const fieldSchema = {
14
14
  schemaId: 'uuid',
15
15
  privateSchemaId: 'uuid',
16
16
  notificationsTableId: 'uuid',
17
- eventsTableId: 'uuid',
17
+ readStateTableId: 'uuid',
18
18
  preferencesTableId: 'uuid',
19
19
  channelsTableId: 'uuid',
20
20
  deliveryLogTableId: 'uuid',
21
21
  ownerTableId: 'uuid',
22
22
  userSettingsTableId: 'uuid',
23
23
  organizationSettingsTableId: 'uuid',
24
+ hasChannels: 'boolean',
25
+ hasPreferences: 'boolean',
26
+ hasSettingsExtension: 'boolean',
27
+ hasDigestMetadata: 'boolean',
28
+ hasSubscriptions: 'boolean',
24
29
  };
25
30
  const usage = '\nnotifications-module <command>\n\nCommands:\n list List notificationsModule records\n find-first Find first matching notificationsModule record\n get Get a notificationsModule by ID\n create Create a new notificationsModule\n update Update an existing notificationsModule\n delete Delete a notificationsModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
26
31
  exports.default = async (argv, prompter, _options) => {
@@ -69,13 +74,18 @@ async function handleList(argv, _prompter) {
69
74
  schemaId: true,
70
75
  privateSchemaId: true,
71
76
  notificationsTableId: true,
72
- eventsTableId: true,
77
+ readStateTableId: true,
73
78
  preferencesTableId: true,
74
79
  channelsTableId: true,
75
80
  deliveryLogTableId: true,
76
81
  ownerTableId: true,
77
82
  userSettingsTableId: true,
78
83
  organizationSettingsTableId: true,
84
+ hasChannels: true,
85
+ hasPreferences: true,
86
+ hasSettingsExtension: true,
87
+ hasDigestMetadata: true,
88
+ hasSubscriptions: true,
79
89
  };
80
90
  const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
81
91
  const client = (0, executor_1.getClient)();
@@ -98,13 +108,18 @@ async function handleFindFirst(argv, _prompter) {
98
108
  schemaId: true,
99
109
  privateSchemaId: true,
100
110
  notificationsTableId: true,
101
- eventsTableId: true,
111
+ readStateTableId: true,
102
112
  preferencesTableId: true,
103
113
  channelsTableId: true,
104
114
  deliveryLogTableId: true,
105
115
  ownerTableId: true,
106
116
  userSettingsTableId: true,
107
117
  organizationSettingsTableId: true,
118
+ hasChannels: true,
119
+ hasPreferences: true,
120
+ hasSettingsExtension: true,
121
+ hasDigestMetadata: true,
122
+ hasSubscriptions: true,
108
123
  };
109
124
  const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
110
125
  const client = (0, executor_1.getClient)();
@@ -139,13 +154,18 @@ async function handleGet(argv, prompter) {
139
154
  schemaId: true,
140
155
  privateSchemaId: true,
141
156
  notificationsTableId: true,
142
- eventsTableId: true,
157
+ readStateTableId: true,
143
158
  preferencesTableId: true,
144
159
  channelsTableId: true,
145
160
  deliveryLogTableId: true,
146
161
  ownerTableId: true,
147
162
  userSettingsTableId: true,
148
163
  organizationSettingsTableId: true,
164
+ hasChannels: true,
165
+ hasPreferences: true,
166
+ hasSettingsExtension: true,
167
+ hasDigestMetadata: true,
168
+ hasSubscriptions: true,
149
169
  },
150
170
  })
151
171
  .execute();
@@ -191,8 +211,8 @@ async function handleCreate(argv, prompter) {
191
211
  },
192
212
  {
193
213
  type: 'text',
194
- name: 'eventsTableId',
195
- message: 'eventsTableId',
214
+ name: 'readStateTableId',
215
+ message: 'readStateTableId',
196
216
  required: false,
197
217
  skipPrompt: true,
198
218
  },
@@ -238,6 +258,41 @@ async function handleCreate(argv, prompter) {
238
258
  required: false,
239
259
  skipPrompt: true,
240
260
  },
261
+ {
262
+ type: 'boolean',
263
+ name: 'hasChannels',
264
+ message: 'hasChannels',
265
+ required: false,
266
+ skipPrompt: true,
267
+ },
268
+ {
269
+ type: 'boolean',
270
+ name: 'hasPreferences',
271
+ message: 'hasPreferences',
272
+ required: false,
273
+ skipPrompt: true,
274
+ },
275
+ {
276
+ type: 'boolean',
277
+ name: 'hasSettingsExtension',
278
+ message: 'hasSettingsExtension',
279
+ required: false,
280
+ skipPrompt: true,
281
+ },
282
+ {
283
+ type: 'boolean',
284
+ name: 'hasDigestMetadata',
285
+ message: 'hasDigestMetadata',
286
+ required: false,
287
+ skipPrompt: true,
288
+ },
289
+ {
290
+ type: 'boolean',
291
+ name: 'hasSubscriptions',
292
+ message: 'hasSubscriptions',
293
+ required: false,
294
+ skipPrompt: true,
295
+ },
241
296
  ]);
242
297
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
243
298
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -249,13 +304,18 @@ async function handleCreate(argv, prompter) {
249
304
  schemaId: cleanedData.schemaId,
250
305
  privateSchemaId: cleanedData.privateSchemaId,
251
306
  notificationsTableId: cleanedData.notificationsTableId,
252
- eventsTableId: cleanedData.eventsTableId,
307
+ readStateTableId: cleanedData.readStateTableId,
253
308
  preferencesTableId: cleanedData.preferencesTableId,
254
309
  channelsTableId: cleanedData.channelsTableId,
255
310
  deliveryLogTableId: cleanedData.deliveryLogTableId,
256
311
  ownerTableId: cleanedData.ownerTableId,
257
312
  userSettingsTableId: cleanedData.userSettingsTableId,
258
313
  organizationSettingsTableId: cleanedData.organizationSettingsTableId,
314
+ hasChannels: cleanedData.hasChannels,
315
+ hasPreferences: cleanedData.hasPreferences,
316
+ hasSettingsExtension: cleanedData.hasSettingsExtension,
317
+ hasDigestMetadata: cleanedData.hasDigestMetadata,
318
+ hasSubscriptions: cleanedData.hasSubscriptions,
259
319
  },
260
320
  select: {
261
321
  id: true,
@@ -263,13 +323,18 @@ async function handleCreate(argv, prompter) {
263
323
  schemaId: true,
264
324
  privateSchemaId: true,
265
325
  notificationsTableId: true,
266
- eventsTableId: true,
326
+ readStateTableId: true,
267
327
  preferencesTableId: true,
268
328
  channelsTableId: true,
269
329
  deliveryLogTableId: true,
270
330
  ownerTableId: true,
271
331
  userSettingsTableId: true,
272
332
  organizationSettingsTableId: true,
333
+ hasChannels: true,
334
+ hasPreferences: true,
335
+ hasSettingsExtension: true,
336
+ hasDigestMetadata: true,
337
+ hasSubscriptions: true,
273
338
  },
274
339
  })
275
340
  .execute();
@@ -321,8 +386,8 @@ async function handleUpdate(argv, prompter) {
321
386
  },
322
387
  {
323
388
  type: 'text',
324
- name: 'eventsTableId',
325
- message: 'eventsTableId',
389
+ name: 'readStateTableId',
390
+ message: 'readStateTableId',
326
391
  required: false,
327
392
  skipPrompt: true,
328
393
  },
@@ -368,6 +433,41 @@ async function handleUpdate(argv, prompter) {
368
433
  required: false,
369
434
  skipPrompt: true,
370
435
  },
436
+ {
437
+ type: 'boolean',
438
+ name: 'hasChannels',
439
+ message: 'hasChannels',
440
+ required: false,
441
+ skipPrompt: true,
442
+ },
443
+ {
444
+ type: 'boolean',
445
+ name: 'hasPreferences',
446
+ message: 'hasPreferences',
447
+ required: false,
448
+ skipPrompt: true,
449
+ },
450
+ {
451
+ type: 'boolean',
452
+ name: 'hasSettingsExtension',
453
+ message: 'hasSettingsExtension',
454
+ required: false,
455
+ skipPrompt: true,
456
+ },
457
+ {
458
+ type: 'boolean',
459
+ name: 'hasDigestMetadata',
460
+ message: 'hasDigestMetadata',
461
+ required: false,
462
+ skipPrompt: true,
463
+ },
464
+ {
465
+ type: 'boolean',
466
+ name: 'hasSubscriptions',
467
+ message: 'hasSubscriptions',
468
+ required: false,
469
+ skipPrompt: true,
470
+ },
371
471
  ]);
372
472
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
373
473
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -382,13 +482,18 @@ async function handleUpdate(argv, prompter) {
382
482
  schemaId: cleanedData.schemaId,
383
483
  privateSchemaId: cleanedData.privateSchemaId,
384
484
  notificationsTableId: cleanedData.notificationsTableId,
385
- eventsTableId: cleanedData.eventsTableId,
485
+ readStateTableId: cleanedData.readStateTableId,
386
486
  preferencesTableId: cleanedData.preferencesTableId,
387
487
  channelsTableId: cleanedData.channelsTableId,
388
488
  deliveryLogTableId: cleanedData.deliveryLogTableId,
389
489
  ownerTableId: cleanedData.ownerTableId,
390
490
  userSettingsTableId: cleanedData.userSettingsTableId,
391
491
  organizationSettingsTableId: cleanedData.organizationSettingsTableId,
492
+ hasChannels: cleanedData.hasChannels,
493
+ hasPreferences: cleanedData.hasPreferences,
494
+ hasSettingsExtension: cleanedData.hasSettingsExtension,
495
+ hasDigestMetadata: cleanedData.hasDigestMetadata,
496
+ hasSubscriptions: cleanedData.hasSubscriptions,
392
497
  },
393
498
  select: {
394
499
  id: true,
@@ -396,13 +501,18 @@ async function handleUpdate(argv, prompter) {
396
501
  schemaId: true,
397
502
  privateSchemaId: true,
398
503
  notificationsTableId: true,
399
- eventsTableId: true,
504
+ readStateTableId: true,
400
505
  preferencesTableId: true,
401
506
  channelsTableId: true,
402
507
  deliveryLogTableId: true,
403
508
  ownerTableId: true,
404
509
  userSettingsTableId: true,
405
510
  organizationSettingsTableId: true,
511
+ hasChannels: true,
512
+ hasPreferences: true,
513
+ hasSettingsExtension: true,
514
+ hasDigestMetadata: true,
515
+ hasSubscriptions: true,
406
516
  },
407
517
  })
408
518
  .execute();
@@ -1572,13 +1572,18 @@ export interface NotificationsModule {
1572
1572
  schemaId?: string | null;
1573
1573
  privateSchemaId?: string | null;
1574
1574
  notificationsTableId?: string | null;
1575
- eventsTableId?: string | null;
1575
+ readStateTableId?: string | null;
1576
1576
  preferencesTableId?: string | null;
1577
1577
  channelsTableId?: string | null;
1578
1578
  deliveryLogTableId?: string | null;
1579
1579
  ownerTableId?: string | null;
1580
1580
  userSettingsTableId?: string | null;
1581
1581
  organizationSettingsTableId?: string | null;
1582
+ hasChannels?: boolean | null;
1583
+ hasPreferences?: boolean | null;
1584
+ hasSettingsExtension?: boolean | null;
1585
+ hasDigestMetadata?: boolean | null;
1586
+ hasSubscriptions?: boolean | null;
1582
1587
  }
1583
1588
  /** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */
1584
1589
  export interface DatabaseProvisionModule {
@@ -2798,12 +2803,12 @@ export interface NotificationsModuleRelations {
2798
2803
  channelsTableByChannelsTableId?: Table | null;
2799
2804
  database?: Database | null;
2800
2805
  deliveryLogTableByDeliveryLogTableId?: Table | null;
2801
- eventsTableByEventsTableId?: Table | null;
2802
2806
  notificationsTableByNotificationsTableId?: Table | null;
2803
2807
  organizationSettingsTableByOrganizationSettingsTableId?: Table | null;
2804
2808
  ownerTable?: Table | null;
2805
2809
  preferencesTableByPreferencesTableId?: Table | null;
2806
2810
  privateSchema?: Schema | null;
2811
+ readStateTableByReadStateTableId?: Table | null;
2807
2812
  schema?: Schema | null;
2808
2813
  userSettingsTableByUserSettingsTableId?: Table | null;
2809
2814
  }
@@ -5439,13 +5444,18 @@ export type NotificationsModuleSelect = {
5439
5444
  schemaId?: boolean;
5440
5445
  privateSchemaId?: boolean;
5441
5446
  notificationsTableId?: boolean;
5442
- eventsTableId?: boolean;
5447
+ readStateTableId?: boolean;
5443
5448
  preferencesTableId?: boolean;
5444
5449
  channelsTableId?: boolean;
5445
5450
  deliveryLogTableId?: boolean;
5446
5451
  ownerTableId?: boolean;
5447
5452
  userSettingsTableId?: boolean;
5448
5453
  organizationSettingsTableId?: boolean;
5454
+ hasChannels?: boolean;
5455
+ hasPreferences?: boolean;
5456
+ hasSettingsExtension?: boolean;
5457
+ hasDigestMetadata?: boolean;
5458
+ hasSubscriptions?: boolean;
5449
5459
  channelsTableByChannelsTableId?: {
5450
5460
  select: TableSelect;
5451
5461
  };
@@ -5455,9 +5465,6 @@ export type NotificationsModuleSelect = {
5455
5465
  deliveryLogTableByDeliveryLogTableId?: {
5456
5466
  select: TableSelect;
5457
5467
  };
5458
- eventsTableByEventsTableId?: {
5459
- select: TableSelect;
5460
- };
5461
5468
  notificationsTableByNotificationsTableId?: {
5462
5469
  select: TableSelect;
5463
5470
  };
@@ -5473,6 +5480,9 @@ export type NotificationsModuleSelect = {
5473
5480
  privateSchema?: {
5474
5481
  select: SchemaSelect;
5475
5482
  };
5483
+ readStateTableByReadStateTableId?: {
5484
+ select: TableSelect;
5485
+ };
5476
5486
  schema?: {
5477
5487
  select: SchemaSelect;
5478
5488
  };
@@ -9600,8 +9610,8 @@ export interface NotificationsModuleFilter {
9600
9610
  privateSchemaId?: UUIDFilter;
9601
9611
  /** Filter by the object’s `notificationsTableId` field. */
9602
9612
  notificationsTableId?: UUIDFilter;
9603
- /** Filter by the object’s `eventsTableId` field. */
9604
- eventsTableId?: UUIDFilter;
9613
+ /** Filter by the object’s `readStateTableId` field. */
9614
+ readStateTableId?: UUIDFilter;
9605
9615
  /** Filter by the object’s `preferencesTableId` field. */
9606
9616
  preferencesTableId?: UUIDFilter;
9607
9617
  /** Filter by the object’s `channelsTableId` field. */
@@ -9614,6 +9624,16 @@ export interface NotificationsModuleFilter {
9614
9624
  userSettingsTableId?: UUIDFilter;
9615
9625
  /** Filter by the object’s `organizationSettingsTableId` field. */
9616
9626
  organizationSettingsTableId?: UUIDFilter;
9627
+ /** Filter by the object’s `hasChannels` field. */
9628
+ hasChannels?: BooleanFilter;
9629
+ /** Filter by the object’s `hasPreferences` field. */
9630
+ hasPreferences?: BooleanFilter;
9631
+ /** Filter by the object’s `hasSettingsExtension` field. */
9632
+ hasSettingsExtension?: BooleanFilter;
9633
+ /** Filter by the object’s `hasDigestMetadata` field. */
9634
+ hasDigestMetadata?: BooleanFilter;
9635
+ /** Filter by the object’s `hasSubscriptions` field. */
9636
+ hasSubscriptions?: BooleanFilter;
9617
9637
  /** Checks for all expressions in this list. */
9618
9638
  and?: NotificationsModuleFilter[];
9619
9639
  /** Checks for any expressions in this list. */
@@ -9622,12 +9642,14 @@ export interface NotificationsModuleFilter {
9622
9642
  not?: NotificationsModuleFilter;
9623
9643
  /** Filter by the object’s `channelsTableByChannelsTableId` relation. */
9624
9644
  channelsTableByChannelsTableId?: TableFilter;
9645
+ /** A related `channelsTableByChannelsTableId` exists. */
9646
+ channelsTableByChannelsTableIdExists?: boolean;
9625
9647
  /** Filter by the object’s `database` relation. */
9626
9648
  database?: DatabaseFilter;
9627
9649
  /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */
9628
9650
  deliveryLogTableByDeliveryLogTableId?: TableFilter;
9629
- /** Filter by the object’s `eventsTableByEventsTableId` relation. */
9630
- eventsTableByEventsTableId?: TableFilter;
9651
+ /** A related `deliveryLogTableByDeliveryLogTableId` exists. */
9652
+ deliveryLogTableByDeliveryLogTableIdExists?: boolean;
9631
9653
  /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */
9632
9654
  notificationsTableByNotificationsTableId?: TableFilter;
9633
9655
  /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */
@@ -9638,8 +9660,12 @@ export interface NotificationsModuleFilter {
9638
9660
  ownerTable?: TableFilter;
9639
9661
  /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */
9640
9662
  preferencesTableByPreferencesTableId?: TableFilter;
9663
+ /** A related `preferencesTableByPreferencesTableId` exists. */
9664
+ preferencesTableByPreferencesTableIdExists?: boolean;
9641
9665
  /** Filter by the object’s `privateSchema` relation. */
9642
9666
  privateSchema?: SchemaFilter;
9667
+ /** Filter by the object’s `readStateTableByReadStateTableId` relation. */
9668
+ readStateTableByReadStateTableId?: TableFilter;
9643
9669
  /** Filter by the object’s `schema` relation. */
9644
9670
  schema?: SchemaFilter;
9645
9671
  /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */
@@ -11314,7 +11340,7 @@ export type StorageModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_
11314
11340
  export type EntityTypeProvisionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'PARENT_ENTITY_ASC' | 'PARENT_ENTITY_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'IS_VISIBLE_ASC' | 'IS_VISIBLE_DESC' | 'HAS_LIMITS_ASC' | 'HAS_LIMITS_DESC' | 'HAS_PROFILES_ASC' | 'HAS_PROFILES_DESC' | 'HAS_LEVELS_ASC' | 'HAS_LEVELS_DESC' | 'HAS_STORAGE_ASC' | 'HAS_STORAGE_DESC' | 'STORAGE_CONFIG_ASC' | 'STORAGE_CONFIG_DESC' | 'SKIP_ENTITY_POLICIES_ASC' | 'SKIP_ENTITY_POLICIES_DESC' | 'TABLE_PROVISION_ASC' | 'TABLE_PROVISION_DESC' | 'OUT_MEMBERSHIP_TYPE_ASC' | 'OUT_MEMBERSHIP_TYPE_DESC' | 'OUT_ENTITY_TABLE_ID_ASC' | 'OUT_ENTITY_TABLE_ID_DESC' | 'OUT_ENTITY_TABLE_NAME_ASC' | 'OUT_ENTITY_TABLE_NAME_DESC' | 'OUT_INSTALLED_MODULES_ASC' | 'OUT_INSTALLED_MODULES_DESC' | 'OUT_STORAGE_MODULE_ID_ASC' | 'OUT_STORAGE_MODULE_ID_DESC' | 'OUT_BUCKETS_TABLE_ID_ASC' | 'OUT_BUCKETS_TABLE_ID_DESC' | 'OUT_FILES_TABLE_ID_ASC' | 'OUT_FILES_TABLE_ID_DESC';
11315
11341
  export type WebauthnCredentialsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC';
11316
11342
  export type WebauthnAuthModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC' | 'CREDENTIALS_TABLE_ID_ASC' | 'CREDENTIALS_TABLE_ID_DESC' | 'SESSIONS_TABLE_ID_ASC' | 'SESSIONS_TABLE_ID_DESC' | 'SESSION_CREDENTIALS_TABLE_ID_ASC' | 'SESSION_CREDENTIALS_TABLE_ID_DESC' | 'SESSION_SECRETS_TABLE_ID_ASC' | 'SESSION_SECRETS_TABLE_ID_DESC' | 'AUTH_SETTINGS_TABLE_ID_ASC' | 'AUTH_SETTINGS_TABLE_ID_DESC' | 'RP_ID_ASC' | 'RP_ID_DESC' | 'RP_NAME_ASC' | 'RP_NAME_DESC' | 'ORIGIN_ALLOWLIST_ASC' | 'ORIGIN_ALLOWLIST_DESC' | 'ATTESTATION_TYPE_ASC' | 'ATTESTATION_TYPE_DESC' | 'REQUIRE_USER_VERIFICATION_ASC' | 'REQUIRE_USER_VERIFICATION_DESC' | 'RESIDENT_KEY_ASC' | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_ASC' | 'CHALLENGE_EXPIRY_DESC';
11317
- export type NotificationsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'NOTIFICATIONS_TABLE_ID_ASC' | 'NOTIFICATIONS_TABLE_ID_DESC' | 'EVENTS_TABLE_ID_ASC' | 'EVENTS_TABLE_ID_DESC' | 'PREFERENCES_TABLE_ID_ASC' | 'PREFERENCES_TABLE_ID_DESC' | 'CHANNELS_TABLE_ID_ASC' | 'CHANNELS_TABLE_ID_DESC' | 'DELIVERY_LOG_TABLE_ID_ASC' | 'DELIVERY_LOG_TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC' | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC';
11343
+ export type NotificationsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'NOTIFICATIONS_TABLE_ID_ASC' | 'NOTIFICATIONS_TABLE_ID_DESC' | 'READ_STATE_TABLE_ID_ASC' | 'READ_STATE_TABLE_ID_DESC' | 'PREFERENCES_TABLE_ID_ASC' | 'PREFERENCES_TABLE_ID_DESC' | 'CHANNELS_TABLE_ID_ASC' | 'CHANNELS_TABLE_ID_DESC' | 'DELIVERY_LOG_TABLE_ID_ASC' | 'DELIVERY_LOG_TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'USER_SETTINGS_TABLE_ID_ASC' | 'USER_SETTINGS_TABLE_ID_DESC' | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' | 'HAS_CHANNELS_ASC' | 'HAS_CHANNELS_DESC' | 'HAS_PREFERENCES_ASC' | 'HAS_PREFERENCES_DESC' | 'HAS_SETTINGS_EXTENSION_ASC' | 'HAS_SETTINGS_EXTENSION_DESC' | 'HAS_DIGEST_METADATA_ASC' | 'HAS_DIGEST_METADATA_DESC' | 'HAS_SUBSCRIPTIONS_ASC' | 'HAS_SUBSCRIPTIONS_DESC';
11318
11344
  export type DatabaseProvisionModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_NAME_ASC' | 'DATABASE_NAME_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'SUBDOMAIN_ASC' | 'SUBDOMAIN_DESC' | 'DOMAIN_ASC' | 'DOMAIN_DESC' | 'MODULES_ASC' | 'MODULES_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC' | 'BOOTSTRAP_USER_ASC' | 'BOOTSTRAP_USER_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'ERROR_MESSAGE_ASC' | 'ERROR_MESSAGE_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC';
11319
11345
  export type AppAdminGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
11320
11346
  export type AppOwnerGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
@@ -13849,13 +13875,18 @@ export interface CreateNotificationsModuleInput {
13849
13875
  schemaId?: string;
13850
13876
  privateSchemaId?: string;
13851
13877
  notificationsTableId?: string;
13852
- eventsTableId?: string;
13878
+ readStateTableId?: string;
13853
13879
  preferencesTableId?: string;
13854
13880
  channelsTableId?: string;
13855
13881
  deliveryLogTableId?: string;
13856
13882
  ownerTableId?: string;
13857
13883
  userSettingsTableId?: string;
13858
13884
  organizationSettingsTableId?: string;
13885
+ hasChannels?: boolean;
13886
+ hasPreferences?: boolean;
13887
+ hasSettingsExtension?: boolean;
13888
+ hasDigestMetadata?: boolean;
13889
+ hasSubscriptions?: boolean;
13859
13890
  };
13860
13891
  }
13861
13892
  export interface NotificationsModulePatch {
@@ -13863,13 +13894,18 @@ export interface NotificationsModulePatch {
13863
13894
  schemaId?: string | null;
13864
13895
  privateSchemaId?: string | null;
13865
13896
  notificationsTableId?: string | null;
13866
- eventsTableId?: string | null;
13897
+ readStateTableId?: string | null;
13867
13898
  preferencesTableId?: string | null;
13868
13899
  channelsTableId?: string | null;
13869
13900
  deliveryLogTableId?: string | null;
13870
13901
  ownerTableId?: string | null;
13871
13902
  userSettingsTableId?: string | null;
13872
13903
  organizationSettingsTableId?: string | null;
13904
+ hasChannels?: boolean | null;
13905
+ hasPreferences?: boolean | null;
13906
+ hasSettingsExtension?: boolean | null;
13907
+ hasDigestMetadata?: boolean | null;
13908
+ hasSubscriptions?: boolean | null;
13873
13909
  }
13874
13910
  export interface UpdateNotificationsModuleInput {
13875
13911
  clientMutationId?: string;
@@ -20073,8 +20109,8 @@ export interface NotificationsModuleFilter {
20073
20109
  privateSchemaId?: UUIDFilter;
20074
20110
  /** Filter by the object’s `notificationsTableId` field. */
20075
20111
  notificationsTableId?: UUIDFilter;
20076
- /** Filter by the object’s `eventsTableId` field. */
20077
- eventsTableId?: UUIDFilter;
20112
+ /** Filter by the object’s `readStateTableId` field. */
20113
+ readStateTableId?: UUIDFilter;
20078
20114
  /** Filter by the object’s `preferencesTableId` field. */
20079
20115
  preferencesTableId?: UUIDFilter;
20080
20116
  /** Filter by the object’s `channelsTableId` field. */
@@ -20087,6 +20123,16 @@ export interface NotificationsModuleFilter {
20087
20123
  userSettingsTableId?: UUIDFilter;
20088
20124
  /** Filter by the object’s `organizationSettingsTableId` field. */
20089
20125
  organizationSettingsTableId?: UUIDFilter;
20126
+ /** Filter by the object’s `hasChannels` field. */
20127
+ hasChannels?: BooleanFilter;
20128
+ /** Filter by the object’s `hasPreferences` field. */
20129
+ hasPreferences?: BooleanFilter;
20130
+ /** Filter by the object’s `hasSettingsExtension` field. */
20131
+ hasSettingsExtension?: BooleanFilter;
20132
+ /** Filter by the object’s `hasDigestMetadata` field. */
20133
+ hasDigestMetadata?: BooleanFilter;
20134
+ /** Filter by the object’s `hasSubscriptions` field. */
20135
+ hasSubscriptions?: BooleanFilter;
20090
20136
  /** Checks for all expressions in this list. */
20091
20137
  and?: NotificationsModuleFilter[];
20092
20138
  /** Checks for any expressions in this list. */
@@ -20095,12 +20141,14 @@ export interface NotificationsModuleFilter {
20095
20141
  not?: NotificationsModuleFilter;
20096
20142
  /** Filter by the object’s `channelsTableByChannelsTableId` relation. */
20097
20143
  channelsTableByChannelsTableId?: TableFilter;
20144
+ /** A related `channelsTableByChannelsTableId` exists. */
20145
+ channelsTableByChannelsTableIdExists?: boolean;
20098
20146
  /** Filter by the object’s `database` relation. */
20099
20147
  database?: DatabaseFilter;
20100
20148
  /** Filter by the object’s `deliveryLogTableByDeliveryLogTableId` relation. */
20101
20149
  deliveryLogTableByDeliveryLogTableId?: TableFilter;
20102
- /** Filter by the object’s `eventsTableByEventsTableId` relation. */
20103
- eventsTableByEventsTableId?: TableFilter;
20150
+ /** A related `deliveryLogTableByDeliveryLogTableId` exists. */
20151
+ deliveryLogTableByDeliveryLogTableIdExists?: boolean;
20104
20152
  /** Filter by the object’s `notificationsTableByNotificationsTableId` relation. */
20105
20153
  notificationsTableByNotificationsTableId?: TableFilter;
20106
20154
  /** Filter by the object’s `organizationSettingsTableByOrganizationSettingsTableId` relation. */
@@ -20111,8 +20159,12 @@ export interface NotificationsModuleFilter {
20111
20159
  ownerTable?: TableFilter;
20112
20160
  /** Filter by the object’s `preferencesTableByPreferencesTableId` relation. */
20113
20161
  preferencesTableByPreferencesTableId?: TableFilter;
20162
+ /** A related `preferencesTableByPreferencesTableId` exists. */
20163
+ preferencesTableByPreferencesTableIdExists?: boolean;
20114
20164
  /** Filter by the object’s `privateSchema` relation. */
20115
20165
  privateSchema?: SchemaFilter;
20166
+ /** Filter by the object’s `readStateTableByReadStateTableId` relation. */
20167
+ readStateTableByReadStateTableId?: TableFilter;
20116
20168
  /** Filter by the object’s `schema` relation. */
20117
20169
  schema?: SchemaFilter;
20118
20170
  /** Filter by the object’s `userSettingsTableByUserSettingsTableId` relation. */