@push.rocks/smartregistry 1.1.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 (52) hide show
  1. package/dist_ts/00_commitinfo_data.d.ts +8 -0
  2. package/dist_ts/00_commitinfo_data.js +9 -0
  3. package/dist_ts/classes.smartregistry.d.ts +45 -0
  4. package/dist_ts/classes.smartregistry.js +113 -0
  5. package/dist_ts/core/classes.authmanager.d.ts +108 -0
  6. package/dist_ts/core/classes.authmanager.js +315 -0
  7. package/dist_ts/core/classes.baseregistry.d.ts +28 -0
  8. package/dist_ts/core/classes.baseregistry.js +6 -0
  9. package/dist_ts/core/classes.registrystorage.d.ts +109 -0
  10. package/dist_ts/core/classes.registrystorage.js +226 -0
  11. package/dist_ts/core/index.d.ts +7 -0
  12. package/dist_ts/core/index.js +10 -0
  13. package/dist_ts/core/interfaces.core.d.ts +142 -0
  14. package/dist_ts/core/interfaces.core.js +5 -0
  15. package/dist_ts/index.d.ts +8 -0
  16. package/dist_ts/index.js +13 -0
  17. package/dist_ts/npm/classes.npmregistry.d.ts +36 -0
  18. package/dist_ts/npm/classes.npmregistry.js +717 -0
  19. package/dist_ts/npm/index.d.ts +5 -0
  20. package/dist_ts/npm/index.js +6 -0
  21. package/dist_ts/npm/interfaces.npm.d.ts +245 -0
  22. package/dist_ts/npm/interfaces.npm.js +6 -0
  23. package/dist_ts/oci/classes.ociregistry.d.ts +43 -0
  24. package/dist_ts/oci/classes.ociregistry.js +565 -0
  25. package/dist_ts/oci/index.d.ts +5 -0
  26. package/dist_ts/oci/index.js +6 -0
  27. package/dist_ts/oci/interfaces.oci.d.ts +103 -0
  28. package/dist_ts/oci/interfaces.oci.js +5 -0
  29. package/dist_ts/paths.d.ts +1 -0
  30. package/dist_ts/paths.js +3 -0
  31. package/dist_ts/plugins.d.ts +6 -0
  32. package/dist_ts/plugins.js +9 -0
  33. package/npmextra.json +18 -0
  34. package/package.json +49 -0
  35. package/readme.hints.md +3 -0
  36. package/readme.md +486 -0
  37. package/ts/00_commitinfo_data.ts +8 -0
  38. package/ts/classes.smartregistry.ts +129 -0
  39. package/ts/core/classes.authmanager.ts +388 -0
  40. package/ts/core/classes.baseregistry.ts +36 -0
  41. package/ts/core/classes.registrystorage.ts +270 -0
  42. package/ts/core/index.ts +11 -0
  43. package/ts/core/interfaces.core.ts +159 -0
  44. package/ts/index.ts +16 -0
  45. package/ts/npm/classes.npmregistry.ts +890 -0
  46. package/ts/npm/index.ts +6 -0
  47. package/ts/npm/interfaces.npm.ts +263 -0
  48. package/ts/oci/classes.ociregistry.ts +734 -0
  49. package/ts/oci/index.ts +6 -0
  50. package/ts/oci/interfaces.oci.ts +101 -0
  51. package/ts/paths.ts +5 -0
  52. package/ts/plugins.ts +11 -0
@@ -0,0 +1,6 @@
1
+ /**
2
+ * OCI Registry module exports
3
+ */
4
+
5
+ export { OciRegistry } from './classes.ociregistry.js';
6
+ export * from './interfaces.oci.js';
@@ -0,0 +1,101 @@
1
+ /**
2
+ * OCI Distribution Specification specific interfaces
3
+ */
4
+
5
+ /**
6
+ * OCI manifest structure
7
+ */
8
+ export interface IOciManifest {
9
+ schemaVersion: number;
10
+ mediaType: string;
11
+ config: {
12
+ mediaType: string;
13
+ size: number;
14
+ digest: string;
15
+ };
16
+ layers: Array<{
17
+ mediaType: string;
18
+ size: number;
19
+ digest: string;
20
+ urls?: string[];
21
+ }>;
22
+ subject?: {
23
+ mediaType: string;
24
+ size: number;
25
+ digest: string;
26
+ };
27
+ annotations?: { [key: string]: string };
28
+ }
29
+
30
+ /**
31
+ * OCI Image Index (manifest list)
32
+ */
33
+ export interface IOciImageIndex {
34
+ schemaVersion: number;
35
+ mediaType: string;
36
+ manifests: Array<{
37
+ mediaType: string;
38
+ size: number;
39
+ digest: string;
40
+ platform?: {
41
+ architecture: string;
42
+ os: string;
43
+ 'os.version'?: string;
44
+ 'os.features'?: string[];
45
+ variant?: string;
46
+ features?: string[];
47
+ };
48
+ annotations?: { [key: string]: string };
49
+ }>;
50
+ subject?: {
51
+ mediaType: string;
52
+ size: number;
53
+ digest: string;
54
+ };
55
+ annotations?: { [key: string]: string };
56
+ }
57
+
58
+ /**
59
+ * Upload session for chunked blob uploads
60
+ */
61
+ export interface IUploadSession {
62
+ uploadId: string;
63
+ repository: string;
64
+ chunks: Buffer[];
65
+ totalSize: number;
66
+ createdAt: Date;
67
+ lastActivity: Date;
68
+ }
69
+
70
+ /**
71
+ * Tag list response
72
+ */
73
+ export interface ITagList {
74
+ name: string;
75
+ tags: string[];
76
+ }
77
+
78
+ /**
79
+ * Referrers response
80
+ */
81
+ export interface IReferrersResponse {
82
+ schemaVersion: number;
83
+ mediaType: string;
84
+ manifests: Array<{
85
+ mediaType: string;
86
+ size: number;
87
+ digest: string;
88
+ artifactType?: string;
89
+ annotations?: { [key: string]: string };
90
+ }>;
91
+ }
92
+
93
+ /**
94
+ * Pagination options for listing
95
+ */
96
+ export interface IPaginationOptions {
97
+ /** Maximum number of results to return */
98
+ n?: number;
99
+ /** Last entry from previous request */
100
+ last?: string;
101
+ }
package/ts/paths.ts ADDED
@@ -0,0 +1,5 @@
1
+ import * as plugins from './plugins.js';
2
+ export const packageDir = plugins.path.join(
3
+ plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
4
+ '../',
5
+ );
package/ts/plugins.ts ADDED
@@ -0,0 +1,11 @@
1
+ // native scope
2
+ import * as path from 'path';
3
+
4
+ export { path };
5
+
6
+ // @push.rocks scope
7
+ import * as smartbucket from '@push.rocks/smartbucket';
8
+ import * as smartlog from '@push.rocks/smartlog';
9
+ import * as smartpath from '@push.rocks/smartpath';
10
+
11
+ export { smartbucket, smartlog, smartpath };