@harnessio/react-har-service-client 0.99.0 → 0.101.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.
- package/dist/har-service/src/services/hooks/useCreateRegistryV3Mutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useCreateRegistryV3Mutation.js +15 -0
- package/dist/har-service/src/services/hooks/useGetRebuildRegistryIndexStatusV3Query.d.ts +22 -0
- package/dist/har-service/src/services/hooks/useGetRebuildRegistryIndexStatusV3Query.js +14 -0
- package/dist/har-service/src/services/hooks/useGetRegistryV3Query.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useGetRegistryV3Query.js +15 -0
- package/dist/har-service/src/services/hooks/useListPackagesV3Query.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useListRegistriesV3Query.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useListTreeRootsV3Query.d.ts +1 -2
- package/dist/har-service/src/services/hooks/useListVersionsV3Query.d.ts +1 -0
- package/dist/har-service/src/services/hooks/usePatchRegistryV3Mutation.d.ts +30 -0
- package/dist/har-service/src/services/hooks/usePatchRegistryV3Mutation.js +18 -0
- package/dist/har-service/src/services/hooks/useRebuildRegistryIndexV3Mutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useRebuildRegistryIndexV3Mutation.js +1 -1
- package/dist/har-service/src/services/hooks/useResolveTreePathV3Query.d.ts +2 -2
- package/dist/har-service/src/services/hooks/useResolveTreePathV3Query.js +1 -1
- package/dist/har-service/src/services/hooks/useSearchTreeV3Query.d.ts +5 -2
- package/dist/har-service/src/services/hooks/useSearchTreeV3Query.js +4 -1
- package/dist/har-service/src/services/hooks/useUpdateRegistryV3Mutation.d.ts +30 -0
- package/dist/har-service/src/services/hooks/useUpdateRegistryV3Mutation.js +18 -0
- package/dist/har-service/src/services/index.d.ts +33 -0
- package/dist/har-service/src/services/index.js +5 -0
- package/dist/har-service/src/services/requestBodies/RegistryCreateRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/RegistryCreateRequestV3RequestBody.js +1 -0
- package/dist/har-service/src/services/requestBodies/RegistryPatchRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/RegistryPatchRequestV3RequestBody.js +1 -0
- package/dist/har-service/src/services/requestBodies/RegistryUpdateRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/RegistryUpdateRequestV3RequestBody.js +1 -0
- package/dist/har-service/src/services/responses/GetRebuildRegistryIndexStatusResponseV3Response.d.ts +20 -0
- package/dist/har-service/src/services/responses/GetRebuildRegistryIndexStatusResponseV3Response.js +1 -0
- package/dist/har-service/src/services/responses/RebuildRegistryIndexAcceptedV3Response.d.ts +15 -1
- package/dist/har-service/src/services/responses/RegistryResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/RegistryResponseV3Response.js +1 -0
- package/dist/har-service/src/services/schemas/ApmArtifactDetailConfig.d.ts +8 -0
- package/dist/har-service/src/services/schemas/ApmArtifactDetailConfig.js +4 -0
- package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +2 -1
- package/dist/har-service/src/services/schemas/CleanupPolicyV3.d.ts +19 -0
- package/dist/har-service/src/services/schemas/CleanupPolicyV3.js +4 -0
- package/dist/har-service/src/services/schemas/DebianConfigV3.d.ts +14 -0
- package/dist/har-service/src/services/schemas/DebianConfigV3.js +4 -0
- package/dist/har-service/src/services/schemas/FilterConditionV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/FilterDataTypeV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/FilterInputTypeV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
- package/dist/har-service/src/services/schemas/PackageTypeV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/RebuildRegistryIndexStatusV3.d.ts +4 -0
- package/dist/har-service/src/services/schemas/RebuildRegistryIndexStatusV3.js +4 -0
- package/dist/har-service/src/services/schemas/RegistryConfigV3.d.ts +10 -0
- package/dist/har-service/src/services/schemas/RegistryConfigV3.js +1 -0
- package/dist/har-service/src/services/schemas/RegistryCreateBodyV3.d.ts +52 -0
- package/dist/har-service/src/services/schemas/RegistryCreateBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/RegistryDetailV3.d.ts +30 -0
- package/dist/har-service/src/services/schemas/RegistryDetailV3.js +1 -0
- package/dist/har-service/src/services/schemas/RegistryMutateBodyV3.d.ts +68 -0
- package/dist/har-service/src/services/schemas/RegistryMutateBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/ScannerV3.d.ts +11 -0
- package/dist/har-service/src/services/schemas/ScannerV3.js +4 -0
- package/dist/har-service/src/services/schemas/SearchFileItemV3.d.ts +17 -0
- package/dist/har-service/src/services/schemas/SearchPackageItemV3.d.ts +26 -13
- package/dist/har-service/src/services/schemas/SearchRegistryItemV3.d.ts +24 -0
- package/dist/har-service/src/services/schemas/SearchRegistryItemV3.js +0 -3
- package/dist/har-service/src/services/schemas/SearchVersionItemV3.d.ts +32 -16
- package/dist/har-service/src/services/schemas/SigningConfigV3.d.ts +15 -0
- package/dist/har-service/src/services/schemas/SigningConfigV3.js +4 -0
- package/dist/har-service/src/services/schemas/TreeNodeItemV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/UpstreamAuthAccessKeySecretKeyV3.d.ts +27 -0
- package/dist/har-service/src/services/schemas/UpstreamAuthAccessKeySecretKeyV3.js +4 -0
- package/dist/har-service/src/services/schemas/UpstreamAuthBearerTokenV3.d.ts +14 -0
- package/dist/har-service/src/services/schemas/UpstreamAuthBearerTokenV3.js +4 -0
- package/dist/har-service/src/services/schemas/UpstreamAuthTypeV3.d.ts +6 -0
- package/dist/har-service/src/services/schemas/UpstreamAuthTypeV3.js +4 -0
- package/dist/har-service/src/services/schemas/UpstreamAuthUserPasswordV3.d.ts +16 -0
- package/dist/har-service/src/services/schemas/UpstreamAuthUserPasswordV3.js +4 -0
- package/dist/har-service/src/services/schemas/UpstreamAuthV3.d.ts +8 -0
- package/dist/har-service/src/services/schemas/UpstreamAuthV3.js +1 -0
- package/dist/har-service/src/services/schemas/UpstreamConfigV3.d.ts +36 -0
- package/dist/har-service/src/services/schemas/UpstreamConfigV3.js +1 -0
- package/dist/har-service/src/services/schemas/UpstreamSourceV3.d.ts +6 -0
- package/dist/har-service/src/services/schemas/UpstreamSourceV3.js +4 -0
- package/dist/har-service/src/services/schemas/VirtualConfigV3.d.ts +14 -0
- package/dist/har-service/src/services/schemas/VirtualConfigV3.js +1 -0
- package/package.json +1 -1
|
@@ -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,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,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,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,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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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,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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|