busa-sdk 0.19.2 → 0.20.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.
@@ -752,6 +752,22 @@ declare const cloudContract: {
752
752
  image: z.ZodNullable<z.ZodString>;
753
753
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
754
754
  }, z.core.$strip>>>>;
755
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
756
+ displayName: z.ZodNullable<z.ZodString>;
757
+ ownerName: z.ZodNullable<z.ZodString>;
758
+ channel: z.ZodNullable<z.ZodEnum<{
759
+ automation: "automation";
760
+ browser: "browser";
761
+ cli: "cli";
762
+ import: "import";
763
+ mcp: "mcp";
764
+ openapi: "openapi";
765
+ sdk: "sdk";
766
+ skill: "skill";
767
+ web_ui: "web_ui";
768
+ webhook: "webhook";
769
+ }>>;
770
+ }, z.core.$strip>>>;
755
771
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
756
772
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
757
773
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -1171,6 +1187,22 @@ declare const cloudContract: {
1171
1187
  image: z.ZodNullable<z.ZodString>;
1172
1188
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1173
1189
  }, z.core.$strip>>>>;
1190
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1191
+ displayName: z.ZodNullable<z.ZodString>;
1192
+ ownerName: z.ZodNullable<z.ZodString>;
1193
+ channel: z.ZodNullable<z.ZodEnum<{
1194
+ automation: "automation";
1195
+ browser: "browser";
1196
+ cli: "cli";
1197
+ import: "import";
1198
+ mcp: "mcp";
1199
+ openapi: "openapi";
1200
+ sdk: "sdk";
1201
+ skill: "skill";
1202
+ web_ui: "web_ui";
1203
+ webhook: "webhook";
1204
+ }>>;
1205
+ }, z.core.$strip>>>;
1174
1206
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1175
1207
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1176
1208
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -1728,6 +1760,22 @@ declare const cloudContract: {
1728
1760
  image: z.ZodNullable<z.ZodString>;
1729
1761
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1730
1762
  }, z.core.$strip>>>>;
1763
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1764
+ displayName: z.ZodNullable<z.ZodString>;
1765
+ ownerName: z.ZodNullable<z.ZodString>;
1766
+ channel: z.ZodNullable<z.ZodEnum<{
1767
+ automation: "automation";
1768
+ browser: "browser";
1769
+ cli: "cli";
1770
+ import: "import";
1771
+ mcp: "mcp";
1772
+ openapi: "openapi";
1773
+ sdk: "sdk";
1774
+ skill: "skill";
1775
+ web_ui: "web_ui";
1776
+ webhook: "webhook";
1777
+ }>>;
1778
+ }, z.core.$strip>>>;
1731
1779
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1732
1780
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1733
1781
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -2660,6 +2708,22 @@ declare const cloudContract: {
2660
2708
  image: z.ZodNullable<z.ZodString>;
2661
2709
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2662
2710
  }, z.core.$strip>>>>;
2711
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2712
+ displayName: z.ZodNullable<z.ZodString>;
2713
+ ownerName: z.ZodNullable<z.ZodString>;
2714
+ channel: z.ZodNullable<z.ZodEnum<{
2715
+ automation: "automation";
2716
+ browser: "browser";
2717
+ cli: "cli";
2718
+ import: "import";
2719
+ mcp: "mcp";
2720
+ openapi: "openapi";
2721
+ sdk: "sdk";
2722
+ skill: "skill";
2723
+ web_ui: "web_ui";
2724
+ webhook: "webhook";
2725
+ }>>;
2726
+ }, z.core.$strip>>>;
2663
2727
  baseId: z.ZodNullable<z.ZodString>;
2664
2728
  recordId: z.ZodNullable<z.ZodString>;
2665
2729
  changeRequestId: z.ZodNullable<z.ZodString>;
@@ -2730,6 +2794,22 @@ declare const cloudContract: {
2730
2794
  image: z.ZodNullable<z.ZodString>;
2731
2795
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2732
2796
  }, z.core.$strip>>>>;
2797
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2798
+ displayName: z.ZodNullable<z.ZodString>;
2799
+ ownerName: z.ZodNullable<z.ZodString>;
2800
+ channel: z.ZodNullable<z.ZodEnum<{
2801
+ automation: "automation";
2802
+ browser: "browser";
2803
+ cli: "cli";
2804
+ import: "import";
2805
+ mcp: "mcp";
2806
+ openapi: "openapi";
2807
+ sdk: "sdk";
2808
+ skill: "skill";
2809
+ web_ui: "web_ui";
2810
+ webhook: "webhook";
2811
+ }>>;
2812
+ }, z.core.$strip>>>;
2733
2813
  baseId: z.ZodNullable<z.ZodString>;
2734
2814
  recordId: z.ZodNullable<z.ZodString>;
2735
2815
  changeRequestId: z.ZodNullable<z.ZodString>;
@@ -2772,6 +2852,22 @@ declare const cloudContract: {
2772
2852
  image: z.ZodNullable<z.ZodString>;
2773
2853
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2774
2854
  }, z.core.$strip>>>>;
2855
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2856
+ displayName: z.ZodNullable<z.ZodString>;
2857
+ ownerName: z.ZodNullable<z.ZodString>;
2858
+ channel: z.ZodNullable<z.ZodEnum<{
2859
+ automation: "automation";
2860
+ browser: "browser";
2861
+ cli: "cli";
2862
+ import: "import";
2863
+ mcp: "mcp";
2864
+ openapi: "openapi";
2865
+ sdk: "sdk";
2866
+ skill: "skill";
2867
+ web_ui: "web_ui";
2868
+ webhook: "webhook";
2869
+ }>>;
2870
+ }, z.core.$strip>>>;
2775
2871
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2776
2872
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2777
2873
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -3189,6 +3285,22 @@ declare const cloudContract: {
3189
3285
  image: z.ZodNullable<z.ZodString>;
3190
3286
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3191
3287
  }, z.core.$strip>>>>;
3288
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3289
+ displayName: z.ZodNullable<z.ZodString>;
3290
+ ownerName: z.ZodNullable<z.ZodString>;
3291
+ channel: z.ZodNullable<z.ZodEnum<{
3292
+ automation: "automation";
3293
+ browser: "browser";
3294
+ cli: "cli";
3295
+ import: "import";
3296
+ mcp: "mcp";
3297
+ openapi: "openapi";
3298
+ sdk: "sdk";
3299
+ skill: "skill";
3300
+ web_ui: "web_ui";
3301
+ webhook: "webhook";
3302
+ }>>;
3303
+ }, z.core.$strip>>>;
3192
3304
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3193
3305
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3194
3306
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -3813,6 +3925,22 @@ declare const cloudContract: {
3813
3925
  image: z.ZodNullable<z.ZodString>;
3814
3926
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3815
3927
  }, z.core.$strip>>>>;
3928
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3929
+ displayName: z.ZodNullable<z.ZodString>;
3930
+ ownerName: z.ZodNullable<z.ZodString>;
3931
+ channel: z.ZodNullable<z.ZodEnum<{
3932
+ automation: "automation";
3933
+ browser: "browser";
3934
+ cli: "cli";
3935
+ import: "import";
3936
+ mcp: "mcp";
3937
+ openapi: "openapi";
3938
+ sdk: "sdk";
3939
+ skill: "skill";
3940
+ web_ui: "web_ui";
3941
+ webhook: "webhook";
3942
+ }>>;
3943
+ }, z.core.$strip>>>;
3816
3944
  baseId: z.ZodNullable<z.ZodString>;
3817
3945
  recordId: z.ZodNullable<z.ZodString>;
3818
3946
  changeRequestId: z.ZodNullable<z.ZodString>;
@@ -4053,6 +4181,22 @@ declare const cloudContract: {
4053
4181
  image: z.ZodNullable<z.ZodString>;
4054
4182
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4055
4183
  }, z.core.$strip>>>>;
4184
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4185
+ displayName: z.ZodNullable<z.ZodString>;
4186
+ ownerName: z.ZodNullable<z.ZodString>;
4187
+ channel: z.ZodNullable<z.ZodEnum<{
4188
+ automation: "automation";
4189
+ browser: "browser";
4190
+ cli: "cli";
4191
+ import: "import";
4192
+ mcp: "mcp";
4193
+ openapi: "openapi";
4194
+ sdk: "sdk";
4195
+ skill: "skill";
4196
+ web_ui: "web_ui";
4197
+ webhook: "webhook";
4198
+ }>>;
4199
+ }, z.core.$strip>>>;
4056
4200
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4057
4201
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4058
4202
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -4470,6 +4614,22 @@ declare const cloudContract: {
4470
4614
  image: z.ZodNullable<z.ZodString>;
4471
4615
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4472
4616
  }, z.core.$strip>>>>;
4617
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4618
+ displayName: z.ZodNullable<z.ZodString>;
4619
+ ownerName: z.ZodNullable<z.ZodString>;
4620
+ channel: z.ZodNullable<z.ZodEnum<{
4621
+ automation: "automation";
4622
+ browser: "browser";
4623
+ cli: "cli";
4624
+ import: "import";
4625
+ mcp: "mcp";
4626
+ openapi: "openapi";
4627
+ sdk: "sdk";
4628
+ skill: "skill";
4629
+ web_ui: "web_ui";
4630
+ webhook: "webhook";
4631
+ }>>;
4632
+ }, z.core.$strip>>>;
4473
4633
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4474
4634
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4475
4635
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -5094,6 +5254,22 @@ declare const cloudContract: {
5094
5254
  image: z.ZodNullable<z.ZodString>;
5095
5255
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5096
5256
  }, z.core.$strip>>>>;
5257
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5258
+ displayName: z.ZodNullable<z.ZodString>;
5259
+ ownerName: z.ZodNullable<z.ZodString>;
5260
+ channel: z.ZodNullable<z.ZodEnum<{
5261
+ automation: "automation";
5262
+ browser: "browser";
5263
+ cli: "cli";
5264
+ import: "import";
5265
+ mcp: "mcp";
5266
+ openapi: "openapi";
5267
+ sdk: "sdk";
5268
+ skill: "skill";
5269
+ web_ui: "web_ui";
5270
+ webhook: "webhook";
5271
+ }>>;
5272
+ }, z.core.$strip>>>;
5097
5273
  baseId: z.ZodNullable<z.ZodString>;
5098
5274
  recordId: z.ZodNullable<z.ZodString>;
5099
5275
  changeRequestId: z.ZodNullable<z.ZodString>;
@@ -5332,6 +5508,22 @@ declare const cloudContract: {
5332
5508
  image: z.ZodNullable<z.ZodString>;
5333
5509
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5334
5510
  }, z.core.$strip>>>>;
5511
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5512
+ displayName: z.ZodNullable<z.ZodString>;
5513
+ ownerName: z.ZodNullable<z.ZodString>;
5514
+ channel: z.ZodNullable<z.ZodEnum<{
5515
+ automation: "automation";
5516
+ browser: "browser";
5517
+ cli: "cli";
5518
+ import: "import";
5519
+ mcp: "mcp";
5520
+ openapi: "openapi";
5521
+ sdk: "sdk";
5522
+ skill: "skill";
5523
+ web_ui: "web_ui";
5524
+ webhook: "webhook";
5525
+ }>>;
5526
+ }, z.core.$strip>>>;
5335
5527
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5336
5528
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5337
5529
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -5749,6 +5941,22 @@ declare const cloudContract: {
5749
5941
  image: z.ZodNullable<z.ZodString>;
5750
5942
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5751
5943
  }, z.core.$strip>>>>;
5944
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5945
+ displayName: z.ZodNullable<z.ZodString>;
5946
+ ownerName: z.ZodNullable<z.ZodString>;
5947
+ channel: z.ZodNullable<z.ZodEnum<{
5948
+ automation: "automation";
5949
+ browser: "browser";
5950
+ cli: "cli";
5951
+ import: "import";
5952
+ mcp: "mcp";
5953
+ openapi: "openapi";
5954
+ sdk: "sdk";
5955
+ skill: "skill";
5956
+ web_ui: "web_ui";
5957
+ webhook: "webhook";
5958
+ }>>;
5959
+ }, z.core.$strip>>>;
5752
5960
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5753
5961
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5754
5962
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -6373,6 +6581,22 @@ declare const cloudContract: {
6373
6581
  image: z.ZodNullable<z.ZodString>;
6374
6582
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6375
6583
  }, z.core.$strip>>>>;
6584
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6585
+ displayName: z.ZodNullable<z.ZodString>;
6586
+ ownerName: z.ZodNullable<z.ZodString>;
6587
+ channel: z.ZodNullable<z.ZodEnum<{
6588
+ automation: "automation";
6589
+ browser: "browser";
6590
+ cli: "cli";
6591
+ import: "import";
6592
+ mcp: "mcp";
6593
+ openapi: "openapi";
6594
+ sdk: "sdk";
6595
+ skill: "skill";
6596
+ web_ui: "web_ui";
6597
+ webhook: "webhook";
6598
+ }>>;
6599
+ }, z.core.$strip>>>;
6376
6600
  baseId: z.ZodNullable<z.ZodString>;
6377
6601
  recordId: z.ZodNullable<z.ZodString>;
6378
6602
  changeRequestId: z.ZodNullable<z.ZodString>;
@@ -6681,6 +6905,22 @@ declare const cloudContract: {
6681
6905
  image: z.ZodNullable<z.ZodString>;
6682
6906
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6683
6907
  }, z.core.$strip>>>>;
6908
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6909
+ displayName: z.ZodNullable<z.ZodString>;
6910
+ ownerName: z.ZodNullable<z.ZodString>;
6911
+ channel: z.ZodNullable<z.ZodEnum<{
6912
+ automation: "automation";
6913
+ browser: "browser";
6914
+ cli: "cli";
6915
+ import: "import";
6916
+ mcp: "mcp";
6917
+ openapi: "openapi";
6918
+ sdk: "sdk";
6919
+ skill: "skill";
6920
+ web_ui: "web_ui";
6921
+ webhook: "webhook";
6922
+ }>>;
6923
+ }, z.core.$strip>>>;
6684
6924
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6685
6925
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6686
6926
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -7828,6 +8068,22 @@ declare const cloudContract: {
7828
8068
  image: z.ZodNullable<z.ZodString>;
7829
8069
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7830
8070
  }, z.core.$strip>>>>;
8071
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8072
+ displayName: z.ZodNullable<z.ZodString>;
8073
+ ownerName: z.ZodNullable<z.ZodString>;
8074
+ channel: z.ZodNullable<z.ZodEnum<{
8075
+ automation: "automation";
8076
+ browser: "browser";
8077
+ cli: "cli";
8078
+ import: "import";
8079
+ mcp: "mcp";
8080
+ openapi: "openapi";
8081
+ sdk: "sdk";
8082
+ skill: "skill";
8083
+ web_ui: "web_ui";
8084
+ webhook: "webhook";
8085
+ }>>;
8086
+ }, z.core.$strip>>>;
7831
8087
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7832
8088
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7833
8089
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -8447,6 +8703,22 @@ declare const cloudContract: {
8447
8703
  image: z.ZodNullable<z.ZodString>;
8448
8704
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8449
8705
  }, z.core.$strip>>>>;
8706
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8707
+ displayName: z.ZodNullable<z.ZodString>;
8708
+ ownerName: z.ZodNullable<z.ZodString>;
8709
+ channel: z.ZodNullable<z.ZodEnum<{
8710
+ automation: "automation";
8711
+ browser: "browser";
8712
+ cli: "cli";
8713
+ import: "import";
8714
+ mcp: "mcp";
8715
+ openapi: "openapi";
8716
+ sdk: "sdk";
8717
+ skill: "skill";
8718
+ web_ui: "web_ui";
8719
+ webhook: "webhook";
8720
+ }>>;
8721
+ }, z.core.$strip>>>;
8450
8722
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8451
8723
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8452
8724
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -8868,6 +9140,22 @@ declare const cloudContract: {
8868
9140
  image: z.ZodNullable<z.ZodString>;
8869
9141
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8870
9142
  }, z.core.$strip>>>>;
9143
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9144
+ displayName: z.ZodNullable<z.ZodString>;
9145
+ ownerName: z.ZodNullable<z.ZodString>;
9146
+ channel: z.ZodNullable<z.ZodEnum<{
9147
+ automation: "automation";
9148
+ browser: "browser";
9149
+ cli: "cli";
9150
+ import: "import";
9151
+ mcp: "mcp";
9152
+ openapi: "openapi";
9153
+ sdk: "sdk";
9154
+ skill: "skill";
9155
+ web_ui: "web_ui";
9156
+ webhook: "webhook";
9157
+ }>>;
9158
+ }, z.core.$strip>>>;
8871
9159
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8872
9160
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8873
9161
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -9293,6 +9581,22 @@ declare const cloudContract: {
9293
9581
  image: z.ZodNullable<z.ZodString>;
9294
9582
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9295
9583
  }, z.core.$strip>>>>;
9584
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9585
+ displayName: z.ZodNullable<z.ZodString>;
9586
+ ownerName: z.ZodNullable<z.ZodString>;
9587
+ channel: z.ZodNullable<z.ZodEnum<{
9588
+ automation: "automation";
9589
+ browser: "browser";
9590
+ cli: "cli";
9591
+ import: "import";
9592
+ mcp: "mcp";
9593
+ openapi: "openapi";
9594
+ sdk: "sdk";
9595
+ skill: "skill";
9596
+ web_ui: "web_ui";
9597
+ webhook: "webhook";
9598
+ }>>;
9599
+ }, z.core.$strip>>>;
9296
9600
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9297
9601
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9298
9602
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -10191,6 +10495,22 @@ declare const cloudContract: {
10191
10495
  image: z.ZodNullable<z.ZodString>;
10192
10496
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10193
10497
  }, z.core.$strip>>>>;
10498
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10499
+ displayName: z.ZodNullable<z.ZodString>;
10500
+ ownerName: z.ZodNullable<z.ZodString>;
10501
+ channel: z.ZodNullable<z.ZodEnum<{
10502
+ automation: "automation";
10503
+ browser: "browser";
10504
+ cli: "cli";
10505
+ import: "import";
10506
+ mcp: "mcp";
10507
+ openapi: "openapi";
10508
+ sdk: "sdk";
10509
+ skill: "skill";
10510
+ web_ui: "web_ui";
10511
+ webhook: "webhook";
10512
+ }>>;
10513
+ }, z.core.$strip>>>;
10194
10514
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10195
10515
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10196
10516
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -10658,6 +10978,22 @@ declare const cloudContract: {
10658
10978
  image: z.ZodNullable<z.ZodString>;
10659
10979
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10660
10980
  }, z.core.$strip>>>>;
10981
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10982
+ displayName: z.ZodNullable<z.ZodString>;
10983
+ ownerName: z.ZodNullable<z.ZodString>;
10984
+ channel: z.ZodNullable<z.ZodEnum<{
10985
+ automation: "automation";
10986
+ browser: "browser";
10987
+ cli: "cli";
10988
+ import: "import";
10989
+ mcp: "mcp";
10990
+ openapi: "openapi";
10991
+ sdk: "sdk";
10992
+ skill: "skill";
10993
+ web_ui: "web_ui";
10994
+ webhook: "webhook";
10995
+ }>>;
10996
+ }, z.core.$strip>>>;
10661
10997
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10662
10998
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10663
10999
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -11125,6 +11461,22 @@ declare const cloudContract: {
11125
11461
  image: z.ZodNullable<z.ZodString>;
11126
11462
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11127
11463
  }, z.core.$strip>>>>;
11464
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11465
+ displayName: z.ZodNullable<z.ZodString>;
11466
+ ownerName: z.ZodNullable<z.ZodString>;
11467
+ channel: z.ZodNullable<z.ZodEnum<{
11468
+ automation: "automation";
11469
+ browser: "browser";
11470
+ cli: "cli";
11471
+ import: "import";
11472
+ mcp: "mcp";
11473
+ openapi: "openapi";
11474
+ sdk: "sdk";
11475
+ skill: "skill";
11476
+ web_ui: "web_ui";
11477
+ webhook: "webhook";
11478
+ }>>;
11479
+ }, z.core.$strip>>>;
11128
11480
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11129
11481
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11130
11482
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -11622,6 +11974,22 @@ declare const cloudContract: {
11622
11974
  image: z.ZodNullable<z.ZodString>;
11623
11975
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11624
11976
  }, z.core.$strip>>>>;
11977
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11978
+ displayName: z.ZodNullable<z.ZodString>;
11979
+ ownerName: z.ZodNullable<z.ZodString>;
11980
+ channel: z.ZodNullable<z.ZodEnum<{
11981
+ automation: "automation";
11982
+ browser: "browser";
11983
+ cli: "cli";
11984
+ import: "import";
11985
+ mcp: "mcp";
11986
+ openapi: "openapi";
11987
+ sdk: "sdk";
11988
+ skill: "skill";
11989
+ web_ui: "web_ui";
11990
+ webhook: "webhook";
11991
+ }>>;
11992
+ }, z.core.$strip>>>;
11625
11993
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11626
11994
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11627
11995
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -12115,6 +12483,22 @@ declare const cloudContract: {
12115
12483
  image: z.ZodNullable<z.ZodString>;
12116
12484
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12117
12485
  }, z.core.$strip>>>>;
