From 4e4b87cba9cd6b857834ac6f2dd4ad4db4acb0d8 Mon Sep 17 00:00:00 2001 From: scalarbot Date: Tue, 10 Nov 2026 02:42:50 +0000 Subject: [PATCH 1/4] chore(api): update generated SDK content 4 generated files changed with no detected API surface change (documentation, examples, or file content). Build: JC6W8hbP7PPwyiSPfrvUp --- src/client.ts | 4 ++-- src/internal/utils/uuid7.ts | 29 +++++++++++++++++++++++++++++ src/version.ts | 2 +- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 src/internal/utils/uuid7.ts diff --git a/src/client.ts b/src/client.ts index 3de1b64e..3181b505 100644 --- a/src/client.ts +++ b/src/client.ts @@ -4,7 +4,7 @@ import { APIPromise, type APIResponseProps } from './api-promise'; import { PagePromise, type AbstractPage, type CursorPageParams, CursorPageResponse } from './core/pagination'; import * as Pagination from './core/pagination'; import * as Errors from './error'; -import { uuid4 } from './internal/utils/uuid'; +import { uuid7 } from './internal/utils/uuid7'; import { validatePositiveInteger, isAbsoluteURL, safeJSON, isEmptyObj } from './internal/utils/values'; import { sleep } from './internal/utils/sleep'; import { castToError, isAbortError } from './internal/errors'; @@ -337,7 +337,7 @@ export class Dedalus { } protected defaultIdempotencyKey(): string { - return `scalar-node-retry-${uuid4()}`; + return uuid7().replace(/-/g, ''); } protected makeStatusError( diff --git a/src/internal/utils/uuid7.ts b/src/internal/utils/uuid7.ts new file mode 100644 index 00000000..b6b1bbcc --- /dev/null +++ b/src/internal/utils/uuid7.ts @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec by Scalar. See README.md for details. + +/** + * A time-ordered (version 7) UUID per RFC 9562: a 48-bit Unix millisecond timestamp, then the + * version and variant bits, with every other bit random. + */ +export const uuid7 = function (): string { + const { crypto } = globalThis as any; + const bytes = new Uint8Array(16); + if (crypto?.getRandomValues) { + crypto.getRandomValues(bytes); + } else { + for (let i = 0; i < bytes.length; i++) bytes[i] = (Math.random() * 0x100) & 0xff; + } + // A clock set before 1970 writes a zero timestamp rather than wrapping to the far future. + const ms = Math.max(0, Date.now()); + // Bitwise operators work on 32 bits, so the timestamp's top 16 bits are split off arithmetically. + const high = Math.floor(ms / 0x100000000); + bytes[0] = (high >>> 8) & 0xff; + bytes[1] = high & 0xff; + bytes[2] = (ms >>> 24) & 0xff; + bytes[3] = (ms >>> 16) & 0xff; + bytes[4] = (ms >>> 8) & 0xff; + bytes[5] = ms & 0xff; + bytes[6] = (bytes[6]! & 0x0f) | 0x70; + bytes[8] = (bytes[8]! & 0x3f) | 0x80; + const hex = Array.from(bytes, (byte) => byte.toString(16).padStart(2, '0')).join(''); + return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`; +}; diff --git a/src/version.ts b/src/version.ts index 870051e6..b0f17e37 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,3 +1,3 @@ // File generated from our OpenAPI spec by Scalar. See README.md for details. -export const VERSION = '0.6.0'; // x-release-please-version +export const VERSION = '0.7.0'; // x-release-please-version From 55b7452825854b8f9fb061db253a77f3317adb6c Mon Sep 17 00:00:00 2001 From: scalarbot Date: Tue, 10 Nov 2026 23:51:31 +0000 Subject: [PATCH 2/4] feat(api)!: update property policy.cpu (+4 more changes) - Property `policy.cpu` type changed from `enum(on | off)` to `autoresizing_switch`. - Property `policy.memory` type changed from `enum(on | off)` to `autoresizing_switch`. - Property `autoresizing_update.cpu` type changed from `enum(on | off)` to `autoresizing_switch`. - Property `autoresizing_update.memory` type changed from `enum(on | off)` to `autoresizing_switch`. - Added schema `autoresizing_switch`. BREAKING CHANGE: 4 breaking changes to the SDK surface. - Property `policy.cpu` type changed from `enum(on | off)` to `autoresizing_switch`. - Property `policy.memory` type changed from `enum(on | off)` to `autoresizing_switch`. - Property `autoresizing_update.cpu` type changed from `enum(on | off)` to `autoresizing_switch`. - Property `autoresizing_update.memory` type changed from `enum(on | off)` to `autoresizing_switch`. Build: SnEyxlUcXNHo5NK412Uf1 --- scalar-sdk.manifest.json | 81 ++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 52 deletions(-) diff --git a/scalar-sdk.manifest.json b/scalar-sdk.manifest.json index 6896011f..affc8a1a 100644 --- a/scalar-sdk.manifest.json +++ b/scalar-sdk.manifest.json @@ -198,19 +198,8 @@ "required": true, "deprecated": false, "type": { - "kind": "enum", - "values": [ - "on", - "off" - ], - "names": [ - "On", - "Off" - ], - "deprecations": [ - false, - false - ] + "kind": "ref", + "name": "autoresizing_switch" } }, { @@ -294,19 +283,8 @@ "required": true, "deprecated": false, "type": { - "kind": "enum", - "values": [ - "on", - "off" - ], - "names": [ - "On", - "Off" - ], - "deprecations": [ - false, - false - ] + "kind": "ref", + "name": "autoresizing_switch" } }, { @@ -370,19 +348,8 @@ "required": false, "deprecated": false, "type": { - "kind": "enum", - "values": [ - "on", - "off" - ], - "names": [ - "On", - "Off" - ], - "deprecations": [ - false, - false - ] + "kind": "ref", + "name": "autoresizing_switch" } }, { @@ -414,19 +381,8 @@ "required": false, "deprecated": false, "type": { - "kind": "enum", - "values": [ - "on", - "off" - ], - "names": [ - "On", - "Off" - ], - "deprecations": [ - false, - false - ] + "kind": "ref", + "name": "autoresizing_switch" } }, { @@ -3180,6 +3136,27 @@ "additionalProperties": false } }, + { + "name": "autoresizing_switch", + "source": "autoresizing_switch", + "publicAliases": [], + "deprecated": false, + "type": { + "kind": "enum", + "values": [ + "on", + "off" + ], + "names": [ + "On", + "Off" + ], + "deprecations": [ + false, + false + ] + } + }, { "name": "CreateResponseHeaders", "source": "CreateResponseHeaders", From f92eb32ac021fbd472a09146c1c25ecba93bd818 Mon Sep 17 00:00:00 2001 From: scalarbot Date: Tue, 10 Nov 2026 23:54:36 +0000 Subject: [PATCH 3/4] chore(api): update generated SDK content 9 generated files changed with no detected API surface change (documentation, examples, or file content). Build: PxBlS5x7VncwMmSYymVbm --- src/client.ts | 2 ++ src/resources.ts | 1 + src/resources/index.ts | 1 + src/resources/machines/autoresizing.ts | 9 +++++---- src/resources/machines/index.ts | 1 + src/resources/machines/machines.ts | 3 +++ src/resources/organization/autoresizing.ts | 9 +++++---- 7 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/client.ts b/src/client.ts index 3181b505..0ea072b8 100644 --- a/src/client.ts +++ b/src/client.ts @@ -38,6 +38,7 @@ import { type CreateParams, type UpdateParams, type LifecycleStatus, + type AutoresizingSwitch, type MachineListItemsCursorPage, type MachineRetrieveResponse, type MachineResizeResponse, @@ -1197,6 +1198,7 @@ export declare namespace Dedalus { type CreateParams as CreateParams, type UpdateParams as UpdateParams, type LifecycleStatus as LifecycleStatus, + type AutoresizingSwitch as AutoresizingSwitch, type MachineListItemsCursorPage as MachineListItemsCursorPage, type MachineRetrieveResponse as MachineRetrieveResponse, type MachineResizeResponse as MachineResizeResponse, diff --git a/src/resources.ts b/src/resources.ts index 19daf389..b6221b7b 100644 --- a/src/resources.ts +++ b/src/resources.ts @@ -8,6 +8,7 @@ export type { CreateParams, UpdateParams, LifecycleStatus, + AutoresizingSwitch, MachineListParams, MachineListItemsCursorPage, MachineCreateParams, diff --git a/src/resources/index.ts b/src/resources/index.ts index 283f989e..dbb55489 100644 --- a/src/resources/index.ts +++ b/src/resources/index.ts @@ -8,6 +8,7 @@ export type { CreateParams, UpdateParams, LifecycleStatus, + AutoresizingSwitch, MachineListParams, MachineListItemsCursorPage, MachineCreateParams, diff --git a/src/resources/machines/autoresizing.ts b/src/resources/machines/autoresizing.ts index 07c4a90b..1d432963 100644 --- a/src/resources/machines/autoresizing.ts +++ b/src/resources/machines/autoresizing.ts @@ -4,6 +4,7 @@ import { APIResource } from '../../resource'; import { APIPromise } from '../../api-promise'; import type { RequestOptions } from '../../internal/request-options'; import { path as __scalarPath } from '../../internal/utils/path'; +import type * as MachinesAPI from './machines'; export class Autoresizing extends APIResource { /** @@ -49,7 +50,7 @@ export interface Policy { /** * Permit automatic CPU growth independently of RAM. */ - cpu: 'on' | 'off'; + cpu: MachinesAPI.AutoresizingSwitch; cpu_limit_source: 'plan' | 'configured' | 'platform'; /** * Configured CPU growth limit in 0.25-vCPU steps. Null uses the plan limit. @@ -74,7 +75,7 @@ export interface Policy { /** * Permit automatic RAM growth. Automatic shrink remains internal. */ - memory: 'on' | 'off'; + memory: MachinesAPI.AutoresizingSwitch; memory_limit_source: 'plan' | 'configured' | 'platform'; /** * Configured RAM growth limit in MiB. Null uses the plan limit. @@ -104,7 +105,7 @@ export interface AutoresizingUpdateParams { /** * Body param */ - cpu?: 'on' | 'off'; + cpu?: MachinesAPI.AutoresizingSwitch; /** * Body param * @format double @@ -115,7 +116,7 @@ export interface AutoresizingUpdateParams { /** * Body param */ - memory?: 'on' | 'off'; + memory?: MachinesAPI.AutoresizingSwitch; /** * Body param * @format int64 diff --git a/src/resources/machines/index.ts b/src/resources/machines/index.ts index 32a54502..9c753ebb 100644 --- a/src/resources/machines/index.ts +++ b/src/resources/machines/index.ts @@ -8,6 +8,7 @@ export type { CreateParams, UpdateParams, LifecycleStatus, + AutoresizingSwitch, MachineListParams, MachineListItemsCursorPage, MachineCreateParams, diff --git a/src/resources/machines/machines.ts b/src/resources/machines/machines.ts index e6978c73..fe68a210 100644 --- a/src/resources/machines/machines.ts +++ b/src/resources/machines/machines.ts @@ -433,6 +433,8 @@ export namespace LifecycleStatus { } } +export type AutoresizingSwitch = 'on' | 'off'; + export interface MachineListParams extends CursorPageParams {} export type MachineListItemsCursorPage = CursorPage; @@ -640,6 +642,7 @@ export declare namespace Machines { type CreateParams as CreateParams, type UpdateParams as UpdateParams, type LifecycleStatus as LifecycleStatus, + type AutoresizingSwitch as AutoresizingSwitch, type MachineListItemsCursorPage as MachineListItemsCursorPage, type MachineRetrieveResponse as MachineRetrieveResponse, type MachineResizeResponse as MachineResizeResponse, diff --git a/src/resources/organization/autoresizing.ts b/src/resources/organization/autoresizing.ts index 9bef8172..a90d4754 100644 --- a/src/resources/organization/autoresizing.ts +++ b/src/resources/organization/autoresizing.ts @@ -3,6 +3,7 @@ import { APIResource } from '../../resource'; import { APIPromise } from '../../api-promise'; import type { RequestOptions } from '../../internal/request-options'; +import type * as MachinesAPI from '../machines/machines'; export class Autoresizing extends APIResource { /** @@ -41,7 +42,7 @@ export interface Policy { /** * Permit automatic CPU growth independently of RAM. */ - cpu: 'on' | 'off'; + cpu: MachinesAPI.AutoresizingSwitch; cpu_limit_source: 'plan' | 'configured' | 'platform'; /** * Configured CPU growth limit in 0.25-vCPU steps. Null uses the plan limit. @@ -66,7 +67,7 @@ export interface Policy { /** * Permit automatic RAM growth. Automatic shrink remains internal. */ - memory: 'on' | 'off'; + memory: MachinesAPI.AutoresizingSwitch; memory_limit_source: 'plan' | 'configured' | 'platform'; /** * Configured RAM growth limit in MiB. Null uses the plan limit. @@ -76,14 +77,14 @@ export interface Policy { } export interface AutoresizingUpdateParams { - cpu?: 'on' | 'off'; + cpu?: MachinesAPI.AutoresizingSwitch; /** * @format double * @minimum 0.25 * @multipleOf 0.25 */ cpu_max_vcpu?: number | null; - memory?: 'on' | 'off'; + memory?: MachinesAPI.AutoresizingSwitch; /** * @format int64 * @minimum 256 From 89eab0ce24607dd5d3f67f3918641cb62b3c0c94 Mon Sep 17 00:00:00 2001 From: "scalar-docs[bot]" <148485328+scalar-docs[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:18:37 +0000 Subject: [PATCH 4/4] release: 0.8.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 22 ++++++++++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e7ca6139..64f3cdd6 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.7.0" + ".": "0.8.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index d809728c..d94f83ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [0.8.0](https://github.com/dedalus-labs/dedalus-typescript/compare/v0.7.0...v0.8.0) (2026-11-11) + + +### ⚠ BREAKING CHANGES + +* **api:** 4 breaking changes to the SDK surface. + - Property `policy.cpu` type changed from `enum(on | off)` to `autoresizing_switch`. + - Property `policy.memory` type changed from `enum(on | off)` to `autoresizing_switch`. + - Property `autoresizing_update.cpu` type changed from `enum(on | off)` to `autoresizing_switch`. + - Property `autoresizing_update.memory` type changed from `enum(on | off)` to `autoresizing_switch`. + +### Features + +* **api:** share autoresizing switch type ([21f2575](https://github.com/dedalus-labs/dedalus-typescript/commit/21f2575562281cefdff05195ad8b3575d4f240d2)) +* **api:** update property policy.cpu (+4 more changes) ([55b7452](https://github.com/dedalus-labs/dedalus-typescript/commit/55b7452825854b8f9fb061db253a77f3317adb6c)) + + +### Chores + +* **api:** update generated SDK content ([f92eb32](https://github.com/dedalus-labs/dedalus-typescript/commit/f92eb32ac021fbd472a09146c1c25ecba93bd818)) +* **api:** update generated SDK content ([4e4b87c](https://github.com/dedalus-labs/dedalus-typescript/commit/4e4b87cba9cd6b857834ac6f2dd4ad4db4acb0d8)) + ## [0.7.0](https://github.com/dedalus-labs/dedalus-typescript/compare/v0.6.0...v0.7.0) (2026-11-06) diff --git a/package.json b/package.json index 9987af18..f03fb5a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dedalus", - "version": "0.7.0", + "version": "0.8.0", "description": "Create, run, and manage Dedalus Machines.", "author": "Dedalus", "repository": { diff --git a/src/version.ts b/src/version.ts index b0f17e37..d739f365 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,3 +1,3 @@ // File generated from our OpenAPI spec by Scalar. See README.md for details. -export const VERSION = '0.7.0'; // x-release-please-version +export const VERSION = '0.8.0'; // x-release-please-version