Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions model/profiles.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,11 @@ operation UploadProfilePicture {
}

structure UploadProfilePictureInput {
image: String
userId: UserId
}

structure UploadProfilePictureOutput {
message: String
pictureId: String
@required
url_info: PresignedPostData
}

structure UserProfile {
Expand Down
8 changes: 1 addition & 7 deletions python/api_model/types/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
8 changes: 1 addition & 7 deletions typescript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
13 changes: 2 additions & 11 deletions typescript/src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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: {
Expand Down