busabase-sdk 0.11.4 → 0.13.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/index.d.ts +1 -1
- package/dist/index.js +11 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -3160,7 +3160,7 @@ declare const cloudContract: {
|
|
|
3160
3160
|
}, z.core.$strip>>, z.ZodArray<z.ZodType<NodeOutput, unknown, z.core.$ZodTypeInternals<NodeOutput, unknown>>>, _orpc_contract.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
3161
3161
|
searchByName: _orpc_contract.ContractProcedure<z.ZodObject<{
|
|
3162
3162
|
query: z.ZodString;
|
|
3163
|
-
limit: z.ZodDefault<z.ZodOptional<z.
|
|
3163
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
3164
3164
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
3165
3165
|
id: z.ZodString;
|
|
3166
3166
|
type: z.ZodEnum<{
|
package/dist/index.js
CHANGED
|
@@ -631,7 +631,11 @@ var updateNodeMetadataInputSchema = z.object({
|
|
|
631
631
|
});
|
|
632
632
|
var searchNodesByNameInputSchema = z.object({
|
|
633
633
|
query: z.string().min(1),
|
|
634
|
-
|
|
634
|
+
// GET route — query params arrive as strings, and oRPC's OpenAPI handler
|
|
635
|
+
// does not coerce them. A bare `z.number()` here rejected every real
|
|
636
|
+
// `?limit=` call with "expected number, received string"; every other
|
|
637
|
+
// limit/page field on a GET route in this file already uses `z.coerce`.
|
|
638
|
+
limit: z.coerce.number().int().min(1).max(50).optional().default(20)
|
|
635
639
|
});
|
|
636
640
|
var nodeSearchResultSchema = z.object({
|
|
637
641
|
id: z.string(),
|
|
@@ -1067,6 +1071,9 @@ var fileTreeFileSchema = z.object({
|
|
|
1067
1071
|
assetId: z.string(),
|
|
1068
1072
|
displayName: z.string().nullable()
|
|
1069
1073
|
});
|
|
1074
|
+
var baseContentHashSchema = z.string().regex(/^sha256:[a-f0-9]{64}$/, "must be sha256:<64 lowercase hex characters>").optional().describe(
|
|
1075
|
+
"Optimistic-concurrency baseline hash of the file's current content, formatted exactly as `sha256:<64 lowercase hex characters>` (matches the `contentHash` on the file's backing Asset). Omit to skip the conflict check."
|
|
1076
|
+
);
|
|
1070
1077
|
var assetFileInputSchema = z.object({
|
|
1071
1078
|
path: z.string().min(1),
|
|
1072
1079
|
assetId: z.string().min(1),
|
|
@@ -1084,14 +1091,14 @@ var assetFileOperationInputSchema = z.object({
|
|
|
1084
1091
|
assetId: z.string().min(1),
|
|
1085
1092
|
displayName: z.string().optional(),
|
|
1086
1093
|
mimeType: z.string().optional(),
|
|
1087
|
-
baseContentHash:
|
|
1094
|
+
baseContentHash: baseContentHashSchema
|
|
1088
1095
|
}).strict();
|
|
1089
1096
|
var textFileOperationInputSchema = z.object({
|
|
1090
1097
|
kind: z.enum(["create", "update"]),
|
|
1091
1098
|
path: z.string().min(1),
|
|
1092
1099
|
content: z.string(),
|
|
1093
1100
|
mimeType: z.string().optional(),
|
|
1094
|
-
baseContentHash:
|
|
1101
|
+
baseContentHash: baseContentHashSchema
|
|
1095
1102
|
}).strict();
|
|
1096
1103
|
var fileTreeNodeSchema = z.object({
|
|
1097
1104
|
node: nodeSchema,
|
|
@@ -1136,7 +1143,7 @@ var fileTreeFileOperationInputSchema = z.union([
|
|
|
1136
1143
|
z.object({
|
|
1137
1144
|
kind: z.literal("delete"),
|
|
1138
1145
|
path: z.string().min(1),
|
|
1139
|
-
baseContentHash:
|
|
1146
|
+
baseContentHash: baseContentHashSchema
|
|
1140
1147
|
}).strict(),
|
|
1141
1148
|
z.object({
|
|
1142
1149
|
kind: z.literal("metadata_update"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "busabase-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.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).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/busabase/busabase/tree/main/apps/busabase-sdk",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"tsx": "^4.20.5",
|
|
50
50
|
"typescript": "^5.9.3",
|
|
51
51
|
"vitest": "^2.1.8",
|
|
52
|
+
"busabase-contract": "0.13.0",
|
|
52
53
|
"open-domains": "0.0.2",
|
|
53
|
-
"openlib": "0.1.1"
|
|
54
|
-
"busabase-contract": "0.11.4"
|
|
54
|
+
"openlib": "0.1.1"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=24.18.0"
|