busroot-sdk 0.0.7-alpha.10 → 0.0.7-alpha.8
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/build/index.d.ts +0 -92
- package/build/index.js +0 -15
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -3410,87 +3410,6 @@ declare const ProductionViewModel: z.ZodObject<{
|
|
|
3410
3410
|
skuValue?: number | undefined;
|
|
3411
3411
|
}>;
|
|
3412
3412
|
export type ProductionViewModel = z.infer<typeof ProductionViewModel>;
|
|
3413
|
-
declare const AgentPostResponse: z.ZodObject<{
|
|
3414
|
-
message: z.ZodString;
|
|
3415
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3416
|
-
title: z.ZodString;
|
|
3417
|
-
description: z.ZodString;
|
|
3418
|
-
values: z.ZodArray<z.ZodObject<{
|
|
3419
|
-
label: z.ZodString;
|
|
3420
|
-
value: z.ZodString;
|
|
3421
|
-
}, "strip", z.ZodTypeAny, {
|
|
3422
|
-
value: string;
|
|
3423
|
-
label: string;
|
|
3424
|
-
}, {
|
|
3425
|
-
value: string;
|
|
3426
|
-
label: string;
|
|
3427
|
-
}>, "many">;
|
|
3428
|
-
function: z.ZodObject<{
|
|
3429
|
-
name: z.ZodString;
|
|
3430
|
-
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3431
|
-
}, "strip", z.ZodTypeAny, {
|
|
3432
|
-
params: Record<string, unknown>;
|
|
3433
|
-
name: string;
|
|
3434
|
-
}, {
|
|
3435
|
-
params: Record<string, unknown>;
|
|
3436
|
-
name: string;
|
|
3437
|
-
}>;
|
|
3438
|
-
}, "strip", z.ZodTypeAny, {
|
|
3439
|
-
function: {
|
|
3440
|
-
params: Record<string, unknown>;
|
|
3441
|
-
name: string;
|
|
3442
|
-
};
|
|
3443
|
-
values: {
|
|
3444
|
-
value: string;
|
|
3445
|
-
label: string;
|
|
3446
|
-
}[];
|
|
3447
|
-
title: string;
|
|
3448
|
-
description: string;
|
|
3449
|
-
}, {
|
|
3450
|
-
function: {
|
|
3451
|
-
params: Record<string, unknown>;
|
|
3452
|
-
name: string;
|
|
3453
|
-
};
|
|
3454
|
-
values: {
|
|
3455
|
-
value: string;
|
|
3456
|
-
label: string;
|
|
3457
|
-
}[];
|
|
3458
|
-
title: string;
|
|
3459
|
-
description: string;
|
|
3460
|
-
}>, "many">>;
|
|
3461
|
-
debugMessage: z.ZodOptional<z.ZodString>;
|
|
3462
|
-
}, "strip", z.ZodTypeAny, {
|
|
3463
|
-
message: string;
|
|
3464
|
-
actions?: {
|
|
3465
|
-
function: {
|
|
3466
|
-
params: Record<string, unknown>;
|
|
3467
|
-
name: string;
|
|
3468
|
-
};
|
|
3469
|
-
values: {
|
|
3470
|
-
value: string;
|
|
3471
|
-
label: string;
|
|
3472
|
-
}[];
|
|
3473
|
-
title: string;
|
|
3474
|
-
description: string;
|
|
3475
|
-
}[] | undefined;
|
|
3476
|
-
debugMessage?: string | undefined;
|
|
3477
|
-
}, {
|
|
3478
|
-
message: string;
|
|
3479
|
-
actions?: {
|
|
3480
|
-
function: {
|
|
3481
|
-
params: Record<string, unknown>;
|
|
3482
|
-
name: string;
|
|
3483
|
-
};
|
|
3484
|
-
values: {
|
|
3485
|
-
value: string;
|
|
3486
|
-
label: string;
|
|
3487
|
-
}[];
|
|
3488
|
-
title: string;
|
|
3489
|
-
description: string;
|
|
3490
|
-
}[] | undefined;
|
|
3491
|
-
debugMessage?: string | undefined;
|
|
3492
|
-
}>;
|
|
3493
|
-
type AgentPostResponse = z.infer<typeof AgentPostResponse>;
|
|
3494
3413
|
declare const SUPPORTED_DURATION: readonly [
|
|
3495
3414
|
"months",
|
|
3496
3415
|
"days",
|
|
@@ -4079,13 +3998,6 @@ declare const AccountCreateParams: z.ZodObject<{
|
|
|
4079
3998
|
domain: string;
|
|
4080
3999
|
plantName: string;
|
|
4081
4000
|
}>;
|
|
4082
|
-
declare const AgentRequestParams: z.ZodObject<{
|
|
4083
|
-
message: z.ZodString;
|
|
4084
|
-
}, "strip", z.ZodTypeAny, {
|
|
4085
|
-
message: string;
|
|
4086
|
-
}, {
|
|
4087
|
-
message: string;
|
|
4088
|
-
}>;
|
|
4089
4001
|
export interface ParamDescriptor {
|
|
4090
4002
|
name: string;
|
|
4091
4003
|
required: boolean;
|
|
@@ -4180,9 +4092,6 @@ export declare class BusrootClient {
|
|
|
4180
4092
|
get: ({ skuCode }: z.infer<typeof SkuGetParams>) => Promise<SkuViewModel>;
|
|
4181
4093
|
createUpdate: (sku: z.infer<typeof SkuCreateUpdateParams>) => Promise<SkuViewModel>;
|
|
4182
4094
|
};
|
|
4183
|
-
agent: {
|
|
4184
|
-
request: ({ message }: z.infer<typeof AgentRequestParams>) => Promise<AgentPostResponse>;
|
|
4185
|
-
};
|
|
4186
4095
|
schedule: {
|
|
4187
4096
|
get: ({ scheduleId }: z.infer<typeof ScheduleGetParams>) => Promise<ScheduleViewModel[]>;
|
|
4188
4097
|
createUpdate: (schedule: z.infer<typeof ScheduleCreateUpdateParams>) => Promise<ScheduleViewModel>;
|
|
@@ -4198,7 +4107,6 @@ export declare function useBusroot(props?: {
|
|
|
4198
4107
|
};
|
|
4199
4108
|
|
|
4200
4109
|
export {
|
|
4201
|
-
AgentPostResponse as AgentResponse,
|
|
4202
4110
|
ApiKeySchema as ApiKeyViewModel,
|
|
4203
4111
|
};
|
|
4204
4112
|
|
package/build/index.js
CHANGED
|
@@ -1179,9 +1179,6 @@ var AccountCreateParams = import_zod.z.object({
|
|
|
1179
1179
|
domain: import_zod.z.string().describe("Account domain name"),
|
|
1180
1180
|
plantName: import_zod.z.string().describe("Name of the initial plant to create")
|
|
1181
1181
|
});
|
|
1182
|
-
var AgentRequestParams = import_zod.z.object({
|
|
1183
|
-
message: import_zod.z.string().describe("Natural language message to send to the agent")
|
|
1184
|
-
});
|
|
1185
1182
|
var capabilities = [
|
|
1186
1183
|
{
|
|
1187
1184
|
name: "profile.get",
|
|
@@ -1284,12 +1281,6 @@ var capabilities = [
|
|
|
1284
1281
|
description: "Create or update a schedule",
|
|
1285
1282
|
httpMethod: "POST",
|
|
1286
1283
|
params: ScheduleCreateUpdateParams
|
|
1287
|
-
},
|
|
1288
|
-
{
|
|
1289
|
-
name: "agent.request",
|
|
1290
|
-
description: "Send a natural language message to the Busroot AI agent",
|
|
1291
|
-
httpMethod: "POST",
|
|
1292
|
-
params: AgentRequestParams
|
|
1293
1284
|
}
|
|
1294
1285
|
];
|
|
1295
1286
|
function resolveZodType(schema) {
|
|
@@ -1542,12 +1533,6 @@ var BusrootClient = class {
|
|
|
1542
1533
|
return res.result;
|
|
1543
1534
|
}
|
|
1544
1535
|
};
|
|
1545
|
-
agent = {
|
|
1546
|
-
request: async ({ message }) => {
|
|
1547
|
-
const res = await this.post("/agent", { message });
|
|
1548
|
-
return res.result;
|
|
1549
|
-
}
|
|
1550
|
-
};
|
|
1551
1536
|
schedule = {
|
|
1552
1537
|
get: async ({ scheduleId }) => {
|
|
1553
1538
|
const res = await this.get("/schedule", { ids: String(scheduleId) });
|