File tree Expand file tree Collapse file tree 4 files changed +62
-4
lines changed Expand file tree Collapse file tree 4 files changed +62
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,20 @@ service EqualIQ {
22
22
UploadProfilePicture
23
23
UpdateProfile
24
24
Ping
25
+ ExposeTypes
25
26
]
27
+
28
+ }
29
+
30
+ // When changing APIs, we sometimes want to expose unified types that aren't directly tied to any API.
31
+ structure ExposedTypes {
32
+ QASectionsList : QASectionsList
33
+ }
34
+
35
+ // This API is used simply to expose types
36
+ @http (method : " POST" , uri : " /notARealEndpoint" )
37
+ operation ExposeTypes {
38
+ output : ExposedTypes
26
39
}
27
40
28
41
// Types
@@ -91,7 +104,7 @@ structure GetContractOutput {
91
104
terms : TermsList
92
105
93
106
@required
94
- qa_sections : QASectionsList
107
+ qa_sections : String
95
108
96
109
@required
97
110
isOwner : Boolean
@@ -518,6 +531,7 @@ structure FixedTermValue {
518
531
condition : String
519
532
}
520
533
534
+
521
535
// Common structures
522
536
document Document
523
537
Original file line number Diff line number Diff line change 1
1
# generated by datamodel-codegen:
2
2
# filename: api.json
3
- # timestamp: 2025-05-24T20:24:25 +00:00
3
+ # timestamp: 2025-05-25T00:20:39 +00:00
4
4
5
5
from __future__ import annotations
6
6
@@ -207,12 +207,16 @@ class ContractSummaryItem(BaseModel):
207
207
sharedEmails : Optional [List [str ]] = None
208
208
209
209
210
+ class ExposeTypesResponseContent (BaseModel ):
211
+ QASectionsList : Optional [List [QASection ]] = None
212
+
213
+
210
214
class GetContractResponseContent (BaseModel ):
211
215
contractId : str = Field (..., pattern = '^[A-Za-z0-9-]+$' )
212
216
name : str
213
217
type : ContractType
214
218
terms : List [Term ]
215
- qa_sections : List [ QASection ]
219
+ qa_sections : str
216
220
isOwner : bool
217
221
ownerId : str = Field (..., pattern = '^[A-Za-z0-9-]+$' )
218
222
sharedWith : List [SharedWithItem ]
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export type ContractSummaryItem = ExtractSchema<'ContractSummaryItem'>
18
18
export type ContractType = ExtractSchema < 'ContractType' >
19
19
export type DeleteContractRequestContent = ExtractSchema < 'DeleteContractRequestContent' >
20
20
export type DeleteContractResponseContent = ExtractSchema < 'DeleteContractResponseContent' >
21
+ export type ExposeTypesResponseContent = ExtractSchema < 'ExposeTypesResponseContent' >
21
22
export type FixedTermValue = ExtractSchema < 'FixedTermValue' >
22
23
export type FixedValueTermInference = ExtractSchema < 'FixedValueTermInference' >
23
24
export type GetContractReadURLRequestContent = ExtractSchema < 'GetContractReadURLRequestContent' >
Original file line number Diff line number Diff line change @@ -100,6 +100,22 @@ export interface paths {
100
100
patch ?: never ;
101
101
trace ?: never ;
102
102
} ;
103
+ "/notARealEndpoint" : {
104
+ parameters : {
105
+ query ?: never ;
106
+ header ?: never ;
107
+ path ?: never ;
108
+ cookie ?: never ;
109
+ } ;
110
+ get ?: never ;
111
+ put ?: never ;
112
+ post : operations [ "ExposeTypes" ] ;
113
+ delete ?: never ;
114
+ options ?: never ;
115
+ head ?: never ;
116
+ patch ?: never ;
117
+ trace ?: never ;
118
+ } ;
103
119
"/ping" : {
104
120
parameters : {
105
121
query ?: never ;
@@ -228,6 +244,9 @@ export interface components {
228
244
DeleteContractResponseContent : {
229
245
success : boolean ;
230
246
} ;
247
+ ExposeTypesResponseContent : {
248
+ QASectionsList ?: components [ "schemas" ] [ "QASection" ] [ ] ;
249
+ } ;
231
250
FixedTermValue : {
232
251
unit : string ;
233
252
value : string ;
@@ -254,7 +273,7 @@ export interface components {
254
273
name : string ;
255
274
type : components [ "schemas" ] [ "ContractType" ] ;
256
275
terms : components [ "schemas" ] [ "Term" ] [ ] ;
257
- qa_sections : components [ "schemas" ] [ "QASection" ] [ ] ;
276
+ qa_sections : string ;
258
277
isOwner : boolean ;
259
278
ownerId : string ;
260
279
sharedWith : string [ ] ;
@@ -630,6 +649,26 @@ export interface operations {
630
649
} ;
631
650
} ;
632
651
} ;
652
+ ExposeTypes : {
653
+ parameters : {
654
+ query ?: never ;
655
+ header ?: never ;
656
+ path ?: never ;
657
+ cookie ?: never ;
658
+ } ;
659
+ requestBody ?: never ;
660
+ responses : {
661
+ /** @description ExposeTypes 200 response */
662
+ 200 : {
663
+ headers : {
664
+ [ name : string ] : unknown ;
665
+ } ;
666
+ content : {
667
+ "application/json" : components [ "schemas" ] [ "ExposeTypesResponseContent" ] ;
668
+ } ;
669
+ } ;
670
+ } ;
671
+ } ;
633
672
Ping : {
634
673
parameters : {
635
674
query ?: never ;
You can’t perform that action at this time.
0 commit comments