12486
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12487
+ displayName: z.ZodNullable<z.ZodString>;
12488
+ ownerName: z.ZodNullable<z.ZodString>;
12489
+ channel: z.ZodNullable<z.ZodEnum<{
12490
+ automation: "automation";
12491
+ browser: "browser";
12492
+ cli: "cli";
12493
+ import: "import";
12494
+ mcp: "mcp";
12495
+ openapi: "openapi";
12496
+ sdk: "sdk";
12497
+ skill: "skill";
12498
+ web_ui: "web_ui";
12499
+ webhook: "webhook";
12500
+ }>>;
12501
+ }, z.core.$strip>>>;
12118
12502
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
12119
12503
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
12120
12504
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -12543,6 +12927,22 @@ declare const cloudContract: {
12543
12927
  image: z.ZodNullable<z.ZodString>;
12544
12928
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12545
12929
  }, z.core.$strip>>>>;
12930
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12931
+ displayName: z.ZodNullable<z.ZodString>;
12932
+ ownerName: z.ZodNullable<z.ZodString>;
12933
+ channel: z.ZodNullable<z.ZodEnum<{
12934
+ automation: "automation";
12935
+ browser: "browser";
12936
+ cli: "cli";
12937
+ import: "import";
12938
+ mcp: "mcp";
12939
+ openapi: "openapi";
12940
+ sdk: "sdk";
12941
+ skill: "skill";
12942
+ web_ui: "web_ui";
12943
+ webhook: "webhook";
12944
+ }>>;
12945
+ }, z.core.$strip>>>;
12546
12946
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
12547
12947
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
12548
12948
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -13593,6 +13993,22 @@ declare const cloudContract: {
13593
13993
  image: z.ZodNullable<z.ZodString>;
13594
13994
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13595
13995
  }, z.core.$strip>>>>;
13996
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13997
+ displayName: z.ZodNullable<z.ZodString>;
13998
+ ownerName: z.ZodNullable<z.ZodString>;
13999
+ channel: z.ZodNullable<z.ZodEnum<{
14000
+ automation: "automation";
14001
+ browser: "browser";
14002
+ cli: "cli";
14003
+ import: "import";
14004
+ mcp: "mcp";
14005
+ openapi: "openapi";
14006
+ sdk: "sdk";
14007
+ skill: "skill";
14008
+ web_ui: "web_ui";
14009
+ webhook: "webhook";
14010
+ }>>;
14011
+ }, z.core.$strip>>>;
13596
14012
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13597
14013
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13598
14014
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -14868,6 +15284,7 @@ declare const cloudContract: {
14868
15284
  rejected: "rejected";
14869
15285
  }>>>;
14870
15286
  mine: z.ZodOptional<z.ZodBoolean>;
15287
+ affectsNodeId: z.ZodOptional<z.ZodString>;
14871
15288
  }, z.core.$strip>>>, z.ZodObject<{
14872
15289
  changeRequests: z.ZodArray<z.ZodObject<{
14873
15290
  id: z.ZodString;
@@ -14894,6 +15311,22 @@ declare const cloudContract: {
14894
15311
  image: z.ZodNullable<z.ZodString>;
14895
15312
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14896
15313
  }, z.core.$strip>>>>;
15314
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15315
+ displayName: z.ZodNullable<z.ZodString>;
15316
+ ownerName: z.ZodNullable<z.ZodString>;
15317
+ channel: z.ZodNullable<z.ZodEnum<{
15318
+ automation: "automation";
15319
+ browser: "browser";
15320
+ cli: "cli";
15321
+ import: "import";
15322
+ mcp: "mcp";
15323
+ openapi: "openapi";
15324
+ sdk: "sdk";
15325
+ skill: "skill";
15326
+ web_ui: "web_ui";
15327
+ webhook: "webhook";
15328
+ }>>;
15329
+ }, z.core.$strip>>>;
14897
15330
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14898
15331
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14899
15332
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -15297,6 +15730,7 @@ declare const cloudContract: {
15297
15730
  rejected: "rejected";
15298
15731
  }>>>;
15299
15732
  mine: z.ZodOptional<z.ZodBoolean>;
15733
+ affectsNodeId: z.ZodOptional<z.ZodString>;
15300
15734
  }, z.core.$strip>>>, z.ZodObject<{
15301
15735
  changeRequests: z.ZodArray<z.ZodObject<{
15302
15736
  id: z.ZodString;
@@ -15323,6 +15757,22 @@ declare const cloudContract: {
15323
15757
  image: z.ZodNullable<z.ZodString>;
15324
15758
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15325
15759
  }, z.core.$strip>>>>;
15760
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15761
+ displayName: z.ZodNullable<z.ZodString>;
15762
+ ownerName: z.ZodNullable<z.ZodString>;
15763
+ channel: z.ZodNullable<z.ZodEnum<{
15764
+ automation: "automation";
15765
+ browser: "browser";
15766
+ cli: "cli";
15767
+ import: "import";
15768
+ mcp: "mcp";
15769
+ openapi: "openapi";
15770
+ sdk: "sdk";
15771
+ skill: "skill";
15772
+ web_ui: "web_ui";
15773
+ webhook: "webhook";
15774
+ }>>;
15775
+ }, z.core.$strip>>>;
15326
15776
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15327
15777
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15328
15778
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -15755,6 +16205,22 @@ declare const cloudContract: {
15755
16205
  image: z.ZodNullable<z.ZodString>;
15756
16206
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15757
16207
  }, z.core.$strip>>>>;
16208
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16209
+ displayName: z.ZodNullable<z.ZodString>;
16210
+ ownerName: z.ZodNullable<z.ZodString>;
16211
+ channel: z.ZodNullable<z.ZodEnum<{
16212
+ automation: "automation";
16213
+ browser: "browser";
16214
+ cli: "cli";
16215
+ import: "import";
16216
+ mcp: "mcp";
16217
+ openapi: "openapi";
16218
+ sdk: "sdk";
16219
+ skill: "skill";
16220
+ web_ui: "web_ui";
16221
+ webhook: "webhook";
16222
+ }>>;
16223
+ }, z.core.$strip>>>;
15758
16224
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15759
16225
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15760
16226
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -16191,6 +16657,22 @@ declare const cloudContract: {
16191
16657
  image: z.ZodNullable<z.ZodString>;
16192
16658
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16193
16659
  }, z.core.$strip>>>>;
16660
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16661
+ displayName: z.ZodNullable<z.ZodString>;
16662
+ ownerName: z.ZodNullable<z.ZodString>;
16663
+ channel: z.ZodNullable<z.ZodEnum<{
16664
+ automation: "automation";
16665
+ browser: "browser";
16666
+ cli: "cli";
16667
+ import: "import";
16668
+ mcp: "mcp";
16669
+ openapi: "openapi";
16670
+ sdk: "sdk";
16671
+ skill: "skill";
16672
+ web_ui: "web_ui";
16673
+ webhook: "webhook";
16674
+ }>>;
16675
+ }, z.core.$strip>>>;
16194
16676
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16195
16677
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16196
16678
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -16616,6 +17098,22 @@ declare const cloudContract: {
16616
17098
  image: z.ZodNullable<z.ZodString>;
16617
17099
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16618
17100
  }, z.core.$strip>>>>;
17101
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17102
+ displayName: z.ZodNullable<z.ZodString>;
17103
+ ownerName: z.ZodNullable<z.ZodString>;
17104
+ channel: z.ZodNullable<z.ZodEnum<{
17105
+ automation: "automation";
17106
+ browser: "browser";
17107
+ cli: "cli";
17108
+ import: "import";
17109
+ mcp: "mcp";
17110
+ openapi: "openapi";
17111
+ sdk: "sdk";
17112
+ skill: "skill";
17113
+ web_ui: "web_ui";
17114
+ webhook: "webhook";
17115
+ }>>;
17116
+ }, z.core.$strip>>>;
16619
17117
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16620
17118
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16621
17119
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -17040,6 +17538,22 @@ declare const cloudContract: {
17040
17538
  image: z.ZodNullable<z.ZodString>;
17041
17539
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17042
17540
  }, z.core.$strip>>>>;
17541
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17542
+ displayName: z.ZodNullable<z.ZodString>;
17543
+ ownerName: z.ZodNullable<z.ZodString>;
17544
+ channel: z.ZodNullable<z.ZodEnum<{
17545
+ automation: "automation";
17546
+ browser: "browser";
17547
+ cli: "cli";
17548
+ import: "import";
17549
+ mcp: "mcp";
17550
+ openapi: "openapi";
17551
+ sdk: "sdk";
17552
+ skill: "skill";
17553
+ web_ui: "web_ui";
17554
+ webhook: "webhook";
17555
+ }>>;
17556
+ }, z.core.$strip>>>;
17043
17557
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
17044
17558
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
17045
17559
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -17460,6 +17974,22 @@ declare const cloudContract: {
17460
17974
  image: z.ZodNullable<z.ZodString>;
17461
17975
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17462
17976
  }, z.core.$strip>>>>;
17977
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17978
+ displayName: z.ZodNullable<z.ZodString>;
17979
+ ownerName: z.ZodNullable<z.ZodString>;
17980
+ channel: z.ZodNullable<z.ZodEnum<{
17981
+ automation: "automation";
17982
+ browser: "browser";
17983
+ cli: "cli";
17984
+ import: "import";
17985
+ mcp: "mcp";
17986
+ openapi: "openapi";
17987
+ sdk: "sdk";
17988
+ skill: "skill";
17989
+ web_ui: "web_ui";
17990
+ webhook: "webhook";
17991
+ }>>;
17992
+ }, z.core.$strip>>>;
17463
17993
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
17464
17994
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
17465
17995
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -18160,6 +18690,22 @@ declare const cloudContract: {
18160
18690
  image: z.ZodNullable<z.ZodString>;
18161
18691
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18162
18692
  }, z.core.$strip>>>>;
18693
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18694
+ displayName: z.ZodNullable<z.ZodString>;
18695
+ ownerName: z.ZodNullable<z.ZodString>;
18696
+ channel: z.ZodNullable<z.ZodEnum<{
18697
+ automation: "automation";
18698
+ browser: "browser";
18699
+ cli: "cli";
18700
+ import: "import";
18701
+ mcp: "mcp";
18702
+ openapi: "openapi";
18703
+ sdk: "sdk";
18704
+ skill: "skill";
18705
+ web_ui: "web_ui";
18706
+ webhook: "webhook";
18707
+ }>>;
18708
+ }, z.core.$strip>>>;
18163
18709
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18164
18710
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18165
18711
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -19670,6 +20216,22 @@ declare const cloudContract: {
19670
20216
  image: z.ZodNullable<z.ZodString>;
19671
20217
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19672
20218
  }, z.core.$strip>>>>;
20219
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20220
+ displayName: z.ZodNullable<z.ZodString>;
20221
+ ownerName: z.ZodNullable<z.ZodString>;
20222
+ channel: z.ZodNullable<z.ZodEnum<{
20223
+ automation: "automation";
20224
+ browser: "browser";
20225
+ cli: "cli";
20226
+ import: "import";
20227
+ mcp: "mcp";
20228
+ openapi: "openapi";
20229
+ sdk: "sdk";
20230
+ skill: "skill";
20231
+ web_ui: "web_ui";
20232
+ webhook: "webhook";
20233
+ }>>;
20234
+ }, z.core.$strip>>>;
19673
20235
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
19674
20236
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
19675
20237
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -20086,6 +20648,22 @@ declare const cloudContract: {
20086
20648
  image: z.ZodNullable<z.ZodString>;
20087
20649
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20088
20650
  }, z.core.$strip>>>>;
20651
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20652
+ displayName: z.ZodNullable<z.ZodString>;
20653
+ ownerName: z.ZodNullable<z.ZodString>;
20654
+ channel: z.ZodNullable<z.ZodEnum<{
20655
+ automation: "automation";
20656
+ browser: "browser";
20657
+ cli: "cli";
20658
+ import: "import";
20659
+ mcp: "mcp";
20660
+ openapi: "openapi";
20661
+ sdk: "sdk";
20662
+ skill: "skill";
20663
+ web_ui: "web_ui";
20664
+ webhook: "webhook";
20665
+ }>>;
20666
+ }, z.core.$strip>>>;
20089
20667
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
20090
20668
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
20091
20669
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -20720,6 +21298,22 @@ declare const cloudContract: {
20720
21298
  image: z.ZodNullable<z.ZodString>;
20721
21299
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20722
21300
  }, z.core.$strip>>>>;
21301
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21302
+ displayName: z.ZodNullable<z.ZodString>;
21303
+ ownerName: z.ZodNullable<z.ZodString>;
21304
+ channel: z.ZodNullable<z.ZodEnum<{
21305
+ automation: "automation";
21306
+ browser: "browser";
21307
+ cli: "cli";
21308
+ import: "import";
21309
+ mcp: "mcp";
21310
+ openapi: "openapi";
21311
+ sdk: "sdk";
21312
+ skill: "skill";
21313
+ web_ui: "web_ui";
21314
+ webhook: "webhook";
21315
+ }>>;
21316
+ }, z.core.$strip>>>;
20723
21317
  sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
20724
21318
  reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
20725
21319
  mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -21204,7 +21798,12 @@ declare const cloudContract: {
21204
21798
  };
