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.3.0"
".": "0.4.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 52
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-52bc64e89c8406b774158cdb7fdb239dd4c39e6bace06b32e5224b82462f9ffe.yml
openapi_spec_hash: 647ddb91aa6aca7034f2015071c30ce6
config_hash: d81afc6f4fabf65fc9291db9ddd79f87
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-c6da5deb317c83b7a10434593eb22ec7cb27009aba0b92efaefbbe21884054ad.yml
openapi_spec_hash: ff73a0e1f7a8bd5a5d1ae38d994bb9cd
config_hash: ed668fae8826ff533f38df16c9664f44
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.4.0 (2026-04-17)

Full Changelog: [v0.3.0...v0.4.0](https://github.com/kernel/hypeman-ts/compare/v0.3.0...v0.4.0)

### Features

* Add standby compression start delay ([17ba616](https://github.com/kernel/hypeman-ts/commit/17ba61619c5c6d8112c06cc371d54f6206d1b650))


### Chores

* **internal:** codegen related update ([335e04d](https://github.com/kernel/hypeman-ts/commit/335e04dd5938e5b26b47a8f55bf7311661a0d9a5))

## 0.3.0 (2026-04-07)

Full Changelog: [v0.2.2...v0.3.0](https://github.com/kernel/hypeman-ts/compare/v0.2.2...v0.3.0)
Expand Down
1 change: 1 addition & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Types:
- <code><a href="./src/resources/instances/instances.ts">SnapshotPolicy</a></code>
- <code><a href="./src/resources/instances/instances.ts">SnapshotSchedule</a></code>
- <code><a href="./src/resources/instances/instances.ts">SnapshotScheduleRetention</a></code>
- <code><a href="./src/resources/instances/instances.ts">StandbyInstanceRequest</a></code>
- <code><a href="./src/resources/instances/instances.ts">VolumeMount</a></code>
- <code><a href="./src/resources/instances/instances.ts">WaitForStateResponse</a></code>
- <code><a href="./src/resources/instances/instances.ts">InstanceListResponse</a></code>
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.3.0",
"version": "0.4.0",
"description": "The official TypeScript library for the Hypeman API",
"author": "Hypeman <>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ import {
SnapshotPolicy,
SnapshotSchedule,
SnapshotScheduleRetention,
StandbyInstanceRequest,
VolumeMount,
WaitForStateResponse,
} from './resources/instances/instances';
Expand Down Expand Up @@ -849,6 +850,7 @@ export declare namespace Hypeman {
type SnapshotPolicy as SnapshotPolicy,
type SnapshotSchedule as SnapshotSchedule,
type SnapshotScheduleRetention as SnapshotScheduleRetention,
type StandbyInstanceRequest as StandbyInstanceRequest,
type VolumeMount as VolumeMount,
type WaitForStateResponse as WaitForStateResponse,
type InstanceListResponse as InstanceListResponse,
Expand Down
4 changes: 2 additions & 2 deletions src/internal/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
*/
export const readEnv = (env: string): string | undefined => {
if (typeof (globalThis as any).process !== 'undefined') {
return (globalThis as any).process.env?.[env]?.trim() ?? undefined;
return (globalThis as any).process.env?.[env]?.trim() || undefined;
Comment thread
sjmiller609 marked this conversation as resolved.
}
if (typeof (globalThis as any).Deno !== 'undefined') {
return (globalThis as any).Deno.env?.get?.(env)?.trim();
return (globalThis as any).Deno.env?.get?.(env)?.trim() || undefined;
}
return undefined;
};
1 change: 1 addition & 0 deletions src/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export {
type SnapshotPolicy,
type SnapshotSchedule,
type SnapshotScheduleRetention,
type StandbyInstanceRequest,
type VolumeMount,
type WaitForStateResponse,
type InstanceListResponse,
Expand Down
1 change: 1 addition & 0 deletions src/resources/instances/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export {
type SnapshotPolicy,
type SnapshotSchedule,
type SnapshotScheduleRetention,
type StandbyInstanceRequest,
type VolumeMount,
type WaitForStateResponse,
type InstanceListResponse,
Expand Down
37 changes: 35 additions & 2 deletions src/resources/instances/instances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,13 @@ export interface SetSnapshotScheduleRequest {

export interface SnapshotPolicy {
compression?: Shared.SnapshotCompressionConfig;

/**
* Delay before standby snapshot compression begins, expressed as a Go duration
* like "30s" or "5m". Applies only to standby compression and defaults to
* immediate start when omitted.
*/
standby_compression_delay?: string;
}

export interface SnapshotSchedule {
Expand Down Expand Up @@ -740,6 +747,20 @@ export interface SnapshotScheduleRetention {
max_count?: number;
}

export interface StandbyInstanceRequest {
/**
* Compression settings for standby snapshot memory. Overrides instance defaults.
*/
compression?: Shared.SnapshotCompressionConfig;

/**
* Delay before standby snapshot compression begins, expressed as a Go duration
* like "30s" or "5m". Overrides the instance default for this standby operation
* only.
*/
compression_delay?: string;
}

export interface VolumeMount {
/**
* Path where volume is mounted in the guest
Expand Down Expand Up @@ -890,8 +911,9 @@ export interface InstanceCreateParams {
skip_kernel_headers?: boolean;

/**
* Snapshot compression policy for this instance. Controls compression settings
* applied when creating snapshots or entering standby.
* Snapshot policy for this instance. Controls compression settings applied when
* creating snapshots or entering standby, plus any default standby-only
* compression delay.
*/
snapshot_policy?: SnapshotPolicy;

Expand Down Expand Up @@ -1107,7 +1129,17 @@ export interface InstanceLogsParams {
}

export interface InstanceStandbyParams {
/**
* Compression settings for standby snapshot memory. Overrides instance defaults.
*/
compression?: Shared.SnapshotCompressionConfig;

/**
* Delay before standby snapshot compression begins, expressed as a Go duration
* like "30s" or "5m". Overrides the instance default for this standby operation
* only.
*/
compression_delay?: string;
}

export interface InstanceStartParams {
Expand Down Expand Up @@ -1163,6 +1195,7 @@ export declare namespace Instances {
type SnapshotPolicy as SnapshotPolicy,
type SnapshotSchedule as SnapshotSchedule,
type SnapshotScheduleRetention as SnapshotScheduleRetention,
type StandbyInstanceRequest as StandbyInstanceRequest,
type VolumeMount as VolumeMount,
type WaitForStateResponse as WaitForStateResponse,
type InstanceListResponse as InstanceListResponse,
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.3.0'; // x-release-please-version
export const VERSION = '0.4.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 @@ -72,6 +72,7 @@ describe('resource instances', () => {
algorithm: 'zstd',
level: 1,
},
standby_compression_delay: '2m',
},
tags: { team: 'backend', env: 'staging' },
vcpus: 2,
Expand Down Expand Up @@ -234,6 +235,7 @@ describe('resource instances', () => {
algorithm: 'zstd',
level: 1,
},
compression_delay: '45s',
},
{ path: '/_stainless_unknown_path' },
),
Expand Down
Loading