ic-mops 1.11.0 → 1.12.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.
Files changed (79) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/api/actors.ts +2 -2
  3. package/api/downloadPackageFiles.ts +1 -1
  4. package/bun.lock +234 -198
  5. package/bundle/bench/bench-canister.mo +101 -109
  6. package/bundle/bench/user-bench.mo +6 -10
  7. package/bundle/cli.js +960 -889
  8. package/bundle/cli.tgz +0 -0
  9. package/bundle/declarations/bench/bench.did +3 -3
  10. package/bundle/declarations/bench/bench.did.d.ts +3 -3
  11. package/bundle/declarations/bench/index.d.ts +3 -3
  12. package/bundle/declarations/bench/index.js +1 -1
  13. package/bundle/declarations/main/index.d.ts +3 -3
  14. package/bundle/declarations/main/index.js +1 -1
  15. package/bundle/declarations/main/main.did +78 -121
  16. package/bundle/declarations/main/main.did.d.ts +48 -98
  17. package/bundle/declarations/main/main.did.js +53 -107
  18. package/bundle/declarations/storage/index.d.ts +3 -3
  19. package/bundle/declarations/storage/index.js +4 -4
  20. package/bundle/declarations/storage/storage.did.d.ts +3 -3
  21. package/bundle/package.json +1 -1
  22. package/bundle/templates/src/lib.mo +13 -13
  23. package/bundle/templates/test/lib.test.mo +2 -2
  24. package/commands/add.ts +1 -1
  25. package/commands/available-updates.ts +20 -7
  26. package/commands/bench-replica.ts +21 -9
  27. package/commands/maintainer.ts +1 -1
  28. package/commands/outdated.ts +8 -1
  29. package/commands/owner.ts +1 -1
  30. package/commands/replica.ts +31 -18
  31. package/commands/test/test.ts +37 -97
  32. package/commands/test/utils.ts +75 -1
  33. package/commands/update.ts +19 -2
  34. package/declarations/bench/bench.did.d.ts +3 -3
  35. package/declarations/bench/index.d.ts +3 -3
  36. package/declarations/bench/index.js +1 -1
  37. package/declarations/main/index.d.ts +3 -3
  38. package/declarations/main/index.js +1 -1
  39. package/declarations/main/main.did.d.ts +3 -3
  40. package/declarations/storage/index.d.ts +3 -3
  41. package/declarations/storage/index.js +4 -4
  42. package/declarations/storage/storage.did.d.ts +3 -3
  43. package/dist/api/actors.d.ts +2 -2
  44. package/dist/api/actors.js +1 -1
  45. package/dist/api/downloadPackageFiles.d.ts +1 -1
  46. package/dist/api/downloadPackageFiles.js +1 -1
  47. package/dist/commands/add.js +1 -1
  48. package/dist/commands/available-updates.js +19 -7
  49. package/dist/commands/bench-replica.d.ts +3 -2
  50. package/dist/commands/bench-replica.js +17 -6
  51. package/dist/commands/maintainer.js +1 -1
  52. package/dist/commands/outdated.js +7 -1
  53. package/dist/commands/owner.js +1 -1
  54. package/dist/commands/replica.d.ts +4 -3
  55. package/dist/commands/replica.js +25 -13
  56. package/dist/commands/test/test.js +29 -81
  57. package/dist/commands/test/utils.d.ts +6 -0
  58. package/dist/commands/test/utils.js +61 -0
  59. package/dist/commands/update.js +16 -2
  60. package/dist/declarations/bench/bench.did.d.ts +3 -3
  61. package/dist/declarations/bench/index.d.ts +3 -3
  62. package/dist/declarations/bench/index.js +1 -1
  63. package/dist/declarations/main/index.d.ts +3 -3
  64. package/dist/declarations/main/index.js +1 -1
  65. package/dist/declarations/main/main.did.d.ts +3 -3
  66. package/dist/declarations/storage/index.d.ts +3 -3
  67. package/dist/declarations/storage/index.js +4 -4
  68. package/dist/declarations/storage/storage.did.d.ts +3 -3
  69. package/dist/helpers/get-dep-name.d.ts +1 -0
  70. package/dist/helpers/get-dep-name.js +3 -0
  71. package/dist/mops.d.ts +1 -1
  72. package/dist/package.json +5 -15
  73. package/dist/pem.d.ts +2 -2
  74. package/dist/pem.js +2 -2
  75. package/helpers/get-dep-name.ts +4 -0
  76. package/mops.ts +1 -1
  77. package/package.json +5 -15
  78. package/pem.ts +2 -2
  79. package/tsconfig.json +2 -2
