busa-sdk 0.71.0 → 0.80.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-DUJ67kpK.js";
1
+ import { t as BusabaseClient } from "./client-CZPoK0Uk.js";
2
2
  //#region src/airapp.d.ts
3
3
  type NodeChangeRequestInput = Parameters<BusabaseClient["nodes"]["createChangeRequest"]>[0];
4
4
  type NodeOperationInput = NodeChangeRequestInput["operations"][number];
@@ -22971,6 +22971,78 @@ declare const cloudContract: {
22971
22971
  }, z.core.$strip>;
22972
22972
  };
22973
22973
  }>>, Record<never, never>>;
22974
+ listPaged: import("@orpc/contract").ContractProcedure<z.ZodObject<{
22975
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
22976
+ active: "active";
22977
+ all: "all";
22978
+ expired: "expired";
22979
+ revoked: "revoked";
22980
+ }>>>;
22981
+ limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
22982
+ cursor: z.ZodOptional<z.ZodString>;
22983
+ }, z.core.$strip>, z.ZodObject<{
22984
+ items: z.ZodArray<z.ZodObject<{
22985
+ id: z.ZodString;
22986
+ type: z.ZodEnum<{
22987
+ "change-request": "change-request";
22988
+ node: "node";
22989
+ "record-detail": "record-detail";
22990
+ }>;
22991
+ typeId: z.ZodString;
22992
+ targetName: z.ZodString;
22993
+ nodeType: z.ZodNullable<z.ZodEnum<{
22994
+ airapp: "airapp";
22995
+ base: "base";
22996
+ doc: "doc";
22997
+ drive: "drive";
22998
+ file: "file";
22999
+ folder: "folder";
23000
+ skill: "skill";
23001
+ }>>;
23002
+ createdAt: z.ZodString;
23003
+ expiresAt: z.ZodString;
23004
+ revokedAt: z.ZodNullable<z.ZodString>;
23005
+ active: z.ZodBoolean;
23006
+ framePolicy: z.ZodObject<{
23007
+ mode: z.ZodEnum<{
23008
+ anywhere: "anywhere";
23009
+ origins: "origins";
23010
+ "top-level-only": "top-level-only";
23011
+ }>;
23012
+ allowedOrigins: z.ZodArray<z.ZodString>;
23013
+ }, z.core.$strip>;
23014
+ }, z.core.$strip>>;
23015
+ nextCursor: z.ZodNullable<z.ZodString>;
23016
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
23017
+ BAD_REQUEST: {
23018
+ status: number;
23019
+ message: string;
23020
+ data: z.ZodObject<{
23021
+ error: z.ZodString;
23022
+ }, z.core.$strip>;
23023
+ };
23024
+ UNAUTHORIZED: {
23025
+ status: number;
23026
+ message: string;
23027
+ data: z.ZodObject<{
23028
+ error: z.ZodString;
23029
+ }, z.core.$strip>;
23030
+ };
23031
+ FORBIDDEN: {
23032
+ status: number;
23033
+ message: string;
23034
+ data: z.ZodObject<{
23035
+ error: z.ZodString;
23036
+ }, z.core.$strip>;
23037
+ };
23038
+ NOT_FOUND: {
23039
+ status: number;
23040
+ message: string;
23041
+ data: z.ZodObject<{
23042
+ error: z.ZodString;
23043
+ }, z.core.$strip>;
23044
+ };
23045
+ }>>, Record<never, never>>;
22974
23046
  revoke: import("@orpc/contract").ContractProcedure<z.ZodObject<{
22975
23047
  id: z.ZodString;
22976
23048
  }, 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-DUJ67kpK.js";
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-CZPoK0Uk.js";
2
2
  import { z } from "zod";
3
3
  //#region src/url.d.ts
4
4
  /**
package/dist/index.js CHANGED
@@ -4745,6 +4745,17 @@ const ListEmbedLinksInputSchema = z.object({
4745
4745
  type: EmbedTargetTypeSchema.optional().describe("Which kind of target the links point at. Omitting it returns links of every kind."),
4746
4746
  typeId: z.string().min(1).optional().describe("The target's id, interpreted according to `type`.")
4747
4747
  }).optional().default({});
4748
+ const EmbedLinkAuditStatusSchema = z.enum([
4749
+ "active",
4750
+ "expired",
4751
+ "revoked",
4752
+ "all"
4753
+ ]);
4754
+ const ListEmbedLinksPagedInputSchema = z.object({
4755
+ status: EmbedLinkAuditStatusSchema.optional().default("active").describe("Filter the workspace audit to active, expired, revoked, or all embed links."),
4756
+ limit: z.coerce.number().int().min(1).max(100).optional().default(50).describe("Embed links per page. Capped at 100; continue with `cursor`."),
4757
+ cursor: z.string().optional().describe("Opaque page cursor: pass back the `nextCursor` from the previous response. Do not construct or parse it.")
4758
+ });
4748
4759
  const RevokeEmbedLinkInputSchema = z.object({ id: z.string().min(1) });
4749
4760
  const EmbedLinkVOSchema = z.object({
4750
4761
  id: z.string(),
@@ -4758,6 +4769,10 @@ const EmbedLinkVOSchema = z.object({
4758
4769
  active: z.boolean(),
4759
4770
  framePolicy: EmbedFramePolicyVOSchema
4760
4771
  });
4772
+ const EmbedLinksPageVOSchema = z.object({
4773
+ items: z.array(EmbedLinkVOSchema),
4774
+ nextCursor: z.string().nullable()
4775
+ });
4761
4776
  const CreatedEmbedLinkVOSchema = EmbedLinkVOSchema.extend({
4762
4777
  url: z.string().url(),
4763
4778
  iframeUrl: z.string().url()
@@ -5331,6 +5346,13 @@ const busabaseContractRoutes = {
5331
5346
  summary: "List embed links the caller can manage",
5332
5347
  successDescription: "Embed link metadata without capability secrets."
5333
5348
  }).errors(embedLinkErrors).input(ListEmbedLinksInputSchema).output(z.array(EmbedLinkVOSchema)),
5349
+ listPaged: oc.route({
5350
+ method: "GET",
5351
+ path: "/embed-links/paged",
5352
+ tags: ["Embed Links"],
5353
+ summary: "Audit workspace embed links with status filtering and keyset pagination",
5354
+ successDescription: "A bounded page of manageable embed-link metadata without capability secrets."
5355
+ }).errors(embedLinkErrors).input(ListEmbedLinksPagedInputSchema).output(EmbedLinksPageVOSchema),
5334
5356
  revoke: oc.route({
5335
5357
  method: "DELETE",
5336
5358
  path: "/embed-links/{id}",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "busa-sdk",
3
- "version": "0.71.0",
3
+ "version": "0.80.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",