@ai-matrx/media 0.10.2 → 0.10.4

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.
@@ -352,6 +352,144 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
352
352
  referencedColumns: ["id"];
353
353
  }];
354
354
  };
355
+ access_shadow_log: {
356
+ Row: {
357
+ at: string;
358
+ caller: string;
359
+ compared: number | null;
360
+ disagreed: number | null;
361
+ error: string | null;
362
+ id: string;
363
+ level: string;
364
+ new_answer: boolean | null;
365
+ old_answer: boolean | null;
366
+ person: string;
367
+ target: string | null;
368
+ };
369
+ Insert: {
370
+ at?: string;
371
+ caller: string;
372
+ compared?: number | null;
373
+ disagreed?: number | null;
374
+ error?: string | null;
375
+ id?: string;
376
+ level: string;
377
+ new_answer?: boolean | null;
378
+ old_answer?: boolean | null;
379
+ person: string;
380
+ target?: string | null;
381
+ };
382
+ Update: {
383
+ at?: string;
384
+ caller?: string;
385
+ compared?: number | null;
386
+ disagreed?: number | null;
387
+ error?: string | null;
388
+ id?: string;
389
+ level?: string;
390
+ new_answer?: boolean | null;
391
+ old_answer?: boolean | null;
392
+ person?: string;
393
+ target?: string | null;
394
+ };
395
+ Relationships: [];
396
+ };
397
+ account_closure: {
398
+ Row: {
399
+ closed_at: string;
400
+ created_at: string;
401
+ created_by: string | null;
402
+ deleted_at: string | null;
403
+ erased_at: string | null;
404
+ id: string;
405
+ metadata: import("../db-types.js").Json;
406
+ organization_id: string;
407
+ published_to_web: boolean;
408
+ published_to_web_at: string | null;
409
+ published_to_web_by: string | null;
410
+ reason: string | null;
411
+ reopened_at: string | null;
412
+ request_ref: string | null;
413
+ revoked: import("../db-types.js").Json;
414
+ shown_to: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
415
+ updated_at: string;
416
+ updated_by: string | null;
417
+ user_id: string;
418
+ version: number;
419
+ visibility: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
420
+ };
421
+ Insert: {
422
+ closed_at?: string;
423
+ created_at?: string;
424
+ created_by?: string | null;
425
+ deleted_at?: string | null;
426
+ erased_at?: string | null;
427
+ id?: string;
428
+ metadata?: import("../db-types.js").Json;
429
+ organization_id: string;
430
+ published_to_web?: boolean;
431
+ published_to_web_at?: string | null;
432
+ published_to_web_by?: string | null;
433
+ reason?: string | null;
434
+ reopened_at?: string | null;
435
+ request_ref?: string | null;
436
+ revoked?: import("../db-types.js").Json;
437
+ shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
438
+ updated_at?: string;
439
+ updated_by?: string | null;
440
+ user_id: string;
441
+ version?: number;
442
+ visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
443
+ };
444
+ Update: {
445
+ closed_at?: string;
446
+ created_at?: string;
447
+ created_by?: string | null;
448
+ deleted_at?: string | null;
449
+ erased_at?: string | null;
450
+ id?: string;
451
+ metadata?: import("../db-types.js").Json;
452
+ organization_id?: string;
453
+ published_to_web?: boolean;
454
+ published_to_web_at?: string | null;
455
+ published_to_web_by?: string | null;
456
+ reason?: string | null;
457
+ reopened_at?: string | null;
458
+ request_ref?: string | null;
459
+ revoked?: import("../db-types.js").Json;
460
+ shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
461
+ updated_at?: string;
462
+ updated_by?: string | null;
463
+ user_id?: string;
464
+ version?: number;
465
+ visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
466
+ };
467
+ Relationships: [{
468
+ foreignKeyName: "account_closure_created_by_fkey";
469
+ columns: ["created_by"];
470
+ isOneToOne: false;
471
+ referencedRelation: "users";
472
+ referencedColumns: ["id"];
473
+ }, {
474
+ foreignKeyName: "account_closure_organization_id_fkey";
475
+ columns: ["organization_id"];
476
+ isOneToOne: false;
477
+ referencedRelation: "organizations";
478
+ referencedColumns: ["id"];
479
+ }, {
480
+ foreignKeyName: "account_closure_updated_by_fkey";
481
+ columns: ["updated_by"];
482
+ isOneToOne: false;
483
+ referencedRelation: "users";
484
+ referencedColumns: ["id"];
485
+ }, {
486
+ foreignKeyName: "account_closure_user_id_fkey";
487
+ columns: ["user_id"];
488
+ isOneToOne: false;
489
+ referencedRelation: "users";
490
+ referencedColumns: ["id"];
491
+ }];
492
+ };
355
493
  api_keys: {
356
494
  Row: {
357
495
  created_at: string;
@@ -978,13 +1116,13 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
978
1116
  version?: number;
979
1117
  };
980
1118
  Relationships: [{
981
- foreignKeyName: "memberships_created_by_fkey_p";
1119
+ foreignKeyName: "memberships_created_by_fkey";
982
1120
  columns: ["created_by"];
983
1121
  isOneToOne: false;
984
1122
  referencedRelation: "users";
985
1123
  referencedColumns: ["id"];
986
1124
  }, {
987
- foreignKeyName: "memberships_invited_by_fkey_p";
1125
+ foreignKeyName: "memberships_invited_by_fkey";
988
1126
  columns: ["invited_by"];
989
1127
  isOneToOne: false;
990
1128
  referencedRelation: "users";
@@ -996,13 +1134,13 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
996
1134
  referencedRelation: "organizations";
997
1135
  referencedColumns: ["id"];
998
1136
  }, {
999
- foreignKeyName: "memberships_updated_by_fkey_p";
1137
+ foreignKeyName: "memberships_updated_by_fkey";
1000
1138
  columns: ["updated_by"];
1001
1139
  isOneToOne: false;
1002
1140
  referencedRelation: "users";
1003
1141
  referencedColumns: ["id"];
1004
1142
  }, {
1005
- foreignKeyName: "memberships_user_id_fkey_p";
1143
+ foreignKeyName: "memberships_user_id_fkey";
1006
1144
  columns: ["user_id"];
1007
1145
  isOneToOne: false;
1008
1146
  referencedRelation: "users";
@@ -1305,13 +1443,13 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
1305
1443
  website?: string | null;
1306
1444
  };
1307
1445
  Relationships: [{
1308
- foreignKeyName: "organizations_created_by_fkey_p";
1446
+ foreignKeyName: "organizations_created_by_fkey";
1309
1447
  columns: ["created_by"];
1310
1448
  isOneToOne: false;
1311
1449
  referencedRelation: "users";
1312
1450
  referencedColumns: ["id"];
1313
1451
  }, {
1314
- foreignKeyName: "organizations_updated_by_fkey_p";
1452
+ foreignKeyName: "organizations_updated_by_fkey";
1315
1453
  columns: ["updated_by"];
1316
1454
  isOneToOne: false;
1317
1455
  referencedRelation: "users";
@@ -1377,25 +1515,118 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
1377
1515
  referencedRelation: "organizations";
1378
1516
  referencedColumns: ["id"];
1379
1517
  }, {
1380
- foreignKeyName: "permissions_created_by_fkey_p";
1518
+ foreignKeyName: "permissions_created_by_fkey";
1381
1519
  columns: ["created_by"];
1382
1520
  isOneToOne: false;
1383
1521
  referencedRelation: "users";
1384
1522
  referencedColumns: ["id"];
1385
1523
  }, {
1386
- foreignKeyName: "permissions_granted_to_user_id_fkey_p";
1524
+ foreignKeyName: "permissions_granted_to_user_id_fkey";
1387
1525
  columns: ["granted_to_user_id"];
1388
1526
  isOneToOne: false;
1389
1527
  referencedRelation: "users";
1390
1528
  referencedColumns: ["id"];
1391
1529
  }, {
1392
- foreignKeyName: "permissions_reviewed_by_fkey_p";
1530
+ foreignKeyName: "permissions_reviewed_by_fkey";
1393
1531
  columns: ["reviewed_by"];
1394
1532
  isOneToOne: false;
1395
1533
  referencedRelation: "users";
1396
1534
  referencedColumns: ["id"];
1397
1535
  }];
1398
1536
  };
1537
+ personal_data_column: {
1538
+ Row: {
1539
+ column_name: string;
1540
+ created_at: string;
1541
+ created_by: string | null;
1542
+ handling: string;
1543
+ id: string;
1544
+ metadata: import("../db-types.js").Json;
1545
+ organization_id: string;
1546
+ published_to_web: boolean;
1547
+ published_to_web_at: string | null;
1548
+ published_to_web_by: string | null;
1549
+ reason: string;
1550
+ replacement: string | null;
1551
+ schema_name: string;
1552
+ shown_to: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
1553
+ subject_column: string | null;
1554
+ subject_filter: string | null;
1555
+ subject_match: string;
1556
+ table_name: string;
1557
+ updated_at: string;
1558
+ updated_by: string | null;
1559
+ version: number;
1560
+ visibility: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
1561
+ };
1562
+ Insert: {
1563
+ column_name: string;
1564
+ created_at?: string;
1565
+ created_by?: string | null;
1566
+ handling: string;
1567
+ id?: string;
1568
+ metadata?: import("../db-types.js").Json;
1569
+ organization_id: string;
1570
+ published_to_web?: boolean;
1571
+ published_to_web_at?: string | null;
1572
+ published_to_web_by?: string | null;
1573
+ reason: string;
1574
+ replacement?: string | null;
1575
+ schema_name: string;
1576
+ shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
1577
+ subject_column?: string | null;
1578
+ subject_filter?: string | null;
1579
+ subject_match?: string;
1580
+ table_name: string;
1581
+ updated_at?: string;
1582
+ updated_by?: string | null;
1583
+ version?: number;
1584
+ visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
1585
+ };
1586
+ Update: {
1587
+ column_name?: string;
1588
+ created_at?: string;
1589
+ created_by?: string | null;
1590
+ handling?: string;
1591
+ id?: string;
1592
+ metadata?: import("../db-types.js").Json;
1593
+ organization_id?: string;
1594
+ published_to_web?: boolean;
1595
+ published_to_web_at?: string | null;
1596
+ published_to_web_by?: string | null;
1597
+ reason?: string;
1598
+ replacement?: string | null;
1599
+ schema_name?: string;
1600
+ shown_to?: import("../db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
1601
+ subject_column?: string | null;
1602
+ subject_filter?: string | null;
1603
+ subject_match?: string;
1604
+ table_name?: string;
1605
+ updated_at?: string;
1606
+ updated_by?: string | null;
1607
+ version?: number;
1608
+ visibility?: import("../db-types.js").Database["platform"]["Enums"]["visibility"];
1609
+ };
1610
+ Relationships: [{
1611
+ foreignKeyName: "personal_data_column_created_by_fkey";
1612
+ columns: ["created_by"];
1613
+ isOneToOne: false;
1614
+ referencedRelation: "users";
1615
+ referencedColumns: ["id"];
1616
+ }, {
1617
+ foreignKeyName: "personal_data_column_organization_id_fkey";
1618
+ columns: ["organization_id"];
1619
+ isOneToOne: false;
1620
+ referencedRelation: "organizations";
1621
+ referencedColumns: ["id"];
1622
+ }, {
1623
+ foreignKeyName: "personal_data_column_updated_by_fkey";
1624
+ columns: ["updated_by"];
1625
+ isOneToOne: false;
1626
+ referencedRelation: "users";
1627
+ referencedColumns: ["id"];
1628
+ }];
1629
+ };
1399
1630
  publish_binding: {
1400
1631
  Row: {
1401
1632
  bound_at: string;
@@ -1805,7 +2036,7 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
1805
2036
  user_id?: string | null;
1806
2037
  };
1807
2038
  Relationships: [{
1808
- foreignKeyName: "memberships_invited_by_fkey_p";
2039
+ foreignKeyName: "memberships_invited_by_fkey";
1809
2040
  columns: ["invited_by"];
1810
2041
  isOneToOne: false;
1811
2042
  referencedRelation: "users";
@@ -1817,7 +2048,7 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
1817
2048
  referencedRelation: "organizations";
1818
2049
  referencedColumns: ["id"];
1819
2050
  }, {
1820
- foreignKeyName: "memberships_user_id_fkey_p";
2051
+ foreignKeyName: "memberships_user_id_fkey";
1821
2052
  columns: ["user_id"];
1822
2053
  isOneToOne: false;
1823
2054
  referencedRelation: "users";
@@ -2312,6 +2543,12 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
2312
2543
  Args: never;
2313
2544
  Returns: string[];
2314
2545
  };
2546
+ arm_fixture_delete: {
2547
+ Args: {
2548
+ p_ids: string[];
2549
+ };
2550
+ Returns: number;
2551
+ };
2315
2552
  asks_about_caller: {
2316
2553
  Args: {
2317
2554
  p_function?: string;
@@ -2493,6 +2730,13 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
2493
2730
  };
2494
2731
  Returns: boolean;
2495
2732
  };
2733
+ close_account: {
2734
+ Args: {
2735
+ p_reason?: string;
2736
+ p_user?: string;
2737
+ };
2738
+ Returns: import("../db-types.js").Json;
2739
+ };
2496
2740
  component_original_lane: {
2497
2741
  Args: {
2498
2742
  p_schema: string;
@@ -2536,12 +2780,6 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
2536
2780
  };
2537
2781
  Returns: string;
2538
2782
  };
2539
- default_organization_id: {
2540
- Args: {
2541
- p_user_id: string;
2542
- };
2543
- Returns: string;
2544
- };
2545
2783
  derive_organization_abbreviation: {
2546
2784
  Args: {
2547
2785
  p_name: string;
@@ -2690,6 +2928,13 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
2690
2928
  user_id: string;
2691
2929
  }[];
2692
2930
  };
2931
+ erase_account: {
2932
+ Args: {
2933
+ p_request_ref: string;
2934
+ p_user: string;
2935
+ };
2936
+ Returns: import("../db-types.js").Json;
2937
+ };
2693
2938
  external_principal_card: {
2694
2939
  Args: {
2695
2940
  p_user_id?: string;
@@ -2831,6 +3076,31 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
2831
3076
  };
2832
3077
  Returns: boolean;
2833
3078
  };
3079
+ has_access_for_many: {
3080
+ Args: {
3081
+ p_level: string;
3082
+ p_person: string;
3083
+ p_targets: string[];
3084
+ p_type?: string;
3085
+ };
3086
+ Returns: {
3087
+ allowed: boolean;
3088
+ target: string;
3089
+ }[];
3090
+ };
3091
+ has_access_for_shadow: {
3092
+ Args: {
3093
+ p_caller?: string;
3094
+ p_level: string;
3095
+ p_person: string;
3096
+ p_targets: string[];
3097
+ p_type?: string;
3098
+ };
3099
+ Returns: {
3100
+ allowed: boolean;
3101
+ target: string;
3102
+ }[];
3103
+ };
2834
3104
  has_org_access: {
2835
3105
  Args: {
2836
3106
  p_org: string;
@@ -2942,6 +3212,12 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
2942
3212
  Args: never;
2943
3213
  Returns: boolean;
2944
3214
  };
3215
+ kernel_shadow_on: {
3216
+ Args: {
3217
+ p_person: string;
3218
+ };
3219
+ Returns: boolean;
3220
+ };
2945
3221
  lane_of: {
2946
3222
  Args: {
2947
3223
  p_resource_id: string;
@@ -3264,6 +3540,14 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
3264
3540
  why: string;
3265
3541
  }[];
3266
3542
  };
3543
+ personal_data_unregistered: {
3544
+ Args: never;
3545
+ Returns: {
3546
+ column_name: string;
3547
+ schema_name: string;
3548
+ table_name: string;
3549
+ }[];
3550
+ };
3267
3551
  personal_opens_row: {
3268
3552
  Args: {
3269
3553
  p_id: string;
@@ -3510,6 +3794,13 @@ declare const iamSchemaOf: (client: FilesDb) => import("@supabase/postgrest-js")
3510
3794
  };
3511
3795
  Returns: import("../db-types.js").Json;
3512
3796
  };
3797
+ reopen_account: {
3798
+ Args: {
3799
+ p_reason?: string;
3800
+ p_user: string;
3801
+ };
3802
+ Returns: import("../db-types.js").Json;
3803
+ };
3513
3804
  reserved_namespace: {
3514
3805
  Args: never;
3515
3806
  Returns: {