@harnessio/react-har-service-client 0.102.0 → 0.103.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/index.d.ts +3 -0
- package/dist/har-service/src/services/schemas/EdgeAccessV3.d.ts +11 -0
- package/dist/har-service/src/services/schemas/EdgeAccessV3.js +4 -0
- package/dist/har-service/src/services/schemas/EdgeAuthorizeRequestV3.d.ts +6 -0
- package/dist/har-service/src/services/schemas/EdgeAuthorizeResponseV3.d.ts +7 -7
- package/dist/har-service/src/services/schemas/EdgeCacheResponseV3.d.ts +16 -0
- package/dist/har-service/src/services/schemas/EdgeCacheResponseV3.js +4 -0
- package/dist/har-service/src/services/schemas/EdgeIdentityV3.d.ts +23 -0
- package/dist/har-service/src/services/schemas/EdgeIdentityV3.js +1 -0
- package/dist/har-service/src/services/schemas/EdgeResolveRequestV3.d.ts +2 -6
- package/dist/har-service/src/services/schemas/EdgeResolveResponseV3.d.ts +2 -0
- package/dist/har-service/src/services/schemas/FilterDefinitionV3.d.ts +11 -0
- package/package.json +1 -1
|
@@ -608,8 +608,11 @@ export type { DockerLayerEntry } from './schemas/DockerLayerEntry';
|
|
|
608
608
|
export type { DockerLayersSummary } from './schemas/DockerLayersSummary';
|
|
609
609
|
export type { DockerManifestDetails } from './schemas/DockerManifestDetails';
|
|
610
610
|
export type { DockerManifests } from './schemas/DockerManifests';
|
|
611
|
+
export type { EdgeAccessV3 } from './schemas/EdgeAccessV3';
|
|
611
612
|
export type { EdgeAuthorizeRequestV3 } from './schemas/EdgeAuthorizeRequestV3';
|
|
612
613
|
export type { EdgeAuthorizeResponseV3 } from './schemas/EdgeAuthorizeResponseV3';
|
|
614
|
+
export type { EdgeCacheResponseV3 } from './schemas/EdgeCacheResponseV3';
|
|
615
|
+
export type { EdgeIdentityV3 } from './schemas/EdgeIdentityV3';
|
|
613
616
|
export type { EdgeLocationV3 } from './schemas/EdgeLocationV3';
|
|
614
617
|
export type { EdgePrincipalV3 } from './schemas/EdgePrincipalV3';
|
|
615
618
|
export type { EdgeResolveRequestV3 } from './schemas/EdgeResolveRequestV3';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the caller may perform the action on the registry. Cached by the edge per token.
|
|
3
|
+
*/
|
|
4
|
+
export interface EdgeAccessV3 {
|
|
5
|
+
decision: 'allow' | 'deny';
|
|
6
|
+
/**
|
|
7
|
+
* HTTP status to answer with on deny, 403 or 404.
|
|
8
|
+
*/
|
|
9
|
+
status: number;
|
|
10
|
+
ttl_seconds: number;
|
|
11
|
+
}
|
|
@@ -6,4 +6,10 @@ export interface EdgeAuthorizeRequestV3 {
|
|
|
6
6
|
client_ip?: string;
|
|
7
7
|
host?: string;
|
|
8
8
|
registry_identifier: string;
|
|
9
|
+
/**
|
|
10
|
+
* The answers the edge is missing. Exactly one of [identity], [access] or [identity, access];
|
|
11
|
+
* anything else is a bad request.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
want: Array<'access' | 'identity'>;
|
|
9
15
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EdgeAccessV3 } from '../schemas/EdgeAccessV3';
|
|
2
|
+
import type { EdgeIdentityV3 } from '../schemas/EdgeIdentityV3';
|
|
3
|
+
/**
|
|
4
|
+
* Only the blocks named in the request's want are returned.
|
|
5
|
+
*/
|
|
2
6
|
export interface EdgeAuthorizeResponseV3 {
|
|
3
|
-
|
|
4
|
-
|
|
7
|
+
access?: EdgeAccessV3;
|
|
8
|
+
identity?: EdgeIdentityV3;
|
|
5
9
|
package_type?: string;
|
|
6
|
-
principal?: EdgePrincipalV3;
|
|
7
10
|
registry_type?: string;
|
|
8
11
|
registry_uuid?: string;
|
|
9
|
-
status: number;
|
|
10
|
-
ttl_seconds: number;
|
|
11
|
-
www_authenticate?: string;
|
|
12
12
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* On a pass, tells the edge to keep the origin's answer for the path. Absent means do not cache.
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export interface EdgeCacheResponseV3 {
|
|
6
|
+
/**
|
|
7
|
+
* How long the edge may serve the stored body.
|
|
8
|
+
*/
|
|
9
|
+
ttl_seconds: number;
|
|
10
|
+
/**
|
|
11
|
+
* Request headers whose values change the body, e.g. accept. The edge honours only accept and
|
|
12
|
+
* accept-encoding.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
vary?: string[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { EdgePrincipalV3 } from '../schemas/EdgePrincipalV3';
|
|
2
|
+
/**
|
|
3
|
+
* Whether the forwarded credential is valid. Cached by the edge per credential.
|
|
4
|
+
*/
|
|
5
|
+
export interface EdgeIdentityV3 {
|
|
6
|
+
decision: 'allow' | 'deny';
|
|
7
|
+
principal?: EdgePrincipalV3;
|
|
8
|
+
/**
|
|
9
|
+
* HTTP status to answer with on deny, 401.
|
|
10
|
+
*/
|
|
11
|
+
status: number;
|
|
12
|
+
/**
|
|
13
|
+
* Id of the token, used by the edge to build the access cache key. Absent for OCI JWTs and
|
|
14
|
+
* anonymous callers.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
token_uid?: string;
|
|
18
|
+
ttl_seconds: number;
|
|
19
|
+
/**
|
|
20
|
+
* Challenge to return with a 401.
|
|
21
|
+
*/
|
|
22
|
+
www_authenticate?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
export interface EdgeResolveRequestV3 {
|
|
2
2
|
account_identifier: string;
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
package_type?: string;
|
|
7
|
-
/**
|
|
8
|
-
* File path inside the registry, URL-decoded, without a leading slash: the part after /files/ for RAW
|
|
9
|
-
* and after /maven/ for MAVEN.
|
|
4
|
+
* File path inside the registry, URL-decoded, without a leading slash: the part after the package
|
|
5
|
+
* type's route segment, e.g. /files/ for RAW.
|
|
10
6
|
*
|
|
11
7
|
*/
|
|
12
8
|
path: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { EdgeCacheResponseV3 } from '../schemas/EdgeCacheResponseV3';
|
|
1
2
|
import type { EdgeLocationV3 } from '../schemas/EdgeLocationV3';
|
|
2
3
|
export interface EdgeResolveResponseV3 {
|
|
3
4
|
action: 'deny' | 'not_found' | 'pass' | 'serve';
|
|
5
|
+
cache_response?: EdgeCacheResponseV3;
|
|
4
6
|
cache_tags?: string[];
|
|
5
7
|
/**
|
|
6
8
|
* Hex MD5 of the file, served as x-checksum-md5 when present.
|
|
@@ -5,6 +5,17 @@ import type { FilterInputTypeV3 } from '../schemas/FilterInputTypeV3';
|
|
|
5
5
|
* Definition of a filter that can be applied when listing a resource.
|
|
6
6
|
*/
|
|
7
7
|
export interface FilterDefinitionV3 {
|
|
8
|
+
/**
|
|
9
|
+
* Per-condition overrides of `field`, keyed by a `FilterConditionV3`
|
|
10
|
+
* from `conditions`. A condition without an entry uses `field`. For
|
|
11
|
+
* example the VERSION `registry` filter matches `registryId` for
|
|
12
|
+
* `EQ`/`NE` and `registryName` for `CONTAINS`.
|
|
13
|
+
*
|
|
14
|
+
* @example {"CONTAINS":"registryName"}
|
|
15
|
+
*/
|
|
16
|
+
conditionFields?: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
8
19
|
/**
|
|
9
20
|
* Comparison conditions supported by this filter.
|
|
10
21
|
*/
|