21205
21799
  embedLinks: {
21206
21800
  create: import("@orpc/contract").ContractProcedure<z.ZodObject<{
21207
- nodeId: z.ZodString;
21801
+ type: z.ZodEnum<{
21802
+ "change-request": "change-request";
21803
+ node: "node";
21804
+ "record-detail": "record-detail";
21805
+ }>;
21806
+ typeId: z.ZodString;
21208
21807
  expiresInMinutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
21209
21808
  framePolicy: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
21210
21809
  mode: z.ZodLiteral<"anywhere">;
@@ -21230,9 +21829,14 @@ declare const cloudContract: {
21230
21829
  }>>>>;
21231
21830
  }, z.core.$strip>, z.ZodObject<{
21232
21831
  id: z.ZodString;
21233
- nodeId: z.ZodString;
21234
- nodeName: z.ZodString;
21235
- nodeType: z.ZodEnum<{
21832
+ type: z.ZodEnum<{
21833
+ "change-request": "change-request";
21834
+ node: "node";
21835
+ "record-detail": "record-detail";
21836
+ }>;
21837
+ typeId: z.ZodString;
21838
+ targetName: z.ZodString;
21839
+ nodeType: z.ZodNullable<z.ZodEnum<{
21236
21840
  airapp: "airapp";
21237
21841
  base: "base";
21238
21842
  doc: "doc";
@@ -21240,7 +21844,7 @@ declare const cloudContract: {
21240
21844
  file: "file";
21241
21845
  folder: "folder";
21242
21846
  skill: "skill";
21243
- }>;
21847
+ }>>;
21244
21848
  createdAt: z.ZodString;
21245
21849
  expiresAt: z.ZodString;
21246
21850
  revokedAt: z.ZodNullable<z.ZodString>;
@@ -21256,28 +21860,28 @@ declare const cloudContract: {
21256
21860
  url: z.ZodString;
21257
21861
  iframeUrl: z.ZodString;
21258
21862
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
21259
- UNAUTHORIZED: {
21863
+ BAD_REQUEST: {
21260
21864
  status: number;
21261
21865
  message: string;
21262
21866
  data: z.ZodObject<{
21263
21867
  error: z.ZodString;
21264
21868
  }, z.core.$strip>;
21265
21869
  };
21266
- NOT_FOUND: {
21870
+ UNAUTHORIZED: {
21267
21871
  status: number;
21268
21872
  message: string;
21269
21873
  data: z.ZodObject<{
21270
21874
  error: z.ZodString;
21271
21875
  }, z.core.$strip>;
21272
21876
  };
21273
- BAD_REQUEST: {
21877
+ FORBIDDEN: {
21274
21878
  status: number;
21275
21879
  message: string;
21276
21880
  data: z.ZodObject<{
21277
21881
  error: z.ZodString;
21278
21882
  }, z.core.$strip>;
21279
21883
  };
21280
- FORBIDDEN: {
21884
+ NOT_FOUND: {
21281
21885
  status: number;
21282
21886
  message: string;
21283
21887
  data: z.ZodObject<{
@@ -21286,12 +21890,22 @@ declare const cloudContract: {
21286
21890
  };
21287
21891
  }>>, Record<never, never>>;
21288
21892
  list: import("@orpc/contract").ContractProcedure<z.ZodDefault<z.ZodOptional<z.ZodObject<{
21289
- nodeId: z.ZodOptional<z.ZodString>;
21893
+ type: z.ZodOptional<z.ZodEnum<{
21894
+ "change-request": "change-request";
21895
+ node: "node";
21896
+ "record-detail": "record-detail";
21897
+ }>>;
21898
+ typeId: z.ZodOptional<z.ZodString>;
21290
21899
  }, z.core.$strip>>>, z.ZodArray<z.ZodObject<{
21291
21900
  id: z.ZodString;
21292
- nodeId: z.ZodString;
21293
- nodeName: z.ZodString;
21294
- nodeType: z.ZodEnum<{
21901
+ type: z.ZodEnum<{
21902
+ "change-request": "change-request";
21903
+ node: "node";
21904
+ "record-detail": "record-detail";
21905
+ }>;
21906
+ typeId: z.ZodString;
21907
+ targetName: z.ZodString;
21908
+ nodeType: z.ZodNullable<z.ZodEnum<{
21295
21909
  airapp: "airapp";
21296
21910
  base: "base";
21297
21911
  doc: "doc";
@@ -21299,7 +21913,7 @@ declare const cloudContract: {
21299
21913
  file: "file";
21300
21914
  folder: "folder";
21301
21915
  skill: "skill";
21302
- }>;
21916
+ }>>;
21303
21917
  createdAt: z.ZodString;
21304
21918
  expiresAt: z.ZodString;
21305
21919
  revokedAt: z.ZodNullable<z.ZodString>;
@@ -21313,28 +21927,28 @@ declare const cloudContract: {
21313
21927
  allowedOrigins: z.ZodArray<z.ZodString>;
21314
21928
  }, z.core.$strip>;
21315
21929
  }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
21316
- UNAUTHORIZED: {
21930
+ BAD_REQUEST: {
21317
21931
  status: number;
21318
21932
  message: string;
21319
21933
  data: z.ZodObject<{
21320
21934
  error: z.ZodString;
21321
21935
  }, z.core.$strip>;
21322
21936
  };
21323
- NOT_FOUND: {
21937
+ UNAUTHORIZED: {
21324
21938
  status: number;
21325
21939
  message: string;
21326
21940
  data: z.ZodObject<{
21327
21941
  error: z.ZodString;
21328
21942
  }, z.core.$strip>;
21329
21943
  };
21330
- BAD_REQUEST: {
21944
+ FORBIDDEN: {
21331
21945
  status: number;
21332
21946
  message: string;
21333
21947
  data: z.ZodObject<{
21334
21948
  error: z.ZodString;
21335
21949
  }, z.core.$strip>;
21336
21950
  };
21337
- FORBIDDEN: {
21951
+ NOT_FOUND: {
21338
21952
  status: number;
21339
21953
  message: string;
21340
21954
  data: z.ZodObject<{
@@ -21347,28 +21961,28 @@ declare const cloudContract: {
21347
21961
  }, z.core.$strip>, z.ZodObject<{
21348
21962
  revoked: z.ZodLiteral<true>;
21349
21963
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
21350
- UNAUTHORIZED: {
21964
+ BAD_REQUEST: {
21351
21965
  status: number;
21352
21966
  message: string;
21353
21967
  data: z.ZodObject<{
21354
21968
  error: z.ZodString;
21355
21969
  }, z.core.$strip>;
21356
21970
  };
21357
- NOT_FOUND: {
21971
+ UNAUTHORIZED: {
21358
21972
  status: number;
21359
21973
  message: string;
21360
21974
  data: z.ZodObject<{
21361
21975
  error: z.ZodString;
21362
21976
  }, z.core.$strip>;
21363
21977
  };
21364
- BAD_REQUEST: {
21978
+ FORBIDDEN: {
21365
21979
  status: number;
21366
21980
  message: string;
21367
21981
  data: z.ZodObject<{
21368
21982
  error: z.ZodString;
21369
21983
  }, z.core.$strip>;
21370
21984
  };
21371
- FORBIDDEN: {
21985
+ NOT_FOUND: {
21372
21986
  status: number;
21373
21987
  message: string;
21374
21988
  data: z.ZodObject<{
@@ -21380,6 +21994,2828 @@ declare const cloudContract: {
21380
21994
  };
21381
21995
  type CloudContract = typeof cloudContract;
21382
21996
  //#endregion
21997
+ //#region ../../packages/open-domains/attachments/types/attachments.d.ts
21998
+ /**
21999
+ * Denormalized attachment reference stored inline in a record's `attachment`
22000
+ * field value (Airtable-style: the cell holds an array of these, so rendering
22001
+ * needs no join). `id` points at the `attachments` registry row.
22002
+ */
22003
+ declare const AttachmentRefSchema: z.ZodObject<{
22004
+ id: z.ZodString;
22005
+ url: z.ZodString;
22006
+ fileName: z.ZodString;
22007
+ mimeType: z.ZodString;
22008
+ size: z.ZodNumber;
22009
+ }, z.core.$strip>;
22010
+ type AttachmentRef = z.infer<typeof AttachmentRefSchema>;
22011
+ //#endregion
22012
+ //#region ../../packages/openlib/i18n/i-string.d.ts
22013
+ declare const iStringSchema: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
22014
+ de: "de";
22015
+ en: "en";
22016
+ es: "es";
22017
+ fr: "fr";
22018
+ ja: "ja";
22019
+ ko: "ko";
22020
+ pt: "pt";
22021
+ "zh-CN": "zh-CN";
22022
+ "zh-TW": "zh-TW";
22023
+ }> & z.core.$partial, z.ZodString>]>;
22024
+ type iString = z.infer<typeof iStringSchema>;
22025
+ //#endregion
22026
+ //#region ../../packages/busabase-contract/src/domains/base/types.d.ts
22027
+ interface AssetAttachmentRef extends AttachmentRef {
22028
+ attachmentId: string;
22029
+ assetId?: string;
22030
+ }
22031
+ interface BaseFieldVO {
22032
+ id: string;
22033
+ baseId: string;
22034
+ slug: string;
22035
+ /**
22036
+ * Display name — a plain string or a locale-keyed record
22037
+ * (e.g. { en: "Company", "zh-CN": "公司" }). Resolve with iStringParse.
22038
+ */
22039
+ name: iString;
22040
+ type: FieldType;
22041
+ required: boolean;
22042
+ position: number;
22043
+ options: {
22044
+ ai?: {
22045
+ model?: string;
22046
+ prompt?: string;
22047
+ reviewRequired?: boolean;
22048
+ sourceFieldIds?: string[];
22049
+ };
22050
+ attachment?: {
22051
+ maxFiles?: number;
22052
+ allowedMimeTypes?: string[];
22053
+ maxFileSize?: number;
22054
+ };
22055
+ choices?: Array<{
22056
+ color?: string;
22057
+ id: string;
22058
+ name: string;
22059
+ }>;
22060
+ code?: {
22061
+ language?: string;
22062
+ };
22063
+ embed?: {
22064
+ aspectRatio?: "16:9" | "4:3" | "1:1";
22065
+ height?: number;
22066
+ providers?: string[];
22067
+ };
22068
+ formula?: {
22069
+ expression: string;
22070
+ };
22071
+ inverseFieldId?: string;
22072
+ lookup?: {
22073
+ relationFieldSlug: string;
22074
+ targetFieldSlug: string;
22075
+ rollup?: LookupRollup;
22076
+ limit?: "all" | "first";
22077
+ };
22078
+ multiple?: boolean;
22079
+ targetBaseId?: string;
22080
+ number?: {
22081
+ format?: "plain" | "currency";
22082
+ currency?: string;
22083
+ locale?: string;
22084
+ };
22085
+ };
22086
+ }
22087
+ interface BaseVO {
22088
+ id: string;
22089
+ nodeId: string;
22090
+ slug: string;
22091
+ name: string;
22092
+ description: string;
22093
+ reviewPolicy: {
22094
+ kind: "single";
22095
+ requiredApprovals: number;
22096
+ };
22097
+ createdAt: string;
22098
+ fields: BaseFieldVO[];
22099
+ }
22100
+ type ViewFilterOperator = "contains" | "equals" | "not_empty" | "is_empty" | "is_true" | "is_false";
22101
+ interface ViewFilterVO {
22102
+ fieldSlug: string;
22103
+ fieldId?: string;
22104
+ operator: ViewFilterOperator;
22105
+ value?: unknown;
22106
+ }
22107
+ interface ViewSortVO {
22108
+ direction: "asc" | "desc";
22109
+ fieldSlug: string;
22110
+ fieldId?: string;
22111
+ }
22112
+ type ViewType = "table" | "gallery" | "kanban" | "calendar" | "gantt";
22113
+ type GalleryCoverFit = "cover" | "fit";
22114
+ type GalleryCardSize = "small" | "medium" | "large";
22115
+ type GanttScale = "week" | "month";
22116
+ declare const VIEW_FIELD_MIN_WIDTH = 92;
22117
+ declare const VIEW_FIELD_MAX_WIDTH = 640;
22118
+ interface ViewConfigVO {
22119
+ filters: ViewFilterVO[];
22120
+ sorts: ViewSortVO[];
22121
+ visibleFieldSlugs?: string[] | null;
22122
+ /** Table-only column widths in pixels, keyed by field slug. */
22123
+ fieldWidths?: Record<string, number>;
22124
+ coverFieldSlug?: string | null;
22125
+ coverFit?: GalleryCoverFit;
22126
+ cardSize?: GalleryCardSize;
22127
+ showFieldLabels?: boolean;
22128
+ stackByFieldSlug?: string | null;
22129
+ dateFieldSlug?: string | null;
22130
+ startFieldSlug?: string | null;
22131
+ endFieldSlug?: string | null;
22132
+ ganttScale?: GanttScale;
22133
+ }
22134
+ interface ViewVO {
22135
+ id: string;
22136
+ baseId: string;
22137
+ slug: string;
22138
+ name: string;
22139
+ description: string;
22140
+ type: ViewType;
22141
+ config: ViewConfigVO;
22142
+ status: "active" | "archived";
22143
+ createdBy: string;
22144
+ createdByUser?: UserRefVO | null;
22145
+ archivedAt: string | null;
22146
+ createdAt: string;
22147
+ updatedAt: string;
22148
+ }
22149
+ interface RecordVO {
22150
+ id: string;
22151
+ baseId: string;
22152
+ headCommitId: string;
22153
+ parentRecordId: string | null;
22154
+ parentCommitId: string | null;
22155
+ status: "active" | "archived";
22156
+ createdBy: string;
22157
+ createdByUser?: UserRefVO | null;
22158
+ archivedAt: string | null;
22159
+ createdAt: string;
22160
+ updatedAt: string;
22161
+ base: BaseVO;
22162
+ headCommit: CommitVO;
22163
+ }
22164
+ interface RecordLinkVO {
22165
+ id: string;
22166
+ baseId: string;
22167
+ fieldId: string;
22168
+ fieldSlug: string;
22169
+ sourceRecordId: string;
22170
+ targetBaseId: string;
22171
+ targetRecordId: string;
22172
+ commitId: string;
22173
+ position: number;
22174
+ createdAt: string;
22175
+ updatedAt: string;
22176
+ }
22177
+ //#endregion
22178
+ //#region ../../packages/busabase-contract/src/domains/form/types.d.ts
22179
+ /**
22180
+ * One input-to-field mapping. `inputName` is the name the agent-authored page
22181
+ * uses for a control; `fieldSlug` is the target Base field it writes to.
22182
+ * `required`/`label`/`help` are per-form overrides that DON'T mutate the Base
22183
+ * field definition (fixing APITable's "form not self-contained" limitation).
22184
+ */
22185
+ declare const FormFieldBindingSchema: z.ZodObject<{
22186
+ inputName: z.ZodString;
22187
+ fieldSlug: z.ZodString;
22188
+ required: z.ZodOptional<z.ZodBoolean>;
22189
+ label: z.ZodOptional<z.ZodString>;
22190
+ help: z.ZodOptional<z.ZodString>;
22191
+ }, z.core.$strip>;
22192
+ type FormFieldBindingVO = z.infer<typeof FormFieldBindingSchema>;
22193
+ /**
22194
+ * Client-safe control metadata for one bound Base field. Public Forms expose
22195
+ * only these curated fields, never the target Base or its records.
22196
+ */
22197
+ declare const FormBoundFieldSchema: z.ZodObject<{
22198
+ slug: z.ZodString;
22199
+ name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
22200
+ de: "de";
22201
+ en: "en";
22202
+ es: "es";
22203
+ fr: "fr";
22204
+ ja: "ja";
22205
+ ko: "ko";
22206
+ pt: "pt";
22207
+ "zh-CN": "zh-CN";
22208
+ "zh-TW": "zh-TW";
22209
+ }> & z.core.$partial, z.ZodString>]>;
22210
+ type: z.ZodEnum<{
22211
+ ai_summary: "ai_summary";
22212
+ ai_tags: "ai_tags";
22213
+ attachment: "attachment";
22214
+ auto_number: "auto_number";
22215
+ checkbox: "checkbox";
22216
+ code: "code";
22217
+ created_by: "created_by";
22218
+ created_time: "created_time";
22219
+ date: "date";
22220
+ email: "email";
22221
+ embed: "embed";
22222
+ formula: "formula";
22223
+ html: "html";
22224
+ json: "json";
22225
+ longtext: "longtext";
22226
+ lookup: "lookup";
22227
+ markdown: "markdown";
22228
+ multiselect: "multiselect";
22229
+ number: "number";
22230
+ phone: "phone";
22231
+ relation: "relation";
22232
+ select: "select";
22233
+ text: "text";
22234
+ updated_by: "updated_by";
22235
+ updated_time: "updated_time";
22236
+ url: "url";
22237
+ whiteboard: "whiteboard";
22238
+ yaml: "yaml";
22239
+ }>;
22240
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
22241
+ id: z.ZodString;
22242
+ name: z.ZodString;
22243
+ }, z.core.$strip>>>;
22244
+ }, z.core.$strip>;
22245
+ type FormBoundFieldVO = z.infer<typeof FormBoundFieldSchema>;
22246
+ /** Optional theme tokens layered over the agent-authored page. */
22247
+ declare const FormThemeSchema: z.ZodObject<{
22248
+ logoUrl: z.ZodOptional<z.ZodString>;
22249
+ coverUrl: z.ZodOptional<z.ZodString>;
22250
+ brandColor: z.ZodOptional<z.ZodString>;
22251
+ hideBranding: z.ZodOptional<z.ZodBoolean>;
22252
+ }, z.core.$strip>;
22253
+ type FormThemeVO = z.infer<typeof FormThemeSchema>;
22254
+ /**
22255
+ * Page source: ONE HTML document the agent authors — `<style>`/`<script>` live
22256
+ * inside it, exactly as a real web page does. (This was briefly split into
22257
+ * html/css/js, but the renderer only ever concatenated the parts back into a
22258
+ * single document and no step needed them apart — the split was ceremony.)
22259
+ * Block-drag authoring is intentionally NOT built; the agent writes code.
22260
+ */
22261
+ declare const FormPageSourceSchema: z.ZodObject<{
22262
+ code: z.ZodOptional<z.ZodString>;
22263
+ theme: z.ZodOptional<z.ZodObject<{
22264
+ logoUrl: z.ZodOptional<z.ZodString>;
22265
+ coverUrl: z.ZodOptional<z.ZodString>;
22266
+ brandColor: z.ZodOptional<z.ZodString>;
22267
+ hideBranding: z.ZodOptional<z.ZodBoolean>;
22268
+ }, z.core.$strip>>;
22269
+ }, z.core.$strip>;
22270
+ type FormPageSourceVO = z.infer<typeof FormPageSourceSchema>;
22271
+ /**
22272
+ * Public/anonymous settings. No shareToken — the submit endpoint gates on these
22273
+ * flags. Three states: private / public+anonymous / public+require-login.
22274
+ */
22275
+ declare const FormShareSchema: z.ZodObject<{
22276
+ isPublic: z.ZodDefault<z.ZodBoolean>;
22277
+ anonymousSubmit: z.ZodDefault<z.ZodBoolean>;
22278
+ submitLimit: z.ZodOptional<z.ZodNumber>;
22279
+ requireCaptcha: z.ZodOptional<z.ZodBoolean>;
22280
+ }, z.core.$strip>;
22281
+ type FormShareVO = z.infer<typeof FormShareSchema>;
22282
+ declare const FormVOSchema: z.ZodObject<{
22283
+ id: z.ZodString;
22284
+ nodeId: z.ZodString;
22285
+ spaceId: z.ZodString;
22286
+ targetBaseId: z.ZodString;
22287
+ name: z.ZodString;
22288
+ description: z.ZodString;
22289
+ bindings: z.ZodArray<z.ZodObject<{
22290
+ inputName: z.ZodString;
22291
+ fieldSlug: z.ZodString;
22292
+ required: z.ZodOptional<z.ZodBoolean>;
22293
+ label: z.ZodOptional<z.ZodString>;
22294
+ help: z.ZodOptional<z.ZodString>;
22295
+ }, z.core.$strip>>;
22296
+ boundFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
22297
+ slug: z.ZodString;
22298
+ name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
22299
+ de: "de";
22300
+ en: "en";
22301
+ es: "es";
22302
+ fr: "fr";
22303
+ ja: "ja";
22304
+ ko: "ko";
22305
+ pt: "pt";
22306
+ "zh-CN": "zh-CN";
22307
+ "zh-TW": "zh-TW";
22308
+ }> & z.core.$partial, z.ZodString>]>;
22309
+ type: z.ZodEnum<{
22310
+ ai_summary: "ai_summary";
22311
+ ai_tags: "ai_tags";
22312
+ attachment: "attachment";
22313
+ auto_number: "auto_number";
22314
+ checkbox: "checkbox";
22315
+ code: "code";
22316
+ created_by: "created_by";
22317
+ created_time: "created_time";
22318
+ date: "date";
22319
+ email: "email";
22320
+ embed: "embed";
22321
+ formula: "formula";
22322
+ html: "html";
22323
+ json: "json";
22324
+ longtext: "longtext";
22325
+ lookup: "lookup";
22326
+ markdown: "markdown";
22327
+ multiselect: "multiselect";
22328
+ number: "number";
22329
+ phone: "phone";
22330
+ relation: "relation";
22331
+ select: "select";
22332
+ text: "text";
22333
+ updated_by: "updated_by";
22334
+ updated_time: "updated_time";
22335
+ url: "url";
22336
+ whiteboard: "whiteboard";
22337
+ yaml: "yaml";
22338
+ }>;
22339
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
22340
+ id: z.ZodString;
22341
+ name: z.ZodString;
22342
+ }, z.core.$strip>>>;
22343
+ }, z.core.$strip>>>;
22344
+ page: z.ZodObject<{
22345
+ code: z.ZodOptional<z.ZodString>;
22346
+ theme: z.ZodOptional<z.ZodObject<{
22347
+ logoUrl: z.ZodOptional<z.ZodString>;
22348
+ coverUrl: z.ZodOptional<z.ZodString>;
22349
+ brandColor: z.ZodOptional<z.ZodString>;
22350
+ hideBranding: z.ZodOptional<z.ZodBoolean>;
22351
+ }, z.core.$strip>>;
22352
+ }, z.core.$strip>;
22353
+ share: z.ZodObject<{
22354
+ isPublic: z.ZodDefault<z.ZodBoolean>;
22355
+ anonymousSubmit: z.ZodDefault<z.ZodBoolean>;
22356
+ submitLimit: z.ZodOptional<z.ZodNumber>;
22357
+ requireCaptcha: z.ZodOptional<z.ZodBoolean>;
22358
+ }, z.core.$strip>;
22359
+ submissionCount: z.ZodDefault<z.ZodNumber>;
22360
+ status: z.ZodEnum<{
22361
+ active: "active";
22362
+ archived: "archived";
22363
+ }>;
22364
+ createdBy: z.ZodString;
22365
+ createdAt: z.ZodString;
22366
+ updatedAt: z.ZodString;
22367
+ }, z.core.$strip>;
22368
+ type FormVO = z.infer<typeof FormVOSchema>;
22369
+ declare const ListFormsInputSchema: z.ZodObject<{
22370
+ targetBaseId: z.ZodString;
22371
+ limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
22372
+ cursor: z.ZodOptional<z.ZodString>;
22373
+ }, z.core.$strip>;
22374
+ type ListFormsDTO = z.infer<typeof ListFormsInputSchema>;
22375
+ declare const ListFormsVOSchema: z.ZodObject<{
22376
+ forms: z.ZodArray<z.ZodObject<{
22377
+ id: z.ZodString;
22378
+ nodeId: z.ZodString;
22379
+ spaceId: z.ZodString;
22380
+ targetBaseId: z.ZodString;
22381
+ name: z.ZodString;
22382
+ description: z.ZodString;
22383
+ bindings: z.ZodArray<z.ZodObject<{
22384
+ inputName: z.ZodString;
22385
+ fieldSlug: z.ZodString;
22386
+ required: z.ZodOptional<z.ZodBoolean>;
22387
+ label: z.ZodOptional<z.ZodString>;
22388
+ help: z.ZodOptional<z.ZodString>;
22389
+ }, z.core.$strip>>;
22390
+ boundFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
22391
+ slug: z.ZodString;
22392
+ name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
22393
+ de: "de";
22394
+ en: "en";
22395
+ es: "es";
22396
+ fr: "fr";
22397
+ ja: "ja";
22398
+ ko: "ko";
22399
+ pt: "pt";
22400
+ "zh-CN": "zh-CN";
22401
+ "zh-TW": "zh-TW";
22402
+ }> & z.core.$partial, z.ZodString>]>;
22403
+ type: z.ZodEnum<{
22404
+ ai_summary: "ai_summary";
22405
+ ai_tags: "ai_tags";
22406
+ attachment: "attachment";
22407
+ auto_number: "auto_number";
22408
+ checkbox: "checkbox";
22409
+ code: "code";
22410
+ created_by: "created_by";
22411
+ created_time: "created_time";
22412
+ date: "date";
22413
+ email: "email";
22414
+ embed: "embed";
22415
+ formula: "formula";
22416
+ html: "html";
22417
+ json: "json";
22418
+ longtext: "longtext";
22419
+ lookup: "lookup";
22420
+ markdown: "markdown";
22421
+ multiselect: "multiselect";
22422
+ number: "number";
22423
+ phone: "phone";
22424
+ relation: "relation";
22425
+ select: "select";
22426
+ text: "text";
22427
+ updated_by: "updated_by";
22428
+ updated_time: "updated_time";
22429
+ url: "url";
22430
+ whiteboard: "whiteboard";
22431
+ yaml: "yaml";
22432
+ }>;
22433
+ choices: z.ZodDefault<z.ZodArray<z.ZodObject<{
22434
+ id: z.ZodString;
22435
+ name: z.ZodString;
22436
+ }, z.core.$strip>>>;
22437
+ }, z.core.$strip>>>;
22438
+ page: z.ZodObject<{
22439
+ code: z.ZodOptional<z.ZodString>;
22440
+ theme: z.ZodOptional<z.ZodObject<{
22441
+ logoUrl: z.ZodOptional<z.ZodString>;
22442
+ coverUrl: z.ZodOptional<z.ZodString>;
22443
+ brandColor: z.ZodOptional<z.ZodString>;
22444
+ hideBranding: z.ZodOptional<z.ZodBoolean>;
22445
+ }, z.core.$strip>>;
22446
+ }, z.core.$strip>;
22447
+ share: z.ZodObject<{
22448
+ isPublic: z.ZodDefault<z.ZodBoolean>;
22449
+ anonymousSubmit: z.ZodDefault<z.ZodBoolean>;
22450
+ submitLimit: z.ZodOptional<z.ZodNumber>;
22451
+ requireCaptcha: z.ZodOptional<z.ZodBoolean>;
22452
+ }, z.core.$strip>;
22453
+ submissionCount: z.ZodDefault<z.ZodNumber>;
22454
+ status: z.ZodEnum<{
22455
+ active: "active";
22456
+ archived: "archived";
22457
+ }>;
22458
+ createdBy: z.ZodString;
22459
+ createdAt: z.ZodString;
22460
+ updatedAt: z.ZodString;
22461
+ }, z.core.$strip>>;
22462
+ nextCursor: z.ZodNullable<z.ZodString>;
22463
+ }, z.core.$strip>;
22464
+ type ListFormsVO = z.infer<typeof ListFormsVOSchema>;
22465
+ declare const CreateFormInputSchema: z.ZodObject<{
22466
+ nodeId: z.ZodString;
22467
+ targetBaseId: z.ZodString;
22468
+ name: z.ZodString;
22469
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
22470
+ bindings: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
22471
+ inputName: z.ZodString;
22472
+ fieldSlug: z.ZodString;
22473
+ required: z.ZodOptional<z.ZodBoolean>;
22474
+ label: z.ZodOptional<z.ZodString>;
22475
+ help: z.ZodOptional<z.ZodString>;
22476
+ }, z.core.$strip>>>>;
22477
+ page: z.ZodDefault<z.ZodOptional<z.ZodObject<{
22478
+ code: z.ZodOptional<z.ZodString>;
22479
+ theme: z.ZodOptional<z.ZodObject<{
22480
+ logoUrl: z.ZodOptional<z.ZodString>;
22481
+ coverUrl: z.ZodOptional<z.ZodString>;
22482
+ brandColor: z.ZodOptional<z.ZodString>;
22483
+ hideBranding: z.ZodOptional<z.ZodBoolean>;
22484
+ }, z.core.$strip>>;
22485
+ }, z.core.$strip>>>;
22486
+ share: z.ZodDefault<z.ZodOptional<z.ZodObject<{
22487
+ isPublic: z.ZodDefault<z.ZodBoolean>;
22488
+ anonymousSubmit: z.ZodDefault<z.ZodBoolean>;
22489
+ submitLimit: z.ZodOptional<z.ZodNumber>;
22490
+ requireCaptcha: z.ZodOptional<z.ZodBoolean>;
22491
+ }, z.core.$strip>>>;
22492
+ }, z.core.$strip>;
22493
+ type CreateFormDTO = z.input<typeof CreateFormInputSchema>;
22494
+ declare const UpdateFormInputSchema: z.ZodObject<{
22495
+ name: z.ZodOptional<z.ZodString>;
22496
+ description: z.ZodOptional<z.ZodString>;
22497
+ bindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
22498
+ inputName: z.ZodString;
22499
+ fieldSlug: z.ZodString;
22500
+ required: z.ZodOptional<z.ZodBoolean>;
22501
+ label: z.ZodOptional<z.ZodString>;
22502
+ help: z.ZodOptional<z.ZodString>;
22503
+ }, z.core.$strip>>>;
22504
+ page: z.ZodOptional<z.ZodObject<{
22505
+ code: z.ZodOptional<z.ZodString>;
22506
+ theme: z.ZodOptional<z.ZodObject<{
22507
+ logoUrl: z.ZodOptional<z.ZodString>;
22508
+ coverUrl: z.ZodOptional<z.ZodString>;
22509
+ brandColor: z.ZodOptional<z.ZodString>;
22510
+ hideBranding: z.ZodOptional<z.ZodBoolean>;
22511
+ }, z.core.$strip>>;
22512
+ }, z.core.$strip>>;
22513
+ share: z.ZodOptional<z.ZodObject<{
22514
+ isPublic: z.ZodDefault<z.ZodBoolean>;
22515
+ anonymousSubmit: z.ZodDefault<z.ZodBoolean>;
22516
+ submitLimit: z.ZodOptional<z.ZodNumber>;
22517
+ requireCaptcha: z.ZodOptional<z.ZodBoolean>;
22518
+ }, z.core.$strip>>;
22519
+ }, z.core.$strip>;
22520
+ type UpdateFormDTO = z.input<typeof UpdateFormInputSchema>;
22521
+ /** A filled-in submission: input names → values, plus optional anti-abuse token. */
22522
+ declare const SubmitFormInputSchema: z.ZodObject<{
22523
+ values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
22524
+ captchaToken: z.ZodOptional<z.ZodString>;
22525
+ }, z.core.$strip>;
22526
+ type SubmitFormDTO = z.input<typeof SubmitFormInputSchema>;
22527
+ /** What the submit endpoint returns — the pending ChangeRequest id, never data. */
22528
+ declare const FormSubmitResultSchema: z.ZodObject<{
22529
+ changeRequestId: z.ZodString;
22530
+ status: z.ZodLiteral<"pending_review">;
22531
+ }, z.core.$strip>;
22532
+ type FormSubmitResultVO = z.infer<typeof FormSubmitResultSchema>;
22533
+ //#endregion
22534
+ //#region ../../packages/busabase-contract/src/contract/activity-schemas.d.ts
22535
+ /**
22536
+ * One activity-feed row, discriminated by `kind`. Each carries the VO(s) the
22537
+ * client needs to render its title/body/href:
22538
+ * - `change_request` — the CR "updated / opened / approved / merged" row.
22539
+ * - `operation` — one row per operation; `operationId` selects it within the CR.
22540
+ * - `record` — a record "updated / archived" row.
22541
+ * - `audit` — an audit-log row; `record` is the referenced record (for its href)
22542
+ * when the event points at one, else null.
22543
+ */
22544
+ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
22545
+ kind: z.ZodLiteral<"change_request">;
22546
+ timestamp: z.ZodString;
22547
+ changeRequest: z.ZodObject<{
22548
+ id: z.ZodString;
22549
+ baseId: z.ZodNullable<z.ZodString>;
22550
+ targetType: z.ZodEnum<{
22551
+ base: "base";
22552
+ node: "node";
22553
+ }>;
22554
+ nodeId: z.ZodNullable<z.ZodString>;
22555
+ status: z.ZodEnum<{
22556
+ abandoned: "abandoned";
22557
+ approved: "approved";
22558
+ changes_requested: "changes_requested";
22559
+ conflict: "conflict";
22560
+ in_review: "in_review";
22561
+ merged: "merged";
22562
+ rejected: "rejected";
22563
+ }>;
22564
+ submittedBy: z.ZodString;
22565
+ submittedByUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
22566
+ id: z.ZodString;
22567
+ name: z.ZodNullable<z.ZodString>;
22568
+ email: z.ZodNullable<z.ZodString>;
22569
+ image: z.ZodNullable<z.ZodString>;
22570
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22571
+ }, z.core.$strip>>>>;
22572
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
22573
+ displayName: z.ZodNullable<z.ZodString>;
22574
+ ownerName: z.ZodNullable<z.ZodString>;
22575
+ channel: z.ZodNullable<z.ZodEnum<{
22576
+ automation: "automation";
22577
+ browser: "browser";
22578
+ cli: "cli";
22579
+ import: "import";
22580
+ mcp: "mcp";
22581
+ openapi: "openapi";
22582
+ sdk: "sdk";
22583
+ skill: "skill";
22584
+ web_ui: "web_ui";
22585
+ webhook: "webhook";
22586
+ }>>;
22587
+ }, z.core.$strip>>>;
22588
+ sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
22589
+ reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
22590
+ mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
22591
+ rejectedReason: z.ZodNullable<z.ZodString>;
22592
+ reviewedAt: z.ZodNullable<z.ZodString>;
22593
+ mergedAt: z.ZodNullable<z.ZodString>;
22594
+ createdAt: z.ZodString;
22595
+ updatedAt: z.ZodString;
22596
+ base: z.ZodNullable<z.ZodObject<{
22597
+ id: z.ZodString;
22598
+ nodeId: z.ZodString;
22599
+ slug: z.ZodString;
22600
+ name: z.ZodString;
22601
+ description: z.ZodString;
22602
+ reviewPolicy: z.ZodObject<{
22603
+ kind: z.ZodLiteral<"single">;
22604
+ requiredApprovals: z.ZodNumber;
22605
+ }, z.core.$strip>;
22606
+ createdAt: z.ZodString;
22607
+ fields: z.ZodArray<z.ZodObject<{
22608
+ id: z.ZodString;
22609
+ baseId: z.ZodString;
22610
+ slug: z.ZodString;
22611
+ name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
22612
+ de: "de";
22613
+ en: "en";
22614
+ es: "es";
22615
+ fr: "fr";
22616
+ ja: "ja";
22617
+ ko: "ko";
22618
+ pt: "pt";
22619
+ "zh-CN": "zh-CN";
22620
+ "zh-TW": "zh-TW";
22621
+ }> & z.core.$partial, z.ZodString>]>;
22622
+ type: z.ZodEnum<{
22623
+ ai_summary: "ai_summary";
22624
+ ai_tags: "ai_tags";
22625
+ attachment: "attachment";
22626
+ auto_number: "auto_number";
22627
+ checkbox: "checkbox";
22628
+ code: "code";
22629
+ created_by: "created_by";
22630
+ created_time: "created_time";
22631
+ date: "date";
22632
+ email: "email";
22633
+ embed: "embed";
22634
+ formula: "formula";
22635
+ html: "html";
22636
+ json: "json";
22637
+ longtext: "longtext";
22638
+ lookup: "lookup";
22639
+ markdown: "markdown";
22640
+ multiselect: "multiselect";
22641
+ number: "number";
22642
+ phone: "phone";
22643
+ relation: "relation";
22644
+ select: "select";
22645
+ text: "text";
22646
+ updated_by: "updated_by";
22647
+ updated_time: "updated_time";
22648
+ url: "url";
22649
+ whiteboard: "whiteboard";
22650
+ yaml: "yaml";
22651
+ }>;
22652
+ required: z.ZodBoolean;
22653
+ position: z.ZodNumber;
22654
+ options: z.ZodDefault<z.ZodObject<{
22655
+ ai: z.ZodOptional<z.ZodObject<{
22656
+ model: z.ZodOptional<z.ZodString>;
22657
+ prompt: z.ZodOptional<z.ZodString>;
22658
+ reviewRequired: z.ZodOptional<z.ZodBoolean>;
22659
+ sourceFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
22660
+ }, z.core.$strip>>;
22661
+ attachment: z.ZodOptional<z.ZodObject<{
22662
+ maxFiles: z.ZodOptional<z.ZodNumber>;
22663
+ allowedMimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
22664
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
22665
+ }, z.core.$strip>>;
22666
+ choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
22667
+ color: z.ZodOptional<z.ZodString>;
22668
+ id: z.ZodString;
22669
+ name: z.ZodString;
22670
+ }, z.core.$strip>>>;
22671
+ code: z.ZodOptional<z.ZodObject<{
22672
+ language: z.ZodOptional<z.ZodString>;
22673
+ }, z.core.$strip>>;
22674
+ embed: z.ZodOptional<z.ZodObject<{
22675
+ aspectRatio: z.ZodOptional<z.ZodEnum<{
22676
+ "16:9": "16:9";
22677
+ "1:1": "1:1";
22678
+ "4:3": "4:3";
22679
+ }>>;
22680
+ height: z.ZodOptional<z.ZodNumber>;
22681
+ providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
22682
+ }, z.core.$strip>>;
22683
+ formula: z.ZodOptional<z.ZodObject<{
22684
+ expression: z.ZodString;
22685
+ }, z.core.$strip>>;
22686
+ inverseFieldId: z.ZodOptional<z.ZodString>;
22687
+ lookup: z.ZodOptional<z.ZodObject<{
22688
+ relationFieldSlug: z.ZodString;
22689
+ targetFieldSlug: z.ZodString;
22690
+ rollup: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
22691
+ average: "average";
22692
+ concatenate: "concatenate";
22693
+ count: "count";
22694
+ max: "max";
22695
+ min: "min";
22696
+ sum: "sum";
22697
+ values: "values";
22698
+ }>>>;
22699
+ limit: z.ZodOptional<z.ZodEnum<{
22700
+ all: "all";
22701
+ first: "first";
22702
+ }>>;
22703
+ }, z.core.$strip>>;
22704
+ multiple: z.ZodOptional<z.ZodBoolean>;
22705
+ number: z.ZodOptional<z.ZodObject<{
22706
+ format: z.ZodOptional<z.ZodEnum<{
22707
+ currency: "currency";
22708
+ plain: "plain";
22709
+ }>>;
22710
+ currency: z.ZodOptional<z.ZodString>;
22711
+ locale: z.ZodOptional<z.ZodString>;
22712
+ }, z.core.$strip>>;
22713
+ targetBaseId: z.ZodOptional<z.ZodString>;
22714
+ targetBaseSlug: z.ZodOptional<z.ZodString>;
22715
+ }, z.core.$strip>>;
22716
+ }, z.core.$strip>>;
22717
+ }, z.core.$strip>>;
22718
+ node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
22719
+ operations: z.ZodArray<z.ZodObject<{
22720
+ id: z.ZodString;
22721
+ changeRequestId: z.ZodString;
22722
+ baseId: z.ZodNullable<z.ZodString>;
22723
+ targetType: z.ZodEnum<{
22724
+ base: "base";
22725
+ node: "node";
22726
+ }>;
22727
+ nodeId: z.ZodNullable<z.ZodString>;
22728
+ operation: z.ZodEnum<{
22729
+ [x: `${string}_file_create`]: `${string}_file_create`;
22730
+ [x: `${string}_file_delete`]: `${string}_file_delete`;
22731
+ [x: `${string}_file_update`]: `${string}_file_update`;
22732
+ [x: `${string}_metadata_update`]: `${string}_metadata_update`;
22733
+ base_add_field: "base_add_field";
22734
+ base_archive: "base_archive";
22735
+ base_convert_field: "base_convert_field";
22736
+ base_delete_field: "base_delete_field";
22737
+ base_reorder_fields: "base_reorder_fields";
22738
+ base_restore: "base_restore";
22739
+ base_restore_field: "base_restore_field";
22740
+ base_update_field: "base_update_field";
22741
+ doc_update: "doc_update";
22742
+ html_document_update: "html_document_update";
22743
+ node_create: "node_create";
22744
+ node_delete: "node_delete";
22745
+ node_move: "node_move";
22746
+ node_rename: "node_rename";
22747
+ node_restore: "node_restore";
22748
+ record_create: "record_create";
22749
+ record_delete: "record_delete";
22750
+ record_restore: "record_restore";
22751
+ record_update: "record_update";
22752
+ record_variant: "record_variant";
22753
+ view_create: "view_create";
22754
+ view_delete: "view_delete";
22755
+ view_restore: "view_restore";
22756
+ view_update: "view_update";
22757
+ whiteboard_document_update: "whiteboard_document_update";
22758
+ workflow_document_update: "workflow_document_update";
22759
+ }>;
22760
+ status: z.ZodEnum<{
22761
+ archived: "archived";
22762
+ failed: "failed";
22763
+ merged: "merged";
22764
+ pending: "pending";
22765
+ }>;
22766
+ targetRecordId: z.ZodNullable<z.ZodString>;
22767
+ targetViewId: z.ZodNullable<z.ZodString>;
22768
+ filePath: z.ZodNullable<z.ZodString>;
22769
+ sourceRecordId: z.ZodNullable<z.ZodString>;
22770
+ sourceCommitId: z.ZodNullable<z.ZodString>;
22771
+ baseCommitId: z.ZodNullable<z.ZodString>;
22772
+ headCommitId: z.ZodString;
22773
+ deleteMode: z.ZodEnum<{
22774
+ archive: "archive";
22775
+ }>;
22776
+ mergedRecordId: z.ZodNullable<z.ZodString>;
22777
+ mergedViewId: z.ZodNullable<z.ZodString>;
22778
+ position: z.ZodNumber;
22779
+ createdAt: z.ZodString;
22780
+ updatedAt: z.ZodString;
22781
+ headCommit: z.ZodObject<{
22782
+ id: z.ZodString;
22783
+ baseId: z.ZodNullable<z.ZodString>;
22784
+ targetType: z.ZodEnum<{
22785
+ base: "base";
22786
+ node: "node";
22787
+ }>;
22788
+ nodeId: z.ZodNullable<z.ZodString>;
22789
+ operationId: z.ZodNullable<z.ZodString>;
22790
+ parentCommitId: z.ZodNullable<z.ZodString>;
22791
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
22792
+ operation: z.ZodEnum<{
22793
+ [x: `${string}_file_create`]: `${string}_file_create`;
22794
+ [x: `${string}_file_delete`]: `${string}_file_delete`;
22795
+ [x: `${string}_file_update`]: `${string}_file_update`;
22796
+ [x: `${string}_metadata_update`]: `${string}_metadata_update`;
22797
+ base_add_field: "base_add_field";
22798
+ base_archive: "base_archive";
22799
+ base_convert_field: "base_convert_field";
22800
+ base_delete_field: "base_delete_field";
22801
+ base_reorder_fields: "base_reorder_fields";
22802
+ base_restore: "base_restore";
22803
+ base_restore_field: "base_restore_field";
22804
+ base_update_field: "base_update_field";
22805
+ doc_update: "doc_update";
22806
+ html_document_update: "html_document_update";
22807
+ node_create: "node_create";
22808
+ node_delete: "node_delete";
22809
+ node_move: "node_move";
22810
+ node_rename: "node_rename";
22811
+ node_restore: "node_restore";
22812
+ record_create: "record_create";
22813
+ record_delete: "record_delete";
22814
+ record_restore: "record_restore";
22815
+ record_update: "record_update";
22816
+ record_variant: "record_variant";
22817
+ view_create: "view_create";
22818
+ view_delete: "view_delete";
22819
+ view_restore: "view_restore";
22820
+ view_update: "view_update";
22821
+ whiteboard_document_update: "whiteboard_document_update";
22822
+ workflow_document_update: "workflow_document_update";
22823
+ }>;
22824
+ message: z.ZodString;
22825
+ author: z.ZodString;
22826
+ authorUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
22827
+ id: z.ZodString;
22828
+ name: z.ZodNullable<z.ZodString>;
22829
+ email: z.ZodNullable<z.ZodString>;
22830
+ image: z.ZodNullable<z.ZodString>;
22831
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22832
+ }, z.core.$strip>>>>;
22833
+ createdAt: z.ZodString;
22834
+ }, z.core.$strip>;
22835
+ baseFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22836
+ }, z.core.$strip>>;
22837
+ primaryOperation: z.ZodNullable<z.ZodObject<{
22838
+ id: z.ZodString;
22839
+ changeRequestId: z.ZodString;
22840
+ baseId: z.ZodNullable<z.ZodString>;
22841
+ targetType: z.ZodEnum<{
22842
+ base: "base";
22843
+ node: "node";
22844
+ }>;
22845
+ nodeId: z.ZodNullable<z.ZodString>;
22846
+ operation: z.ZodEnum<{
22847
+ [x: `${string}_file_create`]: `${string}_file_create`;
22848
+ [x: `${string}_file_delete`]: `${string}_file_delete`;
22849
+ [x: `${string}_file_update`]: `${string}_file_update`;
22850
+ [x: `${string}_metadata_update`]: `${string}_metadata_update`;
22851
+ base_add_field: "base_add_field";
22852
+ base_archive: "base_archive";
22853
+ base_convert_field: "base_convert_field";
22854
+ base_delete_field: "base_delete_field";
22855
+ base_reorder_fields: "base_reorder_fields";
22856
+ base_restore: "base_restore";
22857
+ base_restore_field: "base_restore_field";
22858
+ base_update_field: "base_update_field";
22859
+ doc_update: "doc_update";
22860
+ html_document_update: "html_document_update";
22861
+ node_create: "node_create";
22862
+ node_delete: "node_delete";
22863
+ node_move: "node_move";
22864
+ node_rename: "node_rename";
22865
+ node_restore: "node_restore";
22866
+ record_create: "record_create";
22867
+ record_delete: "record_delete";
22868
+ record_restore: "record_restore";
22869
+ record_update: "record_update";
22870
+ record_variant: "record_variant";
22871
+ view_create: "view_create";
22872
+ view_delete: "view_delete";
22873
+ view_restore: "view_restore";
22874
+ view_update: "view_update";
22875
+ whiteboard_document_update: "whiteboard_document_update";
22876
+ workflow_document_update: "workflow_document_update";
22877
+ }>;
22878
+ status: z.ZodEnum<{
22879
+ archived: "archived";
22880
+ failed: "failed";
22881
+ merged: "merged";
22882
+ pending: "pending";
22883
+ }>;
22884
+ targetRecordId: z.ZodNullable<z.ZodString>;
22885
+ targetViewId: z.ZodNullable<z.ZodString>;
22886
+ filePath: z.ZodNullable<z.ZodString>;
22887
+ sourceRecordId: z.ZodNullable<z.ZodString>;
22888
+ sourceCommitId: z.ZodNullable<z.ZodString>;
22889
+ baseCommitId: z.ZodNullable<z.ZodString>;
22890
+ headCommitId: z.ZodString;
22891
+ deleteMode: z.ZodEnum<{
22892
+ archive: "archive";
22893
+ }>;
22894
+ mergedRecordId: z.ZodNullable<z.ZodString>;
22895
+ mergedViewId: z.ZodNullable<z.ZodString>;
22896
+ position: z.ZodNumber;
22897
+ createdAt: z.ZodString;
22898
+ updatedAt: z.ZodString;
22899
+ headCommit: z.ZodObject<{
22900
+ id: z.ZodString;
22901
+ baseId: z.ZodNullable<z.ZodString>;
22902
+ targetType: z.ZodEnum<{
22903
+ base: "base";
22904
+ node: "node";
22905
+ }>;
22906
+ nodeId: z.ZodNullable<z.ZodString>;
22907
+ operationId: z.ZodNullable<z.ZodString>;
22908
+ parentCommitId: z.ZodNullable<z.ZodString>;
22909
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
22910
+ operation: z.ZodEnum<{
22911
+ [x: `${string}_file_create`]: `${string}_file_create`;
22912
+ [x: `${string}_file_delete`]: `${string}_file_delete`;
22913
+ [x: `${string}_file_update`]: `${string}_file_update`;
22914
+ [x: `${string}_metadata_update`]: `${string}_metadata_update`;
22915
+ base_add_field: "base_add_field";
22916
+ base_archive: "base_archive";
22917
+ base_convert_field: "base_convert_field";
22918
+ base_delete_field: "base_delete_field";
22919
+ base_reorder_fields: "base_reorder_fields";
22920
+ base_restore: "base_restore";
22921
+ base_restore_field: "base_restore_field";
22922
+ base_update_field: "base_update_field";
22923
+ doc_update: "doc_update";
22924
+ html_document_update: "html_document_update";
22925
+ node_create: "node_create";
22926
+ node_delete: "node_delete";
22927
+ node_move: "node_move";
22928
+ node_rename: "node_rename";
22929
+ node_restore: "node_restore";
22930
+ record_create: "record_create";
22931
+ record_delete: "record_delete";
22932
+ record_restore: "record_restore";
22933
+ record_update: "record_update";
22934
+ record_variant: "record_variant";
22935
+ view_create: "view_create";
22936
+ view_delete: "view_delete";
22937
+ view_restore: "view_restore";
22938
+ view_update: "view_update";
22939
+ whiteboard_document_update: "whiteboard_document_update";
22940
+ workflow_document_update: "workflow_document_update";
22941
+ }>;
22942
+ message: z.ZodString;
22943
+ author: z.ZodString;
22944
+ authorUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
22945
+ id: z.ZodString;
22946
+ name: z.ZodNullable<z.ZodString>;
22947
+ email: z.ZodNullable<z.ZodString>;
22948
+ image: z.ZodNullable<z.ZodString>;
22949
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22950
+ }, z.core.$strip>>>>;
22951
+ createdAt: z.ZodString;
22952
+ }, z.core.$strip>;
22953
+ baseFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22954
+ }, z.core.$strip>>;
22955
+ operationCount: z.ZodNumber;
22956
+ reviews: z.ZodArray<z.ZodObject<{
22957
+ id: z.ZodString;
22958
+ changeRequestId: z.ZodString;
22959
+ reviewerId: z.ZodString;
22960
+ reviewer: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
22961
+ id: z.ZodString;
22962
+ name: z.ZodNullable<z.ZodString>;
22963
+ email: z.ZodNullable<z.ZodString>;
22964
+ image: z.ZodNullable<z.ZodString>;
22965
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22966
+ }, z.core.$strip>>>>;
22967
+ verdict: z.ZodEnum<{
22968
+ approved: "approved";
22969
+ rejected: "rejected";
22970
+ }>;
22971
+ reason: z.ZodNullable<z.ZodString>;
22972
+ visibleOperationHeads: z.ZodRecord<z.ZodString, z.ZodString>;
22973
+ createdAt: z.ZodString;
22974
+ }, z.core.$strip>>;
22975
+ }, z.core.$strip>;
22976
+ }, z.core.$strip>, z.ZodObject<{
22977
+ kind: z.ZodLiteral<"operation">;
22978
+ timestamp: z.ZodString;
22979
+ operationId: z.ZodString;
22980
+ changeRequest: z.ZodObject<{
22981
+ id: z.ZodString;
22982
+ baseId: z.ZodNullable<z.ZodString>;
22983
+ targetType: z.ZodEnum<{
22984
+ base: "base";
22985
+ node: "node";
22986
+ }>;
22987
+ nodeId: z.ZodNullable<z.ZodString>;
22988
+ status: z.ZodEnum<{
22989
+ abandoned: "abandoned";
22990
+ approved: "approved";
22991
+ changes_requested: "changes_requested";
22992
+ conflict: "conflict";
22993
+ in_review: "in_review";
22994
+ merged: "merged";
22995
+ rejected: "rejected";
22996
+ }>;
22997
+ submittedBy: z.ZodString;
22998
+ submittedByUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
22999
+ id: z.ZodString;
23000
+ name: z.ZodNullable<z.ZodString>;
23001
+ email: z.ZodNullable<z.ZodString>;
23002
+ image: z.ZodNullable<z.ZodString>;
23003
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23004
+ }, z.core.$strip>>>>;
23005
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
23006
+ displayName: z.ZodNullable<z.ZodString>;
23007
+ ownerName: z.ZodNullable<z.ZodString>;
23008
+ channel: z.ZodNullable<z.ZodEnum<{
23009
+ automation: "automation";
23010
+ browser: "browser";
23011
+ cli: "cli";
23012
+ import: "import";
23013
+ mcp: "mcp";
23014
+ openapi: "openapi";
23015
+ sdk: "sdk";
23016
+ skill: "skill";
23017
+ web_ui: "web_ui";
23018
+ webhook: "webhook";
23019
+ }>>;
23020
+ }, z.core.$strip>>>;
23021
+ sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23022
+ reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23023
+ mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23024
+ rejectedReason: z.ZodNullable<z.ZodString>;
23025
+ reviewedAt: z.ZodNullable<z.ZodString>;
23026
+ mergedAt: z.ZodNullable<z.ZodString>;
23027
+ createdAt: z.ZodString;
23028
+ updatedAt: z.ZodString;
23029
+ base: z.ZodNullable<z.ZodObject<{
23030
+ id: z.ZodString;
23031
+ nodeId: z.ZodString;
23032
+ slug: z.ZodString;
23033
+ name: z.ZodString;
23034
+ description: z.ZodString;
23035
+ reviewPolicy: z.ZodObject<{
23036
+ kind: z.ZodLiteral<"single">;
23037
+ requiredApprovals: z.ZodNumber;
23038
+ }, z.core.$strip>;
23039
+ createdAt: z.ZodString;
23040
+ fields: z.ZodArray<z.ZodObject<{
23041
+ id: z.ZodString;
23042
+ baseId: z.ZodString;
23043
+ slug: z.ZodString;
23044
+ name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
23045
+ de: "de";
23046
+ en: "en";
23047
+ es: "es";
23048
+ fr: "fr";
23049
+ ja: "ja";
23050
+ ko: "ko";
23051
+ pt: "pt";
23052
+ "zh-CN": "zh-CN";
23053
+ "zh-TW": "zh-TW";
23054
+ }> & z.core.$partial, z.ZodString>]>;
23055
+ type: z.ZodEnum<{
23056
+ ai_summary: "ai_summary";
23057
+ ai_tags: "ai_tags";
23058
+ attachment: "attachment";
23059
+ auto_number: "auto_number";
23060
+ checkbox: "checkbox";
23061
+ code: "code";
23062
+ created_by: "created_by";
23063
+ created_time: "created_time";
23064
+ date: "date";
23065
+ email: "email";
23066
+ embed: "embed";
23067
+ formula: "formula";
23068
+ html: "html";
23069
+ json: "json";
23070
+ longtext: "longtext";
23071
+ lookup: "lookup";
23072
+ markdown: "markdown";
23073
+ multiselect: "multiselect";
23074
+ number: "number";
23075
+ phone: "phone";
23076
+ relation: "relation";
23077
+ select: "select";
23078
+ text: "text";
23079
+ updated_by: "updated_by";
23080
+ updated_time: "updated_time";
23081
+ url: "url";
23082
+ whiteboard: "whiteboard";
23083
+ yaml: "yaml";
23084
+ }>;
23085
+ required: z.ZodBoolean;
23086
+ position: z.ZodNumber;
23087
+ options: z.ZodDefault<z.ZodObject<{
23088
+ ai: z.ZodOptional<z.ZodObject<{
23089
+ model: z.ZodOptional<z.ZodString>;
23090
+ prompt: z.ZodOptional<z.ZodString>;
23091
+ reviewRequired: z.ZodOptional<z.ZodBoolean>;
23092
+ sourceFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
23093
+ }, z.core.$strip>>;
23094
+ attachment: z.ZodOptional<z.ZodObject<{
23095
+ maxFiles: z.ZodOptional<z.ZodNumber>;
23096
+ allowedMimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
23097
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
23098
+ }, z.core.$strip>>;
23099
+ choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
23100
+ color: z.ZodOptional<z.ZodString>;
23101
+ id: z.ZodString;
23102
+ name: z.ZodString;
23103
+ }, z.core.$strip>>>;
23104
+ code: z.ZodOptional<z.ZodObject<{
23105
+ language: z.ZodOptional<z.ZodString>;
23106
+ }, z.core.$strip>>;
23107
+ embed: z.ZodOptional<z.ZodObject<{
23108
+ aspectRatio: z.ZodOptional<z.ZodEnum<{
23109
+ "16:9": "16:9";
23110
+ "1:1": "1:1";
23111
+ "4:3": "4:3";
23112
+ }>>;
23113
+ height: z.ZodOptional<z.ZodNumber>;
23114
+ providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
23115
+ }, z.core.$strip>>;
23116
+ formula: z.ZodOptional<z.ZodObject<{
23117
+ expression: z.ZodString;
23118
+ }, z.core.$strip>>;
23119
+ inverseFieldId: z.ZodOptional<z.ZodString>;
23120
+ lookup: z.ZodOptional<z.ZodObject<{
23121
+ relationFieldSlug: z.ZodString;
23122
+ targetFieldSlug: z.ZodString;
23123
+ rollup: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
23124
+ average: "average";
23125
+ concatenate: "concatenate";
23126
+ count: "count";
23127
+ max: "max";
23128
+ min: "min";
23129
+ sum: "sum";
23130
+ values: "values";
23131
+ }>>>;
23132
+ limit: z.ZodOptional<z.ZodEnum<{
23133
+ all: "all";
23134
+ first: "first";
23135
+ }>>;
23136
+ }, z.core.$strip>>;
23137
+ multiple: z.ZodOptional<z.ZodBoolean>;
23138
+ number: z.ZodOptional<z.ZodObject<{
23139
+ format: z.ZodOptional<z.ZodEnum<{
23140
+ currency: "currency";
23141
+ plain: "plain";
23142
+ }>>;
23143
+ currency: z.ZodOptional<z.ZodString>;
23144
+ locale: z.ZodOptional<z.ZodString>;
23145
+ }, z.core.$strip>>;
23146
+ targetBaseId: z.ZodOptional<z.ZodString>;
23147
+ targetBaseSlug: z.ZodOptional<z.ZodString>;
23148
+ }, z.core.$strip>>;
23149
+ }, z.core.$strip>>;
23150
+ }, z.core.$strip>>;
23151
+ node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
23152
+ operations: z.ZodArray<z.ZodObject<{
23153
+ id: z.ZodString;
23154
+ changeRequestId: z.ZodString;
23155
+ baseId: z.ZodNullable<z.ZodString>;
23156
+ targetType: z.ZodEnum<{
23157
+ base: "base";
23158
+ node: "node";
23159
+ }>;
23160
+ nodeId: z.ZodNullable<z.ZodString>;
23161
+ operation: z.ZodEnum<{
23162
+ [x: `${string}_file_create`]: `${string}_file_create`;
23163
+ [x: `${string}_file_delete`]: `${string}_file_delete`;
23164
+ [x: `${string}_file_update`]: `${string}_file_update`;
23165
+ [x: `${string}_metadata_update`]: `${string}_metadata_update`;
23166
+ base_add_field: "base_add_field";
23167
+ base_archive: "base_archive";
23168
+ base_convert_field: "base_convert_field";
23169
+ base_delete_field: "base_delete_field";
23170
+ base_reorder_fields: "base_reorder_fields";
23171
+ base_restore: "base_restore";
23172
+ base_restore_field: "base_restore_field";
23173
+ base_update_field: "base_update_field";
23174
+ doc_update: "doc_update";
23175
+ html_document_update: "html_document_update";
23176
+ node_create: "node_create";
23177
+ node_delete: "node_delete";
23178
+ node_move: "node_move";
23179
+ node_rename: "node_rename";
23180
+ node_restore: "node_restore";
23181
+ record_create: "record_create";
23182
+ record_delete: "record_delete";
23183
+ record_restore: "record_restore";
23184
+ record_update: "record_update";
23185
+ record_variant: "record_variant";
23186
+ view_create: "view_create";
23187
+ view_delete: "view_delete";
23188
+ view_restore: "view_restore";
23189
+ view_update: "view_update";
23190
+ whiteboard_document_update: "whiteboard_document_update";
23191
+ workflow_document_update: "workflow_document_update";
23192
+ }>;
23193
+ status: z.ZodEnum<{
23194
+ archived: "archived";
23195
+ failed: "failed";
23196
+ merged: "merged";
23197
+ pending: "pending";
23198
+ }>;
23199
+ targetRecordId: z.ZodNullable<z.ZodString>;
23200
+ targetViewId: z.ZodNullable<z.ZodString>;
23201
+ filePath: z.ZodNullable<z.ZodString>;
23202
+ sourceRecordId: z.ZodNullable<z.ZodString>;
23203
+ sourceCommitId: z.ZodNullable<z.ZodString>;
23204
+ baseCommitId: z.ZodNullable<z.ZodString>;
23205
+ headCommitId: z.ZodString;
23206
+ deleteMode: z.ZodEnum<{
23207
+ archive: "archive";
23208
+ }>;
23209
+ mergedRecordId: z.ZodNullable<z.ZodString>;
23210
+ mergedViewId: z.ZodNullable<z.ZodString>;
23211
+ position: z.ZodNumber;
23212
+ createdAt: z.ZodString;
23213
+ updatedAt: z.ZodString;
23214
+ headCommit: z.ZodObject<{
23215
+ id: z.ZodString;
23216
+ baseId: z.ZodNullable<z.ZodString>;
23217
+ targetType: z.ZodEnum<{
23218
+ base: "base";
23219
+ node: "node";
23220
+ }>;
23221
+ nodeId: z.ZodNullable<z.ZodString>;
23222
+ operationId: z.ZodNullable<z.ZodString>;
23223
+ parentCommitId: z.ZodNullable<z.ZodString>;
23224
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23225
+ operation: z.ZodEnum<{
23226
+ [x: `${string}_file_create`]: `${string}_file_create`;
23227
+ [x: `${string}_file_delete`]: `${string}_file_delete`;
23228
+ [x: `${string}_file_update`]: `${string}_file_update`;
23229
+ [x: `${string}_metadata_update`]: `${string}_metadata_update`;
23230
+ base_add_field: "base_add_field";
23231
+ base_archive: "base_archive";
23232
+ base_convert_field: "base_convert_field";
23233
+ base_delete_field: "base_delete_field";
23234
+ base_reorder_fields: "base_reorder_fields";
23235
+ base_restore: "base_restore";
23236
+ base_restore_field: "base_restore_field";
23237
+ base_update_field: "base_update_field";
23238
+ doc_update: "doc_update";
23239
+ html_document_update: "html_document_update";
23240
+ node_create: "node_create";
23241
+ node_delete: "node_delete";
23242
+ node_move: "node_move";
23243
+ node_rename: "node_rename";
23244
+ node_restore: "node_restore";
23245
+ record_create: "record_create";
23246
+ record_delete: "record_delete";
23247
+ record_restore: "record_restore";
23248
+ record_update: "record_update";
23249
+ record_variant: "record_variant";
23250
+ view_create: "view_create";
23251
+ view_delete: "view_delete";
23252
+ view_restore: "view_restore";
23253
+ view_update: "view_update";
23254
+ whiteboard_document_update: "whiteboard_document_update";
23255
+ workflow_document_update: "workflow_document_update";
23256
+ }>;
23257
+ message: z.ZodString;
23258
+ author: z.ZodString;
23259
+ authorUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
23260
+ id: z.ZodString;
23261
+ name: z.ZodNullable<z.ZodString>;
23262
+ email: z.ZodNullable<z.ZodString>;
23263
+ image: z.ZodNullable<z.ZodString>;
23264
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23265
+ }, z.core.$strip>>>>;
23266
+ createdAt: z.ZodString;
23267
+ }, z.core.$strip>;
23268
+ baseFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
23269
+ }, z.core.$strip>>;
23270
+ primaryOperation: z.ZodNullable<z.ZodObject<{
23271
+ id: z.ZodString;
23272
+ changeRequestId: z.ZodString;
23273
+ baseId: z.ZodNullable<z.ZodString>;
23274
+ targetType: z.ZodEnum<{
23275
+ base: "base";
23276
+ node: "node";
23277
+ }>;
23278
+ nodeId: z.ZodNullable<z.ZodString>;
23279
+ operation: z.ZodEnum<{
23280
+ [x: `${string}_file_create`]: `${string}_file_create`;
23281
+ [x: `${string}_file_delete`]: `${string}_file_delete`;
23282
+ [x: `${string}_file_update`]: `${string}_file_update`;
23283
+ [x: `${string}_metadata_update`]: `${string}_metadata_update`;
23284
+ base_add_field: "base_add_field";
23285
+ base_archive: "base_archive";
23286
+ base_convert_field: "base_convert_field";
23287
+ base_delete_field: "base_delete_field";
23288
+ base_reorder_fields: "base_reorder_fields";
23289
+ base_restore: "base_restore";
23290
+ base_restore_field: "base_restore_field";
23291
+ base_update_field: "base_update_field";
23292
+ doc_update: "doc_update";
23293
+ html_document_update: "html_document_update";
23294
+ node_create: "node_create";
23295
+ node_delete: "node_delete";
23296
+ node_move: "node_move";
23297
+ node_rename: "node_rename";
23298
+ node_restore: "node_restore";
23299
+ record_create: "record_create";
23300
+ record_delete: "record_delete";
23301
+ record_restore: "record_restore";
23302
+ record_update: "record_update";
23303
+ record_variant: "record_variant";
23304
+ view_create: "view_create";
23305
+ view_delete: "view_delete";
23306
+ view_restore: "view_restore";
23307
+ view_update: "view_update";
23308
+ whiteboard_document_update: "whiteboard_document_update";
23309
+ workflow_document_update: "workflow_document_update";
23310
+ }>;
23311
+ status: z.ZodEnum<{
23312
+ archived: "archived";
23313
+ failed: "failed";
23314
+ merged: "merged";
23315
+ pending: "pending";
23316
+ }>;
23317
+ targetRecordId: z.ZodNullable<z.ZodString>;
23318
+ targetViewId: z.ZodNullable<z.ZodString>;
23319
+ filePath: z.ZodNullable<z.ZodString>;
23320
+ sourceRecordId: z.ZodNullable<z.ZodString>;
23321
+ sourceCommitId: z.ZodNullable<z.ZodString>;
23322
+ baseCommitId: z.ZodNullable<z.ZodString>;
23323
+ headCommitId: z.ZodString;
23324
+ deleteMode: z.ZodEnum<{
23325
+ archive: "archive";
23326
+ }>;
23327
+ mergedRecordId: z.ZodNullable<z.ZodString>;
23328
+ mergedViewId: z.ZodNullable<z.ZodString>;
23329
+ position: z.ZodNumber;
23330
+ createdAt: z.ZodString;
23331
+ updatedAt: z.ZodString;
23332
+ headCommit: z.ZodObject<{
23333
+ id: z.ZodString;
23334
+ baseId: z.ZodNullable<z.ZodString>;
23335
+ targetType: z.ZodEnum<{
23336
+ base: "base";
23337
+ node: "node";
23338
+ }>;
23339
+ nodeId: z.ZodNullable<z.ZodString>;
23340
+ operationId: z.ZodNullable<z.ZodString>;
23341
+ parentCommitId: z.ZodNullable<z.ZodString>;
23342
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23343
+ operation: z.ZodEnum<{
23344
+ [x: `${string}_file_create`]: `${string}_file_create`;
23345
+ [x: `${string}_file_delete`]: `${string}_file_delete`;
23346
+ [x: `${string}_file_update`]: `${string}_file_update`;
23347
+ [x: `${string}_metadata_update`]: `${string}_metadata_update`;
23348
+ base_add_field: "base_add_field";
23349
+ base_archive: "base_archive";
23350
+ base_convert_field: "base_convert_field";
23351
+ base_delete_field: "base_delete_field";
23352
+ base_reorder_fields: "base_reorder_fields";
23353
+ base_restore: "base_restore";
23354
+ base_restore_field: "base_restore_field";
23355
+ base_update_field: "base_update_field";
23356
+ doc_update: "doc_update";
23357
+ html_document_update: "html_document_update";
23358
+ node_create: "node_create";
23359
+ node_delete: "node_delete";
23360
+ node_move: "node_move";
23361
+ node_rename: "node_rename";
23362
+ node_restore: "node_restore";
23363
+ record_create: "record_create";
23364
+ record_delete: "record_delete";
23365
+ record_restore: "record_restore";
23366
+ record_update: "record_update";
23367
+ record_variant: "record_variant";
23368
+ view_create: "view_create";
23369
+ view_delete: "view_delete";
23370
+ view_restore: "view_restore";
23371
+ view_update: "view_update";
23372
+ whiteboard_document_update: "whiteboard_document_update";
23373
+ workflow_document_update: "workflow_document_update";
23374
+ }>;
23375
+ message: z.ZodString;
23376
+ author: z.ZodString;
23377
+ authorUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
23378
+ id: z.ZodString;
23379
+ name: z.ZodNullable<z.ZodString>;
23380
+ email: z.ZodNullable<z.ZodString>;
23381
+ image: z.ZodNullable<z.ZodString>;
23382
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23383
+ }, z.core.$strip>>>>;
23384
+ createdAt: z.ZodString;
23385
+ }, z.core.$strip>;
23386
+ baseFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
23387
+ }, z.core.$strip>>;
23388
+ operationCount: z.ZodNumber;
23389
+ reviews: z.ZodArray<z.ZodObject<{
23390
+ id: z.ZodString;
23391
+ changeRequestId: z.ZodString;
23392
+ reviewerId: z.ZodString;
23393
+ reviewer: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
23394
+ id: z.ZodString;
23395
+ name: z.ZodNullable<z.ZodString>;
23396
+ email: z.ZodNullable<z.ZodString>;
23397
+ image: z.ZodNullable<z.ZodString>;
23398
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23399
+ }, z.core.$strip>>>>;
23400
+ verdict: z.ZodEnum<{
23401
+ approved: "approved";
23402
+ rejected: "rejected";
23403
+ }>;
23404
+ reason: z.ZodNullable<z.ZodString>;
23405
+ visibleOperationHeads: z.ZodRecord<z.ZodString, z.ZodString>;
23406
+ createdAt: z.ZodString;
23407
+ }, z.core.$strip>>;
23408
+ }, z.core.$strip>;
23409
+ }, z.core.$strip>, z.ZodObject<{
23410
+ kind: z.ZodLiteral<"record">;
23411
+ timestamp: z.ZodString;
23412
+ record: z.ZodObject<{
23413
+ id: z.ZodString;
23414
+ baseId: z.ZodString;
23415
+ headCommitId: z.ZodString;
23416
+ parentRecordId: z.ZodNullable<z.ZodString>;
23417
+ parentCommitId: z.ZodNullable<z.ZodString>;
23418
+ status: z.ZodEnum<{
23419
+ active: "active";
23420
+ archived: "archived";
23421
+ }>;
23422
+ createdBy: z.ZodString;
23423
+ createdByUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
23424
+ id: z.ZodString;
23425
+ name: z.ZodNullable<z.ZodString>;
23426
+ email: z.ZodNullable<z.ZodString>;
23427
+ image: z.ZodNullable<z.ZodString>;
23428
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23429
+ }, z.core.$strip>>>>;
23430
+ archivedAt: z.ZodNullable<z.ZodString>;
23431
+ createdAt: z.ZodString;
23432
+ updatedAt: z.ZodString;
23433
+ base: z.ZodObject<{
23434
+ id: z.ZodString;
23435
+ nodeId: z.ZodString;
23436
+ slug: z.ZodString;
23437
+ name: z.ZodString;
23438
+ description: z.ZodString;
23439
+ reviewPolicy: z.ZodObject<{
23440
+ kind: z.ZodLiteral<"single">;
23441
+ requiredApprovals: z.ZodNumber;
23442
+ }, z.core.$strip>;
23443
+ createdAt: z.ZodString;
23444
+ fields: z.ZodArray<z.ZodObject<{
23445
+ id: z.ZodString;
23446
+ baseId: z.ZodString;
23447
+ slug: z.ZodString;
23448
+ name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
23449
+ de: "de";
23450
+ en: "en";
23451
+ es: "es";
23452
+ fr: "fr";
23453
+ ja: "ja";
23454
+ ko: "ko";
23455
+ pt: "pt";
23456
+ "zh-CN": "zh-CN";
23457
+ "zh-TW": "zh-TW";
23458
+ }> & z.core.$partial, z.ZodString>]>;
23459
+ type: z.ZodEnum<{
23460
+ ai_summary: "ai_summary";
23461
+ ai_tags: "ai_tags";
23462
+ attachment: "attachment";
23463
+ auto_number: "auto_number";
23464
+ checkbox: "checkbox";
23465
+ code: "code";
23466
+ created_by: "created_by";
23467
+ created_time: "created_time";
23468
+ date: "date";
23469
+ email: "email";
23470
+ embed: "embed";
23471
+ formula: "formula";
23472
+ html: "html";
23473
+ json: "json";
23474
+ longtext: "longtext";
23475
+ lookup: "lookup";
23476
+ markdown: "markdown";
23477
+ multiselect: "multiselect";
23478
+ number: "number";
23479
+ phone: "phone";
23480
+ relation: "relation";
23481
+ select: "select";
23482
+ text: "text";
23483
+ updated_by: "updated_by";
23484
+ updated_time: "updated_time";
23485
+ url: "url";
23486
+ whiteboard: "whiteboard";
23487
+ yaml: "yaml";
23488
+ }>;
23489
+ required: z.ZodBoolean;
23490
+ position: z.ZodNumber;
23491
+ options: z.ZodDefault<z.ZodObject<{
23492
+ ai: z.ZodOptional<z.ZodObject<{
23493
+ model: z.ZodOptional<z.ZodString>;
23494
+ prompt: z.ZodOptional<z.ZodString>;
23495
+ reviewRequired: z.ZodOptional<z.ZodBoolean>;
23496
+ sourceFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
23497
+ }, z.core.$strip>>;
23498
+ attachment: z.ZodOptional<z.ZodObject<{
23499
+ maxFiles: z.ZodOptional<z.ZodNumber>;
23500
+ allowedMimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
23501
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
23502
+ }, z.core.$strip>>;
23503
+ choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
23504
+ color: z.ZodOptional<z.ZodString>;
23505
+ id: z.ZodString;
23506
+ name: z.ZodString;
23507
+ }, z.core.$strip>>>;
23508
+ code: z.ZodOptional<z.ZodObject<{
23509
+ language: z.ZodOptional<z.ZodString>;
23510
+ }, z.core.$strip>>;
23511
+ embed: z.ZodOptional<z.ZodObject<{
23512
+ aspectRatio: z.ZodOptional<z.ZodEnum<{
23513
+ "16:9": "16:9";
23514
+ "1:1": "1:1";
23515
+ "4:3": "4:3";
23516
+ }>>;
23517
+ height: z.ZodOptional<z.ZodNumber>;
23518
+ providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
23519
+ }, z.core.$strip>>;
23520
+ formula: z.ZodOptional<z.ZodObject<{
23521
+ expression: z.ZodString;
23522
+ }, z.core.$strip>>;
23523
+ inverseFieldId: z.ZodOptional<z.ZodString>;
23524
+ lookup: z.ZodOptional<z.ZodObject<{
23525
+ relationFieldSlug: z.ZodString;
23526
+ targetFieldSlug: z.ZodString;
23527
+ rollup: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
23528
+ average: "average";
23529
+ concatenate: "concatenate";
23530
+ count: "count";
23531
+ max: "max";
23532
+ min: "min";
23533
+ sum: "sum";
23534
+ values: "values";
23535
+ }>>>;
23536
+ limit: z.ZodOptional<z.ZodEnum<{
23537
+ all: "all";
23538
+ first: "first";
23539
+ }>>;
23540
+ }, z.core.$strip>>;
23541
+ multiple: z.ZodOptional<z.ZodBoolean>;
23542
+ number: z.ZodOptional<z.ZodObject<{
23543
+ format: z.ZodOptional<z.ZodEnum<{
23544
+ currency: "currency";
23545
+ plain: "plain";
23546
+ }>>;
23547
+ currency: z.ZodOptional<z.ZodString>;
23548
+ locale: z.ZodOptional<z.ZodString>;
23549
+ }, z.core.$strip>>;
23550
+ targetBaseId: z.ZodOptional<z.ZodString>;
23551
+ targetBaseSlug: z.ZodOptional<z.ZodString>;
23552
+ }, z.core.$strip>>;
23553
+ }, z.core.$strip>>;
23554
+ }, z.core.$strip>;
23555
+ headCommit: z.ZodObject<{
23556
+ id: z.ZodString;
23557
+ baseId: z.ZodNullable<z.ZodString>;
23558
+ targetType: z.ZodEnum<{
23559
+ base: "base";
23560
+ node: "node";
23561
+ }>;
23562
+ nodeId: z.ZodNullable<z.ZodString>;
23563
+ operationId: z.ZodNullable<z.ZodString>;
23564
+ parentCommitId: z.ZodNullable<z.ZodString>;
23565
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23566
+ operation: z.ZodEnum<{
23567
+ [x: `${string}_file_create`]: `${string}_file_create`;
23568
+ [x: `${string}_file_delete`]: `${string}_file_delete`;
23569
+ [x: `${string}_file_update`]: `${string}_file_update`;
23570
+ [x: `${string}_metadata_update`]: `${string}_metadata_update`;
23571
+ base_add_field: "base_add_field";
23572
+ base_archive: "base_archive";
23573
+ base_convert_field: "base_convert_field";
23574
+ base_delete_field: "base_delete_field";
23575
+ base_reorder_fields: "base_reorder_fields";
23576
+ base_restore: "base_restore";
23577
+ base_restore_field: "base_restore_field";
23578
+ base_update_field: "base_update_field";
23579
+ doc_update: "doc_update";
23580
+ html_document_update: "html_document_update";
23581
+ node_create: "node_create";
23582
+ node_delete: "node_delete";
23583
+ node_move: "node_move";
23584
+ node_rename: "node_rename";
23585
+ node_restore: "node_restore";
23586
+ record_create: "record_create";
23587
+ record_delete: "record_delete";
23588
+ record_restore: "record_restore";
23589
+ record_update: "record_update";
23590
+ record_variant: "record_variant";
23591
+ view_create: "view_create";
23592
+ view_delete: "view_delete";
23593
+ view_restore: "view_restore";
23594
+ view_update: "view_update";
23595
+ whiteboard_document_update: "whiteboard_document_update";
23596
+ workflow_document_update: "workflow_document_update";
23597
+ }>;
23598
+ message: z.ZodString;
23599
+ author: z.ZodString;
23600
+ authorUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
23601
+ id: z.ZodString;
23602
+ name: z.ZodNullable<z.ZodString>;
23603
+ email: z.ZodNullable<z.ZodString>;
23604
+ image: z.ZodNullable<z.ZodString>;
23605
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23606
+ }, z.core.$strip>>>>;
23607
+ createdAt: z.ZodString;
23608
+ }, z.core.$strip>;
23609
+ }, z.core.$strip>;
23610
+ }, z.core.$strip>, z.ZodObject<{
23611
+ kind: z.ZodLiteral<"audit">;
23612
+ timestamp: z.ZodString;
23613
+ auditEvent: z.ZodObject<{
23614
+ id: z.ZodString;
23615
+ action: z.ZodEnum<{
23616
+ "airapp.created": "airapp.created";
23617
+ "asset.deleted": "asset.deleted";
23618
+ "asset.metadata_updated": "asset.metadata_updated";
23619
+ "asset.text_marked_none": "asset.text_marked_none";
23620
+ "asset.text_written": "asset.text_written";
23621
+ "base.created": "base.created";
23622
+ "change_request.created": "change_request.created";
23623
+ "change_request.deleted": "change_request.deleted";
23624
+ "change_request.merged": "change_request.merged";
23625
+ "change_request.reviewed": "change_request.reviewed";
23626
+ "change_request.updated": "change_request.updated";
23627
+ "doc.created": "doc.created";
23628
+ "doc.updated": "doc.updated";
23629
+ "drive.created": "drive.created";
23630
+ "field.created": "field.created";
23631
+ "file.created": "file.created";
23632
+ "node.metadata_updated": "node.metadata_updated";
23633
+ "node.purged": "node.purged";
23634
+ "record.viewed": "record.viewed";
23635
+ "skill.created": "skill.created";
23636
+ }>;
23637
+ actorId: z.ZodString;
23638
+ actor: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
23639
+ id: z.ZodString;
23640
+ name: z.ZodNullable<z.ZodString>;
23641
+ email: z.ZodNullable<z.ZodString>;
23642
+ image: z.ZodNullable<z.ZodString>;
23643
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23644
+ }, z.core.$strip>>>>;
23645
+ sourceAttribution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
23646
+ displayName: z.ZodNullable<z.ZodString>;
23647
+ ownerName: z.ZodNullable<z.ZodString>;
23648
+ channel: z.ZodNullable<z.ZodEnum<{
23649
+ automation: "automation";
23650
+ browser: "browser";
23651
+ cli: "cli";
23652
+ import: "import";
23653
+ mcp: "mcp";
23654
+ openapi: "openapi";
23655
+ sdk: "sdk";
23656
+ skill: "skill";
23657
+ web_ui: "web_ui";
23658
+ webhook: "webhook";
23659
+ }>>;
23660
+ }, z.core.$strip>>>;
23661
+ baseId: z.ZodNullable<z.ZodString>;
23662
+ recordId: z.ZodNullable<z.ZodString>;
23663
+ changeRequestId: z.ZodNullable<z.ZodString>;
23664
+ operationId: z.ZodNullable<z.ZodString>;
23665
+ commitId: z.ZodNullable<z.ZodString>;
23666
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23667
+ createdAt: z.ZodString;
23668
+ }, z.core.$strip>;
23669
+ record: z.ZodNullable<z.ZodObject<{
23670
+ id: z.ZodString;
23671
+ baseId: z.ZodString;
23672
+ headCommitId: z.ZodString;
23673
+ parentRecordId: z.ZodNullable<z.ZodString>;
23674
+ parentCommitId: z.ZodNullable<z.ZodString>;
23675
+ status: z.ZodEnum<{
23676
+ active: "active";
23677
+ archived: "archived";
23678
+ }>;
23679
+ createdBy: z.ZodString;
23680
+ createdByUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
23681
+ id: z.ZodString;
23682
+ name: z.ZodNullable<z.ZodString>;
23683
+ email: z.ZodNullable<z.ZodString>;
23684
+ image: z.ZodNullable<z.ZodString>;
23685
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23686
+ }, z.core.$strip>>>>;
23687
+ archivedAt: z.ZodNullable<z.ZodString>;
23688
+ createdAt: z.ZodString;
23689
+ updatedAt: z.ZodString;
23690
+ base: z.ZodObject<{
23691
+ id: z.ZodString;
23692
+ nodeId: z.ZodString;
23693
+ slug: z.ZodString;
23694
+ name: z.ZodString;
23695
+ description: z.ZodString;
23696
+ reviewPolicy: z.ZodObject<{
23697
+ kind: z.ZodLiteral<"single">;
23698
+ requiredApprovals: z.ZodNumber;
23699
+ }, z.core.$strip>;
23700
+ createdAt: z.ZodString;
23701
+ fields: z.ZodArray<z.ZodObject<{
23702
+ id: z.ZodString;
23703
+ baseId: z.ZodString;
23704
+ slug: z.ZodString;
23705
+ name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
23706
+ de: "de";
23707
+ en: "en";
23708
+ es: "es";
23709
+ fr: "fr";
23710
+ ja: "ja";
23711
+ ko: "ko";
23712
+ pt: "pt";
23713
+ "zh-CN": "zh-CN";
23714
+ "zh-TW": "zh-TW";
23715
+ }> & z.core.$partial, z.ZodString>]>;
23716
+ type: z.ZodEnum<{
23717
+ ai_summary: "ai_summary";
23718
+ ai_tags: "ai_tags";
23719
+ attachment: "attachment";
23720
+ auto_number: "auto_number";
23721
+ checkbox: "checkbox";
23722
+ code: "code";
23723
+ created_by: "created_by";
23724
+ created_time: "created_time";
23725
+ date: "date";
23726
+ email: "email";
23727
+ embed: "embed";
23728
+ formula: "formula";
23729
+ html: "html";
23730
+ json: "json";
23731
+ longtext: "longtext";
23732
+ lookup: "lookup";
23733
+ markdown: "markdown";
23734
+ multiselect: "multiselect";
23735
+ number: "number";
23736
+ phone: "phone";
23737
+ relation: "relation";
23738
+ select: "select";
23739
+ text: "text";
23740
+ updated_by: "updated_by";
23741
+ updated_time: "updated_time";
23742
+ url: "url";
23743
+ whiteboard: "whiteboard";
23744
+ yaml: "yaml";
23745
+ }>;
23746
+ required: z.ZodBoolean;
23747
+ position: z.ZodNumber;
23748
+ options: z.ZodDefault<z.ZodObject<{
23749
+ ai: z.ZodOptional<z.ZodObject<{
23750
+ model: z.ZodOptional<z.ZodString>;
23751
+ prompt: z.ZodOptional<z.ZodString>;
23752
+ reviewRequired: z.ZodOptional<z.ZodBoolean>;
23753
+ sourceFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
23754
+ }, z.core.$strip>>;
23755
+ attachment: z.ZodOptional<z.ZodObject<{
23756
+ maxFiles: z.ZodOptional<z.ZodNumber>;
23757
+ allowedMimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
23758
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
23759
+ }, z.core.$strip>>;
23760
+ choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
23761
+ color: z.ZodOptional<z.ZodString>;
23762
+ id: z.ZodString;
23763
+ name: z.ZodString;
23764
+ }, z.core.$strip>>>;
23765
+ code: z.ZodOptional<z.ZodObject<{
23766
+ language: z.ZodOptional<z.ZodString>;
23767
+ }, z.core.$strip>>;
23768
+ embed: z.ZodOptional<z.ZodObject<{
23769
+ aspectRatio: z.ZodOptional<z.ZodEnum<{
23770
+ "16:9": "16:9";
23771
+ "1:1": "1:1";
23772
+ "4:3": "4:3";
23773
+ }>>;
23774
+ height: z.ZodOptional<z.ZodNumber>;
23775
+ providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
23776
+ }, z.core.$strip>>;
23777
+ formula: z.ZodOptional<z.ZodObject<{
23778
+ expression: z.ZodString;
23779
+ }, z.core.$strip>>;
23780
+ inverseFieldId: z.ZodOptional<z.ZodString>;
23781
+ lookup: z.ZodOptional<z.ZodObject<{
23782
+ relationFieldSlug: z.ZodString;
23783
+ targetFieldSlug: z.ZodString;
23784
+ rollup: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
23785
+ average: "average";
23786
+ concatenate: "concatenate";
23787
+ count: "count";
23788
+ max: "max";
23789
+ min: "min";
23790
+ sum: "sum";
23791
+ values: "values";
23792
+ }>>>;
23793
+ limit: z.ZodOptional<z.ZodEnum<{
23794
+ all: "all";
23795
+ first: "first";
23796
+ }>>;
23797
+ }, z.core.$strip>>;
23798
+ multiple: z.ZodOptional<z.ZodBoolean>;
23799
+ number: z.ZodOptional<z.ZodObject<{
23800
+ format: z.ZodOptional<z.ZodEnum<{
23801
+ currency: "currency";
23802
+ plain: "plain";
23803
+ }>>;
23804
+ currency: z.ZodOptional<z.ZodString>;
23805
+ locale: z.ZodOptional<z.ZodString>;
23806
+ }, z.core.$strip>>;
23807
+ targetBaseId: z.ZodOptional<z.ZodString>;
23808
+ targetBaseSlug: z.ZodOptional<z.ZodString>;
23809
+ }, z.core.$strip>>;
23810
+ }, z.core.$strip>>;
23811
+ }, z.core.$strip>;
23812
+ headCommit: z.ZodObject<{
23813
+ id: z.ZodString;
23814
+ baseId: z.ZodNullable<z.ZodString>;
23815
+ targetType: z.ZodEnum<{
23816
+ base: "base";
23817
+ node: "node";
23818
+ }>;
23819
+ nodeId: z.ZodNullable<z.ZodString>;
23820
+ operationId: z.ZodNullable<z.ZodString>;
23821
+ parentCommitId: z.ZodNullable<z.ZodString>;
23822
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23823
+ operation: z.ZodEnum<{
23824
+ [x: `${string}_file_create`]: `${string}_file_create`;
23825
+ [x: `${string}_file_delete`]: `${string}_file_delete`;
23826
+ [x: `${string}_file_update`]: `${string}_file_update`;
23827
+ [x: `${string}_metadata_update`]: `${string}_metadata_update`;
23828
+ base_add_field: "base_add_field";
23829
+ base_archive: "base_archive";
23830
+ base_convert_field: "base_convert_field";
23831
+ base_delete_field: "base_delete_field";
23832
+ base_reorder_fields: "base_reorder_fields";
23833
+ base_restore: "base_restore";
23834
+ base_restore_field: "base_restore_field";
23835
+ base_update_field: "base_update_field";
23836
+ doc_update: "doc_update";
23837
+ html_document_update: "html_document_update";
23838
+ node_create: "node_create";
23839
+ node_delete: "node_delete";
23840
+ node_move: "node_move";
23841
+ node_rename: "node_rename";
23842
+ node_restore: "node_restore";
23843
+ record_create: "record_create";
23844
+ record_delete: "record_delete";
23845
+ record_restore: "record_restore";
23846
+ record_update: "record_update";
23847
+ record_variant: "record_variant";
23848
+ view_create: "view_create";
23849
+ view_delete: "view_delete";
23850
+ view_restore: "view_restore";
23851
+ view_update: "view_update";
23852
+ whiteboard_document_update: "whiteboard_document_update";
23853
+ workflow_document_update: "workflow_document_update";
23854
+ }>;
23855
+ message: z.ZodString;
23856
+ author: z.ZodString;
23857
+ authorUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
23858
+ id: z.ZodString;
23859
+ name: z.ZodNullable<z.ZodString>;
23860
+ email: z.ZodNullable<z.ZodString>;
23861
+ image: z.ZodNullable<z.ZodString>;
23862
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23863
+ }, z.core.$strip>>>>;
23864
+ createdAt: z.ZodString;
23865
+ }, z.core.$strip>;
23866
+ }, z.core.$strip>>;
23867
+ }, z.core.$strip>], "kind">;
23868
+ type ActivityItemVO = z.infer<typeof activityItemSchema>;
23869
+ //#endregion
23870
+ //#region ../../packages/busabase-contract/src/contract/node-detail-schemas.d.ts
23871
+ declare const NodeDetailVOSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
23872
+ node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
23873
+ children: z.ZodArray<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
23874
+ type: z.ZodLiteral<"folder">;
23875
+ }, z.core.$strip>, z.ZodObject<{
23876
+ node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
23877
+ storagePrefix: z.ZodString;
23878
+ body: z.ZodString;
23879
+ type: z.ZodLiteral<"doc">;
23880
+ }, z.core.$strip>, z.ZodObject<{
23881
+ node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
23882
+ asset: z.ZodObject<{
23883
+ id: z.ZodString;
23884
+ attachmentId: z.ZodString;
23885
+ name: z.ZodString;
23886
+ contentKind: z.ZodEnum<{
23887
+ binary: "binary";
23888
+ text: "text";
23889
+ }>;
23890
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
23891
+ fileName: z.ZodString;
23892
+ mimeType: z.ZodString;
23893
+ size: z.ZodNumber;
23894
+ url: z.ZodString;
23895
+ contentHash: z.ZodNullable<z.ZodString>;
23896
+ usageCount: z.ZodNumber;
23897
+ textStatus: z.ZodEnum<{
23898
+ missing: "missing";
23899
+ none: "none";
23900
+ present: "present";
23901
+ stale: "stale";
23902
+ }>;
23903
+ createdAt: z.ZodString;
23904
+ }, z.core.$strip>;
23905
+ type: z.ZodLiteral<"file">;
23906
+ }, z.core.$strip>, z.ZodObject<{
23907
+ node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
23908
+ entryFile: z.ZodString;
23909
+ visibility: z.ZodEnum<{
23910
+ private: "private";
23911
+ public: "public";
23912
+ workspace: "workspace";
23913
+ }>;
23914
+ version: z.ZodString;
23915
+ files: z.ZodArray<z.ZodObject<{
23916
+ path: z.ZodString;
23917
+ name: z.ZodString;
23918
+ size: z.ZodNumber;
23919
+ updatedAt: z.ZodNullable<z.ZodString>;
23920
+ mimeType: z.ZodNullable<z.ZodString>;
23921
+ assetId: z.ZodString;
23922
+ displayName: z.ZodNullable<z.ZodString>;
23923
+ }, z.core.$strip>>;
23924
+ skippedGitignorePaths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
23925
+ type: z.ZodLiteral<"skill">;
23926
+ }, z.core.$strip>, z.ZodObject<{
23927
+ node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
23928
+ entryFile: z.ZodString;
23929
+ visibility: z.ZodEnum<{
23930
+ private: "private";
23931
+ public: "public";
23932
+ workspace: "workspace";
23933
+ }>;
23934
+ version: z.ZodString;
23935
+ files: z.ZodArray<z.ZodObject<{
23936
+ path: z.ZodString;
23937
+ name: z.ZodString;
23938
+ size: z.ZodNumber;
23939
+ updatedAt: z.ZodNullable<z.ZodString>;
23940
+ mimeType: z.ZodNullable<z.ZodString>;
23941
+ assetId: z.ZodString;
23942
+ displayName: z.ZodNullable<z.ZodString>;
23943
+ }, z.core.$strip>>;
23944
+ skippedGitignorePaths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
23945
+ type: z.ZodLiteral<"drive">;
23946
+ }, z.core.$strip>, z.ZodObject<{
23947
+ node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
23948
+ entryFile: z.ZodString;
23949
+ visibility: z.ZodEnum<{
23950
+ private: "private";
23951
+ public: "public";
23952
+ workspace: "workspace";
23953
+ }>;
23954
+ version: z.ZodString;
23955
+ files: z.ZodArray<z.ZodObject<{
23956
+ path: z.ZodString;
23957
+ name: z.ZodString;
23958
+ size: z.ZodNumber;
23959
+ updatedAt: z.ZodNullable<z.ZodString>;
23960
+ mimeType: z.ZodNullable<z.ZodString>;
23961
+ assetId: z.ZodString;
23962
+ displayName: z.ZodNullable<z.ZodString>;
23963
+ }, z.core.$strip>>;
23964
+ skippedGitignorePaths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
23965
+ type: z.ZodLiteral<"airapp">;
23966
+ }, z.core.$strip>, z.ZodObject<{
23967
+ type: z.ZodLiteral<"base">;
23968
+ node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
23969
+ }, z.core.$strip>, z.ZodObject<{
23970
+ type: z.ZodLiteral<"form">;
23971
+ node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
23972
+ }, z.core.$strip>, z.ZodObject<{
23973
+ type: z.ZodLiteral<"whiteboard">;
23974
+ node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
23975
+ document: z.ZodType<{
23976
+ version: 1;
23977
+ elements: unknown[];
23978
+ appState: Record<string, unknown>;
23979
+ }, unknown, z.core.$ZodTypeInternals<{
23980
+ version: 1;
23981
+ elements: unknown[];
23982
+ appState: Record<string, unknown>;
23983
+ }, unknown>>;
23984
+ }, z.core.$strip>, z.ZodObject<{
23985
+ type: z.ZodLiteral<"workflow">;
23986
+ node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
23987
+ document: z.ZodType<{
23988
+ version: 2;
23989
+ nodes: ({
23990
+ id: string;
23991
+ position: {
23992
+ x: number;
23993
+ y: number;
23994
+ };
23995
+ label: string;
23996
+ description: string;
23997
+ kind: "trigger";
23998
+ eventName: string;
23999
+ } | {
24000
+ id: string;
24001
+ position: {
24002
+ x: number;
24003
+ y: number;
24004
+ };
24005
+ label: string;
24006
+ description: string;
24007
+ kind: "webhook";
24008
+ method: "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
24009
+ url: string;
24010
+ } | {
24011
+ id: string;
24012
+ position: {
24013
+ x: number;
24014
+ y: number;
24015
+ };
24016
+ label: string;
24017
+ description: string;
24018
+ kind: "function";
24019
+ webhookRuleId: string;
24020
+ functionName: string;
24021
+ } | {
24022
+ id: string;
24023
+ position: {
24024
+ x: number;
24025
+ y: number;
24026
+ };
24027
+ label: string;
24028
+ description: string;
24029
+ kind: "condition";
24030
+ expression: string;
24031
+ } | {
24032
+ id: string;
24033
+ position: {
24034
+ x: number;
24035
+ y: number;
24036
+ };
24037
+ label: string;
24038
+ description: string;
24039
+ kind: "wait";
24040
+ duration: number;
24041
+ unit: "days" | "hours" | "minutes";
24042
+ } | {
24043
+ id: string;
24044
+ position: {
24045
+ x: number;
24046
+ y: number;
24047
+ };
24048
+ label: string;
24049
+ description: string;
24050
+ kind: "approval";
24051
+ approver: string;
24052
+ } | {
24053
+ id: string;
24054
+ position: {
24055
+ x: number;
24056
+ y: number;
24057
+ };
24058
+ label: string;
24059
+ description: string;
24060
+ kind: "action";
24061
+ actionName: string;
24062
+ } | {
24063
+ id: string;
24064
+ position: {
24065
+ x: number;
24066
+ y: number;
24067
+ };
24068
+ label: string;
24069
+ description: string;
24070
+ kind: "end";
24071
+ outcome: string;
24072
+ })[];
24073
+ edges: {
24074
+ id: string;
24075
+ source: string;
24076
+ target: string;
24077
+ label: string;
24078
+ outcome: string;
24079
+ }[];
24080
+ settings: {
24081
+ executionMode: "event" | "manual";
24082
+ concurrency: number;
24083
+ timeoutMs: number;
24084
+ errorPolicy: "continue" | "stop";
24085
+ };
24086
+ }, unknown, z.core.$ZodTypeInternals<{
24087
+ version: 2;
24088
+ nodes: ({
24089
+ id: string;
24090
+ position: {
24091
+ x: number;
24092
+ y: number;
24093
+ };
24094
+ label: string;
24095
+ description: string;
24096
+ kind: "trigger";
24097
+ eventName: string;
24098
+ } | {
24099
+ id: string;
24100
+ position: {
24101
+ x: number;
24102
+ y: number;
24103
+ };
24104
+ label: string;
24105
+ description: string;
24106
+ kind: "webhook";
24107
+ method: "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
24108
+ url: string;
24109
+ } | {
24110
+ id: string;
24111
+ position: {
24112
+ x: number;
24113
+ y: number;
24114
+ };
24115
+ label: string;
24116
+ description: string;
24117
+ kind: "function";
24118
+ webhookRuleId: string;
24119
+ functionName: string;
24120
+ } | {
24121
+ id: string;
24122
+ position: {
24123
+ x: number;
24124
+ y: number;
24125
+ };
24126
+ label: string;
24127
+ description: string;
24128
+ kind: "condition";
24129
+ expression: string;
24130
+ } | {
24131
+ id: string;
24132
+ position: {
24133
+ x: number;
24134
+ y: number;
24135
+ };
24136
+ label: string;
24137
+ description: string;
24138
+ kind: "wait";
24139
+ duration: number;
24140
+ unit: "days" | "hours" | "minutes";
24141
+ } | {
24142
+ id: string;
24143
+ position: {
24144
+ x: number;
24145
+ y: number;
24146
+ };
24147
+ label: string;
24148
+ description: string;
24149
+ kind: "approval";
24150
+ approver: string;
24151
+ } | {
24152
+ id: string;
24153
+ position: {
24154
+ x: number;
24155
+ y: number;
24156
+ };
24157
+ label: string;
24158
+ description: string;
24159
+ kind: "action";
24160
+ actionName: string;
24161
+ } | {
24162
+ id: string;
24163
+ position: {
24164
+ x: number;
24165
+ y: number;
24166
+ };
24167
+ label: string;
24168
+ description: string;
24169
+ kind: "end";
24170
+ outcome: string;
24171
+ })[];
24172
+ edges: {
24173
+ id: string;
24174
+ source: string;
24175
+ target: string;
24176
+ label: string;
24177
+ outcome: string;
24178
+ }[];
24179
+ settings: {
24180
+ executionMode: "event" | "manual";
24181
+ concurrency: number;
24182
+ timeoutMs: number;
24183
+ errorPolicy: "continue" | "stop";
24184
+ };
24185
+ }, unknown>>;
24186
+ }, z.core.$strip>, z.ZodObject<{
24187
+ type: z.ZodLiteral<"html">;
24188
+ node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
24189
+ document: z.ZodType<{
24190
+ version: 1;
24191
+ source: string;
24192
+ }, unknown, z.core.$ZodTypeInternals<{
24193
+ version: 1;
24194
+ source: string;
24195
+ }, unknown>>;
24196
+ }, z.core.$strip>], "type">;
24197
+ type NodeDetailVO = z.infer<typeof NodeDetailVOSchema>;
24198
+ //#endregion
24199
+ //#region ../../packages/busabase-contract/src/domains/filetree/types.d.ts
24200
+ interface FileTreeFileVO {
24201
+ path: string;
24202
+ name: string;
24203
+ size: number;
24204
+ updatedAt: string | null;
24205
+ mimeType: string | null;
24206
+ assetId: string;
24207
+ displayName: string | null;
24208
+ }
24209
+ interface FileTreeNodeVO {
24210
+ node: NodeVO;
24211
+ entryFile: string;
24212
+ visibility: "private" | "workspace" | "public";
24213
+ version: string;
24214
+ files: FileTreeFileVO[];
24215
+ skippedGitignorePaths?: string[];
24216
+ }
24217
+ interface FileTreeReadFileVO {
24218
+ nodeId: string;
24219
+ path: string;
24220
+ encoding: "utf8" | "url";
24221
+ content: string;
24222
+ mimeType: string;
24223
+ assetId: string;
24224
+ displayName: string | null;
24225
+ assetUrl: string | null;
24226
+ contentHash: string;
24227
+ }
24228
+ //#endregion
24229
+ //#region ../../packages/busabase-contract/src/domains/assets/types.d.ts
24230
+ /**
24231
+ * Derived text-slot status for an Asset (Drive Grep Retrieval). `missing` is
24232
+ * the absence of a `busabase_asset_texts` row (no writer has supplied text
24233
+ * yet, or a pre-existing asset hasn't been lazily self-healed by a grep call);
24234
+ * `present` / `none` / `stale` are the row's own `status` column.
24235
+ */
24236
+ declare const AssetTextStatusSchema: z.ZodEnum<{
24237
+ missing: "missing";
24238
+ none: "none";
24239
+ present: "present";
24240
+ stale: "stale";
24241
+ }>;
24242
+ type AssetTextStatus = z.infer<typeof AssetTextStatusSchema>;
24243
+ /** One library entry: the deduped file + its busabase metadata + usage count. */
24244
+ declare const AssetVOSchema: z.ZodObject<{
24245
+ id: z.ZodString;
24246
+ attachmentId: z.ZodString;
24247
+ name: z.ZodString;
24248
+ contentKind: z.ZodEnum<{
24249
+ binary: "binary";
24250
+ text: "text";
24251
+ }>;
24252
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
24253
+ fileName: z.ZodString;
24254
+ mimeType: z.ZodString;
24255
+ size: z.ZodNumber;
24256
+ url: z.ZodString;
24257
+ contentHash: z.ZodNullable<z.ZodString>;
24258
+ usageCount: z.ZodNumber;
24259
+ textStatus: z.ZodEnum<{
24260
+ missing: "missing";
24261
+ none: "none";
24262
+ present: "present";
24263
+ stale: "stale";
24264
+ }>;
24265
+ createdAt: z.ZodString;
24266
+ }, z.core.$strip>;
24267
+ type AssetVO = z.infer<typeof AssetVOSchema>;
24268
+ /** One place an asset is referenced — the row behind "Where Used". */
24269
+ declare const AssetUsageVOSchema: z.ZodObject<{
24270
+ ownerType: z.ZodEnum<{
24271
+ airapp: "airapp";
24272
+ base: "base";
24273
+ doc: "doc";
24274
+ drive: "drive";
24275
+ file_node: "file_node";
24276
+ skill: "skill";
24277
+ }>;
24278
+ nodeId: z.ZodString;
24279
+ nodeName: z.ZodString;
24280
+ nodeType: z.ZodString;
24281
+ nodeSlug: z.ZodString;
24282
+ path: z.ZodNullable<z.ZodString>;
24283
+ recordId: z.ZodNullable<z.ZodString>;
24284
+ fieldSlug: z.ZodNullable<z.ZodString>;
24285
+ blockId: z.ZodNullable<z.ZodString>;
24286
+ createdAt: z.ZodString;
24287
+ }, z.core.$strip>;
24288
+ type AssetUsageVO = z.infer<typeof AssetUsageVOSchema>;
24289
+ /** Asset detail = the library entry plus every place it is used. */
24290
+ declare const AssetDetailVOSchema: z.ZodObject<{
24291
+ asset: z.ZodObject<{
24292
+ id: z.ZodString;
24293
+ attachmentId: z.ZodString;
24294
+ name: z.ZodString;
24295
+ contentKind: z.ZodEnum<{
24296
+ binary: "binary";
24297
+ text: "text";
24298
+ }>;
24299
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
24300
+ fileName: z.ZodString;
24301
+ mimeType: z.ZodString;
24302
+ size: z.ZodNumber;
24303
+ url: z.ZodString;
24304
+ contentHash: z.ZodNullable<z.ZodString>;
24305
+ usageCount: z.ZodNumber;
24306
+ textStatus: z.ZodEnum<{
24307
+ missing: "missing";
24308
+ none: "none";
24309
+ present: "present";
24310
+ stale: "stale";
24311
+ }>;
24312
+ createdAt: z.ZodString;
24313
+ }, z.core.$strip>;
24314
+ usages: z.ZodArray<z.ZodObject<{
24315
+ ownerType: z.ZodEnum<{
24316
+ airapp: "airapp";
24317
+ base: "base";
24318
+ doc: "doc";
24319
+ drive: "drive";
24320
+ file_node: "file_node";
24321
+ skill: "skill";
24322
+ }>;
24323
+ nodeId: z.ZodString;
24324
+ nodeName: z.ZodString;
24325
+ nodeType: z.ZodString;
24326
+ nodeSlug: z.ZodString;
24327
+ path: z.ZodNullable<z.ZodString>;
24328
+ recordId: z.ZodNullable<z.ZodString>;
24329
+ fieldSlug: z.ZodNullable<z.ZodString>;
24330
+ blockId: z.ZodNullable<z.ZodString>;
24331
+ createdAt: z.ZodString;
24332
+ }, z.core.$strip>>;
24333
+ }, z.core.$strip>;
24334
+ type AssetDetailVO = z.infer<typeof AssetDetailVOSchema>;
24335
+ /** Files-only grep input used internally and by the SDK's `assets.grep` convenience adapter. */
24336
+ declare const GrepInputSchema: z.ZodObject<{
24337
+ pattern: z.ZodString;
24338
+ flags: z.ZodDefault<z.ZodOptional<z.ZodString>>;
24339
+ scope: z.ZodOptional<z.ZodObject<{
24340
+ assetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
24341
+ drivePath: z.ZodOptional<z.ZodString>;
24342
+ mimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
24343
+ }, z.core.$strip>>;
24344
+ maxMatches: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
24345
+ contextLines: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
24346
+ }, z.core.$strip>;
24347
+ /** Caller input before Zod applies defaults. */
24348
+ type GrepInputDTO = z.input<typeof GrepInputSchema>;
24349
+ declare const GrepResultVOSchema: z.ZodObject<{
24350
+ matches: z.ZodArray<z.ZodObject<{
24351
+ assetId: z.ZodString;
24352
+ fileName: z.ZodString;
24353
+ drivePath: z.ZodString;
24354
+ line: z.ZodNumber;
24355
+ column: z.ZodNumber;
24356
+ text: z.ZodString;
24357
+ before: z.ZodArray<z.ZodString>;
24358
+ after: z.ZodArray<z.ZodString>;
24359
+ }, z.core.$strip>>;
24360
+ filesScanned: z.ZodNumber;
24361
+ missing: z.ZodArray<z.ZodString>;
24362
+ stale: z.ZodArray<z.ZodString>;
24363
+ unsearchable: z.ZodNumber;
24364
+ errored: z.ZodArray<z.ZodString>;
24365
+ notReached: z.ZodNumber;
24366
+ truncated: z.ZodBoolean;
24367
+ }, z.core.$strip>;
24368
+ type GrepResultVO = z.infer<typeof GrepResultVOSchema>;
24369
+ //#endregion
24370
+ //#region ../../packages/busabase-contract/src/domains/file-node/types.d.ts
24371
+ declare const FileNodeMetadataSchema: z.ZodObject<{
24372
+ assetId: z.ZodString;
24373
+ }, z.core.$strip>;
24374
+ type FileNodeMetadata = z.infer<typeof FileNodeMetadataSchema>;
24375
+ declare const FileNodeVOSchema: z.ZodObject<{
24376
+ node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
24377
+ asset: z.ZodObject<{
24378
+ id: z.ZodString;
24379
+ attachmentId: z.ZodString;
24380
+ name: z.ZodString;
24381
+ contentKind: z.ZodEnum<{
24382
+ binary: "binary";
24383
+ text: "text";
24384
+ }>;
24385
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
24386
+ fileName: z.ZodString;
24387
+ mimeType: z.ZodString;
24388
+ size: z.ZodNumber;
24389
+ url: z.ZodString;
24390
+ contentHash: z.ZodNullable<z.ZodString>;
24391
+ usageCount: z.ZodNumber;
24392
+ textStatus: z.ZodEnum<{
24393
+ missing: "missing";
24394
+ none: "none";
24395
+ present: "present";
24396
+ stale: "stale";
24397
+ }>;
24398
+ createdAt: z.ZodString;
24399
+ }, z.core.$strip>;
24400
+ }, z.core.$strip>;
24401
+ type FileNodeVO = z.infer<typeof FileNodeVOSchema>;
24402
+ //#endregion
24403
+ //#region ../../packages/busabase-contract/src/domains/vault/types.d.ts
24404
+ declare const VaultItemKindSchema: z.ZodEnum<{
24405
+ secret: "secret";
24406
+ variable: "variable";
24407
+ }>;
24408
+ type VaultItemKind = z.infer<typeof VaultItemKindSchema>;
24409
+ declare const VaultScopeTypeSchema: z.ZodEnum<{
24410
+ agent: "agent";
24411
+ api_key: "api_key";
24412
+ base: "base";
24413
+ personal: "personal";
24414
+ tool: "tool";
24415
+ workspace: "workspace";
24416
+ }>;
24417
+ type VaultScopeType = z.infer<typeof VaultScopeTypeSchema>;
24418
+ declare const VaultEnvironmentSchema: z.ZodEnum<{
24419
+ development: "development";
24420
+ local: "local";
24421
+ production: "production";
24422
+ staging: "staging";
24423
+ }>;
24424
+ type VaultEnvironment = z.infer<typeof VaultEnvironmentSchema>;
24425
+ declare const VaultAccessPolicySchema: z.ZodObject<{
24426
+ runtime: z.ZodDefault<z.ZodBoolean>;
24427
+ reveal: z.ZodDefault<z.ZodBoolean>;
24428
+ edit: z.ZodDefault<z.ZodBoolean>;
24429
+ share: z.ZodDefault<z.ZodBoolean>;
24430
+ }, z.core.$strip>;
24431
+ type VaultAccessPolicy = z.infer<typeof VaultAccessPolicySchema>;
24432
+ declare const VaultItemInputSchema: z.ZodObject<{
24433
+ id: z.ZodOptional<z.ZodString>;
24434
+ kind: z.ZodEnum<{
24435
+ secret: "secret";
24436
+ variable: "variable";
24437
+ }>;
24438
+ key: z.ZodString;
24439
+ value: z.ZodString;
24440
+ scopeType: z.ZodDefault<z.ZodEnum<{
24441
+ agent: "agent";
24442
+ api_key: "api_key";
24443
+ base: "base";
24444
+ personal: "personal";
24445
+ tool: "tool";
24446
+ workspace: "workspace";
24447
+ }>>;
24448
+ scopeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24449
+ environment: z.ZodDefault<z.ZodEnum<{
24450
+ development: "development";
24451
+ local: "local";
24452
+ production: "production";
24453
+ staging: "staging";
24454
+ }>>;
24455
+ description: z.ZodDefault<z.ZodString>;
24456
+ access: z.ZodDefault<z.ZodObject<{
24457
+ runtime: z.ZodDefault<z.ZodBoolean>;
24458
+ reveal: z.ZodDefault<z.ZodBoolean>;
24459
+ edit: z.ZodDefault<z.ZodBoolean>;
24460
+ share: z.ZodDefault<z.ZodBoolean>;
24461
+ }, z.core.$strip>>;
24462
+ }, z.core.$strip>;
24463
+ type VaultItemInput = z.infer<typeof VaultItemInputSchema>;
24464
+ declare const UpdateVaultSettingsInputSchema: z.ZodObject<{
24465
+ items: z.ZodArray<z.ZodObject<{
24466
+ id: z.ZodOptional<z.ZodString>;
24467
+ kind: z.ZodEnum<{
24468
+ secret: "secret";
24469
+ variable: "variable";
24470
+ }>;
24471
+ key: z.ZodString;
24472
+ value: z.ZodString;
24473
+ scopeType: z.ZodDefault<z.ZodEnum<{
24474
+ agent: "agent";
24475
+ api_key: "api_key";
24476
+ base: "base";
24477
+ personal: "personal";
24478
+ tool: "tool";
24479
+ workspace: "workspace";
24480
+ }>>;
24481
+ scopeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24482
+ environment: z.ZodDefault<z.ZodEnum<{
24483
+ development: "development";
24484
+ local: "local";
24485
+ production: "production";
24486
+ staging: "staging";
24487
+ }>>;
24488
+ description: z.ZodDefault<z.ZodString>;
24489
+ access: z.ZodDefault<z.ZodObject<{
24490
+ runtime: z.ZodDefault<z.ZodBoolean>;
24491
+ reveal: z.ZodDefault<z.ZodBoolean>;
24492
+ edit: z.ZodDefault<z.ZodBoolean>;
24493
+ share: z.ZodDefault<z.ZodBoolean>;
24494
+ }, z.core.$strip>>;
24495
+ }, z.core.$strip>>;
24496
+ }, z.core.$strip>;
24497
+ type UpdateVaultSettingsDTO = z.infer<typeof UpdateVaultSettingsInputSchema>;
24498
+ declare const VaultItemVOSchema: z.ZodObject<{
24499
+ kind: z.ZodEnum<{
24500
+ secret: "secret";
24501
+ variable: "variable";
24502
+ }>;
24503
+ key: z.ZodString;
24504
+ value: z.ZodString;
24505
+ scopeType: z.ZodDefault<z.ZodEnum<{
24506
+ agent: "agent";
24507
+ api_key: "api_key";
24508
+ base: "base";
24509
+ personal: "personal";
24510
+ tool: "tool";
24511
+ workspace: "workspace";
24512
+ }>>;
24513
+ environment: z.ZodDefault<z.ZodEnum<{
24514
+ development: "development";
24515
+ local: "local";
24516
+ production: "production";
24517
+ staging: "staging";
24518
+ }>>;
24519
+ description: z.ZodDefault<z.ZodString>;
24520
+ access: z.ZodDefault<z.ZodObject<{
24521
+ runtime: z.ZodDefault<z.ZodBoolean>;
24522
+ reveal: z.ZodDefault<z.ZodBoolean>;
24523
+ edit: z.ZodDefault<z.ZodBoolean>;
24524
+ share: z.ZodDefault<z.ZodBoolean>;
24525
+ }, z.core.$strip>>;
24526
+ id: z.ZodString;
24527
+ scopeId: z.ZodNullable<z.ZodString>;
24528
+ updatedAt: z.ZodString;
24529
+ createdAt: z.ZodString;
24530
+ lastUsedAt: z.ZodNullable<z.ZodString>;
24531
+ }, z.core.$strip>;
24532
+ type VaultItemVO = z.infer<typeof VaultItemVOSchema>;
24533
+ declare const VaultSettingsVOSchema: z.ZodObject<{
24534
+ ownerId: z.ZodNullable<z.ZodString>;
24535
+ items: z.ZodArray<z.ZodObject<{
24536
+ kind: z.ZodEnum<{
24537
+ secret: "secret";
24538
+ variable: "variable";
24539
+ }>;
24540
+ key: z.ZodString;
24541
+ value: z.ZodString;
24542
+ scopeType: z.ZodDefault<z.ZodEnum<{
24543
+ agent: "agent";
24544
+ api_key: "api_key";
24545
+ base: "base";
24546
+ personal: "personal";
24547
+ tool: "tool";
24548
+ workspace: "workspace";
24549
+ }>>;
24550
+ environment: z.ZodDefault<z.ZodEnum<{
24551
+ development: "development";
24552
+ local: "local";
24553
+ production: "production";
24554
+ staging: "staging";
24555
+ }>>;
24556
+ description: z.ZodDefault<z.ZodString>;
24557
+ access: z.ZodDefault<z.ZodObject<{
24558
+ runtime: z.ZodDefault<z.ZodBoolean>;
24559
+ reveal: z.ZodDefault<z.ZodBoolean>;
24560
+ edit: z.ZodDefault<z.ZodBoolean>;
24561
+ share: z.ZodDefault<z.ZodBoolean>;
24562
+ }, z.core.$strip>>;
24563
+ id: z.ZodString;
24564
+ scopeId: z.ZodNullable<z.ZodString>;
24565
+ updatedAt: z.ZodString;
24566
+ createdAt: z.ZodString;
24567
+ lastUsedAt: z.ZodNullable<z.ZodString>;
24568
+ }, z.core.$strip>>;
24569
+ updatedAt: z.ZodNullable<z.ZodString>;
24570
+ }, z.core.$strip>;
24571
+ type VaultSettingsVO = z.infer<typeof VaultSettingsVOSchema>;
24572
+ declare const VaultRuntimeEnvSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
24573
+ type VaultRuntimeEnv = z.infer<typeof VaultRuntimeEnvSchema>;
24574
+ //#endregion
24575
+ //#region ../../packages/busabase-contract/src/types/index.d.ts
24576
+ type FieldType = "text" | "longtext" | "markdown" | "html" | "attachment" | "relation" | "number" | "date" | "checkbox" | "select" | "multiselect" | "url" | "embed" | "email" | "phone" | "created_time" | "updated_time" | "created_by" | "updated_by" | "auto_number" | "ai_summary" | "ai_tags" | "code" | "json" | "yaml" | "formula" | "lookup" | "whiteboard";
24577
+ /** Rollup functions a `lookup` field can apply — mirrors `lookupRollupSchema`. */
24578
+ type LookupRollup = "values" | "count" | "sum" | "average" | "min" | "max" | "concatenate";
24579
+ type ChangeRequestStatus = "in_review" | "changes_requested" | "approved" | "rejected" | "merged" | "abandoned" | "conflict";
24580
+ type OperationStatus = "pending" | "merged" | "archived" | "failed";
24581
+ type ChangeRequestTargetType = "base" | "node";
24582
+ type BusabaseSourceChannel = "web_ui" | "browser" | "openapi" | "sdk" | "cli" | "mcp" | "skill" | "webhook" | "automation" | "import";
24583
+ type ReviewVerdict = "approved" | "rejected";
24584
+ type SearchResultKind = "record" | "change_request" | "base" | "file";
24585
+ type CommentSubjectType = "record" | "change_request" | "operation" | "commit";
24586
+ 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";
24587
+ interface UserRefVO {
24588
+ id: string;
24589
+ name: string | null;
24590
+ email: string | null;
24591
+ image: string | null;
24592
+ role?: string | null;
24593
+ }
24594
+ /** Public, privacy-safe attribution derived from internal source provenance. */
24595
+ interface SourceAttributionVO {
24596
+ displayName: string | null;
24597
+ ownerName: string | null;
24598
+ channel: BusabaseSourceChannel | null;
24599
+ }
24600
+ /**
24601
+ * Cheap, name/slug-only match from `nodes.searchByName` — deliberately a much
24602
+ * smaller projection than `NodeVO` (no `description`/`metadata`/tree shape):
24603
+ * this backs the dashboard's instant quick-jump palette, not the sidebar tree
24604
+ * or a node's own detail view. `path` is the route this node navigates to
24605
+ * (e.g. `/base/{slug}`), not a filesystem/breadcrumb tree path.
24606
+ */
24607
+ interface NodeSearchResultVO {
24608
+ id: string;
24609
+ type: NodeType;
24610
+ name: string;
24611
+ slug: string;
24612
+ path: string;
24613
+ updatedAt: string;
24614
+ }
24615
+ interface NodeVO {
24616
+ id: string;
24617
+ parentId: string | null;
24618
+ type: NodeType;
24619
+ slug: string;
24620
+ name: string;
24621
+ description: string;
24622
+ /**
24623
+ * Free-form extension data — the caller's bag. The product reads nothing here
24624
+ * except `version`, a label the user writes and the product never interprets.
24625
+ * Kept in sync with `NodeOutput` in `contract/schemas.ts`, which is the shape
24626
+ * the wire schema actually validates.
24627
+ */
24628
+ metadata: Record<string, unknown> & {
24629
+ version?: string;
24630
+ };
24631
+ /**
24632
+ * This node's OWN declared visibility, or null when it inherits from its
24633
+ * ancestors. A real column rather than a metadata key, because it is the node
24634
+ * ACL's only explicit input — see `content/spec/node-content-storage.md` (D1).
24635
+ */
24636
+ explicitVisibility: "private" | "workspace" | "public" | null;
24637
+ /**
24638
+ * This node's custom avatar (emoji or cropped/uploaded image), or `null`
24639
+ * when the node has none and every host falls back to its type icon
24640
+ * (`nodeIconForType`). See `NodeIconSchema` for the two variants.
24641
+ */
24642
+ icon?: NodeIcon | null;
24643
+ position: number;
24644
+ createdAt: string;
24645
+ updatedAt: string;
24646
+ baseId: string | null;
24647
+ children: NodeVO[];
24648
+ /**
24649
+ * Whether this node has children beyond what `children` carries — see the
24650
+ * matching field on the contract's `NodeOutput` (contract/schemas.ts) for
24651
+ * the full depth-boundary explanation. Optional/omitted is safe to treat
24652
+ * as `children.length > 0`.
24653
+ */
24654
+ hasChildren?: boolean;
24655
+ }
24656
+ interface CommitVO {
24657
+ id: string;
24658
+ baseId: string | null;
24659
+ targetType: ChangeRequestTargetType;
24660
+ nodeId: string | null;
24661
+ operationId: string | null;
24662
+ parentCommitId: string | null;
24663
+ /**
24664
+ * Polymorphic change payload; its shape is determined by `operation`.
24665
+ * Intentionally loose here — see the comment on `commitSchema.payload` in
24666
+ * `contract/schemas.ts`. Historical commits predate payload validation, and this
24667
+ * VO is what history/approval screens read, so it must stay permissive.
24668
+ */
24669
+ payload: Record<string, unknown>;
24670
+ operation: OperationKind;
24671
+ message: string;
24672
+ author: string;
24673
+ authorUser?: UserRefVO | null;
24674
+ createdAt: string;
24675
+ }
24676
+ interface OperationVO {
24677
+ id: string;
24678
+ changeRequestId: string;
24679
+ baseId: string | null;
24680
+ targetType: ChangeRequestTargetType;
24681
+ nodeId: string | null;
24682
+ operation: OperationKind;
24683
+ status: OperationStatus;
24684
+ targetRecordId: string | null;
24685
+ targetViewId: string | null;
24686
+ filePath: string | null;
24687
+ sourceRecordId: string | null;
24688
+ sourceCommitId: string | null;
24689
+ baseCommitId: string | null;
24690
+ headCommitId: string;
24691
+ deleteMode: "archive";
24692
+ mergedRecordId: string | null;
24693
+ mergedViewId: string | null;
24694
+ position: number;
24695
+ createdAt: string;
24696
+ updatedAt: string;
24697
+ headCommit: CommitVO;
24698
+ baseFields: Record<string, unknown> | null;
24699
+ }
24700
+ interface ChangeRequestVO {
24701
+ id: string;
24702
+ baseId: string | null;
24703
+ targetType: ChangeRequestTargetType;
24704
+ nodeId: string | null;
24705
+ status: ChangeRequestStatus;
24706
+ submittedBy: string;
24707
+ submittedByUser?: UserRefVO | null;
24708
+ sourceAttribution?: SourceAttributionVO | null;
24709
+ sourceMeta: Record<string, unknown>;
24710
+ reviewPolicySnapshot: Record<string, unknown>;
24711
+ mergeSummary: Record<string, unknown>;
24712
+ rejectedReason: string | null;
24713
+ reviewedAt: string | null;
24714
+ mergedAt: string | null;
24715
+ createdAt: string;
24716
+ updatedAt: string;
24717
+ base: BaseVO | null;
24718
+ node: NodeVO | null;
24719
+ operations: OperationVO[];
24720
+ primaryOperation: OperationVO | null;
24721
+ operationCount: number;
24722
+ reviews: ReviewVO[];
24723
+ }
24724
+ interface ChangeRequestBatchFailureVO {
24725
+ changeRequestId: string;
24726
+ ok: false;
24727
+ error: string;
24728
+ code?: string;
24729
+ data?: unknown;
24730
+ }
24731
+ interface ChangeRequestReviewBatchResultVO {
24732
+ results: Array<{
24733
+ changeRequestId: string;
24734
+ ok: true;
24735
+ status: string;
24736
+ changeRequest: ChangeRequestVO;
24737
+ } | ChangeRequestBatchFailureVO>;
24738
+ }
24739
+ interface ChangeRequestMergeBatchResultVO {
24740
+ results: Array<{
24741
+ changeRequestId: string;
24742
+ ok: true;
24743
+ status: string;
24744
+ changeRequest: ChangeRequestVO;
24745
+ record: RecordVO | null;
24746
+ view: ViewVO | null;
24747
+ } | ChangeRequestBatchFailureVO>;
24748
+ }
24749
+ interface ChangeRequestCountsVO {
24750
+ review: number;
24751
+ changes: number;
24752
+ created: number;
24753
+ approved: number;
24754
+ merged: number;
24755
+ rejected: number;
24756
+ }
24757
+ interface ReviewVO {
24758
+ id: string;
24759
+ changeRequestId: string;
24760
+ reviewerId: string;
24761
+ reviewer?: UserRefVO | null;
24762
+ verdict: ReviewVerdict;
24763
+ reason: string | null;
24764
+ visibleOperationHeads: Record<string, string>;
24765
+ createdAt: string;
24766
+ }
24767
+ interface CommentVO {
24768
+ id: string;
24769
+ subjectType: CommentSubjectType;
24770
+ subjectId: string;
24771
+ recordId: string | null;
24772
+ changeRequestId: string | null;
24773
+ operationId: string | null;
24774
+ commitId: string | null;
24775
+ authorId: string;
24776
+ author?: UserRefVO | null;
24777
+ body: string;
24778
+ mentionsAi: boolean;
24779
+ createdAt: string;
24780
+ updatedAt: string;
24781
+ }
24782
+ interface AgentTaskVO {
24783
+ changeRequest: ChangeRequestVO;
24784
+ trigger: "changes_requested" | "ai_mention";
24785
+ reviewReason: string | null;
24786
+ aiComments: CommentVO[];
24787
+ }
24788
+ interface SearchResultVO {
24789
+ id: string;
24790
+ kind: SearchResultKind;
24791
+ title: string;
24792
+ body: string;
24793
+ eyebrow: string;
24794
+ href: string;
24795
+ updatedAt: string | null;
24796
+ }
24797
+ interface SearchResponseVO {
24798
+ query: string;
24799
+ limit: number;
24800
+ offset: number;
24801
+ hasMore: boolean;
24802
+ results: SearchResultVO[];
24803
+ }
24804
+ interface AuditEventVO {
24805
+ id: string;
24806
+ action: AuditAction;
24807
+ actorId: string;
24808
+ actor?: UserRefVO | null;
24809
+ sourceAttribution?: SourceAttributionVO | null;
24810
+ baseId: string | null;
24811
+ recordId: string | null;
24812
+ changeRequestId: string | null;
24813
+ operationId: string | null;
24814
+ commitId: string | null;
24815
+ metadata: Record<string, unknown>;
24816
+ createdAt: string;
24817
+ }
24818
+ //#endregion
21383
24819
  //#region src/client.d.ts
