busabase-sdk 0.53.0 → 0.54.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-CaeGnNfw.js";
|
|
2
2
|
//#region src/airapp.d.ts
|
|
3
3
|
type NodeChangeRequestInput = Parameters<BusabaseClient["nodes"]["createChangeRequest"]>[0];
|
|
4
4
|
type NodeOperationInput = NodeChangeRequestInput["operations"][number];
|
|
@@ -481,6 +481,16 @@ declare const cloudContract: {
|
|
|
481
481
|
nodes: "nodes";
|
|
482
482
|
records: "records";
|
|
483
483
|
}>]>, z.ZodTransform<("files" | "names" | "nodes" | "records")[], "files" | "names" | "nodes" | "records" | ("files" | "names" | "nodes" | "records")[]>>>;
|
|
484
|
+
sort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
485
|
+
created_asc: "created_asc";
|
|
486
|
+
created_desc: "created_desc";
|
|
487
|
+
relevance: "relevance";
|
|
488
|
+
updated_asc: "updated_asc";
|
|
489
|
+
updated_desc: "updated_desc";
|
|
490
|
+
}>>>;
|
|
491
|
+
updatedAfter: z.ZodOptional<z.ZodString>;
|
|
492
|
+
updatedBefore: z.ZodOptional<z.ZodString>;
|
|
493
|
+
inNodeId: z.ZodOptional<z.ZodString>;
|
|
484
494
|
}, z.core.$strip>, z.ZodObject<{
|
|
485
495
|
query: z.ZodString;
|
|
486
496
|
limit: z.ZodNumber;
|
|
@@ -14948,10 +14958,19 @@ declare const cloudContract: {
|
|
|
14948
14958
|
mimeType: z.ZodString;
|
|
14949
14959
|
filename: z.ZodOptional<z.ZodString>;
|
|
14950
14960
|
}, z.core.$strip>>>;
|
|
14961
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14962
|
+
accepted: z.ZodLiteral<true>;
|
|
14963
|
+
sessionId: z.ZodString;
|
|
14951
14964
|
}, z.core.$strip>, z.ZodObject<{
|
|
14952
|
-
accepted: z.
|
|
14965
|
+
accepted: z.ZodLiteral<false>;
|
|
14953
14966
|
sessionId: z.ZodString;
|
|
14954
|
-
|
|
14967
|
+
status: z.ZodEnum<{
|
|
14968
|
+
ended: "ended";
|
|
14969
|
+
failed: "failed";
|
|
14970
|
+
}>;
|
|
14971
|
+
promptRecorded: z.ZodBoolean;
|
|
14972
|
+
message: z.ZodString;
|
|
14973
|
+
}, z.core.$strip>], "accepted">, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
14955
14974
|
cancel: import("@orpc/contract").ContractProcedure<z.ZodObject<{
|
|
14956
14975
|
sessionId: z.ZodString;
|
|
14957
14976
|
}, z.core.$strip>, z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as AssetTextStatus, A as NodeVO, At as GalleryCardSize, B as UpdatePreviewFileCredentialDTO, Bt as ViewSortVO, C as CommentVO, Ct as ListFormsDTO, D as MentionInboxItemVO, Dt as AssetAttachmentRef, E as LookupRollup, Et as UpdateFormDTO, F as SearchResponseVO, Ft as VIEW_FIELD_MAX_WIDTH, G as VaultItemKind, Gt as cloudContract, H as VaultAccessPolicy, Ht as ViewVO, I as SearchResultKind, It as VIEW_FIELD_MIN_WIDTH, J as VaultScopeType, Jt as CREATABLE_NODE_TYPES, K as VaultItemVO, Kt as NodeIcon, L as SearchResultVO, Lt as ViewConfigVO, M as OperationVO, Mt as GanttScale, N as ReviewVO, Nt as RecordLinkVO, O as MentionInboxPageVO, Ot as BaseFieldVO, P as ReviewVerdict, Pt as RecordVO, Q as AssetDetailVO, R as SourceAttributionVO, Rt as ViewFilterOperator, S as CommentSubjectType, St as FormVO, T as FieldType, Tt as SubmitFormDTO, U as VaultEnvironment, Ut as AttachmentRef, V as UpdateVaultSettingsDTO, Vt as ViewType, W as VaultItemInput, Wt as CloudContract, X as FileNodeMetadata, Xt as NodeType, Y as VaultSettingsVO, Yt as CreatableNodeType, Z as FileNodeVO, Zt as OperationKind, _ as ChangeRequestVO, _t as FormFieldBindingVO, a as createBusabaseClient, at as FilePreviewConfigurationStatus, b as CommentMentionTargetType, bt as FormSubmitResultVO, c as AuditAction, ct as FilePreviewUnavailableReason, d as ChangeRequestBatchFailureVO, dt as FileTreeNodeVO, et as AssetUsageVO, f as ChangeRequestCountsVO, ft as FileTreeReadFileVO, g as ChangeRequestTargetType, gt as FormBoundFieldVO, h as ChangeRequestStatus, ht as CreateFormDTO, i as ResolvedConfig, it as FilePreviewConfigVO, j as OperationStatus, jt as GalleryCoverFit, k as NodeSearchResultVO, kt as BaseVO, l as AuditEventVO, lt as FilePreviewVO, m as ChangeRequestReviewBatchResultVO, mt as ActivityItemVO, n as BusabaseConfig, nt as GrepInputDTO, o as resolveConfig, ot as FilePreviewCredentialSource, p as ChangeRequestMergeBatchResultVO, pt as NodeDetailVO, q as VaultRuntimeEnv, qt as NodeIconSchema, r as DEFAULT_BASE_URL, rt as GrepResultVO, s as AgentTaskVO, st as FilePreviewProvider, t as BusabaseClient, tt as AssetVO, u as BusabaseSourceChannel, ut as FileTreeFileVO, v as CommentMentionDispatchStatus, vt as FormPageSourceVO, w as CommitVO, wt as ListFormsVO, x as CommentMentionVO, xt as FormThemeVO, y as CommentMentionInputDTO, yt as FormShareVO, z as UserRefVO, zt as ViewFilterVO } from "./client-
|
|
1
|
+
import { $ as AssetTextStatus, A as NodeVO, At as GalleryCardSize, B as UpdatePreviewFileCredentialDTO, Bt as ViewSortVO, C as CommentVO, Ct as ListFormsDTO, D as MentionInboxItemVO, Dt as AssetAttachmentRef, E as LookupRollup, Et as UpdateFormDTO, F as SearchResponseVO, Ft as VIEW_FIELD_MAX_WIDTH, G as VaultItemKind, Gt as cloudContract, H as VaultAccessPolicy, Ht as ViewVO, I as SearchResultKind, It as VIEW_FIELD_MIN_WIDTH, J as VaultScopeType, Jt as CREATABLE_NODE_TYPES, K as VaultItemVO, Kt as NodeIcon, L as SearchResultVO, Lt as ViewConfigVO, M as OperationVO, Mt as GanttScale, N as ReviewVO, Nt as RecordLinkVO, O as MentionInboxPageVO, Ot as BaseFieldVO, P as ReviewVerdict, Pt as RecordVO, Q as AssetDetailVO, R as SourceAttributionVO, Rt as ViewFilterOperator, S as CommentSubjectType, St as FormVO, T as FieldType, Tt as SubmitFormDTO, U as VaultEnvironment, Ut as AttachmentRef, V as UpdateVaultSettingsDTO, Vt as ViewType, W as VaultItemInput, Wt as CloudContract, X as FileNodeMetadata, Xt as NodeType, Y as VaultSettingsVO, Yt as CreatableNodeType, Z as FileNodeVO, Zt as OperationKind, _ as ChangeRequestVO, _t as FormFieldBindingVO, a as createBusabaseClient, at as FilePreviewConfigurationStatus, b as CommentMentionTargetType, bt as FormSubmitResultVO, c as AuditAction, ct as FilePreviewUnavailableReason, d as ChangeRequestBatchFailureVO, dt as FileTreeNodeVO, et as AssetUsageVO, f as ChangeRequestCountsVO, ft as FileTreeReadFileVO, g as ChangeRequestTargetType, gt as FormBoundFieldVO, h as ChangeRequestStatus, ht as CreateFormDTO, i as ResolvedConfig, it as FilePreviewConfigVO, j as OperationStatus, jt as GalleryCoverFit, k as NodeSearchResultVO, kt as BaseVO, l as AuditEventVO, lt as FilePreviewVO, m as ChangeRequestReviewBatchResultVO, mt as ActivityItemVO, n as BusabaseConfig, nt as GrepInputDTO, o as resolveConfig, ot as FilePreviewCredentialSource, p as ChangeRequestMergeBatchResultVO, pt as NodeDetailVO, q as VaultRuntimeEnv, qt as NodeIconSchema, r as DEFAULT_BASE_URL, rt as GrepResultVO, s as AgentTaskVO, st as FilePreviewProvider, t as BusabaseClient, tt as AssetVO, u as BusabaseSourceChannel, ut as FileTreeFileVO, v as CommentMentionDispatchStatus, vt as FormPageSourceVO, w as CommitVO, wt as ListFormsVO, x as CommentMentionVO, xt as FormThemeVO, y as CommentMentionInputDTO, yt as FormShareVO, z as UserRefVO, zt as ViewFilterVO } from "./client-CaeGnNfw.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/url.d.ts
|
|
4
4
|
/**
|
package/dist/index.js
CHANGED
|
@@ -278,13 +278,20 @@ list: oc.input(ListAgentConnectionsInputSchema).output(AgentConnectionVOSchema.a
|
|
|
278
278
|
list: oc.output(AgentSessionVOSchema.array()),
|
|
279
279
|
create: oc.input(CreateAgentSessionInputSchema).output(AgentSessionVOSchema),
|
|
280
280
|
/**
|
|
281
|
-
* Send a message.
|
|
282
|
-
* on
|
|
281
|
+
* Send a message. A terminal session returns `accepted: false` instead of
|
|
282
|
+
* relying on error text; `promptRecorded` tells the caller whether automatic
|
|
283
|
+
* continuation can resend without duplicating a server echo.
|
|
283
284
|
*/
|
|
284
|
-
prompt: oc.input(PromptAgentSessionInputSchema).output(z.object({
|
|
285
|
-
accepted: z.
|
|
285
|
+
prompt: oc.input(PromptAgentSessionInputSchema).output(z.discriminatedUnion("accepted", [z.object({
|
|
286
|
+
accepted: z.literal(true),
|
|
286
287
|
sessionId: z.string()
|
|
287
|
-
})
|
|
288
|
+
}), z.object({
|
|
289
|
+
accepted: z.literal(false),
|
|
290
|
+
sessionId: z.string(),
|
|
291
|
+
status: AgentSessionStatusSchema.extract(["ended", "failed"]),
|
|
292
|
+
promptRecorded: z.boolean(),
|
|
293
|
+
message: z.string()
|
|
294
|
+
})])),
|
|
288
295
|
cancel: oc.input(AgentSessionIdInputSchema).output(z.object({ ok: z.boolean() })),
|
|
289
296
|
close: oc.input(AgentSessionIdInputSchema).output(z.object({ ok: z.boolean() })),
|
|
290
297
|
/**
|
|
@@ -1910,6 +1917,13 @@ const SEARCH_SOURCES = [
|
|
|
1910
1917
|
"names",
|
|
1911
1918
|
"nodes"
|
|
1912
1919
|
];
|
|
1920
|
+
const SearchSortSchema = z.enum([
|
|
1921
|
+
"relevance",
|
|
1922
|
+
"updated_desc",
|
|
1923
|
+
"updated_asc",
|
|
1924
|
+
"created_desc",
|
|
1925
|
+
"created_asc"
|
|
1926
|
+
]);
|
|
1913
1927
|
const searchInputSchema = z.object({
|
|
1914
1928
|
query: z.string().default("").describe("Full-text query. An empty string matches nothing."),
|
|
1915
1929
|
limit: z.coerce.number().int().min(1).max(100).optional().default(20).describe("Results per page. Capped at 100; note the default is 20, not 50."),
|
|
@@ -1923,7 +1937,26 @@ const searchInputSchema = z.object({
|
|
|
1923
1937
|
* (`?sources=records&sources=files`) becomes an array. Accept both shapes
|
|
1924
1938
|
* and normalize to an array.
|
|
1925
1939
|
*/
|
|
1926
|
-
sources: z.union([z.array(z.enum(SEARCH_SOURCES)), z.enum(SEARCH_SOURCES)]).transform((value) => Array.isArray(value) ? value : [value]).optional().describe("Restrict which content is searched. Omitting it searches ALL sources. Repeat the parameter to pass several (`?sources=records&sources=files`); a single occurrence is accepted as a bare value.")
|
|
1940
|
+
sources: z.union([z.array(z.enum(SEARCH_SOURCES)), z.enum(SEARCH_SOURCES)]).transform((value) => Array.isArray(value) ? value : [value]).optional().describe("Restrict which content is searched. Omitting it searches ALL sources. Repeat the parameter to pass several (`?sources=records&sources=files`); a single occurrence is accepted as a bare value."),
|
|
1941
|
+
sort: SearchSortSchema.optional().default("relevance").describe("Result order. `relevance` (default) keeps each source's own ranking — for records that is the full-text rank, for everything else most-recently-updated first. The four explicit orders sort every source by the same column so a mixed result set is comparable."),
|
|
1942
|
+
/**
|
|
1943
|
+
* Both bounds are inclusive ISO 8601 instants, and both are optional — one
|
|
1944
|
+
* on its own is an open-ended range, which is what "since last Monday" and
|
|
1945
|
+
* "before the migration" each need.
|
|
1946
|
+
*
|
|
1947
|
+
* Filters the same timestamp `sort` orders by, so "edited this week, newest
|
|
1948
|
+
* first" reads as one coherent question rather than two unrelated knobs.
|
|
1949
|
+
*/
|
|
1950
|
+
updatedAfter: z.string().datetime({ offset: true }).optional().describe("Inclusive lower bound, ISO 8601. A UTC `Z` or an explicit offset; not a bare local time."),
|
|
1951
|
+
updatedBefore: z.string().datetime({ offset: true }).optional().describe("Inclusive upper bound, ISO 8601. A UTC `Z` or an explicit offset; not a bare local time."),
|
|
1952
|
+
/**
|
|
1953
|
+
* Restrict to a subtree: this node and everything beneath it.
|
|
1954
|
+
*
|
|
1955
|
+
* Resolved by walking the tree in application code (`collectSubtreeIds`),
|
|
1956
|
+
* the same way `isDescendantOf` and permanent-delete already do — workspace
|
|
1957
|
+
* trees are shallow and this repo has no recursive-CTE precedent.
|
|
1958
|
+
*/
|
|
1959
|
+
inNodeId: z.string().optional().describe("Limit to this node and its descendants.")
|
|
1927
1960
|
});
|
|
1928
1961
|
const authSpaceSchema = z.object({
|
|
1929
1962
|
id: z.string(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "busabase-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.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",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"tsx": "^4.20.5",
|
|
68
68
|
"typescript": "^7.0.2",
|
|
69
69
|
"vitest": "^4.1.11",
|
|
70
|
-
"busabase-contract": "0.53.0",
|
|
71
70
|
"open-domains": "0.0.2",
|
|
72
|
-
"openlib": "0.1.1"
|
|
71
|
+
"openlib": "0.1.1",
|
|
72
|
+
"busabase-contract": "0.54.0"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=24.18.0"
|