ic-mops 0.40.0 → 0.41.1

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