21384
24820
  /**
21385
24821
  * The fully-typed Busabase client. Built over the *cloud* contract, which is a
@@ -21421,6 +24857,8 @@ interface BusabaseConfig {
21421
24857
  * accepts that only when the token has a single unambiguous space.
21422
24858
  */
21423
24859
  spaceId?: string;
24860
+ /** Source channel recorded in Change Request and audit provenance. Defaults to `sdk`. */
24861
+ sourceChannel?: BusabaseSourceChannel;
21424
24862
  /**
21425
24863
  * Origin the *web app* is served from, for building human-openable links (see
21426
24864
  * {@link Busabase.nodeUrl}). Falls back to `BUSABASE_WEB_URL`, then to
@@ -21448,6 +24886,7 @@ interface ResolvedConfig {
21448
24886
  webUrl: string;
21449
24887
  apiKey?: string;
21450
24888
  spaceId?: string;
24889
+ sourceChannel?: BusabaseSourceChannel;
21451
24890
  headers?: BusabaseConfig["headers"];
21452
24891
  fetch?: typeof fetch;
21453
24892
  }
@@ -21478,4 +24917,4 @@ declare function resolveConfig(config?: BusabaseConfig): ResolvedConfig;
21478
24917
  */
21479
24918
  declare function createBusabaseClient(config?: BusabaseConfig): BusabaseClient;
