Skip to content
Clone

chore(api): regenerate the spec and client after the command changes

`just openapi` output only: the pin list becomes `Envelope_Vec_MessageDto`,
and the invite/ban bodies gain their new fields. `scripts/contract-check.sh`
passes (spec up to date, client reproduces byte for byte).
ZhenYi committed
parent 78f6249 commit 515160a Browse files

5 files changed

+17 −15

This change is very large, so some diffs are not shown. Clone the repository to see the full change.

File tree 5
Modified packages/apiclient/chat/list-pins.schemas.ts View packages/apiclient/chat/list-pins.schemas.ts
@@ -281,7 +281,7 @@
281281 request_id?: string;
282282}
283283
284export type EnvelopePageMessageDtoDataItemsItem = {
284export type EnvelopeVecMessageDtoDataItem = {
285285 attachments: AttachmentDto[];
286286 author?: null | UserDto;
287287 author_id: number;
@@ -317,19 +317,9 @@
317317 webhook_id?: string | null;
318318};
319319
320export type EnvelopePageMessageDtoData = {
321 items: EnvelopePageMessageDtoDataItemsItem[];
322 /** @minimum 0 */
323 limit: number;
324 /** @minimum 0 */
325 offset: number;
326 /** @minimum 0 */
327 total: number;
328};
329
330export interface EnvelopePageMessageDto {
320export interface EnvelopeVecMessageDto {
331321 code: number;
332 data?: EnvelopePageMessageDtoData;
322 data?: EnvelopeVecMessageDtoDataItem[];
333323 /** @nullable */
334324 error?: string | null;
335325 /** @nullable */
Modified packages/apiclient/chat/list-pins.ts View packages/apiclient/chat/list-pins.ts
@@ -93,11 +93,11 @@
9393 */
9494import type {
9595 EnvelopeNoData,
96 EnvelopePageMessageDto,
96 EnvelopeVecMessageDto,
9797} from "./list-pins.schemas";
9898
9999export type listPinsResponse200 = {
100 data: EnvelopePageMessageDto;
100 data: EnvelopeVecMessageDto;
101101 status: 200;
102102};
103103
Modified packages/apiclient/space/space-invite-create.schemas.ts View packages/apiclient/space/space-invite-create.schemas.ts
@@ -92,6 +92,13 @@
9292 * OpenAPI spec version: 1.0
9393 */
9494export interface CreateInviteBody {
95 /**
96 * 定向邀请的收件邮箱;与 `target_user_id` 二选一,两者都空则是公开令牌。
97 * @nullable
98 */
99 email?: string | null;
100 /** 兑换后一并授予的额外角色。 */
101 extra_role_ids?: string[];
95102 max_uses?: number;
96103 /** @nullable */
97104 role_id?: string | null;
Modified packages/apiclient/space/space-member-ban.schemas.ts View packages/apiclient/space/space-member-ban.schemas.ts
@@ -93,6 +93,11 @@
9393 */
9494export type SpaceMemberRole = "member" | "admin" | "owner";
9595export interface BanMemberBody {
96 /**
97 * 到期时间;缺省或 `null` 表示永久封禁。
98 * @nullable
99 */
100 expires_at?: string | null;
96101 /** @nullable */
97102 reason?: string | null;
98103}
Modified openapi.json View openapi.json

Diff too large to display.