@avallon-labs/sdk 56.0.0 → 57.0.0-staging.1288

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/index.d.ts CHANGED
@@ -3312,6 +3312,9 @@ type ScheduleAction = {
3312
3312
  scope?: {
3313
3313
  [key: string]: string | number | boolean | null;
3314
3314
  } | null;
3315
+ } | {
3316
+ type: "execute_tool";
3317
+ tool_id: string;
3315
3318
  };
3316
3319
 
3317
3320
  /**
@@ -3372,7 +3375,7 @@ type ScheduleRule = {
3372
3375
  type CreateScheduleBody = {
3373
3376
  action: ScheduleAction;
3374
3377
  rule: ScheduleRule;
3375
- /** Environments the schedule fires in. `live` resolves the worker at its live version, `test` at its test version. Listing both fires every occurrence twice, once per version. */
3378
+ /** Environments the schedule fires in. `live` resolves the worker or tool at its live version, `test` at its test version. Listing both fires every occurrence twice, once per version. */
3376
3379
  environments?: CreateScheduleBodyEnvironmentsItem[];
3377
3380
  /**
3378
3381
  * Human-readable name, e.g. "Nightly claim sweep"
@@ -3400,6 +3403,9 @@ type ScheduleActionOutput = {
3400
3403
  scope?: {
3401
3404
  [key: string]: string | number | boolean | null;
3402
3405
  } | null;
3406
+ } | {
3407
+ type: "execute_tool";
3408
+ tool_id: string;
3403
3409
  };
3404
3410
 
3405
3411
  /**
@@ -5170,6 +5176,7 @@ type DispatchTargetType = (typeof DispatchTargetType)[keyof typeof DispatchTarge
5170
5176
  declare const DispatchTargetType: {
5171
5177
  readonly worker_run: "worker_run";
5172
5178
  readonly extractor_job: "extractor_job";
5179
+ readonly tool_call: "tool_call";
5173
5180
  };
5174
5181
 
5175
5182
  /**
@@ -13427,7 +13434,7 @@ declare const UpdateScheduleBodyEnvironmentsItem: {
13427
13434
 
13428
13435
  type UpdateScheduleBody = {
13429
13436
  rule?: ScheduleRule;
13430
- /** Environments the schedule fires in. `live` resolves the worker at its live version, `test` at its test version. Listing both fires every occurrence twice, once per version. */
13437
+ /** Environments the schedule fires in. `live` resolves the worker or tool at its live version, `test` at its test version. Listing both fires every occurrence twice, once per version. */
13431
13438
  environments?: UpdateScheduleBodyEnvironmentsItem[];
13432
13439
  /** Human-readable name. Send null to clear it. */
13433
13440
  name?: string | null;
@@ -16368,7 +16375,7 @@ declare const getListDispatchesUrl: (params?: ListDispatchesParams) => string;
16368
16375
  *
16369
16376
  * `attempts` counts how many times the occurrence has been picked up, not how many times it failed: a dispatch carried out on the first pickup ends at `attempts: 1`, and a higher count means earlier pickups did not complete.
16370
16377
  *
16371
- * `target` is what the occurrence produced — a worker run, or an extractor job for an email whose inbox extracts or a call whose voice agent extracts. It is null until the dispatch is carried out.
16378
+ * `target` is what the occurrence produced: a worker run, an extractor job (for an email whose inbox extracts or a call whose voice agent extracts), or a tool call (for an `execute_tool` schedule). It is null until the dispatch is carried out, and for a tool call until the tool has run.
16372
16379
  *
16373
16380
  * Narrow to one trigger with `trigger_type` and `trigger_id` — the schedule's ID for a schedule, the email's ID for an email, the request's ID for an information request, the call's ID for a call. `trigger_id` requires `trigger_type`.
16374
16381
  * @summary List dispatches
@@ -17610,13 +17617,13 @@ declare const getCreateScheduleUrl: () => string;
17610
17617
  /**
17611
17618
  * Create a schedule that performs an action, either repeatedly or once.
17612
17619
  *
17613
- * `action` describes **what** happens — today only `trigger_worker`, which starts a worker run with the given scope. `rule` describes **when**: `recurring` carries one or more `patterns`, and fires whenever any of them comes round. A pattern fires every hour at `minute`, narrowed by `hours` and `weekdays` — so `hours: [9]` is daily at 09:00, `hours: [12], weekdays: [1]` is Mondays at noon, and `hours: [9, 13, 17], weekdays: [1, 2, 3, 4, 5]` is three times a day on weekdays. Give a second pattern to mix cadences: hourly on weekdays plus 09:00, 11:00 and 18:00 at weekends is two patterns on one schedule. Patterns overlap harmlessly — two that land on the same minute fire once. Every set is read in the schedule's own time zone — an IANA identifier such as `America/Chicago`, resolved across DST transitions. `once` fires a single time at a UTC instant.
17620
+ * `action` describes **what** happens: `trigger_worker` starts a worker run with the given scope, and `execute_tool` executes a tool without parameters. `rule` describes **when**: `recurring` carries one or more `patterns`, and fires whenever any of them comes round. A pattern fires every hour at `minute`, narrowed by `hours` and `weekdays` — so `hours: [9]` is daily at 09:00, `hours: [12], weekdays: [1]` is Mondays at noon, and `hours: [9, 13, 17], weekdays: [1, 2, 3, 4, 5]` is three times a day on weekdays. Give a second pattern to mix cadences: hourly on weekdays plus 09:00, 11:00 and 18:00 at weekends is two patterns on one schedule. Patterns overlap harmlessly — two that land on the same minute fire once. Every set is read in the schedule's own time zone — an IANA identifier such as `America/Chicago`, resolved across DST transitions. `once` fires a single time at a UTC instant.
17614
17621
  *
17615
- * `environments` says **which worker version** each occurrence runs: `live` resolves the worker at its live version, `test` at its test version. Give both to soak a candidate version on the same cadence and scope as production — every occurrence then fires twice, producing one run per environment. Omit it to fire in `live` only.
17622
+ * `environments` says **which version** of the worker or tool each occurrence runs: `live` resolves it at its live version, `test` at its test version. Give both to soak a candidate version on the same cadence as production — every occurrence then fires twice, once per environment. Omit it to fire in `live` only.
17616
17623
  *
17617
17624
  * The response's `next_run_at` is the first occurrence strictly after the moment of creation; a rule that resolves to no such occurrence is rejected. Create with `enabled: false` to stage a recurring schedule without letting it fire. A one-off is always enabled: delete it to cancel it, and its `next_run_at` becomes null once it has fired.
17618
17625
  *
17619
- * Requires the `schedules:write` permission.
17626
+ * Requires the `schedules:write` permission, and `tools:execute` for an `execute_tool` action.
17620
17627
  * @summary Create a schedule
17621
17628
  */
17622
17629
  declare const createSchedule: (createScheduleBody?: CreateScheduleBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateScheduleEnvelope>;
package/dist/index.js CHANGED
@@ -6810,7 +6810,8 @@ var DispatchStatus = {
6810
6810
  // generated/models/dispatchTargetType.ts
6811
6811
  var DispatchTargetType = {
6812
6812
  worker_run: "worker_run",
6813
- extractor_job: "extractor_job"
6813
+ extractor_job: "extractor_job",
6814
+ tool_call: "tool_call"
6814
6815
  };
6815
6816
 
6816
6817
  // generated/models/dispatchTriggerType.ts