21480
24919
  //#endregion
21481
- export { createBusabaseClient as a, cloudContract as c, NodeIconSchema as d, CREATABLE_NODE_TYPES as f, OperationKind as h, ResolvedConfig as i, NodeOutput as l, NodeType as m, BusabaseConfig as n, resolveConfig as o, CreatableNodeType as p, DEFAULT_BASE_URL as r, CloudContract as s, BusabaseClient as t, NodeIcon as u };
24920
+ export { FileTreeReadFileVO as $, SearchResultKind as A, AttachmentRef as At, VaultRuntimeEnv as B, NodeSearchResultVO as C, VIEW_FIELD_MIN_WIDTH as Ct, ReviewVO as D, ViewSortVO as Dt, OperationVO as E, ViewFilterVO as Et, VaultAccessPolicy as F, CREATABLE_NODE_TYPES as Ft, AssetDetailVO as G, VaultSettingsVO as H, VaultEnvironment as I, CreatableNodeType as It, AssetVO as J, AssetTextStatus as K, VaultItemInput as L, NodeType as Lt, SourceAttributionVO as M, cloudContract as Mt, UserRefVO as N, NodeIcon as Nt, ReviewVerdict as O, ViewType as Ot, UpdateVaultSettingsDTO as P, NodeIconSchema as Pt, FileTreeNodeVO as Q, VaultItemKind as R, OperationKind as Rt, LookupRollup as S, VIEW_FIELD_MAX_WIDTH as St, OperationStatus as T, ViewFilterOperator as Tt, FileNodeMetadata as U, VaultScopeType as V, FileNodeVO as W, GrepResultVO as X, GrepInputDTO as Y, FileTreeFileVO as Z, ChangeRequestVO as _, GalleryCardSize as _t, createBusabaseClient as a, FormPageSourceVO as at, CommitVO as b, RecordLinkVO as bt, AuditAction as c, FormThemeVO as ct, ChangeRequestBatchFailureVO as d, ListFormsVO as dt, NodeDetailVO as et, ChangeRequestCountsVO as f, SubmitFormDTO as ft, ChangeRequestTargetType as g, BaseVO as gt, ChangeRequestStatus as h, BaseFieldVO as ht, ResolvedConfig as i, FormFieldBindingVO as it, SearchResultVO as j, CloudContract as jt, SearchResponseVO as k, ViewVO as kt, AuditEventVO as l, FormVO as lt, ChangeRequestReviewBatchResultVO as m, AssetAttachmentRef as mt, BusabaseConfig as n, CreateFormDTO as nt, resolveConfig as o, FormShareVO as ot, ChangeRequestMergeBatchResultVO as p, UpdateFormDTO as pt, AssetUsageVO as q, DEFAULT_BASE_URL as r, FormBoundFieldVO as rt, AgentTaskVO as s, FormSubmitResultVO as st, BusabaseClient as t, ActivityItemVO as tt, BusabaseSourceChannel as u, ListFormsDTO as ut, CommentSubjectType as v, GalleryCoverFit as vt, NodeVO as w, ViewConfigVO as wt, FieldType as x, RecordVO as xt, CommentVO as y, GanttScale as yt, VaultItemVO as z };