busa-sdk 0.50.0 → 0.51.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-EYjDfri3.js";
1
+ import { t as BusabaseClient } from "./client-DULfvaPk.js";
2
2
  //#region src/airapp.d.ts
3
3
  type NodeChangeRequestInput = Parameters<BusabaseClient["nodes"]["createChangeRequest"]>[0];
4
4
  type NodeOperationInput = NodeChangeRequestInput["operations"][number];
@@ -15506,7 +15506,17 @@ declare const cloudContract: {
15506
15506
  }, z.core.$strip>, z.ZodObject<{
15507
15507
  package: z.ZodObject<{
15508
15508
  name: z.ZodString;
15509
- description: z.ZodDefault<z.ZodString>;
15509
+ description: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
15510
+ de: "de";
15511
+ en: "en";
15512
+ es: "es";
15513
+ fr: "fr";
15514
+ ja: "ja";
15515
+ ko: "ko";
15516
+ pt: "pt";
15517
+ "zh-CN": "zh-CN";
15518
+ "zh-TW": "zh-TW";
15519
+ }> & z.core.$partial, z.ZodString>]>>;
15510
15520
  version: z.ZodOptional<z.ZodString>;
15511
15521
  author: z.ZodOptional<z.ZodString>;
15512
15522
  license: z.ZodOptional<z.ZodString>;
