diff --git a/model/profiles.smithy b/model/profiles.smithy index 8180d01..159fd41 100644 --- a/model/profiles.smithy +++ b/model/profiles.smithy @@ -76,13 +76,11 @@ operation UploadProfilePicture { } structure UploadProfilePictureInput { - image: String - userId: UserId } structure UploadProfilePictureOutput { - message: String - pictureId: String + @required + url_info: PresignedPostData } structure UserProfile { diff --git a/python/api_model/types/models.py b/python/api_model/types/models.py index bd4f0cf..7534411 100644 --- a/python/api_model/types/models.py +++ b/python/api_model/types/models.py @@ -280,14 +280,8 @@ class UpdateProfileResponseContent(BaseModel): updatedFields: list[str] | None -class UploadProfilePictureRequestContent(BaseModel): - image: str | None - userId: str | None = Field(None, pattern='^[A-Za-z0-9-]+$') - - class UploadProfilePictureResponseContent(BaseModel): - message: str | None - pictureId: str | None + url_info: PresignedPostData class UserProfile(BaseModel): diff --git a/typescript/src/index.ts b/typescript/src/index.ts index d6e1942..2c7b7bb 100644 --- a/typescript/src/index.ts +++ b/typescript/src/index.ts @@ -431,14 +431,8 @@ export type UpdateProfileResponseContent = { updatedFields?: string[]; }; -export type UploadProfilePictureRequestContent = { - image?: string; - userId?: string; -}; - export type UploadProfilePictureResponseContent = { - message?: string; - pictureId?: string; + url_info: PresignedPostData; }; export type UserProfile = { diff --git a/typescript/src/models.ts b/typescript/src/models.ts index f41065b..2ca1607 100644 --- a/typescript/src/models.ts +++ b/typescript/src/models.ts @@ -587,13 +587,8 @@ export interface components { userId: string; updatedFields?: string[]; }; - UploadProfilePictureRequestContent: { - image?: string; - userId?: string; - }; UploadProfilePictureResponseContent: { - message?: string; - pictureId?: string; + url_info: components["schemas"]["PresignedPostData"]; }; UserProfile: { userId?: string; @@ -1117,11 +1112,7 @@ export interface operations { path?: never; cookie?: never; }; - requestBody?: { - content: { - "application/json": components["schemas"]["UploadProfilePictureRequestContent"]; - }; - }; + requestBody?: never; responses: { /** @description UploadProfilePicture 200 response */ 200: {