@ai-matrx/data 0.22.31 → 0.22.32

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.
package/dist/types.d.cts CHANGED
@@ -8900,6 +8900,21 @@ type Database = {
8900
8900
  };
8901
8901
  Returns: Json;
8902
8902
  };
8903
+ space_published: {
8904
+ Args: {
8905
+ p_org?: string;
8906
+ };
8907
+ Returns: {
8908
+ icon: string;
8909
+ id: string;
8910
+ organization_id: string;
8911
+ published_at: string;
8912
+ search_engine_indexed: boolean;
8913
+ slug: string;
8914
+ title: string;
8915
+ updated_at: string;
8916
+ }[];
8917
+ };
8903
8918
  space_save: {
8904
8919
  Args: {
8905
8920
  p_document_id: string;
@@ -21907,6 +21922,7 @@ type Database = {
21907
21922
  last_seen_revision: string | null;
21908
21923
  last_seen_scan_id: string | null;
21909
21924
  line: number | null;
21925
+ line_end: number | null;
21910
21926
  mandate_id: string | null;
21911
21927
  mandate_key: string;
21912
21928
  metadata: Json;
@@ -21949,6 +21965,7 @@ type Database = {
21949
21965
  last_seen_revision?: string | null;
21950
21966
  last_seen_scan_id?: string | null;
21951
21967
  line?: number | null;
21968
+ line_end?: number | null;
21952
21969
  mandate_id?: string | null;
21953
21970
  mandate_key: string;
21954
21971
  metadata?: Json;
@@ -21991,6 +22008,7 @@ type Database = {
21991
22008
  last_seen_revision?: string | null;
21992
22009
  last_seen_scan_id?: string | null;
21993
22010
  line?: number | null;
22011
+ line_end?: number | null;
21994
22012
  mandate_id?: string | null;
21995
22013
  mandate_key?: string;
21996
22014
  metadata?: Json;
@@ -22802,6 +22820,12 @@ type Database = {
22802
22820
  };
22803
22821
  Returns: boolean;
22804
22822
  };
22823
+ code_locations: {
22824
+ Args: {
22825
+ p_keys?: string[];
22826
+ };
22827
+ Returns: Json;
22828
+ };
22805
22829
  definition_restore: {
22806
22830
  Args: {
22807
22831
  p_mandate_id: string;
@@ -32028,6 +32052,10 @@ type Database = {
32028
32052
  status: string;
32029
32053
  }[];
32030
32054
  };
32055
+ _public_placement_guard_impl: {
32056
+ Args: never;
32057
+ Returns: undefined;
32058
+ };
32031
32059
  _published_to_web_sql: {
32032
32060
  Args: {
32033
32061
  p_has_is_published: boolean;
@@ -32050,6 +32078,10 @@ type Database = {
32050
32078
  };
32051
32079
  Returns: number;
32052
32080
  };
32081
+ _registered_at_birth_schema_rename_impl: {
32082
+ Args: never;
32083
+ Returns: undefined;
32084
+ };
32053
32085
  _reopen_declared_doors_after_revoke_impl: {
32054
32086
  Args: never;
32055
32087
  Returns: undefined;
@@ -32155,6 +32187,10 @@ type Database = {
32155
32187
  tb: string;
32156
32188
  }[];
32157
32189
  };
32190
+ _sign_in_table_guard_impl: {
32191
+ Args: never;
32192
+ Returns: undefined;
32193
+ };
32158
32194
  _soft_delete_cascade_enqueue: {
32159
32195
  Args: {
32160
32196
  p_direction: string;
@@ -32564,6 +32600,10 @@ type Database = {
32564
32600
  turns: number;
32565
32601
  }[];
32566
32602
  };
32603
+ agent_test_account_ids: {
32604
+ Args: never;
32605
+ Returns: string[];
32606
+ };
32567
32607
  ai_latency_filter_options: {
32568
32608
  Args: {
32569
32609
  p_from: string;
@@ -35029,6 +35069,14 @@ type Database = {
35029
35069
  };
35030
35070
  Returns: string;
35031
35071
  };
35072
+ platform_admin_may: {
35073
+ Args: {
35074
+ p_id: string;
35075
+ p_token: string;
35076
+ p_write?: boolean;
35077
+ };
35078
+ Returns: boolean;
35079
+ };
35032
35080
  promote_custom_field_index: {
35033
35081
  Args: {
35034
35082
  p_concurrently?: boolean;
@@ -35045,6 +35093,24 @@ type Database = {
35045
35093
  };
35046
35094
  Returns: undefined;
35047
35095
  };
35096
+ protected_account_ids: {
35097
+ Args: never;
35098
+ Returns: string[];
35099
+ };
35100
+ protected_account_runs: {
35101
+ Args: {
35102
+ p_hours?: number;
35103
+ };
35104
+ Returns: {
35105
+ cost: number;
35106
+ driver: string;
35107
+ email: string;
35108
+ last_at: string;
35109
+ origin: string;
35110
+ runs: number;
35111
+ subject: string;
35112
+ }[];
35113
+ };
35048
35114
  provision: {
35049
35115
  Args: {
35050
35116
  p_applied_via?: string;
@@ -35852,6 +35918,20 @@ type Database = {
35852
35918
  updated_at: string;
35853
35919
  }[];
35854
35920
  };
35921
+ run_driver: {
35922
+ Args: {
35923
+ p_origin: string;
35924
+ p_source: string;
35925
+ p_test_account: boolean;
35926
+ };
35927
+ Returns: string;
35928
+ };
35929
+ run_driver_rank: {
35930
+ Args: {
35931
+ p_driver: string;
35932
+ };
35933
+ Returns: number;
35934
+ };
35855
35935
  schema_exposure_violations: {
35856
35936
  Args: {
35857
35937
  p_schema?: string;
@@ -53437,6 +53517,96 @@ type Database = {
53437
53517
  }
53438
53518
  ];
53439
53519
  };
53520
+ calendar_feed: {
53521
+ Row: {
53522
+ created_at: string;
53523
+ created_by: string | null;
53524
+ date_field: string | null;
53525
+ deleted_at: string | null;
53526
+ description_field: string | null;
53527
+ end_field: string | null;
53528
+ expires_at: string | null;
53529
+ id: string;
53530
+ last_read_at: string | null;
53531
+ metadata: Json;
53532
+ organization_id: string;
53533
+ published_to_web: boolean;
53534
+ published_to_web_at: string | null;
53535
+ published_to_web_by: string | null;
53536
+ read_count: number;
53537
+ revoked_at: string | null;
53538
+ shown_to: Database["platform"]["Enums"]["shown_to"] | null;
53539
+ table_id: string;
53540
+ time_zone: string;
53541
+ title: string;
53542
+ token_hash: string;
53543
+ token_prefix: string;
53544
+ updated_at: string;
53545
+ updated_by: string | null;
53546
+ version: number;
53547
+ view_id: string | null;
53548
+ visibility: Database["platform"]["Enums"]["visibility"];
53549
+ };
53550
+ Insert: {
53551
+ created_at?: string;
53552
+ created_by?: string | null;
53553
+ date_field?: string | null;
53554
+ deleted_at?: string | null;
53555
+ description_field?: string | null;
53556
+ end_field?: string | null;
53557
+ expires_at?: string | null;
53558
+ id?: string;
53559
+ last_read_at?: string | null;
53560
+ metadata?: Json;
53561
+ organization_id: string;
53562
+ published_to_web?: boolean;
53563
+ published_to_web_at?: string | null;
53564
+ published_to_web_by?: string | null;
53565
+ read_count?: number;
53566
+ revoked_at?: string | null;
53567
+ shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
53568
+ table_id: string;
53569
+ time_zone?: string;
53570
+ title: string;
53571
+ token_hash: string;
53572
+ token_prefix: string;
53573
+ updated_at?: string;
53574
+ updated_by?: string | null;
53575
+ version?: number;
53576
+ view_id?: string | null;
53577
+ visibility?: Database["platform"]["Enums"]["visibility"];
53578
+ };
53579
+ Update: {
53580
+ created_at?: string;
53581
+ created_by?: string | null;
53582
+ date_field?: string | null;
53583
+ deleted_at?: string | null;
53584
+ description_field?: string | null;
53585
+ end_field?: string | null;
53586
+ expires_at?: string | null;
53587
+ id?: string;
53588
+ last_read_at?: string | null;
53589
+ metadata?: Json;
53590
+ organization_id?: string;
53591
+ published_to_web?: boolean;
53592
+ published_to_web_at?: string | null;
53593
+ published_to_web_by?: string | null;
53594
+ read_count?: number;
53595
+ revoked_at?: string | null;
53596
+ shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
53597
+ table_id?: string;
53598
+ time_zone?: string;
53599
+ title?: string;
53600
+ token_hash?: string;
53601
+ token_prefix?: string;
53602
+ updated_at?: string;
53603
+ updated_by?: string | null;
53604
+ version?: number;
53605
+ view_id?: string | null;
53606
+ visibility?: Database["platform"]["Enums"]["visibility"];
53607
+ };
53608
+ Relationships: [];
53609
+ };
53440
53610
  credential_attachments: {
53441
53611
  Row: {
53442
53612
  created_at: string;
@@ -55608,6 +55778,16 @@ type Database = {
55608
55778
  };
55609
55779
  };
55610
55780
  Functions: {
55781
+ _calendar_feed_hash: {
55782
+ Args: {
55783
+ p_token: string;
55784
+ };
55785
+ Returns: string;
55786
+ };
55787
+ _calendar_feed_token: {
55788
+ Args: never;
55789
+ Returns: string;
55790
+ };
55611
55791
  _set_own_organization_choice: {
55612
55792
  Args: {
55613
55793
  p_column: string;
@@ -55672,6 +55852,45 @@ type Database = {
55672
55852
  user_id: string;
55673
55853
  }[];
55674
55854
  };
55855
+ calendar_feed_create: {
55856
+ Args: {
55857
+ p_description_field?: string;
55858
+ p_expires_days?: number;
55859
+ p_organization_id: string;
55860
+ p_table_id: string;
55861
+ p_time_zone?: string;
55862
+ p_title: string;
55863
+ p_view_id: string;
55864
+ };
55865
+ Returns: Json;
55866
+ };
55867
+ calendar_feed_default_days: {
55868
+ Args: never;
55869
+ Returns: number;
55870
+ };
55871
+ calendar_feed_list: {
55872
+ Args: never;
55873
+ Returns: Json;
55874
+ };
55875
+ calendar_feed_read: {
55876
+ Args: {
55877
+ p_token: string;
55878
+ };
55879
+ Returns: Json;
55880
+ };
55881
+ calendar_feed_revoke: {
55882
+ Args: {
55883
+ p_id: string;
55884
+ };
55885
+ Returns: Json;
55886
+ };
55887
+ calendar_feed_rotate: {
55888
+ Args: {
55889
+ p_expires_days?: number;
55890
+ p_id: string;
55891
+ };
55892
+ Returns: Json;
55893
+ };
55675
55894
  credential_item_holdings: {
55676
55895
  Args: {
55677
55896
  p_item_ids: string[];
package/dist/types.d.ts CHANGED
@@ -8900,6 +8900,21 @@ type Database = {
8900
8900
  };
8901
8901
  Returns: Json;
8902
8902
  };
8903
+ space_published: {
8904
+ Args: {
8905
+ p_org?: string;
8906
+ };
8907
+ Returns: {
8908
+ icon: string;
8909
+ id: string;
8910
+ organization_id: string;
8911
+ published_at: string;
8912
+ search_engine_indexed: boolean;
8913
+ slug: string;
8914
+ title: string;
8915
+ updated_at: string;
8916
+ }[];
8917
+ };
8903
8918
  space_save: {
8904
8919
  Args: {
8905
8920
  p_document_id: string;
@@ -21907,6 +21922,7 @@ type Database = {
21907
21922
  last_seen_revision: string | null;
21908
21923
  last_seen_scan_id: string | null;
21909
21924
  line: number | null;
21925
+ line_end: number | null;
21910
21926
  mandate_id: string | null;
21911
21927
  mandate_key: string;
21912
21928
  metadata: Json;
@@ -21949,6 +21965,7 @@ type Database = {
21949
21965
  last_seen_revision?: string | null;
21950
21966
  last_seen_scan_id?: string | null;
21951
21967
  line?: number | null;
21968
+ line_end?: number | null;
21952
21969
  mandate_id?: string | null;
21953
21970
  mandate_key: string;
21954
21971
  metadata?: Json;
@@ -21991,6 +22008,7 @@ type Database = {
21991
22008
  last_seen_revision?: string | null;
21992
22009
  last_seen_scan_id?: string | null;
21993
22010
  line?: number | null;
22011
+ line_end?: number | null;
21994
22012
  mandate_id?: string | null;
21995
22013
  mandate_key?: string;
21996
22014
  metadata?: Json;
@@ -22802,6 +22820,12 @@ type Database = {
22802
22820
  };
22803
22821
  Returns: boolean;
22804
22822
  };
22823
+ code_locations: {
22824
+ Args: {
22825
+ p_keys?: string[];
22826
+ };
22827
+ Returns: Json;
22828
+ };
22805
22829
  definition_restore: {
22806
22830
  Args: {
22807
22831
  p_mandate_id: string;
@@ -32028,6 +32052,10 @@ type Database = {
32028
32052
  status: string;
32029
32053
  }[];
32030
32054
  };
32055
+ _public_placement_guard_impl: {
32056
+ Args: never;
32057
+ Returns: undefined;
32058
+ };
32031
32059
  _published_to_web_sql: {
32032
32060
  Args: {
32033
32061
  p_has_is_published: boolean;
@@ -32050,6 +32078,10 @@ type Database = {
32050
32078
  };
32051
32079
  Returns: number;
32052
32080
  };
32081
+ _registered_at_birth_schema_rename_impl: {
32082
+ Args: never;
32083
+ Returns: undefined;
32084
+ };
32053
32085
  _reopen_declared_doors_after_revoke_impl: {
32054
32086
  Args: never;
32055
32087
  Returns: undefined;
@@ -32155,6 +32187,10 @@ type Database = {
32155
32187
  tb: string;
32156
32188
  }[];
32157
32189
  };
32190
+ _sign_in_table_guard_impl: {
32191
+ Args: never;
32192
+ Returns: undefined;
32193
+ };
32158
32194
  _soft_delete_cascade_enqueue: {
32159
32195
  Args: {
32160
32196
  p_direction: string;
@@ -32564,6 +32600,10 @@ type Database = {
32564
32600
  turns: number;
32565
32601
  }[];
32566
32602
  };
32603
+ agent_test_account_ids: {
32604
+ Args: never;
32605
+ Returns: string[];
32606
+ };
32567
32607
  ai_latency_filter_options: {
32568
32608
  Args: {
32569
32609
  p_from: string;
@@ -35029,6 +35069,14 @@ type Database = {
35029
35069
  };
35030
35070
  Returns: string;
35031
35071
  };
35072
+ platform_admin_may: {
35073
+ Args: {
35074
+ p_id: string;
35075
+ p_token: string;
35076
+ p_write?: boolean;
35077
+ };
35078
+ Returns: boolean;
35079
+ };
35032
35080
  promote_custom_field_index: {
35033
35081
  Args: {
35034
35082
  p_concurrently?: boolean;
@@ -35045,6 +35093,24 @@ type Database = {
35045
35093
  };
35046
35094
  Returns: undefined;
35047
35095
  };
35096
+ protected_account_ids: {
35097
+ Args: never;
35098
+ Returns: string[];
35099
+ };
35100
+ protected_account_runs: {
35101
+ Args: {
35102
+ p_hours?: number;
35103
+ };
35104
+ Returns: {
35105
+ cost: number;
35106
+ driver: string;
35107
+ email: string;
35108
+ last_at: string;
35109
+ origin: string;
35110
+ runs: number;
35111
+ subject: string;
35112
+ }[];
35113
+ };
35048
35114
  provision: {
35049
35115
  Args: {
35050
35116
  p_applied_via?: string;
@@ -35852,6 +35918,20 @@ type Database = {
35852
35918
  updated_at: string;
35853
35919
  }[];
35854
35920
  };
35921
+ run_driver: {
35922
+ Args: {
35923
+ p_origin: string;
35924
+ p_source: string;
35925
+ p_test_account: boolean;
35926
+ };
35927
+ Returns: string;
35928
+ };
35929
+ run_driver_rank: {
35930
+ Args: {
35931
+ p_driver: string;
35932
+ };
35933
+ Returns: number;
35934
+ };
35855
35935
  schema_exposure_violations: {
35856
35936
  Args: {
35857
35937
  p_schema?: string;
@@ -53437,6 +53517,96 @@ type Database = {
53437
53517
  }
53438
53518
  ];
53439
53519
  };
53520
+ calendar_feed: {
53521
+ Row: {
53522
+ created_at: string;
53523
+ created_by: string | null;
53524
+ date_field: string | null;
53525
+ deleted_at: string | null;
53526
+ description_field: string | null;
53527
+ end_field: string | null;
53528
+ expires_at: string | null;
53529
+ id: string;
53530
+ last_read_at: string | null;
53531
+ metadata: Json;
53532
+ organization_id: string;
53533
+ published_to_web: boolean;
53534
+ published_to_web_at: string | null;
53535
+ published_to_web_by: string | null;
53536
+ read_count: number;
53537
+ revoked_at: string | null;
53538
+ shown_to: Database["platform"]["Enums"]["shown_to"] | null;
53539
+ table_id: string;
53540
+ time_zone: string;
53541
+ title: string;
53542
+ token_hash: string;
53543
+ token_prefix: string;
53544
+ updated_at: string;
53545
+ updated_by: string | null;
53546
+ version: number;
53547
+ view_id: string | null;
53548
+ visibility: Database["platform"]["Enums"]["visibility"];
53549
+ };
53550
+ Insert: {
53551
+ created_at?: string;
53552
+ created_by?: string | null;
53553
+ date_field?: string | null;
53554
+ deleted_at?: string | null;
53555
+ description_field?: string | null;
53556
+ end_field?: string | null;
53557
+ expires_at?: string | null;
53558
+ id?: string;
53559
+ last_read_at?: string | null;
53560
+ metadata?: Json;
53561
+ organization_id: string;
53562
+ published_to_web?: boolean;
53563
+ published_to_web_at?: string | null;
53564
+ published_to_web_by?: string | null;
53565
+ read_count?: number;
53566
+ revoked_at?: string | null;
53567
+ shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
53568
+ table_id: string;
53569
+ time_zone?: string;
53570
+ title: string;
53571
+ token_hash: string;
53572
+ token_prefix: string;
53573
+ updated_at?: string;
53574
+ updated_by?: string | null;
53575
+ version?: number;
53576
+ view_id?: string | null;
53577
+ visibility?: Database["platform"]["Enums"]["visibility"];
53578
+ };
53579
+ Update: {
53580
+ created_at?: string;
53581
+ created_by?: string | null;
53582
+ date_field?: string | null;
53583
+ deleted_at?: string | null;
53584
+ description_field?: string | null;
53585
+ end_field?: string | null;
53586
+ expires_at?: string | null;
53587
+ id?: string;
53588
+ last_read_at?: string | null;
53589
+ metadata?: Json;
53590
+ organization_id?: string;
53591
+ published_to_web?: boolean;
53592
+ published_to_web_at?: string | null;
53593
+ published_to_web_by?: string | null;
53594
+ read_count?: number;
53595
+ revoked_at?: string | null;
53596
+ shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
53597
+ table_id?: string;
53598
+ time_zone?: string;
53599
+ title?: string;
53600
+ token_hash?: string;
53601
+ token_prefix?: string;
53602
+ updated_at?: string;
53603
+ updated_by?: string | null;
53604
+ version?: number;
53605
+ view_id?: string | null;
53606
+ visibility?: Database["platform"]["Enums"]["visibility"];
53607
+ };
53608
+ Relationships: [];
53609
+ };
53440
53610
  credential_attachments: {
53441
53611
  Row: {
53442
53612
  created_at: string;
@@ -55608,6 +55778,16 @@ type Database = {
55608
55778
  };
55609
55779
  };
55610
55780
  Functions: {
55781
+ _calendar_feed_hash: {
55782
+ Args: {
55783
+ p_token: string;
55784
+ };
55785
+ Returns: string;
55786
+ };
55787
+ _calendar_feed_token: {
55788
+ Args: never;
55789
+ Returns: string;
55790
+ };
55611
55791
  _set_own_organization_choice: {
55612
55792
  Args: {
55613
55793
  p_column: string;
@@ -55672,6 +55852,45 @@ type Database = {
55672
55852
  user_id: string;
55673
55853
  }[];
55674
55854
  };
55855
+ calendar_feed_create: {
55856
+ Args: {
55857
+ p_description_field?: string;
55858
+ p_expires_days?: number;
55859
+ p_organization_id: string;
55860
+ p_table_id: string;
55861
+ p_time_zone?: string;
55862
+ p_title: string;
55863
+ p_view_id: string;
55864
+ };
55865
+ Returns: Json;
55866
+ };
55867
+ calendar_feed_default_days: {
55868
+ Args: never;
55869
+ Returns: number;
55870
+ };
55871
+ calendar_feed_list: {
55872
+ Args: never;
55873
+ Returns: Json;
55874
+ };
55875
+ calendar_feed_read: {
55876
+ Args: {
55877
+ p_token: string;
55878
+ };
55879
+ Returns: Json;
55880
+ };
55881
+ calendar_feed_revoke: {
55882
+ Args: {
55883
+ p_id: string;
55884
+ };
55885
+ Returns: Json;
55886
+ };
55887
+ calendar_feed_rotate: {
55888
+ Args: {
55889
+ p_expires_days?: number;
55890
+ p_id: string;
55891
+ };
55892
+ Returns: Json;
55893
+ };
55675
55894
  credential_item_holdings: {
55676
55895
  Args: {
55677
55896
  p_item_ids: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/data",
3
- "version": "0.22.31",
3
+ "version": "0.22.32",
4
4
  "description": "The opinionated AI Matrx data layer: the /db tier's hard-won Supabase primitives — optimistic concurrency, complete-list reads, JSONB merge, session-retry, the domain-wide auth cookie, realtime channel hygiene — the /net resilience trio, and the /files lane: the Matrx file-communication client (durable-ref resolution, the mx_files_session bootstrap, authenticated blob fetch, uploads, the public-link door).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -208,5 +208,5 @@
208
208
  "test:watch": "vitest",
209
209
  "verify:tarball": "node ./scripts/verify-tarball.mjs"
210
210
  },
211
- "gitHead": "fab38b8419fde12ea303e938313db45cdaa572e7"
211
+ "gitHead": "aeb33c88d654862267985a12ae7e1880d216bda8"
212
212
  }