@harnessio/react-har-service-client 0.72.0 → 0.74.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/useListPrincipalsV3Query.d.ts +32 -0
- package/dist/har-service/src/services/hooks/useListPrincipalsV3Query.js +14 -0
- package/dist/har-service/src/services/hooks/useListVersionsV3Query.d.ts +1 -0
- package/dist/har-service/src/services/index.d.ts +6 -0
- package/dist/har-service/src/services/index.js +1 -0
- package/dist/har-service/src/services/responses/ListPrincipalsResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/ListPrincipalsResponseV3Response.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +2 -1
- package/dist/har-service/src/services/schemas/ExemptionStatusV3.d.ts +2 -2
- package/dist/har-service/src/services/schemas/ListPrincipalsResponseBodyV3.d.ts +5 -0
- package/dist/har-service/src/services/schemas/ListPrincipalsResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/PackageV3.d.ts +1 -0
- package/dist/har-service/src/services/schemas/PrincipalTypeV3.d.ts +6 -0
- package/dist/har-service/src/services/schemas/PrincipalTypeV3.js +4 -0
- package/dist/har-service/src/services/schemas/PrincipalV3.d.ts +21 -0
- package/dist/har-service/src/services/schemas/PrincipalV3.js +1 -0
- package/dist/har-service/src/services/schemas/RegistryV3.d.ts +1 -0
- package/dist/har-service/src/services/schemas/VersionV3.d.ts +5 -2
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListPrincipalsResponseV3Response } from '../responses/ListPrincipalsResponseV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListPrincipalsV3QueryQueryParams {
|
|
7
|
+
account_identifier: string;
|
|
8
|
+
org_identifier?: string;
|
|
9
|
+
project_identifier?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @format int64
|
|
12
|
+
* @default 0
|
|
13
|
+
*/
|
|
14
|
+
page?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @format int64
|
|
17
|
+
* @default 20
|
|
18
|
+
*/
|
|
19
|
+
size?: number;
|
|
20
|
+
search_term?: string;
|
|
21
|
+
principal_type?: 'USER';
|
|
22
|
+
}
|
|
23
|
+
export type ListPrincipalsV3OkResponse = ResponseWithPagination<ListPrincipalsResponseV3Response>;
|
|
24
|
+
export type ListPrincipalsV3ErrorResponse = ErrorV3;
|
|
25
|
+
export interface ListPrincipalsV3Props extends Omit<FetcherOptions<ListPrincipalsV3QueryQueryParams, unknown>, 'url'> {
|
|
26
|
+
queryParams: ListPrincipalsV3QueryQueryParams;
|
|
27
|
+
}
|
|
28
|
+
export declare function listPrincipalsV3(props: ListPrincipalsV3Props): Promise<ListPrincipalsV3OkResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Lists Principals
|
|
31
|
+
*/
|
|
32
|
+
export declare function useListPrincipalsV3Query(props: ListPrincipalsV3Props, options?: Omit<UseQueryOptions<ListPrincipalsV3OkResponse, ListPrincipalsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListPrincipalsV3OkResponse, ErrorV3>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function listPrincipalsV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/principals`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists Principals
|
|
11
|
+
*/
|
|
12
|
+
export function useListPrincipalsV3Query(props, options) {
|
|
13
|
+
return useQuery(['ListPrincipalsV3', props.queryParams], ({ signal }) => listPrincipalsV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -28,6 +28,7 @@ export interface ListVersionsV3QueryQueryParams {
|
|
|
28
28
|
sort?: string;
|
|
29
29
|
search_term?: string;
|
|
30
30
|
include_meta?: boolean;
|
|
31
|
+
uploaded_by?: number[];
|
|
31
32
|
}
|
|
32
33
|
export type ListVersionsV3OkResponse = ResponseWithPagination<ListVersionResponseV3Response>;
|
|
33
34
|
export type ListVersionsV3ErrorResponse = ErrorV3;
|
|
@@ -191,6 +191,8 @@ export type { ListPackagesV3ErrorResponse, ListPackagesV3OkResponse, ListPackage
|
|
|
191
191
|
export { listPackagesV3, useListPackagesV3Query } from './hooks/useListPackagesV3Query';
|
|
192
192
|
export type { ListPipelineBuildInfoDetailsV3ErrorResponse, ListPipelineBuildInfoDetailsV3OkResponse, ListPipelineBuildInfoDetailsV3Props, ListPipelineBuildInfoDetailsV3QueryQueryParams, } from './hooks/useListPipelineBuildInfoDetailsV3Query';
|
|
193
193
|
export { listPipelineBuildInfoDetailsV3, useListPipelineBuildInfoDetailsV3Query, } from './hooks/useListPipelineBuildInfoDetailsV3Query';
|
|
194
|
+
export type { ListPrincipalsV3ErrorResponse, ListPrincipalsV3OkResponse, ListPrincipalsV3Props, ListPrincipalsV3QueryQueryParams, } from './hooks/useListPrincipalsV3Query';
|
|
195
|
+
export { listPrincipalsV3, useListPrincipalsV3Query } from './hooks/useListPrincipalsV3Query';
|
|
194
196
|
export type { ListRegistriesErrorResponse, ListRegistriesOkResponse, ListRegistriesProps, ListRegistriesQueryQueryParams, } from './hooks/useListRegistriesQuery';
|
|
195
197
|
export { listRegistries, useListRegistriesQuery } from './hooks/useListRegistriesQuery';
|
|
196
198
|
export type { ListRegistriesV3ErrorResponse, ListRegistriesV3OkResponse, ListRegistriesV3Props, ListRegistriesV3QueryQueryParams, } from './hooks/useListRegistriesV3Query';
|
|
@@ -352,6 +354,7 @@ export type { ListOciArtifactTagsResponseResponse } from './responses/ListOciArt
|
|
|
352
354
|
export type { ListPackageResponseResponse } from './responses/ListPackageResponseResponse';
|
|
353
355
|
export type { ListPackageResponseV3Response } from './responses/ListPackageResponseV3Response';
|
|
354
356
|
export type { ListPipelineBuildInfoDetailsResponseV3Response } from './responses/ListPipelineBuildInfoDetailsResponseV3Response';
|
|
357
|
+
export type { ListPrincipalsResponseV3Response } from './responses/ListPrincipalsResponseV3Response';
|
|
355
358
|
export type { ListRegistryArtifactResponseResponse } from './responses/ListRegistryArtifactResponseResponse';
|
|
356
359
|
export type { ListRegistryResponseResponse } from './responses/ListRegistryResponseResponse';
|
|
357
360
|
export type { ListRegistryResponseV3Response } from './responses/ListRegistryResponseV3Response';
|
|
@@ -526,6 +529,7 @@ export type { ListOciArtifactTags } from './schemas/ListOciArtifactTags';
|
|
|
526
529
|
export type { ListPackage } from './schemas/ListPackage';
|
|
527
530
|
export type { ListPackagesResponseBodyV3 } from './schemas/ListPackagesResponseBodyV3';
|
|
528
531
|
export type { ListPipelineBuildInfoDetailsResponseBodyV3 } from './schemas/ListPipelineBuildInfoDetailsResponseBodyV3';
|
|
532
|
+
export type { ListPrincipalsResponseBodyV3 } from './schemas/ListPrincipalsResponseBodyV3';
|
|
529
533
|
export type { ListRegistriesResponseBodyV3 } from './schemas/ListRegistriesResponseBodyV3';
|
|
530
534
|
export type { ListRegistry } from './schemas/ListRegistry';
|
|
531
535
|
export type { ListRegistryArtifact } from './schemas/ListRegistryArtifact';
|
|
@@ -571,6 +575,8 @@ export type { PolicyFailureDetailCategoryV3 } from './schemas/PolicyFailureDetai
|
|
|
571
575
|
export type { PolicyFailureDetailV3 } from './schemas/PolicyFailureDetailV3';
|
|
572
576
|
export type { PolicySetFailureDetailV3 } from './schemas/PolicySetFailureDetailV3';
|
|
573
577
|
export type { PolicySetsV3 } from './schemas/PolicySetsV3';
|
|
578
|
+
export type { PrincipalTypeV3 } from './schemas/PrincipalTypeV3';
|
|
579
|
+
export type { PrincipalV3 } from './schemas/PrincipalV3';
|
|
574
580
|
export type { ProjectIdentifier } from './schemas/ProjectIdentifier';
|
|
575
581
|
export type { PuppetArtifactDetailConfig } from './schemas/PuppetArtifactDetailConfig';
|
|
576
582
|
export type { PythonArtifactDetailConfig } from './schemas/PythonArtifactDetailConfig';
|
|
@@ -94,6 +94,7 @@ export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useLi
|
|
|
94
94
|
export { listPackages, useListPackagesQuery } from './hooks/useListPackagesQuery';
|
|
95
95
|
export { listPackagesV3, useListPackagesV3Query } from './hooks/useListPackagesV3Query';
|
|
96
96
|
export { listPipelineBuildInfoDetailsV3, useListPipelineBuildInfoDetailsV3Query, } from './hooks/useListPipelineBuildInfoDetailsV3Query';
|
|
97
|
+
export { listPrincipalsV3, useListPrincipalsV3Query } from './hooks/useListPrincipalsV3Query';
|
|
97
98
|
export { listRegistries, useListRegistriesQuery } from './hooks/useListRegistriesQuery';
|
|
98
99
|
export { listRegistriesV3, useListRegistriesV3Query } from './hooks/useListRegistriesV3Query';
|
|
99
100
|
export { listRegistryFilesV3, useListRegistryFilesV3Query, } from './hooks/useListRegistryFilesV3Query';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -15,10 +15,11 @@ export interface ArtifactVersionSummary {
|
|
|
15
15
|
deletedAt?: string;
|
|
16
16
|
firewallMode?: 'ALLOW' | 'ENABLED' | 'QUARANTINE';
|
|
17
17
|
imageName: string;
|
|
18
|
+
imageUUID: string;
|
|
18
19
|
isQuarantined?: boolean;
|
|
19
20
|
lastScannedAt?: string;
|
|
20
21
|
packageType: PackageType;
|
|
21
|
-
purl
|
|
22
|
+
purl?: string;
|
|
22
23
|
quarantineReason?: string;
|
|
23
24
|
registryType?: RegistryType;
|
|
24
25
|
registryUUID: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CreatedAtMsV3 } from '../schemas/CreatedAtMsV3';
|
|
2
2
|
/**
|
|
3
|
-
* Exemption status for an artifact, showing if an exception exists
|
|
3
|
+
* Exemption status for an artifact, showing if an exception exists.
|
|
4
4
|
*/
|
|
5
5
|
export interface ExemptionStatusV3 {
|
|
6
6
|
createdAt: CreatedAtMsV3;
|
|
@@ -13,5 +13,5 @@ export interface ExemptionStatusV3 {
|
|
|
13
13
|
/**
|
|
14
14
|
* Current status of the exception.
|
|
15
15
|
*/
|
|
16
|
-
status: 'APPROVED' | 'PENDING';
|
|
16
|
+
status: 'APPROVED' | 'EXPIRED' | 'PENDING' | 'REJECTED';
|
|
17
17
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
|
|
2
|
+
import type { PrincipalTypeV3 } from '../schemas/PrincipalTypeV3';
|
|
3
|
+
/**
|
|
4
|
+
* Principal information (user or service account)
|
|
5
|
+
*/
|
|
6
|
+
export interface PrincipalV3 {
|
|
7
|
+
createdAt: ModifiedAtMsV3;
|
|
8
|
+
/**
|
|
9
|
+
* @example "John Doe"
|
|
10
|
+
*/
|
|
11
|
+
displayName?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @format int64
|
|
15
|
+
* @example 123
|
|
16
|
+
*/
|
|
17
|
+
id: number;
|
|
18
|
+
type: PrincipalTypeV3;
|
|
19
|
+
uid: string;
|
|
20
|
+
updatedAt: ModifiedAtMsV3;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
|
|
2
2
|
import type { UserInfoV3 } from '../schemas/UserInfoV3';
|
|
3
|
+
import type { DeletedAtMsV3 } from '../schemas/DeletedAtMsV3';
|
|
3
4
|
import type { DeploymentMetadataV3 } from '../schemas/DeploymentMetadataV3';
|
|
4
5
|
import type { FirewallModeV3 } from '../schemas/FirewallModeV3';
|
|
5
6
|
import type { ResourceMetadataV3 } from '../schemas/ResourceMetadataV3';
|
|
6
|
-
import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
|
|
7
7
|
import type { PackageKindV3 } from '../schemas/PackageKindV3';
|
|
8
8
|
import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
|
|
9
9
|
import type { RegistryTypeV3 } from '../schemas/RegistryTypeV3';
|
|
@@ -15,6 +15,8 @@ export interface VersionV3 {
|
|
|
15
15
|
artifactKey?: {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
};
|
|
18
|
+
createdAt?: ModifiedAtMsV3;
|
|
19
|
+
createdBy?: UserInfoV3;
|
|
18
20
|
deletedAt?: DeletedAtMsV3;
|
|
19
21
|
deletedBy?: UserInfoV3;
|
|
20
22
|
deploymentMetadata?: DeploymentMetadataV3;
|
|
@@ -33,6 +35,7 @@ export interface VersionV3 {
|
|
|
33
35
|
lastScannedAt?: string;
|
|
34
36
|
metadata?: ResourceMetadataV3;
|
|
35
37
|
modifiedAt?: ModifiedAtMsV3;
|
|
38
|
+
modifiedBy?: UserInfoV3;
|
|
36
39
|
name: string;
|
|
37
40
|
/**
|
|
38
41
|
* @format uuid
|