busa-sdk 0.16.1 → 0.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/airapp.d.ts +1 -1
- package/dist/{client-DB7fREZX.d.ts → client-DN7Ol1g1.d.ts} +5152 -4447
- package/dist/index.d.ts +273 -13
- package/dist/index.js +172 -46
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import * as zod_v4_core from 'zod/v4/core';
|
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import * as _orpc_client from '@orpc/client';
|
|
6
|
-
import { N as NodeOutput, a as NodeType, O as OperationKind, B as BusabaseClient, R as ResolvedConfig, b as BusabaseConfig } from './client-
|
|
7
|
-
export { C as CREATABLE_NODE_TYPES, c as CloudContract, d as CreatableNodeType, D as DEFAULT_BASE_URL, e as cloudContract, f as createBusabaseClient, r as resolveConfig } from './client-
|
|
6
|
+
import { N as NodeOutput, a as NodeType, O as OperationKind, B as BusabaseClient, R as ResolvedConfig, b as BusabaseConfig } from './client-DN7Ol1g1.js';
|
|
7
|
+
export { C as CREATABLE_NODE_TYPES, c as CloudContract, d as CreatableNodeType, D as DEFAULT_BASE_URL, e as cloudContract, f as createBusabaseClient, r as resolveConfig } from './client-DN7Ol1g1.js';
|
|
8
8
|
import '@orpc/shared';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -754,6 +754,9 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
754
754
|
base_restore: "base_restore";
|
|
755
755
|
record_restore: "record_restore";
|
|
756
756
|
doc_update: "doc_update";
|
|
757
|
+
whiteboard_document_update: "whiteboard_document_update";
|
|
758
|
+
workflow_document_update: "workflow_document_update";
|
|
759
|
+
html_document_update: "html_document_update";
|
|
757
760
|
node_create: "node_create";
|
|
758
761
|
node_rename: "node_rename";
|
|
759
762
|
node_delete: "node_delete";
|
|
@@ -791,7 +794,7 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
791
794
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
792
795
|
operationId: z.ZodNullable<z.ZodString>;
|
|
793
796
|
parentCommitId: z.ZodNullable<z.ZodString>;
|
|
794
|
-
|
|
797
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
795
798
|
operation: z.ZodEnum<{
|
|
796
799
|
[x: `${string}_file_create`]: `${string}_file_create`;
|
|
797
800
|
[x: `${string}_file_update`]: `${string}_file_update`;
|
|
@@ -815,6 +818,9 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
815
818
|
base_restore: "base_restore";
|
|
816
819
|
record_restore: "record_restore";
|
|
817
820
|
doc_update: "doc_update";
|
|
821
|
+
whiteboard_document_update: "whiteboard_document_update";
|
|
822
|
+
workflow_document_update: "workflow_document_update";
|
|
823
|
+
html_document_update: "html_document_update";
|
|
818
824
|
node_create: "node_create";
|
|
819
825
|
node_rename: "node_rename";
|
|
820
826
|
node_delete: "node_delete";
|
|
@@ -866,6 +872,9 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
866
872
|
base_restore: "base_restore";
|
|
867
873
|
record_restore: "record_restore";
|
|
868
874
|
doc_update: "doc_update";
|
|
875
|
+
whiteboard_document_update: "whiteboard_document_update";
|
|
876
|
+
workflow_document_update: "workflow_document_update";
|
|
877
|
+
html_document_update: "html_document_update";
|
|
869
878
|
node_create: "node_create";
|
|
870
879
|
node_rename: "node_rename";
|
|
871
880
|
node_delete: "node_delete";
|
|
@@ -903,7 +912,7 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
903
912
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
904
913
|
operationId: z.ZodNullable<z.ZodString>;
|
|
905
914
|
parentCommitId: z.ZodNullable<z.ZodString>;
|
|
906
|
-
|
|
915
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
907
916
|
operation: z.ZodEnum<{
|
|
908
917
|
[x: `${string}_file_create`]: `${string}_file_create`;
|
|
909
918
|
[x: `${string}_file_update`]: `${string}_file_update`;
|
|
@@ -927,6 +936,9 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
927
936
|
base_restore: "base_restore";
|
|
928
937
|
record_restore: "record_restore";
|
|
929
938
|
doc_update: "doc_update";
|
|
939
|
+
whiteboard_document_update: "whiteboard_document_update";
|
|
940
|
+
workflow_document_update: "workflow_document_update";
|
|
941
|
+
html_document_update: "html_document_update";
|
|
930
942
|
node_create: "node_create";
|
|
931
943
|
node_rename: "node_rename";
|
|
932
944
|
node_delete: "node_delete";
|
|
@@ -1159,6 +1171,9 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1159
1171
|
base_restore: "base_restore";
|
|
1160
1172
|
record_restore: "record_restore";
|
|
1161
1173
|
doc_update: "doc_update";
|
|
1174
|
+
whiteboard_document_update: "whiteboard_document_update";
|
|
1175
|
+
workflow_document_update: "workflow_document_update";
|
|
1176
|
+
html_document_update: "html_document_update";
|
|
1162
1177
|
node_create: "node_create";
|
|
1163
1178
|
node_rename: "node_rename";
|
|
1164
1179
|
node_delete: "node_delete";
|
|
@@ -1196,7 +1211,7 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1196
1211
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
1197
1212
|
operationId: z.ZodNullable<z.ZodString>;
|
|
1198
1213
|
parentCommitId: z.ZodNullable<z.ZodString>;
|
|
1199
|
-
|
|
1214
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1200
1215
|
operation: z.ZodEnum<{
|
|
1201
1216
|
[x: `${string}_file_create`]: `${string}_file_create`;
|
|
1202
1217
|
[x: `${string}_file_update`]: `${string}_file_update`;
|
|
@@ -1220,6 +1235,9 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1220
1235
|
base_restore: "base_restore";
|
|
1221
1236
|
record_restore: "record_restore";
|
|
1222
1237
|
doc_update: "doc_update";
|
|
1238
|
+
whiteboard_document_update: "whiteboard_document_update";
|
|
1239
|
+
workflow_document_update: "workflow_document_update";
|
|
1240
|
+
html_document_update: "html_document_update";
|
|
1223
1241
|
node_create: "node_create";
|
|
1224
1242
|
node_rename: "node_rename";
|
|
1225
1243
|
node_delete: "node_delete";
|
|
@@ -1271,6 +1289,9 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1271
1289
|
base_restore: "base_restore";
|
|
1272
1290
|
record_restore: "record_restore";
|
|
1273
1291
|
doc_update: "doc_update";
|
|
1292
|
+
whiteboard_document_update: "whiteboard_document_update";
|
|
1293
|
+
workflow_document_update: "workflow_document_update";
|
|
1294
|
+
html_document_update: "html_document_update";
|
|
1274
1295
|
node_create: "node_create";
|
|
1275
1296
|
node_rename: "node_rename";
|
|
1276
1297
|
node_delete: "node_delete";
|
|
@@ -1308,7 +1329,7 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1308
1329
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
1309
1330
|
operationId: z.ZodNullable<z.ZodString>;
|
|
1310
1331
|
parentCommitId: z.ZodNullable<z.ZodString>;
|
|
1311
|
-
|
|
1332
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1312
1333
|
operation: z.ZodEnum<{
|
|
1313
1334
|
[x: `${string}_file_create`]: `${string}_file_create`;
|
|
1314
1335
|
[x: `${string}_file_update`]: `${string}_file_update`;
|
|
@@ -1332,6 +1353,9 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1332
1353
|
base_restore: "base_restore";
|
|
1333
1354
|
record_restore: "record_restore";
|
|
1334
1355
|
doc_update: "doc_update";
|
|
1356
|
+
whiteboard_document_update: "whiteboard_document_update";
|
|
1357
|
+
workflow_document_update: "workflow_document_update";
|
|
1358
|
+
html_document_update: "html_document_update";
|
|
1335
1359
|
node_create: "node_create";
|
|
1336
1360
|
node_rename: "node_rename";
|
|
1337
1361
|
node_delete: "node_delete";
|
|
@@ -1528,7 +1552,7 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1528
1552
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
1529
1553
|
operationId: z.ZodNullable<z.ZodString>;
|
|
1530
1554
|
parentCommitId: z.ZodNullable<z.ZodString>;
|
|
1531
|
-
|
|
1555
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1532
1556
|
operation: z.ZodEnum<{
|
|
1533
1557
|
[x: `${string}_file_create`]: `${string}_file_create`;
|
|
1534
1558
|
[x: `${string}_file_update`]: `${string}_file_update`;
|
|
@@ -1552,6 +1576,9 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1552
1576
|
base_restore: "base_restore";
|
|
1553
1577
|
record_restore: "record_restore";
|
|
1554
1578
|
doc_update: "doc_update";
|
|
1579
|
+
whiteboard_document_update: "whiteboard_document_update";
|
|
1580
|
+
workflow_document_update: "workflow_document_update";
|
|
1581
|
+
html_document_update: "html_document_update";
|
|
1555
1582
|
node_create: "node_create";
|
|
1556
1583
|
node_rename: "node_rename";
|
|
1557
1584
|
node_delete: "node_delete";
|
|
@@ -1766,7 +1793,7 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1766
1793
|
nodeId: z.ZodNullable<z.ZodString>;
|
|
1767
1794
|
operationId: z.ZodNullable<z.ZodString>;
|
|
1768
1795
|
parentCommitId: z.ZodNullable<z.ZodString>;
|
|
1769
|
-
|
|
1796
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1770
1797
|
operation: z.ZodEnum<{
|
|
1771
1798
|
[x: `${string}_file_create`]: `${string}_file_create`;
|
|
1772
1799
|
[x: `${string}_file_update`]: `${string}_file_update`;
|
|
@@ -1790,6 +1817,9 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1790
1817
|
base_restore: "base_restore";
|
|
1791
1818
|
record_restore: "record_restore";
|
|
1792
1819
|
doc_update: "doc_update";
|
|
1820
|
+
whiteboard_document_update: "whiteboard_document_update";
|
|
1821
|
+
workflow_document_update: "workflow_document_update";
|
|
1822
|
+
html_document_update: "html_document_update";
|
|
1793
1823
|
node_create: "node_create";
|
|
1794
1824
|
node_rename: "node_rename";
|
|
1795
1825
|
node_delete: "node_delete";
|
|
@@ -1915,12 +1945,227 @@ declare const NodeDetailVOSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1915
1945
|
}, z.core.$strip>, z.ZodObject<{
|
|
1916
1946
|
type: z.ZodLiteral<"whiteboard">;
|
|
1917
1947
|
node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
|
|
1948
|
+
document: z.ZodType<{
|
|
1949
|
+
version: 1;
|
|
1950
|
+
elements: unknown[];
|
|
1951
|
+
appState: Record<string, unknown>;
|
|
1952
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
1953
|
+
version: 1;
|
|
1954
|
+
elements: unknown[];
|
|
1955
|
+
appState: Record<string, unknown>;
|
|
1956
|
+
}, unknown>>;
|
|
1918
1957
|
}, z.core.$strip>, z.ZodObject<{
|
|
1919
1958
|
type: z.ZodLiteral<"workflow">;
|
|
1920
1959
|
node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
|
|
1960
|
+
document: z.ZodType<{
|
|
1961
|
+
version: 2;
|
|
1962
|
+
nodes: ({
|
|
1963
|
+
kind: "trigger";
|
|
1964
|
+
eventName: string;
|
|
1965
|
+
id: string;
|
|
1966
|
+
position: {
|
|
1967
|
+
x: number;
|
|
1968
|
+
y: number;
|
|
1969
|
+
};
|
|
1970
|
+
label: string;
|
|
1971
|
+
description: string;
|
|
1972
|
+
} | {
|
|
1973
|
+
kind: "webhook";
|
|
1974
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
1975
|
+
url: string;
|
|
1976
|
+
id: string;
|
|
1977
|
+
position: {
|
|
1978
|
+
x: number;
|
|
1979
|
+
y: number;
|
|
1980
|
+
};
|
|
1981
|
+
label: string;
|
|
1982
|
+
description: string;
|
|
1983
|
+
} | {
|
|
1984
|
+
kind: "function";
|
|
1985
|
+
webhookRuleId: string;
|
|
1986
|
+
functionName: string;
|
|
1987
|
+
id: string;
|
|
1988
|
+
position: {
|
|
1989
|
+
x: number;
|
|
1990
|
+
y: number;
|
|
1991
|
+
};
|
|
1992
|
+
label: string;
|
|
1993
|
+
description: string;
|
|
1994
|
+
} | {
|
|
1995
|
+
kind: "condition";
|
|
1996
|
+
expression: string;
|
|
1997
|
+
id: string;
|
|
1998
|
+
position: {
|
|
1999
|
+
x: number;
|
|
2000
|
+
y: number;
|
|
2001
|
+
};
|
|
2002
|
+
label: string;
|
|
2003
|
+
description: string;
|
|
2004
|
+
} | {
|
|
2005
|
+
kind: "wait";
|
|
2006
|
+
duration: number;
|
|
2007
|
+
unit: "minutes" | "hours" | "days";
|
|
2008
|
+
id: string;
|
|
2009
|
+
position: {
|
|
2010
|
+
x: number;
|
|
2011
|
+
y: number;
|
|
2012
|
+
};
|
|
2013
|
+
label: string;
|
|
2014
|
+
description: string;
|
|
2015
|
+
} | {
|
|
2016
|
+
kind: "approval";
|
|
2017
|
+
approver: string;
|
|
2018
|
+
id: string;
|
|
2019
|
+
position: {
|
|
2020
|
+
x: number;
|
|
2021
|
+
y: number;
|
|
2022
|
+
};
|
|
2023
|
+
label: string;
|
|
2024
|
+
description: string;
|
|
2025
|
+
} | {
|
|
2026
|
+
kind: "action";
|
|
2027
|
+
actionName: string;
|
|
2028
|
+
id: string;
|
|
2029
|
+
position: {
|
|
2030
|
+
x: number;
|
|
2031
|
+
y: number;
|
|
2032
|
+
};
|
|
2033
|
+
label: string;
|
|
2034
|
+
description: string;
|
|
2035
|
+
} | {
|
|
2036
|
+
kind: "end";
|
|
2037
|
+
outcome: string;
|
|
2038
|
+
id: string;
|
|
2039
|
+
position: {
|
|
2040
|
+
x: number;
|
|
2041
|
+
y: number;
|
|
2042
|
+
};
|
|
2043
|
+
label: string;
|
|
2044
|
+
description: string;
|
|
2045
|
+
})[];
|
|
2046
|
+
edges: {
|
|
2047
|
+
id: string;
|
|
2048
|
+
source: string;
|
|
2049
|
+
target: string;
|
|
2050
|
+
label: string;
|
|
2051
|
+
outcome: string;
|
|
2052
|
+
}[];
|
|
2053
|
+
settings: {
|
|
2054
|
+
executionMode: "manual" | "event";
|
|
2055
|
+
concurrency: number;
|
|
2056
|
+
timeoutMs: number;
|
|
2057
|
+
errorPolicy: "stop" | "continue";
|
|
2058
|
+
};
|
|
2059
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
2060
|
+
version: 2;
|
|
2061
|
+
nodes: ({
|
|
2062
|
+
kind: "trigger";
|
|
2063
|
+
eventName: string;
|
|
2064
|
+
id: string;
|
|
2065
|
+
position: {
|
|
2066
|
+
x: number;
|
|
2067
|
+
y: number;
|
|
2068
|
+
};
|
|
2069
|
+
label: string;
|
|
2070
|
+
description: string;
|
|
2071
|
+
} | {
|
|
2072
|
+
kind: "webhook";
|
|
2073
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2074
|
+
url: string;
|
|
2075
|
+
id: string;
|
|
2076
|
+
position: {
|
|
2077
|
+
x: number;
|
|
2078
|
+
y: number;
|
|
2079
|
+
};
|
|
2080
|
+
label: string;
|
|
2081
|
+
description: string;
|
|
2082
|
+
} | {
|
|
2083
|
+
kind: "function";
|
|
2084
|
+
webhookRuleId: string;
|
|
2085
|
+
functionName: string;
|
|
2086
|
+
id: string;
|
|
2087
|
+
position: {
|
|
2088
|
+
x: number;
|
|
2089
|
+
y: number;
|
|
2090
|
+
};
|
|
2091
|
+
label: string;
|
|
2092
|
+
description: string;
|
|
2093
|
+
} | {
|
|
2094
|
+
kind: "condition";
|
|
2095
|
+
expression: string;
|
|
2096
|
+
id: string;
|
|
2097
|
+
position: {
|
|
2098
|
+
x: number;
|
|
2099
|
+
y: number;
|
|
2100
|
+
};
|
|
2101
|
+
label: string;
|
|
2102
|
+
description: string;
|
|
2103
|
+
} | {
|
|
2104
|
+
kind: "wait";
|
|
2105
|
+
duration: number;
|
|
2106
|
+
unit: "minutes" | "hours" | "days";
|
|
2107
|
+
id: string;
|
|
2108
|
+
position: {
|
|
2109
|
+
x: number;
|
|
2110
|
+
y: number;
|
|
2111
|
+
};
|
|
2112
|
+
label: string;
|
|
2113
|
+
description: string;
|
|
2114
|
+
} | {
|
|
2115
|
+
kind: "approval";
|
|
2116
|
+
approver: string;
|
|
2117
|
+
id: string;
|
|
2118
|
+
position: {
|
|
2119
|
+
x: number;
|
|
2120
|
+
y: number;
|
|
2121
|
+
};
|
|
2122
|
+
label: string;
|
|
2123
|
+
description: string;
|
|
2124
|
+
} | {
|
|
2125
|
+
kind: "action";
|
|
2126
|
+
actionName: string;
|
|
2127
|
+
id: string;
|
|
2128
|
+
position: {
|
|
2129
|
+
x: number;
|
|
2130
|
+
y: number;
|
|
2131
|
+
};
|
|
2132
|
+
label: string;
|
|
2133
|
+
description: string;
|
|
2134
|
+
} | {
|
|
2135
|
+
kind: "end";
|
|
2136
|
+
outcome: string;
|
|
2137
|
+
id: string;
|
|
2138
|
+
position: {
|
|
2139
|
+
x: number;
|
|
2140
|
+
y: number;
|
|
2141
|
+
};
|
|
2142
|
+
label: string;
|
|
2143
|
+
description: string;
|
|
2144
|
+
})[];
|
|
2145
|
+
edges: {
|
|
2146
|
+
id: string;
|
|
2147
|
+
source: string;
|
|
2148
|
+
target: string;
|
|
2149
|
+
label: string;
|
|
2150
|
+
outcome: string;
|
|
2151
|
+
}[];
|
|
2152
|
+
settings: {
|
|
2153
|
+
executionMode: "manual" | "event";
|
|
2154
|
+
concurrency: number;
|
|
2155
|
+
timeoutMs: number;
|
|
2156
|
+
errorPolicy: "stop" | "continue";
|
|
2157
|
+
};
|
|
2158
|
+
}, unknown>>;
|
|
1921
2159
|
}, z.core.$strip>, z.ZodObject<{
|
|
1922
2160
|
type: z.ZodLiteral<"html">;
|
|
1923
2161
|
node: z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>;
|
|
2162
|
+
document: z.ZodType<{
|
|
2163
|
+
version: 1;
|
|
2164
|
+
source: string;
|
|
2165
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
2166
|
+
version: 1;
|
|
2167
|
+
source: string;
|
|
2168
|
+
}, unknown>>;
|
|
1924
2169
|
}, z.core.$strip>], "type">;
|
|
1925
2170
|
type NodeDetailVO = z.infer<typeof NodeDetailVOSchema>;
|
|
1926
2171
|
|
|
@@ -2342,12 +2587,21 @@ interface NodeVO {
|
|
|
2342
2587
|
slug: string;
|
|
2343
2588
|
name: string;
|
|
2344
2589
|
description: string;
|
|
2590
|
+
/**
|
|
2591
|
+
* Free-form extension data — the caller's bag. The product reads nothing here
|
|
2592
|
+
* except `version`, a label the user writes and the product never interprets.
|
|
2593
|
+
* Kept in sync with `NodeOutput` in `contract/schemas.ts`, which is the shape
|
|
2594
|
+
* the wire schema actually validates.
|
|
2595
|
+
*/
|
|
2345
2596
|
metadata: Record<string, unknown> & {
|
|
2346
|
-
entryFile?: string;
|
|
2347
|
-
visibility?: "private" | "workspace" | "public";
|
|
2348
2597
|
version?: string;
|
|
2349
|
-
assetId?: string;
|
|
2350
2598
|
};
|
|
2599
|
+
/**
|
|
2600
|
+
* This node's OWN declared visibility, or null when it inherits from its
|
|
2601
|
+
* ancestors. A real column rather than a metadata key, because it is the node
|
|
2602
|
+
* ACL's only explicit input — see `content/spec/node-content-storage.md` (D1).
|
|
2603
|
+
*/
|
|
2604
|
+
explicitVisibility: "private" | "workspace" | "public" | null;
|
|
2351
2605
|
position: number;
|
|
2352
2606
|
createdAt: string;
|
|
2353
2607
|
updatedAt: string;
|
|
@@ -2369,7 +2623,13 @@ interface CommitVO {
|
|
|
2369
2623
|
nodeId: string | null;
|
|
2370
2624
|
operationId: string | null;
|
|
2371
2625
|
parentCommitId: string | null;
|
|
2372
|
-
|
|
2626
|
+
/**
|
|
2627
|
+
* Polymorphic change payload; its shape is determined by `operation`.
|
|
2628
|
+
* Intentionally loose here — see the comment on `commitSchema.payload` in
|
|
2629
|
+
* `contract/schemas.ts`. Historical commits predate payload validation, and this
|
|
2630
|
+
* VO is what history/approval screens read, so it must stay permissive.
|
|
2631
|
+
*/
|
|
2632
|
+
payload: Record<string, unknown>;
|
|
2373
2633
|
operation: OperationKind;
|
|
2374
2634
|
message: string;
|
|
2375
2635
|
author: string;
|
|
@@ -2766,7 +3026,7 @@ declare class Busabase {
|
|
|
2766
3026
|
/**
|
|
2767
3027
|
* Unified grep — one regex/literal pattern scanned across every in-scope
|
|
2768
3028
|
* source (Drive/Skill files, Doc bodies, and Base records — records read
|
|
2769
|
-
* the canonical `headCommit.
|
|
3029
|
+
* the canonical `headCommit.payload`, never the truncated search
|
|
2770
3030
|
* projection), with a shared `maxMatches`/deadline budget and per-source
|
|
2771
3031
|
* honest coverage. `bb.assets.grep` remains available as a files-only SDK
|
|
2772
3032
|
* convenience and delegates here with `sources: ["files"]`.
|