@ai-matrx/data 0.22.31 → 0.22.33

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.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;
@@ -19500,6 +19515,17 @@ type Database = {
19500
19515
  };
19501
19516
  Returns: boolean;
19502
19517
  };
19518
+ child_parent_records_worth_asking: {
19519
+ Args: {
19520
+ p_ids: string[];
19521
+ p_orgs: string[];
19522
+ p_person: string;
19523
+ };
19524
+ Returns: {
19525
+ org: string;
19526
+ pid: string;
19527
+ }[];
19528
+ };
19503
19529
  children_with_own_read_arms: {
19504
19530
  Args: never;
19505
19531
  Returns: {
@@ -21887,6 +21913,87 @@ type Database = {
21887
21913
  };
21888
21914
  Relationships: [];
21889
21915
  };
21916
+ readiness_verdict: {
21917
+ Row: {
21918
+ checked_at: string;
21919
+ created_at: string;
21920
+ created_by: string | null;
21921
+ deleted_at: string | null;
21922
+ door: string | null;
21923
+ id: string;
21924
+ mandate_key: string;
21925
+ metadata: Json;
21926
+ missing: Json;
21927
+ organization_id: string;
21928
+ published_to_web: boolean;
21929
+ published_to_web_at: string | null;
21930
+ published_to_web_by: string | null;
21931
+ ready: boolean;
21932
+ refused_count: number;
21933
+ required: Json;
21934
+ scope: Json;
21935
+ scope_key: string;
21936
+ shown_to: Database["platform"]["Enums"]["shown_to"] | null;
21937
+ summary: string | null;
21938
+ updated_at: string;
21939
+ updated_by: string | null;
21940
+ version: number;
21941
+ visibility: Database["platform"]["Enums"]["visibility"];
21942
+ };
21943
+ Insert: {
21944
+ checked_at?: string;
21945
+ created_at?: string;
21946
+ created_by?: string | null;
21947
+ deleted_at?: string | null;
21948
+ door?: string | null;
21949
+ id?: string;
21950
+ mandate_key: string;
21951
+ metadata?: Json;
21952
+ missing?: Json;
21953
+ organization_id: string;
21954
+ published_to_web?: boolean;
21955
+ published_to_web_at?: string | null;
21956
+ published_to_web_by?: string | null;
21957
+ ready: boolean;
21958
+ refused_count?: number;
21959
+ required?: Json;
21960
+ scope?: Json;
21961
+ scope_key: string;
21962
+ shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
21963
+ summary?: string | null;
21964
+ updated_at?: string;
21965
+ updated_by?: string | null;
21966
+ version?: number;
21967
+ visibility?: Database["platform"]["Enums"]["visibility"];
21968
+ };
21969
+ Update: {
21970
+ checked_at?: string;
21971
+ created_at?: string;
21972
+ created_by?: string | null;
21973
+ deleted_at?: string | null;
21974
+ door?: string | null;
21975
+ id?: string;
21976
+ mandate_key?: string;
21977
+ metadata?: Json;
21978
+ missing?: Json;
21979
+ organization_id?: string;
21980
+ published_to_web?: boolean;
21981
+ published_to_web_at?: string | null;
21982
+ published_to_web_by?: string | null;
21983
+ ready?: boolean;
21984
+ refused_count?: number;
21985
+ required?: Json;
21986
+ scope?: Json;
21987
+ scope_key?: string;
21988
+ shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
21989
+ summary?: string | null;
21990
+ updated_at?: string;
21991
+ updated_by?: string | null;
21992
+ version?: number;
21993
+ visibility?: Database["platform"]["Enums"]["visibility"];
21994
+ };
21995
+ Relationships: [];
21996
+ };
21890
21997
  reference: {
21891
21998
  Row: {
21892
21999
  caller_identity_hash: string | null;
@@ -21907,6 +22014,7 @@ type Database = {
21907
22014
  last_seen_revision: string | null;
21908
22015
  last_seen_scan_id: string | null;
21909
22016
  line: number | null;
22017
+ line_end: number | null;
21910
22018
  mandate_id: string | null;
21911
22019
  mandate_key: string;
21912
22020
  metadata: Json;
@@ -21949,6 +22057,7 @@ type Database = {
21949
22057
  last_seen_revision?: string | null;
21950
22058
  last_seen_scan_id?: string | null;
21951
22059
  line?: number | null;
22060
+ line_end?: number | null;
21952
22061
  mandate_id?: string | null;
21953
22062
  mandate_key: string;
21954
22063
  metadata?: Json;
@@ -21991,6 +22100,7 @@ type Database = {
21991
22100
  last_seen_revision?: string | null;
21992
22101
  last_seen_scan_id?: string | null;
21993
22102
  line?: number | null;
22103
+ line_end?: number | null;
21994
22104
  mandate_id?: string | null;
21995
22105
  mandate_key?: string;
21996
22106
  metadata?: Json;
@@ -22791,6 +22901,12 @@ type Database = {
22791
22901
  version_live: boolean;
22792
22902
  }[];
22793
22903
  };
22904
+ admin_run_counts: {
22905
+ Args: {
22906
+ p_since: string;
22907
+ };
22908
+ Returns: Json;
22909
+ };
22794
22910
  binding_holder_runnable: {
22795
22911
  Args: {
22796
22912
  p_holder_id: string;
@@ -22802,6 +22918,12 @@ type Database = {
22802
22918
  };
22803
22919
  Returns: boolean;
22804
22920
  };
22921
+ code_locations: {
22922
+ Args: {
22923
+ p_keys?: string[];
22924
+ };
22925
+ Returns: Json;
22926
+ };
22805
22927
  definition_restore: {
22806
22928
  Args: {
22807
22929
  p_mandate_id: string;
@@ -22864,6 +22986,24 @@ type Database = {
22864
22986
  };
22865
22987
  Returns: string[];
22866
22988
  };
22989
+ record_readiness_verdict: {
22990
+ Args: {
22991
+ p_door: string;
22992
+ p_mandate_key: string;
22993
+ p_missing: Json;
22994
+ p_organization_id: string;
22995
+ p_ready: boolean;
22996
+ p_required: Json;
22997
+ p_scope: Json;
22998
+ p_scope_key: string;
22999
+ p_summary: string;
23000
+ };
23001
+ Returns: {
23002
+ id: string;
23003
+ ready: boolean;
23004
+ refused_count: number;
23005
+ }[];
23006
+ };
22867
23007
  reference_head: {
22868
23008
  Args: never;
22869
23009
  Returns: {
@@ -32028,6 +32168,10 @@ type Database = {
32028
32168
  status: string;
32029
32169
  }[];
32030
32170
  };
32171
+ _public_placement_guard_impl: {
32172
+ Args: never;
32173
+ Returns: undefined;
32174
+ };
32031
32175
  _published_to_web_sql: {
32032
32176
  Args: {
32033
32177
  p_has_is_published: boolean;
@@ -32050,6 +32194,10 @@ type Database = {
32050
32194
  };
32051
32195
  Returns: number;
32052
32196
  };
32197
+ _registered_at_birth_schema_rename_impl: {
32198
+ Args: never;
32199
+ Returns: undefined;
32200
+ };
32053
32201
  _reopen_declared_doors_after_revoke_impl: {
32054
32202
  Args: never;
32055
32203
  Returns: undefined;
@@ -32155,6 +32303,10 @@ type Database = {
32155
32303
  tb: string;
32156
32304
  }[];
32157
32305
  };
32306
+ _sign_in_table_guard_impl: {
32307
+ Args: never;
32308
+ Returns: undefined;
32309
+ };
32158
32310
  _soft_delete_cascade_enqueue: {
32159
32311
  Args: {
32160
32312
  p_direction: string;
@@ -32564,6 +32716,10 @@ type Database = {
32564
32716
  turns: number;
32565
32717
  }[];
32566
32718
  };
32719
+ agent_test_account_ids: {
32720
+ Args: never;
32721
+ Returns: string[];
32722
+ };
32567
32723
  ai_latency_filter_options: {
32568
32724
  Args: {
32569
32725
  p_from: string;
@@ -34956,6 +35112,10 @@ type Database = {
34956
35112
  };
34957
35113
  Returns: boolean;
34958
35114
  };
35115
+ non_person_account_ids: {
35116
+ Args: never;
35117
+ Returns: string[];
35118
+ };
34959
35119
  normalize_decision_label: {
34960
35120
  Args: {
34961
35121
  p_answer: string;
@@ -35029,6 +35189,14 @@ type Database = {
35029
35189
  };
35030
35190
  Returns: string;
35031
35191
  };
35192
+ platform_admin_may: {
35193
+ Args: {
35194
+ p_id: string;
35195
+ p_token: string;
35196
+ p_write?: boolean;
35197
+ };
35198
+ Returns: boolean;
35199
+ };
35032
35200
  promote_custom_field_index: {
35033
35201
  Args: {
35034
35202
  p_concurrently?: boolean;
@@ -35045,6 +35213,24 @@ type Database = {
35045
35213
  };
35046
35214
  Returns: undefined;
35047
35215
  };
35216
+ protected_account_ids: {
35217
+ Args: never;
35218
+ Returns: string[];
35219
+ };
35220
+ protected_account_runs: {
35221
+ Args: {
35222
+ p_hours?: number;
35223
+ };
35224
+ Returns: {
35225
+ cost: number;
35226
+ driver: string;
35227
+ email: string;
35228
+ last_at: string;
35229
+ origin: string;
35230
+ runs: number;
35231
+ subject: string;
35232
+ }[];
35233
+ };
35048
35234
  provision: {
35049
35235
  Args: {
35050
35236
  p_applied_via?: string;
@@ -35852,6 +36038,28 @@ type Database = {
35852
36038
  updated_at: string;
35853
36039
  }[];
35854
36040
  };
36041
+ run_driver: {
36042
+ Args: {
36043
+ p_origin: string;
36044
+ p_source: string;
36045
+ p_test_account: boolean;
36046
+ };
36047
+ Returns: string;
36048
+ };
36049
+ run_driver_rank: {
36050
+ Args: {
36051
+ p_driver: string;
36052
+ };
36053
+ Returns: number;
36054
+ };
36055
+ run_is_own_work: {
36056
+ Args: {
36057
+ p_origin: string;
36058
+ p_real_person: boolean;
36059
+ p_source: string;
36060
+ };
36061
+ Returns: boolean;
36062
+ };
35855
36063
  schema_exposure_violations: {
35856
36064
  Args: {
35857
36065
  p_schema?: string;
@@ -53437,6 +53645,96 @@ type Database = {
53437
53645
  }
53438
53646
  ];
53439
53647
  };
53648
+ calendar_feed: {
53649
+ Row: {
53650
+ created_at: string;
53651
+ created_by: string | null;
53652
+ date_field: string | null;
53653
+ deleted_at: string | null;
53654
+ description_field: string | null;
53655
+ end_field: string | null;
53656
+ expires_at: string | null;
53657
+ id: string;
53658
+ last_read_at: string | null;
53659
+ metadata: Json;
53660
+ organization_id: string;
53661
+ published_to_web: boolean;
53662
+ published_to_web_at: string | null;
53663
+ published_to_web_by: string | null;
53664
+ read_count: number;
53665
+ revoked_at: string | null;
53666
+ shown_to: Database["platform"]["Enums"]["shown_to"] | null;
53667
+ table_id: string;
53668
+ time_zone: string;
53669
+ title: string;
53670
+ token_hash: string;
53671
+ token_prefix: string;
53672
+ updated_at: string;
53673
+ updated_by: string | null;
53674
+ version: number;
53675
+ view_id: string | null;
53676
+ visibility: Database["platform"]["Enums"]["visibility"];
53677
+ };
53678
+ Insert: {
53679
+ created_at?: string;
53680
+ created_by?: string | null;
53681
+ date_field?: string | null;
53682
+ deleted_at?: string | null;
53683
+ description_field?: string | null;
53684
+ end_field?: string | null;
53685
+ expires_at?: string | null;
53686
+ id?: string;
53687
+ last_read_at?: string | null;
53688
+ metadata?: Json;
53689
+ organization_id: string;
53690
+ published_to_web?: boolean;
53691
+ published_to_web_at?: string | null;
53692
+ published_to_web_by?: string | null;
53693
+ read_count?: number;
53694
+ revoked_at?: string | null;
53695
+ shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
53696
+ table_id: string;
53697
+ time_zone?: string;
53698
+ title: string;
53699
+ token_hash: string;
53700
+ token_prefix: string;
53701
+ updated_at?: string;
53702
+ updated_by?: string | null;
53703
+ version?: number;
53704
+ view_id?: string | null;
53705
+ visibility?: Database["platform"]["Enums"]["visibility"];
53706
+ };
53707
+ Update: {
53708
+ created_at?: string;
53709
+ created_by?: string | null;
53710
+ date_field?: string | null;
53711
+ deleted_at?: string | null;
53712
+ description_field?: string | null;
53713
+ end_field?: string | null;
53714
+ expires_at?: string | null;
53715
+ id?: string;
53716
+ last_read_at?: string | null;
53717
+ metadata?: Json;
53718
+ organization_id?: string;
53719
+ published_to_web?: boolean;
53720
+ published_to_web_at?: string | null;
53721
+ published_to_web_by?: string | null;
53722
+ read_count?: number;
53723
+ revoked_at?: string | null;
53724
+ shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
53725
+ table_id?: string;
53726
+ time_zone?: string;
53727
+ title?: string;
53728
+ token_hash?: string;
53729
+ token_prefix?: string;
53730
+ updated_at?: string;
53731
+ updated_by?: string | null;
53732
+ version?: number;
53733
+ view_id?: string | null;
53734
+ visibility?: Database["platform"]["Enums"]["visibility"];
53735
+ };
53736
+ Relationships: [];
53737
+ };
53440
53738
  credential_attachments: {
53441
53739
  Row: {
53442
53740
  created_at: string;
@@ -55608,6 +55906,16 @@ type Database = {
55608
55906
  };
55609
55907
  };
55610
55908
  Functions: {
55909
+ _calendar_feed_hash: {
55910
+ Args: {
55911
+ p_token: string;
55912
+ };
55913
+ Returns: string;
55914
+ };
55915
+ _calendar_feed_token: {
55916
+ Args: never;
55917
+ Returns: string;
55918
+ };
55611
55919
  _set_own_organization_choice: {
55612
55920
  Args: {
55613
55921
  p_column: string;
@@ -55672,6 +55980,45 @@ type Database = {
55672
55980
  user_id: string;
55673
55981
  }[];
55674
55982
  };
55983
+ calendar_feed_create: {
55984
+ Args: {
55985
+ p_description_field?: string;
55986
+ p_expires_days?: number;
55987
+ p_organization_id: string;
55988
+ p_table_id: string;
55989
+ p_time_zone?: string;
55990
+ p_title: string;
55991
+ p_view_id: string;
55992
+ };
55993
+ Returns: Json;
55994
+ };
55995
+ calendar_feed_default_days: {
55996
+ Args: never;
55997
+ Returns: number;
55998
+ };
55999
+ calendar_feed_list: {
56000
+ Args: never;
56001
+ Returns: Json;
56002
+ };
56003
+ calendar_feed_read: {
56004
+ Args: {
56005
+ p_token: string;
56006
+ };
56007
+ Returns: Json;
56008
+ };
56009
+ calendar_feed_revoke: {
56010
+ Args: {
56011
+ p_id: string;
56012
+ };
56013
+ Returns: Json;
56014
+ };
56015
+ calendar_feed_rotate: {
56016
+ Args: {
56017
+ p_expires_days?: number;
56018
+ p_id: string;
56019
+ };
56020
+ Returns: Json;
56021
+ };
55675
56022
  credential_item_holdings: {
55676
56023
  Args: {
55677
56024
  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.33",
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": "776d512c11dbe2d4909742a217ecc47fcfa2116f"
212
212
  }