/* eslint-disable */ // @ts-nocheck // This file was automatically generated by @icp-sdk/bindgen@0.4.0. // You should NOT make any changes in this file as it will be overwritten. // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. import type { ActorMethod } from '@icp-sdk/core/agent'; import type { IDL } from '@icp-sdk/core/candid'; import type { Principal } from '@icp-sdk/core/principal'; export interface Benchmark { 'gc' : string, 'metrics' : Array<[BenchmarkMetric, Array>]>, 'cols' : Array, 'file' : string, 'name' : string, 'rows' : Array, 'description' : string, 'compilerVersion' : string, 'compiler' : string, 'replica' : string, 'replicaVersion' : string, 'forceGC' : boolean, } export type BenchmarkMetric = string; export type Benchmarks = Array; export interface DepChange { 'oldVersion' : string, 'name' : string, 'newVersion' : string, } export interface DependencyV2 { 'name' : PackageName, 'repo' : string, 'version' : string, } export type DepsStatus = { 'allLatest' : null } | { 'tooOld' : null } | { 'updatesAvailable' : null }; export interface DownloadsSnapshot { 'startTime' : Time, 'endTime' : Time, 'downloads' : bigint, } export type Err = string; export type FileId = string; export type Header = [string, string]; export interface HttpHeader { 'value' : string, 'name' : string } export interface HttpRequestResult { 'status' : bigint, 'body' : Uint8Array, 'headers' : Array, } export interface Main { 'addMaintainer' : ActorMethod<[PackageName, Principal], Result_3>, 'addOwner' : ActorMethod<[PackageName, Principal], Result_3>, 'backup' : ActorMethod<[], undefined>, 'computeHashesForExistingFiles' : ActorMethod<[], undefined>, 'finishPublish' : ActorMethod<[PublishingId], Result>, 'getApiVersion' : ActorMethod<[], Text>, 'getBackupCanisterId' : ActorMethod<[], Principal>, 'getDefaultPackages' : ActorMethod< [string], Array<[PackageName, PackageVersion]> >, 'getDownloadTrendByPackageId' : ActorMethod< [PackageId], Array >, 'getDownloadTrendByPackageName' : ActorMethod< [PackageName], Array >, 'getFileHashes' : ActorMethod<[PackageName, PackageVersion], Result_8>, 'getFileHashesByPackageIds' : ActorMethod< [Array], Array<[PackageId, Array<[FileId, Uint8Array]>]> >, 'getFileHashesQuery' : ActorMethod<[PackageName, PackageVersion], Result_8>, 'getFileIds' : ActorMethod<[PackageName, PackageVersion], Result_7>, 'getHighestSemverBatch' : ActorMethod< [Array<[PackageName, PackageVersion, SemverPart]>], Result_6 >, 'getHighestVersion' : ActorMethod<[PackageName], Result_5>, 'getMemoryStats' : ActorMethod<[], MemoryStats>, 'getMostDownloadedPackages' : ActorMethod<[], Array>, 'getMostDownloadedPackagesIn7Days' : ActorMethod<[], Array>, 'getNewPackages' : ActorMethod<[], Array>, 'getPackageDependents' : ActorMethod< [PackageName, bigint, bigint], [Array, bigint] >, 'getPackageDetails' : ActorMethod<[PackageName, PackageVersion], Result_4>, 'getPackageMaintainers' : ActorMethod<[PackageName], Array>, 'getPackageOwners' : ActorMethod<[PackageName], Array>, 'getPackageVersionHistory' : ActorMethod< [PackageName], Array >, 'getPackagesByCategory' : ActorMethod< [], Array<[string, Array]> >, 'getRecentlyUpdatedPackages' : ActorMethod< [], Array >, 'getStoragesStats' : ActorMethod<[], Array<[StorageId, StorageStats]>>, 'getTotalDownloads' : ActorMethod<[], bigint>, 'getTotalPackages' : ActorMethod<[], bigint>, 'getUser' : ActorMethod<[Principal], [] | [User]>, 'http_request' : ActorMethod<[Request], Response>, 'notifyInstall' : ActorMethod<[PackageName, PackageVersion], undefined>, 'notifyInstalls' : ActorMethod< [Array<[PackageName, PackageVersion]>], undefined >, 'removeMaintainer' : ActorMethod<[PackageName, Principal], Result_3>, 'removeOwner' : ActorMethod<[PackageName, Principal], Result_3>, 'restore' : ActorMethod<[bigint], undefined>, 'search' : ActorMethod< [Text, [] | [bigint], [] | [bigint]], [Array, PageCount] >, 'setStorageControllers' : ActorMethod<[], undefined>, 'setTelegramBotToken' : ActorMethod<[string], undefined>, 'setUserProp' : ActorMethod<[string, string], Result_3>, 'startFileUpload' : ActorMethod< [PublishingId, Text, bigint, Uint8Array], Result_2 >, 'startPublish' : ActorMethod<[PackageConfigV3_Publishing], Result_1>, 'takeSnapshotsIfNeeded' : ActorMethod<[], undefined>, 'transformTelegramRequest' : ActorMethod<[TransformArg], HttpRequestResult>, 'uploadBenchmarks' : ActorMethod<[PublishingId, Benchmarks], Result>, 'uploadDocsCoverage' : ActorMethod<[PublishingId, number], Result>, 'uploadFileChunk' : ActorMethod< [PublishingId, FileId, bigint, Uint8Array], Result >, 'uploadNotes' : ActorMethod<[PublishingId, string], Result>, 'uploadTestStats' : ActorMethod<[PublishingId, TestStats], Result>, } export interface MemoryStats { 'maintainersByPackage' : StructureStats, 'packageConfigs' : StructureStats, 'fileIdsByPackage' : StructureStats, 'weeklyTempRecords' : StructureStats, 'packageNotes' : StructureStats, 'weeklySnapshotsByPackageId' : StructureStats, 'storageByFileId' : StructureStats, 'dailySnapshotsByPackageName' : StructureStats, 'ownersByPackage' : StructureStats, 'rtsHeapSize' : bigint, 'weeklySnapshots' : StructureStats, 'packageDocsCoverage' : StructureStats, 'packageVersions' : StructureStats, 'packageBenchmarks' : StructureStats, 'dailySnapshotsByPackageId' : StructureStats, 'weeklySnapshotsByPackageName' : StructureStats, 'names' : StructureStats, 'dailyTempRecords' : StructureStats, 'packageTestStats' : StructureStats, 'downloadsByPackageName' : StructureStats, 'rtsMemorySize' : bigint, 'users' : StructureStats, 'dailySnapshots' : StructureStats, 'hashByFileId' : StructureStats, 'packagePublications' : StructureStats, 'storages' : StructureStats, 'packageFileStats' : StructureStats, 'downloadsByPackageId' : StructureStats, 'highestConfigs' : StructureStats, } export interface PackageChanges { 'tests' : TestsChanges, 'deps' : Array, 'curBenchmarks' : Benchmarks, 'prevDocsCoverage' : number, 'prevBenchmarks' : Benchmarks, 'notes' : string, 'curDocsCoverage' : number, 'devDeps' : Array, } export interface PackageConfigV3 { 'dfx' : string, 'moc' : string, 'scripts' : Array