busroot-sdk 0.0.7-alpha.8 → 0.0.7-alpha.9

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 CHANGED
@@ -3410,6 +3410,35 @@ 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
+ name: z.ZodString;
3417
+ params: z.ZodString;
3418
+ }, "strip", z.ZodTypeAny, {
3419
+ params: string;
3420
+ name: string;
3421
+ }, {
3422
+ params: string;
3423
+ name: string;
3424
+ }>, "many">>;
3425
+ debugMessage: z.ZodOptional<z.ZodString>;
3426
+ }, "strip", z.ZodTypeAny, {
3427
+ message: string;
3428
+ actions?: {
3429
+ params: string;
3430
+ name: string;
3431
+ }[] | undefined;
3432
+ debugMessage?: string | undefined;
3433
+ }, {
3434
+ message: string;
3435
+ actions?: {
3436
+ params: string;
3437
+ name: string;
3438
+ }[] | undefined;
3439
+ debugMessage?: string | undefined;
3440
+ }>;
3441
+ type AgentPostResponse = z.infer<typeof AgentPostResponse>;
3413
3442
  declare const SUPPORTED_DURATION: readonly [
3414
3443
  "months",
3415
3444
  "days",
@@ -3998,6 +4027,13 @@ declare const AccountCreateParams: z.ZodObject<{
3998
4027
  domain: string;
3999
4028
  plantName: string;
4000
4029
  }>;
4030
+ declare const AgentRequestParams: z.ZodObject<{
4031
+ message: z.ZodString;
4032
+ }, "strip", z.ZodTypeAny, {
4033
+ message: string;
4034
+ }, {
4035
+ message: string;
4036
+ }>;
4001
4037
  export interface ParamDescriptor {
4002
4038
  name: string;
4003
4039
  required: boolean;
@@ -4092,6 +4128,9 @@ export declare class BusrootClient {
4092
4128
  get: ({ skuCode }: z.infer<typeof SkuGetParams>) => Promise<SkuViewModel>;
4093
4129
  createUpdate: (sku: z.infer<typeof SkuCreateUpdateParams>) => Promise<SkuViewModel>;
4094
4130
  };
4131
+ agent: {
4132
+ request: ({ message }: z.infer<typeof AgentRequestParams>) => Promise<AgentPostResponse>;
4133
+ };
4095
4134
  schedule: {
4096
4135
  get: ({ scheduleId }: z.infer<typeof ScheduleGetParams>) => Promise<ScheduleViewModel[]>;
4097
4136
  createUpdate: (schedule: z.infer<typeof ScheduleCreateUpdateParams>) => Promise<ScheduleViewModel>;
@@ -4107,6 +4146,7 @@ export declare function useBusroot(props?: {
4107
4146
  };
4108
4147
 
4109
4148
  export {
4149
+ AgentPostResponse as AgentResponse,
4110
4150
  ApiKeySchema as ApiKeyViewModel,
4111
4151
  };
4112
4152
 
package/build/index.js CHANGED
@@ -1179,6 +1179,9 @@ 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
+ });
1182
1185
  var capabilities = [
1183
1186
  {
1184
1187
  name: "profile.get",
@@ -1281,6 +1284,12 @@ var capabilities = [
1281
1284
  description: "Create or update a schedule",
1282
1285
  httpMethod: "POST",
1283
1286
  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
1284
1293
  }
1285
1294
  ];
1286
1295
  function resolveZodType(schema) {
@@ -1533,6 +1542,12 @@ var BusrootClient = class {
1533
1542
  return res.result;
1534
1543
  }
1535
1544
  };
1545
+ agent = {
1546
+ request: async ({ message }) => {
1547
+ const res = await this.post("/agent", { message });
1548
+ return res.result;
1549
+ }
1550
+ };
1536
1551
  schedule = {
1537
1552
  get: async ({ scheduleId }) => {
1538
1553
  const res = await this.get("/schedule", { ids: String(scheduleId) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "busroot-sdk",
3
- "version": "0.0.7-alpha.8",
3
+ "version": "0.0.7-alpha.9",
4
4
  "description": "An SDK for accessing Busroot from output.industries",
5
5
  "homepage": "https://www.output.industries",
6
6
  "main": "./build/index.js",