1- import type { ISO3166 } from '../iso3166/types '
1+ import type { ISO3166 } from '..'
22
33export namespace Labrinth {
44 export namespace Billing {
@@ -13,7 +13,7 @@ export namespace Labrinth {
1313 price_id : string
1414 interval : PriceDuration
1515 status : SubscriptionStatus
16- created : string // ISO datetime string
16+ created : string
1717 metadata ?: SubscriptionMetadata
1818 }
1919
@@ -40,8 +40,8 @@ export namespace Labrinth {
4040 amount : number
4141 currency_code : string
4242 status : ChargeStatus
43- due : string // ISO datetime string
44- last_attempt : string | null // ISO datetime string
43+ due : string
44+ last_attempt : string | null
4545 type : ChargeType
4646 subscription_id : string | null
4747 subscription_interval : PriceDuration | null
@@ -339,7 +339,7 @@ export namespace Labrinth {
339339
340340 /**
341341 * @deprecated Not recommended to use.
342- */
342+ ** /
343343 [ key : string ] : unknown
344344 }
345345
@@ -383,7 +383,7 @@ export namespace Labrinth {
383383 export interface GameVersion {
384384 version : string
385385 version_type : string
386- date : string // RFC 3339 DateTime
386+ date : string
387387 major : boolean
388388 }
389389
@@ -475,66 +475,40 @@ export namespace Labrinth {
475475 }
476476
477477 export type SearchResponse = {
478- /** Flat list of all file reports */
479478 reports : FileReport [ ]
480- /** Project data lookup by project ID */
481479 projects : Record < string , Projects . v3 . Project >
482- /** Thread data lookup by thread ID */
483480 threads : Record < string , DBThread >
484- /** Ownership data lookup by project ID */
485481 ownership : Record < string , Ownership >
486482 }
487483
488484 export type FileReport = {
489- /** Unique ID of this report */
490485 id : string
491- /** ID of the scanned file */
492486 file_id : string
493- /** ID of the version this file belongs to */
494487 version_id : string
495- /** ID of the project this file belongs to */
496488 project_id : string
497- /** When this report was created (ISO datetime string) */
498489 created : string
499- /** Why this file was flagged */
500490 flag_reason : FlagReason
501- /** Overall severity of issues in this file */
502491 severity : DelphiSeverity
503- /** Name of the flagged file */
504492 file_name : string
505- /** Size of the file in bytes */
506493 file_size : number
507- /** List of issues found in this file */
508494 issues : FileIssue [ ]
509495 }
510496
511497 export type FileIssue = {
512- /** Unique ID of this issue */
513498 id : string
514- /** ID of the report this issue belongs to */
515499 report_id : string
516- /** Type of issue (e.g., 'OBFUSCATED_NAMES', 'SUSPICIOUS_CODE') */
517500 issue_type : string
518- /** Whether this issue is valid, false positive, or pending review */
519501 status : DelphiReportIssueStatus
520- /** Specific details about where/why this issue was raised */
521502 details : ReportIssueDetail [ ]
522503 }
523504
524505 export type ReportIssueDetail = {
525- /** Unique ID of this detail entry */
526506 id : string
527- /** ID of the issue this detail belongs to */
528507 issue_id : string
529- /** Key identifier for this detail (e.g., class or method name) */
530508 key : string
531- /** File path where the issue was found (e.g., 'com/example/Class.class') */
532509 file_path : string
533- /** Decompiled source code showing the issue (may be omitted for large files) */
534510 decompiled_source : string | null
535- /** Additional structured metadata about this detail */
536511 data : Record < string , unknown >
537- /** Severity level of this specific detail */
538512 severity : DelphiSeverity
539513 }
540514
0 commit comments