@alva-ai/toolkit 0.16.0 → 0.16.1-beta.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.cts CHANGED
@@ -194,6 +194,13 @@ interface CronjobCreateRequest {
194
194
  * A string: SA ids are snowflake int64s that overflow JS number precision.
195
195
  */
196
196
  run_as_user_id?: string;
197
+ /**
198
+ * Lifetime ceiling (RFC3339 timestamp). Once now >= end_at the runner
199
+ * self-terminates the cronjob before running (backend#1799). Omitted ⇒ no
200
+ * expiry. The `alva loop create` sugar sets this to now + (expires_in ?? 7d);
201
+ * feeds and other crons leave it unset.
202
+ */
203
+ end_at?: string;
197
204
  }
198
205
  interface Cronjob {
199
206
  id: number;
@@ -210,6 +217,11 @@ interface Cronjob {
210
217
  * A string: snowflake int64 ids overflow JS number precision.
211
218
  */
212
219
  run_as_user_id: string;
220
+ /**
221
+ * Lifetime ceiling (RFC3339), or null/omitted when the cronjob has no expiry.
222
+ * Set by `alva loop create`; unset for feeds and other crons.
223
+ */
224
+ end_at?: string | null;
213
225
  created_at: string;
214
226
  updated_at: string;
215
227
  }
package/dist/index.d.ts CHANGED
@@ -194,6 +194,13 @@ interface CronjobCreateRequest {
194
194
  * A string: SA ids are snowflake int64s that overflow JS number precision.
195
195
  */
196
196
  run_as_user_id?: string;
197
+ /**
198
+ * Lifetime ceiling (RFC3339 timestamp). Once now >= end_at the runner
199
+ * self-terminates the cronjob before running (backend#1799). Omitted ⇒ no
200
+ * expiry. The `alva loop create` sugar sets this to now + (expires_in ?? 7d);
201
+ * feeds and other crons leave it unset.
202
+ */
203
+ end_at?: string;
197
204
  }
198
205
  interface Cronjob {
199
206
  id: number;
@@ -210,6 +217,11 @@ interface Cronjob {
210
217
  * A string: snowflake int64 ids overflow JS number precision.
211
218
  */
212
219
  run_as_user_id: string;
220
+ /**
221
+ * Lifetime ceiling (RFC3339), or null/omitted when the cronjob has no expiry.
222
+ * Set by `alva loop create`; unset for feeds and other crons.
223
+ */
224
+ end_at?: string | null;
213
225
  created_at: string;
214
226
  updated_at: string;
215
227
  }
package/dist/index.js CHANGED
@@ -219,7 +219,8 @@ var DeployResource = class {
219
219
  args: params.args,
220
220
  push_notify: params.push_notify,
221
221
  max_heap_size_mb: params.max_heap_size_mb,
222
- run_as_user_id: params.run_as_user_id
222
+ run_as_user_id: params.run_as_user_id,
223
+ end_at: params.end_at
223
224
  }
224
225
  });
225
226
  }
@@ -3704,7 +3705,7 @@ var installPlaybookRuntime = (targetWindow) => {
3704
3705
  };
3705
3706
 
3706
3707
  // src/index.ts
3707
- var VERSION = true ? "0.16.0" : "dev";
3708
+ var VERSION = true ? "0.16.1-beta.0" : "dev";
3708
3709
  export {
3709
3710
  AlertsResource,
3710
3711
  AlvaClient,