@@ -15589,7 +15599,17 @@ declare const cloudContract: {
15589
15599
  templates: z.ZodArray<z.ZodObject<{
15590
15600
  id: z.ZodString;
15591
15601
  name: z.ZodString;
15592
- description: z.ZodString;
15602
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<{
15603
+ de: "de";
15604
+ en: "en";
15605
+ es: "es";
15606
+ fr: "fr";
15607
+ ja: "ja";
15608
+ ko: "ko";
15609
+ pt: "pt";
15610
+ "zh-CN": "zh-CN";
15611
+ "zh-TW": "zh-TW";
15612
+ }> & z.core.$partial, z.ZodString>]>;
15593
15613
  category: z.ZodString;
15594
15614
  risk: z.ZodOptional<z.ZodEnum<{
15595
15615
  "gated-write": "gated-write";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as AssetUsageVO, A as NodeVO, At as ViewConfigVO, B as UpdateVaultSettingsDTO, Bt as NodeIconSchema, C as CommentVO, Ct as GalleryCardSize, D as MentionInboxItemVO, Dt as RecordVO, E as LookupRollup, Et as RecordLinkVO, F as SearchResponseVO, Ft as ViewVO, G as VaultItemVO, H as VaultEnvironment, Ht as CreatableNodeType, I as SearchResultKind, It as AttachmentRef, J as VaultSettingsVO, K as VaultRuntimeEnv, L as SearchResultVO, Lt as CloudContract, M as OperationVO, Mt as ViewFilterVO, N as ReviewVO, Nt as ViewSortVO, O as MentionInboxPageVO, Ot as VIEW_FIELD_MAX_WIDTH, P as ReviewVerdict, Pt as ViewType, Q as AssetTextStatus, R as SourceAttributionVO, Rt as cloudContract, S as CommentSubjectType, St as BaseVO, T as FieldType, Tt as GanttScale, U as VaultItemInput, Ut as NodeType, V as VaultAccessPolicy, Vt as CREATABLE_NODE_TYPES, W as VaultItemKind, Wt as OperationKind, X as FileNodeVO, Y as FileNodeMetadata, Z as AssetDetailVO, _ as ChangeRequestVO, _t as ListFormsVO, a as createBusabaseClient, at as FileTreeReadFileVO, b as CommentMentionTargetType, bt as AssetAttachmentRef, c as AuditAction, ct as CreateFormDTO, d as ChangeRequestBatchFailureVO, dt as FormPageSourceVO, et as AssetVO, f as ChangeRequestCountsVO, ft as FormShareVO, g as ChangeRequestTargetType, gt as ListFormsDTO, h as ChangeRequestStatus, ht as FormVO, i as ResolvedConfig, it as FileTreeNodeVO, j as OperationStatus, jt as ViewFilterOperator, k as NodeSearchResultVO, kt as VIEW_FIELD_MIN_WIDTH, l as AuditEventVO, lt as FormBoundFieldVO, m as ChangeRequestReviewBatchResultVO, mt as FormThemeVO, n as BusabaseConfig, nt as GrepResultVO, o as resolveConfig, ot as NodeDetailVO, p as ChangeRequestMergeBatchResultVO, pt as FormSubmitResultVO, q as VaultScopeType, r as DEFAULT_BASE_URL, rt as FileTreeFileVO, s as AgentTaskVO, st as ActivityItemVO, t as BusabaseClient, tt as GrepInputDTO, u as BusabaseSourceChannel, ut as FormFieldBindingVO, v as CommentMentionDispatchStatus, vt as SubmitFormDTO, w as CommitVO, wt as GalleryCoverFit, x as CommentMentionVO, xt as BaseFieldVO, y as CommentMentionInputDTO, yt as UpdateFormDTO, z as UserRefVO, zt as NodeIcon } from "./client-EYjDfri3.js";
1
+ import { $ as AssetUsageVO, A as NodeVO, At as ViewConfigVO, B as UpdateVaultSettingsDTO, Bt as NodeIconSchema, C as CommentVO, Ct as GalleryCardSize, D as MentionInboxItemVO, Dt as RecordVO, E as LookupRollup, Et as RecordLinkVO, F as SearchResponseVO, Ft as ViewVO, G as VaultItemVO, H as VaultEnvironment, Ht as CreatableNodeType, I as SearchResultKind, It as AttachmentRef, J as VaultSettingsVO, K as VaultRuntimeEnv, L as SearchResultVO, Lt as CloudContract, M as OperationVO, Mt as ViewFilterVO, N as ReviewVO, Nt as ViewSortVO, O as MentionInboxPageVO, Ot as VIEW_FIELD_MAX_WIDTH, P as ReviewVerdict, Pt as ViewType, Q as AssetTextStatus, R as SourceAttributionVO, Rt as cloudContract, S as CommentSubjectType, St as BaseVO, T as FieldType, Tt as GanttScale, U as VaultItemInput, Ut as NodeType, V as VaultAccessPolicy, Vt as CREATABLE_NODE_TYPES, W as VaultItemKind, Wt as OperationKind, X as FileNodeVO, Y as FileNodeMetadata, Z as AssetDetailVO, _ as ChangeRequestVO, _t as ListFormsVO, a as createBusabaseClient, at as FileTreeReadFileVO, b as CommentMentionTargetType, bt as AssetAttachmentRef, c as AuditAction, ct as CreateFormDTO, d as ChangeRequestBatchFailureVO, dt as FormPageSourceVO, et as AssetVO, f as ChangeRequestCountsVO, ft as FormShareVO, g as ChangeRequestTargetType, gt as ListFormsDTO, h as ChangeRequestStatus, ht as FormVO, i as ResolvedConfig, it as FileTreeNodeVO, j as OperationStatus, jt as ViewFilterOperator, k as NodeSearchResultVO, kt as VIEW_FIELD_MIN_WIDTH, l as AuditEventVO, lt as FormBoundFieldVO, m as ChangeRequestReviewBatchResultVO, mt as FormThemeVO, n as BusabaseConfig, nt as GrepResultVO, o as resolveConfig, ot as NodeDetailVO, p as ChangeRequestMergeBatchResultVO, pt as FormSubmitResultVO, q as VaultScopeType, r as DEFAULT_BASE_URL, rt as FileTreeFileVO, s as AgentTaskVO, st as ActivityItemVO, t as BusabaseClient, tt as GrepInputDTO, u as BusabaseSourceChannel, ut as FormFieldBindingVO, v as CommentMentionDispatchStatus, vt as SubmitFormDTO, w as CommitVO, wt as GalleryCoverFit, x as CommentMentionVO, xt as BaseFieldVO, y as CommentMentionInputDTO, yt as UpdateFormDTO, z as UserRefVO, zt as NodeIcon } from "./client-DULfvaPk.js";
2
2
  import { z } from "zod";
3
3
  //#region src/url.d.ts
4
4
  /**
package/dist/index.js CHANGED
@@ -3728,7 +3728,9 @@ const InstallPlanCountsVOSchema = z.object({
3728
3728
  /** The package's own metadata, as declared in its `busabase.json`. */
3729
3729
  const InstallPackageInfoVOSchema = z.object({
3730
3730
  name: z.string(),
3731
- description: z.string().default(""),
3731
+ /** iString: `busabase.json`'s own description may be locale-keyed; render
3732
+ * with `iStringParse(value, locale)`, never inserted into JSX directly. */
3733
+ description: iStringSchema.default(""),
3732
3734
  version: z.string().optional(),
3733
3735
  author: z.string().optional(),
3734
3736
  license: z.string().optional(),
@@ -3888,8 +3890,17 @@ const TemplateStatsVOSchema = z.object({
3888
3890
  const TemplateCardVOSchema = z.object({
3889
3891
  /** Stable across a catalog: `<repo>/<subdir>`. What a route keys on. */
3890
3892
  id: z.string(),
3893
+ /**
3894
+ * The package's identity/slug — route key, install-folder name, CLI sort
3895
+ * key. Deliberately plain string, never iString: see the long comment on
3896
+ * `PackageManifestSchema.name` in the package domain (re-declared here per
3897
+ * this file's own convention, not imported, but the reasoning is shared).
3898
+ */
3891
3899
  name: z.string(),
3892
- description: z.string(),
3900
+ /** The catalog card's blurb. iString: `busabase.json`'s own description can
3901
+ * be locale-keyed (`{ en: "...", "zh-CN": "..." }`); a plain string is still
3902
+ * valid forever. */
3903
+ description: iStringSchema,
3893
3904
  category: z.string(),
3894
3905
  /** Absent when undeclared or unrecognized — the card shows "undeclared", never a guess. */
3895
3906
  risk: TemplateRiskLevelSchema.optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "busa-sdk",
3
- "version": "0.50.0",
3
+ "version": "0.51.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",