busa-sdk 0.9.10 → 0.9.12
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 +10 -1
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3702,6 +3702,7 @@ declare const cloudContract: {
|
|
|
3702
3702
|
fieldId: z.ZodOptional<z.ZodString>;
|
|
3703
3703
|
}, z.core.$strip>>>;
|
|
3704
3704
|
visibleFieldSlugs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
3705
|
+
fieldWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
3705
3706
|
coverFieldSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3706
3707
|
coverFit: z.ZodOptional<z.ZodEnum<{
|
|
3707
3708
|
cover: "cover";
|
|
@@ -3776,6 +3777,7 @@ declare const cloudContract: {
|
|
|
3776
3777
|
fieldId: z.ZodOptional<z.ZodString>;
|
|
3777
3778
|
}, z.core.$strip>>>;
|
|
3778
3779
|
visibleFieldSlugs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
3780
|
+
fieldWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
3779
3781
|
coverFieldSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3780
3782
|
coverFit: z.ZodOptional<z.ZodEnum<{
|
|
3781
3783
|
cover: "cover";
|
|
@@ -6346,6 +6348,7 @@ declare const cloudContract: {
|
|
|
6346
6348
|
fieldId: z.ZodOptional<z.ZodString>;
|
|
6347
6349
|
}, z.core.$strip>>>;
|
|
6348
6350
|
visibleFieldSlugs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
6351
|
+
fieldWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
6349
6352
|
coverFieldSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6350
6353
|
coverFit: z.ZodOptional<z.ZodEnum<{
|
|
6351
6354
|
cover: "cover";
|
|
@@ -17420,6 +17423,7 @@ declare const cloudContract: {
|
|
|
17420
17423
|
fieldId: z.ZodOptional<z.ZodString>;
|
|
17421
17424
|
}, z.core.$strip>>>;
|
|
17422
17425
|
visibleFieldSlugs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
17426
|
+
fieldWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
17423
17427
|
coverFieldSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17424
17428
|
coverFit: z.ZodOptional<z.ZodEnum<{
|
|
17425
17429
|
cover: "cover";
|
|
@@ -20157,6 +20161,7 @@ declare const cloudContract: {
|
|
|
20157
20161
|
fieldId: z.ZodOptional<z.ZodString>;
|
|
20158
20162
|
}, z.core.$strip>>>;
|
|
20159
20163
|
visibleFieldSlugs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
20164
|
+
fieldWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
20160
20165
|
coverFieldSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20161
20166
|
coverFit: z.ZodOptional<z.ZodEnum<{
|
|
20162
20167
|
cover: "cover";
|
|
@@ -21560,10 +21565,14 @@ type ViewType = "table" | "gallery" | "kanban" | "calendar" | "gantt";
|
|
|
21560
21565
|
type GalleryCoverFit = "cover" | "fit";
|
|
21561
21566
|
type GalleryCardSize = "small" | "medium" | "large";
|
|
21562
21567
|
type GanttScale = "week" | "month";
|
|
21568
|
+
declare const VIEW_FIELD_MIN_WIDTH = 92;
|
|
21569
|
+
declare const VIEW_FIELD_MAX_WIDTH = 640;
|
|
21563
21570
|
interface ViewConfigVO {
|
|
21564
21571
|
filters: ViewFilterVO[];
|
|
21565
21572
|
sorts: ViewSortVO[];
|
|
21566
21573
|
visibleFieldSlugs?: string[] | null;
|
|
21574
|
+
/** Table-only column widths in pixels, keyed by field slug. */
|
|
21575
|
+
fieldWidths?: Record<string, number>;
|
|
21567
21576
|
coverFieldSlug?: string | null;
|
|
21568
21577
|
coverFit?: GalleryCoverFit;
|
|
21569
21578
|
cardSize?: GalleryCardSize;
|
|
@@ -23485,4 +23494,4 @@ declare class Busabase {
|
|
|
23485
23494
|
}>>>>;
|
|
23486
23495
|
}
|
|
23487
23496
|
|
|
23488
|
-
export { type ActivityItemVO, type AgentTaskVO, type FileTreeFileVO as AirAppFileVO, type FileTreeReadFileVO as AirAppReadFileVO, type FileTreeNodeVO as AirAppVO, type AssetAttachmentRef, type AssetDetailVO, type AssetTextStatus, type AssetUsageVO, type AssetVO, type AttachmentRef, type AuditAction, type AuditEventVO, type BaseFieldVO, type BaseVO, Busabase, type BusabaseClient, type BusabaseConfig, type BusabaseRpcConfig, CREATABLE_NODE_TYPES, type ChangeRequestBatchResultVO, type ChangeRequestCountsVO, type ChangeRequestStatus, type ChangeRequestTargetType, type ChangeRequestVO, type CloudContract, type CommentSubjectType, type CommentVO, type CommitVO, type CreatableNodeType, DEFAULT_BASE_URL, type FileTreeFileVO as DriveFileVO, type FileTreeReadFileVO as DriveReadFileVO, type FileTreeNodeVO as DriveVO, type FieldType, type FileNodeMetadata, type FileNodeVO, type FileTreeFileVO, type FileTreeNodeVO, type FileTreeReadFileVO, type GalleryCardSize, type GalleryCoverFit, type GanttScale, type NodeSearchResultVO, type NodeType, type NodeVO, type OperationKind, type OperationStatus, type OperationVO, type RecordLinkVO, type RecordVO, type ResolvedConfig, type ReviewVO, type ReviewVerdict, type SearchResponseVO, type SearchResultKind, type SearchResultVO, type FileTreeFileVO as SkillFileVO, type FileTreeReadFileVO as SkillReadFileVO, type FileTreeNodeVO as SkillVO, type UpdateVaultSettingsDTO, type UserRefVO, 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, createBusabaseRpcClient, normalizeBaseUrl, resolveConfig };
|
|
23497
|
+
export { type ActivityItemVO, type AgentTaskVO, type FileTreeFileVO as AirAppFileVO, type FileTreeReadFileVO as AirAppReadFileVO, type FileTreeNodeVO as AirAppVO, type AssetAttachmentRef, type AssetDetailVO, type AssetTextStatus, type AssetUsageVO, type AssetVO, type AttachmentRef, type AuditAction, type AuditEventVO, type BaseFieldVO, type BaseVO, Busabase, type BusabaseClient, type BusabaseConfig, type BusabaseRpcConfig, CREATABLE_NODE_TYPES, type ChangeRequestBatchResultVO, type ChangeRequestCountsVO, type ChangeRequestStatus, type ChangeRequestTargetType, type ChangeRequestVO, type CloudContract, type CommentSubjectType, type CommentVO, type CommitVO, type CreatableNodeType, DEFAULT_BASE_URL, type FileTreeFileVO as DriveFileVO, type FileTreeReadFileVO as DriveReadFileVO, type FileTreeNodeVO as DriveVO, type FieldType, type FileNodeMetadata, type FileNodeVO, type FileTreeFileVO, type FileTreeNodeVO, type FileTreeReadFileVO, type GalleryCardSize, type GalleryCoverFit, type GanttScale, type NodeSearchResultVO, type NodeType, type NodeVO, type OperationKind, type OperationStatus, type OperationVO, type RecordLinkVO, type RecordVO, type ResolvedConfig, type ReviewVO, type ReviewVerdict, type SearchResponseVO, type SearchResultKind, type SearchResultVO, type FileTreeFileVO as SkillFileVO, type FileTreeReadFileVO as SkillReadFileVO, type FileTreeNodeVO as SkillVO, type UpdateVaultSettingsDTO, type UserRefVO, VIEW_FIELD_MAX_WIDTH, 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, createBusabaseRpcClient, normalizeBaseUrl, resolveConfig };
|
package/dist/index.js
CHANGED
|
@@ -1352,6 +1352,12 @@ var assetsContract = {
|
|
|
1352
1352
|
successDescription: `Applied the string-replace edits (coding-agent Edit-tool semantics: unique-match or replaceAll) to the asset's current mounted Drive/Skill file content and proposed the result as a ChangeRequest (status "in_review") for human review. Reuses the existing filetree update-via-CR pipeline end to end, including baseContentHash optimistic-concurrency conflict protection at merge time. Requires the asset to be mounted in exactly one editable Drive/Skill location.`
|
|
1353
1353
|
}).input(EditAssetContentInputSchema).output(changeRequestSchema)
|
|
1354
1354
|
};
|
|
1355
|
+
|
|
1356
|
+
// ../../packages/busabase-contract/src/domains/base/types.ts
|
|
1357
|
+
var VIEW_FIELD_MIN_WIDTH = 92;
|
|
1358
|
+
var VIEW_FIELD_MAX_WIDTH = 640;
|
|
1359
|
+
|
|
1360
|
+
// ../../packages/busabase-contract/src/domains/base/contract/view-schemas.ts
|
|
1355
1361
|
var viewFilterOperatorSchema = z.enum([
|
|
1356
1362
|
"contains",
|
|
1357
1363
|
"equals",
|
|
@@ -1380,6 +1386,7 @@ var viewConfigSchema = z.object({
|
|
|
1380
1386
|
filters: z.array(viewFilterSchema).default([]),
|
|
1381
1387
|
sorts: z.array(viewSortSchema).default([]),
|
|
1382
1388
|
visibleFieldSlugs: z.array(z.string()).nullable().optional(),
|
|
1389
|
+
fieldWidths: z.record(z.string().min(1), z.number().int().min(VIEW_FIELD_MIN_WIDTH).max(VIEW_FIELD_MAX_WIDTH)).optional(),
|
|
1383
1390
|
// ── Gallery-only presentation config (ignored by table views) ──
|
|
1384
1391
|
// Which attachment field supplies the cover image (null = no cover).
|
|
1385
1392
|
coverFieldSlug: z.string().nullable().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "busa-sdk",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.12",
|
|
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",
|