busabase-sdk 0.30.0 → 0.40.0

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.
@@ -319,6 +319,10 @@ declare const NodeIconSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
319
319
  type NodeIcon = z.infer<typeof NodeIconSchema>;
320
320
  //#endregion
321
321
  //#region ../../packages/busabase-contract/src/contract/schemas.d.ts
322
+ /** @see nodeSettingsSchema — declared here so `NodeOutput` can reference it. */
323
+ type NodeSettings = {
324
+ airappEngine?: "browser" | "local" | "remote" | null;
325
+ };
322
326
  interface NodeOutput {
323
327
  id: string;
324
328
  parentId: string | null;
@@ -338,6 +342,15 @@ interface NodeOutput {
338
342
  metadata: Record<string, unknown> & {
339
343
  version?: string;
340
344
  };
345
+ /**
346
+ * System settings the product DOES read and act on — the opposite of
347
+ * `metadata` above, and separate for that reason.
348
+ *
349
+ * Written only by `PATCH /nodes/{nodeId}/settings`, whose input is a closed
350
+ * schema; the generic metadata endpoint cannot address it. See
351
+ * `nodeSettingsSchema`.
352
+ */
353
+ settings?: NodeSettings;
341
354
  /**
342
355
  * This node's OWN declared visibility, or null when it simply inherits from
343
356
  * its ancestors. Access control, so it is a real column rather than a
@@ -928,6 +941,7 @@ declare const cloudContract: {
928
941
  targetBaseSlug: z.ZodOptional<z.ZodString>;
929
942
  }, z.core.$strip>>;
930
943
  }, z.core.$strip>>;
944
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
931
945
  }, z.core.$strip>>;
932
946
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
933
947
  operations: z.ZodArray<z.ZodObject<{
@@ -1363,6 +1377,7 @@ declare const cloudContract: {
1363
1377
  targetBaseSlug: z.ZodOptional<z.ZodString>;
1364
1378
  }, z.core.$strip>>;
1365
1379
  }, z.core.$strip>>;
1380
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1366
1381
  }, z.core.$strip>>;
1367
1382
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
1368
1383
  operations: z.ZodArray<z.ZodObject<{
@@ -1626,6 +1641,113 @@ declare const cloudContract: {
1626
1641
  nodeId: z.ZodString;
1627
1642
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1628
1643
  }, z.core.$strip>, z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
1644
+ updateSettings: import("@orpc/contract").ContractProcedure<z.ZodObject<{
1645
+ nodeId: z.ZodString;
1646
+ settings: z.ZodObject<{
1647
+ airappEngine: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1648
+ browser: "browser";
1649
+ local: "local";
1650
+ remote: "remote";
1651
+ }>>>;
1652
+ }, z.core.$strict>;
1653
+ }, z.core.$strip>, z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
1654
+ getAgentPrompts: import("@orpc/contract").ContractProcedure<z.ZodObject<{
1655
+ nodeId: z.ZodString;
1656
+ }, z.core.$strip>, z.ZodObject<{
1657
+ nodeId: z.ZodString;
1658
+ agentPrompts: z.ZodNullable<z.ZodArray<z.ZodObject<{
1659
+ key: z.ZodString;
1660
+ intent: z.ZodOptional<z.ZodEnum<{
1661
+ change: "change";
1662
+ "read-only": "read-only";
1663
+ }>>;
1664
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
1665
+ de: "de";
1666
+ en: "en";
1667
+ es: "es";
1668
+ fr: "fr";
1669
+ ja: "ja";
1670
+ ko: "ko";
1671
+ pt: "pt";
1672
+ "zh-CN": "zh-CN";
1673
+ "zh-TW": "zh-TW";
1674
+ }> & z.core.$partial, z.ZodString>]>;
1675
+ body: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
1676
+ de: "de";
1677
+ en: "en";
1678
+ es: "es";
1679
+ fr: "fr";
1680
+ ja: "ja";
1681
+ ko: "ko";
1682
+ pt: "pt";
1683
+ "zh-CN": "zh-CN";
1684
+ "zh-TW": "zh-TW";
1685
+ }> & z.core.$partial, z.ZodString>]>;
1686
+ }, z.core.$strip>>>;
1687
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
1688
+ updateAgentPrompts: import("@orpc/contract").ContractProcedure<z.ZodObject<{
1689
+ nodeId: z.ZodString;
1690
+ agentPrompts: z.ZodNullable<z.ZodArray<z.ZodObject<{
1691
+ key: z.ZodString;
1692
+ intent: z.ZodOptional<z.ZodEnum<{
1693
+ change: "change";
1694
+ "read-only": "read-only";
1695
+ }>>;
1696
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
1697
+ de: "de";
1698
+ en: "en";
1699
+ es: "es";
1700
+ fr: "fr";
1701
+ ja: "ja";
1702
+ ko: "ko";
1703
+ pt: "pt";
1704
+ "zh-CN": "zh-CN";
1705
+ "zh-TW": "zh-TW";
1706
+ }> & z.core.$partial, z.ZodString>]>;
1707
+ body: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
1708
+ de: "de";
1709
+ en: "en";
1710
+ es: "es";
1711
+ fr: "fr";
1712
+ ja: "ja";
1713
+ ko: "ko";
1714
+ pt: "pt";
1715
+ "zh-CN": "zh-CN";
1716
+ "zh-TW": "zh-TW";
1717
+ }> & z.core.$partial, z.ZodString>]>;
1718
+ }, z.core.$strip>>>;
1719
+ }, z.core.$strip>, z.ZodObject<{
1720
+ nodeId: z.ZodString;
1721
+ agentPrompts: z.ZodNullable<z.ZodArray<z.ZodObject<{
1722
+ key: z.ZodString;
1723
+ intent: z.ZodOptional<z.ZodEnum<{
1724
+ change: "change";
1725
+ "read-only": "read-only";
1726
+ }>>;
1727
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
1728
+ de: "de";
1729
+ en: "en";
1730
+ es: "es";
1731
+ fr: "fr";
1732
+ ja: "ja";
1733
+ ko: "ko";
1734
+ pt: "pt";
1735
+ "zh-CN": "zh-CN";
1736
+ "zh-TW": "zh-TW";
1737
+ }> & z.core.$partial, z.ZodString>]>;
1738
+ body: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
1739
+ de: "de";
1740
+ en: "en";
1741
+ es: "es";
1742
+ fr: "fr";
1743
+ ja: "ja";
1744
+ ko: "ko";
1745
+ pt: "pt";
1746
+ "zh-CN": "zh-CN";
1747
+ "zh-TW": "zh-TW";
1748
+ }> & z.core.$partial, z.ZodString>]>;
1749
+ }, z.core.$strip>>>;
1750
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
1629
1751
  updateContent: import("@orpc/contract").ContractProcedure<z.ZodObject<{
1630
1752
  nodeId: z.ZodString;
1631
1753
  content: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1936,6 +2058,7 @@ declare const cloudContract: {
1936
2058
  targetBaseSlug: z.ZodOptional<z.ZodString>;
1937
2059
  }, z.core.$strip>>;
1938
2060
  }, z.core.$strip>>;
2061
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1939
2062
  }, z.core.$strip>>;
1940
2063
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
1941
2064
  operations: z.ZodArray<z.ZodObject<{
@@ -2726,8 +2849,10 @@ declare const cloudContract: {
2726
2849
  "drive.created": "drive.created";
2727
2850
  "field.created": "field.created";
2728
2851
  "file.created": "file.created";
2852
+ "node.agent_prompts_updated": "node.agent_prompts_updated";
2729
2853
  "node.metadata_updated": "node.metadata_updated";
2730
2854
  "node.purged": "node.purged";
2855
+ "node.settings_updated": "node.settings_updated";
2731
2856
  "record.viewed": "record.viewed";
2732
2857
  "skill.created": "skill.created";
2733
2858
  }>;
@@ -2781,8 +2906,10 @@ declare const cloudContract: {
2781
2906
  "drive.created": "drive.created";
2782
2907
  "field.created": "field.created";
2783
2908
  "file.created": "file.created";
2909
+ "node.agent_prompts_updated": "node.agent_prompts_updated";
2784
2910
  "node.metadata_updated": "node.metadata_updated";
2785
2911
  "node.purged": "node.purged";
2912
+ "node.settings_updated": "node.settings_updated";
2786
2913
  "record.viewed": "record.viewed";
2787
2914
  "skill.created": "skill.created";
2788
2915
  }>;
@@ -2812,8 +2939,10 @@ declare const cloudContract: {
2812
2939
  "drive.created": "drive.created";
2813
2940
  "field.created": "field.created";
2814
2941
  "file.created": "file.created";
2942
+ "node.agent_prompts_updated": "node.agent_prompts_updated";
2815
2943
  "node.metadata_updated": "node.metadata_updated";
2816
2944
  "node.purged": "node.purged";
2945
+ "node.settings_updated": "node.settings_updated";
2817
2946
  "record.viewed": "record.viewed";
2818
2947
  "skill.created": "skill.created";
2819
2948
  }>;
@@ -3028,6 +3157,7 @@ declare const cloudContract: {
3028
3157
  targetBaseSlug: z.ZodOptional<z.ZodString>;
3029
3158
  }, z.core.$strip>>;
3030
3159
  }, z.core.$strip>>;
3160
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3031
3161
  }, z.core.$strip>>;
3032
3162
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
3033
3163
  operations: z.ZodArray<z.ZodObject<{
@@ -3461,6 +3591,7 @@ declare const cloudContract: {
3461
3591
  targetBaseSlug: z.ZodOptional<z.ZodString>;
3462
3592
  }, z.core.$strip>>;
3463
3593
  }, z.core.$strip>>;
3594
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3464
3595
  }, z.core.$strip>>;
3465
3596
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
3466
3597
  operations: z.ZodArray<z.ZodObject<{
@@ -3865,6 +3996,7 @@ declare const cloudContract: {
3865
3996
  targetBaseSlug: z.ZodOptional<z.ZodString>;
3866
3997
  }, z.core.$strip>>;
3867
3998
  }, z.core.$strip>>;
3999
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3868
4000
  }, z.core.$strip>;
3869
4001
  headCommit: z.ZodObject<{
3870
4002
  id: z.ZodString;
@@ -3943,8 +4075,10 @@ declare const cloudContract: {
3943
4075
  "drive.created": "drive.created";
3944
4076
  "field.created": "field.created";
3945
4077
  "file.created": "file.created";
4078
+ "node.agent_prompts_updated": "node.agent_prompts_updated";
3946
4079
  "node.metadata_updated": "node.metadata_updated";
3947
4080
  "node.purged": "node.purged";
4081
+ "node.settings_updated": "node.settings_updated";
3948
4082
  "record.viewed": "record.viewed";
3949
4083
  "skill.created": "skill.created";
3950
4084
  }>;
@@ -4122,6 +4256,7 @@ declare const cloudContract: {
4122
4256
  targetBaseSlug: z.ZodOptional<z.ZodString>;
4123
4257
  }, z.core.$strip>>;
4124
4258
  }, z.core.$strip>>;
4259
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4125
4260
  }, z.core.$strip>;
4126
4261
  headCommit: z.ZodObject<{
4127
4262
  id: z.ZodString;
@@ -4357,6 +4492,7 @@ declare const cloudContract: {
4357
4492
  targetBaseSlug: z.ZodOptional<z.ZodString>;
4358
4493
  }, z.core.$strip>>;
4359
4494
  }, z.core.$strip>>;
4495
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4360
4496
  }, z.core.$strip>>;
4361
4497
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
4362
4498
  operations: z.ZodArray<z.ZodObject<{
@@ -4790,6 +4926,7 @@ declare const cloudContract: {
4790
4926
  targetBaseSlug: z.ZodOptional<z.ZodString>;
4791
4927
  }, z.core.$strip>>;
4792
4928
  }, z.core.$strip>>;
4929
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4793
4930
  }, z.core.$strip>>;
4794
4931
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
4795
4932
  operations: z.ZodArray<z.ZodObject<{
@@ -5194,6 +5331,7 @@ declare const cloudContract: {
5194
5331
  targetBaseSlug: z.ZodOptional<z.ZodString>;
5195
5332
  }, z.core.$strip>>;
5196
5333
  }, z.core.$strip>>;
5334
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5197
5335
  }, z.core.$strip>;
5198
5336
  headCommit: z.ZodObject<{
5199
5337
  id: z.ZodString;
@@ -5272,8 +5410,10 @@ declare const cloudContract: {
5272
5410
  "drive.created": "drive.created";
5273
5411
  "field.created": "field.created";
5274
5412
  "file.created": "file.created";
5413
+ "node.agent_prompts_updated": "node.agent_prompts_updated";
5275
5414
  "node.metadata_updated": "node.metadata_updated";
5276
5415
  "node.purged": "node.purged";
5416
+ "node.settings_updated": "node.settings_updated";
5277
5417
  "record.viewed": "record.viewed";
5278
5418
  "skill.created": "skill.created";
5279
5419
  }>;
@@ -5451,6 +5591,7 @@ declare const cloudContract: {
5451
5591
  targetBaseSlug: z.ZodOptional<z.ZodString>;
5452
5592
  }, z.core.$strip>>;
5453
5593
  }, z.core.$strip>>;
5594
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5454
5595
  }, z.core.$strip>;
5455
5596
  headCommit: z.ZodObject<{
5456
5597
  id: z.ZodString;
@@ -5684,6 +5825,7 @@ declare const cloudContract: {
5684
5825
  targetBaseSlug: z.ZodOptional<z.ZodString>;
5685
5826
  }, z.core.$strip>>;
5686
5827
  }, z.core.$strip>>;
5828
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5687
5829
  }, z.core.$strip>>;
5688
5830
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
5689
5831
  operations: z.ZodArray<z.ZodObject<{
@@ -6117,6 +6259,7 @@ declare const cloudContract: {
6117
6259
  targetBaseSlug: z.ZodOptional<z.ZodString>;
6118
6260
  }, z.core.$strip>>;
6119
6261
  }, z.core.$strip>>;
6262
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6120
6263
  }, z.core.$strip>>;
6121
6264
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
6122
6265
  operations: z.ZodArray<z.ZodObject<{
@@ -6521,6 +6664,7 @@ declare const cloudContract: {
6521
6664
  targetBaseSlug: z.ZodOptional<z.ZodString>;
6522
6665
  }, z.core.$strip>>;
6523
6666
  }, z.core.$strip>>;
6667
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6524
6668
  }, z.core.$strip>;
6525
6669
  headCommit: z.ZodObject<{
6526
6670
  id: z.ZodString;
@@ -6599,8 +6743,10 @@ declare const cloudContract: {
6599
6743
  "drive.created": "drive.created";
6600
6744
  "field.created": "field.created";
6601
6745
  "file.created": "file.created";
6746
+ "node.agent_prompts_updated": "node.agent_prompts_updated";
6602
6747
  "node.metadata_updated": "node.metadata_updated";
6603
6748
  "node.purged": "node.purged";
6749
+ "node.settings_updated": "node.settings_updated";
6604
6750
  "record.viewed": "record.viewed";
6605
6751
  "skill.created": "skill.created";
6606
6752
  }>;
@@ -6778,6 +6924,7 @@ declare const cloudContract: {
6778
6924
  targetBaseSlug: z.ZodOptional<z.ZodString>;
6779
6925
  }, z.core.$strip>>;
6780
6926
  }, z.core.$strip>>;
6927
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6781
6928
  }, z.core.$strip>;
6782
6929
  headCommit: z.ZodObject<{
6783
6930
  id: z.ZodString;
@@ -7081,6 +7228,7 @@ declare const cloudContract: {
7081
7228
  targetBaseSlug: z.ZodOptional<z.ZodString>;
7082
7229
  }, z.core.$strip>>;
7083
7230
  }, z.core.$strip>>;
7231
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7084
7232
  }, z.core.$strip>>;
7085
7233
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
7086
7234
  operations: z.ZodArray<z.ZodObject<{
@@ -7375,7 +7523,7 @@ declare const cloudContract: {
7375
7523
  };
7376
7524
  live: {
7377
7525
  subscribe: import("@orpc/contract").ContractProcedure<import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<AsyncIteratorObject<{
7378
- kind: "change_request.created" | "change_request.deleted" | "change_request.merged" | "change_request.pending_review" | "change_request.reviewed" | "change_request.updated" | "node.metadata_updated";
7526
+ kind: "change_request.created" | "change_request.deleted" | "change_request.merged" | "change_request.pending_review" | "change_request.reviewed" | "change_request.updated" | "node.metadata_updated" | "node.settings_updated";
7379
7527
  spaceId: string;
7380
7528
  actorId: string;
7381
7529
  changeRequestId: string | null;
@@ -7385,7 +7533,7 @@ declare const cloudContract: {
7385
7533
  viewIds: string[];
7386
7534
  operationCount: number;
7387
7535
  }, unknown, void>, AsyncIteratorClass<{
7388
- kind: "change_request.created" | "change_request.deleted" | "change_request.merged" | "change_request.pending_review" | "change_request.reviewed" | "change_request.updated" | "node.metadata_updated";
7536
+ kind: "change_request.created" | "change_request.deleted" | "change_request.merged" | "change_request.pending_review" | "change_request.reviewed" | "change_request.updated" | "node.metadata_updated" | "node.settings_updated";
7389
7537
  spaceId: string;
7390
7538
  actorId: string;
7391
7539
  changeRequestId: string | null;
@@ -7523,6 +7671,7 @@ declare const cloudContract: {
7523
7671
  targetBaseSlug: z.ZodOptional<z.ZodString>;
7524
7672
  }, z.core.$strip>>;
7525
7673
  }, z.core.$strip>>;
7674
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7526
7675
  }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
7527
7676
  get: import("@orpc/contract").ContractProcedure<z.ZodObject<{
7528
7677
  baseId: z.ZodString;
@@ -7647,6 +7796,7 @@ declare const cloudContract: {
7647
7796
  targetBaseSlug: z.ZodOptional<z.ZodString>;
7648
7797
  }, z.core.$strip>>;
7649
7798
  }, z.core.$strip>>;
7799
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7650
7800
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
7651
7801
  listDeletedFields: import("@orpc/contract").ContractProcedure<z.ZodObject<{
7652
7802
  baseId: z.ZodString;
@@ -8073,6 +8223,7 @@ declare const cloudContract: {
8073
8223
  targetBaseSlug: z.ZodOptional<z.ZodString>;
8074
8224
  }, z.core.$strip>>;
8075
8225
  }, z.core.$strip>>;
8226
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8076
8227
  materialized: z.ZodLiteral<true>;
8077
8228
  }, z.core.$strip>, z.ZodObject<{
8078
8229
  id: z.ZodString;
@@ -8244,6 +8395,7 @@ declare const cloudContract: {
8244
8395
  targetBaseSlug: z.ZodOptional<z.ZodString>;
8245
8396
  }, z.core.$strip>>;
8246
8397
  }, z.core.$strip>>;
8398
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8247
8399
  }, z.core.$strip>>;
8248
8400
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
8249
8401
  operations: z.ZodArray<z.ZodObject<{
@@ -8653,6 +8805,7 @@ declare const cloudContract: {
8653
8805
  targetBaseSlug: z.ZodOptional<z.ZodString>;
8654
8806
  }, z.core.$strip>>;
8655
8807
  }, z.core.$strip>>;
8808
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8656
8809
  }, z.core.$strip>;
8657
8810
  headCommit: z.ZodObject<{
8658
8811
  id: z.ZodString;
@@ -8879,6 +9032,7 @@ declare const cloudContract: {
8879
9032
  targetBaseSlug: z.ZodOptional<z.ZodString>;
8880
9033
  }, z.core.$strip>>;
8881
9034
  }, z.core.$strip>>;
9035
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8882
9036
  }, z.core.$strip>>;
8883
9037
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
8884
9038
  operations: z.ZodArray<z.ZodObject<{
@@ -9316,6 +9470,7 @@ declare const cloudContract: {
9316
9470
  targetBaseSlug: z.ZodOptional<z.ZodString>;
9317
9471
  }, z.core.$strip>>;
9318
9472
  }, z.core.$strip>>;
9473
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9319
9474
  }, z.core.$strip>>;
9320
9475
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
9321
9476
  operations: z.ZodArray<z.ZodObject<{
@@ -9757,6 +9912,7 @@ declare const cloudContract: {
9757
9912
  targetBaseSlug: z.ZodOptional<z.ZodString>;
9758
9913
  }, z.core.$strip>>;
9759
9914
  }, z.core.$strip>>;
9915
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9760
9916
  }, z.core.$strip>>;
9761
9917
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
9762
9918
  operations: z.ZodArray<z.ZodObject<{
@@ -10244,6 +10400,7 @@ declare const cloudContract: {
10244
10400
  targetBaseSlug: z.ZodOptional<z.ZodString>;
10245
10401
  }, z.core.$strip>>;
10246
10402
  }, z.core.$strip>>;
10403
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10247
10404
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
10248
10405
  fieldChangeRequest: import("@orpc/contract").ContractProcedure<z.ZodDiscriminatedUnion<[z.ZodObject<{
10249
10406
  name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
@@ -10671,6 +10828,7 @@ declare const cloudContract: {
10671
10828
  targetBaseSlug: z.ZodOptional<z.ZodString>;
10672
10829
  }, z.core.$strip>>;
10673
10830
  }, z.core.$strip>>;
10831
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10674
10832
  }, z.core.$strip>>;
10675
10833
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
10676
10834
  operations: z.ZodArray<z.ZodObject<{
@@ -11154,6 +11312,7 @@ declare const cloudContract: {
11154
11312
  targetBaseSlug: z.ZodOptional<z.ZodString>;
11155
11313
  }, z.core.$strip>>;
11156
11314
  }, z.core.$strip>>;
11315
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11157
11316
  }, z.core.$strip>>;
11158
11317
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
11159
11318
  operations: z.ZodArray<z.ZodObject<{
@@ -11637,6 +11796,7 @@ declare const cloudContract: {
11637
11796
  targetBaseSlug: z.ZodOptional<z.ZodString>;
11638
11797
  }, z.core.$strip>>;
11639
11798
  }, z.core.$strip>>;
11799
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11640
11800
  }, z.core.$strip>>;
11641
11801
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
11642
11802
  operations: z.ZodArray<z.ZodObject<{
@@ -12150,6 +12310,7 @@ declare const cloudContract: {
12150
12310
  targetBaseSlug: z.ZodOptional<z.ZodString>;
12151
12311
  }, z.core.$strip>>;
12152
12312
  }, z.core.$strip>>;
12313
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12153
12314
  }, z.core.$strip>>;
12154
12315
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
12155
12316
  operations: z.ZodArray<z.ZodObject<{
@@ -12415,11 +12576,10 @@ declare const cloudContract: {
12415
12576
  nodeId: z.ZodString;
12416
12577
  files: z.ZodRecord<z.ZodString, z.ZodString>;
12417
12578
  binaryFiles: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
12418
- engine: z.ZodDefault<z.ZodEnum<{
12579
+ engine: z.ZodEnum<{
12419
12580
  local: "local";
12420
- sandock: "sandock";
12421
- srt: "srt";
12422
- }>>;
12581
+ remote: "remote";
12582
+ }>;
12423
12583
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
12424
12584
  type: "log";
12425
12585
  line: string;
@@ -12659,6 +12819,7 @@ declare const cloudContract: {
12659
12819
  targetBaseSlug: z.ZodOptional<z.ZodString>;
12660
12820
  }, z.core.$strip>>;
12661
12821
  }, z.core.$strip>>;
12822
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12662
12823
  }, z.core.$strip>>;
12663
12824
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
12664
12825
  operations: z.ZodArray<z.ZodObject<{
@@ -13103,6 +13264,7 @@ declare const cloudContract: {
13103
13264
  targetBaseSlug: z.ZodOptional<z.ZodString>;
13104
13265
  }, z.core.$strip>>;
13105
13266
  }, z.core.$strip>>;
13267
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13106
13268
  }, z.core.$strip>>;
13107
13269
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
13108
13270
  operations: z.ZodArray<z.ZodObject<{
@@ -14169,6 +14331,7 @@ declare const cloudContract: {
14169
14331
  targetBaseSlug: z.ZodOptional<z.ZodString>;
14170
14332
  }, z.core.$strip>>;
14171
14333
  }, z.core.$strip>>;
14334
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14172
14335
  }, z.core.$strip>>;
14173
14336
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
14174
14337
  operations: z.ZodArray<z.ZodObject<{
@@ -15125,8 +15288,17 @@ declare const cloudContract: {
15125
15288
  textContentHash: z.ZodNullable<z.ZodString>;
15126
15289
  byteCount: z.ZodNumber;
15127
15290
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
15291
+ exportDocBodies: import("@orpc/contract").ContractProcedure<z.ZodObject<{
15292
+ nodeIds: z.ZodArray<z.ZodString>;
15293
+ }, z.core.$strip>, z.ZodObject<{
15294
+ bodies: z.ZodArray<z.ZodObject<{
15295
+ nodeId: z.ZodString;
15296
+ markdown: z.ZodString;
15297
+ }, z.core.$strip>>;
15298
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
15128
15299
  importBegin: import("@orpc/contract").ContractProcedure<z.ZodObject<{
15129
15300
  sourceSpaceId: z.ZodString;
15301
+ resume: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15130
15302
  }, z.core.$strip>, z.ZodObject<{
15131
15303
  sessionId: z.ZodString;
15132
15304
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
@@ -15497,6 +15669,7 @@ declare const cloudContract: {
15497
15669
  targetBaseSlug: z.ZodOptional<z.ZodString>;
15498
15670
  }, z.core.$strip>>;
15499
15671
  }, z.core.$strip>>;
15672
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15500
15673
  }, z.core.$strip>>;
15501
15674
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
15502
15675
  operations: z.ZodArray<z.ZodObject<{
@@ -15943,6 +16116,7 @@ declare const cloudContract: {
15943
16116
  targetBaseSlug: z.ZodOptional<z.ZodString>;
15944
16117
  }, z.core.$strip>>;
15945
16118
  }, z.core.$strip>>;
16119
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15946
16120
  }, z.core.$strip>>;
15947
16121
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
15948
16122
  operations: z.ZodArray<z.ZodObject<{
@@ -16391,6 +16565,7 @@ declare const cloudContract: {
16391
16565
  targetBaseSlug: z.ZodOptional<z.ZodString>;
16392
16566
  }, z.core.$strip>>;
16393
16567
  }, z.core.$strip>>;
16568
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16394
16569
  }, z.core.$strip>>;
16395
16570
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
16396
16571
  operations: z.ZodArray<z.ZodObject<{
@@ -16843,6 +17018,7 @@ declare const cloudContract: {
16843
17018
  targetBaseSlug: z.ZodOptional<z.ZodString>;
16844
17019
  }, z.core.$strip>>;
16845
17020
  }, z.core.$strip>>;
17021
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16846
17022
  }, z.core.$strip>>;
16847
17023
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
16848
17024
  operations: z.ZodArray<z.ZodObject<{
@@ -17284,6 +17460,7 @@ declare const cloudContract: {
17284
17460
  targetBaseSlug: z.ZodOptional<z.ZodString>;
17285
17461
  }, z.core.$strip>>;
17286
17462
  }, z.core.$strip>>;
17463
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17287
17464
  }, z.core.$strip>>;
17288
17465
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
17289
17466
  operations: z.ZodArray<z.ZodObject<{
@@ -17724,6 +17901,7 @@ declare const cloudContract: {
17724
17901
  targetBaseSlug: z.ZodOptional<z.ZodString>;
17725
17902
  }, z.core.$strip>>;
17726
17903
  }, z.core.$strip>>;
17904
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17727
17905
  }, z.core.$strip>>;
17728
17906
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
17729
17907
  operations: z.ZodArray<z.ZodObject<{
@@ -18160,6 +18338,7 @@ declare const cloudContract: {
18160
18338
  targetBaseSlug: z.ZodOptional<z.ZodString>;
18161
18339
  }, z.core.$strip>>;
18162
18340
  }, z.core.$strip>>;
18341
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
18163
18342
  }, z.core.$strip>>;
18164
18343
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
18165
18344
  operations: z.ZodArray<z.ZodObject<{
@@ -18561,6 +18740,7 @@ declare const cloudContract: {
18561
18740
  targetBaseSlug: z.ZodOptional<z.ZodString>;
18562
18741
  }, z.core.$strip>>;
18563
18742
  }, z.core.$strip>>;
18743
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
18564
18744
  }, z.core.$strip>;
18565
18745
  headCommit: z.ZodObject<{
18566
18746
  id: z.ZodString;
@@ -18876,6 +19056,7 @@ declare const cloudContract: {
18876
19056
  targetBaseSlug: z.ZodOptional<z.ZodString>;
18877
19057
  }, z.core.$strip>>;
18878
19058
  }, z.core.$strip>>;
19059
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
18879
19060
  }, z.core.$strip>>;
18880
19061
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
18881
19062
  operations: z.ZodArray<z.ZodObject<{
@@ -19309,6 +19490,7 @@ declare const cloudContract: {
19309
19490
  targetBaseSlug: z.ZodOptional<z.ZodString>;
19310
19491
  }, z.core.$strip>>;
19311
19492
  }, z.core.$strip>>;
19493
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
19312
19494
  }, z.core.$strip>;
19313
19495
  headCommit: z.ZodObject<{
19314
19496
  id: z.ZodString;
@@ -19370,6 +19552,24 @@ declare const cloudContract: {
19370
19552
  listPage: import("@orpc/contract").ContractProcedure<z.ZodObject<{
19371
19553
  baseId: z.ZodString;
19372
19554
  viewId: z.ZodOptional<z.ZodString>;
19555
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
19556
+ fieldSlug: z.ZodString;
19557
+ fieldType: z.ZodOptional<z.ZodString>;
19558
+ operator: z.ZodEnum<{
19559
+ contains: "contains";
19560
+ equals: "equals";
19561
+ is_empty: "is_empty";
19562
+ is_false: "is_false";
19563
+ is_true: "is_true";
19564
+ not_empty: "not_empty";
19565
+ }>;
19566
+ value: z.ZodOptional<z.ZodUnknown>;
19567
+ }, z.core.$strip>>>;
19568
+ dateRange: z.ZodOptional<z.ZodObject<{
19569
+ fieldSlug: z.ZodString;
19570
+ gte: z.ZodString;
19571
+ lt: z.ZodString;
19572
+ }, z.core.$strip>>;
19373
19573
  page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
19374
19574
  pageSize: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
19375
19575
  }, z.core.$strip>, z.ZodObject<{
@@ -19515,6 +19715,7 @@ declare const cloudContract: {
19515
19715
  targetBaseSlug: z.ZodOptional<z.ZodString>;
19516
19716
  }, z.core.$strip>>;
19517
19717
  }, z.core.$strip>>;
19718
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
19518
19719
  }, z.core.$strip>;
19519
19720
  headCommit: z.ZodObject<{
19520
19721
  id: z.ZodString;
@@ -19595,6 +19796,39 @@ declare const cloudContract: {
19595
19796
  }, z.core.$strip>>>, z.ZodObject<{
19596
19797
  total: z.ZodNumber;
19597
19798
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
19799
+ groupBy: import("@orpc/contract").ContractProcedure<z.ZodObject<{
19800
+ baseId: z.ZodString;
19801
+ fieldSlug: z.ZodString;
19802
+ viewId: z.ZodOptional<z.ZodString>;
19803
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
19804
+ fieldSlug: z.ZodString;
19805
+ fieldType: z.ZodOptional<z.ZodString>;
19806
+ operator: z.ZodEnum<{
19807
+ contains: "contains";
19808
+ equals: "equals";
19809
+ is_empty: "is_empty";
19810
+ is_false: "is_false";
19811
+ is_true: "is_true";
19812
+ not_empty: "not_empty";
19813
+ }>;
19814
+ value: z.ZodOptional<z.ZodUnknown>;
19815
+ }, z.core.$strip>>>;
19816
+ }, z.core.$strip>, z.ZodObject<{
19817
+ groups: z.ZodArray<z.ZodObject<{
19818
+ value: z.ZodNullable<z.ZodString>;
19819
+ count: z.ZodNumber;
19820
+ }, z.core.$strip>>;
19821
+ total: z.ZodNumber;
19822
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
19823
+ BAD_REQUEST: {
19824
+ status: number;
19825
+ message: string;
19826
+ };
19827
+ NOT_FOUND: {
19828
+ status: number;
19829
+ message: string;
19830
+ };
19831
+ }>>, Record<never, never>>;
19598
19832
  get: import("@orpc/contract").ContractProcedure<z.ZodUnion<readonly [z.ZodObject<{
19599
19833
  recordId: z.ZodString;
19600
19834
  }, z.core.$strict>, z.ZodObject<{
@@ -19743,6 +19977,7 @@ declare const cloudContract: {
19743
19977
  targetBaseSlug: z.ZodOptional<z.ZodString>;
19744
19978
  }, z.core.$strip>>;
19745
19979
  }, z.core.$strip>>;
19980
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
19746
19981
  }, z.core.$strip>;
19747
19982
  headCommit: z.ZodObject<{
19748
19983
  id: z.ZodString;
@@ -19955,6 +20190,7 @@ declare const cloudContract: {
19955
20190
  targetBaseSlug: z.ZodOptional<z.ZodString>;
19956
20191
  }, z.core.$strip>>;
19957
20192
  }, z.core.$strip>>;
20193
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
19958
20194
  }, z.core.$strip>;
19959
20195
  headCommit: z.ZodObject<{
19960
20196
  id: z.ZodString;
@@ -20176,6 +20412,7 @@ declare const cloudContract: {
20176
20412
  targetBaseSlug: z.ZodOptional<z.ZodString>;
20177
20413
  }, z.core.$strip>>;
20178
20414
  }, z.core.$strip>>;
20415
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
20179
20416
  }, z.core.$strip>;
20180
20417
  headCommit: z.ZodObject<{
20181
20418
  id: z.ZodString;
@@ -20402,6 +20639,7 @@ declare const cloudContract: {
20402
20639
  targetBaseSlug: z.ZodOptional<z.ZodString>;
20403
20640
  }, z.core.$strip>>;
20404
20641
  }, z.core.$strip>>;
20642
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
20405
20643
  }, z.core.$strip>>;
20406
20644
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
20407
20645
  operations: z.ZodArray<z.ZodObject<{
@@ -20834,6 +21072,7 @@ declare const cloudContract: {
20834
21072
  targetBaseSlug: z.ZodOptional<z.ZodString>;
20835
21073
  }, z.core.$strip>>;
20836
21074
  }, z.core.$strip>>;
21075
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
20837
21076
  }, z.core.$strip>>;
20838
21077
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
20839
21078
  operations: z.ZodArray<z.ZodObject<{
@@ -21484,6 +21723,7 @@ declare const cloudContract: {
21484
21723
  targetBaseSlug: z.ZodOptional<z.ZodString>;
21485
21724
  }, z.core.$strip>>;
21486
21725
  }, z.core.$strip>>;
21726
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
21487
21727
  }, z.core.$strip>>;
21488
21728
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
21489
21729
  operations: z.ZodArray<z.ZodObject<{
@@ -22137,6 +22377,16 @@ interface BaseVO {
22137
22377
  };
22138
22378
  createdAt: string;
22139
22379
  fields: BaseFieldVO[];
22380
+ /**
22381
+ * The owning node's own `metadata` (from `busabase_nodes.metadata`, NOT a
22382
+ * `busabase_bases` column) — carried here so a Base-only caller (e.g. the
22383
+ * Agent Prompts dialog reached from `BaseDetailHeader`, which only has a
22384
+ * `BaseVO` on hand) can read `metadata.agentPrompts` the same way every
22385
+ * other node type's `NodeVO.metadata` already does. Kept as
22386
+ * `Record<string, unknown>` to match `NodeVO.metadata` and
22387
+ * `NodePromptContext.metadata` rather than inventing a narrower type.
22388
+ */
22389
+ metadata: Record<string, unknown>;
22140
22390
  }
22141
22391
  type ViewFilterOperator = "contains" | "equals" | "not_empty" | "is_empty" | "is_true" | "is_false";
22142
22392
  interface ViewFilterVO {
@@ -22755,6 +23005,7 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
22755
23005
  targetBaseSlug: z.ZodOptional<z.ZodString>;
22756
23006
  }, z.core.$strip>>;
22757
23007
  }, z.core.$strip>>;
