busa-sdk 0.19.1 → 0.19.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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BusabaseClient } from "./client-
|
|
1
|
+
import { t as BusabaseClient } from "./client-kiUJSr_d.js";
|
|
2
2
|
//#region src/airapp.d.ts
|
|
3
3
|
type NodeChangeRequestInput = Parameters<BusabaseClient["nodes"]["createChangeRequest"]>[0];
|
|
4
4
|
type NodeOperationInput = NodeChangeRequestInput["operations"][number];
|
|
@@ -15716,6 +15716,446 @@ declare const cloudContract: {
|
|
|
15716
15716
|
page: z.ZodNumber;
|
|
15717
15717
|
pageSize: z.ZodNumber;
|
|
15718
15718
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
15719
|
+
inboxSnapshot: import("@orpc/contract").ContractProcedure<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
15720
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
15721
|
+
pageSize: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
15722
|
+
status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
15723
|
+
abandoned: "abandoned";
|
|
15724
|
+
approved: "approved";
|
|
15725
|
+
changes_requested: "changes_requested";
|
|
15726
|
+
conflict: "conflict";
|
|
15727
|
+
in_review: "in_review";
|
|
15728
|
+
merged: "merged";
|
|
15729
|
+
rejected: "rejected";
|
|
15730
|
+
}>>>;
|
|
15731
|
+
mine: z.ZodOptional<z.ZodBoolean>;
|
|
15732
|
+
}, z.core.$strip>>>, z.ZodObject<{
|
|
15733
|
+
changeRequests: z.ZodArray<z.ZodObject<{
|
|
15734
|
+
id: z.ZodString;
|
|
15735
|
+
baseId: z.ZodNullable<z.ZodString>;
|
|
15736
|
+
targetType: z.ZodEnum<{
|
|
15737
|
+
base: "base";
|
|
15738
|
+
node: "node";
|
|
15739
|
+
}>;
|
|
15740
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
15741
|
+
status: z.ZodEnum<{
|
|
15742
|
+
abandoned: "abandoned";
|
|
15743
|
+
approved: "approved";
|
|
15744
|
+
changes_requested: "changes_requested";
|
|
15745
|
+
conflict: "conflict";
|
|
15746
|
+
in_review: "in_review";
|
|
15747
|
+
merged: "merged";
|
|
15748
|
+
rejected: "rejected";
|
|
15749
|
+
}>;
|
|
15750
|
+
submittedBy: z.ZodString;
|
|
15751
|
+
submittedByUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15752
|
+
id: z.ZodString;
|
|
15753
|
+
name: z.ZodNullable<z.ZodString>;
|
|
15754
|
+
email: z.ZodNullable<z.ZodString>;
|
|
15755
|
+
image: z.ZodNullable<z.ZodString>;
|
|
15756
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15757
|
+
}, z.core.$strip>>>>;
|
|
15758
|
+
sourceMeta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15759
|
+
reviewPolicySnapshot: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15760
|
+
mergeSummary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15761
|
+
rejectedReason: z.ZodNullable<z.ZodString>;
|
|
15762
|
+
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
15763
|
+
mergedAt: z.ZodNullable<z.ZodString>;
|
|
15764
|
+
createdAt: z.ZodString;
|
|
15765
|
+
updatedAt: z.ZodString;
|
|
15766
|
+
base: z.ZodNullable<z.ZodObject<{
|
|
15767
|
+
id: z.ZodString;
|
|
15768
|
+
nodeId: z.ZodString;
|
|
15769
|
+
slug: z.ZodString;
|
|
15770
|
+
name: z.ZodString;
|
|
15771
|
+
description: z.ZodString;
|
|
15772
|
+
reviewPolicy: z.ZodObject<{
|
|
15773
|
+
kind: z.ZodLiteral<"single">;
|
|
15774
|
+
requiredApprovals: z.ZodNumber;
|
|
15775
|
+
}, z.core.$strip>;
|
|
15776
|
+
createdAt: z.ZodString;
|
|
15777
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
15778
|
+
id: z.ZodString;
|
|
15779
|
+
baseId: z.ZodString;
|
|
15780
|
+
slug: z.ZodString;
|
|
15781
|
+
name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
|
|
15782
|
+
de: "de";
|
|
15783
|
+
en: "en";
|
|
15784
|
+
es: "es";
|
|
15785
|
+
fr: "fr";
|
|
15786
|
+
ja: "ja";
|
|
15787
|
+
ko: "ko";
|
|
15788
|
+
pt: "pt";
|
|
15789
|
+
"zh-CN": "zh-CN";
|
|
15790
|
+
"zh-TW": "zh-TW";
|
|
15791
|
+
}> & z.core.$partial, z.ZodString>]>;
|
|
15792
|
+
type: z.ZodEnum<{
|
|
15793
|
+
ai_summary: "ai_summary";
|
|
15794
|
+
ai_tags: "ai_tags";
|
|
15795
|
+
attachment: "attachment";
|
|
15796
|
+
auto_number: "auto_number";
|
|
15797
|
+
checkbox: "checkbox";
|
|
15798
|
+
code: "code";
|
|
15799
|
+
created_by: "created_by";
|
|
15800
|
+
created_time: "created_time";
|
|
15801
|
+
date: "date";
|
|
15802
|
+
email: "email";
|
|
15803
|
+
embed: "embed";
|
|
15804
|
+
formula: "formula";
|
|
15805
|
+
html: "html";
|
|
15806
|
+
json: "json";
|
|
15807
|
+
longtext: "longtext";
|
|
15808
|
+
lookup: "lookup";
|
|
15809
|
+
markdown: "markdown";
|
|
15810
|
+
multiselect: "multiselect";
|
|
15811
|
+
number: "number";
|
|
15812
|
+
phone: "phone";
|
|
15813
|
+
relation: "relation";
|
|
15814
|
+
select: "select";
|
|
15815
|
+
text: "text";
|
|
15816
|
+
updated_by: "updated_by";
|
|
15817
|
+
updated_time: "updated_time";
|
|
15818
|
+
url: "url";
|
|
15819
|
+
whiteboard: "whiteboard";
|
|
15820
|
+
yaml: "yaml";
|
|
15821
|
+
}>;
|
|
15822
|
+
required: z.ZodBoolean;
|
|
15823
|
+
position: z.ZodNumber;
|
|
15824
|
+
options: z.ZodDefault<z.ZodObject<{
|
|
15825
|
+
ai: z.ZodOptional<z.ZodObject<{
|
|
15826
|
+
model: z.ZodOptional<z.ZodString>;
|
|
15827
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
15828
|
+
reviewRequired: z.ZodOptional<z.ZodBoolean>;
|
|
15829
|
+
sourceFieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15830
|
+
}, z.core.$strip>>;
|
|
15831
|
+
attachment: z.ZodOptional<z.ZodObject<{
|
|
15832
|
+
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
15833
|
+
allowedMimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15834
|
+
maxFileSize: z.ZodOptional<z.ZodNumber>;
|
|
15835
|
+
}, z.core.$strip>>;
|
|
15836
|
+
choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15837
|
+
color: z.ZodOptional<z.ZodString>;
|
|
15838
|
+
id: z.ZodString;
|
|
15839
|
+
name: z.ZodString;
|
|
15840
|
+
}, z.core.$strip>>>;
|
|
15841
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
15842
|
+
language: z.ZodOptional<z.ZodString>;
|
|
15843
|
+
}, z.core.$strip>>;
|
|
15844
|
+
embed: z.ZodOptional<z.ZodObject<{
|
|
15845
|
+
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
15846
|
+
"16:9": "16:9";
|
|
15847
|
+
"1:1": "1:1";
|
|
15848
|
+
"4:3": "4:3";
|
|
15849
|
+
}>>;
|
|
15850
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
15851
|
+
providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15852
|
+
}, z.core.$strip>>;
|
|
15853
|
+
formula: z.ZodOptional<z.ZodObject<{
|
|
15854
|
+
expression: z.ZodString;
|
|
15855
|
+
}, z.core.$strip>>;
|
|
15856
|
+
inverseFieldId: z.ZodOptional<z.ZodString>;
|
|
15857
|
+
lookup: z.ZodOptional<z.ZodObject<{
|
|
15858
|
+
relationFieldSlug: z.ZodString;
|
|
15859
|
+
targetFieldSlug: z.ZodString;
|
|
15860
|
+
rollup: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
15861
|
+
average: "average";
|
|
15862
|
+
concatenate: "concatenate";
|
|
15863
|
+
count: "count";
|
|
15864
|
+
max: "max";
|
|
15865
|
+
min: "min";
|
|
15866
|
+
sum: "sum";
|
|
15867
|
+
values: "values";
|
|
15868
|
+
}>>>;
|
|
15869
|
+
limit: z.ZodOptional<z.ZodEnum<{
|
|
15870
|
+
all: "all";
|
|
15871
|
+
first: "first";
|
|
15872
|
+
}>>;
|
|
15873
|
+
}, z.core.$strip>>;
|
|
15874
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
15875
|
+
number: z.ZodOptional<z.ZodObject<{
|
|
15876
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
15877
|
+
currency: "currency";
|
|
15878
|
+
plain: "plain";
|
|
15879
|
+
}>>;
|
|
15880
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
15881
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
15882
|
+
}, z.core.$strip>>;
|
|
15883
|
+
targetBaseId: z.ZodOptional<z.ZodString>;
|
|
15884
|
+
targetBaseSlug: z.ZodOptional<z.ZodString>;
|
|
15885
|
+
}, z.core.$strip>>;
|
|
15886
|
+
}, z.core.$strip>>;
|
|
15887
|
+
}, z.core.$strip>>;
|
|
15888
|
+
node: z.ZodNullable<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>;
|
|
15889
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
15890
|
+
id: z.ZodString;
|
|
15891
|
+
changeRequestId: z.ZodString;
|
|
15892
|
+
baseId: z.ZodNullable<z.ZodString>;
|
|
15893
|
+
targetType: z.ZodEnum<{
|
|
15894
|
+
base: "base";
|
|
15895
|
+
node: "node";
|
|
15896
|
+
}>;
|
|
15897
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
15898
|
+
operation: z.ZodEnum<{
|
|
15899
|
+
[x: `${string}_file_create`]: `${string}_file_create`;
|
|
15900
|
+
[x: `${string}_file_delete`]: `${string}_file_delete`;
|
|
15901
|
+
[x: `${string}_file_update`]: `${string}_file_update`;
|
|
15902
|
+
[x: `${string}_metadata_update`]: `${string}_metadata_update`;
|
|
15903
|
+
base_add_field: "base_add_field";
|
|
15904
|
+
base_archive: "base_archive";
|
|
15905
|
+
base_convert_field: "base_convert_field";
|
|
15906
|
+
base_delete_field: "base_delete_field";
|
|
15907
|
+
base_reorder_fields: "base_reorder_fields";
|
|
15908
|
+
base_restore: "base_restore";
|
|
15909
|
+
base_restore_field: "base_restore_field";
|
|
15910
|
+
base_update_field: "base_update_field";
|
|
15911
|
+
doc_update: "doc_update";
|
|
15912
|
+
html_document_update: "html_document_update";
|
|
15913
|
+
node_create: "node_create";
|
|
15914
|
+
node_delete: "node_delete";
|
|
15915
|
+
node_move: "node_move";
|
|
15916
|
+
node_rename: "node_rename";
|
|
15917
|
+
node_restore: "node_restore";
|
|
15918
|
+
record_create: "record_create";
|
|
15919
|
+
record_delete: "record_delete";
|
|
15920
|
+
record_restore: "record_restore";
|
|
15921
|
+
record_update: "record_update";
|
|
15922
|
+
record_variant: "record_variant";
|
|
15923
|
+
view_create: "view_create";
|
|
15924
|
+
view_delete: "view_delete";
|
|
15925
|
+
view_restore: "view_restore";
|
|
15926
|
+
view_update: "view_update";
|
|
15927
|
+
whiteboard_document_update: "whiteboard_document_update";
|
|
15928
|
+
workflow_document_update: "workflow_document_update";
|
|
15929
|
+
}>;
|
|
15930
|
+
status: z.ZodEnum<{
|
|
15931
|
+
archived: "archived";
|
|
15932
|
+
failed: "failed";
|
|
15933
|
+
merged: "merged";
|
|
15934
|
+
pending: "pending";
|
|
15935
|
+
}>;
|
|
15936
|
+
targetRecordId: z.ZodNullable<z.ZodString>;
|
|
15937
|
+
targetViewId: z.ZodNullable<z.ZodString>;
|
|
15938
|
+
filePath: z.ZodNullable<z.ZodString>;
|
|
15939
|
+
sourceRecordId: z.ZodNullable<z.ZodString>;
|
|
15940
|
+
sourceCommitId: z.ZodNullable<z.ZodString>;
|
|
15941
|
+
baseCommitId: z.ZodNullable<z.ZodString>;
|
|
15942
|
+
headCommitId: z.ZodString;
|
|
15943
|
+
deleteMode: z.ZodEnum<{
|
|
15944
|
+
archive: "archive";
|
|
15945
|
+
}>;
|
|
15946
|
+
mergedRecordId: z.ZodNullable<z.ZodString>;
|
|
15947
|
+
mergedViewId: z.ZodNullable<z.ZodString>;
|
|
15948
|
+
position: z.ZodNumber;
|
|
15949
|
+
createdAt: z.ZodString;
|
|
15950
|
+
updatedAt: z.ZodString;
|
|
15951
|
+
headCommit: z.ZodObject<{
|
|
15952
|
+
id: z.ZodString;
|
|
15953
|
+
baseId: z.ZodNullable<z.ZodString>;
|
|
15954
|
+
targetType: z.ZodEnum<{
|
|
15955
|
+
base: "base";
|
|
15956
|
+
node: "node";
|
|
15957
|
+
}>;
|
|
15958
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
15959
|
+
operationId: z.ZodNullable<z.ZodString>;
|
|
15960
|
+
parentCommitId: z.ZodNullable<z.ZodString>;
|
|
15961
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15962
|
+
operation: z.ZodEnum<{
|
|
15963
|
+
[x: `${string}_file_create`]: `${string}_file_create`;
|
|
15964
|
+
[x: `${string}_file_delete`]: `${string}_file_delete`;
|
|
15965
|
+
[x: `${string}_file_update`]: `${string}_file_update`;
|
|
15966
|
+
[x: `${string}_metadata_update`]: `${string}_metadata_update`;
|
|
15967
|
+
base_add_field: "base_add_field";
|
|
15968
|
+
base_archive: "base_archive";
|
|
15969
|
+
base_convert_field: "base_convert_field";
|
|
15970
|
+
base_delete_field: "base_delete_field";
|
|
15971
|
+
base_reorder_fields: "base_reorder_fields";
|
|
15972
|
+
base_restore: "base_restore";
|
|
15973
|
+
base_restore_field: "base_restore_field";
|
|
15974
|
+
base_update_field: "base_update_field";
|
|
15975
|
+
doc_update: "doc_update";
|
|
15976
|
+
html_document_update: "html_document_update";
|
|
15977
|
+
node_create: "node_create";
|
|
15978
|
+
node_delete: "node_delete";
|
|
15979
|
+
node_move: "node_move";
|
|
15980
|
+
node_rename: "node_rename";
|
|
15981
|
+
node_restore: "node_restore";
|
|
15982
|
+
record_create: "record_create";
|
|
15983
|
+
record_delete: "record_delete";
|
|
15984
|
+
record_restore: "record_restore";
|
|
15985
|
+
record_update: "record_update";
|
|
15986
|
+
record_variant: "record_variant";
|
|
15987
|
+
view_create: "view_create";
|
|
15988
|
+
view_delete: "view_delete";
|
|
15989
|
+
view_restore: "view_restore";
|
|
15990
|
+
view_update: "view_update";
|
|
15991
|
+
whiteboard_document_update: "whiteboard_document_update";
|
|
15992
|
+
workflow_document_update: "workflow_document_update";
|
|
15993
|
+
}>;
|
|
15994
|
+
message: z.ZodString;
|
|
15995
|
+
author: z.ZodString;
|
|
15996
|
+
authorUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15997
|
+
id: z.ZodString;
|
|
15998
|
+
name: z.ZodNullable<z.ZodString>;
|
|
15999
|
+
email: z.ZodNullable<z.ZodString>;
|
|
16000
|
+
image: z.ZodNullable<z.ZodString>;
|
|
16001
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16002
|
+
}, z.core.$strip>>>>;
|
|
16003
|
+
createdAt: z.ZodString;
|
|
16004
|
+
}, z.core.$strip>;
|
|
16005
|
+
baseFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16006
|
+
}, z.core.$strip>>;
|
|
16007
|
+
primaryOperation: z.ZodNullable<z.ZodObject<{
|
|
16008
|
+
id: z.ZodString;
|
|
16009
|
+
changeRequestId: z.ZodString;
|
|
16010
|
+
baseId: z.ZodNullable<z.ZodString>;
|
|
16011
|
+
targetType: z.ZodEnum<{
|
|
16012
|
+
base: "base";
|
|
16013
|
+
node: "node";
|
|
16014
|
+
}>;
|
|
16015
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
16016
|
+
operation: z.ZodEnum<{
|
|
16017
|
+
[x: `${string}_file_create`]: `${string}_file_create`;
|
|
16018
|
+
[x: `${string}_file_delete`]: `${string}_file_delete`;
|
|
16019
|
+
[x: `${string}_file_update`]: `${string}_file_update`;
|
|
16020
|
+
[x: `${string}_metadata_update`]: `${string}_metadata_update`;
|
|
16021
|
+
base_add_field: "base_add_field";
|
|
16022
|
+
base_archive: "base_archive";
|
|
16023
|
+
base_convert_field: "base_convert_field";
|
|
16024
|
+
base_delete_field: "base_delete_field";
|
|
16025
|
+
base_reorder_fields: "base_reorder_fields";
|
|
16026
|
+
base_restore: "base_restore";
|
|
16027
|
+
base_restore_field: "base_restore_field";
|
|
16028
|
+
base_update_field: "base_update_field";
|
|
16029
|
+
doc_update: "doc_update";
|
|
16030
|
+
html_document_update: "html_document_update";
|
|
16031
|
+
node_create: "node_create";
|
|
16032
|
+
node_delete: "node_delete";
|
|
16033
|
+
node_move: "node_move";
|
|
16034
|
+
node_rename: "node_rename";
|
|
16035
|
+
node_restore: "node_restore";
|
|
16036
|
+
record_create: "record_create";
|
|
16037
|
+
record_delete: "record_delete";
|
|
16038
|
+
record_restore: "record_restore";
|
|
16039
|
+
record_update: "record_update";
|
|
16040
|
+
record_variant: "record_variant";
|
|
16041
|
+
view_create: "view_create";
|
|
16042
|
+
view_delete: "view_delete";
|
|
16043
|
+
view_restore: "view_restore";
|
|
16044
|
+
view_update: "view_update";
|
|
16045
|
+
whiteboard_document_update: "whiteboard_document_update";
|
|
16046
|
+
workflow_document_update: "workflow_document_update";
|
|
16047
|
+
}>;
|
|
16048
|
+
status: z.ZodEnum<{
|
|
16049
|
+
archived: "archived";
|
|
16050
|
+
failed: "failed";
|
|
16051
|
+
merged: "merged";
|
|
16052
|
+
pending: "pending";
|
|
16053
|
+
}>;
|
|
16054
|
+
targetRecordId: z.ZodNullable<z.ZodString>;
|
|
16055
|
+
targetViewId: z.ZodNullable<z.ZodString>;
|
|
16056
|
+
filePath: z.ZodNullable<z.ZodString>;
|
|
16057
|
+
sourceRecordId: z.ZodNullable<z.ZodString>;
|
|
16058
|
+
sourceCommitId: z.ZodNullable<z.ZodString>;
|
|
16059
|
+
baseCommitId: z.ZodNullable<z.ZodString>;
|
|
16060
|
+
headCommitId: z.ZodString;
|
|
16061
|
+
deleteMode: z.ZodEnum<{
|
|
16062
|
+
archive: "archive";
|
|
16063
|
+
}>;
|
|
16064
|
+
mergedRecordId: z.ZodNullable<z.ZodString>;
|
|
16065
|
+
mergedViewId: z.ZodNullable<z.ZodString>;
|
|
16066
|
+
position: z.ZodNumber;
|
|
16067
|
+
createdAt: z.ZodString;
|
|
16068
|
+
updatedAt: z.ZodString;
|
|
16069
|
+
headCommit: z.ZodObject<{
|
|
16070
|
+
id: z.ZodString;
|
|
16071
|
+
baseId: z.ZodNullable<z.ZodString>;
|
|
16072
|
+
targetType: z.ZodEnum<{
|
|
16073
|
+
base: "base";
|
|
16074
|
+
node: "node";
|
|
16075
|
+
}>;
|
|
16076
|
+
nodeId: z.ZodNullable<z.ZodString>;
|
|
16077
|
+
operationId: z.ZodNullable<z.ZodString>;
|
|
16078
|
+
parentCommitId: z.ZodNullable<z.ZodString>;
|
|
16079
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
16080
|
+
operation: z.ZodEnum<{
|
|
16081
|
+
[x: `${string}_file_create`]: `${string}_file_create`;
|
|
16082
|
+
[x: `${string}_file_delete`]: `${string}_file_delete`;
|
|
16083
|
+
[x: `${string}_file_update`]: `${string}_file_update`;
|
|
16084
|
+
[x: `${string}_metadata_update`]: `${string}_metadata_update`;
|
|
16085
|
+
base_add_field: "base_add_field";
|
|
16086
|
+
base_archive: "base_archive";
|
|
16087
|
+
base_convert_field: "base_convert_field";
|
|
16088
|
+
base_delete_field: "base_delete_field";
|
|
16089
|
+
base_reorder_fields: "base_reorder_fields";
|
|
16090
|
+
base_restore: "base_restore";
|
|
16091
|
+
base_restore_field: "base_restore_field";
|
|
16092
|
+
base_update_field: "base_update_field";
|
|
16093
|
+
doc_update: "doc_update";
|
|
16094
|
+
html_document_update: "html_document_update";
|
|
16095
|
+
node_create: "node_create";
|
|
16096
|
+
node_delete: "node_delete";
|
|
16097
|
+
node_move: "node_move";
|
|
16098
|
+
node_rename: "node_rename";
|
|
16099
|
+
node_restore: "node_restore";
|
|
16100
|
+
record_create: "record_create";
|
|
16101
|
+
record_delete: "record_delete";
|
|
16102
|
+
record_restore: "record_restore";
|
|
16103
|
+
record_update: "record_update";
|
|
16104
|
+
record_variant: "record_variant";
|
|
16105
|
+
view_create: "view_create";
|
|
16106
|
+
view_delete: "view_delete";
|
|
16107
|
+
view_restore: "view_restore";
|
|
16108
|
+
view_update: "view_update";
|
|
16109
|
+
whiteboard_document_update: "whiteboard_document_update";
|
|
16110
|
+
workflow_document_update: "workflow_document_update";
|
|
16111
|
+
}>;
|
|
16112
|
+
message: z.ZodString;
|
|
16113
|
+
author: z.ZodString;
|
|
16114
|
+
authorUser: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16115
|
+
id: z.ZodString;
|
|
16116
|
+
name: z.ZodNullable<z.ZodString>;
|
|
16117
|
+
email: z.ZodNullable<z.ZodString>;
|
|
16118
|
+
image: z.ZodNullable<z.ZodString>;
|
|
16119
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16120
|
+
}, z.core.$strip>>>>;
|
|
16121
|
+
createdAt: z.ZodString;
|
|
16122
|
+
}, z.core.$strip>;
|
|
16123
|
+
baseFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16124
|
+
}, z.core.$strip>>;
|
|
16125
|
+
operationCount: z.ZodNumber;
|
|
16126
|
+
reviews: z.ZodArray<z.ZodObject<{
|
|
16127
|
+
id: z.ZodString;
|
|
16128
|
+
changeRequestId: z.ZodString;
|
|
16129
|
+
reviewerId: z.ZodString;
|
|
16130
|
+
reviewer: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16131
|
+
id: z.ZodString;
|
|
16132
|
+
name: z.ZodNullable<z.ZodString>;
|
|
16133
|
+
email: z.ZodNullable<z.ZodString>;
|
|
16134
|
+
image: z.ZodNullable<z.ZodString>;
|
|
16135
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16136
|
+
}, z.core.$strip>>>>;
|
|
16137
|
+
verdict: z.ZodEnum<{
|
|
16138
|
+
approved: "approved";
|
|
16139
|
+
rejected: "rejected";
|
|
16140
|
+
}>;
|
|
16141
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
16142
|
+
visibleOperationHeads: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
16143
|
+
createdAt: z.ZodString;
|
|
16144
|
+
}, z.core.$strip>>;
|
|
16145
|
+
}, z.core.$strip>>;
|
|
16146
|
+
total: z.ZodNumber;
|
|
16147
|
+
totalPages: z.ZodNumber;
|
|
16148
|
+
page: z.ZodNumber;
|
|
16149
|
+
pageSize: z.ZodNumber;
|
|
16150
|
+
counts: z.ZodObject<{
|
|
16151
|
+
review: z.ZodNumber;
|
|
16152
|
+
changes: z.ZodNumber;
|
|
16153
|
+
created: z.ZodNumber;
|
|
16154
|
+
approved: z.ZodNumber;
|
|
16155
|
+
merged: z.ZodNumber;
|
|
16156
|
+
rejected: z.ZodNumber;
|
|
16157
|
+
}, z.core.$strip>;
|
|
16158
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
15719
16159
|
counts: import("@orpc/contract").ContractProcedure<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
15720
16160
|
review: z.ZodNumber;
|
|
15721
16161
|
changes: z.ZodNumber;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createBusabaseClient, c as cloudContract, d as NodeIconSchema, f as CREATABLE_NODE_TYPES, h as OperationKind, i as ResolvedConfig, l as NodeOutput, m as NodeType, n as BusabaseConfig, o as resolveConfig, p as CreatableNodeType, r as DEFAULT_BASE_URL, s as CloudContract, t as BusabaseClient, u as NodeIcon } from "./client-
|
|
1
|
+
import { a as createBusabaseClient, c as cloudContract, d as NodeIconSchema, f as CREATABLE_NODE_TYPES, h as OperationKind, i as ResolvedConfig, l as NodeOutput, m as NodeType, n as BusabaseConfig, o as resolveConfig, p as CreatableNodeType, r as DEFAULT_BASE_URL, s as CloudContract, t as BusabaseClient, u as NodeIcon } from "./client-kiUJSr_d.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/url.d.ts
|
|
4
4
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1491,6 +1491,7 @@ const changeRequestCountsSchema = z.object({
|
|
|
1491
1491
|
merged: z.number().int().nonnegative(),
|
|
1492
1492
|
rejected: z.number().int().nonnegative()
|
|
1493
1493
|
});
|
|
1494
|
+
const inboxSnapshotResponseSchema = listChangeRequestsPageResponseSchema.extend({ counts: changeRequestCountsSchema });
|
|
1494
1495
|
const SEARCH_SOURCES = [
|
|
1495
1496
|
"records",
|
|
1496
1497
|
"files",
|
|
@@ -3211,6 +3212,13 @@ const InstallResultVOSchema = z.object({
|
|
|
3211
3212
|
pendingChangeRequests: z.number().int().min(0),
|
|
3212
3213
|
warnings: z.array(z.string()).default([])
|
|
3213
3214
|
});
|
|
3215
|
+
z.object({
|
|
3216
|
+
/** Which of the five passes stopped, e.g. `Pass 4/5 (sample records)`. */
|
|
3217
|
+
phase: z.string(),
|
|
3218
|
+
targetFolderSlug: z.string(),
|
|
3219
|
+
created: InstallCreatedCountsVOSchema,
|
|
3220
|
+
pendingChangeRequests: z.number().int().min(0)
|
|
3221
|
+
});
|
|
3214
3222
|
const repoUrlField = z.string().min(1).describe("GitHub repo URL: https://github.com/<owner>/<repo>[/tree/<ref>[/<subdir>]]. Only GitHub hosts are accepted.");
|
|
3215
3223
|
const intoFolderField = z.string().optional().describe("Slug of the folder to install into. Defaults to the package manifest's name.");
|
|
3216
3224
|
const renameField = z.boolean().optional().describe("Resolve slug collisions by suffixing (-2, -3, …) instead of refusing. Never overwrites anything.");
|
|
@@ -4436,6 +4444,7 @@ const busabaseContractRoutes = {
|
|
|
4436
4444
|
summary: "List a numbered change request page",
|
|
4437
4445
|
successDescription: "A random-access page of change requests plus the total across the whole filter. Same `status` / `mine` filters as the cursor listing."
|
|
4438
4446
|
}).input(listChangeRequestsPageInputSchema).output(listChangeRequestsPageResponseSchema),
|
|
4447
|
+
inboxSnapshot: oc.input(listChangeRequestsPageInputSchema).output(inboxSnapshotResponseSchema),
|
|
4439
4448
|
counts: oc.route({
|
|
4440
4449
|
method: "GET",
|
|
4441
4450
|
path: "/change-requests/counts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "busa-sdk",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.2",
|
|
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",
|