package/bundle/cli.tgz CHANGED
Binary file
@@ -3,9 +3,9 @@ type _anon_class_13_1 =
3
3
  getSchema: () -> (BenchSchema) query;
4
4
  getStats: () -> (BenchResult) query;
5
5
  init: () -> (BenchSchema);
6
- runCellQuery: (nat, nat) -> (BenchResult) query;
7
- runCellUpdate: (nat, nat) -> (BenchResult);
8
- runCellUpdateAwait: (nat, nat) -> (BenchResult);
6
+ runCellQuery: (rowIndex: nat, colIndex: nat) -> (BenchResult) query;
7
+ runCellUpdate: (rowIndex: nat, colIndex: nat) -> (BenchResult);
8
+ runCellUpdateAwait: (rowIndex: nat, colIndex: nat) -> (BenchResult);
9
9
  };
10
10
  type BenchSchema =
11
11
  record {
@@ -1,6 +1,6 @@
1
- import type { Principal } from '@dfinity/principal';
2
- import type { ActorMethod } from '@dfinity/agent';
3
- import type { IDL } from '@dfinity/candid';
1
+ import type { Principal } from '@icp-sdk/core/principal';
2
+ import type { ActorMethod } from '@icp-sdk/core/agent';
3
+ import type { IDL } from '@icp-sdk/core/candid';
4
4
 
5
5
  export interface BenchResult {
6
6
  'rts_stable_memory_size' : bigint,
@@ -3,9 +3,9 @@ import type {
3
3
  HttpAgentOptions,
4
4
  ActorConfig,
5
5
  Agent,
6
- } from "@dfinity/agent";
7
- import type { Principal } from "@dfinity/principal";
8
- import type { IDL } from "@dfinity/candid";
6
+ } from "@icp-sdk/core/agent";
7
+ import type { Principal } from "@icp-sdk/core/principal";
8
+ import type { IDL } from "@icp-sdk/core/candid";
9
9
 
10
10
  import { _SERVICE } from './bench.did';
11
11
 
@@ -1,4 +1,4 @@
1
- import { Actor, HttpAgent } from "@dfinity/agent";
1
+ import { Actor, HttpAgent } from "@icp-sdk/core/agent";
2
2
 
3
3
  // Imports and re-exports candid interface
4
4
  import { idlFactory } from "./bench.did.js";
@@ -3,9 +3,9 @@ import type {
3
3
  HttpAgentOptions,
4
4
  ActorConfig,
5
5
  Agent,
6
- } from "@dfinity/agent";
7
- import type { Principal } from "@dfinity/principal";
8
- import type { IDL } from "@dfinity/candid";
6
+ } from "@icp-sdk/core/agent";
7
+ import type { Principal } from "@icp-sdk/core/principal";
8
+ import type { IDL } from "@icp-sdk/core/candid";
9
9
 
10
10
  import { _SERVICE } from './main.did';
11
11
 
@@ -1,4 +1,4 @@
1
- import { Actor, HttpAgent } from "@dfinity/agent";
1
+ import { Actor, HttpAgent } from "@icp-sdk/core/agent";
2
2
 
3
3
  // Imports and re-exports candid interface
4
4
  import { idlFactory } from "./main.did.js";
@@ -1,4 +1,4 @@
1
- type User__1 =
1
+ type User =
2
2
  record {
3
3
  displayName: text;
4
4
  email: text;
@@ -11,18 +11,10 @@ type User__1 =
11
11
  twitter: text;
12
12
  twitterVerified: bool;
13
13
  };
14
- type User =
14
+ type TransformArg =
15
15
  record {
16
- displayName: text;
17
- email: text;
18
- emailVerified: bool;
19
- github: text;
20
- githubVerified: bool;
21
- id: principal;
22
- name: text;
23
- site: text;
24
- twitter: text;
25
- twitterVerified: bool;
16
+ context: blob;
17
+ response: HttpRequestResult;
26
18
  };
27
19
  type Time = int;
28
20
  type Text = text;
@@ -31,11 +23,6 @@ type TestsChanges =
31
23
  addedNames: vec text;
32
24
  removedNames: vec text;
33
25
  };
34
- type TestStats__1 =
35
- record {
36
- passed: nat;
37
- passedNames: vec text;
38
- };
39
26
  type TestStats =
