File tree Expand file tree Collapse file tree 4 files changed +6
-29
lines changed Expand file tree Collapse file tree 4 files changed +6
-29
lines changed Original file line number Diff line number Diff line change @@ -76,13 +76,11 @@ operation UploadProfilePicture {
76
76
}
77
77
78
78
structure UploadProfilePictureInput {
79
- image : String
80
- userId : UserId
81
79
}
82
80
83
81
structure UploadProfilePictureOutput {
84
- message : String
85
- pictureId : String
82
+ @ required
83
+ url_info : PresignedPostData
86
84
}
87
85
88
86
structure UserProfile {
Original file line number Diff line number Diff line change @@ -280,14 +280,8 @@ class UpdateProfileResponseContent(BaseModel):
280
280
updatedFields : list [str ] | None
281
281
282
282
283
- class UploadProfilePictureRequestContent (BaseModel ):
284
- image : str | None
285
- userId : str | None = Field (None , pattern = '^[A-Za-z0-9-]+$' )
286
-
287
-
288
283
class UploadProfilePictureResponseContent (BaseModel ):
289
- message : str | None
290
- pictureId : str | None
284
+ url_info : PresignedPostData
291
285
292
286
293
287
class UserProfile (BaseModel ):
Original file line number Diff line number Diff line change @@ -431,14 +431,8 @@ export type UpdateProfileResponseContent = {
431
431
updatedFields ?: string [ ] ;
432
432
} ;
433
433
434
- export type UploadProfilePictureRequestContent = {
435
- image ?: string ;
436
- userId ?: string ;
437
- } ;
438
-
439
434
export type UploadProfilePictureResponseContent = {
440
- message ?: string ;
441
- pictureId ?: string ;
435
+ url_info : PresignedPostData ;
442
436
} ;
443
437
444
438
export type UserProfile = {
Original file line number Diff line number Diff line change @@ -587,13 +587,8 @@ export interface components {
587
587
userId : string ;
588
588
updatedFields ?: string [ ] ;
589
589
} ;
590
- UploadProfilePictureRequestContent : {
591
- image ?: string ;
592
- userId ?: string ;
593
- } ;
594
590
UploadProfilePictureResponseContent : {
595
- message ?: string ;
596
- pictureId ?: string ;
591
+ url_info : components [ "schemas" ] [ "PresignedPostData" ] ;
597
592
} ;
598
593
UserProfile : {
599
594
userId ?: string ;
@@ -1117,11 +1112,7 @@ export interface operations {
1117
1112
path ?: never ;
1118
1113
cookie ?: never ;
1119
1114
} ;
1120
- requestBody ?: {
1121
- content : {
1122
- "application/json" : components [ "schemas" ] [ "UploadProfilePictureRequestContent" ] ;
1123
- } ;
1124
- } ;
1115
+ requestBody ?: never ;
1125
1116
responses : {
1126
1117
/** @description UploadProfilePicture 200 response */
1127
1118
200 : {
You can’t perform that action at this time.
0 commit comments