@avallon-labs/sdk 52.0.0 → 52.1.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 +5 -3
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4667,6 +4667,7 @@ declare const DispatchTriggerType: {
|
|
|
4667
4667
|
readonly schedule: "schedule";
|
|
4668
4668
|
readonly email: "email";
|
|
4669
4669
|
readonly information_request: "information_request";
|
|
4670
|
+
readonly manual: "manual";
|
|
4670
4671
|
};
|
|
4671
4672
|
|
|
4672
4673
|
/**
|
|
@@ -8433,6 +8434,7 @@ declare const ListDispatchesTriggerType: {
|
|
|
8433
8434
|
readonly schedule: "schedule";
|
|
8434
8435
|
readonly email: "email";
|
|
8435
8436
|
readonly information_request: "information_request";
|
|
8437
|
+
readonly manual: "manual";
|
|
8436
8438
|
};
|
|
8437
8439
|
|
|
8438
8440
|
/**
|
|
@@ -14606,15 +14608,15 @@ declare const getListDispatchesUrl: (params?: ListDispatchesParams) => string;
|
|
|
14606
14608
|
/**
|
|
14607
14609
|
* List the organization's dispatches, newest occurrence first.
|
|
14608
14610
|
*
|
|
14609
|
-
* 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, an inbound email produces one for the environment its inbox received it in,
|
|
14611
|
+
* 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, an inbound email produces one for the environment its inbox received it in, a resolved information request produces one that restarts the worker that asked, and creating a worker run through the API produces a `manual` one, carried out before the request returns. Listing them shows what a trigger has actually done, including occurrences that never produced anything.
|
|
14610
14612
|
*
|
|
14611
14613
|
* - `pending` — not carried out yet: waiting to be picked up, in flight, or waiting on a retry after an earlier pickup did not complete.
|
|
14612
14614
|
* - `dispatched` — carried out.
|
|
14613
|
-
* - `abandoned` — gave up, because the occurrence passed its `expires_at` deadline before it could be carried out.
|
|
14615
|
+
* - `abandoned` — gave up, because the occurrence passed its `expires_at` deadline before it could be carried out, or, for a `manual` dispatch, because the request that created it failed.
|
|
14614
14616
|
*
|
|
14615
14617
|
* `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.
|
|
14616
14618
|
*
|
|
14617
|
-
* `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
|
|
14619
|
+
* `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.
|
|
14618
14620
|
*
|
|
14619
14621
|
* 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. `trigger_id` requires `trigger_type`.
|
|
14620
14622
|
* @summary List dispatches
|
package/dist/index.js
CHANGED
|
@@ -6195,7 +6195,8 @@ var DispatchTargetType = {
|
|
|
6195
6195
|
var DispatchTriggerType = {
|
|
6196
6196
|
schedule: "schedule",
|
|
6197
6197
|
email: "email",
|
|
6198
|
-
information_request: "information_request"
|
|
6198
|
+
information_request: "information_request",
|
|
6199
|
+
manual: "manual"
|
|
6199
6200
|
};
|
|
6200
6201
|
|
|
6201
6202
|
// generated/models/emailDetailDirection.ts
|
|
@@ -6526,7 +6527,8 @@ var ListDispatchesSortOrder = {
|
|
|
6526
6527
|
var ListDispatchesTriggerType = {
|
|
6527
6528
|
schedule: "schedule",
|
|
6528
6529
|
email: "email",
|
|
6529
|
-
information_request: "information_request"
|
|
6530
|
+
information_request: "information_request",
|
|
6531
|
+
manual: "manual"
|
|
6530
6532
|
};
|
|
6531
6533
|
|
|
6532
6534
|
// generated/models/listEmailsEnvironment.ts
|