@harnessio/react-har-service-client 0.98.0 → 0.100.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 (127) hide show
  1. package/dist/har-service/src/services/hooks/useCreateRegistryV3Mutation.d.ts +24 -0
  2. package/dist/har-service/src/services/hooks/useCreateRegistryV3Mutation.js +15 -0
  3. package/dist/har-service/src/services/hooks/useEdgeAuthorizeV3Mutation.d.ts +19 -0
  4. package/dist/har-service/src/services/hooks/useEdgeAuthorizeV3Mutation.js +16 -0
  5. package/dist/har-service/src/services/hooks/useEdgeResolveV3Mutation.d.ts +19 -0
  6. package/dist/har-service/src/services/hooks/useEdgeResolveV3Mutation.js +16 -0
  7. package/dist/har-service/src/services/hooks/useGetRegistryV3Query.d.ts +24 -0
  8. package/dist/har-service/src/services/hooks/useGetRegistryV3Query.js +15 -0
  9. package/dist/har-service/src/services/hooks/useListNodeChildrenV3Query.d.ts +3 -2
  10. package/dist/har-service/src/services/hooks/useListNodeChildrenV3Query.js +3 -2
  11. package/dist/har-service/src/services/hooks/useListRegistryNodesV3Query.d.ts +2 -2
  12. package/dist/har-service/src/services/hooks/useListRegistryNodesV3Query.js +2 -2
  13. package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.d.ts +5 -9
  14. package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.js +4 -7
  15. package/dist/har-service/src/services/hooks/useRebuildRegistryIndexV3Mutation.d.ts +1 -1
  16. package/dist/har-service/src/services/hooks/useRebuildRegistryIndexV3Mutation.js +1 -1
  17. package/dist/har-service/src/services/hooks/useResolveTreePathV3Query.d.ts +48 -0
  18. package/dist/har-service/src/services/hooks/useResolveTreePathV3Query.js +28 -0
  19. package/dist/har-service/src/services/hooks/useSearchTreeV3Query.d.ts +52 -0
  20. package/dist/har-service/src/services/hooks/useSearchTreeV3Query.js +30 -0
  21. package/dist/har-service/src/services/hooks/useTriggerSemverBackfillV3Mutation.d.ts +19 -0
  22. package/dist/har-service/src/services/hooks/useTriggerSemverBackfillV3Mutation.js +17 -0
  23. package/dist/har-service/src/services/hooks/useUpsertAutoMetadataV3Mutation.d.ts +24 -0
  24. package/dist/har-service/src/services/hooks/useUpsertAutoMetadataV3Mutation.js +17 -0
  25. package/dist/har-service/src/services/index.d.ts +59 -0
  26. package/dist/har-service/src/services/index.js +8 -0
  27. package/dist/har-service/src/services/requestBodies/AutoMetadataRequestV3RequestBody.d.ts +2 -0
  28. package/dist/har-service/src/services/requestBodies/AutoMetadataRequestV3RequestBody.js +1 -0
  29. package/dist/har-service/src/services/requestBodies/RegistryCreateRequestV3RequestBody.d.ts +2 -0
  30. package/dist/har-service/src/services/requestBodies/RegistryCreateRequestV3RequestBody.js +1 -0
  31. package/dist/har-service/src/services/responses/RegistryResponseV3Response.d.ts +2 -0
  32. package/dist/har-service/src/services/responses/RegistryResponseV3Response.js +1 -0
  33. package/dist/har-service/src/services/responses/SearchTreeResponseV3Response.d.ts +2 -0
  34. package/dist/har-service/src/services/responses/SearchTreeResponseV3Response.js +1 -0
  35. package/dist/har-service/src/services/responses/TreeResolveResponseV3Response.d.ts +2 -0
  36. package/dist/har-service/src/services/responses/TreeResolveResponseV3Response.js +1 -0
  37. package/dist/har-service/src/services/schemas/AutoMetadataRequestInputV3.d.ts +38 -0
  38. package/dist/har-service/src/services/schemas/AutoMetadataRequestInputV3.js +1 -0
  39. package/dist/har-service/src/services/schemas/BackfillTriggerRequestInputV3.d.ts +7 -0
  40. package/dist/har-service/src/services/schemas/CleanupPolicyV3.d.ts +19 -0
  41. package/dist/har-service/src/services/schemas/CleanupPolicyV3.js +4 -0
  42. package/dist/har-service/src/services/schemas/DebianConfigV3.d.ts +14 -0
  43. package/dist/har-service/src/services/schemas/DebianConfigV3.js +4 -0
  44. package/dist/har-service/src/services/schemas/EdgeAuthorizeRequestV3.d.ts +9 -0
  45. package/dist/har-service/src/services/schemas/EdgeAuthorizeRequestV3.js +4 -0
  46. package/dist/har-service/src/services/schemas/EdgeAuthorizeResponseV3.d.ts +12 -0
  47. package/dist/har-service/src/services/schemas/EdgeAuthorizeResponseV3.js +1 -0
  48. package/dist/har-service/src/services/schemas/EdgeLocationV3.d.ts +5 -0
  49. package/dist/har-service/src/services/schemas/EdgeLocationV3.js +4 -0
  50. package/dist/har-service/src/services/schemas/EdgePrincipalV3.d.ts +4 -0
  51. package/dist/har-service/src/services/schemas/EdgePrincipalV3.js +4 -0
  52. package/dist/har-service/src/services/schemas/EdgeResolveRequestV3.d.ts +14 -0
  53. package/dist/har-service/src/services/schemas/EdgeResolveRequestV3.js +4 -0
  54. package/dist/har-service/src/services/schemas/EdgeResolveResponseV3.d.ts +28 -0
  55. package/dist/har-service/src/services/schemas/EdgeResolveResponseV3.js +1 -0
  56. package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.d.ts +4 -12
  57. package/dist/har-service/src/services/schemas/GenerateKeyRequestV3.js +0 -3
  58. package/dist/har-service/src/services/schemas/ImportKeyRequestV3.d.ts +2 -6
  59. package/dist/har-service/src/services/schemas/ImportKeyRequestV3.js +0 -3
  60. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigGenericV3.d.ts +2 -0
  61. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigGenericV3.js +0 -3
  62. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigMavenV3.d.ts +2 -0
  63. package/dist/har-service/src/services/schemas/LifecycleRuleFilterConfigMavenV3.js +0 -3
  64. package/dist/har-service/src/services/schemas/LifecycleRuleSemverOnlyV3.d.ts +5 -0
  65. package/dist/har-service/src/services/schemas/LifecycleRuleSemverOnlyV3.js +4 -0
  66. package/dist/har-service/src/services/schemas/RegistryConfigV3.d.ts +10 -0
  67. package/dist/har-service/src/services/schemas/RegistryConfigV3.js +1 -0
  68. package/dist/har-service/src/services/schemas/RegistryCreateBodyV3.d.ts +52 -0
  69. package/dist/har-service/src/services/schemas/RegistryCreateBodyV3.js +1 -0
  70. package/dist/har-service/src/services/schemas/RegistryDetailV3.d.ts +30 -0
  71. package/dist/har-service/src/services/schemas/RegistryDetailV3.js +1 -0
  72. package/dist/har-service/src/services/schemas/ScannerV3.d.ts +11 -0
  73. package/dist/har-service/src/services/schemas/ScannerV3.js +4 -0
  74. package/dist/har-service/src/services/schemas/SearchAncestorV3.d.ts +21 -0
  75. package/dist/har-service/src/services/schemas/SearchAncestorV3.js +4 -0
  76. package/dist/har-service/src/services/schemas/SearchFileItemV3.d.ts +63 -0
  77. package/dist/har-service/src/services/schemas/SearchFileItemV3.js +1 -0
  78. package/dist/har-service/src/services/schemas/SearchFilesGroupV3.d.ts +26 -0
  79. package/dist/har-service/src/services/schemas/SearchFilesGroupV3.js +1 -0
  80. package/dist/har-service/src/services/schemas/SearchPackageItemV3.d.ts +61 -0
  81. package/dist/har-service/src/services/schemas/SearchPackageItemV3.js +1 -0
  82. package/dist/har-service/src/services/schemas/SearchPackagesGroupV3.d.ts +26 -0
  83. package/dist/har-service/src/services/schemas/SearchPackagesGroupV3.js +1 -0
  84. package/dist/har-service/src/services/schemas/SearchRegistriesGroupV3.d.ts +26 -0
  85. package/dist/har-service/src/services/schemas/SearchRegistriesGroupV3.js +1 -0
  86. package/dist/har-service/src/services/schemas/SearchRegistryItemV3.d.ts +50 -0
  87. package/dist/har-service/src/services/schemas/SearchRegistryItemV3.js +1 -0
  88. package/dist/har-service/src/services/schemas/SearchTreeResponseBodyV3.d.ts +13 -0
  89. package/dist/har-service/src/services/schemas/SearchTreeResponseBodyV3.js +1 -0
  90. package/dist/har-service/src/services/schemas/SearchVersionItemV3.d.ts +86 -0
  91. package/dist/har-service/src/services/schemas/SearchVersionItemV3.js +1 -0
  92. package/dist/har-service/src/services/schemas/SearchVersionsGroupV3.d.ts +26 -0
  93. package/dist/har-service/src/services/schemas/SearchVersionsGroupV3.js +1 -0
  94. package/dist/har-service/src/services/schemas/SemverBackfillTriggerDataV3.d.ts +14 -0
  95. package/dist/har-service/src/services/schemas/SemverBackfillTriggerDataV3.js +4 -0
  96. package/dist/har-service/src/services/schemas/SigningConfigV3.d.ts +15 -0
  97. package/dist/har-service/src/services/schemas/SigningConfigV3.js +4 -0
  98. package/dist/har-service/src/services/schemas/SigningKeyTypeV3.d.ts +6 -0
  99. package/dist/har-service/src/services/schemas/SigningKeyTypeV3.js +4 -0
  100. package/dist/har-service/src/services/schemas/SigningKeyV3.d.ts +2 -6
  101. package/dist/har-service/src/services/schemas/TreeEntityKindV3.d.ts +7 -0
  102. package/dist/har-service/src/services/schemas/TreeEntityKindV3.js +4 -0
  103. package/dist/har-service/src/services/schemas/TreeNodeItemV3.d.ts +42 -22
  104. package/dist/har-service/src/services/schemas/TreeNodeItemV3.js +0 -3
  105. package/dist/har-service/src/services/schemas/TreePaginationV3.d.ts +9 -13
  106. package/dist/har-service/src/services/schemas/TreePathStepV3.d.ts +29 -0
  107. package/dist/har-service/src/services/schemas/TreePathStepV3.js +1 -0
  108. package/dist/har-service/src/services/schemas/TreeResolveResponseBodyV3.d.ts +14 -0
  109. package/dist/har-service/src/services/schemas/TreeResolveResponseBodyV3.js +1 -0
  110. package/dist/har-service/src/services/schemas/TreeResponseBodyV3.d.ts +1 -1
  111. package/dist/har-service/src/services/schemas/UpstreamAuthAccessKeySecretKeyV3.d.ts +27 -0
  112. package/dist/har-service/src/services/schemas/UpstreamAuthAccessKeySecretKeyV3.js +4 -0
  113. package/dist/har-service/src/services/schemas/UpstreamAuthBearerTokenV3.d.ts +14 -0
  114. package/dist/har-service/src/services/schemas/UpstreamAuthBearerTokenV3.js +4 -0
  115. package/dist/har-service/src/services/schemas/UpstreamAuthTypeV3.d.ts +6 -0
  116. package/dist/har-service/src/services/schemas/UpstreamAuthTypeV3.js +4 -0
  117. package/dist/har-service/src/services/schemas/UpstreamAuthUserPasswordV3.d.ts +16 -0
  118. package/dist/har-service/src/services/schemas/UpstreamAuthUserPasswordV3.js +4 -0
  119. package/dist/har-service/src/services/schemas/UpstreamAuthV3.d.ts +8 -0
  120. package/dist/har-service/src/services/schemas/UpstreamAuthV3.js +1 -0
  121. package/dist/har-service/src/services/schemas/UpstreamConfigV3.d.ts +36 -0
  122. package/dist/har-service/src/services/schemas/UpstreamConfigV3.js +1 -0
  123. package/dist/har-service/src/services/schemas/UpstreamSourceV3.d.ts +6 -0
  124. package/dist/har-service/src/services/schemas/UpstreamSourceV3.js +4 -0
  125. package/dist/har-service/src/services/schemas/VirtualConfigV3.d.ts +14 -0
  126. package/dist/har-service/src/services/schemas/VirtualConfigV3.js +1 -0
  127. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import type { LifecycleRuleSemverOnlyV3 } from '../schemas/LifecycleRuleSemverOnlyV3';
