@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
@@ -3,6 +3,7 @@ import type { CreatedAtMsV3 } from '../schemas/CreatedAtMsV3';
3
3
  import type { UserInfoV3 } from '../schemas/UserInfoV3';
4
4
  import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
5
5
  import type { SigningKeyStatusV3 } from '../schemas/SigningKeyStatusV3';
6
+ import type { SigningKeyTypeV3 } from '../schemas/SigningKeyTypeV3';
6
7
  /**
7
8
  * A signing key used for repository metadata signing (Debian, Alpine, etc.)
8
9
  */
@@ -47,11 +48,6 @@ export interface SigningKeyV3 {
47
48
  */
48
49
  source: 'GENERATED' | 'IMPORTED';
49
50
  status: SigningKeyStatusV3;
50
- /**
51
- * 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.
52
- *
53
- * @example "GPG"
54
- */
55
- type: string;
51
+ type: SigningKeyTypeV3;
56
52
  updatedBy?: UserInfoV3;
57
53
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * What a tree node or search hit is: a registry, a package or a version. Absent for plain
3
+ * folders and files. A Docker/Helm platform row is a `folder` whose entity is its own
4
+ * manifest's version.
5
+ *
6
+ */
7
+ export type TreeEntityKindV3 = 'PACKAGE' | 'REGISTRY' | 'VERSION';
@@ -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 {};
@@ -1,54 +1,74 @@
1
+ import type { TreeEntityKindV3 } from '../schemas/TreeEntityKindV3';
1
2
  /**
2
3
  * A node in the tree view representing a registry, package, version, folder, or file
3
4
  */
4
5
  export interface TreeNodeItemV3 {
5
6
  /**
6
- * Creation timestamp in milliseconds
7
+ * Creation time in epoch milliseconds. Absent when unknown.
7
8
  * @format int64
8
9
  */
9
10
  createdAt?: number;
10
11
  /**
11
- * Deletion timestamp in milliseconds (if soft-deleted)
12
+ * Soft-deletion time in epoch milliseconds; absent when the node is live. This is the
13
+ * effective state: the node's own entity's, else its package's, else its registry's, so
14
+ * a file under a deleted version reads as deleted. Plain folders and files that belong to
15
+ * no resolvable package carry their registry's state.
16
+ *
12
17
  * @format int64
13
18
  */
14
19
  deletedAt?: number;
15
20
  /**
16
- * Whether this node has child nodes
21
+ * UUID of the registry, package or version this node is; present exactly when
22
+ * `entityKind` is. Pass it to the matching details API (`/registries/{id}/metadata`,
23
+ * `/packages/{id}/metadata`, `/versions/{id}/metadata`).
24
+ *
25
+ * @format uuid
17
26
  */
18
- hasChildren: boolean;
27
+ entityId?: string;
28
+ entityKind?: TreeEntityKindV3;
19
29
  /**
20
- * Unique identifier (UUID for nodes, registry_id for root registries)
30
+ * Whether expanding this node returns at least one child.
21
31
  */
22
- id: string;
32
+ hasChildren: boolean;
23
33
  /**
24
- * Whether this node is soft-deleted. Tree levels below the root return both active and
25
- * soft-deleted nodes, so clients must use this flag to render deleted state rather than
26
- * assuming every returned node is live.
27
- *
28
- * Omitted when soft-delete state cannot be determined for the node's level: the version
29
- * and platform levels of OCI (Docker/Helm) registries come from
30
- * `tags`/`manifests`/`manifest_references`, none of which have a soft-delete column,
31
- * and all nodes of non-OCI registries come from `nodes`, whose `node_deleted_at` column
32
- * is not populated by any write path. Only the root (`registries`) and Docker/Helm
33
- * package (`images`) levels can answer this. An omitted value means "unknown" - it must
34
- * not be read as "not deleted".
34
+ * Identifier to expand this node with. The registry UUID for a registry (pass it to
35
+ * `ListRegistryNodesV3`); otherwise pass it to `ListNodeChildrenV3`. Below the root it is
36
+ * a node UUID, or for Docker/Helm registries a synthetic `<kind>:<registryUUID>:<innerId>`
37
+ * id - hence a plain string rather than a UUID. Treat it as opaque.
35
38
  *
36
39
  */
37
- isDeleted?: boolean;
40
+ id: string;
38
41
  /**
39
- * Display name of the node
42
+ * Display name. A collapsed `compact` row joins its segments with `/`; the Docker/Helm
43
+ * untagged group reads `Untagged (n)`, with n shown as `1000+` past 1000.
44
+ *
40
45
  */
41
46
  name: string;
42
47
  /**
43
- * Package type (for registries/packages)
48
+ * Package type of the registry. Set on every level.
44
49
  */
45
50
  packageType?: string;
46
51
  /**
47
- * Full path to this node
52
+ * Display path of this node within its registry; the registry name for a registry.
53
+ * For display only - do not split it to derive ancestor ids.
54
+ *
48
55
  */
49
56
  path?: string;
50
57
  /**
51
- * Type of the node
58
+ * Canonical, readable address of this node: put it in a shareable URL and pass it as `path`
59
+ * to `ResolveTreePathV3` to get the node's ids back. Unlike `path`, it is unique and stable across responses. Absent when
60
+ * the node cannot be addressed by path (a platform below a nested Docker/Helm manifest
61
+ * list).
62
+ *
63
+ */
64
+ treePath?: string;
65
+ /**
66
+ * Type of the node. Docker/Helm registries expose `package` (image), `version` (tag or
67
+ * untagged manifest) and `folder` (the untagged group and per-platform manifests). Other
68
+ * package types expose `package` and `version` for folders that are one, and `folder`
69
+ * and `file` otherwise; Debian, CRAN, Conan, Wolfi and HELM_HTTP expose only `folder`
70
+ * and `file`.
71
+ *
52
72
  */
53
73
  type: 'file' | 'folder' | 'package' | 'registry' | 'version';
54
74
  }
@@ -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 {};
@@ -3,31 +3,27 @@
3
3
  */
4
4
  export interface TreePaginationV3 {
5
5
  /**
6
- * Whether there are more pages
6
+ * Whether another page exists.
7
7
  */
8
8
  hasMore: boolean;
9
9
  /**
10
- * Cursor for next page (base64 encoded)
10
+ * Opaque cursor for the next page, to send as `cursor`. Present only when `hasMore` is true.
11
11
  */
12
12
  nextCursor?: string;
13
13
  /**
14
- * Page size
14
+ * The page size applied to this request.
15
15
  * @format int32
16
16
  */
17
17
  size: number;
18
18
  /**
19
- * Total number of items matching the request across all pages, independent of
20
- * pagination.
19
+ * Total number of children matching the request, independent of pagination.
21
20
  *
22
- * Exact at the root (registry) level, where the filtered set is small enough to
23
- * count cheaply. Below the root it is **capped** (currently at 1000): child fanout
24
- * is unbounded, and an exact count of a wide parent is far more expensive than the
25
- * page itself. A value at the cap means "at least this many", not necessarily
26
- * exact - use `hasMore` to drive "Load More" rather than comparing against `total`.
21
+ * * Root (`ListTreeRootsV3`): exact, and returned **on the first page only** - it is
22
+ * absent when a `cursor` is sent, so keep the first page's value.
23
+ * * Below the root: returned on every page, exact up to 1000. Any value above 1000
24
+ * means "more than 1000" and should be rendered as "1000+".
27
25
  *
28
- * Optional, and **absent on root-level pages fetched with a `cursor`**: the total
29
- * does not change while paging through a fixed filter set, so it is computed once on
30
- * the first page and the client is expected to hold it across Load More.
26
+ * Drive "Load More" from `hasMore`, not from `total`.
31
27
  *
32
28
  * @format int64
33
29
  */
@@ -0,0 +1,29 @@
1
+ import type { TreeEntityKindV3 } from '../schemas/TreeEntityKindV3';
2
+ /**
3
+ * One node along a resolved path. `id` matches the row's `id` in the tree listings, so the
4
+ * client can find and expand it. Steps are never collapsed: with `compact=true` a listed row
5
+ * stands for every step from its first folder to its last, and its `id` is the last one's.
6
+ *
7
+ */
8
+ export interface TreePathStepV3 {
9
+ /**
10
+ * UUID of the registry, package or version this node is, as for `TreeNodeItemV3`. Use it
11
+ * for the details APIs; a file's details take its `id`.
12
+ *
13
+ * @format uuid
14
+ */
15
+ entityId?: string;
16
+ entityKind?: TreeEntityKindV3;
17
+ /**
18
+ * The node's tree id: a registry UUID, a node UUID, or an opaque Docker/Helm id that is
19
+ * only meaningful to the tree endpoints.
20
+ *
21
+ */
22
+ id: string;
23
+ name: string;
24
+ treePath: string;
25
+ /**
26
+ * The node's type, as `TreeNodeItemV3.type` reports it.
27
+ */
28
+ type: 'file' | 'folder' | 'package' | 'registry' | 'version';
29
+ }
@@ -0,0 +1,14 @@
1
+ import type { TreeResponseBodyV3 } from '../schemas/TreeResponseBodyV3';
2
+ import type { TreePathStepV3 } from '../schemas/TreePathStepV3';
3
+ /**
4
+ * Response body for `ResolveTreePathV3`
5
+ */
6
+ export interface TreeResolveResponseBodyV3 {
7
+ children: TreeResponseBodyV3;
8
+ /**
9
+ * Every node along the path, registry first, as the tree listings return them. The last
10
+ * step is the requested node; the others are its ancestors.
11
+ *
12
+ */
13
+ steps: TreePathStepV3[];
14
+ }
@@ -5,7 +5,7 @@ import type { TreePaginationV3 } from '../schemas/TreePaginationV3';
5
5
  */
6
6
  export interface TreeResponseBodyV3 {
7
7
  /**
8
- * List of tree nodes
8
+ * Immediate children of the requested level, in display order.
9
9
  */
10
10
  items: TreeNodeItemV3[];
11
11
  pagination: TreePaginationV3;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Access key and secret key pair. Used when authType is ACCESS_KEY_SECRET_KEY.
3
+ */
4
+ export interface UpstreamAuthAccessKeySecretKeyV3 {
5
+ /**
6
+ * Plaintext access key. Mutually exclusive with accessKeySecretIdentifier.
7
+ */
8
+ accessKey?: string;
9
+ /**
10
+ * Identifier of the Harness secret holding the access key.
11
+ */
12
+ accessKeySecretIdentifier?: string;
13
+ /**
14
+ * @format int64
15
+ */
16
+ accessKeySecretSpaceId?: number;
17
+ accessKeySecretSpacePath?: string;
18
+ /**
19
+ * Identifier of the Harness secret holding the secret key.
20
+ */
21
+ secretKeyIdentifier: string;
22
+ /**
23
+ * @format int64
24
+ */
25
+ secretKeySpaceId?: number;
26
+ secretKeySpacePath?: string;
27
+ }
@@ -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,14 @@
1
+ /**
2
+ * Bearer token held in a Harness secret. Used when authType is BEARER_TOKEN.
3
+ */
4
+ export interface UpstreamAuthBearerTokenV3 {
5
+ /**
6
+ * Identifier of the Harness secret holding the bearer token.
7
+ */
8
+ secretIdentifier?: string;
9
+ /**
10
+ * @format int64
11
+ */
12
+ secretSpaceId?: number;
13
+ secretSpacePath?: 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,6 @@
1
+ /**
2
+ * Authentication scheme used against the upstream. Known values include: USER_PASSWORD, ACCESS_KEY_SECRET_KEY, BEARER_TOKEN, ANONYMOUS. This field is extensible; clients must handle unknown values. ANONYMOUS takes no auth object.
3
+ *
4
+ * @example "USER_PASSWORD"
5
+ */
6
+ export type UpstreamAuthTypeV3 = 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 {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Username plus a password held in a Harness secret. Used when authType is USER_PASSWORD.
3
+ */
4
+ export interface UpstreamAuthUserPasswordV3 {
5
+ /**
6
+ * Identifier of the Harness secret holding the password. This is a Harness platform secret, addressed by identifier and scope across all of Harness, so it is not a UUID.
7
+ *
8
+ */
9
+ secretIdentifier?: string;
10
+ /**
11
+ * @format int64
12
+ */
13
+ secretSpaceId?: number;
14
+ secretSpacePath?: string;
15
+ userName: string;
16
+ }
@@ -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,8 @@
1
+ import type { UpstreamAuthUserPasswordV3 } from '../schemas/UpstreamAuthUserPasswordV3';
2
+ import type { UpstreamAuthAccessKeySecretKeyV3 } from '../schemas/UpstreamAuthAccessKeySecretKeyV3';
3
+ import type { UpstreamAuthBearerTokenV3 } from '../schemas/UpstreamAuthBearerTokenV3';
4
+ /**
5
+ * Upstream credentials. The variant is selected by the sibling authType field rather than by a property on this object, so there is no discriminator here. Omit this object entirely when authType is ANONYMOUS.
6
+ *
7
+ */
8
+ export type UpstreamAuthV3 = UpstreamAuthUserPasswordV3 | UpstreamAuthAccessKeySecretKeyV3 | UpstreamAuthBearerTokenV3;
@@ -0,0 +1,36 @@
1
+ import type { UpstreamAuthV3 } from '../schemas/UpstreamAuthV3';
2
+ import type { UpstreamAuthTypeV3 } from '../schemas/UpstreamAuthTypeV3';
3
+ import type { FirewallModeV3 } from '../schemas/FirewallModeV3';
4
+ import type { SigningConfigV3 } from '../schemas/SigningConfigV3';
5
+ import type { UpstreamSourceV3 } from '../schemas/UpstreamSourceV3';
6
+ /**
7
+ * Configuration for an upstream proxy registry.
8
+ */
9
+ export interface UpstreamConfigV3 {
10
+ auth?: UpstreamAuthV3;
11
+ authType: UpstreamAuthTypeV3;
12
+ firewallMode?: FirewallModeV3;
13
+ /**
14
+ * Time-to-live in seconds for cached upstream metadata. A duration, not a timestamp, so it is expressed in seconds rather than milliseconds.
15
+ *
16
+ * @format int64
17
+ */
18
+ metadataCacheTTL?: number;
19
+ /**
20
+ * Time-to-live in seconds for cached NOT_FOUND responses from the upstream. A duration, not a timestamp, so it is expressed in seconds rather than milliseconds.
21
+ *
22
+ * @format int64
23
+ */
24
+ negativeCacheTTL?: number;
25
+ /**
26
+ * Optional path suffix appended to the remote URL for this registry. For Python upstreams this overrides the default `/simple` path used for PyPI-compatible indexes. Leading and trailing slashes are normalized away.
27
+ *
28
+ */
29
+ remoteUrlSuffix?: string;
30
+ signingConfig?: SigningConfigV3;
31
+ source?: UpstreamSourceV3;
32
+ /**
33
+ * Remote URL of the upstream. Required when source is CUSTOM.
34
+ */
35
+ url?: string;
36
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Well-known upstream this proxy points at. Known values include: DOCKERHUB, CUSTOM, AWS_ECR, MAVEN_CENTRAL, PYPI, NPMJS, NUGET_ORG, CRATES, RUBYGEMS, GO_PROXY, HUGGING_FACE, ANACONDA, PUBDEV, PACKAGIST, PUPPET_FORGE, HELM_CHART_REPO, CONAN_CENTER, TERRAFORM_REGISTRY, CRAN, WOLFI, ALPINE. This field is extensible; clients must handle unknown values. Use CUSTOM together with url for anything else.
3
+ *
4
+ * @example "DOCKERHUB"
5
+ */
6
+ export type UpstreamSourceV3 = 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 {};
@@ -0,0 +1,14 @@
1
+ import type { DebianConfigV3 } from '../schemas/DebianConfigV3';
2
+ import type { SigningConfigV3 } from '../schemas/SigningConfigV3';
3
+ /**
4
+ * Configuration for a virtual registry.
5
+ */
6
+ export interface VirtualConfigV3 {
7
+ debianConfig?: DebianConfigV3;
8
+ signingConfig?: SigningConfigV3;
9
+ /**
10
+ * UUIDs of the upstream proxy registries this virtual registry resolves through, in resolution order. Note that v1 accepts upstream proxy *names* here; v3 uses UUIDs per the id-over-identifier rule.
11
+ *
12
+ */
13
+ upstreamProxies?: string[];
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.98.0",
3
+ "version": "0.100.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",