@ai-matrx/data 0.22.4 → 0.22.6

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
@@ -4359,6 +4359,7 @@ type Database = {
4359
4359
  canvas_items: {
4360
4360
  Row: {
4361
4361
  artifact_index: number | null;
4362
+ chain_version: number;
4362
4363
  content: Json;
4363
4364
  content_hash: string | null;
4364
4365
  conversation_id: string | null;
@@ -4399,6 +4400,7 @@ type Database = {
4399
4400
  };
4400
4401
  Insert: {
4401
4402
  artifact_index?: number | null;
4403
+ chain_version?: number;
4402
4404
  content: Json;
4403
4405
  content_hash?: string | null;
4404
4406
  conversation_id?: string | null;
@@ -4439,6 +4441,7 @@ type Database = {
4439
4441
  };
4440
4442
  Update: {
4441
4443
  artifact_index?: number | null;
4444
+ chain_version?: number;
4442
4445
  content?: Json;
4443
4446
  content_hash?: string | null;
4444
4447
  conversation_id?: string | null;
@@ -8904,10 +8907,94 @@ type Database = {
8904
8907
  isSetofReturn: false;
8905
8908
  };
8906
8909
  };
8910
+ space_search: {
8911
+ Args: {
8912
+ p_limit?: number;
8913
+ p_query: string;
8914
+ };
8915
+ Returns: {
8916
+ icon: string;
8917
+ id: string;
8918
+ parent_id: string;
8919
+ path: string;
8920
+ snippet: string;
8921
+ title: string;
8922
+ updated_at: string;
8923
+ }[];
8924
+ };
8925
+ space_set_trashed: {
8926
+ Args: {
8927
+ p_document_id: string;
8928
+ p_trashed: boolean;
8929
+ };
8930
+ Returns: string;
8931
+ };
8932
+ space_sidebar: {
8933
+ Args: {
8934
+ p_expand?: string[];
8935
+ p_reveal?: string[];
8936
+ };
8937
+ Returns: {
8938
+ created_at: string;
8939
+ deleted_at: string;
8940
+ edge_position: number;
8941
+ icon: string;
8942
+ id: string;
8943
+ organization_id: string;
8944
+ parent_id: string;
8945
+ title: string;
8946
+ updated_at: string;
8947
+ version: number;
8948
+ }[];
8949
+ };
8907
8950
  space_snapshot_schema: {
8908
8951
  Args: never;
8909
8952
  Returns: Json;
8910
8953
  };
8954
+ space_summaries: {
8955
+ Args: {
8956
+ p_ids: string[];
8957
+ };
8958
+ Returns: {
8959
+ deleted_at: string;
8960
+ edge_position: number;
8961
+ icon: string;
8962
+ id: string;
8963
+ organization_id: string;
8964
+ parent_id: string;
8965
+ title: string;
8966
+ updated_at: string;
8967
+ version: number;
8968
+ }[];
8969
+ };
8970
+ space_trash: {
8971
+ Args: never;
8972
+ Returns: {
8973
+ created_at: string;
8974
+ deleted_at: string;
8975
+ edge_position: number;
8976
+ icon: string;
8977
+ id: string;
8978
+ organization_id: string;
8979
+ parent_id: string;
8980
+ title: string;
8981
+ updated_at: string;
8982
+ version: number;
8983
+ }[];
8984
+ };
8985
+ space_upcoming: {
8986
+ Args: {
8987
+ p_limit?: number;
8988
+ p_until?: string;
8989
+ };
8990
+ Returns: {
8991
+ body: string;
8992
+ deep_link: string;
8993
+ due_at: string;
8994
+ space_id: string;
8995
+ title: string;
8996
+ }[];
8997
+ };
8911
8998
  space_upsert_external: {
8912
8999
  Args: {
8913
9000
  p_cover?: Json;
@@ -22573,6 +22660,90 @@ type Database = {
22573
22660
  }
22574
22661
  ];
22575
22662
  };
22663
+ ai_request_latency: {
22664
+ Row: {
22665
+ agent_id: string | null;
22666
+ cache_outcome: Json;
22667
+ client_prep_ms: number | null;
22668
+ client_sent_at: string | null;
22669
+ conversation_id: string | null;
22670
+ created_at: string;
22671
+ created_by: string | null;
22672
+ id: string;
22673
+ metadata: Json;
22674
+ model: string | null;
22675
+ network_ms: number | null;
22676
+ organization_id: string;
22677
+ prep_blocks: Json;
22678
+ prep_s: number | null;
22679
+ provider_ttft_ms: number | null;
22680
+ request_id: string;
22681
+ route: string;
22682
+ server_arrived_at: string;
22683
+ server_task_id: string | null;
22684
+ status: string | null;
22685
+ time_to_first_provider_s: number | null;
22686
+ updated_at: string;
22687
+ updated_by: string | null;
22688
+ user_id: string | null;
22689
+ version: number;
22690
+ };
22691
+ Insert: {
22692
+ agent_id?: string | null;
22693
+ cache_outcome?: Json;
22694
+ client_prep_ms?: number | null;
22695
+ client_sent_at?: string | null;
22696
+ conversation_id?: string | null;
22697
+ created_at?: string;
22698
+ created_by?: string | null;
22699
+ id?: string;
22700
+ metadata?: Json;
22701
+ model?: string | null;
22702
+ network_ms?: number | null;
22703
+ organization_id: string;
22704
+ prep_blocks?: Json;
22705
+ prep_s?: number | null;
22706
+ provider_ttft_ms?: number | null;
22707
+ request_id: string;
22708
+ route: string;
22709
+ server_arrived_at: string;
22710
+ server_task_id?: string | null;
22711
+ status?: string | null;
22712
+ time_to_first_provider_s?: number | null;
22713
+ updated_at?: string;
22714
+ updated_by?: string | null;
22715
+ user_id?: string | null;
22716
+ version?: number;
22717
+ };
22718
+ Update: {
22719
+ agent_id?: string | null;
22720
+ cache_outcome?: Json;
22721
+ client_prep_ms?: number | null;
22722
+ client_sent_at?: string | null;
22723
+ conversation_id?: string | null;
22724
+ created_at?: string;
22725
+ created_by?: string | null;
22726
+ id?: string;
22727
+ metadata?: Json;
22728
+ model?: string | null;
22729
+ network_ms?: number | null;
22730
+ organization_id?: string;
22731
+ prep_blocks?: Json;
22732
+ prep_s?: number | null;
22733
+ provider_ttft_ms?: number | null;
22734
+ request_id?: string;
22735
+ route?: string;
22736
+ server_arrived_at?: string;
22737
+ server_task_id?: string | null;
22738
+ status?: string | null;
22739
+ time_to_first_provider_s?: number | null;
22740
+ updated_at?: string;
22741
+ updated_by?: string | null;
22742
+ user_id?: string | null;
22743
+ version?: number;
22744
+ };
22745
+ Relationships: [];
22746
+ };
22576
22747
  anon_function_birth_grandfather: {
22577
22748
  Row: {
22578
22749
  argtypes: string;
@@ -23536,6 +23707,51 @@ type Database = {
23536
23707
  };
23537
23708
  Relationships: [];
23538
23709
  };
23710
+ class_approval_by_org_admin: {
23711
+ Row: {
23712
+ application_name: string | null;
23713
+ approved_on: string;
23714
+ approver_role: string;
23715
+ approver_user_id: string;
23716
+ id: number;
23717
+ level: string;
23718
+ organization_id: string;
23719
+ readers: Json | null;
23720
+ reason: string;
23721
+ recorded_at: string;
23722
+ token: string;
23723
+ txid: unknown;
23724
+ };
23725
+ Insert: {
23726
+ application_name?: string | null;
23727
+ approved_on?: string;
23728
+ approver_role: string;
23729
+ approver_user_id: string;
23730
+ id?: never;
23731
+ level: string;
23732
+ organization_id: string;
23733
+ readers?: Json | null;
23734
+ reason: string;
23735
+ recorded_at?: string;
23736
+ token: string;
23737
+ txid?: unknown;
23738
+ };
23739
+ Update: {
23740
+ application_name?: string | null;
23741
+ approved_on?: string;
23742
+ approver_role?: string;
23743
+ approver_user_id?: string;
23744
+ id?: never;
23745
+ level?: string;
23746
+ organization_id?: string;
23747
+ readers?: Json | null;
23748
+ reason?: string;
23749
+ recorded_at?: string;
23750
+ token?: string;
23751
+ txid?: unknown;
23752
+ };
23753
+ Relationships: [];
23754
+ };
23539
23755
  client_callable_door: {
23540
23756
  Row: {
23541
23757
  anonymous_callers: boolean;
@@ -31167,6 +31383,35 @@ type Database = {
31167
31383
  };
31168
31384
  Returns: Json;
31169
31385
  };
31386
+ ai_latency_filter_options: {
31387
+ Args: {
31388
+ p_from: string;
31389
+ p_to: string;
31390
+ };
31391
+ Returns: {
31392
+ kind: string;
31393
+ n: number;
31394
+ value: string;
31395
+ }[];
31396
+ };
31397
+ ai_latency_report: {
31398
+ Args: {
31399
+ p_agent_id?: string;
31400
+ p_from: string;
31401
+ p_organization_id?: string;
31402
+ p_route?: string;
31403
+ p_server_task_id?: string;
31404
+ p_to: string;
31405
+ };
31406
+ Returns: {
31407
+ day: string;
31408
+ metric: string;
31409
+ n: number;
31410
+ p50: number;
31411
+ p90: number;
31412
+ route: string;
31413
+ }[];
31414
+ };
31170
31415
  ai_usage_names: {
31171
31416
  Args: {
31172
31417
  p_ids: Json;
@@ -51782,6 +52027,75 @@ type Database = {
51782
52027
  };
51783
52028
  Relationships: [];
51784
52029
  };
52030
+ desktop_app_profile: {
52031
+ Row: {
52032
+ account_identity: string | null;
52033
+ app_key: string;
52034
+ created_at: string;
52035
+ created_by: string | null;
52036
+ deleted_at: string | null;
52037
+ device_id: string | null;
52038
+ display_name: string;
52039
+ id: string;
52040
+ last_opened_at: string | null;
52041
+ metadata: Json;
52042
+ organization_id: string;
52043
+ profile_locator: string | null;
52044
+ published_to_web: boolean;
52045
+ published_to_web_at: string | null;
52046
+ published_to_web_by: string | null;
52047
+ shown_to: Database["platform"]["Enums"]["shown_to"] | null;
52048
+ updated_at: string;
52049
+ updated_by: string | null;
52050
+ version: number;
52051
+ visibility: Database["platform"]["Enums"]["visibility"];
52052
+ };
52053
+ Insert: {
52054
+ account_identity?: string | null;
52055
+ app_key: string;
52056
+ created_at?: string;
52057
+ created_by?: string | null;
52058
+ deleted_at?: string | null;
52059
+ device_id?: string | null;
52060
+ display_name: string;
52061
+ id?: string;
52062
+ last_opened_at?: string | null;
52063
+ metadata?: Json;
52064
+ organization_id: string;
52065
+ profile_locator?: string | null;
52066
+ published_to_web?: boolean;
52067
+ published_to_web_at?: string | null;
52068
+ published_to_web_by?: string | null;
52069
+ shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
52070
+ updated_at?: string;
52071
+ updated_by?: string | null;
52072
+ version?: number;
52073
+ visibility?: Database["platform"]["Enums"]["visibility"];
52074
+ };
52075
+ Update: {
52076
+ account_identity?: string | null;
52077
+ app_key?: string;
52078
+ created_at?: string;
52079
+ created_by?: string | null;
52080
+ deleted_at?: string | null;
52081
+ device_id?: string | null;
52082
+ display_name?: string;
52083
+ id?: string;
52084
+ last_opened_at?: string | null;
52085
+ metadata?: Json;
52086
+ organization_id?: string;
52087
+ profile_locator?: string | null;
52088
+ published_to_web?: boolean;
52089
+ published_to_web_at?: string | null;
52090
+ published_to_web_by?: string | null;
52091
+ shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
52092
+ updated_at?: string;
52093
+ updated_by?: string | null;
52094
+ version?: number;
52095
+ visibility?: Database["platform"]["Enums"]["visibility"];
52096
+ };
52097
+ Relationships: [];
52098
+ };
51785
52099
  feedback_comments: {
51786
52100
  Row: {
51787
52101
  author_name: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/data",
3
- "version": "0.22.4",
3
+ "version": "0.22.6",
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",