40
27
  record {
41
28
  passed: nat;
@@ -90,14 +77,14 @@ type Result_6 =
90
77
  variant {
91
78
  err: Err;
92
79
  ok: vec record {
93
- PackageName__1;
94
- PackageVersion__1;
80
+ PackageName;
81
+ PackageVersion;
95
82
  };
96
83
  };
97
84
  type Result_5 =
98
85
  variant {
99
86
  err: Err;
100
- ok: PackageVersion__1;
87
+ ok: PackageVersion;
101
88
  };
102
89
  type Result_4 =
103
90
  variant {
@@ -147,41 +134,7 @@ type Request =
147
134
  };
148
135
  type PublishingId = text;
149
136
  type PageCount = nat;
150
- type PackageVersion__1 = text;
151
137
  type PackageVersion = text;
152
- type PackageSummary__1 =
153
- record {
154
- config: PackageConfigV3;
155
- depAlias: text;
156
- downloadsInLast30Days: nat;
157
- downloadsInLast7Days: nat;
158
- downloadsTotal: nat;
159
- highestVersion: PackageVersion;
160
- maintainers: vec User;
161
- owner: principal;
162
- ownerInfo: User;
163
- owners: vec User;
164
- publication: PackagePublication;
165
- publisher: User;
166
- quality: PackageQuality;
167
- };
168
- type PackageSummaryWithChanges__1 =
169
- record {
170
- changes: PackageChanges;
171
- config: PackageConfigV3;
172
- depAlias: text;
173
- downloadsInLast30Days: nat;
174
- downloadsInLast7Days: nat;
175
- downloadsTotal: nat;
176
- highestVersion: PackageVersion;
177
- maintainers: vec User;
178
- owner: principal;
179
- ownerInfo: User;
180
- owners: vec User;
181
- publication: PackagePublication;
182
- publisher: User;
183
- quality: PackageQuality;
184
- };
185
138
  type PackageSummaryWithChanges =
186
139
  record {
187
140
  changes: PackageChanges;
@@ -233,7 +186,6 @@ type PackagePublication =
233
186
  time: Time;
234
187
  user: principal;
235
188
  };
236
- type PackageName__1 = text;
237
189
  type PackageName = text;
238
190
  type PackageId = text;
239
191
  type PackageFileStatsPublic =
@@ -243,13 +195,14 @@ type PackageFileStatsPublic =
243
195
  };
244
196
  type PackageDetails =
245
197
  record {
246
- benchmarks: Benchmarks__1;
198
+ benchmarks: Benchmarks;
247
199
  changes: PackageChanges;
248
200
  config: PackageConfigV3;
249
201
  depAlias: text;
250
- dependents: vec PackageSummary__1;
251
- deps: vec PackageSummary__1;
252
- devDeps: vec PackageSummary__1;
202
+ dependents: vec PackageSummary;
203
+ dependentsCount: nat;
204
+ deps: vec PackageSummary;
205
+ devDeps: vec PackageSummary;
253
206
  docsCoverage: float64;
254
207
  downloadTrend: vec DownloadsSnapshot;
255
208
  downloadsInLast30Days: nat;
@@ -264,8 +217,9 @@ type PackageDetails =
264
217
  publication: PackagePublication;
265
218
  publisher: User;
266
219
  quality: PackageQuality;
267
- testStats: TestStats__1;
268
- versionHistory: vec PackageSummaryWithChanges__1;
220
+ testStats: TestStats;
221
+ versionHistory: vec PackageSummaryWithChanges;
222
+ versions: vec PackageVersion;
269
223
  };
270
224
  type PackageConfigV3_Publishing =
271
225
  record {
@@ -309,35 +263,36 @@ type PackageConfigV3 =
309
263
  };
310
264
  type PackageChanges =
311
265
  record {
312
- curBenchmarks: Benchmarks__1;
266
+ curBenchmarks: Benchmarks;
313
267
  curDocsCoverage: float64;
314
268
  deps: vec DepChange;
315
269
  devDeps: vec DepChange;
316
270
  notes: text;
317
- prevBenchmarks: Benchmarks__1;
271
+ prevBenchmarks: Benchmarks;
318
272
  prevDocsCoverage: float64;
319
273
  tests: TestsChanges;
320
274
  };
321
275
  type Main =
