feat: plumb time_til_autostop_notify template field (#26439)

This commit is contained in:
Jon Ayers
2026-06-23 17:32:47 -05:00
committed by GitHub
parent a11f349c16
commit 4cfed1b3ed
23 changed files with 403 additions and 32 deletions
+19
View File
@@ -3686,6 +3686,12 @@ export interface CreateTemplateRequest {
* but can be set to 0 to disable activity bumping.
*/
readonly activity_bump_ms?: number;
/**
* TimeTilAutostopNotifyMillis allows optionally specifying the duration
* before the autostop deadline at which a reminder notification is sent for
* workspaces created from this template. Defaults to 0 (disabled).
*/
readonly time_til_autostop_notify_ms?: number;
/**
* AutostopRequirement allows optionally specifying the autostop requirement
* for workspaces created from this template. This is an enterprise feature.
@@ -8168,6 +8174,12 @@ export interface Template {
readonly icon: string;
readonly default_ttl_ms: number;
readonly activity_bump_ms: number;
/**
* TimeTilAutostopNotifyMillis is the duration before the workspace's
* autostop deadline at which a reminder notification is sent. 0 disables
* the notification.
*/
readonly time_til_autostop_notify_ms: number;
/**
* AutostopRequirement and AutostartRequirement are enterprise features. Its
* value is only used if your license is entitled to use the advanced template
@@ -9106,6 +9118,13 @@ export interface UpdateTemplateMeta {
* but can be set to 0 to disable activity bumping.
*/
readonly activity_bump_ms?: number;
/**
* TimeTilAutostopNotifyMillis allows optionally specifying the duration
* before the autostop deadline at which a reminder notification is sent for
* workspaces created from this template. Defaults to 0 (disabled). Omitting
* the field keeps the existing value.
*/
readonly time_til_autostop_notify_ms?: number;
/**
* AutostopRequirement and AutostartRequirement can only be set if your license
* includes the advanced template scheduling feature. If you attempt to set this
@@ -19,7 +19,10 @@ import TemplateSettingsPage from "./TemplateSettingsPage";
type FormValues = Required<
Omit<
UpdateTemplateMeta,
"default_ttl_ms" | "activity_bump_ms" | "deprecation_message"
| "default_ttl_ms"
| "activity_bump_ms"
| "time_til_autostop_notify_ms"
| "deprecation_message"
>
>;
+1
View File
@@ -899,6 +899,7 @@ export const MockTemplate: TypesGen.Template = {
description: "This is a test description.",
default_ttl_ms: 24 * 60 * 60 * 1000,
activity_bump_ms: 1 * 60 * 60 * 1000,
time_til_autostop_notify_ms: 0,
autostop_requirement: {
days_of_week: ["sunday"],
weeks: 1,