From 15e4b6bcf59882a577fef62c3ef8dc2e92d21ac0 Mon Sep 17 00:00:00 2001 From: jsell-rh Date: Tue, 5 May 2026 15:08:40 +0000 Subject: [PATCH] fix(sdk): include display_name field in Project type generation The TypeScript and Python SDK Project types were stale and missing the display_name field that was already defined in the OpenAPI spec. Regenerated the Project type files for all three SDKs (Go already had the field from a prior regeneration). Co-Authored-By: Claude Opus 4.6 --- components/ambient-sdk/go-sdk/types/project.go | 4 ++-- .../python-sdk/ambient_platform/project.py | 14 ++++++++++++-- components/ambient-sdk/ts-sdk/src/project.ts | 17 +++++++++++++++-- 3 files changed, 29 insertions(+), 6 deletions(-) diff --git a/components/ambient-sdk/go-sdk/types/project.go b/components/ambient-sdk/go-sdk/types/project.go index d22837b1c..648b277f4 100644 --- a/components/ambient-sdk/go-sdk/types/project.go +++ b/components/ambient-sdk/go-sdk/types/project.go @@ -1,7 +1,7 @@ // Code generated by ambient-sdk-generator from openapi.yaml — DO NOT EDIT. // Source: ../../ambient-api-server/openapi/openapi.yaml -// Spec SHA256: 97773951f427a0271532ec5ed2e18c6441b246989b0aebbe755b544b47e2e702 -// Generated: 2026-04-18T21:11:11Z +// Spec SHA256: c9d4494778eb0a006db1f289630460fb9b5dc58df1895903c42735b4f56b0314 +// Generated: 2026-05-05T15:07:48Z package types diff --git a/components/ambient-sdk/python-sdk/ambient_platform/project.py b/components/ambient-sdk/python-sdk/ambient_platform/project.py index b8b6a3053..e0846cbf4 100644 --- a/components/ambient-sdk/python-sdk/ambient_platform/project.py +++ b/components/ambient-sdk/python-sdk/ambient_platform/project.py @@ -1,7 +1,7 @@ # Code generated by ambient-sdk-generator from openapi.yaml — DO NOT EDIT. # Source: ../../ambient-api-server/openapi/openapi.yaml -# Spec SHA256: 9a8e623edcfae33acf56edf974d1859a127c22915d4831cb786daba2b398ca37 -# Generated: 2026-03-21T21:30:53Z +# Spec SHA256: c9d4494778eb0a006db1f289630460fb9b5dc58df1895903c42735b4f56b0314 +# Generated: 2026-05-05T15:07:48Z from __future__ import annotations @@ -21,6 +21,7 @@ class Project: updated_at: Optional[datetime] = None annotations: str = "" description: str = "" + display_name: str = "" labels: str = "" name: str = "" prompt: str = "" @@ -36,6 +37,7 @@ def from_dict(cls, data: dict) -> Project: updated_at=_parse_datetime(data.get("updated_at")), annotations=data.get("annotations", ""), description=data.get("description", ""), + display_name=data.get("display_name", ""), labels=data.get("labels", ""), name=data.get("name", ""), prompt=data.get("prompt", ""), @@ -79,6 +81,10 @@ def description(self, value: str) -> ProjectBuilder: self._data["description"] = value return self + def display_name(self, value: str) -> ProjectBuilder: + self._data["display_name"] = value + return self + def labels(self, value: str) -> ProjectBuilder: self._data["labels"] = value return self @@ -114,6 +120,10 @@ def description(self, value: str) -> ProjectPatch: self._data["description"] = value return self + def display_name(self, value: str) -> ProjectPatch: + self._data["display_name"] = value + return self + def labels(self, value: str) -> ProjectPatch: self._data["labels"] = value return self diff --git a/components/ambient-sdk/ts-sdk/src/project.ts b/components/ambient-sdk/ts-sdk/src/project.ts index 6a999a583..181b538a5 100644 --- a/components/ambient-sdk/ts-sdk/src/project.ts +++ b/components/ambient-sdk/ts-sdk/src/project.ts @@ -1,13 +1,14 @@ // Code generated by ambient-sdk-generator from openapi.yaml — DO NOT EDIT. // Source: ../../ambient-api-server/openapi/openapi.yaml -// Spec SHA256: 9a8e623edcfae33acf56edf974d1859a127c22915d4831cb786daba2b398ca37 -// Generated: 2026-03-21T21:30:53Z +// Spec SHA256: c9d4494778eb0a006db1f289630460fb9b5dc58df1895903c42735b4f56b0314 +// Generated: 2026-05-05T15:07:48Z import type { ObjectReference, ListMeta } from './base'; export type Project = ObjectReference & { annotations: string; description: string; + display_name: string; labels: string; name: string; prompt: string; @@ -21,6 +22,7 @@ export type ProjectList = ListMeta & { export type ProjectCreateRequest = { annotations?: string; description?: string; + display_name?: string; labels?: string; name: string; prompt?: string; @@ -30,6 +32,7 @@ export type ProjectCreateRequest = { export type ProjectPatchRequest = { annotations?: string; description?: string; + display_name?: string; labels?: string; name?: string; prompt?: string; @@ -50,6 +53,11 @@ export class ProjectBuilder { return this; } + displayName(value: string): this { + this.data['display_name'] = value; + return this; + } + labels(value: string): this { this.data['labels'] = value; return this; @@ -92,6 +100,11 @@ export class ProjectPatchBuilder { return this; } + displayName(value: string): this { + this.data['display_name'] = value; + return this; + } + labels(value: string): this { this.data['labels'] = value; return this;