322
276
  service {
323
- addMaintainer: (PackageName__1, principal) -> (Result_3);
324
- addOwner: (PackageName__1, principal) -> (Result_3);
277
+ addMaintainer: (packageName: PackageName, newMaintainer: principal) ->
278
+ (Result_3);
279
+ addOwner: (packageName: PackageName, newOwner: principal) -> (Result_3);
325
280
  backup: () -> ();
326
281
  computeHashesForExistingFiles: () -> ();
327
- finishPublish: (PublishingId) -> (Result);
282
+ finishPublish: (publishingId: PublishingId) -> (Result);
328
283
  getApiVersion: () -> (Text) query;
329
284
  getBackupCanisterId: () -> (principal) query;
330
- getDefaultPackages: (text) ->
285
+ getDefaultPackages: (dfxVersion: text) ->
331
286
  (vec record {
332
- PackageName__1;
333
- PackageVersion__1;
287
+ PackageName;
288
+ PackageVersion;
334
289
  }) query;
335
- getDownloadTrendByPackageId: (PackageId) ->
336
- (vec DownloadsSnapshot__1) query;
337
- getDownloadTrendByPackageName: (PackageName__1) ->
338
- (vec DownloadsSnapshot__1) query;
339
- getFileHashes: (PackageName__1, PackageVersion__1) -> (Result_8);
340
- getFileHashesByPackageIds: (vec PackageId) ->
290
+ getDownloadTrendByPackageId: (packageId: PackageId) ->
291
+ (vec DownloadsSnapshot) query;
292
+ getDownloadTrendByPackageName: (name: PackageName) ->
293
+ (vec DownloadsSnapshot) query;
294
+ getFileHashes: (name: PackageName, version: PackageVersion) -> (Result_8);
295
+ getFileHashesByPackageIds: (packageIds: vec PackageId) ->
341
296
  (vec record {
342
297
  PackageId;
343
298
  vec record {
@@ -345,22 +300,28 @@ type Main =
345
300
  blob;
346
301
  };
347
302
  });
348
- getFileHashesQuery: (PackageName__1, PackageVersion__1) ->
303
+ getFileHashesQuery: (name: PackageName, version: PackageVersion) ->
349
304
  (Result_8) query;
350
- getFileIds: (PackageName__1, PackageVersion__1) -> (Result_7) query;
351
- getHighestSemverBatch:
352
- (vec record {
353
- PackageName__1;
354
- PackageVersion__1;
355
- SemverPart;
356
- }) -> (Result_6) query;
357
- getHighestVersion: (PackageName__1) -> (Result_5) query;
305
+ getFileIds: (name: PackageName, version: PackageVersion) ->
306
+ (Result_7) query;
307
+ getHighestSemverBatch: (list:
308
+ vec record {
309
+ PackageName;
310
+ PackageVersion;
311
+ SemverPart;
312
+ }) -> (Result_6) query;
313
+ getHighestVersion: (name: PackageName) -> (Result_5) query;
358
314
  getMostDownloadedPackages: () -> (vec PackageSummary) query;
359
315
  getMostDownloadedPackagesIn7Days: () -> (vec PackageSummary) query;
360
316
  getNewPackages: () -> (vec PackageSummary) query;
361
- getPackageDetails: (PackageName__1, PackageVersion__1) -> (Result_4) query;
362
- getPackageMaintainers: (PackageName__1) -> (vec principal) query;
363
- getPackageOwners: (PackageName__1) -> (vec principal) query;
317
+ getPackageDependents: (name: PackageName, limit: nat, offset: nat) ->
318
+ (vec PackageSummary, nat) query;
319
+ getPackageDetails: (name: PackageName, version: PackageVersion) ->
320
+ (Result_4) query;
321
+ getPackageMaintainers: (packageName: PackageName) -> (vec principal) query;
322
+ getPackageOwners: (packageName: PackageName) -> (vec principal) query;
323
+ getPackageVersionHistory: (name: PackageName) ->
324
+ (vec PackageSummaryWithChanges) query;
364
325
  getPackagesByCategory: () -> (vec record {
365
326
  text;
366
327
  vec PackageSummary;
@@ -372,34 +333,37 @@ type Main =
372
333
  }) query;
373
334
  getTotalDownloads: () -> (nat) query;
374
335
  getTotalPackages: () -> (nat) query;
375
- getUser: (principal) -> (opt User__1) query;
376
- http_request: (Request) -> (Response) query;
377
- notifyInstall: (PackageName__1, PackageVersion__1) -> () oneway;
378
- notifyInstalls: (vec record {
379
- PackageName__1;
380
- PackageVersion__1;
381
- }) -> () oneway;
382
- removeMaintainer: (PackageName__1, principal) -> (Result_3);
383
- removeOwner: (PackageName__1, principal) -> (Result_3);
384
- restore: (nat) -> ();
385
- search: (Text, opt nat, opt nat) -> (vec PackageSummary, PageCount) query;
336
+ getUser: (userId: principal) -> (opt User) query;
337
+ http_request: (request: Request) -> (Response) query;
338
+ notifyInstall: (name: PackageName, version: PackageVersion) -> () oneway;
339
+ notifyInstalls: (installs: vec record {
340
+ PackageName;
341
+ PackageVersion;
342
+ }) -> () oneway;
343
+ removeMaintainer: (packageName: PackageName, maintainer: principal) ->
344
+ (Result_3);
345
+ removeOwner: (packageName: PackageName, owner: principal) -> (Result_3);
346
+ restore: (backupId: nat) -> ();
347
+ search: (searchText: Text, limitOpt: opt nat, pageIndexOpt: opt nat) ->
348
+ (vec PackageSummary, PageCount) query;
386
349
  setStorageControllers: () -> ();
387
- setUserProp: (text, text) -> (Result_3);
388
- startFileUpload: (PublishingId, Text, nat, blob) -> (Result_2);
389
- startPublish: (PackageConfigV3_Publishing) -> (Result_1);
390
- transformRequest: (HttpTransformArg) -> (HttpResponse) query;
391
- uploadBenchmarks: (PublishingId, Benchmarks) -> (Result);
392
- uploadDocsCoverage: (PublishingId, float64) -> (Result);
393
- uploadFileChunk: (PublishingId, FileId, nat, blob) -> (Result);
394
- uploadNotes: (PublishingId, text) -> (Result);
395
- uploadTestStats: (PublishingId, TestStats) -> (Result);
396
- };
397
- type HttpTransformArg =
398
- record {
399
- context: blob;
400
- response: HttpResponse;
401
- };
402
- type HttpResponse =
350
+ setUserProp: (prop: text, value: text) -> (Result_3);
351
+ startFileUpload: (publishingId: PublishingId, path: Text, chunkCount:
352
+ nat, firstChunk: blob) -> (Result_2);
353
+ startPublish: (configPub: PackageConfigV3_Publishing) -> (Result_1);
354
+ takeSnapshotsIfNeeded: () -> ();
355
+ transformRequest: (arg: TransformArg) -> (HttpRequestResult) query;
356
+ uploadBenchmarks: (publishingId: PublishingId, benchmarks: Benchmarks) ->
357
+ (Result);
358
+ uploadDocsCoverage: (publishingId: PublishingId, docsCoverage: float64) ->
359
+ (Result);
360
+ uploadFileChunk: (publishingId: PublishingId, fileId: FileId, chunkIndex:
361
+ nat, chunk: blob) -> (Result);
362
+ uploadNotes: (publishingId: PublishingId, notes: text) -> (Result);
363
+ uploadTestStats: (publishingId: PublishingId, testStats: TestStats) ->
364
+ (Result);
365
+ };
366
+ type HttpRequestResult =
403
367
  record {
404
368
  body: blob;
405
369
  headers: vec HttpHeader;
@@ -417,12 +381,6 @@ type Header =
417
381
  };