23008
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22758
23009
  }, z.core.$strip>>;
22759
23010
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
22760
23011
  operations: z.ZodArray<z.ZodObject<{
@@ -23188,6 +23439,7 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
23188
23439
  targetBaseSlug: z.ZodOptional<z.ZodString>;
23189
23440
  }, z.core.$strip>>;
23190
23441
  }, z.core.$strip>>;
23442
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
23191
23443
  }, z.core.$strip>>;
23192
23444
  node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
23193
23445
  operations: z.ZodArray<z.ZodObject<{
@@ -23592,6 +23844,7 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
23592
23844
  targetBaseSlug: z.ZodOptional<z.ZodString>;
23593
23845
  }, z.core.$strip>>;
23594
23846
  }, z.core.$strip>>;
23847
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
23595
23848
  }, z.core.$strip>;
23596
23849
  headCommit: z.ZodObject<{
23597
23850
  id: z.ZodString;
@@ -23670,8 +23923,10 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
23670
23923
  "drive.created": "drive.created";
23671
23924
  "field.created": "field.created";
23672
23925
  "file.created": "file.created";
23926
+ "node.agent_prompts_updated": "node.agent_prompts_updated";
23673
23927
  "node.metadata_updated": "node.metadata_updated";
23674
23928
  "node.purged": "node.purged";
23929
+ "node.settings_updated": "node.settings_updated";
23675
23930
  "record.viewed": "record.viewed";
23676
23931
  "skill.created": "skill.created";
23677
23932
  }>;
