busabase-sdk 0.40.0 → 0.40.1
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-DbETz_5k.js";
|
|
2
2
|
//#region src/airapp.d.ts
|
|
3
3
|
type NodeChangeRequestInput = Parameters<BusabaseClient["nodes"]["createChangeRequest"]>[0];
|
|
4
4
|
type NodeOperationInput = NodeChangeRequestInput["operations"][number];
|
|
@@ -7014,7 +7014,25 @@ declare const cloudContract: {
|
|
|
7014
7014
|
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7015
7015
|
}, z.core.$strip>>>>;
|
|
7016
7016
|
body: z.ZodString;
|
|
7017
|
-
|
|
7017
|
+
mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7018
|
+
id: z.ZodString;
|
|
7019
|
+
type: z.ZodEnum<{
|
|
7020
|
+
agent: "agent";
|
|
7021
|
+
member: "member";
|
|
7022
|
+
}>;
|
|
7023
|
+
targetId: z.ZodString;
|
|
7024
|
+
label: z.ZodString;
|
|
7025
|
+
start: z.ZodNumber;
|
|
7026
|
+
end: z.ZodNumber;
|
|
7027
|
+
dispatchStatus: z.ZodEnum<{
|
|
7028
|
+
failed: "failed";
|
|
7029
|
+
linked: "linked";
|
|
7030
|
+
not_applicable: "not_applicable";
|
|
7031
|
+
queued: "queued";
|
|
7032
|
+
}>;
|
|
7033
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
7034
|
+
error: z.ZodNullable<z.ZodString>;
|
|
7035
|
+
}, z.core.$strip>>>;
|
|
7018
7036
|
createdAt: z.ZodString;
|
|
7019
7037
|
updatedAt: z.ZodString;
|
|
7020
7038
|
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
@@ -7028,7 +7046,15 @@ declare const cloudContract: {
|
|
|
7028
7046
|
subjectId: z.ZodString;
|
|
7029
7047
|
authorId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
7030
7048
|
body: z.ZodString;
|
|
7031
|
-
|
|
7049
|
+
mentions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7050
|
+
type: z.ZodEnum<{
|
|
7051
|
+
agent: "agent";
|
|
7052
|
+
member: "member";
|
|
7053
|
+
}>;
|
|
7054
|
+
id: z.ZodString;
|
|
7055
|
+
start: z.ZodNumber;
|
|
7056
|
+
end: z.ZodNumber;
|
|
7057
|
+
}, z.core.$strip>>>>;
|
|
7032
7058
|
}, z.core.$strip>, z.ZodObject<{
|
|
7033
7059
|
id: z.ZodString;
|
|
7034
7060
|
subjectType: z.ZodEnum<{
|
|
@@ -7051,7 +7077,25 @@ declare const cloudContract: {
|
|
|
7051
7077
|
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7052
7078
|
}, z.core.$strip>>>>;
|
|
7053
7079
|
body: z.ZodString;
|
|
7054
|
-
|
|
7080
|
+
mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7081
|
+
id: z.ZodString;
|
|
7082
|
+
type: z.ZodEnum<{
|
|
7083
|
+
agent: "agent";
|
|
7084
|
+
member: "member";
|
|
7085
|
+
}>;
|
|
7086
|
+
targetId: z.ZodString;
|
|
7087
|
+
label: z.ZodString;
|
|
7088
|
+
start: z.ZodNumber;
|
|
7089
|
+
end: z.ZodNumber;
|
|
7090
|
+
dispatchStatus: z.ZodEnum<{
|
|
7091
|
+
failed: "failed";
|
|
7092
|
+
linked: "linked";
|
|
7093
|
+
not_applicable: "not_applicable";
|
|
7094
|
+
queued: "queued";
|
|
7095
|
+
}>;
|
|
7096
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
7097
|
+
error: z.ZodNullable<z.ZodString>;
|
|
7098
|
+
}, z.core.$strip>>>;
|
|
7055
7099
|
createdAt: z.ZodString;
|
|
7056
7100
|
updatedAt: z.ZodString;
|
|
7057
7101
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
@@ -7515,7 +7559,25 @@ declare const cloudContract: {
|
|
|
7515
7559
|
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7516
7560
|
}, z.core.$strip>>>>;
|
|
7517
7561
|
body: z.ZodString;
|
|
7518
|
-
|
|
7562
|
+
mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7563
|
+
id: z.ZodString;
|
|
7564
|
+
type: z.ZodEnum<{
|
|
7565
|
+
agent: "agent";
|
|
7566
|
+
member: "member";
|
|
7567
|
+
}>;
|
|
7568
|
+
targetId: z.ZodString;
|
|
7569
|
+
label: z.ZodString;
|
|
7570
|
+
start: z.ZodNumber;
|
|
7571
|
+
end: z.ZodNumber;
|
|
7572
|
+
dispatchStatus: z.ZodEnum<{
|
|
7573
|
+
failed: "failed";
|
|
7574
|
+
linked: "linked";
|
|
7575
|
+
not_applicable: "not_applicable";
|
|
7576
|
+
queued: "queued";
|
|
7577
|
+
}>;
|
|
7578
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
7579
|
+
error: z.ZodNullable<z.ZodString>;
|
|
7580
|
+
}, z.core.$strip>>>;
|
|
7519
7581
|
createdAt: z.ZodString;
|
|
7520
7582
|
updatedAt: z.ZodString;
|
|
7521
7583
|
}, z.core.$strip>>;
|
|
@@ -25074,6 +25136,34 @@ interface ReviewVO {
|
|
|
25074
25136
|
visibleOperationHeads: Record<string, string>;
|
|
25075
25137
|
createdAt: string;
|
|
25076
25138
|
}
|
|
25139
|
+
type CommentMentionTargetType = "member" | "agent";
|
|
25140
|
+
/**
|
|
25141
|
+
* Dispatch state of one mention BEFORE a session exists. Once `linked`, the
|
|
25142
|
+
* agent session owns running/waiting/done/failed — it is never mirrored here.
|
|
25143
|
+
*/
|
|
25144
|
+
type CommentMentionDispatchStatus = "not_applicable" | "queued" | "linked" | "failed";
|
|
25145
|
+
/**
|
|
25146
|
+
* One mention as the composer submits it. `start`/`end` are UTF-16 code unit
|
|
25147
|
+
* offsets into the comment body (see the contract schema for why).
|
|
25148
|
+
*/
|
|
25149
|
+
interface CommentMentionInputDTO {
|
|
25150
|
+
type: CommentMentionTargetType;
|
|
25151
|
+
id: string;
|
|
25152
|
+
start: number;
|
|
25153
|
+
end: number;
|
|
25154
|
+
}
|
|
25155
|
+
interface CommentMentionVO {
|
|
25156
|
+
id: string;
|
|
25157
|
+
type: CommentMentionTargetType;
|
|
25158
|
+
targetId: string;
|
|
25159
|
+
/** Server-resolved display name; falls back to the raw target id. */
|
|
25160
|
+
label: string;
|
|
25161
|
+
start: number;
|
|
25162
|
+
end: number;
|
|
25163
|
+
dispatchStatus: CommentMentionDispatchStatus;
|
|
25164
|
+
sessionId: string | null;
|
|
25165
|
+
error: string | null;
|
|
25166
|
+
}
|
|
25077
25167
|
interface CommentVO {
|
|
25078
25168
|
id: string;
|
|
25079
25169
|
subjectType: CommentSubjectType;
|
|
@@ -25085,7 +25175,7 @@ interface CommentVO {
|
|
|
25085
25175
|
authorId: string;
|
|
25086
25176
|
author?: UserRefVO | null;
|
|
25087
25177
|
body: string;
|
|
25088
|
-
|
|
25178
|
+
mentions: CommentMentionVO[];
|
|
25089
25179
|
createdAt: string;
|
|
25090
25180
|
updatedAt: string;
|
|
25091
25181
|
}
|
|
@@ -25233,4 +25323,4 @@ declare function resolveConfig(config?: BusabaseConfig): ResolvedConfig;
|
|
|
25233
25323
|
*/
|
|
25234
25324
|
declare function createBusabaseClient(config?: BusabaseConfig): BusabaseClient;
|
|
25235
25325
|
//#endregion
|
|
25236
|
-
export {
|
|
25326
|
+
export { GrepInputDTO as $, OperationVO as A, ViewFilterVO as At, VaultEnvironment as B, CreatableNodeType as Bt, CommentVO as C, GanttScale as Ct, NodeSearchResultVO as D, VIEW_FIELD_MIN_WIDTH as Dt, LookupRollup as E, VIEW_FIELD_MAX_WIDTH as Et, SearchResultVO as F, CloudContract as Ft, VaultScopeType as G, VaultItemKind as H, OperationKind as Ht, SourceAttributionVO as I, cloudContract as It, FileNodeVO as J, VaultSettingsVO as K, UserRefVO as L, NodeIcon as Lt, ReviewVerdict as M, ViewType as Mt, SearchResponseVO as N, ViewVO as Nt, NodeVO as O, ViewConfigVO as Ot, SearchResultKind as P, AttachmentRef as Pt, AssetVO as Q, UpdateVaultSettingsDTO as R, NodeIconSchema as Rt, CommentSubjectType as S, GalleryCoverFit as St, FieldType as T, RecordVO as Tt, VaultItemVO as U, VaultItemInput as V, NodeType as Vt, VaultRuntimeEnv as W, AssetTextStatus as X, AssetDetailVO as Y, AssetUsageVO as Z, ChangeRequestVO as _, UpdateFormDTO as _t, createBusabaseClient as a, ActivityItemVO as at, CommentMentionTargetType as b, BaseVO as bt, AuditAction as c, FormFieldBindingVO as ct, ChangeRequestBatchFailureVO as d, FormSubmitResultVO as dt, GrepResultVO as et, ChangeRequestCountsVO as f, FormThemeVO as ft, ChangeRequestTargetType as g, SubmitFormDTO as gt, ChangeRequestStatus as h, ListFormsVO as ht, ResolvedConfig as i, NodeDetailVO as it, ReviewVO as j, ViewSortVO as jt, OperationStatus as k, ViewFilterOperator as kt, AuditEventVO as l, FormPageSourceVO as lt, ChangeRequestReviewBatchResultVO as m, ListFormsDTO as mt, BusabaseConfig as n, FileTreeNodeVO as nt, resolveConfig as o, CreateFormDTO as ot, ChangeRequestMergeBatchResultVO as p, FormVO as pt, FileNodeMetadata as q, DEFAULT_BASE_URL as r, FileTreeReadFileVO as rt, AgentTaskVO as s, FormBoundFieldVO as st, BusabaseClient as t, FileTreeFileVO as tt, BusabaseSourceChannel as u, FormShareVO as ut, CommentMentionDispatchStatus as v, AssetAttachmentRef as vt, CommitVO as w, RecordLinkVO as wt, CommentMentionVO as x, GalleryCardSize as xt, CommentMentionInputDTO as y, BaseFieldVO as yt, VaultAccessPolicy as z, CREATABLE_NODE_TYPES as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as GrepInputDTO, A as OperationVO, At as ViewFilterVO, B as VaultEnvironment, Bt as CreatableNodeType, C as CommentVO, Ct as GanttScale, D as NodeSearchResultVO, Dt as VIEW_FIELD_MIN_WIDTH, E as LookupRollup, Et as VIEW_FIELD_MAX_WIDTH, F as SearchResultVO, Ft as CloudContract, G as VaultScopeType, H as VaultItemKind, Ht as OperationKind, I as SourceAttributionVO, It as cloudContract, J as FileNodeVO, K as VaultSettingsVO, L as UserRefVO, Lt as NodeIcon, M as ReviewVerdict, Mt as ViewType, N as SearchResponseVO, Nt as ViewVO, O as NodeVO, Ot as ViewConfigVO, P as SearchResultKind, Pt as AttachmentRef, Q as AssetVO, R as UpdateVaultSettingsDTO, Rt as NodeIconSchema, S as CommentSubjectType, St as GalleryCoverFit, T as FieldType, Tt as RecordVO, U as VaultItemVO, V as VaultItemInput, Vt as NodeType, W as VaultRuntimeEnv, X as AssetTextStatus, Y as AssetDetailVO, Z as AssetUsageVO, _ as ChangeRequestVO, _t as UpdateFormDTO, a as createBusabaseClient, at as ActivityItemVO, b as CommentMentionTargetType, bt as BaseVO, c as AuditAction, ct as FormFieldBindingVO, d as ChangeRequestBatchFailureVO, dt as FormSubmitResultVO, et as GrepResultVO, f as ChangeRequestCountsVO, ft as FormThemeVO, g as ChangeRequestTargetType, gt as SubmitFormDTO, h as ChangeRequestStatus, ht as ListFormsVO, i as ResolvedConfig, it as NodeDetailVO, j as ReviewVO, jt as ViewSortVO, k as OperationStatus, kt as ViewFilterOperator, l as AuditEventVO, lt as FormPageSourceVO, m as ChangeRequestReviewBatchResultVO, mt as ListFormsDTO, n as BusabaseConfig, nt as FileTreeNodeVO, o as resolveConfig, ot as CreateFormDTO, p as ChangeRequestMergeBatchResultVO, pt as FormVO, q as FileNodeMetadata, r as DEFAULT_BASE_URL, rt as FileTreeReadFileVO, s as AgentTaskVO, st as FormBoundFieldVO, t as BusabaseClient, tt as FileTreeFileVO, u as BusabaseSourceChannel, ut as FormShareVO, v as CommentMentionDispatchStatus, vt as AssetAttachmentRef, w as CommitVO, wt as RecordLinkVO, x as CommentMentionVO, xt as GalleryCardSize, y as CommentMentionInputDTO, yt as BaseFieldVO, z as VaultAccessPolicy, zt as CREATABLE_NODE_TYPES } from "./client-DbETz_5k.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/url.d.ts
|
|
4
4
|
/**
|
|
@@ -426,4 +426,4 @@ declare class Busabase {
|
|
|
426
426
|
}>>>>;
|
|
427
427
|
}
|
|
428
428
|
//#endregion
|
|
429
|
-
export { type ActivityItemVO, type AgentTaskVO, type FileTreeFileVO as AirAppFileVO, type FileTreeFileVO as DriveFileVO, type FileTreeFileVO, type FileTreeFileVO as SkillFileVO, type FileTreeReadFileVO as AirAppReadFileVO, type FileTreeReadFileVO as DriveReadFileVO, type FileTreeReadFileVO, type FileTreeReadFileVO as SkillReadFileVO, type FileTreeNodeVO as AirAppVO, type FileTreeNodeVO as DriveVO, type FileTreeNodeVO, type FileTreeNodeVO as SkillVO, type AssetAttachmentRef, type AssetDetailVO, type AssetTextStatus, type AssetUsageVO, type AssetVO, type AttachmentRef, type AuditAction, type AuditEventVO, type BaseFieldVO, type BaseVO, Busabase, type BusabaseAssetsClient, BusabaseChangeRequestsClient, type BusabaseClient, type BusabaseConfig, type BusabaseRecordsClient, type BusabaseSourceChannel, CREATABLE_NODE_TYPES, type ChangeRequestBatchFailureVO, type ChangeRequestCountsVO, type ChangeRequestMergeBatchResultVO, type ChangeRequestReviewBatchResultVO, type ChangeRequestStatus, type ChangeRequestTargetType, type ChangeRequestVO, type CloudContract, type CommentSubjectType, type CommentVO, type CommitVO, type CreatableNodeType, type CreateFormDTO, DEFAULT_BASE_URL, type FieldType, type FileNodeMetadata, type FileNodeVO, type FormBoundFieldVO, type FormFieldBindingVO, type FormPageSourceVO, type FormShareVO, type FormSubmitResultVO, type FormThemeVO, type FormVO, type GalleryCardSize, type GalleryCoverFit, type GanttScale, type ListFormsDTO, type ListFormsVO, type LookupRollup, type NodeDetailVO, type NodeIcon, type NodeIconSchema, type NodeSearchResultVO, type NodeType, type NodeVO, type NodeWebUrlInput, type OperationKind, type OperationStatus, type OperationVO, type RecordByFieldInput, type RecordLinkVO, type RecordVO, type ResolvedConfig, type ReviewVO, type ReviewVerdict, type SearchResponseVO, type SearchResultKind, type SearchResultVO, type SourceAttributionVO, type SubmitFormDTO, type UpdateFormDTO, type UpdateVaultSettingsDTO, type UserRefVO, type VIEW_FIELD_MAX_WIDTH, type 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, getRecordByField, grepAssets, nodeWebUrl, normalizeBaseUrl, resolveConfig, toFilesOnlyGrepResult, toUnifiedFilesGrepInput };
|
|
429
|
+
export { type ActivityItemVO, type AgentTaskVO, type FileTreeFileVO as AirAppFileVO, type FileTreeFileVO as DriveFileVO, type FileTreeFileVO, type FileTreeFileVO as SkillFileVO, type FileTreeReadFileVO as AirAppReadFileVO, type FileTreeReadFileVO as DriveReadFileVO, type FileTreeReadFileVO, type FileTreeReadFileVO as SkillReadFileVO, type FileTreeNodeVO as AirAppVO, type FileTreeNodeVO as DriveVO, type FileTreeNodeVO, type FileTreeNodeVO as SkillVO, type AssetAttachmentRef, type AssetDetailVO, type AssetTextStatus, type AssetUsageVO, type AssetVO, type AttachmentRef, type AuditAction, type AuditEventVO, type BaseFieldVO, type BaseVO, Busabase, type BusabaseAssetsClient, BusabaseChangeRequestsClient, type BusabaseClient, type BusabaseConfig, type BusabaseRecordsClient, type BusabaseSourceChannel, CREATABLE_NODE_TYPES, type ChangeRequestBatchFailureVO, type ChangeRequestCountsVO, type ChangeRequestMergeBatchResultVO, type ChangeRequestReviewBatchResultVO, type ChangeRequestStatus, type ChangeRequestTargetType, type ChangeRequestVO, type CloudContract, type CommentMentionDispatchStatus, type CommentMentionInputDTO, type CommentMentionTargetType, type CommentMentionVO, type CommentSubjectType, type CommentVO, type CommitVO, type CreatableNodeType, type CreateFormDTO, DEFAULT_BASE_URL, type FieldType, type FileNodeMetadata, type FileNodeVO, type FormBoundFieldVO, type FormFieldBindingVO, type FormPageSourceVO, type FormShareVO, type FormSubmitResultVO, type FormThemeVO, type FormVO, type GalleryCardSize, type GalleryCoverFit, type GanttScale, type ListFormsDTO, type ListFormsVO, type LookupRollup, type NodeDetailVO, type NodeIcon, type NodeIconSchema, type NodeSearchResultVO, type NodeType, type NodeVO, type NodeWebUrlInput, type OperationKind, type OperationStatus, type OperationVO, type RecordByFieldInput, type RecordLinkVO, type RecordVO, type ResolvedConfig, type ReviewVO, type ReviewVerdict, type SearchResponseVO, type SearchResultKind, type SearchResultVO, type SourceAttributionVO, type SubmitFormDTO, type UpdateFormDTO, type UpdateVaultSettingsDTO, type UserRefVO, type VIEW_FIELD_MAX_WIDTH, type 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, getRecordByField, grepAssets, nodeWebUrl, normalizeBaseUrl, resolveConfig, toFilesOnlyGrepResult, toUnifiedFilesGrepInput };
|
package/dist/index.js
CHANGED
|
@@ -1404,6 +1404,55 @@ const commentSubjectTypeSchema = z.enum([
|
|
|
1404
1404
|
"operation",
|
|
1405
1405
|
"commit"
|
|
1406
1406
|
]);
|
|
1407
|
+
/**
|
|
1408
|
+
* Who a mention points at. `member` tags a person; `agent` names a launchable
|
|
1409
|
+
* Agent target and is what actually starts a session.
|
|
1410
|
+
*/
|
|
1411
|
+
const commentMentionTargetTypeSchema = z.enum(["member", "agent"]);
|
|
1412
|
+
/**
|
|
1413
|
+
* Dispatch lifecycle of ONE mention row, before a session exists.
|
|
1414
|
+
*
|
|
1415
|
+
* `not_applicable` is every member row (a person is not dispatched to).
|
|
1416
|
+
* Once `linked`, running/waiting/done/failed belongs to the agent session,
|
|
1417
|
+
* never to a second status column here.
|
|
1418
|
+
*/
|
|
1419
|
+
const commentMentionDispatchStatusSchema = z.enum([
|
|
1420
|
+
"not_applicable",
|
|
1421
|
+
"queued",
|
|
1422
|
+
"linked",
|
|
1423
|
+
"failed"
|
|
1424
|
+
]);
|
|
1425
|
+
/**
|
|
1426
|
+
* One mention as the composer submits it.
|
|
1427
|
+
*
|
|
1428
|
+
* `start`/`end` are **UTF-16 code unit** offsets into `body` — the same unit
|
|
1429
|
+
* `<textarea>` selection APIs and `String.prototype.slice` use, so nothing has
|
|
1430
|
+
* to convert at the UI boundary. A label containing an astral-plane character
|
|
1431
|
+
* (an emoji in a display name) therefore spans two units per visible glyph;
|
|
1432
|
+
* the server rejects a span that would split a surrogate pair.
|
|
1433
|
+
*
|
|
1434
|
+
* No `label` here on purpose: the client never supplies identity. The server
|
|
1435
|
+
* resolves the display name from the member/catalog it already trusts.
|
|
1436
|
+
*/
|
|
1437
|
+
const commentMentionInputSchema = z.object({
|
|
1438
|
+
type: commentMentionTargetTypeSchema,
|
|
1439
|
+
/** Member/actor id, or launchable agent slug (`claude-acp`, `buda:<agentId>`). */
|
|
1440
|
+
id: z.string().min(1),
|
|
1441
|
+
start: z.number().int().min(0),
|
|
1442
|
+
end: z.number().int().min(0)
|
|
1443
|
+
});
|
|
1444
|
+
const commentMentionSchema = z.object({
|
|
1445
|
+
id: z.string(),
|
|
1446
|
+
type: commentMentionTargetTypeSchema,
|
|
1447
|
+
targetId: z.string(),
|
|
1448
|
+
/** Server-resolved display name. Falls back to the raw target id. */
|
|
1449
|
+
label: z.string(),
|
|
1450
|
+
start: z.number().int(),
|
|
1451
|
+
end: z.number().int(),
|
|
1452
|
+
dispatchStatus: commentMentionDispatchStatusSchema,
|
|
1453
|
+
sessionId: z.string().nullable(),
|
|
1454
|
+
error: z.string().nullable()
|
|
1455
|
+
});
|
|
1407
1456
|
const commentSchema = z.object({
|
|
1408
1457
|
id: z.string(),
|
|
1409
1458
|
subjectType: commentSubjectTypeSchema,
|
|
@@ -1415,7 +1464,7 @@ const commentSchema = z.object({
|
|
|
1415
1464
|
authorId: z.string(),
|
|
1416
1465
|
author: userRefSchema.nullable().optional().default(null),
|
|
1417
1466
|
body: z.string(),
|
|
1418
|
-
|
|
1467
|
+
mentions: z.array(commentMentionSchema).default([]),
|
|
1419
1468
|
createdAt: z.string(),
|
|
1420
1469
|
updatedAt: z.string()
|
|
1421
1470
|
});
|
|
@@ -1653,7 +1702,12 @@ const commentSubjectInputSchema = z.object({
|
|
|
1653
1702
|
const createCommentInputSchema = commentSubjectInputSchema.extend({
|
|
1654
1703
|
authorId: z.string().optional().default("local-admin"),
|
|
1655
1704
|
body: z.string().trim().min(1),
|
|
1656
|
-
|
|
1705
|
+
/**
|
|
1706
|
+
* Structured mentions, owned by the composer. Never inferred from the body by
|
|
1707
|
+
* regex: display names contain spaces and collide with ordinary prose, so
|
|
1708
|
+
* "ask codex about this" must not invoke Codex.
|
|
1709
|
+
*/
|
|
1710
|
+
mentions: z.array(commentMentionInputSchema).optional().default([])
|
|
1657
1711
|
});
|
|
1658
1712
|
const listInputSchema = z.object({ limit: z.coerce.number().int().min(1).max(100).optional().default(50) }).optional().default({ limit: 50 });
|
|
1659
1713
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "busabase-sdk",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.1",
|
|
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
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
70
|
+
"open-domains": "0.0.2",
|
|
71
|
+
"busabase-contract": "0.40.1",
|
|
72
|
+
"openlib": "0.1.1"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=24.18.0"
|