@ai-matrx/records 0.99.24 → 0.99.25

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 (46) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/{client-BgyGYbAY.d.ts → client-CFaUo85X.d.ts} +129 -1
  3. package/dist/{client-CL-dgaM6.d.cts → client-Dxs_M4if.d.cts} +129 -1
  4. package/dist/core/index.cjs +24 -0
  5. package/dist/core/index.cjs.map +1 -1
  6. package/dist/core/index.d.cts +4 -2
  7. package/dist/core/index.d.ts +4 -2
  8. package/dist/core/index.js +24 -0
  9. package/dist/core/index.js.map +1 -1
  10. package/dist/data/index.cjs +17 -0
  11. package/dist/data/index.cjs.map +1 -1
  12. package/dist/data/index.d.cts +1 -1
  13. package/dist/data/index.d.ts +1 -1
  14. package/dist/data/index.js +17 -0
  15. package/dist/data/index.js.map +1 -1
  16. package/dist/{declareTable-CWbYby6X.d.cts → declareTable-DGzmOJw0.d.cts} +1 -1
  17. package/dist/{declareTable-DO6Aeptz.d.ts → declareTable-j7whJWGf.d.ts} +1 -1
  18. package/dist/index.cjs +7 -0
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +2 -2
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +7 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/questions/index.d.cts +1 -1
  25. package/dist/questions/index.d.ts +1 -1
  26. package/dist/react/index.cjs +24 -0
  27. package/dist/react/index.cjs.map +1 -1
  28. package/dist/react/index.d.cts +129 -1
  29. package/dist/react/index.d.ts +129 -1
  30. package/dist/react/index.js +24 -0
  31. package/dist/react/index.js.map +1 -1
  32. package/dist/setup/index.cjs +17 -0
  33. package/dist/setup/index.cjs.map +1 -1
  34. package/dist/setup/index.d.cts +1 -1
  35. package/dist/setup/index.d.ts +1 -1
  36. package/dist/setup/index.js +17 -0
  37. package/dist/setup/index.js.map +1 -1
  38. package/dist/typed-table/index.cjs +17 -0
  39. package/dist/typed-table/index.cjs.map +1 -1
  40. package/dist/typed-table/index.d.cts +2 -2
  41. package/dist/typed-table/index.d.ts +2 -2
  42. package/dist/typed-table/index.js +17 -0
  43. package/dist/typed-table/index.js.map +1 -1
  44. package/dist/views/index.d.cts +1 -1
  45. package/dist/views/index.d.ts +1 -1
  46. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
1
  import { A as AggregateBucket } from '../subscription-l5gE975V.cjs';
2
- import { R as RecordsClient } from '../client-CL-dgaM6.cjs';
2
+ import { R as RecordsClient } from '../client-Dxs_M4if.cjs';
3
3
  import { F as Field } from '../field-Bm5OFzc7.cjs';
4
4
  import { H as HiddenFieldNotice, U as Uuid, R as RecordsResult } from '../record-GKSmu35W.cjs';
5
5
  import { R as RuleExpression } from '../rule-63XMhwgs.cjs';
@@ -1,5 +1,5 @@
1
1
  import { A as AggregateBucket } from '../subscription-DGYRScEV.js';
2
- import { R as RecordsClient } from '../client-BgyGYbAY.js';
2
+ import { R as RecordsClient } from '../client-CFaUo85X.js';
3
3
  import { F as Field } from '../field-BMZs98m8.js';
4
4
  import { H as HiddenFieldNotice, U as Uuid, R as RecordsResult } from '../record-GKSmu35W.js';
5
5
  import { R as RuleExpression } from '../rule-HUw0rezq.js';
@@ -126,6 +126,7 @@ __export(react_exports, {
126
126
  asChoiceNudge: () => asChoiceNudge,
127
127
  asPermissionLevel: () => asPermissionLevel,
128
128
  atLeast: () => atLeast,
129
+ automationWebhookUrl: () => automationWebhookUrl,
129
130
  autonumberJoin: () => autonumberJoin,
130
131
  autonumberPrefixOf: () => autonumberPrefixOf,
131
132
  autonumberSearchOf: () => autonumberSearchOf,
@@ -5446,6 +5447,9 @@ var DOORS = {
5446
5447
  automationRuns: "automation_runs",
5447
5448
  // AUTOMATIONS-AIRTABLE (2026-10-10) — run one automation once now on a picked row.
5448
5449
  automationTest: "automation_test",
5450
+ // AT-AUTO2 (2026-10-15) — every save of an automation, and restoring one.
5451
+ automationRevisions: "automation_revisions",
5452
+ automationRevisionRestore: "automation_revision_restore",
5449
5453
  tableWebhookDeclare: "table_webhook_declare",
5450
5454
  tableWebhooks: "table_webhooks",
5451
5455
  tableWebhookArchive: "table_webhook_archive",
@@ -9195,6 +9199,20 @@ function createRecordsClient(given) {
9195
9199
  if (result.ok && record_id) announceRecordChanged(record_id);
9196
9200
  return result;
9197
9201
  },
9202
+ async automationRevisions({ automation_id }) {
9203
+ return callDoor(
9204
+ DOORS.automationRevisions,
9205
+ { p_organization_id: org, p_automation_id: automation_id },
9206
+ "automationRevisions"
9207
+ );
9208
+ },
9209
+ async automationRevisionRestore({ automation_id, revision_id }) {
9210
+ return callDoor(
9211
+ DOORS.automationRevisionRestore,
9212
+ { p_organization_id: org, p_automation_id: automation_id, p_revision_id: revision_id },
9213
+ "automationRevisionRestore"
9214
+ );
9215
+ },
9198
9216
  async tableWebhookDeclare({ table_id, target_url, events, description }) {
9199
9217
  return callDoor(
9200
9218
  DOORS.tableWebhookDeclare,
@@ -13421,6 +13439,12 @@ var BUILT_KIND_WORD = {
13421
13439
  checklist: "Checklist"
13422
13440
  };
13423
13441
 
13442
+ // src/automation.ts
13443
+ function automationWebhookUrl(serverBase, item2) {
13444
+ if (!item2.webhook_secret) return null;
13445
+ return `${serverBase.replace(/\/+$/, "")}/api/automations/hooks/${item2.id}/${item2.webhook_secret}`;
13446
+ }
13447
+
13424
13448
  // src/base.ts
13425
13449
  function baseCopyName(name) {
13426
13450
  return `${name.trim() || "Base"} (copy)`;