4
4
from __future__ import annotations
5
5
6
6
from enum import Enum
7
- from typing import Any , Dict , List
7
+ from typing import Any
8
8
9
9
from pydantic import BaseModel , Field , RootModel
10
10
@@ -77,8 +77,8 @@ class EQModeItem(BaseModel):
77
77
Deprecated
78
78
"""
79
79
80
- title : str | None = None
81
- value : str | None = None
80
+ title : str | None
81
+ value : str | None
82
82
83
83
84
84
class EmptyStructure (BaseModel ):
@@ -110,20 +110,20 @@ class EqLegalCard(BaseModel):
110
110
111
111
class EqMoneyCard (BaseModel ):
112
112
majorNumber : str
113
- paidAfterList : List [str ] | None = None
113
+ paidAfterList : list [str ] | None
114
114
115
115
116
116
class FixedTermValue (BaseModel ):
117
117
unit : str
118
118
value : str
119
- name : str | None = None
120
- numericValue : float | None = None
121
- condition : str | None = None
119
+ name : str | None
120
+ numericValue : float | None
121
+ condition : str | None
122
122
123
123
124
124
class FixedValueTermInference (BaseModel ):
125
125
primary : FixedTermValue
126
- subterms : List [FixedTermValue ] | None = None
126
+ subterms : list [FixedTermValue ] | None
127
127
128
128
129
129
class GetContractReadURLRequestContent (BaseModel ):
@@ -162,7 +162,7 @@ class GetSpecialContractResponseContent(BaseModel):
162
162
sections : Any
163
163
isOwner : bool
164
164
ownerId : str = Field (..., pattern = '^[A-Za-z0-9-]+$' )
165
- sharedWith : List [SharedWithItem ]
165
+ sharedWith : list [SharedWithItem ]
166
166
167
167
168
168
class GetTTSURLsRequestContent (BaseModel ):
@@ -197,7 +197,7 @@ class QA(BaseModel):
197
197
198
198
class QASection (BaseModel ):
199
199
section : str
200
- qa : List [QA ]
200
+ qa : list [QA ]
201
201
202
202
203
203
class ResourceNotFoundErrorResponseContent (BaseModel ):
@@ -214,8 +214,8 @@ class EmailsToRemoveItem(RootModel[str]):
214
214
215
215
class ShareContractRequestContent (BaseModel ):
216
216
contractId : str = Field (..., pattern = '^[A-Za-z0-9-]+$' )
217
- emailsToAdd : List [EmailsToAddItem ] | None = None
218
- emailsToRemove : List [EmailsToRemoveItem ] | None = None
217
+ emailsToAdd : list [EmailsToAddItem ] | None
218
+ emailsToRemove : list [EmailsToRemoveItem ] | None
219
219
220
220
221
221
class AddedItem (RootModel [str ]):
@@ -241,16 +241,16 @@ class SimpleTermDescription(BaseModel):
241
241
description : str
242
242
243
243
244
- class TTSPresignedUrlMap (RootModel [Dict [str , str ] | None ]):
245
- root : Dict [str , str ] | None = None
244
+ class TTSPresignedUrlMap (RootModel [dict [str , str ] | None ]):
245
+ root : dict [str , str ] | None
246
246
247
247
248
248
class Term (BaseModel ):
249
249
name : str
250
250
definition : str
251
251
unitType : str
252
- citation : str | None = None
253
- fixedValues : FixedValueTermInference | None = None
252
+ citation : str | None
253
+ fixedValues : FixedValueTermInference | None
254
254
255
255
256
256
class UpdateContractRequestContent (BaseModel ):
@@ -263,39 +263,39 @@ class UpdateContractResponseContent(BaseModel):
263
263
264
264
265
265
class UpdateProfileRequestContent (BaseModel ):
266
- firstName : str | None = None
267
- lastName : str | None = None
268
- displayName : str | None = None
269
- accountType : AccountType | None = None
270
- bio : str | None = None
271
- isOver18 : bool | None = None
266
+ firstName : str | None
267
+ lastName : str | None
268
+ displayName : str | None
269
+ accountType : AccountType | None
270
+ bio : str | None
271
+ isOver18 : bool | None
272
272
273
273
274
274
class UpdateProfileResponseContent (BaseModel ):
275
275
success : bool
276
276
message : str
277
277
userId : str = Field (..., pattern = '^[A-Za-z0-9-]+$' )
278
- updatedFields : List [str ] | None = None
278
+ updatedFields : list [str ] | None
279
279
280
280
281
281
class UploadProfilePictureRequestContent (BaseModel ):
282
- image : str | None = None
282
+ image : str | None
283
283
userId : str | None = Field (None , pattern = '^[A-Za-z0-9-]+$' )
284
284
285
285
286
286
class UploadProfilePictureResponseContent (BaseModel ):
287
- message : str | None = None
288
- picture_id : str | None = None
287
+ message : str | None
288
+ picture_id : str | None
289
289
290
290
291
291
class UserProfile (BaseModel ):
292
292
userId : str | None = Field (None , pattern = '^[A-Za-z0-9-]+$' )
293
- firstName : str | None = None
294
- lastName : str | None = None
295
- displayName : str | None = None
293
+ firstName : str | None
294
+ lastName : str | None
295
+ displayName : str | None
296
296
email : str | None = Field (None , pattern = '^[\\ w-\\ .]+@[\\ w-\\ .]+\\ .+[\\ w-]{1,63}$' )
297
- accountType : AccountType | None = None
298
- bio : str | None = None
297
+ accountType : AccountType | None
298
+ bio : str | None
299
299
300
300
301
301
class ValidationErrorResponseContent (BaseModel ):
@@ -310,23 +310,23 @@ class ContractSummaryItem(BaseModel):
310
310
status : ContractStatus
311
311
isOwner : bool
312
312
ownerId : str = Field (..., pattern = '^[A-Za-z0-9-]+$' )
313
- sharedWith : List [SharedWithItem ] | None = None
314
- sharedUsers : List [SharedUser ] | None = None
315
- sharedEmails : List [SharedEmail ] | None = None
313
+ sharedWith : list [SharedWithItem ] | None
314
+ sharedUsers : list [SharedUser ] | None
315
+ sharedEmails : list [SharedEmail ] | None
316
316
317
317
318
318
class ContractVariable (BaseModel ):
319
319
name : str
320
320
type : ContractVariableType
321
321
id : str
322
- value : str | None = None
323
- level : float | None = None
324
- confidence : float | None = None
325
- firstOccurrence : float | None = None
326
- context : str | None = None
327
- variations : List [str ] | None = None
328
- referencedSection : str | None = None
329
- definitionCitation : str | None = None
322
+ value : str | None
323
+ level : float | None
324
+ confidence : float | None
325
+ firstOccurrence : float | None
326
+ context : str | None
327
+ variations : list [str ] | None
328
+ referencedSection : str | None
329
+ definitionCitation : str | None
330
330
331
331
332
332
class MONEYRECEIVED (BaseModel ):
@@ -339,20 +339,20 @@ class LEGAL(BaseModel):
339
339
340
340
class EqDurationCard (BaseModel ):
341
341
durationType : DurationType
342
- durationText : str | None = None
343
- durationDetails : List [SimpleTermDescription ] | None = None
342
+ durationText : str | None
343
+ durationDetails : list [SimpleTermDescription ] | None
344
344
345
345
346
346
class EqOwnershipCard (BaseModel ):
347
- ownershipTerms : List [SimpleTermDescription ]
347
+ ownershipTerms : list [SimpleTermDescription ]
348
348
349
349
350
350
class EqResponsibilitesCard (BaseModel ):
351
- resposibilites : List [SimpleTermDescription ]
351
+ resposibilites : list [SimpleTermDescription ]
352
352
353
353
354
354
class ExposeTypesResponseContent (BaseModel ):
355
- QASectionsList : List [QASection ] | None = None
355
+ QASectionsList : list [QASection ] | None
356
356
ContractVariable_1 : ContractVariable | None = Field (None , alias = 'ContractVariable' )
357
357
ContractVariableType_1 : ContractVariableType | None = Field (
358
358
None , alias = 'ContractVariableType'
@@ -374,28 +374,28 @@ class GetUploadURLResponseContent(BaseModel):
374
374
375
375
376
376
class IqSection (BaseModel ):
377
- qa_sections : List [QASection ] | None = Field (
377
+ qa_sections : list [QASection ] | None = Field (
378
378
None , description = 'deprecation path (v0.5)'
379
379
)
380
380
381
381
382
382
class ListContractsResponseContent (BaseModel ):
383
- owned : List [ContractSummaryItem ]
384
- shared : List [ContractSummaryItem ]
383
+ owned : list [ContractSummaryItem ]
384
+ shared : list [ContractSummaryItem ]
385
385
386
386
387
387
class ListSpecialContractsResponseContent (BaseModel ):
388
- owned : List [ContractSummaryItem ]
389
- shared : List [ContractSummaryItem ]
388
+ owned : list [ContractSummaryItem ]
389
+ shared : list [ContractSummaryItem ]
390
390
391
391
392
392
class ShareContractResponseContent (BaseModel ):
393
393
success : bool
394
394
contractId : str = Field (..., pattern = '^[A-Za-z0-9-]+$' )
395
- sharedWith : List [SharedUserDetails ]
396
- added : List [AddedItem ] | None = None
397
- removed : List [RemovedItem ] | None = None
398
- invalidRemoves : List [InvalidRemove ] | None = None
395
+ sharedWith : list [SharedUserDetails ]
396
+ added : list [AddedItem ] | None
397
+ removed : list [RemovedItem ] | None
398
+ invalidRemoves : list [InvalidRemove ] | None
399
399
400
400
401
401
class OWNERSHIP (BaseModel ):
@@ -422,34 +422,34 @@ class EQModeCard(BaseModel):
422
422
type : EqCardType
423
423
cardUniqueData : EqCardUniqueData
424
424
eqTitle : str | None = Field (None , description = 'Deprecated, use subTitle Instead' )
425
- subTitle : str | None = None
425
+ subTitle : str | None
426
426
totalAdvance : str | None = Field (
427
427
None , description = 'Deprecated, this should be in the in a custom subtype'
428
428
)
429
- items : List [EQModeItem ] | None = Field (
429
+ items : list [EQModeItem ] | None = Field (
430
430
None , description = 'Deprecated, this should be in the in a custom subtype'
431
431
)
432
432
audioSrc : str | None = Field (None , description = 'Deprecated, use the ttsSrcUrl' )
433
- ttsSrcUrl : str | None = None
433
+ ttsSrcUrl : str | None
434
434
435
435
436
- class EQModeData (RootModel [Dict [str , EQModeCard ] | None ]):
437
- root : Dict [str , EQModeCard ] | None = None
436
+ class EQModeData (RootModel [dict [str , EQModeCard ] | None ]):
437
+ root : dict [str , EQModeCard ] | None
438
438
439
439
440
440
class EqSection (BaseModel ):
441
- terms : List [Term ] | None = Field (None , description = 'deprecation path (v0.5)' )
442
- eqModeData : EQModeData | None = None
441
+ terms : list [Term ] | None = Field (None , description = 'deprecation path (v0.5)' )
442
+ eqModeData : EQModeData | None
443
443
444
444
445
445
class GetContractResponseContent (BaseModel ):
446
446
contractId : str = Field (..., pattern = '^[A-Za-z0-9-]+$' )
447
447
name : str
448
448
type : ContractType
449
- terms : List [Term ] | None = Field (None , description = 'deprecation path (v0)' )
449
+ terms : list [Term ] | None = Field (None , description = 'deprecation path (v0)' )
450
450
qa_sections : str | None = Field (None , description = 'deprecation path (v0)' )
451
- eq_section : EqSection | None = None
452
- iq_section : IqSection | None = None
451
+ eq_section : EqSection | None
452
+ iq_section : IqSection | None
453
453
isOwner : bool
454
454
ownerId : str = Field (..., pattern = '^[A-Za-z0-9-]+$' )
455
- sharedWith : List [SharedWithItem ]
455
+ sharedWith : list [SharedWithItem ]
0 commit comments