ic-mops 0.40.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.DS_Store +0 -0
- package/.npmrc +2 -1
- package/CHANGELOG.md +8 -0
- package/DEVELOPMENT.md +25 -0
- package/bundle/bench/bench-canister.mo +87 -0
- package/bundle/bench/user-bench.mo +14 -0
- package/bundle/bin/moc-wrapper.sh +3 -0
- package/bundle/bin/mops.js +3 -0
- package/bundle/cli.js +88 -0
- package/bundle/cli.tgz +0 -0
- package/bundle/declarations/bench/bench.did +26 -0
- package/bundle/declarations/bench/bench.did.d.ts +29 -0
- package/bundle/declarations/bench/bench.did.js +26 -0
- package/bundle/declarations/bench/index.d.ts +50 -0
- package/bundle/declarations/bench/index.js +41 -0
- package/bundle/declarations/main/index.d.ts +50 -0
- package/bundle/declarations/main/index.js +41 -0
- package/bundle/declarations/main/main.did +426 -0
- package/bundle/declarations/main/main.did.d.ts +352 -0
- package/bundle/declarations/main/main.did.js +404 -0
- package/bundle/declarations/storage/index.d.ts +50 -0
- package/bundle/declarations/storage/index.js +30 -0
- package/bundle/declarations/storage/storage.did +46 -0
- package/bundle/declarations/storage/storage.did.d.ts +37 -0
- package/bundle/declarations/storage/storage.did.js +38 -0
- package/bundle/package.json +31 -0
- package/bundle/templates/README.md +13 -0
- package/bundle/templates/licenses/Apache-2.0 +202 -0
- package/bundle/templates/licenses/Apache-2.0-NOTICE +13 -0
- package/bundle/templates/licenses/MIT +21 -0
- package/bundle/templates/mops-publish.yml +17 -0
- package/bundle/templates/mops-test.yml +22 -0
- package/bundle/templates/src/lib.mo +15 -0
- package/bundle/templates/test/lib.test.mo +4 -0
- package/bundle-package-json.ts +14 -0
- package/cli.ts +22 -19
- package/commands/add.ts +0 -0
- package/commands/install-all.ts +0 -0
- package/commands/publish.ts +1 -27
- package/commands/self.ts +75 -0
- package/commands/template.ts +9 -10
- package/commands/toolchain/index.ts +0 -0
- package/dist/api/actors.d.ts +0 -0
- package/dist/api/actors.js +0 -0
- package/dist/api/downloadPackageFiles.d.ts +0 -0
- package/dist/api/downloadPackageFiles.js +0 -0
- package/dist/api/getHighestVersion.d.ts +0 -0
- package/dist/api/getHighestVersion.js +0 -0
- package/dist/api/index.d.ts +0 -0
- package/dist/api/index.js +0 -0
- package/dist/api/network.d.ts +0 -0
- package/dist/api/network.js +0 -0
- package/dist/api/resolveVersion.d.ts +0 -0
- package/dist/api/resolveVersion.js +0 -0
- package/dist/bin/mops.d.ts +1 -1
- package/dist/bin/mops.js +2 -1
- package/dist/bundle-package-json.d.ts +0 -0
- package/dist/bundle-package-json.js +0 -0
- package/dist/cache.d.ts +0 -0
- package/dist/cache.js +0 -0
- package/dist/check-requirements.d.ts +3 -0
- package/dist/check-requirements.js +39 -0
- package/dist/cli.d.ts +0 -0
- package/dist/cli.js +18 -18
- package/dist/commands/add.d.ts +0 -0
- package/dist/commands/add.js +0 -0
- package/dist/commands/available-updates.d.ts +0 -0
- package/dist/commands/available-updates.js +0 -0
- package/dist/commands/bench-replica.d.ts +0 -0
- package/dist/commands/bench-replica.js +0 -0
- package/dist/commands/bench.d.ts +0 -0
- package/dist/commands/bench.js +0 -0
- package/dist/commands/bump.d.ts +0 -0
- package/dist/commands/bump.js +0 -0
- package/dist/commands/docs.d.ts +0 -0
- package/dist/commands/docs.js +0 -0
- package/dist/commands/import-identity.d.ts +0 -0
- package/dist/commands/import-identity.js +0 -0
- package/dist/commands/init.d.ts +0 -0
- package/dist/commands/init.js +0 -0
- package/dist/commands/install-all.d.ts +0 -0
- package/dist/commands/install-all.js +0 -0
- package/dist/commands/install-local.d.ts +0 -0
- package/dist/commands/install-local.js +0 -0
- package/dist/commands/install.d.ts +0 -0
- package/dist/commands/install.js +0 -0
- package/dist/commands/outdated.d.ts +0 -0
- package/dist/commands/outdated.js +0 -0
- package/dist/commands/publish.d.ts +0 -0
- package/dist/commands/publish.js +1 -24
- package/dist/commands/remove.d.ts +0 -0
- package/dist/commands/remove.js +0 -0
- package/dist/commands/search.d.ts +0 -0
- package/dist/commands/search.js +0 -0
- package/dist/commands/self.js +1 -1
- package/dist/commands/sources.d.ts +0 -0
- package/dist/commands/sources.js +0 -0
- package/dist/commands/sync.d.ts +0 -0
- package/dist/commands/sync.js +0 -0
- package/dist/commands/template.d.ts +0 -0
- package/dist/commands/template.js +9 -10
- package/dist/commands/test/mmf1.d.ts +0 -0
- package/dist/commands/test/mmf1.js +0 -0
- package/dist/commands/test/reporters/compact-reporter.d.ts +0 -0
- package/dist/commands/test/reporters/compact-reporter.js +0 -0
- package/dist/commands/test/reporters/files-reporter.d.ts +0 -0
- package/dist/commands/test/reporters/files-reporter.js +0 -0
- package/dist/commands/test/reporters/reporter.d.ts +0 -0
- package/dist/commands/test/reporters/reporter.js +0 -0
- package/dist/commands/test/reporters/silent-reporter.d.ts +0 -0
- package/dist/commands/test/reporters/silent-reporter.js +0 -0
- package/dist/commands/test/reporters/verbose-reporter.d.ts +0 -0
- package/dist/commands/test/reporters/verbose-reporter.js +0 -0
- package/dist/commands/test/test.d.ts +0 -0
- package/dist/commands/test/test.js +0 -0
- package/dist/commands/test/utils.d.ts +0 -0
- package/dist/commands/test/utils.js +0 -0
- package/dist/commands/toolchain/index.d.ts +0 -0
- package/dist/commands/toolchain/index.js +0 -0
- package/dist/commands/toolchain/moc.d.ts +0 -0
- package/dist/commands/toolchain/moc.js +0 -0
- package/dist/commands/toolchain/pocket-ic.d.ts +0 -0
- package/dist/commands/toolchain/pocket-ic.js +0 -0
- package/dist/commands/toolchain/toolchain-utils.d.ts +0 -0
- package/dist/commands/toolchain/toolchain-utils.js +0 -0
- package/dist/commands/toolchain/wasmtime.d.ts +0 -0
- package/dist/commands/toolchain/wasmtime.js +0 -0
- package/dist/commands/transfer-ownership.d.ts +0 -0
- package/dist/commands/transfer-ownership.js +0 -0
- package/dist/commands/update.d.ts +0 -0
- package/dist/commands/update.js +0 -0
- package/dist/commands/user.d.ts +0 -0
- package/dist/commands/user.js +0 -0
- package/dist/commands/whoami.d.ts +0 -0
- package/dist/commands/whoami.js +0 -0
- package/dist/declarations/bench/bench.did +0 -0
- package/dist/declarations/bench/bench.did.d.ts +0 -0
- package/dist/declarations/bench/bench.did.js +0 -0
- package/dist/declarations/bench/index.d.ts +0 -0
- package/dist/declarations/bench/index.js +0 -0
- package/dist/declarations/main/index.d.ts +0 -0
- package/dist/declarations/main/index.js +0 -0
- package/dist/declarations/main/main.did +0 -0
- package/dist/declarations/main/main.did.d.ts +0 -0
- package/dist/declarations/main/main.did.js +0 -0
- package/dist/helpers/find-changelog-entry.d.ts +0 -0
- package/dist/helpers/find-changelog-entry.js +0 -0
- package/dist/helpers/get-dfx-version.d.ts +0 -0
- package/dist/helpers/get-dfx-version.js +0 -0
- package/dist/helpers/get-moc-path.d.ts +0 -0
- package/dist/helpers/get-moc-path.js +0 -0
- package/dist/helpers/get-moc-version.d.ts +0 -0
- package/dist/helpers/get-moc-version.js +0 -0
- package/dist/integrity.d.ts +0 -0
- package/dist/integrity.js +0 -0
- package/dist/mops.d.ts +1 -0
- package/dist/mops.js +4 -0
- package/dist/notify-installs.d.ts +0 -0
- package/dist/notify-installs.js +0 -0
- package/dist/package.json +20 -26
- package/dist/parallel.d.ts +0 -0
- package/dist/parallel.js +0 -0
- package/dist/pem.d.ts +0 -0
- package/dist/pem.js +0 -0
- package/dist/release-cli.d.ts +0 -0
- package/dist/release-cli.js +9 -7
- package/dist/resolve-packages.d.ts +0 -0
- package/dist/resolve-packages.js +0 -0
- package/dist/templates.d.ts +1 -0
- package/dist/templates.js +4 -0
- package/dist/types.d.ts +0 -0
- package/dist/types.js +0 -0
- package/dist/vessel.d.ts +0 -0
- package/dist/vessel.js +0 -0
- package/helpers/find-changelog-entry.ts +27 -0
- package/mops.ts +5 -0
- package/package.json +28 -19
- package/release-cli.ts +62 -0
- package/remove-scripts.ts +6 -0
- package/templates.ts +5 -0
- package/tsconfig.json +1 -1
- package/types.ts +0 -0
- package/commands/self-update.ts +0 -6
- package/dist/commands/self-update.d.ts +0 -3
- package/dist/commands/self-update.js +0 -5
- /package/bin/{mops.ts → mops.js} +0 -0
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import type { Principal } from '@dfinity/principal';
|
|
2
|
+
import type { ActorMethod } from '@dfinity/agent';
|
|
3
|
+
import type { IDL } from '@dfinity/candid';
|
|
4
|
+
|
|
5
|
+
export interface Benchmark {
|
|
6
|
+
'gc' : string,
|
|
7
|
+
'metrics' : Array<[BenchmarkMetric, Array<Array<bigint>>]>,
|
|
8
|
+
'cols' : Array<string>,
|
|
9
|
+
'file' : string,
|
|
10
|
+
'name' : string,
|
|
11
|
+
'rows' : Array<string>,
|
|
12
|
+
'description' : string,
|
|
13
|
+
'compilerVersion' : string,
|
|
14
|
+
'compiler' : string,
|
|
15
|
+
'replica' : string,
|
|
16
|
+
'replicaVersion' : string,
|
|
17
|
+
'forceGC' : boolean,
|
|
18
|
+
}
|
|
19
|
+
export type BenchmarkMetric = string;
|
|
20
|
+
export type Benchmarks = Array<Benchmark>;
|
|
21
|
+
export type Benchmarks__1 = Array<Benchmark>;
|
|
22
|
+
export interface DepChange {
|
|
23
|
+
'oldVersion' : string,
|
|
24
|
+
'name' : string,
|
|
25
|
+
'newVersion' : string,
|
|
26
|
+
}
|
|
27
|
+
export interface DependencyV2 {
|
|
28
|
+
'name' : PackageName__1,
|
|
29
|
+
'repo' : string,
|
|
30
|
+
'version' : string,
|
|
31
|
+
}
|
|
32
|
+
export type DepsStatus = { 'allLatest' : null } |
|
|
33
|
+
{ 'tooOld' : null } |
|
|
34
|
+
{ 'updatesAvailable' : null };
|
|
35
|
+
export interface DownloadsSnapshot {
|
|
36
|
+
'startTime' : Time,
|
|
37
|
+
'endTime' : Time,
|
|
38
|
+
'downloads' : bigint,
|
|
39
|
+
}
|
|
40
|
+
export interface DownloadsSnapshot__1 {
|
|
41
|
+
'startTime' : Time,
|
|
42
|
+
'endTime' : Time,
|
|
43
|
+
'downloads' : bigint,
|
|
44
|
+
}
|
|
45
|
+
export type Err = string;
|
|
46
|
+
export type FileId = string;
|
|
47
|
+
export type Header = [string, string];
|
|
48
|
+
export interface HttpHeader { 'value' : string, 'name' : string }
|
|
49
|
+
export interface HttpResponse {
|
|
50
|
+
'status' : bigint,
|
|
51
|
+
'body' : Uint8Array | number[],
|
|
52
|
+
'headers' : Array<HttpHeader>,
|
|
53
|
+
}
|
|
54
|
+
export interface HttpTransformArg {
|
|
55
|
+
'context' : Uint8Array | number[],
|
|
56
|
+
'response' : HttpResponse,
|
|
57
|
+
}
|
|
58
|
+
export interface Main {
|
|
59
|
+
'backup' : ActorMethod<[], undefined>,
|
|
60
|
+
'computeHashesForExistingFiles' : ActorMethod<[], undefined>,
|
|
61
|
+
'finishPublish' : ActorMethod<[PublishingId], Result>,
|
|
62
|
+
'getApiVersion' : ActorMethod<[], Text>,
|
|
63
|
+
'getBackupCanisterId' : ActorMethod<[], Principal>,
|
|
64
|
+
'getDefaultPackages' : ActorMethod<
|
|
65
|
+
[string],
|
|
66
|
+
Array<[PackageName, PackageVersion]>
|
|
67
|
+
>,
|
|
68
|
+
'getDownloadTrendByPackageId' : ActorMethod<
|
|
69
|
+
[PackageId],
|
|
70
|
+
Array<DownloadsSnapshot__1>
|
|
71
|
+
>,
|
|
72
|
+
'getDownloadTrendByPackageName' : ActorMethod<
|
|
73
|
+
[PackageName],
|
|
74
|
+
Array<DownloadsSnapshot__1>
|
|
75
|
+
>,
|
|
76
|
+
'getFileHashes' : ActorMethod<[PackageName, PackageVersion], Result_8>,
|
|
77
|
+
'getFileHashesByPackageIds' : ActorMethod<
|
|
78
|
+
[Array<PackageId>],
|
|
79
|
+
Array<[PackageId, Array<[FileId, Uint8Array | number[]]>]>
|
|
80
|
+
>,
|
|
81
|
+
'getFileHashesQuery' : ActorMethod<[PackageName, PackageVersion], Result_8>,
|
|
82
|
+
'getFileIds' : ActorMethod<[PackageName, PackageVersion], Result_7>,
|
|
83
|
+
'getHighestSemverBatch' : ActorMethod<
|
|
84
|
+
[Array<[PackageName, PackageVersion, SemverPart]>],
|
|
85
|
+
Result_6
|
|
86
|
+
>,
|
|
87
|
+
'getHighestVersion' : ActorMethod<[PackageName], Result_5>,
|
|
88
|
+
'getMostDownloadedPackages' : ActorMethod<[], Array<PackageSummary>>,
|
|
89
|
+
'getMostDownloadedPackagesIn7Days' : ActorMethod<[], Array<PackageSummary>>,
|
|
90
|
+
'getNewPackages' : ActorMethod<[], Array<PackageSummary>>,
|
|
91
|
+
'getPackageDetails' : ActorMethod<[PackageName, PackageVersion], Result_4>,
|
|
92
|
+
'getPackagesByCategory' : ActorMethod<
|
|
93
|
+
[],
|
|
94
|
+
Array<[string, Array<PackageSummary>]>
|
|
95
|
+
>,
|
|
96
|
+
'getRecentlyUpdatedPackages' : ActorMethod<
|
|
97
|
+
[],
|
|
98
|
+
Array<PackageSummaryWithChanges>
|
|
99
|
+
>,
|
|
100
|
+
'getStoragesStats' : ActorMethod<[], Array<[StorageId, StorageStats]>>,
|
|
101
|
+
'getTotalDownloads' : ActorMethod<[], bigint>,
|
|
102
|
+
'getTotalPackages' : ActorMethod<[], bigint>,
|
|
103
|
+
'getUser' : ActorMethod<[Principal], [] | [User__1]>,
|
|
104
|
+
'http_request' : ActorMethod<[Request], Response>,
|
|
105
|
+
'notifyInstall' : ActorMethod<[PackageName, PackageVersion], undefined>,
|
|
106
|
+
'notifyInstalls' : ActorMethod<
|
|
107
|
+
[Array<[PackageName, PackageVersion]>],
|
|
108
|
+
undefined
|
|
109
|
+
>,
|
|
110
|
+
'restore' : ActorMethod<[bigint], undefined>,
|
|
111
|
+
'search' : ActorMethod<
|
|
112
|
+
[Text, [] | [bigint], [] | [bigint]],
|
|
113
|
+
[Array<PackageSummary>, PageCount]
|
|
114
|
+
>,
|
|
115
|
+
'setUserProp' : ActorMethod<[string, string], Result_1>,
|
|
116
|
+
'startFileUpload' : ActorMethod<
|
|
117
|
+
[PublishingId, Text, bigint, Uint8Array | number[]],
|
|
118
|
+
Result_3
|
|
119
|
+
>,
|
|
120
|
+
'startPublish' : ActorMethod<[PackageConfigV2], Result_2>,
|
|
121
|
+
'transferOwnership' : ActorMethod<[PackageName, Principal], Result_1>,
|
|
122
|
+
'transformRequest' : ActorMethod<[HttpTransformArg], HttpResponse>,
|
|
123
|
+
'uploadBenchmarks' : ActorMethod<[PublishingId, Benchmarks], Result>,
|
|
124
|
+
'uploadFileChunk' : ActorMethod<
|
|
125
|
+
[PublishingId, FileId, bigint, Uint8Array | number[]],
|
|
126
|
+
Result
|
|
127
|
+
>,
|
|
128
|
+
'uploadNotes' : ActorMethod<[PublishingId, string], Result>,
|
|
129
|
+
'uploadTestStats' : ActorMethod<[PublishingId, TestStats], Result>,
|
|
130
|
+
}
|
|
131
|
+
export interface PackageChanges {
|
|
132
|
+
'tests' : TestsChanges,
|
|
133
|
+
'deps' : Array<DepChange>,
|
|
134
|
+
'curBenchmarks' : Benchmarks__1,
|
|
135
|
+
'prevBenchmarks' : Benchmarks__1,
|
|
136
|
+
'notes' : string,
|
|
137
|
+
'devDeps' : Array<DepChange>,
|
|
138
|
+
}
|
|
139
|
+
export interface PackageConfigV2 {
|
|
140
|
+
'dfx' : string,
|
|
141
|
+
'moc' : string,
|
|
142
|
+
'scripts' : Array<Script>,
|
|
143
|
+
'baseDir' : string,
|
|
144
|
+
'documentation' : string,
|
|
145
|
+
'name' : PackageName__1,
|
|
146
|
+
'homepage' : string,
|
|
147
|
+
'description' : string,
|
|
148
|
+
'version' : string,
|
|
149
|
+
'keywords' : Array<string>,
|
|
150
|
+
'donation' : string,
|
|
151
|
+
'devDependencies' : Array<DependencyV2>,
|
|
152
|
+
'repository' : string,
|
|
153
|
+
'dependencies' : Array<DependencyV2>,
|
|
154
|
+
'license' : string,
|
|
155
|
+
'readme' : string,
|
|
156
|
+
}
|
|
157
|
+
export interface PackageConfigV2__1 {
|
|
158
|
+
'dfx' : string,
|
|
159
|
+
'moc' : string,
|
|
160
|
+
'scripts' : Array<Script>,
|
|
161
|
+
'baseDir' : string,
|
|
162
|
+
'documentation' : string,
|
|
163
|
+
'name' : PackageName__1,
|
|
164
|
+
'homepage' : string,
|
|
165
|
+
'description' : string,
|
|
166
|
+
'version' : string,
|
|
167
|
+
'keywords' : Array<string>,
|
|
168
|
+
'donation' : string,
|
|
169
|
+
'devDependencies' : Array<DependencyV2>,
|
|
170
|
+
'repository' : string,
|
|
171
|
+
'dependencies' : Array<DependencyV2>,
|
|
172
|
+
'license' : string,
|
|
173
|
+
'readme' : string,
|
|
174
|
+
}
|
|
175
|
+
export interface PackageDetails {
|
|
176
|
+
'benchmarks' : Benchmarks__1,
|
|
177
|
+
'ownerInfo' : User,
|
|
178
|
+
'owner' : Principal,
|
|
179
|
+
'deps' : Array<PackageSummary__1>,
|
|
180
|
+
'quality' : PackageQuality,
|
|
181
|
+
'testStats' : TestStats__1,
|
|
182
|
+
'downloadsTotal' : bigint,
|
|
183
|
+
'downloadsInLast30Days' : bigint,
|
|
184
|
+
'downloadTrend' : Array<DownloadsSnapshot>,
|
|
185
|
+
'fileStats' : PackageFileStatsPublic,
|
|
186
|
+
'versionHistory' : Array<PackageSummaryWithChanges__1>,
|
|
187
|
+
'dependents' : Array<PackageSummary__1>,
|
|
188
|
+
'devDeps' : Array<PackageSummary__1>,
|
|
189
|
+
'downloadsInLast7Days' : bigint,
|
|
190
|
+
'config' : PackageConfigV2__1,
|
|
191
|
+
'changes' : PackageChanges,
|
|
192
|
+
'publication' : PackagePublication,
|
|
193
|
+
}
|
|
194
|
+
export interface PackageFileStatsPublic {
|
|
195
|
+
'sourceFiles' : bigint,
|
|
196
|
+
'sourceSize' : bigint,
|
|
197
|
+
}
|
|
198
|
+
export type PackageId = string;
|
|
199
|
+
export type PackageName = string;
|
|
200
|
+
export type PackageName__1 = string;
|
|
201
|
+
export interface PackagePublication {
|
|
202
|
+
'storage' : Principal,
|
|
203
|
+
'time' : Time,
|
|
204
|
+
'user' : Principal,
|
|
205
|
+
}
|
|
206
|
+
export interface PackageQuality {
|
|
207
|
+
'depsStatus' : DepsStatus,
|
|
208
|
+
'hasDescription' : boolean,
|
|
209
|
+
'hasKeywords' : boolean,
|
|
210
|
+
'hasLicense' : boolean,
|
|
211
|
+
'hasDocumentation' : boolean,
|
|
212
|
+
'hasTests' : boolean,
|
|
213
|
+
'hasRepository' : boolean,
|
|
214
|
+
'hasReleaseNotes' : boolean,
|
|
215
|
+
}
|
|
216
|
+
export interface PackageSummary {
|
|
217
|
+
'ownerInfo' : User,
|
|
218
|
+
'owner' : Principal,
|
|
219
|
+
'quality' : PackageQuality,
|
|
220
|
+
'downloadsTotal' : bigint,
|
|
221
|
+
'downloadsInLast30Days' : bigint,
|
|
222
|
+
'downloadsInLast7Days' : bigint,
|
|
223
|
+
'config' : PackageConfigV2__1,
|
|
224
|
+
'publication' : PackagePublication,
|
|
225
|
+
}
|
|
226
|
+
export interface PackageSummaryWithChanges {
|
|
227
|
+
'ownerInfo' : User,
|
|
228
|
+
'owner' : Principal,
|
|
229
|
+
'quality' : PackageQuality,
|
|
230
|
+
'downloadsTotal' : bigint,
|
|
231
|
+
'downloadsInLast30Days' : bigint,
|
|
232
|
+
'downloadsInLast7Days' : bigint,
|
|
233
|
+
'config' : PackageConfigV2__1,
|
|
234
|
+
'changes' : PackageChanges,
|
|
235
|
+
'publication' : PackagePublication,
|
|
236
|
+
}
|
|
237
|
+
export interface PackageSummaryWithChanges__1 {
|
|
238
|
+
'ownerInfo' : User,
|
|
239
|
+
'owner' : Principal,
|
|
240
|
+
'quality' : PackageQuality,
|
|
241
|
+
'downloadsTotal' : bigint,
|
|
242
|
+
'downloadsInLast30Days' : bigint,
|
|
243
|
+
'downloadsInLast7Days' : bigint,
|
|
244
|
+
'config' : PackageConfigV2__1,
|
|
245
|
+
'changes' : PackageChanges,
|
|
246
|
+
'publication' : PackagePublication,
|
|
247
|
+
}
|
|
248
|
+
export interface PackageSummary__1 {
|
|
249
|
+
'ownerInfo' : User,
|
|
250
|
+
'owner' : Principal,
|
|
251
|
+
'quality' : PackageQuality,
|
|
252
|
+
'downloadsTotal' : bigint,
|
|
253
|
+
'downloadsInLast30Days' : bigint,
|
|
254
|
+
'downloadsInLast7Days' : bigint,
|
|
255
|
+
'config' : PackageConfigV2__1,
|
|
256
|
+
'publication' : PackagePublication,
|
|
257
|
+
}
|
|
258
|
+
export type PackageVersion = string;
|
|
259
|
+
export type PageCount = bigint;
|
|
260
|
+
export type PublishingId = string;
|
|
261
|
+
export interface Request {
|
|
262
|
+
'url' : string,
|
|
263
|
+
'method' : string,
|
|
264
|
+
'body' : Uint8Array | number[],
|
|
265
|
+
'headers' : Array<Header>,
|
|
266
|
+
'certificate_version' : [] | [number],
|
|
267
|
+
}
|
|
268
|
+
export interface Response {
|
|
269
|
+
'body' : Uint8Array | number[],
|
|
270
|
+
'headers' : Array<Header>,
|
|
271
|
+
'upgrade' : [] | [boolean],
|
|
272
|
+
'streaming_strategy' : [] | [StreamingStrategy],
|
|
273
|
+
'status_code' : number,
|
|
274
|
+
}
|
|
275
|
+
export type Result = { 'ok' : null } |
|
|
276
|
+
{ 'err' : Err };
|
|
277
|
+
export type Result_1 = { 'ok' : null } |
|
|
278
|
+
{ 'err' : string };
|
|
279
|
+
export type Result_2 = { 'ok' : PublishingId } |
|
|
280
|
+
{ 'err' : Err };
|
|
281
|
+
export type Result_3 = { 'ok' : FileId } |
|
|
282
|
+
{ 'err' : Err };
|
|
283
|
+
export type Result_4 = { 'ok' : PackageDetails } |
|
|
284
|
+
{ 'err' : Err };
|
|
285
|
+
export type Result_5 = { 'ok' : PackageVersion } |
|
|
286
|
+
{ 'err' : Err };
|
|
287
|
+
export type Result_6 = { 'ok' : Array<[PackageName, PackageVersion]> } |
|
|
288
|
+
{ 'err' : Err };
|
|
289
|
+
export type Result_7 = { 'ok' : Array<FileId> } |
|
|
290
|
+
{ 'err' : Err };
|
|
291
|
+
export type Result_8 = { 'ok' : Array<[FileId, Uint8Array | number[]]> } |
|
|
292
|
+
{ 'err' : Err };
|
|
293
|
+
export interface Script { 'value' : string, 'name' : string }
|
|
294
|
+
export type SemverPart = { 'major' : null } |
|
|
295
|
+
{ 'minor' : null } |
|
|
296
|
+
{ 'patch' : null };
|
|
297
|
+
export type StorageId = Principal;
|
|
298
|
+
export interface StorageStats {
|
|
299
|
+
'fileCount' : bigint,
|
|
300
|
+
'cyclesBalance' : bigint,
|
|
301
|
+
'memorySize' : bigint,
|
|
302
|
+
}
|
|
303
|
+
export type StreamingCallback = ActorMethod<
|
|
304
|
+
[StreamingToken],
|
|
305
|
+
[] | [StreamingCallbackResponse]
|
|
306
|
+
>;
|
|
307
|
+
export interface StreamingCallbackResponse {
|
|
308
|
+
'token' : [] | [StreamingToken],
|
|
309
|
+
'body' : Uint8Array | number[],
|
|
310
|
+
}
|
|
311
|
+
export type StreamingStrategy = {
|
|
312
|
+
'Callback' : { 'token' : StreamingToken, 'callback' : StreamingCallback }
|
|
313
|
+
};
|
|
314
|
+
export type StreamingToken = Uint8Array | number[];
|
|
315
|
+
export interface TestStats { 'passedNames' : Array<string>, 'passed' : bigint }
|
|
316
|
+
export interface TestStats__1 {
|
|
317
|
+
'passedNames' : Array<string>,
|
|
318
|
+
'passed' : bigint,
|
|
319
|
+
}
|
|
320
|
+
export interface TestsChanges {
|
|
321
|
+
'addedNames' : Array<string>,
|
|
322
|
+
'removedNames' : Array<string>,
|
|
323
|
+
}
|
|
324
|
+
export type Text = string;
|
|
325
|
+
export type Time = bigint;
|
|
326
|
+
export interface User {
|
|
327
|
+
'id' : Principal,
|
|
328
|
+
'emailVerified' : boolean,
|
|
329
|
+
'twitter' : string,
|
|
330
|
+
'displayName' : string,
|
|
331
|
+
'name' : string,
|
|
332
|
+
'site' : string,
|
|
333
|
+
'email' : string,
|
|
334
|
+
'twitterVerified' : boolean,
|
|
335
|
+
'githubVerified' : boolean,
|
|
336
|
+
'github' : string,
|
|
337
|
+
}
|
|
338
|
+
export interface User__1 {
|
|
339
|
+
'id' : Principal,
|
|
340
|
+
'emailVerified' : boolean,
|
|
341
|
+
'twitter' : string,
|
|
342
|
+
'displayName' : string,
|
|
343
|
+
'name' : string,
|
|
344
|
+
'site' : string,
|
|
345
|
+
'email' : string,
|
|
346
|
+
'twitterVerified' : boolean,
|
|
347
|
+
'githubVerified' : boolean,
|
|
348
|
+
'github' : string,
|
|
349
|
+
}
|
|
350
|
+
export interface _SERVICE extends Main {}
|
|
351
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
352
|
+
export declare const init: ({ IDL }: { IDL: IDL }) => IDL.Type[];
|