Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.7.0"
".": "0.8.0"
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.8.0](https://github.com/kernel/hypeman-ts/compare/v0.7.0...v0.8.0) (2026-08-21)


### Features

* Repair SDK tracking generation ([a6716d0](https://github.com/kernel/hypeman-ts/commit/a6716d0c0b912758dd05cdafa826b9ba35657aca))

## [0.7.0](https://github.com/kernel/hypeman-ts/compare/v0.6.0...v0.7.0) (2026-08-17)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onkernel/hypeman",
"version": "0.7.0",
"version": "0.8.0",
"description": "The official TypeScript library for the Hypeman API",
"author": "Hypeman <>",
"types": "dist/index.d.ts",
Expand Down
36 changes: 33 additions & 3 deletions src/resources/instances/instances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ export class Instances extends APIResource {
}

/**
* Update mutable properties of a running instance. Currently supports updating
* only the environment variables referenced by existing credential policies,
* enabling secret/key rotation without instance restart.
* Update mutable instance properties. TTL values are relative to when the update
* is committed. Expiration updates are rejected after the current deadline passes.
*
* @example
* ```ts
Expand Down Expand Up @@ -445,6 +444,12 @@ export interface Instance {
*/
created_at: string;

/**
* Absolute expiration time, or null when automatic expiration is disabled.
* Instance TTL is cleared on fork.
*/
expires_at: string | null;

/**
* OCI image reference
*/
Expand Down Expand Up @@ -1092,6 +1097,12 @@ export interface InstanceCreateParams {
*/
env?: { [key: string]: string };

/**
* Absolute expiration time. Must be in the future and is mutually exclusive with
* ttl.
*/
expires_at?: string;

/**
* GPU configuration for the instance
*/
Expand Down Expand Up @@ -1172,6 +1183,13 @@ export interface InstanceCreateParams {
*/
tags?: { [key: string]: string };

/**
* Relative lifetime from instance creation, in Go duration format. Use "0s" or
* omit both expiration fields to disable automatic expiration. Mutually exclusive
* with expires_at.
*/
ttl?: string;

/**
* Number of virtual CPUs
*/
Expand Down Expand Up @@ -1321,6 +1339,12 @@ export interface InstanceUpdateParams {
*/
env?: { [key: string]: string };

/**
* Absolute expiration time. Must be in the future and is mutually exclusive with
* ttl.
*/
expires_at?: string;

/**
* Workload health check policy. Health is reported separately from instance
* lifecycle state.
Expand All @@ -1331,6 +1355,12 @@ export interface InstanceUpdateParams {
* Whole-instance restart supervision policy.
*/
restart_policy?: RestartPolicy;

/**
* Relative lifetime from when this update is committed, in Go duration format. Use
* "0s" to disable automatic expiration. Mutually exclusive with expires_at.
*/
ttl?: string;
}

export interface InstanceListParams {
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.7.0'; // x-release-please-version
export const VERSION = '0.8.0'; // x-release-please-version
2 changes: 2 additions & 0 deletions tests/api-resources/instances/instances.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ describe('resource instances', () => {
disk_io_bps: '100MB/s',
entrypoint: ['/bin/sh', '-c'],
env: { PORT: '3000', NODE_ENV: 'production' },
expires_at: '2026-08-21T18:00:00Z',
gpu: { profile: 'L40S-1Q' },
health_check: {
exec: { command: ['curl', '-f', 'http://localhost:4318/'], working_dir: '/app' },
Expand Down Expand Up @@ -98,6 +99,7 @@ describe('resource instances', () => {
standby_compression_delay: '2m',
},
tags: { team: 'backend', env: 'staging' },
ttl: '24h',
vcpus: 2,
volumes: [
{
Expand Down
Loading