@@ -23849,6 +24104,7 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
23849
24104
  targetBaseSlug: z.ZodOptional<z.ZodString>;
23850
24105
  }, z.core.$strip>>;
23851
24106
  }, z.core.$strip>>;
24107
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
23852
24108
  }, z.core.$strip>;
23853
24109
  headCommit: z.ZodObject<{
23854
24110
  id: z.ZodString;
@@ -24624,7 +24880,7 @@ type BusabaseSourceChannel = "web_ui" | "browser" | "openapi" | "sdk" | "cli" |
24624
24880
  type ReviewVerdict = "approved" | "rejected";
24625
24881
  type SearchResultKind = "record" | "change_request" | "base" | "file" | "node";
24626
24882
  type CommentSubjectType = "record" | "change_request" | "operation" | "commit";
24627
- type AuditAction = "record.viewed" | "change_request.created" | "change_request.updated" | "change_request.deleted" | "change_request.reviewed" | "change_request.merged" | "base.created" | "field.created" | "doc.created" | "doc.updated" | "file.created" | "skill.created" | "drive.created" | "airapp.created" | "asset.deleted" | "asset.metadata_updated" | "asset.text_written" | "asset.text_marked_none" | "node.metadata_updated" | "node.purged";
24883
+ type AuditAction = "record.viewed" | "change_request.created" | "change_request.updated" | "change_request.deleted" | "change_request.reviewed" | "change_request.merged" | "base.created" | "field.created" | "doc.created" | "doc.updated" | "file.created" | "skill.created" | "drive.created" | "airapp.created" | "asset.deleted" | "asset.metadata_updated" | "asset.text_written" | "asset.text_marked_none" | "node.metadata_updated" | "node.settings_updated" | "node.agent_prompts_updated" | "node.purged";
24628
24884
  interface UserRefVO {
24629
24885
  id: string;
24630
24886
  name: string | null;
@@ -24669,6 +24925,19 @@ interface NodeVO {
24669
24925
  metadata: Record<string, unknown> & {
24670
24926
  version?: string;
24671
24927
  };
24928
+ /**
24929
+ * System settings the product DOES read and act on — the opposite of
24930
+ * `metadata` above, which is why they are separate fields with separate
24931
+ * endpoints. Written only by `PATCH /nodes/{nodeId}/settings`, whose input is
24932
+ * a closed schema; the generic metadata endpoint cannot address it.
24933
+ *
24934
+ * Absent (or an absent key) means "unset". For an AirApp's engine that means
24935
+ * "follow the app" — `airapp.json` decides — which is why absence has to stay
24936
+ * distinguishable from any particular value.
24937
+ */
24938
+ settings?: {
24939
+ airappEngine?: "browser" | "local" | "remote" | null;
24940
+ };
24672
24941
  /**
24673
24942
  * This node's OWN declared visibility, or null when it inherits from its
24674
24943
  * ancestors. A real column rather than a metadata key, because it is the node