@avallon-labs/sdk 36.10.0 → 37.0.0-staging.930
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 +18 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1781,9 +1781,13 @@ type ScheduleAction = {
|
|
|
1781
1781
|
* OpenAPI spec version: 1.0.0
|
|
1782
1782
|
*/
|
|
1783
1783
|
/**
|
|
1784
|
-
* When the schedule fires
|
|
1784
|
+
* When the schedule fires
|
|
1785
1785
|
*/
|
|
1786
1786
|
type ScheduleRule = {
|
|
1787
|
+
type: "once";
|
|
1788
|
+
/** The moment it fires, in UTC, e.g. "2026-09-01T14:00:00Z" */
|
|
1789
|
+
at: string;
|
|
1790
|
+
} | {
|
|
1787
1791
|
type: "hourly";
|
|
1788
1792
|
/**
|
|
1789
1793
|
* Minute, 0-59
|
|
@@ -1849,7 +1853,7 @@ type CreateScheduleBody = {
|
|
|
1849
1853
|
* @maxLength 200
|
|
1850
1854
|
*/
|
|
1851
1855
|
name?: string;
|
|
1852
|
-
/** Whether the schedule starts firing right away. Defaults to true. */
|
|
1856
|
+
/** Whether the schedule starts firing right away. Defaults to true. Must be omitted or true for `once` rules. */
|
|
1853
1857
|
enabled?: boolean;
|
|
1854
1858
|
};
|
|
1855
1859
|
|
|
@@ -5197,9 +5201,13 @@ type ScheduleActionOutput = {
|
|
|
5197
5201
|
* OpenAPI spec version: 1.0.0
|
|
5198
5202
|
*/
|
|
5199
5203
|
/**
|
|
5200
|
-
* When the schedule fires
|
|
5204
|
+
* When the schedule fires
|
|
5201
5205
|
*/
|
|
5202
5206
|
type ScheduleRuleOutput = {
|
|
5207
|
+
type: "once";
|
|
5208
|
+
/** The moment it fires, in UTC, e.g. "2026-09-01T14:00:00Z" */
|
|
5209
|
+
at: string;
|
|
5210
|
+
} | {
|
|
5203
5211
|
type: "hourly";
|
|
5204
5212
|
/**
|
|
5205
5213
|
* Minute, 0-59
|
|
@@ -5265,7 +5273,7 @@ interface Schedule {
|
|
|
5265
5273
|
rule: ScheduleRuleOutput;
|
|
5266
5274
|
/** Whether the schedule currently fires. Disabled never fires. */
|
|
5267
5275
|
enabled: boolean;
|
|
5268
|
-
/** When the schedule fires next, in UTC. Null while disabled. */
|
|
5276
|
+
/** When the schedule fires next, in UTC. Null while disabled, or once a one-off has fired. */
|
|
5269
5277
|
next_run_at: string | null;
|
|
5270
5278
|
/** Actor that created the schedule */
|
|
5271
5279
|
created_by: string;
|
|
@@ -5737,7 +5745,7 @@ type UpdateScheduleBody = {
|
|
|
5737
5745
|
rule?: ScheduleRule;
|
|
5738
5746
|
/** Human-readable name. Send null to clear it. */
|
|
5739
5747
|
name?: string | null;
|
|
5740
|
-
/** Whether the schedule fires. Disabled never fires. */
|
|
5748
|
+
/** Whether the schedule fires. Disabled never fires. Must be omitted or true for `once` rules. */
|
|
5741
5749
|
enabled?: boolean;
|
|
5742
5750
|
};
|
|
5743
5751
|
|
|
@@ -8915,11 +8923,11 @@ type AwaitedInput$8<T> = PromiseLike<T> | T;
|
|
|
8915
8923
|
type Awaited$8<O> = O extends AwaitedInput$8<infer T> ? T : never;
|
|
8916
8924
|
type SecondParameter$8<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
8917
8925
|
/**
|
|
8918
|
-
* Create a schedule that
|
|
8926
|
+
* Create a schedule that performs an action, either repeatedly or once.
|
|
8919
8927
|
|
|
8920
|
-
`action` describes **what** happens — today only `trigger_worker`, which starts a worker run with the given scope. `rule` describes **when
|
|
8928
|
+
`action` describes **what** happens — today only `trigger_worker`, which starts a worker run with the given scope. `rule` describes **when**: `hourly`, `daily` and `weekly` recur in the tenant's own time zone — an IANA identifier such as `America/Chicago`, resolved across DST transitions — while `once` fires a single time at a UTC instant.
|
|
8921
8929
|
|
|
8922
|
-
The response's `next_run_at` is the first occurrence strictly after the moment of creation. Create with `enabled: false` to stage a schedule without letting it fire.
|
|
8930
|
+
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.
|
|
8923
8931
|
|
|
8924
8932
|
Requires the `schedules:write` permission.
|
|
8925
8933
|
* @summary Create a schedule
|
|
@@ -8999,6 +9007,8 @@ declare const useGetSchedule: <TError = ErrorType<ErrorResponse>>(scheduleId: st
|
|
|
8999
9007
|
};
|
|
9000
9008
|
/**
|
|
9001
9009
|
* Update a schedule's rule, name, or enabled state.
|
|
9010
|
+
|
|
9011
|
+
Changing the rule moves `next_run_at` to the first occurrence after the update; a rule that resolves to no such occurrence is rejected. One-off schedules are always enabled — delete one to cancel it before it fires.
|
|
9002
9012
|
* @summary Update a schedule
|
|
9003
9013
|
*/
|
|
9004
9014
|
declare const getUpdateScheduleUrl: (scheduleId: string) => string;
|