File tree Expand file tree Collapse file tree 4 files changed +98
-1
lines changed Expand file tree Collapse file tree 4 files changed +98
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ service EqualIQ {
18
18
ShareContract
19
19
GetContractReadURL
20
20
GetProfile
21
+ GetProfilePicture
21
22
UpdateProfile
22
23
Ping
23
24
]
@@ -365,6 +366,28 @@ structure GetProfileOutput {
365
366
profile : UserProfile
366
367
}
367
368
369
+ @http (method : " POST" , uri : " /getProfilePicture" )
370
+ operation GetProfilePicture {
371
+ input : GetProfilePictureInput
372
+ output : GetProfilePictureOutput
373
+ errors : [
374
+ AuthenticationError
375
+ ResourceNotFoundError
376
+ InternalServerError
377
+ ]
378
+ }
379
+
380
+ structure GetProfilePictureInput {
381
+ userId : UserId
382
+
383
+ // Optional - defaults to authenticated user if not provided
384
+ }
385
+
386
+ structure GetProfilePictureOutput {
387
+ @required
388
+ profilePictureURL : String
389
+ }
390
+
368
391
structure UserProfile {
369
392
userId : UserId
370
393
firstName : String
Original file line number Diff line number Diff line change 1
1
# generated by datamodel-codegen:
2
2
# filename: api.json
3
- # timestamp: 2025-04-08T11:31:40 +00:00
3
+ # timestamp: 2025-05-13T05:26:33 +00:00
4
4
5
5
from __future__ import annotations
6
6
@@ -64,6 +64,14 @@ class GetContractRequestContent(BaseModel):
64
64
contractId : str = Field (..., pattern = '^[A-Za-z0-9-]+$' )
65
65
66
66
67
+ class GetProfilePictureRequestContent (BaseModel ):
68
+ userId : Optional [str ] = Field (None , pattern = '^[A-Za-z0-9-]+$' )
69
+
70
+
71
+ class GetProfilePictureResponseContent (BaseModel ):
72
+ profilePictureURL : str
73
+
74
+
67
75
class GetProfileRequestContent (BaseModel ):
68
76
userId : Optional [str ] = Field (None , pattern = '^[A-Za-z0-9-]+$' )
69
77
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ export type GetContractReadURLRequestContent = ExtractSchema<'GetContractReadURL
22
22
export type GetContractReadURLResponseContent = ExtractSchema < 'GetContractReadURLResponseContent' >
23
23
export type GetContractRequestContent = ExtractSchema < 'GetContractRequestContent' >
24
24
export type GetContractResponseContent = ExtractSchema < 'GetContractResponseContent' >
25
+ export type GetProfilePictureRequestContent = ExtractSchema < 'GetProfilePictureRequestContent' >
26
+ export type GetProfilePictureResponseContent = ExtractSchema < 'GetProfilePictureResponseContent' >
25
27
export type GetProfileRequestContent = ExtractSchema < 'GetProfileRequestContent' >
26
28
export type GetProfileResponseContent = ExtractSchema < 'GetProfileResponseContent' >
27
29
export type GetUploadURLRequestContent = ExtractSchema < 'GetUploadURLRequestContent' >
Original file line number Diff line number Diff line change @@ -68,6 +68,22 @@ export interface paths {
68
68
patch ?: never ;
69
69
trace ?: never ;
70
70
} ;
71
+ "/getProfilePicture" : {
72
+ parameters : {
73
+ query ?: never ;
74
+ header ?: never ;
75
+ path ?: never ;
76
+ cookie ?: never ;
77
+ } ;
78
+ get ?: never ;
79
+ put ?: never ;
80
+ post : operations [ "GetProfilePicture" ] ;
81
+ delete ?: never ;
82
+ options ?: never ;
83
+ head ?: never ;
84
+ patch ?: never ;
85
+ trace ?: never ;
86
+ } ;
71
87
"/listContracts" : {
72
88
parameters : {
73
89
query ?: never ;
@@ -215,6 +231,12 @@ export interface components {
215
231
ownerId : string ;
216
232
sharedWith : string [ ] ;
217
233
} ;
234
+ GetProfilePictureRequestContent : {
235
+ userId ?: string ;
236
+ } ;
237
+ GetProfilePictureResponseContent : {
238
+ profilePictureURL : string ;
239
+ } ;
218
240
GetProfileRequestContent : {
219
241
userId ?: string ;
220
242
} ;
@@ -488,6 +510,48 @@ export interface operations {
488
510
} ;
489
511
} ;
490
512
} ;
513
+ GetProfilePicture : {
514
+ parameters : {
515
+ query ?: never ;
516
+ header ?: never ;
517
+ path ?: never ;
518
+ cookie ?: never ;
519
+ } ;
520
+ requestBody ?: {
521
+ content : {
522
+ "application/json" : components [ "schemas" ] [ "GetProfilePictureRequestContent" ] ;
523
+ } ;
524
+ } ;
525
+ responses : {
526
+ /** @description GetProfilePicture 200 response */
527
+ 200 : {
528
+ headers : {
529
+ [ name : string ] : unknown ;
530
+ } ;
531
+ content : {
532
+ "application/json" : components [ "schemas" ] [ "GetProfilePictureResponseContent" ] ;
533
+ } ;
534
+ } ;
535
+ /** @description ResourceNotFoundError 400 response */
536
+ 400 : {
537
+ headers : {
538
+ [ name : string ] : unknown ;
539
+ } ;
540
+ content : {
541
+ "application/json" : components [ "schemas" ] [ "ResourceNotFoundErrorResponseContent" ] ;
542
+ } ;
543
+ } ;
544
+ /** @description InternalServerError 500 response */
545
+ 500 : {
546
+ headers : {
547
+ [ name : string ] : unknown ;
548
+ } ;
549
+ content : {
550
+ "application/json" : components [ "schemas" ] [ "InternalServerErrorResponseContent" ] ;
551
+ } ;
552
+ } ;
553
+ } ;
554
+ } ;
491
555
ListContracts : {
492
556
parameters : {
493
557
query ?: never ;
You can’t perform that action at this time.
0 commit comments