@avallon-labs/sdk 46.1.0 → 46.2.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/index.d.ts CHANGED
@@ -3492,6 +3492,7 @@ declare const DispatchStatus: {
3492
3492
  type DispatchTargetType = (typeof DispatchTargetType)[keyof typeof DispatchTargetType];
3493
3493
  declare const DispatchTargetType: {
3494
3494
  readonly worker_run: "worker_run";
3495
+ readonly extractor_job: "extractor_job";
3495
3496
  };
3496
3497
 
3497
3498
  /**
@@ -3515,6 +3516,7 @@ interface DispatchTarget {
3515
3516
  type DispatchTriggerType = (typeof DispatchTriggerType)[keyof typeof DispatchTriggerType];
3516
3517
  declare const DispatchTriggerType: {
3517
3518
  readonly schedule: "schedule";
3519
+ readonly email: "email";
3518
3520
  };
3519
3521
 
3520
3522
  /**
@@ -6268,6 +6270,7 @@ declare const ListDispatchesSortOrder: {
6268
6270
  type ListDispatchesTriggerType = (typeof ListDispatchesTriggerType)[keyof typeof ListDispatchesTriggerType];
6269
6271
  declare const ListDispatchesTriggerType: {
6270
6272
  readonly schedule: "schedule";
6273
+ readonly email: "email";
6271
6274
  };
6272
6275
 
6273
6276
  /**
@@ -11333,7 +11336,7 @@ type SecondParameter$h<T extends (...args: never) => unknown> = Parameters<T>[1]
11333
11336
  /**
11334
11337
  * List the organization's dispatches, newest occurrence first.
11335
11338
 
11336
- A dispatch is one occurrence of a trigger in one environment: every time a schedule fires, it produces one dispatch per environment it runs in, each carried out on its own. Listing them shows what a trigger has actually done, including occurrences that never produced a worker run.
11339
+ A dispatch is one occurrence of a trigger in one environment, carried out on its own: a schedule produces one per environment it runs in every time it fires, and an inbound email produces one for the environment its inbox received it in. Listing them shows what a trigger has actually done, including occurrences that never produced anything.
11337
11340
 
11338
11341
  - `pending` — not carried out yet: waiting to be picked up, in flight, or waiting on a retry after an earlier pickup did not complete.
11339
11342
  - `dispatched` — carried out.
@@ -11341,11 +11344,9 @@ A dispatch is one occurrence of a trigger in one environment: every time a sched
11341
11344
 
11342
11345
  `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.
11343
11346
 
11344
- `target` is what the occurrence produced — today always a worker run. It is null until the dispatch is carried out, and stays null on one that was abandoned.
11345
-
11346
- Narrow to one trigger with `trigger_type` and `trigger_id` — for a schedule, `trigger_id` is the schedule's ID. `trigger_id` requires `trigger_type`.
11347
+ `target` is what the occurrence produced — a worker run, or an extractor job for an email whose inbox extracts. It is null until the dispatch is carried out, and stays null on one that was abandoned.
11347
11348
 
11348
- Requires the `schedules:read` permission.
11349
+ Narrow to one trigger with `trigger_type` and `trigger_id` — the schedule's ID for a schedule, the email's ID for an email. `trigger_id` requires `trigger_type`.
11349
11350
  * @summary List dispatches
11350
11351
  */
11351
11352
  declare const getListDispatchesUrl: (params?: ListDispatchesParams) => string;
package/dist/index.js CHANGED
@@ -5072,12 +5072,14 @@ var DispatchStatus = {
5072
5072
 
5073
5073
  // generated/models/dispatchTargetType.ts
5074
5074
  var DispatchTargetType = {
5075
- worker_run: "worker_run"
5075
+ worker_run: "worker_run",
5076
+ extractor_job: "extractor_job"
5076
5077
  };
5077
5078
 
5078
5079
  // generated/models/dispatchTriggerType.ts
5079
5080
  var DispatchTriggerType = {
5080
- schedule: "schedule"
5081
+ schedule: "schedule",
5082
+ email: "email"
5081
5083
  };
5082
5084
 
5083
5085
  // generated/models/emailDetailDirection.ts
@@ -5311,7 +5313,8 @@ var ListDispatchesSortOrder = {
5311
5313
 
5312
5314
  // generated/models/listDispatchesTriggerType.ts
5313
5315
  var ListDispatchesTriggerType = {
5314
- schedule: "schedule"
5316
+ schedule: "schedule",
5317
+ email: "email"
5315
5318
  };
5316
5319
 
5317
5320
  // generated/models/listEmailsSortBy.ts