Skip to content

feat: align with updated V2 spec and add Volumes API#9

Merged
dadaism merged 2 commits into
mainfrom
feat/v2-api-spec-update-volumes
Mar 4, 2026
Merged

feat: align with updated V2 spec and add Volumes API#9
dadaism merged 2 commits into
mainfrom
feat/v2-api-spec-update-volumes

Conversation

@dadaism

@dadaism dadaism commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Field name fixes (would have caused silent API errors):

  • pod_create: envVarsenvironmentVars, ports: number[]expose: [{port, protocol}]
  • pod_create: add new optional fields (minSingleCardVramInGb, minSingleCardRamInGb, minSingleCardVcpu, shmInGb, persistentVolumeInGb, persistentMountPath, persistentVolumes, containerRegistryAuthId)
  • serverless_create: envVarsenvironmentVars, credentialIdcontainerRegistryAuthId
  • Pod.createdAt: stringnumber (epoch ms per spec)

New: Volumes API (6 tools — volume_create, volume_list, volume_get, volume_delete, volume_rename, volume_resize):

  • Supports storage types: S3, R2, CEPH, VENDOR
  • Enables mounting persistent volumes into pods via persistentVolumes in pod_create

Tool count: 31 → 37

Test plan

  • All 38 tests pass (npm test)
  • TypeScript compiles cleanly (npm run lint)
  • Verify pod_create with environmentVars and expose against live API
  • Verify volume_create / volume_list against live API

dadaism and others added 2 commits March 4, 2026 02:33
Switch from Authorization: Bearer to X-API-Key header (correct Yotta
API auth scheme) and update default base URL from test to production.
Fix field name mismatches against the authoritative OpenAPI spec:
- pod_create: envVars → environmentVars, ports → expose [{port, protocol}]
  and add new optional fields (minSingleCardVram/Ram/Vcpu, shmInGb,
  persistentVolumeInGb, persistentMountPath, persistentVolumes,
  containerRegistryAuthId)
- serverless_create: envVars → environmentVars, credentialId →
  containerRegistryAuthId
- Pod.createdAt: string → number (epoch ms per spec)

Add Volumes API (6 new tools):
- volume_create, volume_list, volume_get, volume_delete, volume_rename,
  volume_resize

Tool count: 31 → 37

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dadaism dadaism merged commit 4f4fd89 into main Mar 4, 2026
1 check passed
@dadaism dadaism deleted the feat/v2-api-spec-update-volumes branch March 4, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant