Skip to content

Commit f5ad5be

Browse files
committed
feat(sdk/js): surface cloud_vendor and cloud_product on InfoResponse
proto AppInfo gained these fields in dstack 0.5.7 (commit 63f30ce). Mark them optional so callers on older guest-agent versions still parse cleanly.
1 parent c2a852b commit f5ad5be

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sdk/js/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ export interface InfoResponse<VersionTcbInfo extends TcbInfo> {
8787
key_provider_info: string
8888
compose_hash: string
8989
vm_config?: string
90+
// Cloud provider sys_vendor (e.g. "Google"). Available on dstack OS >= 0.5.7.
91+
cloud_vendor?: string
92+
// Cloud provider product_name (e.g. "Google Compute Engine"). Available on dstack OS >= 0.5.7.
93+
cloud_product?: string
9094
}
9195

9296
export interface GetQuoteResponse {

0 commit comments

Comments
 (0)