@ai-matrx/records 0.80.1 → 0.80.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.
Files changed (70) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/app-table/index.cjs +12 -0
  3. package/dist/app-table/index.cjs.map +1 -1
  4. package/dist/app-table/index.d.cts +7 -7
  5. package/dist/app-table/index.d.ts +7 -7
  6. package/dist/app-table/index.js +12 -0
  7. package/dist/app-table/index.js.map +1 -1
  8. package/dist/{client-BbLzOf08.d.ts → client-CB_Klj1P.d.ts} +10 -5
  9. package/dist/{client-GhSH0bR7.d.cts → client-D0yGEof4.d.cts} +10 -5
  10. package/dist/core/index.cjs +18 -0
  11. package/dist/core/index.cjs.map +1 -1
  12. package/dist/core/index.d.cts +12 -11
  13. package/dist/core/index.d.ts +12 -11
  14. package/dist/core/index.js +18 -0
  15. package/dist/core/index.js.map +1 -1
  16. package/dist/data/index.cjs +12 -0
  17. package/dist/data/index.cjs.map +1 -1
  18. package/dist/data/index.d.cts +7 -7
  19. package/dist/data/index.d.ts +7 -7
  20. package/dist/data/index.js +12 -0
  21. package/dist/data/index.js.map +1 -1
  22. package/dist/{declareTable-D6mB7Va8.d.ts → declareTable-DoYVueVF.d.ts} +4 -4
  23. package/dist/{declareTable-Bb0eUtPF.d.cts → declareTable-l7ktxN6p.d.cts} +4 -4
  24. package/dist/{field-DJAvDExi.d.ts → field-6UtYgFeu.d.ts} +1 -1
  25. package/dist/{field-DCXU6k9i.d.cts → field-DpJR_5Pe.d.cts} +1 -1
  26. package/dist/index.cjs +10 -0
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +7 -7
  29. package/dist/index.d.ts +7 -7
  30. package/dist/index.js +10 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/memory/index.cjs +4 -0
  33. package/dist/memory/index.cjs.map +1 -1
  34. package/dist/memory/index.d.cts +6 -6
  35. package/dist/memory/index.d.ts +6 -6
  36. package/dist/memory/index.js +4 -0
  37. package/dist/memory/index.js.map +1 -1
  38. package/dist/{ports-DaHUjVg7.d.cts → ports-CE7umTp-.d.cts} +1 -1
  39. package/dist/{ports-Kpc-RihV.d.ts → ports-CiEYhwi5.d.ts} +1 -1
  40. package/dist/react/index.cjs +18 -0
  41. package/dist/react/index.cjs.map +1 -1
  42. package/dist/react/index.d.cts +29 -2
  43. package/dist/react/index.d.ts +29 -2
  44. package/dist/react/index.js +18 -0
  45. package/dist/react/index.js.map +1 -1
  46. package/dist/realtime/index.d.cts +2 -2
  47. package/dist/realtime/index.d.ts +2 -2
  48. package/dist/{record-DCaOJbhA.d.cts → record-CvqV8wyO.d.cts} +21 -1
  49. package/dist/{record-DCaOJbhA.d.ts → record-CvqV8wyO.d.ts} +21 -1
  50. package/dist/{subscription-C_hNjbaR.d.cts → subscription-CC0kgkwa.d.cts} +1 -1
  51. package/dist/{subscription-B9znK2dw.d.ts → subscription-DjkuDMcX.d.ts} +1 -1
  52. package/dist/{table-kind-lHVdMZGy.d.ts → table-kind-DHpMEOHd.d.cts} +6 -4
  53. package/dist/{table-kind-DptSVo_4.d.cts → table-kind-FMYq3nCr.d.ts} +6 -4
  54. package/dist/templates/index.cjs +67 -4
  55. package/dist/templates/index.cjs.map +1 -1
  56. package/dist/templates/index.d.cts +26 -10
  57. package/dist/templates/index.d.ts +26 -10
  58. package/dist/templates/index.js +67 -4
  59. package/dist/templates/index.js.map +1 -1
  60. package/dist/{types-CHEFgCu1.d.ts → types-B4LF3sFx.d.ts} +2 -2
  61. package/dist/{types-b-VGi15H.d.ts → types-BbCZJh1C.d.ts} +2 -2
  62. package/dist/{types-DuyBN2im.d.cts → types-DuceX7js.d.cts} +2 -2
  63. package/dist/{types-CD2HoaZt.d.cts → types-Flsf_KU5.d.cts} +2 -2
  64. package/dist/use-cases/index.cjs.map +1 -1
  65. package/dist/use-cases/index.d.cts +5 -5
  66. package/dist/use-cases/index.d.ts +5 -5
  67. package/dist/use-cases/index.js.map +1 -1
  68. package/dist/{validate-BEfYwBpA.d.ts → validate-DyVwSD74.d.ts} +1 -1
  69. package/dist/{validate-CubFFxpu.d.cts → validate-EvZGkD96.d.cts} +1 -1
  70. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { P as PgError, A as Actor, U as Uuid } from './record-DCaOJbhA.cjs';
1
+ import { P as PgError, A as Actor, U as Uuid } from './record-CvqV8wyO.cjs';
2
2
 
3
3
  /**
4
4
  * The data seam: a structural subset of `SupabaseClient`. The package never
@@ -1,4 +1,4 @@
1
- import { P as PgError, A as Actor, U as Uuid } from './record-DCaOJbhA.js';
1
+ import { P as PgError, A as Actor, U as Uuid } from './record-CvqV8wyO.js';
2
2
 
3
3
  /**
4
4
  * The data seam: a structural subset of `SupabaseClient`. The package never
@@ -1647,21 +1647,25 @@ var STORE_DOORS = [
1647
1647
  { name: "form_declare", args: "p_organization_id uuid, p_table_id uuid, p_title text, p_questions jsonb, p_presentation jsonb DEFAULT '{}'::jsonb, p_submission_cap integer DEFAULT NULL::integer, p_quarantine_rule_id uuid DEFAULT NULL::uuid, p_notify_rule_id uuid DEFAULT NULL::uuid, p_form_id uuid DEFAULT NULL::uuid, p_slug text DEFAULT NULL::text", returns: "uuid", security: "definer" },
1648
1648
  { name: "form_draft_read", args: "p_form_id uuid, p_secret text", returns: "TABLE(answers jsonb, saved_at timestamp with time zone, expires_at timestamp with time zone, state text, message text)", security: "definer" },
1649
1649
  { name: "form_draft_save", args: "p_form_id uuid, p_answers jsonb, p_secret text DEFAULT NULL::text, p_bucket text DEFAULT NULL::text, p_origin text DEFAULT NULL::text", returns: "TABLE(draft_secret text, saved_at timestamp with time zone, expires_at timestamp with time zone, state text, message text)", security: "definer" },
1650
+ { name: "form_knobs", args: "p_organization_id uuid", returns: "jsonb", security: "definer" },
1650
1651
  { name: "form_look_options", args: "p_organization_id uuid, p_presentation jsonb DEFAULT '{}'::jsonb", returns: "jsonb", security: "definer" },
1651
1652
  { name: "form_notify", args: "p_organization_id uuid, p_form_id uuid, p_record_id uuid, p_submission_id uuid", returns: "uuid", security: "invoker" },
1652
1653
  { name: "form_preview_asks", args: "p_organization_id uuid, p_table_id uuid, p_questions jsonb, p_values jsonb", returns: "TABLE(field_key text, asked boolean, decided boolean, said text)", security: "definer" },
1653
1654
  { name: "form_preview_route", args: "p_organization_id uuid, p_table_id uuid, p_questions jsonb, p_endings jsonb, p_values jsonb", returns: "jsonb", security: "definer" },
1654
1655
  { name: "form_public", args: "p_form_id uuid", returns: "TABLE(form_id uuid, organization_id uuid, table_id uuid, title text, presentation jsonb, fields jsonb, honeypot_key text, state text, message text)", security: "definer" },
1655
1656
  { name: "form_public_asks", args: "p_form_id uuid, p_values jsonb, p_secret text DEFAULT NULL::text, p_origin text DEFAULT NULL::text", returns: "TABLE(field_key text, asked boolean, decided boolean, said text)", security: "definer" },
1657
+ { name: "form_public_options", args: "p_form_id uuid", returns: "jsonb", security: "definer" },
1656
1658
  { name: "form_public_route", args: "p_form_id uuid, p_values jsonb", returns: "jsonb", security: "definer" },
1657
1659
  { name: "form_redirect_domains", args: "p_organization_id uuid", returns: "text[]", security: "invoker" },
1658
1660
  { name: "form_redirect_refusal", args: "p_organization_id uuid, p_url text", returns: "text", security: "invoker" },
1661
+ { name: "form_respondent_copy", args: "p_organization_id uuid, p_form_id uuid, p_record_id uuid, p_submission_id uuid", returns: "jsonb", security: "definer" },
1659
1662
  { name: "form_restore", args: "p_organization_id uuid, p_form_id uuid", returns: "jsonb", security: "definer" },
1660
1663
  { name: "form_results", args: "p_organization_id uuid, p_form_id uuid", returns: "jsonb", security: "definer" },
1661
1664
  { name: "form_slug", args: "p_organization_id uuid, p_title text, p_form_id uuid DEFAULT NULL::uuid", returns: "text", security: "invoker" },
1662
1665
  { name: "form_submit", args: "p_form_id uuid, p_origin text, p_payload jsonb, p_bucket text, p_honeypot text DEFAULT NULL::text, p_client_key text DEFAULT NULL::text", returns: "TABLE(submission_id uuid, record_id uuid, state text, message text)", security: "definer" },
1663
1666
  { name: "form_theme_options", args: "", returns: "jsonb", security: "invoker" },
1664
1667
  { name: "form_visit", args: "p_form_id uuid, p_visit text, p_event text, p_field text DEFAULT NULL::text", returns: "text", security: "definer" },
1668
+ { name: "form_visit_admit", args: "p_form_id uuid, p_bucket text", returns: "boolean", security: "definer" },
1665
1669
  { name: "forms", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid", returns: "TABLE(form_id uuid, table_id uuid, title text, slug text, published_at timestamp with time zone, closed_at timestamp with time zone, submission_cap integer, responses bigint, in_table bigint, held bigint, rejected bigint, state text, quarantine_rule_id uuid, notify_rule_id uuid, presentation jsonb)", security: "definer" },
1666
1670
  { name: "forms_archived", args: "p_organization_id uuid, p_table_id uuid DEFAULT NULL::uuid, p_limit integer DEFAULT 100", returns: "TABLE(form_id uuid, table_id uuid, table_name text, kind text, title text, slug text, archived_at timestamp with time zone, archived_by uuid, table_archived boolean, can_restore boolean)", security: "definer" },
1667
1671
  { name: "formula_compile_sql", args: "p_organization_id uuid, p_expr jsonb, p_values_sql text", returns: "text", security: "invoker" },
@@ -2629,6 +2633,7 @@ var ENTITY_TOKENS = [
2629
2633
  "deprecated_relation",
2630
2634
  "derive_run",
2631
2635
  "dev_login_audit",
2636
+ "device_handoff",
2632
2637
  "dict_entry",
2633
2638
  "dict_provider_publication",
2634
2639
  "dict_setting",
@@ -2664,12 +2669,15 @@ var ENTITY_TOKENS = [
2664
2669
  "esign_envelope",
2665
2670
  "esign_envelope_certificate",
2666
2671
  "esign_envelope_document",
2672
+ "esign_envelope_draft",
2667
2673
  "esign_envelope_event",
2668
2674
  "esign_envelope_external_ref",
2669
2675
  "esign_envelope_signer",
2670
2676
  "esign_provider",
2671
2677
  "esign_provider_binding",
2678
+ "esign_saved_signature",
2672
2679
  "esign_signing_key",
2680
+ "esign_template",
2673
2681
  "execution_event_cursor",
2674
2682
  "extension_auth_code",
2675
2683
  "external_link",
@@ -3296,6 +3304,7 @@ var ENTITY_TOKENS = [
3296
3304
  "tool_binding",
3297
3305
  "tool_bundle",
3298
3306
  "tool_call",
3307
+ "tool_call_facts",
3299
3308
  "tool_definition_version",
3300
3309
  "tool_executor",
3301
3310
  "tool_surface_defaults",
@@ -3330,6 +3339,7 @@ var ENTITY_TOKENS = [
3330
3339
  "uploads_inflight",
3331
3340
  "user",
3332
3341
  "user_achievement",
3342
+ "user_acquisition_facts",
3333
3343
  "user_active_context",
3334
3344
  "user_analysis_preference",
3335
3345
  "user_email_preference",
@@ -3800,6 +3810,7 @@ var DOORS = {
3800
3810
  formPreviewRoute: "form_preview_route",
3801
3811
  /** TYPEFORM-DUP: views, starts, completions, drop-off and answers per question. */
3802
3812
  formResults: "form_results",
3813
+ formKnobs: "form_knobs",
3803
3814
  formLookOptions: "form_look_options",
3804
3815
  // PRODUCTS row 14 — "let clients book a 30-minute consult". A booking page IS an
3805
3816
  // `anon_form`, so it is opened and closed by `anonPublish` like any other; this is
@@ -5842,6 +5853,13 @@ function createRecordsClient(given) {
5842
5853
  "formResults"
5843
5854
  );
5844
5855
  },
5856
+ async formKnobs() {
5857
+ return callDoor(
5858
+ DOORS.formKnobs,
5859
+ { p_organization_id: org },
5860
+ "formKnobs"
5861
+ );
5862
+ },
5845
5863
  async formLookOptions(args) {
5846
5864
  return callDoor(
5847
5865
  DOORS.formLookOptions,