@@ -240,8 +240,8 @@ export interface paths {
240240 latestVersionNumber : number | null ;
241241 parentModelId : string | null ;
242242 parentVersionNumber : number | null ;
243- /** @description public | private | unlisted */
244- visibility : string ;
243+ /** @enum {unknown} */
244+ visibility : "public" | "private" | "unlisted" ;
245245 isEndorsed : boolean ;
246246 } ) [ ] ;
247247 } ;
@@ -264,6 +264,7 @@ export interface paths {
264264 title : string ;
265265 /** @description Model description */
266266 description ?: string ;
267+ /** @enum {unknown} */
267268 visibility ?: "public" | "private" | "unlisted" ;
268269 /** Format: uuid */
269270 parentModelId ?: string ;
@@ -342,8 +343,8 @@ export interface paths {
342343 latestVersionNumber : number | null ;
343344 parentModelId : string | null ;
344345 parentVersionNumber : number | null ;
345- /** @description public | private | unlisted */
346- visibility : string ;
346+ /** @enum {unknown} */
347+ visibility : "public" | "private" | "unlisted" ;
347348 isEndorsed : boolean ;
348349 } ;
349350 } ;
@@ -386,6 +387,7 @@ export interface paths {
386387 requestBody : {
387388 content : {
388389 "application/json" : {
390+ /** @enum {unknown} */
389391 visibility ?: "public" | "private" | "unlisted" ;
390392 isEndorsed ?: boolean ;
391393 } ;
@@ -403,6 +405,122 @@ export interface paths {
403405 } ;
404406 trace ?: never ;
405407 } ;
408+ "/api/v1/models/{id}/card" : {
409+ parameters : {
410+ query ?: never ;
411+ header ?: never ;
412+ path ?: never ;
413+ cookie ?: never ;
414+ } ;
415+ get : {
416+ parameters : {
417+ query ?: never ;
418+ header ?: never ;
419+ path : {
420+ id : string ;
421+ } ;
422+ cookie ?: never ;
423+ } ;
424+ requestBody ?: never ;
425+ responses : {
426+ /** @description Default Response */
427+ 200 : {
428+ headers : {
429+ [ name : string ] : unknown ;
430+ } ;
431+ content : {
432+ "application/json" : {
433+ model : ( {
434+ /**
435+ * Format: uuid
436+ * @description Entity's id
437+ * @example 2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231
438+ */
439+ id : string ;
440+ } & {
441+ /**
442+ * @description Entity creation date
443+ * @example 2020-11-24T17:43:15.970Z
444+ */
445+ createdAt : string ;
446+ /**
447+ * @description Entity last update date
448+ * @example 2020-11-24T17:43:15.970Z
449+ */
450+ updatedAt : string ;
451+ } ) & {
452+ latestVersionNumber : number | null ;
453+ parentModelId : string | null ;
454+ parentVersionNumber : number | null ;
455+ /** @enum {unknown} */
456+ visibility : "public" | "private" | "unlisted" ;
457+ isEndorsed : boolean ;
458+ } ;
459+ latestVersion : {
460+ /** Format: uuid */
461+ modelId : string ;
462+ versionNumber : number ;
463+ title : string ;
464+ description : string | null ;
465+ /** Format: uuid */
466+ nlogoxFileId : string ;
467+ netlogoVersion : string | null ;
468+ infoTab : string | null ;
469+ /** Format: date-time */
470+ createdAt : string ;
471+ isFinalized : boolean ;
472+ } | null ;
473+ authors : ( {
474+ /** Format: uuid */
475+ modelId : string ;
476+ /** Format: uuid */
477+ userId : string ;
478+ /** @description owner | contributor */
479+ role : string ;
480+ /**
481+ * @description Author assignment date
482+ * @example 2020-11-24T17:43:15.970Z
483+ */
484+ createdAt : string ;
485+ } & {
486+ userName : string | null ;
487+ userImage : string | null ;
488+ } ) [ ] ;
489+ tagsOnLatestVersion : {
490+ /**
491+ * Format: uuid
492+ * @description Tag id
493+ * @example 2cdc8ab1-6d50-49cc-ba14-54e4ac7ec231
494+ */
495+ id : string ;
496+ /**
497+ * @description Tag name
498+ * @example climate
499+ */
500+ name : string ;
501+ /**
502+ * @description Tag creation date
503+ * @example 2020-11-24T17:43:15.970Z
504+ */
505+ createdAt : string ;
506+ } [ ] ;
507+ counts : {
508+ versions : number ;
509+ children : number ;
510+ } ;
511+ } ;
512+ } ;
513+ } ;
514+ } ;
515+ } ;
516+ put ?: never ;
517+ post ?: never ;
518+ delete ?: never ;
519+ options ?: never ;
520+ head ?: never ;
521+ patch ?: never ;
522+ trace ?: never ;
523+ } ;
406524 "/api/v1/models/{id}/children" : {
407525 parameters : {
408526 query ?: never ;
@@ -477,8 +595,8 @@ export interface paths {
477595 latestVersionNumber : number | null ;
478596 parentModelId : string | null ;
479597 parentVersionNumber : number | null ;
480- /** @description public | private | unlisted */
481- visibility : string ;
598+ /** @enum {unknown} */
599+ visibility : "public" | "private" | "unlisted" ;
482600 isEndorsed : boolean ;
483601 } ) [ ] ;
484602 } ;
0 commit comments