busa-sdk 0.97.0 → 0.98.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.
package/dist/airapp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BusabaseClient } from "./client-
|
|
1
|
+
import { t as BusabaseClient } from "./client-DtzuVlPK.js";
|
|
2
2
|
//#region src/airapp.d.ts
|
|
3
3
|
type NodeChangeRequestInput = Parameters<BusabaseClient["nodes"]["createChangeRequest"]>[0];
|
|
4
4
|
type NodeOperationInput = NodeChangeRequestInput["operations"][number];
|
package/dist/airapp.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as uploadAsset, t as APP_ROOT_RESOURCE_KEY } from "./template-CMJMkyse.js";
|
|
2
2
|
//#region src/airapp.ts
|
|
3
3
|
/**
|
|
4
4
|
* AirApp resource provisioning — how an app claims (or creates) the Folder and
|
|
@@ -272,7 +272,7 @@ declare const BUILTIN_NODE_TYPES: readonly [{
|
|
|
272
272
|
readonly capabilities: {
|
|
273
273
|
readonly hasDetail: true;
|
|
274
274
|
readonly creatable: true;
|
|
275
|
-
readonly publicAccess: "
|
|
275
|
+
readonly publicAccess: "detail";
|
|
276
276
|
};
|
|
277
277
|
readonly operations: readonly [{
|
|
278
278
|
readonly kind: "html_document_update";
|
|
@@ -1149,6 +1149,10 @@ declare const cloudContract: {
|
|
|
1149
1149
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
1150
1150
|
label: z.ZodNullable<z.ZodString>;
|
|
1151
1151
|
}, z.core.$strip>>>;
|
|
1152
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1153
|
+
id: z.ZodString;
|
|
1154
|
+
name: z.ZodString;
|
|
1155
|
+
}, z.core.$strip>>>;
|
|
1152
1156
|
}, z.core.$strip>>>;
|
|
1153
1157
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1154
1158
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -1615,6 +1619,10 @@ declare const cloudContract: {
|
|
|
1615
1619
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
1616
1620
|
label: z.ZodNullable<z.ZodString>;
|
|
1617
1621
|
}, z.core.$strip>>>;
|
|
1622
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1623
|
+
id: z.ZodString;
|
|
1624
|
+
name: z.ZodString;
|
|
1625
|
+
}, z.core.$strip>>>;
|
|
1618
1626
|
}, z.core.$strip>>>;
|
|
1619
1627
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1620
1628
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -2332,6 +2340,10 @@ declare const cloudContract: {
|
|
|
2332
2340
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
2333
2341
|
label: z.ZodNullable<z.ZodString>;
|
|
2334
2342
|
}, z.core.$strip>>>;
|
|
2343
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2344
|
+
id: z.ZodString;
|
|
2345
|
+
name: z.ZodString;
|
|
2346
|
+
}, z.core.$strip>>>;
|
|
2335
2347
|
}, z.core.$strip>>>;
|
|
2336
2348
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2337
2349
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -3392,6 +3404,10 @@ declare const cloudContract: {
|
|
|
3392
3404
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
3393
3405
|
label: z.ZodNullable<z.ZodString>;
|
|
3394
3406
|
}, z.core.$strip>>>;
|
|
3407
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3408
|
+
id: z.ZodString;
|
|
3409
|
+
name: z.ZodString;
|
|
3410
|
+
}, z.core.$strip>>>;
|
|
3395
3411
|
}, z.core.$strip>>>;
|
|
3396
3412
|
baseId: z.ZodNullable<z.ZodString>;
|
|
3397
3413
|
recordId: z.ZodNullable<z.ZodString>;
|
|
@@ -3494,6 +3510,10 @@ declare const cloudContract: {
|
|
|
3494
3510
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
3495
3511
|
label: z.ZodNullable<z.ZodString>;
|
|
3496
3512
|
}, z.core.$strip>>>;
|
|
3513
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3514
|
+
id: z.ZodString;
|
|
3515
|
+
name: z.ZodString;
|
|
3516
|
+
}, z.core.$strip>>>;
|
|
3497
3517
|
}, z.core.$strip>>>;
|
|
3498
3518
|
baseId: z.ZodNullable<z.ZodString>;
|
|
3499
3519
|
recordId: z.ZodNullable<z.ZodString>;
|
|
@@ -3565,6 +3585,10 @@ declare const cloudContract: {
|
|
|
3565
3585
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
3566
3586
|
label: z.ZodNullable<z.ZodString>;
|
|
3567
3587
|
}, z.core.$strip>>>;
|
|
3588
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3589
|
+
id: z.ZodString;
|
|
3590
|
+
name: z.ZodString;
|
|
3591
|
+
}, z.core.$strip>>>;
|
|
3568
3592
|
}, z.core.$strip>>>;
|
|
3569
3593
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3570
3594
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -4029,6 +4053,10 @@ declare const cloudContract: {
|
|
|
4029
4053
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
4030
4054
|
label: z.ZodNullable<z.ZodString>;
|
|
4031
4055
|
}, z.core.$strip>>>;
|
|
4056
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4057
|
+
id: z.ZodString;
|
|
4058
|
+
name: z.ZodString;
|
|
4059
|
+
}, z.core.$strip>>>;
|
|
4032
4060
|
}, z.core.$strip>>>;
|
|
4033
4061
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4034
4062
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -4728,6 +4756,10 @@ declare const cloudContract: {
|
|
|
4728
4756
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
4729
4757
|
label: z.ZodNullable<z.ZodString>;
|
|
4730
4758
|
}, z.core.$strip>>>;
|
|
4759
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4760
|
+
id: z.ZodString;
|
|
4761
|
+
name: z.ZodString;
|
|
4762
|
+
}, z.core.$strip>>>;
|
|
4731
4763
|
}, z.core.$strip>>>;
|
|
4732
4764
|
baseId: z.ZodNullable<z.ZodString>;
|
|
4733
4765
|
recordId: z.ZodNullable<z.ZodString>;
|
|
@@ -5023,6 +5055,10 @@ declare const cloudContract: {
|
|
|
5023
5055
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
5024
5056
|
label: z.ZodNullable<z.ZodString>;
|
|
5025
5057
|
}, z.core.$strip>>>;
|
|
5058
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5059
|
+
id: z.ZodString;
|
|
5060
|
+
name: z.ZodString;
|
|
5061
|
+
}, z.core.$strip>>>;
|
|
5026
5062
|
}, z.core.$strip>>>;
|
|
5027
5063
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5028
5064
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -5487,6 +5523,10 @@ declare const cloudContract: {
|
|
|
5487
5523
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
5488
5524
|
label: z.ZodNullable<z.ZodString>;
|
|
5489
5525
|
}, z.core.$strip>>>;
|
|
5526
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5527
|
+
id: z.ZodString;
|
|
5528
|
+
name: z.ZodString;
|
|
5529
|
+
}, z.core.$strip>>>;
|
|
5490
5530
|
}, z.core.$strip>>>;
|
|
5491
5531
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5492
5532
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -6186,6 +6226,10 @@ declare const cloudContract: {
|
|
|
6186
6226
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
6187
6227
|
label: z.ZodNullable<z.ZodString>;
|
|
6188
6228
|
}, z.core.$strip>>>;
|
|
6229
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6230
|
+
id: z.ZodString;
|
|
6231
|
+
name: z.ZodString;
|
|
6232
|
+
}, z.core.$strip>>>;
|
|
6189
6233
|
}, z.core.$strip>>>;
|
|
6190
6234
|
baseId: z.ZodNullable<z.ZodString>;
|
|
6191
6235
|
recordId: z.ZodNullable<z.ZodString>;
|
|
@@ -6480,6 +6524,10 @@ declare const cloudContract: {
|
|
|
6480
6524
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
6481
6525
|
label: z.ZodNullable<z.ZodString>;
|
|
6482
6526
|
}, z.core.$strip>>>;
|
|
6527
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6528
|
+
id: z.ZodString;
|
|
6529
|
+
name: z.ZodString;
|
|
6530
|
+
}, z.core.$strip>>>;
|
|
6483
6531
|
}, z.core.$strip>>>;
|
|
6484
6532
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6485
6533
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -6944,6 +6992,10 @@ declare const cloudContract: {
|
|
|
6944
6992
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
6945
6993
|
label: z.ZodNullable<z.ZodString>;
|
|
6946
6994
|
}, z.core.$strip>>>;
|
|
6995
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6996
|
+
id: z.ZodString;
|
|
6997
|
+
name: z.ZodString;
|
|
6998
|
+
}, z.core.$strip>>>;
|
|
6947
6999
|
}, z.core.$strip>>>;
|
|
6948
7000
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6949
7001
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -7643,6 +7695,10 @@ declare const cloudContract: {
|
|
|
7643
7695
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
7644
7696
|
label: z.ZodNullable<z.ZodString>;
|
|
7645
7697
|
}, z.core.$strip>>>;
|
|
7698
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7699
|
+
id: z.ZodString;
|
|
7700
|
+
name: z.ZodString;
|
|
7701
|
+
}, z.core.$strip>>>;
|
|
7646
7702
|
}, z.core.$strip>>>;
|
|
7647
7703
|
baseId: z.ZodNullable<z.ZodString>;
|
|
7648
7704
|
recordId: z.ZodNullable<z.ZodString>;
|
|
@@ -7935,6 +7991,10 @@ declare const cloudContract: {
|
|
|
7935
7991
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
7936
7992
|
label: z.ZodNullable<z.ZodString>;
|
|
7937
7993
|
}, z.core.$strip>>>;
|
|
7994
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7995
|
+
id: z.ZodString;
|
|
7996
|
+
name: z.ZodString;
|
|
7997
|
+
}, z.core.$strip>>>;
|
|
7938
7998
|
}, z.core.$strip>>>;
|
|
7939
7999
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7940
8000
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -8399,6 +8459,10 @@ declare const cloudContract: {
|
|
|
8399
8459
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
8400
8460
|
label: z.ZodNullable<z.ZodString>;
|
|
8401
8461
|
}, z.core.$strip>>>;
|
|
8462
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
8463
|
+
id: z.ZodString;
|
|
8464
|
+
name: z.ZodString;
|
|
8465
|
+
}, z.core.$strip>>>;
|
|
8402
8466
|
}, z.core.$strip>>>;
|
|
8403
8467
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8404
8468
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -9098,6 +9162,10 @@ declare const cloudContract: {
|
|
|
9098
9162
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
9099
9163
|
label: z.ZodNullable<z.ZodString>;
|
|
9100
9164
|
}, z.core.$strip>>>;
|
|
9165
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9166
|
+
id: z.ZodString;
|
|
9167
|
+
name: z.ZodString;
|
|
9168
|
+
}, z.core.$strip>>>;
|
|
9101
9169
|
}, z.core.$strip>>>;
|
|
9102
9170
|
baseId: z.ZodNullable<z.ZodString>;
|
|
9103
9171
|
recordId: z.ZodNullable<z.ZodString>;
|
|
@@ -9538,6 +9606,10 @@ declare const cloudContract: {
|
|
|
9538
9606
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
9539
9607
|
label: z.ZodNullable<z.ZodString>;
|
|
9540
9608
|
}, z.core.$strip>>>;
|
|
9609
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9610
|
+
id: z.ZodString;
|
|
9611
|
+
name: z.ZodString;
|
|
9612
|
+
}, z.core.$strip>>>;
|
|
9541
9613
|
}, z.core.$strip>>>;
|
|
9542
9614
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9543
9615
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -10860,6 +10932,10 @@ declare const cloudContract: {
|
|
|
10860
10932
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
10861
10933
|
label: z.ZodNullable<z.ZodString>;
|
|
10862
10934
|
}, z.core.$strip>>>;
|
|
10935
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10936
|
+
id: z.ZodString;
|
|
10937
|
+
name: z.ZodString;
|
|
10938
|
+
}, z.core.$strip>>>;
|
|
10863
10939
|
}, z.core.$strip>>>;
|
|
10864
10940
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
10865
10941
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -11552,6 +11628,10 @@ declare const cloudContract: {
|
|
|
11552
11628
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
11553
11629
|
label: z.ZodNullable<z.ZodString>;
|
|
11554
11630
|
}, z.core.$strip>>>;
|
|
11631
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11632
|
+
id: z.ZodString;
|
|
11633
|
+
name: z.ZodString;
|
|
11634
|
+
}, z.core.$strip>>>;
|
|
11555
11635
|
}, z.core.$strip>>>;
|
|
11556
11636
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11557
11637
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -12020,6 +12100,10 @@ declare const cloudContract: {
|
|
|
12020
12100
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
12021
12101
|
label: z.ZodNullable<z.ZodString>;
|
|
12022
12102
|
}, z.core.$strip>>>;
|
|
12103
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12104
|
+
id: z.ZodString;
|
|
12105
|
+
name: z.ZodString;
|
|
12106
|
+
}, z.core.$strip>>>;
|
|
12023
12107
|
}, z.core.$strip>>>;
|
|
12024
12108
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12025
12109
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -12492,6 +12576,10 @@ declare const cloudContract: {
|
|
|
12492
12576
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
12493
12577
|
label: z.ZodNullable<z.ZodString>;
|
|
12494
12578
|
}, z.core.$strip>>>;
|
|
12579
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12580
|
+
id: z.ZodString;
|
|
12581
|
+
name: z.ZodString;
|
|
12582
|
+
}, z.core.$strip>>>;
|
|
12495
12583
|
}, z.core.$strip>>>;
|
|
12496
12584
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12497
12585
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -13518,6 +13606,10 @@ declare const cloudContract: {
|
|
|
13518
13606
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
13519
13607
|
label: z.ZodNullable<z.ZodString>;
|
|
13520
13608
|
}, z.core.$strip>>>;
|
|
13609
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13610
|
+
id: z.ZodString;
|
|
13611
|
+
name: z.ZodString;
|
|
13612
|
+
}, z.core.$strip>>>;
|
|
13521
13613
|
}, z.core.$strip>>>;
|
|
13522
13614
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13523
13615
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -14037,6 +14129,10 @@ declare const cloudContract: {
|
|
|
14037
14129
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
14038
14130
|
label: z.ZodNullable<z.ZodString>;
|
|
14039
14131
|
}, z.core.$strip>>>;
|
|
14132
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14133
|
+
id: z.ZodString;
|
|
14134
|
+
name: z.ZodString;
|
|
14135
|
+
}, z.core.$strip>>>;
|
|
14040
14136
|
}, z.core.$strip>>>;
|
|
14041
14137
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
14042
14138
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -14599,6 +14695,10 @@ declare const cloudContract: {
|
|
|
14599
14695
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
14600
14696
|
label: z.ZodNullable<z.ZodString>;
|
|
14601
14697
|
}, z.core.$strip>>>;
|
|
14698
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14699
|
+
id: z.ZodString;
|
|
14700
|
+
name: z.ZodString;
|
|
14701
|
+
}, z.core.$strip>>>;
|
|
14602
14702
|
}, z.core.$strip>>>;
|
|
14603
14703
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
14604
14704
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -15143,6 +15243,10 @@ declare const cloudContract: {
|
|
|
15143
15243
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
15144
15244
|
label: z.ZodNullable<z.ZodString>;
|
|
15145
15245
|
}, z.core.$strip>>>;
|
|
15246
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15247
|
+
id: z.ZodString;
|
|
15248
|
+
name: z.ZodString;
|
|
15249
|
+
}, z.core.$strip>>>;
|
|
15146
15250
|
}, z.core.$strip>>>;
|
|
15147
15251
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15148
15252
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -15682,6 +15786,10 @@ declare const cloudContract: {
|
|
|
15682
15786
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
15683
15787
|
label: z.ZodNullable<z.ZodString>;
|
|
15684
15788
|
}, z.core.$strip>>>;
|
|
15789
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15790
|
+
id: z.ZodString;
|
|
15791
|
+
name: z.ZodString;
|
|
15792
|
+
}, z.core.$strip>>>;
|
|
15685
15793
|
}, z.core.$strip>>>;
|
|
15686
15794
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15687
15795
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -16157,6 +16265,10 @@ declare const cloudContract: {
|
|
|
16157
16265
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
16158
16266
|
label: z.ZodNullable<z.ZodString>;
|
|
16159
16267
|
}, z.core.$strip>>>;
|
|
16268
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16269
|
+
id: z.ZodString;
|
|
16270
|
+
name: z.ZodString;
|
|
16271
|
+
}, z.core.$strip>>>;
|
|
16160
16272
|
}, z.core.$strip>>>;
|
|
16161
16273
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
16162
16274
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -17298,6 +17410,10 @@ declare const cloudContract: {
|
|
|
17298
17410
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
17299
17411
|
label: z.ZodNullable<z.ZodString>;
|
|
17300
17412
|
}, z.core.$strip>>>;
|
|
17413
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17414
|
+
id: z.ZodString;
|
|
17415
|
+
name: z.ZodString;
|
|
17416
|
+
}, z.core.$strip>>>;
|
|
17301
17417
|
}, z.core.$strip>>>;
|
|
17302
17418
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
17303
17419
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -18833,6 +18949,10 @@ declare const cloudContract: {
|
|
|
18833
18949
|
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
18834
18950
|
screenshots: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
18835
18951
|
video: z.ZodOptional<z.ZodString>;
|
|
18952
|
+
locales: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
18953
|
+
screenshots: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18954
|
+
video: z.ZodOptional<z.ZodString>;
|
|
18955
|
+
}, z.core.$strip>>>;
|
|
18836
18956
|
agentPrompts: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
18837
18957
|
version: z.ZodOptional<z.ZodString>;
|
|
18838
18958
|
author: z.ZodOptional<z.ZodString>;
|
|
@@ -18983,6 +19103,10 @@ declare const cloudContract: {
|
|
|
18983
19103
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
18984
19104
|
label: z.ZodNullable<z.ZodString>;
|
|
18985
19105
|
}, z.core.$strip>>>;
|
|
19106
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19107
|
+
id: z.ZodString;
|
|
19108
|
+
name: z.ZodString;
|
|
19109
|
+
}, z.core.$strip>>>;
|
|
18986
19110
|
}, z.core.$strip>>>;
|
|
18987
19111
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18988
19112
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -19460,6 +19584,10 @@ declare const cloudContract: {
|
|
|
19460
19584
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
19461
19585
|
label: z.ZodNullable<z.ZodString>;
|
|
19462
19586
|
}, z.core.$strip>>>;
|
|
19587
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19588
|
+
id: z.ZodString;
|
|
19589
|
+
name: z.ZodString;
|
|
19590
|
+
}, z.core.$strip>>>;
|
|
19463
19591
|
}, z.core.$strip>>>;
|
|
19464
19592
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19465
19593
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -19939,6 +20067,10 @@ declare const cloudContract: {
|
|
|
19939
20067
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
19940
20068
|
label: z.ZodNullable<z.ZodString>;
|
|
19941
20069
|
}, z.core.$strip>>>;
|
|
20070
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20071
|
+
id: z.ZodString;
|
|
20072
|
+
name: z.ZodString;
|
|
20073
|
+
}, z.core.$strip>>>;
|
|
19942
20074
|
}, z.core.$strip>>>;
|
|
19943
20075
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19944
20076
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -20425,6 +20557,10 @@ declare const cloudContract: {
|
|
|
20425
20557
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
20426
20558
|
label: z.ZodNullable<z.ZodString>;
|
|
20427
20559
|
}, z.core.$strip>>>;
|
|
20560
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20561
|
+
id: z.ZodString;
|
|
20562
|
+
name: z.ZodString;
|
|
20563
|
+
}, z.core.$strip>>>;
|
|
20428
20564
|
}, z.core.$strip>>>;
|
|
20429
20565
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
20430
20566
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -20897,6 +21033,10 @@ declare const cloudContract: {
|
|
|
20897
21033
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
20898
21034
|
label: z.ZodNullable<z.ZodString>;
|
|
20899
21035
|
}, z.core.$strip>>>;
|
|
21036
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
21037
|
+
id: z.ZodString;
|
|
21038
|
+
name: z.ZodString;
|
|
21039
|
+
}, z.core.$strip>>>;
|
|
20900
21040
|
}, z.core.$strip>>>;
|
|
20901
21041
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
20902
21042
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -21368,6 +21508,10 @@ declare const cloudContract: {
|
|
|
21368
21508
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
21369
21509
|
label: z.ZodNullable<z.ZodString>;
|
|
21370
21510
|
}, z.core.$strip>>>;
|
|
21511
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
21512
|
+
id: z.ZodString;
|
|
21513
|
+
name: z.ZodString;
|
|
21514
|
+
}, z.core.$strip>>>;
|
|
21371
21515
|
}, z.core.$strip>>>;
|
|
21372
21516
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
21373
21517
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -21835,6 +21979,10 @@ declare const cloudContract: {
|
|
|
21835
21979
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
21836
21980
|
label: z.ZodNullable<z.ZodString>;
|
|
21837
21981
|
}, z.core.$strip>>>;
|
|
21982
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
21983
|
+
id: z.ZodString;
|
|
21984
|
+
name: z.ZodString;
|
|
21985
|
+
}, z.core.$strip>>>;
|
|
21838
21986
|
}, z.core.$strip>>>;
|
|
21839
21987
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
21840
21988
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -22609,6 +22757,10 @@ declare const cloudContract: {
|
|
|
22609
22757
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
22610
22758
|
label: z.ZodNullable<z.ZodString>;
|
|
22611
22759
|
}, z.core.$strip>>>;
|
|
22760
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22761
|
+
id: z.ZodString;
|
|
22762
|
+
name: z.ZodString;
|
|
22763
|
+
}, z.core.$strip>>>;
|
|
22612
22764
|
}, z.core.$strip>>>;
|
|
22613
22765
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
22614
22766
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -24446,6 +24598,10 @@ declare const cloudContract: {
|
|
|
24446
24598
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
24447
24599
|
label: z.ZodNullable<z.ZodString>;
|
|
24448
24600
|
}, z.core.$strip>>>;
|
|
24601
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
24602
|
+
id: z.ZodString;
|
|
24603
|
+
name: z.ZodString;
|
|
24604
|
+
}, z.core.$strip>>>;
|
|
24449
24605
|
}, z.core.$strip>>>;
|
|
24450
24606
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
24451
24607
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -24910,6 +25066,10 @@ declare const cloudContract: {
|
|
|
24910
25066
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
24911
25067
|
label: z.ZodNullable<z.ZodString>;
|
|
24912
25068
|
}, z.core.$strip>>>;
|
|
25069
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25070
|
+
id: z.ZodString;
|
|
25071
|
+
name: z.ZodString;
|
|
25072
|
+
}, z.core.$strip>>>;
|
|
24913
25073
|
}, z.core.$strip>>>;
|
|
24914
25074
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
24915
25075
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -25593,6 +25753,10 @@ declare const cloudContract: {
|
|
|
25593
25753
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
25594
25754
|
label: z.ZodNullable<z.ZodString>;
|
|
25595
25755
|
}, z.core.$strip>>>;
|
|
25756
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25757
|
+
id: z.ZodString;
|
|
25758
|
+
name: z.ZodString;
|
|
25759
|
+
}, z.core.$strip>>>;
|
|
25596
25760
|
}, z.core.$strip>>>;
|
|
25597
25761
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25598
25762
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -26365,6 +26529,13 @@ declare const cloudContract: {
|
|
|
26365
26529
|
};
|
|
26366
26530
|
type CloudContract = typeof cloudContract;
|
|
26367
26531
|
//#endregion
|
|
26532
|
+
//#region ../../packages/busabase-contract/src/contract/agent-client.d.ts
|
|
26533
|
+
declare const AgentClientVOSchema: z.ZodObject<{
|
|
26534
|
+
id: z.ZodString;
|
|
26535
|
+
name: z.ZodString;
|
|
26536
|
+
}, z.core.$strip>;
|
|
26537
|
+
type AgentClientVO = z.infer<typeof AgentClientVOSchema>;
|
|
26538
|
+
//#endregion
|
|
26368
26539
|
//#region ../../packages/busabase-contract/src/contract/playbook-schemas.d.ts
|
|
26369
26540
|
/**
|
|
26370
26541
|
* The playbook a change request (or audit event) was produced by, as a reader
|
|
@@ -27068,6 +27239,10 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
27068
27239
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
27069
27240
|
label: z.ZodNullable<z.ZodString>;
|
|
27070
27241
|
}, z.core.$strip>>>;
|
|
27242
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27243
|
+
id: z.ZodString;
|
|
27244
|
+
name: z.ZodString;
|
|
27245
|
+
}, z.core.$strip>>>;
|
|
27071
27246
|
}, z.core.$strip>>>;
|
|
27072
27247
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
27073
27248
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -27532,6 +27707,10 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
27532
27707
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
27533
27708
|
label: z.ZodNullable<z.ZodString>;
|
|
27534
27709
|
}, z.core.$strip>>>;
|
|
27710
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27711
|
+
id: z.ZodString;
|
|
27712
|
+
name: z.ZodString;
|
|
27713
|
+
}, z.core.$strip>>>;
|
|
27535
27714
|
}, z.core.$strip>>>;
|
|
27536
27715
|
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
27537
27716
|
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -28231,6 +28410,10 @@ declare const activityItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
28231
28410
|
nodeSlug: z.ZodNullable<z.ZodString>;
|
|
28232
28411
|
label: z.ZodNullable<z.ZodString>;
|
|
28233
28412
|
}, z.core.$strip>>>;
|
|
28413
|
+
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28414
|
+
id: z.ZodString;
|
|
28415
|
+
name: z.ZodString;
|
|
28416
|
+
}, z.core.$strip>>>;
|
|
28234
28417
|
}, z.core.$strip>>>;
|
|
28235
28418
|
baseId: z.ZodNullable<z.ZodString>;
|
|
28236
28419
|
recordId: z.ZodNullable<z.ZodString>;
|
|
@@ -29235,6 +29418,11 @@ interface SourceAttributionVO {
|
|
|
29235
29418
|
channel: BusabaseSourceChannel | null;
|
|
29236
29419
|
/** Present only when the write declared a playbook the server could validate. */
|
|
29237
29420
|
playbook?: PlaybookAttributionVO | null;
|
|
29421
|
+
/**
|
|
29422
|
+
* Present only when the write named its agent client (`x-busabase-agent`).
|
|
29423
|
+
* Self-reported by the caller — a label for readers, not identity.
|
|
29424
|
+
*/
|
|
29425
|
+
agent?: AgentClientVO | null;
|
|
29238
29426
|
}
|
|
29239
29427
|
/**
|
|
29240
29428
|
* Cheap, name/slug-only match from `nodes.searchByName` — deliberately a much
|
|
@@ -29668,4 +29856,4 @@ declare function resolveConfig(config?: BusabaseConfig): ResolvedConfig;
|
|
|
29668
29856
|
*/
|
|
29669
29857
|
declare function createBusabaseClient(config?: BusabaseConfig): BusabaseClient;
|
|
29670
29858
|
//#endregion
|
|
29671
|
-
export { AssetDetailVO as $,
|
|
29859
|
+
export { AssetDetailVO as $, CREATABLE_NODE_TYPES as $t, NodeVO as A, BaseVO as At, UserRefVO as B, ViewFilterVO as Bt, CommentVO as C, FormVO as Ct, MentionInboxItemVO as D, UpdateFormDTO as Dt, LookupRollup as E, SubmitFormDTO as Et, ReviewVerdict as F, RecordVO as Ft, VaultItemInput as G, PlaybookAttributionVO as Gt, UpdateVaultSettingsDTO as H, ViewType as Ht, SearchResponseVO as I, VIEW_FIELD_MAX_WIDTH as It, VaultRuntimeEnv as J, cloudContract as Jt, VaultItemKind as K, AgentClientVO as Kt, SearchResultKind as L, VIEW_FIELD_MIN_WIDTH as Lt, OperationVO as M, GalleryCoverFit as Mt, RestoredSlugChangeVO as N, GanttScale as Nt, MentionInboxPageVO as O, AssetAttachmentRef as Ot, ReviewVO as P, RecordLinkVO as Pt, FileNodeVO as Q, resolveNodeIconSource as Qt, SearchResultVO as R, ViewConfigVO as Rt, CommentSubjectType as S, FormThemeVO as St, FieldType as T, ListFormsVO as Tt, VaultAccessPolicy as U, ViewVO as Ut, UpdatePreviewFileCredentialDTO as V, ViewSortVO as Vt, VaultEnvironment as W, AttachmentRef as Wt, VaultSettingsVO as X, NodeIconSchema as Xt, VaultScopeType as Y, NodeIcon as Yt, FileNodeMetadata as Z, NodeIconSource as Zt, ChangeRequestVO as _, FormBoundFieldVO as _t, createBusabaseClient as a, FilePreviewConfigVO as at, CommentMentionTargetType as b, FormShareVO as bt, AuditAction as c, FilePreviewProvider as ct, ChangeRequestBatchFailureVO as d, FileTreeFileVO as dt, CreatableNodeType as en, AssetTextStatus as et, ChangeRequestCountsVO as f, FileTreeNodeVO as ft, ChangeRequestTargetType as g, CreateFormDTO as gt, ChangeRequestStatus as h, ActivityItemVO as ht, ResolvedConfig as i, GrepResultVO as it, OperationStatus as j, GalleryCardSize as jt, NodeSearchResultVO as k, BaseFieldVO as kt, AuditEventVO as l, FilePreviewUnavailableReason as lt, ChangeRequestReviewBatchResultVO as m, NodeDetailVO as mt, BusabaseConfig as n, OperationKind as nn, AssetVO as nt, resolveConfig as o, FilePreviewConfigurationStatus as ot, ChangeRequestMergeBatchResultVO as p, FileTreeReadFileVO as pt, VaultItemVO as q, CloudContract as qt, DEFAULT_BASE_URL as r, GrepInputDTO as rt, AgentTaskVO as s, FilePreviewCredentialSource as st, BusabaseClient as t, NodeType as tn, AssetUsageVO as tt, BusabaseSourceChannel as u, FilePreviewVO as ut, CommentMentionDispatchStatus as v, FormFieldBindingVO as vt, CommitVO as w, ListFormsDTO as wt, CommentMentionVO as x, FormSubmitResultVO as xt, CommentMentionInputDTO as y, FormPageSourceVO as yt, SourceAttributionVO as z, ViewFilterOperator as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as AssetDetailVO, $t as
|
|
1
|
+
import { $ as AssetDetailVO, $t as CREATABLE_NODE_TYPES, A as NodeVO, At as BaseVO, B as UserRefVO, Bt as ViewFilterVO, C as CommentVO, Ct as FormVO, D as MentionInboxItemVO, Dt as UpdateFormDTO, E as LookupRollup, Et as SubmitFormDTO, F as ReviewVerdict, Ft as RecordVO, G as VaultItemInput, Gt as PlaybookAttributionVO, H as UpdateVaultSettingsDTO, Ht as ViewType, I as SearchResponseVO, It as VIEW_FIELD_MAX_WIDTH, J as VaultRuntimeEnv, Jt as cloudContract, K as VaultItemKind, Kt as AgentClientVO, L as SearchResultKind, Lt as VIEW_FIELD_MIN_WIDTH, M as OperationVO, Mt as GalleryCoverFit, N as RestoredSlugChangeVO, Nt as GanttScale, O as MentionInboxPageVO, Ot as AssetAttachmentRef, P as ReviewVO, Pt as RecordLinkVO, Q as FileNodeVO, Qt as resolveNodeIconSource, R as SearchResultVO, Rt as ViewConfigVO, S as CommentSubjectType, St as FormThemeVO, T as FieldType, Tt as ListFormsVO, U as VaultAccessPolicy, Ut as ViewVO, V as UpdatePreviewFileCredentialDTO, Vt as ViewSortVO, W as VaultEnvironment, Wt as AttachmentRef, X as VaultSettingsVO, Xt as NodeIconSchema, Y as VaultScopeType, Yt as NodeIcon, Z as FileNodeMetadata, Zt as NodeIconSource, _ as ChangeRequestVO, _t as FormBoundFieldVO, a as createBusabaseClient, at as FilePreviewConfigVO, b as CommentMentionTargetType, bt as FormShareVO, c as AuditAction, ct as FilePreviewProvider, d as ChangeRequestBatchFailureVO, dt as FileTreeFileVO, en as CreatableNodeType, et as AssetTextStatus, f as ChangeRequestCountsVO, ft as FileTreeNodeVO, g as ChangeRequestTargetType, gt as CreateFormDTO, h as ChangeRequestStatus, ht as ActivityItemVO, i as ResolvedConfig, it as GrepResultVO, j as OperationStatus, jt as GalleryCardSize, k as NodeSearchResultVO, kt as BaseFieldVO, l as AuditEventVO, lt as FilePreviewUnavailableReason, m as ChangeRequestReviewBatchResultVO, mt as NodeDetailVO, n as BusabaseConfig, nn as OperationKind, nt as AssetVO, o as resolveConfig, ot as FilePreviewConfigurationStatus, p as ChangeRequestMergeBatchResultVO, pt as FileTreeReadFileVO, q as VaultItemVO, qt as CloudContract, r as DEFAULT_BASE_URL, rt as GrepInputDTO, s as AgentTaskVO, st as FilePreviewCredentialSource, t as BusabaseClient, tn as NodeType, tt as AssetUsageVO, u as BusabaseSourceChannel, ut as FilePreviewVO, v as CommentMentionDispatchStatus, vt as FormFieldBindingVO, w as CommitVO, wt as ListFormsDTO, x as CommentMentionVO, xt as FormSubmitResultVO, y as CommentMentionInputDTO, yt as FormPageSourceVO, z as SourceAttributionVO, zt as ViewFilterOperator } from "./client-DtzuVlPK.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/url.d.ts
|
|
4
4
|
/**
|
|
@@ -567,4 +567,4 @@ declare class Busabase {
|
|
|
567
567
|
}>>>>;
|
|
568
568
|
}
|
|
569
569
|
//#endregion
|
|
570
|
-
export { type ActivityItemVO, type AgentTaskVO, type FileTreeFileVO as AirAppFileVO, type FileTreeFileVO as DriveFileVO, type FileTreeFileVO, type FileTreeFileVO as SkillFileVO, type FileTreeReadFileVO as AirAppReadFileVO, type FileTreeReadFileVO as DriveReadFileVO, type FileTreeReadFileVO, type FileTreeReadFileVO as SkillReadFileVO, type FileTreeNodeVO as AirAppVO, type FileTreeNodeVO as DriveVO, type FileTreeNodeVO, type FileTreeNodeVO as SkillVO, type AssetAttachmentRef, type AssetDetailVO, type AssetTextStatus, type AssetUsageVO, type AssetVO, type AttachmentRef, type AuditAction, type AuditEventVO, type BaseFieldVO, type BaseVO, Busabase, type BusabaseAssetsClient, BusabaseChangeRequestsClient, type BusabaseClient, type BusabaseConfig, type BusabaseRecordsClient, type BusabaseSourceChannel, type BusabaseUploadedAsset, CREATABLE_NODE_TYPES, type ChangeRequestBatchFailureVO, type ChangeRequestCountsVO, type ChangeRequestMergeBatchResultVO, type ChangeRequestReviewBatchResultVO, type ChangeRequestStatus, type ChangeRequestTargetType, type ChangeRequestVO, type CloudContract, type CommentMentionDispatchStatus, type CommentMentionInputDTO, type CommentMentionTargetType, type CommentMentionVO, type CommentSubjectType, type CommentVO, type CommitVO, type CreatableNodeType, type CreateFormDTO, DEFAULT_BASE_URL, type FieldType, type FileNodeMetadata, type FileNodeVO, type FilePreviewConfigVO, type FilePreviewConfigurationStatus, type FilePreviewCredentialSource, type FilePreviewProvider, type FilePreviewUnavailableReason, type FilePreviewVO, type FormBoundFieldVO, type FormFieldBindingVO, type FormPageSourceVO, type FormShareVO, type FormSubmitResultVO, type FormThemeVO, type FormVO, type GalleryCardSize, type GalleryCoverFit, type GanttScale, type ListFormsDTO, type ListFormsVO, type LookupRollup, type MentionInboxItemVO, type MentionInboxPageVO, type NodeDetailVO, type NodeIcon, type NodeIconSchema, type NodeIconSource, type NodeSearchResultVO, type NodeType, type NodeVO, type NodeWebUrlInput, type OperationKind, type OperationStatus, type OperationVO, type PlaybookAttributionVO, type RecordByFieldInput, type RecordLinkVO, type RecordVO, type ResolvedConfig, type RestoredSlugChangeVO, type ReviewVO, type ReviewVerdict, type SearchResponseVO, type SearchResultKind, type SearchResultVO, type SourceAttributionVO, type SubmitFormDTO, type UpdateFormDTO, type UpdatePreviewFileCredentialDTO, type UpdateVaultSettingsDTO, type UploadAssetOptions, type UserRefVO, type VIEW_FIELD_MAX_WIDTH, type VIEW_FIELD_MIN_WIDTH, type VaultAccessPolicy, type VaultEnvironment, type VaultItemInput, type VaultItemKind, type VaultItemVO, type VaultRuntimeEnv, type VaultScopeType, type VaultSettingsVO, type ViewConfigVO, type ViewFilterOperator, type ViewFilterVO, type ViewSortVO, type ViewType, type ViewVO, cloudContract, createBusabaseClient, getRecordByField, grepAssets, hashBytes, nodeWebUrl, normalizeBaseUrl, resolveConfig, type resolveNodeIconSource, toFilesOnlyGrepResult, toUnifiedFilesGrepInput, uploadAsset };
|
|
570
|
+
export { type ActivityItemVO, type AgentClientVO, type AgentTaskVO, type FileTreeFileVO as AirAppFileVO, type FileTreeFileVO as DriveFileVO, type FileTreeFileVO, type FileTreeFileVO as SkillFileVO, type FileTreeReadFileVO as AirAppReadFileVO, type FileTreeReadFileVO as DriveReadFileVO, type FileTreeReadFileVO, type FileTreeReadFileVO as SkillReadFileVO, type FileTreeNodeVO as AirAppVO, type FileTreeNodeVO as DriveVO, type FileTreeNodeVO, type FileTreeNodeVO as SkillVO, type AssetAttachmentRef, type AssetDetailVO, type AssetTextStatus, type AssetUsageVO, type AssetVO, type AttachmentRef, type AuditAction, type AuditEventVO, type BaseFieldVO, type BaseVO, Busabase, type BusabaseAssetsClient, BusabaseChangeRequestsClient, type BusabaseClient, type BusabaseConfig, type BusabaseRecordsClient, type BusabaseSourceChannel, type BusabaseUploadedAsset, CREATABLE_NODE_TYPES, type ChangeRequestBatchFailureVO, type ChangeRequestCountsVO, type ChangeRequestMergeBatchResultVO, type ChangeRequestReviewBatchResultVO, type ChangeRequestStatus, type ChangeRequestTargetType, type ChangeRequestVO, type CloudContract, type CommentMentionDispatchStatus, type CommentMentionInputDTO, type CommentMentionTargetType, type CommentMentionVO, type CommentSubjectType, type CommentVO, type CommitVO, type CreatableNodeType, type CreateFormDTO, DEFAULT_BASE_URL, type FieldType, type FileNodeMetadata, type FileNodeVO, type FilePreviewConfigVO, type FilePreviewConfigurationStatus, type FilePreviewCredentialSource, type FilePreviewProvider, type FilePreviewUnavailableReason, type FilePreviewVO, type FormBoundFieldVO, type FormFieldBindingVO, type FormPageSourceVO, type FormShareVO, type FormSubmitResultVO, type FormThemeVO, type FormVO, type GalleryCardSize, type GalleryCoverFit, type GanttScale, type ListFormsDTO, type ListFormsVO, type LookupRollup, type MentionInboxItemVO, type MentionInboxPageVO, type NodeDetailVO, type NodeIcon, type NodeIconSchema, type NodeIconSource, type NodeSearchResultVO, type NodeType, type NodeVO, type NodeWebUrlInput, type OperationKind, type OperationStatus, type OperationVO, type PlaybookAttributionVO, type RecordByFieldInput, type RecordLinkVO, type RecordVO, type ResolvedConfig, type RestoredSlugChangeVO, type ReviewVO, type ReviewVerdict, type SearchResponseVO, type SearchResultKind, type SearchResultVO, type SourceAttributionVO, type SubmitFormDTO, type UpdateFormDTO, type UpdatePreviewFileCredentialDTO, type UpdateVaultSettingsDTO, type UploadAssetOptions, type UserRefVO, type VIEW_FIELD_MAX_WIDTH, type VIEW_FIELD_MIN_WIDTH, type VaultAccessPolicy, type VaultEnvironment, type VaultItemInput, type VaultItemKind, type VaultItemVO, type VaultRuntimeEnv, type VaultScopeType, type VaultSettingsVO, type ViewConfigVO, type ViewFilterOperator, type ViewFilterVO, type ViewSortVO, type ViewType, type ViewVO, cloudContract, createBusabaseClient, getRecordByField, grepAssets, hashBytes, nodeWebUrl, normalizeBaseUrl, resolveConfig, type resolveNodeIconSource, toFilesOnlyGrepResult, toUnifiedFilesGrepInput, uploadAsset };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as uploadAsset, i as hashBytes, n as TemplateLocalesSchema, r as TemplateRiskLevelSchema } from "./template-CMJMkyse.js";
|
|
2
2
|
import { t as normalizeBaseUrl } from "./url-B8GMXalA.js";
|
|
3
3
|
import { ORPCError, createORPCClient } from "@orpc/client";
|
|
4
4
|
import { OpenAPILink } from "@orpc/openapi-client/fetch";
|
|
@@ -1000,7 +1000,7 @@ const driveNodeType = makeFileTreeNodeType({
|
|
|
1000
1000
|
routeBase: "drives",
|
|
1001
1001
|
tag: "Drives",
|
|
1002
1002
|
entryFile: "README.md",
|
|
1003
|
-
publicAccess: "
|
|
1003
|
+
publicAccess: "detail"
|
|
1004
1004
|
});
|
|
1005
1005
|
//#endregion
|
|
1006
1006
|
//#region ../../packages/busabase-contract/src/domains/file-node/definition.ts
|
|
@@ -1099,7 +1099,7 @@ const htmlNodeType = {
|
|
|
1099
1099
|
capabilities: {
|
|
1100
1100
|
hasDetail: true,
|
|
1101
1101
|
creatable: true,
|
|
1102
|
-
publicAccess: "
|
|
1102
|
+
publicAccess: "detail"
|
|
1103
1103
|
},
|
|
1104
1104
|
operations: [{
|
|
1105
1105
|
kind: "html_document_update",
|
|
@@ -1117,7 +1117,7 @@ const skillNodeType = makeFileTreeNodeType({
|
|
|
1117
1117
|
routeBase: "skills",
|
|
1118
1118
|
tag: "Skills",
|
|
1119
1119
|
entryFile: "SKILL.md",
|
|
1120
|
-
publicAccess: "
|
|
1120
|
+
publicAccess: "detail"
|
|
1121
1121
|
});
|
|
1122
1122
|
//#endregion
|
|
1123
1123
|
//#region ../../packages/busabase-contract/src/domains/whiteboard/definition.ts
|
|
@@ -1273,6 +1273,14 @@ const NodeIconSchema = z.discriminatedUnion("type", [z.object({
|
|
|
1273
1273
|
}).optional()
|
|
1274
1274
|
})]);
|
|
1275
1275
|
//#endregion
|
|
1276
|
+
//#region ../../packages/busabase-contract/src/contract/agent-client.ts
|
|
1277
|
+
const AgentClientVOSchema = z.object({
|
|
1278
|
+
/** Normalized, lowercase `[a-z0-9-]`, at most 40 characters (e.g. `codex`). */
|
|
1279
|
+
id: z.string(),
|
|
1280
|
+
/** Display name: a known agent's product name, otherwise derived from the id. */
|
|
1281
|
+
name: z.string()
|
|
1282
|
+
});
|
|
1283
|
+
//#endregion
|
|
1276
1284
|
//#region ../../packages/busabase-contract/src/contract/node-agent-prompt-schemas.ts
|
|
1277
1285
|
/**
|
|
1278
1286
|
* Per-node custom scenario prompts (`node.agentPrompts`) — the single
|
|
@@ -1775,7 +1783,12 @@ const sourceAttributionSchema = z.object({
|
|
|
1775
1783
|
ownerName: z.string().nullable(),
|
|
1776
1784
|
channel: sourceChannelSchema.nullable(),
|
|
1777
1785
|
/** Present only when the write declared a playbook the server could validate. */
|
|
1778
|
-
playbook: PlaybookAttributionVOSchema.nullable().optional()
|
|
1786
|
+
playbook: PlaybookAttributionVOSchema.nullable().optional(),
|
|
1787
|
+
/**
|
|
1788
|
+
* Present only when the write named its agent client (`x-busabase-agent`;
|
|
1789
|
+
* busabase-cli sends it automatically). Self-reported — a label, not identity.
|
|
1790
|
+
*/
|
|
1791
|
+
agent: AgentClientVOSchema.nullable().optional()
|
|
1779
1792
|
});
|
|
1780
1793
|
const commitSchema = z.object({
|
|
1781
1794
|
id: z.string(),
|
|
@@ -4600,9 +4613,10 @@ const installContract = {
|
|
|
4600
4613
|
* The catalog is the file `busabase-cli index` builds from a skills repository
|
|
4601
4614
|
* — see `busabase-package/index-build`. Most shapes are re-declared here rather
|
|
4602
4615
|
* than imported because that module is Node-only (it reads packages) and these
|
|
4603
|
-
* are rendered in a browser; `TemplateRiskLevelSchema`
|
|
4604
|
-
* imported from the package domain
|
|
4605
|
-
*
|
|
4616
|
+
* are rendered in a browser; `TemplateRiskLevelSchema` and
|
|
4617
|
+
* `TemplateLocalesSchema` are the exceptions, imported from the package domain
|
|
4618
|
+
* because they are already pure zod and a second copy of the same shape is a
|
|
4619
|
+
* worse outcome than the cross-domain import.
|
|
4606
4620
|
*
|
|
4607
4621
|
* Spec: `apps/busabase/content/spec/template-center.md` §6.4.
|
|
4608
4622
|
*/
|
|
@@ -4653,6 +4667,17 @@ const TemplateCardVOSchema = z.object({
|
|
|
4653
4667
|
* than the screenshots — see `videoUrl` in the catalog logic.
|
|
4654
4668
|
*/
|
|
4655
4669
|
video: z.string().optional(),
|
|
4670
|
+
/**
|
|
4671
|
+
* Per-locale screenshots/clip, absolute URLs like the two fields above,
|
|
4672
|
+
* keyed by locale. Absent when the template declares none — and on every
|
|
4673
|
+
* card an older catalog produced. Never read it directly: render through
|
|
4674
|
+
* `pickTemplateMedia(card, locale)` (`domains/templates/media`), which owns
|
|
4675
|
+
* the fallback to `screenshots` / `video`.
|
|
4676
|
+
*
|
|
4677
|
+
* Declared here because this is a plain `z.object`: an undeclared key would
|
|
4678
|
+
* be stripped by `.output()` before it ever reached a client.
|
|
4679
|
+
*/
|
|
4680
|
+
locales: TemplateLocalesSchema.optional(),
|
|
4656
4681
|
agentPrompts: z.array(z.string()).default([]),
|
|
4657
4682
|
version: z.string().optional(),
|
|
4658
4683
|
author: z.string().optional(),
|
|
@@ -130,6 +130,27 @@ const TemplateSecretSchema = z.object({
|
|
|
130
130
|
description: z.string().default(""),
|
|
131
131
|
required: z.boolean().default(true)
|
|
132
132
|
});
|
|
133
|
+
/**
|
|
134
|
+
* One locale's own gallery media — the value side of `template.locales`.
|
|
135
|
+
*
|
|
136
|
+
* Both fields optional and independent: a locale that only re-recorded the clip
|
|
137
|
+
* declares just `video` and keeps the default screenshots. Paths are
|
|
138
|
+
* package-relative in `busabase.json` and absolute URLs on the catalog card;
|
|
139
|
+
* the shape is the same, which is why the card VO reuses this schema.
|
|
140
|
+
*/
|
|
141
|
+
const TemplateLocaleMediaSchema = z.object({
|
|
142
|
+
/** Replaces the default list WHOLE for this locale — never merged per index. */
|
|
143
|
+
screenshots: z.array(z.string()).optional(),
|
|
144
|
+
video: z.string().optional()
|
|
145
|
+
});
|
|
146
|
+
/**
|
|
147
|
+
* Per-locale media keyed by locale (`"zh-CN"`, `"ja"`).
|
|
148
|
+
*
|
|
149
|
+
* Keys are plain strings on purpose, not the supported-locale enum: a template
|
|
150
|
+
* written for a locale this server does not know yet must still install. The
|
|
151
|
+
* audit warns about such keys; the schema never rejects them.
|
|
152
|
+
*/
|
|
153
|
+
const TemplateLocalesSchema = z.record(z.string(), TemplateLocaleMediaSchema);
|
|
133
154
|
z.object({
|
|
134
155
|
/** Template Center category, e.g. `"crm"`, `"email"`, `"content"`. */
|
|
135
156
|
category: z.string().min(1),
|
|
@@ -150,6 +171,21 @@ z.object({
|
|
|
150
171
|
*/
|
|
151
172
|
video: z.string().optional(),
|
|
152
173
|
/**
|
|
174
|
+
* Localized gallery media, the App Store / Google Play rule: a viewer whose
|
|
175
|
+
* locale has an entry sees that entry's `screenshots` / `video`; anything the
|
|
176
|
+
* entry leaves out, and every locale without an entry, falls back to the two
|
|
177
|
+
* fields above. Those stay the English/default set — they are what every
|
|
178
|
+
* deployed server and CLI already reads, so their meaning cannot change.
|
|
179
|
+
*
|
|
180
|
+
* `{ "zh-CN": { "screenshots": ["assets/screenshots/cover-zh-CN.webp"],
|
|
181
|
+
* "video": "assets/recordings/busa-rnd-zh-CN.mp4" } }`
|
|
182
|
+
*
|
|
183
|
+
* Additive by construction: an older parser strips the key (see the note on
|
|
184
|
+
* `video`), so an older server simply shows the defaults. Selection lives in
|
|
185
|
+
* one place — `pickTemplateMedia` in `domains/templates/media`.
|
|
186
|
+
*/
|
|
187
|
+
locales: TemplateLocalesSchema.optional(),
|
|
188
|
+
/**
|
|
153
189
|
* Ready-made prompts shown after install ("Ask agent" prefills the first).
|
|
154
190
|
*
|
|
155
191
|
* They are the difference between a folder of tables and something a user can
|
|
@@ -235,4 +271,4 @@ z.object({
|
|
|
235
271
|
["isTemplateSkill"]: z.literal(true)
|
|
236
272
|
});
|
|
237
273
|
//#endregion
|
|
238
|
-
export { uploadAsset as i,
|
|
274
|
+
export { uploadAsset as a, hashBytes as i, TemplateLocalesSchema as n, TemplateRiskLevelSchema as r, APP_ROOT_RESOURCE_KEY as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "busa-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.98.0",
|
|
4
4
|
"description": "Typed TypeScript/JavaScript SDK for the Busabase OpenAPI REST API. Talks to a local or remote `busabase server` (or Busabase Cloud). Short-name alias for busabase-sdk.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/busabase/busabase/tree/main/apps/busabase-sdk",
|