418
382
  type FileId = text;
419
383
  type Err = text;
420
- type DownloadsSnapshot__1 =
421
- record {
422
- downloads: nat;
423
- endTime: Time;
424
- startTime: Time;
425
- };
426
384
  type DownloadsSnapshot =
427
385
  record {
428
386
  downloads: nat;
@@ -447,7 +405,6 @@ type DepChange =
447
405
  newVersion: text;
448
406
  oldVersion: text;
449
407
  };
450
- type Benchmarks__1 = vec Benchmark;
451
408
  type Benchmarks = vec Benchmark;
452
409
  type BenchmarkMetric = text;
453
410
  type Benchmark =
@@ -1,6 +1,6 @@
1
- import type { Principal } from '@dfinity/principal';
2
- import type { ActorMethod } from '@dfinity/agent';
3
- import type { IDL } from '@dfinity/candid';
1
+ import type { Principal } from '@icp-sdk/core/principal';
2
+ import type { ActorMethod } from '@icp-sdk/core/agent';
3
+ import type { IDL } from '@icp-sdk/core/candid';
4
4
 
5
5
  export interface Benchmark {
6
6
  'gc' : string,
@@ -18,7 +18,6 @@ export interface Benchmark {
18
18
  }
19
19
  export type BenchmarkMetric = string;
20
20
  export type Benchmarks = Array<Benchmark>;
21
- export type Benchmarks__1 = Array<Benchmark>;
22
21
  export interface DepChange {
23
22
  'oldVersion' : string,
24
23
  'name' : string,
@@ -37,27 +36,18 @@ export interface DownloadsSnapshot {
37
36
  'endTime' : Time,
38
37
  'downloads' : bigint,
39
38
  }
40
- export interface DownloadsSnapshot__1 {
41
- 'startTime' : Time,
42
- 'endTime' : Time,
43
- 'downloads' : bigint,
44
- }
45
39
  export type Err = string;
46
40
  export type FileId = string;
47
41
  export type Header = [string, string];
48
42
  export interface HttpHeader { 'value' : string, 'name' : string }
49
- export interface HttpResponse {
43
+ export interface HttpRequestResult {
50
44
  'status' : bigint,
51
45
  'body' : Uint8Array | number[],
52
46
  'headers' : Array<HttpHeader>,
53
47
  }
54
- export interface HttpTransformArg {
55
- 'context' : Uint8Array | number[],
56
- 'response' : HttpResponse,
57
- }
58
48
  export interface Main {
59
- 'addMaintainer' : ActorMethod<[PackageName__1, Principal], Result_3>,
60
- 'addOwner' : ActorMethod<[PackageName__1, Principal], Result_3>,
49
+ 'addMaintainer' : ActorMethod<[PackageName, Principal], Result_3>,
50
+ 'addOwner' : ActorMethod<[PackageName, Principal], Result_3>,
61
51
  'backup' : ActorMethod<[], undefined>,
62
52
  'computeHashesForExistingFiles' : ActorMethod<[], undefined>,
63
53
  'finishPublish' : ActorMethod<[PublishingId], Result>,
@@ -65,40 +55,42 @@ export interface Main {
65
55
  'getBackupCanisterId' : ActorMethod<[], Principal>,
66
56
  'getDefaultPackages' : ActorMethod<
67
57
  [string],
68
- Array<[PackageName__1, PackageVersion__1]>
58
+ Array<[PackageName, PackageVersion]>
69
59
  >,
70
60
  'getDownloadTrendByPackageId' : ActorMethod<
71
61
  [PackageId],
72
- Array<DownloadsSnapshot__1>
62
+ Array<DownloadsSnapshot>
73
63
  >,
74
64
  'getDownloadTrendByPackageName' : ActorMethod<
75
- [PackageName__1],
76
- Array<DownloadsSnapshot__1>
65
+ [PackageName],
66
+ Array<DownloadsSnapshot>
77
67
  >,
78
- 'getFileHashes' : ActorMethod<[PackageName__1, PackageVersion__1], Result_8>,
68
+ 'getFileHashes' : ActorMethod<[PackageName, PackageVersion], Result_8>,
79
69
  'getFileHashesByPackageIds' : ActorMethod<
80
70
  [Array<PackageId>],
81
71
  Array<[PackageId, Array<[FileId, Uint8Array | number[]]>]>
82
72
  >,
83
- 'getFileHashesQuery' : ActorMethod<
84
- [PackageName__1, PackageVersion__1],
85
- Result_8
86
- >,
87
- 'getFileIds' : ActorMethod<[PackageName__1, PackageVersion__1], Result_7>,
73
+ 'getFileHashesQuery' : ActorMethod<[PackageName, PackageVersion], Result_8>,
74
+ 'getFileIds' : ActorMethod<[PackageName, PackageVersion], Result_7>,
88
75
  'getHighestSemverBatch' : ActorMethod<
89
- [Array<[PackageName__1, PackageVersion__1, SemverPart]>],
76
+ [Array<[PackageName, PackageVersion, SemverPart]>],
90
77
  Result_6
91
78
  >,
92
- 'getHighestVersion' : ActorMethod<[PackageName__1], Result_5>,
79
+ 'getHighestVersion' : ActorMethod<[PackageName], Result_5>,
93
80
  'getMostDownloadedPackages' : ActorMethod<[], Array<PackageSummary>>,
94
81
  'getMostDownloadedPackagesIn7Days' : ActorMethod<[], Array<PackageSummary>>,
95
82
  'getNewPackages' : ActorMethod<[], Array<PackageSummary>>,
96
- 'getPackageDetails' : ActorMethod<
97
- [PackageName__1, PackageVersion__1],
98
- Result_4
83
+ 'getPackageDependents' : ActorMethod<
84
+ [PackageName, bigint, bigint],
85
+ [Array<PackageSummary>, bigint]
86
+ >,
87
+ 'getPackageDetails' : ActorMethod<[PackageName, PackageVersion], Result_4>,
88
+ 'getPackageMaintainers' : ActorMethod<[PackageName], Array<Principal>>,
89
+ 'getPackageOwners' : ActorMethod<[PackageName], Array<Principal>>,
90
+ 'getPackageVersionHistory' : ActorMethod<
91
+ [PackageName],
92
+ Array<PackageSummaryWithChanges>
99
93
  >,
100
- 'getPackageMaintainers' : ActorMethod<[PackageName__1], Array<Principal>>,
101
- 'getPackageOwners' : ActorMethod<[PackageName__1], Array<Principal>>,
102
94
  'getPackagesByCategory' : ActorMethod<
103
95
  [],
104
96
  Array<[string, Array<PackageSummary>]>
@@ -110,15 +102,15 @@ export interface Main {
110
102
  'getStoragesStats' : ActorMethod<[], Array<[StorageId, StorageStats]>>,
111
103
  'getTotalDownloads' : ActorMethod<[], bigint>,
112
104
  'getTotalPackages' : ActorMethod<[], bigint>,
113
- 'getUser' : ActorMethod<[Principal], [] | [User__1]>,
105
+ 'getUser' : ActorMethod<[Principal], [] | [User]>,
114
106
  'http_request' : ActorMethod<[Request], Response>,
115
- 'notifyInstall' : ActorMethod<[PackageName__1, PackageVersion__1], undefined>,
107
+ 'notifyInstall' : ActorMethod<[PackageName, PackageVersion], undefined>,
116
108
  'notifyInstalls' : ActorMethod<
117
- [Array<[PackageName__1, PackageVersion__1]>],
109
+ [Array<[PackageName, PackageVersion]>],
118
110
  undefined
119
111
  >,
120
- 'removeMaintainer' : ActorMethod<[PackageName__1, Principal], Result_3>,
121
- 'removeOwner' : ActorMethod<[PackageName__1, Principal], Result_3>,
112
+ 'removeMaintainer' : ActorMethod<[PackageName, Principal], Result_3>,
113
+ 'removeOwner' : ActorMethod<[PackageName, Principal], Result_3>,
122
114
  'restore' : ActorMethod<[bigint], undefined>,
123
115
  'search' : ActorMethod<
124
116
  [Text, [] | [bigint], [] | [bigint]],
@@ -131,7 +123,8 @@ export interface Main {
131
123
  Result_2
132
124
  >,
133
125
  'startPublish' : ActorMethod<[PackageConfigV3_Publishing], Result_1>,
134
- 'transformRequest' : ActorMethod<[HttpTransformArg], HttpResponse>,
126
+ 'takeSnapshotsIfNeeded' : ActorMethod<[], undefined>,
127
+ 'transformRequest' : ActorMethod<[TransformArg], HttpRequestResult>,
135
128
  'uploadBenchmarks' : ActorMethod<[PublishingId, Benchmarks], Result>,
136
129
  'uploadDocsCoverage' : ActorMethod<[PublishingId, number], Result>,
137
130
  'uploadFileChunk' : ActorMethod<
@@ -144,9 +137,9 @@ export interface Main {
144
137
  export interface PackageChanges {
145
138
  'tests' : TestsChanges,
146
139
  'deps' : Array<DepChange>,
147
- 'curBenchmarks' : Benchmarks__1,
140
+ 'curBenchmarks' : Benchmarks,
148
141
  'prevDocsCoverage' : number,
149
- 'prevBenchmarks' : Benchmarks__1,
142
+ 'prevBenchmarks' : Benchmarks,
150
143
  'notes' : string,
151
144
  'curDocsCoverage' : number,
152
145
  'devDeps' : Array<DepChange>,
@@ -190,28 +183,30 @@ export interface PackageConfigV3_Publishing {
190
183
  'readme' : string,
191
184
  }
192
185
  export interface PackageDetails {
193
- 'benchmarks' : Benchmarks__1,
186
+ 'benchmarks' : Benchmarks,
194
187
  'ownerInfo' : User,
195
188
  'owners' : Array<User>,
196
189
  'maintainers' : Array<User>,
197
190
  'owner' : Principal,
198
191
  'depAlias' : string,
199
- 'deps' : Array<PackageSummary__1>,
192
+ 'deps' : Array<PackageSummary>,
200
193
  'quality' : PackageQuality,
201
194
  'publisher' : User,
202
- 'testStats' : TestStats__1,
195
+ 'testStats' : TestStats,
203
196
  'docsCoverage' : number,
204
197
  'highestVersion' : PackageVersion,
205
198
  'downloadsTotal' : bigint,
206
199
  'downloadsInLast30Days' : bigint,
200
+ 'dependentsCount' : bigint,
207
201
  'downloadTrend' : Array<DownloadsSnapshot>,
208
202
  'fileStats' : PackageFileStatsPublic,
209
- 'versionHistory' : Array<PackageSummaryWithChanges__1>,
210
- 'dependents' : Array<PackageSummary__1>,
211
- 'devDeps' : Array<PackageSummary__1>,
203
+ 'versionHistory' : Array<PackageSummaryWithChanges>,
204
+ 'dependents' : Array<PackageSummary>,
205
+ 'devDeps' : Array<PackageSummary>,
212
206
  'downloadsInLast7Days' : bigint,
213
207
  'config' : PackageConfigV3,
214
208
  'changes' : PackageChanges,
209
+ 'versions' : Array<PackageVersion>,
215
210
  'publication' : PackagePublication,
216
211
  }
217
212
  export interface PackageFileStatsPublic {
@@ -220,7 +215,6 @@ export interface PackageFileStatsPublic {
220
215
  }
221
216
  export type PackageId = string;
222
217
  export type PackageName = string;
223
- export type PackageName__1 = string;
224
218
  export interface PackagePublication {
225
219
  'storage' : Principal,
226
220
  'time' : Time,
@@ -268,39 +262,7 @@ export interface PackageSummaryWithChanges {
268
262
  'changes' : PackageChanges,
269
263
  'publication' : PackagePublication,
270
264
  }
271
- export interface PackageSummaryWithChanges__1 {
272
- 'ownerInfo' : User,
273
- 'owners' : Array<User>,
274
- 'maintainers' : Array<User>,
275
- 'owner' : Principal,
276
- 'depAlias' : string,
277
- 'quality' : PackageQuality,
278
- 'publisher' : User,
279
- 'highestVersion' : PackageVersion,
280
- 'downloadsTotal' : bigint,
281
- 'downloadsInLast30Days' : bigint,
282
- 'downloadsInLast7Days' : bigint,
283
- 'config' : PackageConfigV3,
284
- 'changes' : PackageChanges,
285
- 'publication' : PackagePublication,
286
- }
287
- export interface PackageSummary__1 {
288
- 'ownerInfo' : User,
289
- 'owners' : Array<User>,
290
- 'maintainers' : Array<User>,
291
- 'owner' : Principal,
292
- 'depAlias' : string,
293
- 'quality' : PackageQuality,
294
- 'publisher' : User,
295
- 'highestVersion' : PackageVersion,
296
- 'downloadsTotal' : bigint,
297
- 'downloadsInLast30Days' : bigint,
298
- 'downloadsInLast7Days' : bigint,
299
- 'config' : PackageConfigV3,
300
- 'publication' : PackagePublication,
301
- }
302
265
  export type PackageVersion = string;
303
- export type PackageVersion__1 = string;
304
266
  export type PageCount = bigint;
305
267
  export type PublishingId = string;
306
268
  export interface Request {
@@ -328,9 +290,9 @@ export type Result_3 = { 'ok' : null } |
328
290
  { 'err' : string };
329
291
  export type Result_4 = { 'ok' : PackageDetails } |
330
292
  { 'err' : Err };
331
- export type Result_5 = { 'ok' : PackageVersion__1 } |
293
+ export type Result_5 = { 'ok' : PackageVersion } |
332
294
  { 'err' : Err };
333
- export type Result_6 = { 'ok' : Array<[PackageName__1, PackageVersion__1]> } |
295
+ export type Result_6 = { 'ok' : Array<[PackageName, PackageVersion]> } |
334
296
  { 'err' : Err };
335
297
  export type Result_7 = { 'ok' : Array<FileId> } |
336
298
  { 'err' : Err };
@@ -359,29 +321,17 @@ export type StreamingStrategy = {
359
321
  };
360
322
  export type StreamingToken = Uint8Array | number[];
361
323
  export interface TestStats { 'passedNames' : Array<string>, 'passed' : bigint }
362
- export interface TestStats__1 {
363
- 'passedNames' : Array<string>,
364
- 'passed' : bigint,
365
- }
366
324
  export interface TestsChanges {
367
325
  'addedNames' : Array<string>,
368
326
  'removedNames' : Array<string>,
369
327
  }
370
328
  export type Text = string;
371
329
  export type Time = bigint;
372
- export interface User {
373
- 'id' : Principal,
374
- 'emailVerified' : boolean,
375
- 'twitter' : string,
376
- 'displayName' : string,
377
- 'name' : string,
378
- 'site' : string,
379
- 'email' : string,
380
- 'twitterVerified' : boolean,
381
- 'githubVerified' : boolean,
382
- 'github' : string,
330
+ export interface TransformArg {
331
+ 'context' : Uint8Array | number[],
332
+ 'response' : HttpRequestResult,
383
333
  }
384
- export interface User__1 {
334
+ export interface User {
385
335
  'id' : Principal,
386
336
  'emailVerified' : boolean,
387
337
  'twitter' : string,