Skip to content

Commit 71d3d1c

Browse files
committed
chore(api): refresh generated HTTP wire contract
The preceding SDK commit added an optional `attributes` field to the CloudAgent/CloudEnvironment/CloudVault zod schemas. The server routes reuse those schemas verbatim, so the runtime OpenAPI document drifted from the committed snapshot, and the webui's generated wire types drifted from it in turn. Regenerated both artifacts with their own scripts, no hand edits: - bun run --cwd apps/server gen:openapi - bun run --cwd apps/webui gen:api-types The whole diff is the optional `attributes` object on the item schemas of GET /api/cloud-agents, /api/cloud-environments and /api/cloud-vaults, which are already raw cloud-resource passthroughs — no request or response behavior changes. Unblocks the openapi-contract and api-types-freshness snapshot tests that failed verify:push.
1 parent 8b0718d commit 71d3d1c

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

apps/server/openapi.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,6 +1520,12 @@
15201520
"archived_at": {
15211521
"type": "string",
15221522
"nullable": true
1523+
},
1524+
"attributes": {
1525+
"type": "object",
1526+
"additionalProperties": {
1527+
"nullable": true
1528+
}
15231529
}
15241530
},
15251531
"required": ["id"]
@@ -1793,6 +1799,12 @@
17931799
"archived_at": {
17941800
"type": "string",
17951801
"nullable": true
1802+
},
1803+
"attributes": {
1804+
"type": "object",
1805+
"additionalProperties": {
1806+
"nullable": true
1807+
}
17961808
}
17971809
},
17981810
"required": ["id"]
@@ -2062,6 +2074,12 @@
20622074
"archived_at": {
20632075
"type": "string",
20642076
"nullable": true
2077+
},
2078+
"attributes": {
2079+
"type": "object",
2080+
"additionalProperties": {
2081+
"nullable": true
2082+
}
20652083
}
20662084
},
20672085
"required": ["id"]

apps/webui/src/lib/api/generated/schema.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,9 @@ export interface paths {
870870
created_at?: string;
871871
updated_at?: string;
872872
archived_at?: string | null;
873+
attributes?: {
874+
[key: string]: unknown;
875+
};
873876
}[];
874877
};
875878
};
@@ -1116,6 +1119,9 @@ export interface paths {
11161119
created_at?: string;
11171120
updated_at?: string;
11181121
archived_at?: string | null;
1122+
attributes?: {
1123+
[key: string]: unknown;
1124+
};
11191125
}[];
11201126
};
11211127
};
@@ -1346,6 +1352,9 @@ export interface paths {
13461352
created_at?: string | null;
13471353
updated_at?: string | null;
13481354
archived_at?: string | null;
1355+
attributes?: {
1356+
[key: string]: unknown;
1357+
};
13491358
}[];
13501359
};
13511360
};

0 commit comments

Comments
 (0)