@prostgles/app 2.3.6-dev.1792579748 → 2.3.6-dev.1792682663

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 (79) hide show
  1. package/client/build/js/733.bundle.js +1 -1
  2. package/client/build/js/main.bundle.js +2 -2
  3. package/dist/common/DBGeneratedSchema.d.ts +4 -0
  4. package/dist/common/DBGeneratedSchema.d.ts.map +1 -1
  5. package/dist/common/DashboardTypes.d.ts +2 -0
  6. package/dist/common/DashboardTypes.d.ts.map +1 -1
  7. package/dist/common/resolveActionFunction.d.ts +4 -3
  8. package/dist/common/resolveActionFunction.d.ts.map +1 -1
  9. package/dist/common/resolveActionFunction.js +14 -5
  10. package/dist/common/resolveActionFunction.js.map +1 -1
  11. package/dist/server/package.json +5 -2
  12. package/dist/server/src/Alerts/getAlertConfig.d.ts.map +1 -1
  13. package/dist/server/src/Alerts/getAlertConfig.js +4 -2
  14. package/dist/server/src/Alerts/getAlertConfig.js.map +1 -1
  15. package/dist/server/src/ConnectionManager/fetchUserAccessControlRules.js +2 -2
  16. package/dist/server/src/ConnectionManager/fetchUserAccessControlRules.js.map +1 -1
  17. package/dist/server/src/ConnectionManager/getConnectionUser.d.ts.map +1 -1
  18. package/dist/server/src/ConnectionManager/getConnectionUser.js +2 -5
  19. package/dist/server/src/ConnectionManager/getConnectionUser.js.map +1 -1
  20. package/dist/server/src/ConnectionManager/modifyClientSchema.js +3 -1
  21. package/dist/server/src/ConnectionManager/modifyClientSchema.js.map +1 -1
  22. package/dist/server/src/Emails/EmailTypes.d.ts +32 -0
  23. package/dist/server/src/Emails/EmailTypes.d.ts.map +1 -0
  24. package/dist/server/src/Emails/EmailTypes.js +3 -0
  25. package/dist/server/src/Emails/EmailTypes.js.map +1 -0
  26. package/dist/server/src/Emails/checkDmarc.d.ts +2 -0
  27. package/dist/server/src/Emails/checkDmarc.d.ts.map +1 -0
  28. package/dist/server/src/Emails/checkDmarc.js +22 -0
  29. package/dist/server/src/Emails/checkDmarc.js.map +1 -0
  30. package/dist/server/src/Emails/sendEmail.d.ts +6 -0
  31. package/dist/server/src/Emails/sendEmail.d.ts.map +1 -0
  32. package/dist/server/src/Emails/sendEmail.js +122 -0
  33. package/dist/server/src/Emails/sendEmail.js.map +1 -0
  34. package/dist/server/src/authConfig/emailProvider/getEmailSenderWithMockTest.d.ts +1 -1
  35. package/dist/server/src/authConfig/emailProvider/getEmailSenderWithMockTest.d.ts.map +1 -1
  36. package/dist/server/src/authConfig/emailProvider/getEmailSenderWithMockTest.js +2 -2
  37. package/dist/server/src/authConfig/emailProvider/getEmailSenderWithMockTest.js.map +1 -1
  38. package/dist/server/src/authConfig/getAuth.d.ts.map +1 -1
  39. package/dist/server/src/authConfig/getAuth.js +0 -10
  40. package/dist/server/src/authConfig/getAuth.js.map +1 -1
  41. package/dist/server/src/electronConfig.d.ts +3 -0
  42. package/dist/server/src/electronConfig.d.ts.map +1 -1
  43. package/dist/server/src/electronConfig.js +6 -1
  44. package/dist/server/src/electronConfig.js.map +1 -1
  45. package/dist/server/src/publish/getAllowedConnectionsFilter.d.ts +89 -0
  46. package/dist/server/src/publish/getAllowedConnectionsFilter.d.ts.map +1 -0
  47. package/dist/server/src/publish/{businessAccessFilters.js → getAllowedConnectionsFilter.js} +10 -16
  48. package/dist/server/src/publish/getAllowedConnectionsFilter.js.map +1 -0
  49. package/dist/server/src/publish/getBusinessAccessPublish.d.ts +444 -374
  50. package/dist/server/src/publish/getBusinessAccessPublish.d.ts.map +1 -1
  51. package/dist/server/src/publish/getBusinessAccessPublish.js +18 -10
  52. package/dist/server/src/publish/getBusinessAccessPublish.js.map +1 -1
  53. package/dist/server/src/publish/publish.d.ts.map +1 -1
  54. package/dist/server/src/publish/publish.js +7 -13
  55. package/dist/server/src/publish/publish.js.map +1 -1
  56. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.d.ts +13 -0
  57. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.d.ts.map +1 -1
  58. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.js +31 -0
  59. package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.js.map +1 -1
  60. package/dist/server/src/serverFunctions/askLLM/agentConstants.d.ts +1 -1
  61. package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedTable.d.ts +1 -0
  62. package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedTable.d.ts.map +1 -1
  63. package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedTable.js +1 -0
  64. package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedTable.js.map +1 -1
  65. package/dist/server/src/serverFunctions/stateServerFunctions.d.ts +13 -0
  66. package/dist/server/src/serverFunctions/stateServerFunctions.d.ts.map +1 -1
  67. package/dist/server/src/tableConfig/tableConfigUsers.d.ts +2 -2
  68. package/dist/server/src/tableConfig/tableConfigUsers.js +2 -2
  69. package/dist/server/src/tableConfig/tableConfigUsers.js.map +1 -1
  70. package/dist/server/src/testElectron.js +3 -0
  71. package/dist/server/src/testElectron.js.map +1 -1
  72. package/package.json +5 -2
  73. package/sample_schemas/crypto/dist/index.js +9 -0
  74. package/sample_schemas/crypto/dist/onMount.js +747 -0
  75. package/sample_schemas/crypto/dist/tableConfig.js +81 -0
  76. package/sample_schemas/crypto/dist/workspaceConfig.js +263 -0
  77. package/dist/server/src/publish/businessAccessFilters.d.ts +0 -87
  78. package/dist/server/src/publish/businessAccessFilters.d.ts.map +0 -1
  79. package/dist/server/src/publish/businessAccessFilters.js.map +0 -1