1
2
  /**
2
3
  * Filter configuration for MAVEN package type.
3
4
  */
@@ -11,6 +12,7 @@ export interface LifecycleRuleFilterConfigMavenV3 {
11
12
  */
12
13
  packageNameAllowedPattern?: string[];
13
14
  packageType: 'MAVEN';
15
+ semverOnly?: LifecycleRuleSemverOnlyV3;
14
16
  /**
15
17
  * Glob patterns for version strings to include (e.g. "*-SNAPSHOT").
16
18
  */
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * When true, the rule only considers versions that parse as semantic versions (e.g. "1.2.3", "v2.0.0-rc.1"); all other versions are ignored by the rule and are never deleted by it. KEEP_LAST_N criteria then keep the N highest semantic versions instead of the N most recently uploaded; AGE_BASED and UNUSED_FOR criteria apply unchanged to the semver versions only. Supported only on DELETE (cleanup) rules; rejected on PROTECT rules.
3
+ *
4
+ */
5
+ export type LifecycleRuleSemverOnlyV3 = boolean;
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { VirtualConfigV3 } from '../schemas/VirtualConfigV3';
2
+ import type { UpstreamConfigV3 } from '../schemas/UpstreamConfigV3';
3
+ import type { RegistryTypeV3 } from '../schemas/RegistryTypeV3';
4
+ /**
5
+ * Type-specific configuration for a registry. Discriminated by type: set type to VIRTUAL for a virtual registry or UPSTREAM for an upstream proxy, and supply the matching variant.
6
+ *
7
+ */
8
+ export type RegistryConfigV3 = (VirtualConfigV3 | UpstreamConfigV3) & {
9
+ type: RegistryTypeV3;
10
+ };
@@ -0,0 +1,52 @@
1
+ import type { RegistryConfigV3 } from '../schemas/RegistryConfigV3';
2
+ import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
3
+ import type { ScannerV3 } from '../schemas/ScannerV3';
4
+ /**
5
+ * Body for creating a registry. The parent scope comes from the
6
+ * account_identifier, org_identifier and project_identifier query
7
+ * parameters, so there is no parent reference here.
8
+ *
9
+ * `cleanupPolicy` is not accepted. Cleanup policies are deprecated, so a new registry is
10
+ * never created with one; the field is left out rather than accepted and discarded
11
+ * silently. Policies on registries that already have them are reported by the single
12
+ * registry responses and are not removed by this API.
13
+ *
14
+ */
15
+ export interface RegistryCreateBodyV3<T0 extends RegistryConfigV3 = RegistryConfigV3> {
16
+ /**
17
+ * Patterns of artifacts allowed in this registry.
18
+ */
19
+ allowedPattern?: string[];
20
+ /**
21
+ * Patterns of artifacts blocked from this registry.
22
+ */
23
+ blockedPattern?: string[];
24
+ config: T0;
25
+ /**
26
+ * Human readable description of the registry.
27
+ */
28
+ description?: string;
29
+ /**
30
+ * Identifier of the registry, unique within the parent scope. This is the only identifier accepted on create, because no UUID exists yet.
31
+ *
32
+ */
33
+ identifier: string;
34
+ /**
35
+ * Whether the registry is readable without authentication.
36
+ */
37
+ isPublic?: boolean;
38
+ /**
39
+ * Whether OPA metadata validation is enforced on this registry.
40
+ */
41
+ opaMetadataValidation?: boolean;
42
+ packageType: PackageTypeV3;
43
+ /**
44
+ * References to Harness OPA policy sets to apply to this registry. These are Harness platform entities addressed by identifier and scope across all of Harness, so they are not UUIDs.
45
+ *
46
+ */
47
+ policyRefs?: string[];
48
+ /**
49
+ * Vulnerability scanners to enable on this registry.
50
+ */
51
+ scanners?: ScannerV3[];
52
+ }
@@ -0,0 +1,30 @@
1
+ import type { CleanupPolicyV3 } from '../schemas/CleanupPolicyV3';
2
+ import type { RegistryConfigV3 } from '../schemas/RegistryConfigV3';
3
+ import type { CreatedAtMsV3 } from '../schemas/CreatedAtMsV3';
4
+ import type { ScannerV3 } from '../schemas/ScannerV3';
5
+ import type { RegistryV3 } from '../schemas/RegistryV3';
6
+ export interface RegistryDetailV3<T0 extends RegistryConfigV3 = RegistryConfigV3> extends RegistryV3 {
7
+ /**
8
+ * Patterns of artifacts allowed in this registry.
9
+ */
10
+ allowedPattern?: string[];
11
+ /**
12
+ * Patterns of artifacts blocked from this registry.
13
+ */
14
+ blockedPattern?: string[];
15
+ /**
16
+ * Cleanup policies for this registry.
17
+ */
18
+ cleanupPolicy?: CleanupPolicyV3[];
19
+ config?: T0;
20
+ createdAt?: CreatedAtMsV3;
21
+ /**
22
+ * References to Harness OPA policy sets applied to this registry. These are Harness platform entities addressed by identifier and scope across all of Harness, so they are not UUIDs.
23
+ *
24
+ */
25
+ policyRefs?: string[];
26
+ /**
27
+ * Vulnerability scanners enabled on this registry.
28
+ */
29
+ scanners?: ScannerV3[];
30
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * A vulnerability scanner enabled on a registry.
3
+ */
4
+ export interface ScannerV3 {
5
+ /**
6
+ * Scanner name. Known values include: AQUA_TRIVY, GRYPE. This field is extensible; clients must handle unknown values.
7
+ *
8
+ * @example "AQUA_TRIVY"
9
+ */
10
+ name?: string;
11
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * One crumb of a search hit's breadcrumb. Use these rather than splitting a `path`
3
+ * string, which cannot be split reliably (a package name may itself contain `/`).
4
+ *
5
+ */
6
+ export interface SearchAncestorV3 {
7
+ /**
8
+ * Registry UUID when `type` is `registry`, otherwise the node UUID.
9
+ */
10
+ id: string;
11
+ /**
12
+ * Display name of this crumb.
13
+ */
14
+ name: string;
15
+ /**
16
+ * Which listing call expands this crumb's `id`: `registry` means
17
+ * `ListRegistryNodesV3`, `folder` means `ListNodeChildrenV3`.
18
+ *
19
+ */
20
+ type: 'folder' | 'registry';
21
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,63 @@
1
+ import type { SearchAncestorV3 } from '../schemas/SearchAncestorV3';
2
+ import type { TreeEntityKindV3 } from '../schemas/TreeEntityKindV3';
3
+ /**
4
+ * One row of the Files group - files and folders alike. Always navigable.
5
+ *
6
+ */
7
+ export interface SearchFileItemV3 {
8
+ /**
9
+ * Breadcrumb from the registry root down to this hit's immediate parent, shallowest
10
+ * first. Always starts with the registry, so a node directly under the registry root
11
+ * has exactly one entry.
12
+ *
13
+ */
14
+ ancestors: SearchAncestorV3[];
15
+ /**
16
+ * Creation time in epoch millis.
17
+ * @format int64
18
+ */
19
+ createdAt?: number;
20
+ /**
21
+ * Effective soft-deletion time in epoch milliseconds, as on `TreeNodeItemV3`; absent
22
+ * when live.
23
+ *
24
+ * @format int64
25
+ */
26
+ deletedAt?: number;
27
+ /**
28
+ * UUID of the package or version this folder is; present exactly when `entityKind` is.
29
+ * Absent for files and plain folders.
30
+ *
31
+ * @format uuid
32
+ */
33
+ entityId?: string;
34
+ entityKind?: TreeEntityKindV3;
35
+ /**
36
+ * Node UUID; expand a folder with `ListNodeChildrenV3`.
37
+ * @format uuid
38
+ */
39
+ id: string;
40
+ isFile: boolean;
41
+ name: string;
42
+ /**
43
+ * Package type of the registry.
44
+ */
45
+ packageType: string;
46
+ /**
47
+ * Full path of this node within its registry.
48
+ */
49
+ path: string;
50
+ /**
51
+ * @format uuid
52
+ */
53
+ registryId: string;
54
+ registryName: string;
55
+ /**
56
+ * Canonical tree address of the node.
57
+ */
58
+ treePath: string;
59
+ /**
60
+ * Node type, as on its tree row.
61
+ */
62
+ type: 'file' | 'folder' | 'package' | 'version';
63
+ }
@@ -0,0 +1,26 @@
1
+ import type { SearchFileItemV3 } from '../schemas/SearchFileItemV3';
2
+ /**
3
+ * The Files group of a global grouped search result.
4
+ */
5
+ export interface SearchFilesGroupV3 {
6
+ /**
7
+ * Count of files/folders matching the request, independent of pagination. Exact up to 1000;
8
+ * 1001 means "more than 1000" and should be rendered as "1000+".
9
+ *
10
+ * @format int64
11
+ */
12
+ count: number;
13
+ hasMore: boolean;
14
+ items: SearchFileItemV3[];
15
+ /**
16
+ * Opaque cursor for this group's next page, to send as this group's cursor parameter. Present only when `hasMore` is true.
17
+ */
18
+ nextCursor?: string;
19
+ /**
20
+ * Present and true when this group's queries exceeded the server's time budget. The
21
+ * group is then served empty - `items` is `[]` and `count` is 0, which is not a real
22
+ * zero - while the other groups are returned as normal. Retry, or narrow the search.
23
+ *
24
+ */
25
+ timedOut?: boolean;
26
+ }
@@ -0,0 +1,61 @@
1
+ import type { SearchAncestorV3 } from '../schemas/SearchAncestorV3';
2
+ import type { TreeEntityKindV3 } from '../schemas/TreeEntityKindV3';
3
+ /**
4
+ * One row of the Packages group. Covers every package type, not only Docker/Helm.
5
+ * A hit without `id` is not navigable (e.g. uncached UPSTREAM packages, HELM_HTTP, CRAN);
6
+ * still render it and open details via `entityId`.
7
+ *
8
+ */
9
+ export interface SearchPackageItemV3 {
10
+ /**
11
+ * Breadcrumb from the registry root down to this package's immediate parent, shallowest
12
+ * first. Present exactly when `id` is.
13
+ *
14
+ */
15
+ ancestors?: SearchAncestorV3[];
16
+ /**
17
+ * Creation time in epoch millis.
18
+ * @format int64
19
+ */
20
+ createdAt?: number;
21
+ /**
22
+ * Soft-deletion time in epoch milliseconds; absent when the package is live. Only present
23
+ * when the request's `deleted_filter` is `include_deleted` or `only_deleted`.
24
+ *
25
+ * @format int64
26
+ */
27
+ deletedAt?: number;
28
+ /**
29
+ * Package UUID.
30
+ * @format uuid
31
+ */
32
+ entityId: string;
33
+ entityKind: TreeEntityKindV3;
34
+ /**
35
+ * Tree node id of the package (synthetic for Docker/Helm). Absent when not navigable.
36
+ */
37
+ id?: string;
38
+ name: string;
39
+ /**
40
+ * Absent for package types that don't record one.
41
+ */
42
+ packageKind?: string;
43
+ packageType: string;
44
+ /**
45
+ * Path of the node within its registry. Present exactly when `id` is.
46
+ */
47
+ path?: string;
48
+ /**
49
+ * @format uuid
50
+ */
51
+ registryId: string;
52
+ registryName: string;
53
+ /**
54
+ * Canonical tree address of the node. Present exactly when `id` is.
55
+ */
56
+ treePath?: string;
57
+ /**
58
+ * Always `package`.
59
+ */
60
+ type: 'package';
61
+ }
@@ -0,0 +1,26 @@
1
+ import type { SearchPackageItemV3 } from '../schemas/SearchPackageItemV3';
2
+ /**
3
+ * The Packages group of a global grouped search result.
4
+ */
5
+ export interface SearchPackagesGroupV3 {
6
+ /**
7
+ * Count of packages matching the request, independent of pagination. Exact up to 1000;
8
+ * 1001 means "more than 1000" and should be rendered as "1000+".
9
+ *
10
+ * @format int64
11
+ */
12
+ count: number;
13
+ hasMore: boolean;
14
+ items: SearchPackageItemV3[];
15
+ /**
16
+ * Opaque cursor for this group's next page, to send as this group's cursor parameter. Present only when `hasMore` is true.
17
+ */
18
+ nextCursor?: string;
19
+ /**
20
+ * Present and true when this group's queries exceeded the server's time budget. The
21
+ * group is then served empty - `items` is `[]` and `count` is 0, which is not a real
22
+ * zero - while the other groups are returned as normal. Retry, or narrow the search.
23
+ *
24
+ */
25
+ timedOut?: boolean;
26
+ }
@@ -0,0 +1,26 @@
1
+ import type { SearchRegistryItemV3 } from '../schemas/SearchRegistryItemV3';
2
+ /**
3
+ * The Registries group of a global grouped search result.
4
+ */
5
+ export interface SearchRegistriesGroupV3 {
6
+ /**
7
+ * Count of registries matching the request, independent of pagination. Exact up to 1000;
8
+ * 1001 means "more than 1000" and should be rendered as "1000+".
9
+ *
10
+ * @format int64
11
+ */
12
+ count: number;
13
+ hasMore: boolean;
14
+ items: SearchRegistryItemV3[];
15
+ /**
16
+ * Opaque cursor for this group's next page, to send as this group's cursor parameter. Present only when `hasMore` is true.
17
+ */
18
+ nextCursor?: string;
19
+ /**
20
+ * Present and true when this group's queries exceeded the server's time budget. The
21
+ * group is then served empty - `items` is `[]` and `count` is 0, which is not a real
22
+ * zero - while the other groups are returned as normal. Retry, or narrow the search.
23
+ *
24
+ */
25
+ timedOut?: boolean;
26
+ }
@@ -0,0 +1,50 @@
1
+ import type { TreeEntityKindV3 } from '../schemas/TreeEntityKindV3';
2
+ /**
3
+ * One row of the Registries group.
4
+ */
5
+ export interface SearchRegistryItemV3 {
6
+ /**
7
+ * Creation time in epoch millis.
8
+ * @format int64
9
+ */
10
+ createdAt?: number;
11
+ /**
12
+ * Soft-deletion time in epoch milliseconds; absent when the registry is live. Only present
13
+ * when the request's `deleted_filter` is `include_deleted` or `only_deleted`.
14
+ *
15
+ * @format int64
16
+ */
17
+ deletedAt?: number;
18
+ /**
19
+ * Registry UUID (same as `id`).
20
+ * @format uuid
21
+ */
22
+ entityId: string;
23
+ entityKind: TreeEntityKindV3;
24
+ /**
25
+ * Registry UUID; expand it with `ListRegistryNodesV3`.
26
+ * @format uuid
27
+ */
28
+ id: string;
29
+ name: string;
30
+ packageType: string;
31
+ /**
32
+ * Registry name.
33
+ */
34
+ path: string;
35
+ registryType: string;
36
+ /**
37
+ * Path of the space that owns the registry (e.g. `account/org/project`), which tells
38
+ * same-named registries in different spaces apart. Absent if it could not be resolved.
39
+ *
40
+ */
41
+ spacePath?: string;
42
+ /**
43
+ * Canonical tree address; see `TreeNodeItemV3.treePath`.
44
+ */
45
+ treePath: string;
46
+ /**
47
+ * Always `registry`.
48
+ */
49
+ type: 'registry';
50
+ }
@@ -0,0 +1,13 @@
1
+ import type { SearchFilesGroupV3 } from '../schemas/SearchFilesGroupV3';
2
+ import type { SearchPackagesGroupV3 } from '../schemas/SearchPackagesGroupV3';
3
+ import type { SearchRegistriesGroupV3 } from '../schemas/SearchRegistriesGroupV3';
4
+ import type { SearchVersionsGroupV3 } from '../schemas/SearchVersionsGroupV3';
5
+ /**
6
+ * Response body for the global grouped tree search endpoint.
7
+ */
8
+ export interface SearchTreeResponseBodyV3 {
9
+ files: SearchFilesGroupV3;
10
+ packages: SearchPackagesGroupV3;
11
+ registries: SearchRegistriesGroupV3;
12
+ versions: SearchVersionsGroupV3;
13
+ }
@@ -0,0 +1,86 @@
1
+ import type { SearchAncestorV3 } from '../schemas/SearchAncestorV3';
2
+ import type { TreeEntityKindV3 } from '../schemas/TreeEntityKindV3';
3
+ /**
4
+ * One row of the Versions group. Docker and Helm versions match on their tag names only - a
5
+ * digest is not searchable here - and every other package type matches on the version name.
6
+ * One row per version, not per tag: an OCI digest carrying several tags is a single row
7
+ * listing them all in `tags`.
8
+ *
9
+ * A hit without `id` is not navigable (e.g. untagged Docker/Helm digests, uncached UPSTREAM
10
+ * versions); still render it and open details via `entityId`.
11
+ *
12
+ */
13
+ export interface SearchVersionItemV3 {
14
+ /**
15
+ * Breadcrumb from the registry root down to this version's immediate parent, shallowest
16
+ * first. Present exactly when `id` is.
17
+ *
18
+ */
19
+ ancestors?: SearchAncestorV3[];
20
+ /**
21
+ * Creation time in epoch millis.
22
+ * @format int64
23
+ */
24
+ createdAt?: number;
25
+ /**
26
+ * Soft-deletion time in epoch milliseconds; absent when the version is live. Only present
27
+ * when the request's `deleted_filter` is `include_deleted` or `only_deleted`.
28
+ *
29
+ * @format int64
30
+ */
31
+ deletedAt?: number;
32
+ /**
33
+ * Version UUID.
34
+ * @format uuid
35
+ */
36
+ entityId: string;
37
+ entityKind: TreeEntityKindV3;
38
+ /**
39
+ * Tree node id of the version: the archive file for HELM_HTTP/CRAN, a matching tag (else
40
+ * the first tag) for Docker/Helm. Absent when not navigable.
41
+ *
42
+ */
43
+ id?: string;
44
+ /**
45
+ * The stored version. For Docker and Helm this is the manifest digest in an internal
46
+ * `<2-digit algorithm prefix><hex>` form, not `sha256:...` - display `tags` instead
47
+ * when present.
48
+ *
49
+ */
50
+ name: string;
51
+ /**
52
+ * @format uuid
53
+ */
54
+ packageId: string;
55
+ /**
56
+ * Absent for package types that don't record one.
57
+ */
58
+ packageKind?: string;
59
+ packageName: string;
60
+ packageType: string;
61
+ /**
62
+ * Path of the node within its registry (`<image>/<tag>` for Docker/Helm). Present exactly
63
+ * when `id` is.
64
+ *
65
+ */
66
+ path?: string;
67
+ /**
68
+ * @format uuid
69
+ */
70
+ registryId: string;
71
+ registryName: string;
72
+ /**
73
+ * Every tag pointing at this version's manifest, ordered by name. Absent for non-OCI
74
+ * package types and for untagged OCI digests.
75
+ *
76
+ */
77
+ tags?: string[];
78
+ /**
79
+ * Canonical tree address of the node. Present exactly when `id` is.
80
+ */
81
+ treePath?: string;
82
+ /**
83
+ * Always `version`.
84
+ */
85
+ type: 'version';
86
+ }
@@ -0,0 +1,26 @@
1
+ import type { SearchVersionItemV3 } from '../schemas/SearchVersionItemV3';
2
+ /**
3
+ * The Versions group of a global grouped search result.
4
+ */
5
+ export interface SearchVersionsGroupV3 {
6
+ /**
7
+ * Count of versions matching the request, independent of pagination. Exact up to 1000;
8
+ * 1001 means "more than 1000" and should be rendered as "1000+".
9
+ *
10
+ * @format int64
11
+ */
12
+ count: number;
13
+ hasMore: boolean;
14
+ items: SearchVersionItemV3[];
15
+ /**
16
+ * Opaque cursor for this group's next page, to send as this group's cursor parameter. Present only when `hasMore` is true.
17
+ */
18
+ nextCursor?: string;
19
+ /**
20
+ * Present and true when this group's queries exceeded the server's time budget. The
21
+ * group is then served empty - `items` is `[]` and `count` is 0, which is not a real
22
+ * zero - while the other groups are returned as normal. Retry, or narrow the search.
23
+ *
24
+ */
25
+ timedOut?: boolean;
26
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Response payload returned when a semver backfill is successfully triggered.
3
+ */
4
+ export interface SemverBackfillTriggerDataV3 {
5
+ /**
6
+ * Numeric identifier of the CDC job row created for this backfill.
7
+ * @format int64
8
+ */
9
+ jobId: number;
10
+ /**
11
+ * Human-readable status message.
12
+ */
13
+ message: string;
14
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Repository metadata signing configuration, e.g. GPG signing for Debian packages.
3
+ */
4
+ export interface SigningConfigV3 {
5
+ /**
6
+ * UUID of the signing key to use. The key must be ACTIVE and belong to the same account, org and project as the registry.
7
+ *
8
+ * @format uuid
9
+ */
10
+ keyId?: string | null;
11
+ /**
12
+ * Whether metadata signing is enabled for this registry.
13
+ */
14
+ signingEnabled: boolean;
15
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Cryptographic system of a signing key. Known values include: GPG (for Debian, RPM, Alpine), RSA (for direct signing operations). This field is extensible; clients must handle unknown values.
3
+ *
4
+ * @example "GPG"
5
+ */
6
+ export type SigningKeyTypeV3 = string;
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};