@@ -6,34 +6,39 @@ export declare const getBusinessAccessPublish: (userId: string) => {
6
6
  select: {
7
7
  fields: "*";
8
8
  forcedFilter: {
9
- $and: ({
10
- $existsJoined: {
11
- access_control_connections: {};
9
+ readonly $and: [{
10
+ readonly $existsJoined: {
11
+ readonly access_control_connections: {};
12
12
  };
13
- $notExistsJoined?: undefined;
14
- } | {
15
- $notExistsJoined: {
16
- path: string[];
17
- filter: {
18
- is_state_db: boolean;
13
+ }, {
14
+ readonly $notExistsJoined: {
15
+ readonly path: ["database_configs", "connections"];
16
+ readonly filter: {
17
+ readonly is_state_db: true;
19
18
  };
20
19
  };
21
- $existsJoined?: undefined;
22
- } | {
23
- $or: ({
24
- dbPermissions: {
25
- "@>": {
26
- type: "Custom";
20
+ }, {
21
+ readonly $notExistsJoined: {
22
+ readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
23
+ readonly filter: {
24
+ readonly is_state_db: true;
25
+ };
26
+ };
27
+ }, {
28
+ readonly $or: [{
29
+ readonly dbPermissions: {
30
+ readonly "@>": {
31
+ readonly type: "Custom";
27
32
  };
28
33
  };
29
- } | {
30
- dbPermissions: {
31
- "@>": {
32
- type: "All views/tables";
34
+ }, {
35
+ readonly dbPermissions: {
36
+ readonly "@>": {
37
+ readonly type: "All views/tables";
33
38
  };
34
39
  };
35
- })[];
36
- })[];
40
+ }];
41
+ }];
37
42
  };
38
43
  };
39
44
  insert: {
@@ -52,64 +57,74 @@ export declare const getBusinessAccessPublish: (userId: string) => {
52
57
  llm_daily_limit: 1;
53
58
  };
54
59
  forcedFilter: {
55
- $and: ({
56
- $existsJoined: {
57
- access_control_connections: {};
60
+ readonly $and: [{
61
+ readonly $existsJoined: {
62
+ readonly access_control_connections: {};
58
63
  };
59
- $notExistsJoined?: undefined;
60
- } | {
61
- $notExistsJoined: {
62
- path: string[];
63
- filter: {
64
- is_state_db: boolean;
64
+ }, {
65
+ readonly $notExistsJoined: {
66
+ readonly path: ["database_configs", "connections"];
67
+ readonly filter: {
68
+ readonly is_state_db: true;
65
69
  };
66
70
  };
67
- $existsJoined?: undefined;
68
- } | {
69
- $or: ({
70
- dbPermissions: {
71
- "@>": {
72
- type: "Custom";
71
+ }, {
72
+ readonly $notExistsJoined: {
73
+ readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
74
+ readonly filter: {
75
+ readonly is_state_db: true;
76
+ };
77
+ };
78
+ }, {
79
+ readonly $or: [{
80
+ readonly dbPermissions: {
81
+ readonly "@>": {
82
+ readonly type: "Custom";
73
83
  };
74
84
  };
75
- } | {
76
- dbPermissions: {
77
- "@>": {
78
- type: "All views/tables";
85
+ }, {
86
+ readonly dbPermissions: {
87
+ readonly "@>": {
88
+ readonly type: "All views/tables";
79
89
  };
80
90
  };
81
- })[];
82
- })[];
91
+ }];
92
+ }];
83
93
  };
84
94
  checkFilter: {
85
- $and: ({
86
- $existsJoined: {
87
- access_control_connections: {};
95
+ readonly $and: [{
96
+ readonly $existsJoined: {
97
+ readonly access_control_connections: {};
88
98
  };
89
- $notExistsJoined?: undefined;
90
- } | {
91
- $notExistsJoined: {
92
- path: string[];
93
- filter: {
94
- is_state_db: boolean;
99
+ }, {
100
+ readonly $notExistsJoined: {
101
+ readonly path: ["database_configs", "connections"];
102
+ readonly filter: {
103
+ readonly is_state_db: true;
95
104
  };
96
105
  };
97
- $existsJoined?: undefined;
98
- } | {
99
- $or: ({
100
- dbPermissions: {
101
- "@>": {
102
- type: "Custom";
106
+ }, {
107
+ readonly $notExistsJoined: {
108
+ readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
109
+ readonly filter: {
110
+ readonly is_state_db: true;
111
+ };
112
+ };
113
+ }, {
114
+ readonly $or: [{
115
+ readonly dbPermissions: {
116
+ readonly "@>": {
117
+ readonly type: "Custom";
103
118
  };
104
119
  };
105
- } | {
106
- dbPermissions: {
107
- "@>": {
108
- type: "All views/tables";
120
+ }, {
121
+ readonly dbPermissions: {
122
+ readonly "@>": {
123
+ readonly type: "All views/tables";
109
124
  };
110
125
  };
111
- })[];
112
- })[];
126
+ }];
127
+ }];
113
128
  };
114
129
  postValidate: ({ row, dbx }: import("prostgles-server/dist/PublishParser/publishTypesAndUtils").ValidateRowArgs<Required<{
115
130
  created?: null | string;
@@ -176,34 +191,39 @@ export declare const getBusinessAccessPublish: (userId: string) => {
176
191
  delete: {
177
192
  filterFields: "*";
178
193
  forcedFilter: {
179
- $and: ({
180
- $existsJoined: {
181
- access_control_connections: {};
194
+ readonly $and: [{
195
+ readonly $existsJoined: {
196
+ readonly access_control_connections: {};
182
197
  };
183
- $notExistsJoined?: undefined;
184
- } | {
185
- $notExistsJoined: {
186
- path: string[];
187
- filter: {
188
- is_state_db: boolean;
198
+ }, {
199
+ readonly $notExistsJoined: {
200
+ readonly path: ["database_configs", "connections"];
201
+ readonly filter: {
202
+ readonly is_state_db: true;
189
203
  };
190
204
  };
191
- $existsJoined?: undefined;
192
- } | {
193
- $or: ({
194
- dbPermissions: {
195
- "@>": {
196
- type: "Custom";
205
+ }, {
206
+ readonly $notExistsJoined: {
207
+ readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
208
+ readonly filter: {
209
+ readonly is_state_db: true;
210
+ };
211
+ };
212
+ }, {
213
+ readonly $or: [{
214
+ readonly dbPermissions: {
215
+ readonly "@>": {
216
+ readonly type: "Custom";
197
217
  };
198
218
  };
199
- } | {
200
- dbPermissions: {
201
- "@>": {
202
- type: "All views/tables";
219
+ }, {
220
+ readonly dbPermissions: {
221
+ readonly "@>": {
222
+ readonly type: "All views/tables";
203
223
  };
204
224
  };
205
- })[];
206
- })[];
225
+ }];
226
+ }];
207
227
  };
208
228
  };
209
229
  };
@@ -211,36 +231,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
211
231
  select: {
212
232
  fields: "*";
213
233
  forcedFilter: {
214
- $existsJoined: {
215
- access_control: {
216
- $and: ({
217
- $existsJoined: {
218
- access_control_connections: {};
219
- };
220
- $notExistsJoined?: undefined;
221
- } | {
222
- $notExistsJoined: {
223
- path: string[];
224
- filter: {
225
- is_state_db: boolean;
226
- };
227
- };
228
- $existsJoined?: undefined;
229
- } | {
230
- $or: ({
231
- dbPermissions: {
232
- "@>": {
233
- type: "Custom";
234
+ readonly $existsJoined: {
235
+ readonly access_control: {
236
+ readonly $and: [{
237
+ readonly $existsJoined: {
238
+ readonly access_control_connections: {};
239
+ };
240
+ }, {
241
+ readonly $notExistsJoined: {
242
+ readonly path: ["database_configs", "connections"];
243
+ readonly filter: {
244
+ readonly is_state_db: true;
245
+ };
246
+ };
247
+ }, {
248
+ readonly $notExistsJoined: {
249
+ readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
250
+ readonly filter: {
251
+ readonly is_state_db: true;
252
+ };
253
+ };
254
+ }, {
255
+ readonly $or: [{
256
+ readonly dbPermissions: {
257
+ readonly "@>": {
258
+ readonly type: "Custom";
234
259
  };
235
260
  };
236
- } | {
237
- dbPermissions: {
238
- "@>": {
239
- type: "All views/tables";
261
+ }, {
262
+ readonly dbPermissions: {
263
+ readonly "@>": {
264
+ readonly type: "All views/tables";
240
265
  };
241
266
  };
242
- })[];
243
- })[];
267
+ }];
268
+ }];
244
269
  };
245
270
  };
246
271
  };
@@ -261,36 +286,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
261
286
  select: {
262
287
  fields: "*";
263
288
  forcedFilter: {
264
- $existsJoined: {
265
- access_control: {
266
- $and: ({
267
- $existsJoined: {
268
- access_control_connections: {};
269
- };
270
- $notExistsJoined?: undefined;
271
- } | {
272
- $notExistsJoined: {
273
- path: string[];
274
- filter: {
275
- is_state_db: boolean;
276
- };
277
- };
278
- $existsJoined?: undefined;
279
- } | {
280
- $or: ({
281
- dbPermissions: {
282
- "@>": {
283
- type: "Custom";
289
+ readonly $existsJoined: {
290
+ readonly access_control: {
291
+ readonly $and: [{
292
+ readonly $existsJoined: {
293
+ readonly access_control_connections: {};
294
+ };
295
+ }, {
296
+ readonly $notExistsJoined: {
297
+ readonly path: ["database_configs", "connections"];
298
+ readonly filter: {
299
+ readonly is_state_db: true;
300
+ };
301
+ };
302
+ }, {
303
+ readonly $notExistsJoined: {
304
+ readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
305
+ readonly filter: {
306
+ readonly is_state_db: true;
307
+ };
308
+ };
309
+ }, {
310
+ readonly $or: [{
311
+ readonly dbPermissions: {
312
+ readonly "@>": {
313
+ readonly type: "Custom";
284
314
  };
285
315
  };
286
- } | {
287
- dbPermissions: {
288
- "@>": {
289
- type: "All views/tables";
316
+ }, {
317
+ readonly dbPermissions: {
318
+ readonly "@>": {
319
+ readonly type: "All views/tables";
290
320
  };
291
321
  };
292
- })[];
293
- })[];
322
+ }];
323
+ }];
294
324
  };
295
325
  };
296
326
  };
@@ -298,36 +328,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
298
328
  insert: {
299
329
  fields: ("access_control_id" | "user_type")[];
300
330
  checkFilter: {
301
- $existsJoined: {
302
- access_control: {
303
- $and: ({
304
- $existsJoined: {
305
- access_control_connections: {};
306
- };
307
- $notExistsJoined?: undefined;
308
- } | {
309
- $notExistsJoined: {
310
- path: string[];
311
- filter: {
312
- is_state_db: boolean;
313
- };
314
- };
315
- $existsJoined?: undefined;
316
- } | {
317
- $or: ({
318
- dbPermissions: {
319
- "@>": {
320
- type: "Custom";
331
+ readonly $existsJoined: {
332
+ readonly access_control: {
333
+ readonly $and: [{
334
+ readonly $existsJoined: {
335
+ readonly access_control_connections: {};
336
+ };
337
+ }, {
338
+ readonly $notExistsJoined: {
339
+ readonly path: ["database_configs", "connections"];
340
+ readonly filter: {
341
+ readonly is_state_db: true;
342
+ };
343
+ };
344
+ }, {
345
+ readonly $notExistsJoined: {
346
+ readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
347
+ readonly filter: {
348
+ readonly is_state_db: true;
349
+ };
350
+ };
351
+ }, {
352
+ readonly $or: [{
353
+ readonly dbPermissions: {
354
+ readonly "@>": {
355
+ readonly type: "Custom";
321
356
  };
322
357
  };
323
- } | {
324
- dbPermissions: {
325
- "@>": {
326
- type: "All views/tables";
358
+ }, {
359
+ readonly dbPermissions: {
360
+ readonly "@>": {
361
+ readonly type: "All views/tables";
327
362
  };
328
363
  };
329
- })[];
330
- })[];
364
+ }];
365
+ }];
331
366
  };
332
367
  };
333
368
  };
@@ -335,36 +370,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
335
370
  delete: {
336
371
  filterFields: "*";
337
372
  forcedFilter: {
338
- $existsJoined: {
339
- access_control: {
340
- $and: ({
341
- $existsJoined: {
342
- access_control_connections: {};
343
- };
344
- $notExistsJoined?: undefined;
345
- } | {
346
- $notExistsJoined: {
347
- path: string[];
348
- filter: {
349
- is_state_db: boolean;
350
- };
351
- };
352
- $existsJoined?: undefined;
353
- } | {
354
- $or: ({
355
- dbPermissions: {
356
- "@>": {
357
- type: "Custom";
373
+ readonly $existsJoined: {
374
+ readonly access_control: {
375
+ readonly $and: [{
376
+ readonly $existsJoined: {
377
+ readonly access_control_connections: {};
378
+ };
379
+ }, {
380
+ readonly $notExistsJoined: {
381
+ readonly path: ["database_configs", "connections"];
382
+ readonly filter: {
383
+ readonly is_state_db: true;
384
+ };
385
+ };
386
+ }, {
387
+ readonly $notExistsJoined: {
388
+ readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
389
+ readonly filter: {
390
+ readonly is_state_db: true;
391
+ };
392
+ };
393
+ }, {
394
+ readonly $or: [{
395
+ readonly dbPermissions: {
396
+ readonly "@>": {
397
+ readonly type: "Custom";
358
398
  };
359
399
  };
360
- } | {
361
- dbPermissions: {
362
- "@>": {
363
- type: "All views/tables";
400
+ }, {
401
+ readonly dbPermissions: {
402
+ readonly "@>": {
403
+ readonly type: "All views/tables";
364
404
  };
365
405
  };
366
- })[];
367
- })[];
406
+ }];
407
+ }];
368
408
  };
369
409
  };
370
410
  };
@@ -374,36 +414,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
374
414
  select: {
375
415
  fields: "*";
376
416
  forcedFilter: {
377
- $existsJoined: {
378
- access_control: {
379
- $and: ({
380
- $existsJoined: {
381
- access_control_connections: {};
382
- };
383
- $notExistsJoined?: undefined;
384
- } | {
385
- $notExistsJoined: {
386
- path: string[];
387
- filter: {
388
- is_state_db: boolean;
389
- };
390
- };
391
- $existsJoined?: undefined;
392
- } | {
393
- $or: ({
394
- dbPermissions: {
395
- "@>": {
396
- type: "Custom";
417
+ readonly $existsJoined: {
418
+ readonly access_control: {
419
+ readonly $and: [{
420
+ readonly $existsJoined: {
421
+ readonly access_control_connections: {};
422
+ };
423
+ }, {
424
+ readonly $notExistsJoined: {
425
+ readonly path: ["database_configs", "connections"];
426
+ readonly filter: {
427
+ readonly is_state_db: true;
428
+ };
429
+ };
430
+ }, {
431
+ readonly $notExistsJoined: {
432
+ readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
433
+ readonly filter: {
434
+ readonly is_state_db: true;
435
+ };
436
+ };
437
+ }, {
438
+ readonly $or: [{
439
+ readonly dbPermissions: {
440
+ readonly "@>": {
441
+ readonly type: "Custom";
397
442
  };
398
443
  };
399
- } | {
400
- dbPermissions: {
401
- "@>": {
402
- type: "All views/tables";
444
+ }, {
445
+ readonly dbPermissions: {
446
+ readonly "@>": {
447
+ readonly type: "All views/tables";
403
448
  };
404
449
  };
405
- })[];
406
- })[];
450
+ }];
451
+ }];
407
452
  };
408
453
  };
409
454
  };
@@ -411,36 +456,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
411
456
  insert: {
412
457
  fields: ("access_control_id" | "published_method_id")[];
413
458
  checkFilter: {
414
- $existsJoined: {
415
- access_control: {
416
- $and: ({
417
- $existsJoined: {
418
- access_control_connections: {};
419
- };
420
- $notExistsJoined?: undefined;
421
- } | {
422
- $notExistsJoined: {
423
- path: string[];
424
- filter: {
425
- is_state_db: boolean;
426
- };
427
- };
428
- $existsJoined?: undefined;
429
- } | {
430
- $or: ({
431
- dbPermissions: {
432
- "@>": {
433
- type: "Custom";
459
+ readonly $existsJoined: {
460
+ readonly access_control: {
461
+ readonly $and: [{
462
+ readonly $existsJoined: {
463
+ readonly access_control_connections: {};
464
+ };
465
+ }, {
466
+ readonly $notExistsJoined: {
467
+ readonly path: ["database_configs", "connections"];
468
+ readonly filter: {
469
+ readonly is_state_db: true;
470
+ };
471
+ };
472
+ }, {
473
+ readonly $notExistsJoined: {
474
+ readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
475
+ readonly filter: {
476
+ readonly is_state_db: true;
477
+ };
478
+ };
479
+ }, {
480
+ readonly $or: [{
481
+ readonly dbPermissions: {
482
+ readonly "@>": {
483
+ readonly type: "Custom";
434
484
  };
435
485
  };
436
- } | {
437
- dbPermissions: {
438
- "@>": {
439
- type: "All views/tables";
486
+ }, {
487
+ readonly dbPermissions: {
488
+ readonly "@>": {
489
+ readonly type: "All views/tables";
440
490
  };
441
491
  };
442
- })[];
443
- })[];
492
+ }];
493
+ }];
444
494
  };
445
495
  };
446
496
  };
@@ -452,36 +502,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
452
502
  delete: {
453
503
  filterFields: "*";
454
504
  forcedFilter: {
455
- $existsJoined: {
456
- access_control: {
457
- $and: ({
458
- $existsJoined: {
459
- access_control_connections: {};
460
- };
461
- $notExistsJoined?: undefined;
462
- } | {
463
- $notExistsJoined: {
464
- path: string[];
465
- filter: {
466
- is_state_db: boolean;
467
- };
468
- };
469
- $existsJoined?: undefined;
470
- } | {
471
- $or: ({
472
- dbPermissions: {
473
- "@>": {
474
- type: "Custom";
505
+ readonly $existsJoined: {
506
+ readonly access_control: {
507
+ readonly $and: [{
508
+ readonly $existsJoined: {
509
+ readonly access_control_connections: {};
510
+ };
511
+ }, {
512
+ readonly $notExistsJoined: {
513
+ readonly path: ["database_configs", "connections"];
514
+ readonly filter: {
515
+ readonly is_state_db: true;
516
+ };
517
+ };
518
+ }, {
519
+ readonly $notExistsJoined: {
520
+ readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
521
+ readonly filter: {
522
+ readonly is_state_db: true;
523
+ };
524
+ };
525
+ }, {
526
+ readonly $or: [{
527
+ readonly dbPermissions: {
528
+ readonly "@>": {
529
+ readonly type: "Custom";
475
530
  };
476
531
  };
477
- } | {
478
- dbPermissions: {
479
- "@>": {
480
- type: "All views/tables";
532
+ }, {
533
+ readonly dbPermissions: {
534
+ readonly "@>": {
535
+ readonly type: "All views/tables";
481
536
  };
482
537
  };
483
- })[];
484
- })[];
538
+ }];
539
+ }];
485
540
  };
486
541
  };
487
542
  };
@@ -491,36 +546,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
491
546
  select: {
492
547
  fields: "*";
493
548
  forcedFilter: {
494
- $existsJoined: {
495
- access_control: {
496
- $and: ({
497
- $existsJoined: {
498
- access_control_connections: {};
499
- };
500
- $notExistsJoined?: undefined;
501
- } | {
502
- $notExistsJoined: {
503
- path: string[];
504
- filter: {
505
- is_state_db: boolean;
506
- };
507
- };
508
- $existsJoined?: undefined;
509
- } | {
510
- $or: ({
511
- dbPermissions: {
512
- "@>": {
513
- type: "Custom";
549
+ readonly $existsJoined: {
550
+ readonly access_control: {
551
+ readonly $and: [{
552
+ readonly $existsJoined: {
553
+ readonly access_control_connections: {};
554
+ };
555
+ }, {
556
+ readonly $notExistsJoined: {
557
+ readonly path: ["database_configs", "connections"];
558
+ readonly filter: {
559
+ readonly is_state_db: true;
560
+ };
561
+ };
562
+ }, {
563
+ readonly $notExistsJoined: {
564
+ readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
565
+ readonly filter: {
566
+ readonly is_state_db: true;
567
+ };
568
+ };
569
+ }, {
570
+ readonly $or: [{
571
+ readonly dbPermissions: {
572
+ readonly "@>": {
573
+ readonly type: "Custom";
514
574
  };
515
575
  };
516
- } | {
517
- dbPermissions: {
518
- "@>": {
519
- type: "All views/tables";
576
+ }, {
577
+ readonly dbPermissions: {
578
+ readonly "@>": {
579
+ readonly type: "All views/tables";
520
580
  };
521
581
  };
522
- })[];
523
- })[];
582
+ }];
583
+ }];
524
584
  };
525
585
  };
526
586
  };
@@ -528,36 +588,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
528
588
  insert: {
529
589
  fields: ("access_control_id" | "llm_credential_id" | "llm_prompt_id")[];
530
590
  checkFilter: {
531
- $existsJoined: {
532
- access_control: {
533
- $and: ({
534
- $existsJoined: {
535
- access_control_connections: {};
536
- };
537
- $notExistsJoined?: undefined;
538
- } | {
539
- $notExistsJoined: {
540
- path: string[];
541
- filter: {
542
- is_state_db: boolean;
543
- };
544
- };
545
- $existsJoined?: undefined;
546
- } | {
547
- $or: ({
548
- dbPermissions: {
549
- "@>": {
550
- type: "Custom";
591
+ readonly $existsJoined: {
592
+ readonly access_control: {
593
+ readonly $and: [{
594
+ readonly $existsJoined: {
595
+ readonly access_control_connections: {};
596
+ };
597
+ }, {
598
+ readonly $notExistsJoined: {
599
+ readonly path: ["database_configs", "connections"];
600
+ readonly filter: {
601
+ readonly is_state_db: true;
602
+ };
603
+ };
604
+ }, {
605
+ readonly $notExistsJoined: {
606
+ readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
607
+ readonly filter: {
608
+ readonly is_state_db: true;
609
+ };
610
+ };
611
+ }, {
612
+ readonly $or: [{
613
+ readonly dbPermissions: {
614
+ readonly "@>": {
615
+ readonly type: "Custom";
551
616
  };
552
617
  };
553
- } | {
554
- dbPermissions: {
555
- "@>": {
556
- type: "All views/tables";
618
+ }, {
619
+ readonly dbPermissions: {
620
+ readonly "@>": {
621
+ readonly type: "All views/tables";
557
622
  };
558
623
  };
559
- })[];
560
- })[];
624
+ }];
625
+ }];
561
626
  };
562
627
  };
563
628
  };
@@ -574,36 +639,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
574
639
  delete: {
575
640
  filterFields: "*";
576
641
  forcedFilter: {
577
- $existsJoined: {
578
- access_control: {
579
- $and: ({
580
- $existsJoined: {
581
- access_control_connections: {};
582
- };
583
- $notExistsJoined?: undefined;
584
- } | {
585
- $notExistsJoined: {
586
- path: string[];
587
- filter: {
588
- is_state_db: boolean;
589
- };
590
- };
591
- $existsJoined?: undefined;
592
- } | {
593
- $or: ({
594
- dbPermissions: {
595
- "@>": {
596
- type: "Custom";
642
+ readonly $existsJoined: {
643
+ readonly access_control: {
644
+ readonly $and: [{
645
+ readonly $existsJoined: {
646
+ readonly access_control_connections: {};
647
+ };
648
+ }, {
649
+ readonly $notExistsJoined: {
650
+ readonly path: ["database_configs", "connections"];
651
+ readonly filter: {
652
+ readonly is_state_db: true;
653
+ };
654
+ };
655
+ }, {
656
+ readonly $notExistsJoined: {
657
+ readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
658
+ readonly filter: {
659
+ readonly is_state_db: true;
660
+ };
661
+ };
662
+ }, {
663
+ readonly $or: [{
664
+ readonly dbPermissions: {
665
+ readonly "@>": {
666
+ readonly type: "Custom";
597
667
  };
598
668
  };
599
- } | {
600
- dbPermissions: {
601
- "@>": {
602
- type: "All views/tables";
669
+ }, {
670
+ readonly dbPermissions: {
671
+ readonly "@>": {
672
+ readonly type: "All views/tables";
603
673
  };
604
674
  };
605
- })[];
606
- })[];
675
+ }];
676
+ }];
607
677
  };
608
678
  };
609
679
  };
@@ -643,12 +713,12 @@ export declare const getBusinessAccessPublish: (userId: string) => {
643
713
  forcedFilter: {
644
714
  $or: ({
645
715
  $notExistsJoined: {
646
- path: string[];
647
- filter: {
648
- dbPermissions: {
649
- "@>": {
650
- type: string;
651
- allowSQL: boolean;
716
+ readonly path: readonly [...string[], "access_control_user_types", "access_control"];
717
+ readonly filter: {
718
+ readonly dbPermissions: {
719
+ readonly "@>": {
720
+ readonly type: "Run SQL";
721
+ readonly allowSQL: true;
652
722
  };
653
723
  };
654
724
  };
@@ -674,12 +744,12 @@ export declare const getBusinessAccessPublish: (userId: string) => {
674
744
  };
675
745
  checkFilter: {
676
746
  $notExistsJoined: {
677
- path: string[];
678
- filter: {
679
- dbPermissions: {
680
- "@>": {
681
- type: string;
682
- allowSQL: boolean;
747
+ readonly path: readonly [...string[], "access_control_user_types", "access_control"];
748
+ readonly filter: {
749
+ readonly dbPermissions: {
750
+ readonly "@>": {
751
+ readonly type: "Run SQL";
752
+ readonly allowSQL: true;
683
753
  };
684
754
  };
685
755
  };
@@ -697,12 +767,12 @@ export declare const getBusinessAccessPublish: (userId: string) => {
697
767
  };
698
768
  forcedFilter: {
699
769
  $notExistsJoined: {
700
- path: string[];
701
- filter: {
702
- dbPermissions: {
703
- "@>": {
704
- type: string;
705
- allowSQL: boolean;
770
+ readonly path: readonly [...string[], "access_control_user_types", "access_control"];
771
+ readonly filter: {
772
+ readonly dbPermissions: {
773
+ readonly "@>": {
774
+ readonly type: "Run SQL";
775
+ readonly allowSQL: true;
706
776
  };
707
777
  };
708
778
  };
@@ -713,12 +783,12 @@ export declare const getBusinessAccessPublish: (userId: string) => {
713
783
  };
714
784
  checkFilter: {
715
785
  $notExistsJoined: {
716
- path: string[];
717
- filter: {
718
- dbPermissions: {
719
- "@>": {
720
- type: string;
721
- allowSQL: boolean;
786
+ readonly path: readonly [...string[], "access_control_user_types", "access_control"];
787
+ readonly filter: {
788
+ readonly dbPermissions: {
789
+ readonly "@>": {
790
+ readonly type: "Run SQL";
791
+ readonly allowSQL: true;
722
792
  };
723
793
  };
724
794
  };
@@ -746,12 +816,12 @@ export declare const getBusinessAccessPublish: (userId: string) => {
746
816
  $ne: string;
747
817
  };
748
818
  $notExistsJoined: {
749
- path: string[];
750
- filter: {
751
- dbPermissions: {
752
- "@>": {
753
- type: string;
754
- allowSQL: boolean;
819
+ readonly path: readonly [...string[], "access_control_user_types", "access_control"];
820
+ readonly filter: {
821
+ readonly dbPermissions: {
822
+ readonly "@>": {
823
+ readonly type: "Run SQL";
824
+ readonly allowSQL: true;
755
825
  };
756
826
  };
757
827
  };