@harnessio/react-har-service-client 0.73.0 → 0.75.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 (66) hide show
  1. package/dist/har-service/src/services/hooks/useGetConanPackageDetailV3Query.d.ts +23 -0
  2. package/dist/har-service/src/services/hooks/useGetConanPackageDetailV3Query.js +20 -0
  3. package/dist/har-service/src/services/hooks/useGetConanPackageRevisionDetailV3Query.d.ts +24 -0
  4. package/dist/har-service/src/services/hooks/useGetConanPackageRevisionDetailV3Query.js +21 -0
  5. package/dist/har-service/src/services/hooks/useGetConanRecipeRevisionDetailV3Query.d.ts +22 -0
  6. package/dist/har-service/src/services/hooks/useGetConanRecipeRevisionDetailV3Query.js +14 -0
  7. package/dist/har-service/src/services/hooks/useGetFilePreviewV3Query.d.ts +24 -0
  8. package/dist/har-service/src/services/hooks/useGetFilePreviewV3Query.js +15 -0
  9. package/dist/har-service/src/services/hooks/useListConanPackageRevisionsV3Query.d.ts +33 -0
  10. package/dist/har-service/src/services/hooks/useListConanPackageRevisionsV3Query.js +20 -0
  11. package/dist/har-service/src/services/hooks/useListConanPackagesV3Query.d.ts +32 -0
  12. package/dist/har-service/src/services/hooks/useListConanPackagesV3Query.js +14 -0
  13. package/dist/har-service/src/services/hooks/useListConanRecipeRevisionsV3Query.d.ts +31 -0
  14. package/dist/har-service/src/services/hooks/useListConanRecipeRevisionsV3Query.js +14 -0
  15. package/dist/har-service/src/services/hooks/useListPrincipalsV3Query.d.ts +32 -0
  16. package/dist/har-service/src/services/hooks/useListPrincipalsV3Query.js +14 -0
  17. package/dist/har-service/src/services/hooks/useListVersionsV3Query.d.ts +1 -0
  18. package/dist/har-service/src/services/index.d.ts +37 -0
  19. package/dist/har-service/src/services/index.js +8 -0
  20. package/dist/har-service/src/services/responses/ConanPackageDetailResponseV3Response.d.ts +4 -0
  21. package/dist/har-service/src/services/responses/ConanPackageDetailResponseV3Response.js +1 -0
  22. package/dist/har-service/src/services/responses/ConanPackageRevisionDetailResponseV3Response.d.ts +4 -0
  23. package/dist/har-service/src/services/responses/ConanPackageRevisionDetailResponseV3Response.js +1 -0
  24. package/dist/har-service/src/services/responses/ConanPackageRevisionsResponseV3Response.d.ts +2 -0
  25. package/dist/har-service/src/services/responses/ConanPackageRevisionsResponseV3Response.js +1 -0
  26. package/dist/har-service/src/services/responses/ConanPackagesResponseV3Response.d.ts +2 -0
  27. package/dist/har-service/src/services/responses/ConanPackagesResponseV3Response.js +1 -0
  28. package/dist/har-service/src/services/responses/ConanRecipeRevisionDetailResponseV3Response.d.ts +4 -0
  29. package/dist/har-service/src/services/responses/ConanRecipeRevisionDetailResponseV3Response.js +1 -0
  30. package/dist/har-service/src/services/responses/ConanRecipeRevisionsResponseV3Response.d.ts +2 -0
  31. package/dist/har-service/src/services/responses/ConanRecipeRevisionsResponseV3Response.js +1 -0
  32. package/dist/har-service/src/services/responses/FilePreviewResponseV3Response.d.ts +2 -0
  33. package/dist/har-service/src/services/responses/FilePreviewResponseV3Response.js +1 -0
  34. package/dist/har-service/src/services/responses/ListPrincipalsResponseV3Response.d.ts +2 -0
  35. package/dist/har-service/src/services/responses/ListPrincipalsResponseV3Response.js +1 -0
  36. package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +2 -1
  37. package/dist/har-service/src/services/schemas/ConanArtifactDetailConfig.d.ts +8 -0
  38. package/dist/har-service/src/services/schemas/ConanArtifactDetailConfig.js +4 -0
  39. package/dist/har-service/src/services/schemas/ConanPackageDetailV3.d.ts +35 -0
  40. package/dist/har-service/src/services/schemas/ConanPackageDetailV3.js +4 -0
  41. package/dist/har-service/src/services/schemas/ConanPackageMetadataV3.d.ts +29 -0
  42. package/dist/har-service/src/services/schemas/ConanPackageMetadataV3.js +4 -0
  43. package/dist/har-service/src/services/schemas/ConanPackageRevisionDetailV3.d.ts +21 -0
  44. package/dist/har-service/src/services/schemas/ConanPackageRevisionDetailV3.js +1 -0
  45. package/dist/har-service/src/services/schemas/ConanRecipeRevisionDetailV3.d.ts +33 -0
  46. package/dist/har-service/src/services/schemas/ConanRecipeRevisionDetailV3.js +4 -0
  47. package/dist/har-service/src/services/schemas/FilePreviewDataV3.d.ts +30 -0
  48. package/dist/har-service/src/services/schemas/FilePreviewDataV3.js +4 -0
  49. package/dist/har-service/src/services/schemas/FilePreviewResponseBodyV3.d.ts +7 -0
  50. package/dist/har-service/src/services/schemas/FilePreviewResponseBodyV3.js +1 -0
  51. package/dist/har-service/src/services/schemas/ListConanPackageRevisionsResponseBodyV3.d.ts +5 -0
  52. package/dist/har-service/src/services/schemas/ListConanPackageRevisionsResponseBodyV3.js +1 -0
  53. package/dist/har-service/src/services/schemas/ListConanPackagesResponseBodyV3.d.ts +5 -0
  54. package/dist/har-service/src/services/schemas/ListConanPackagesResponseBodyV3.js +1 -0
  55. package/dist/har-service/src/services/schemas/ListConanRecipeRevisionsResponseBodyV3.d.ts +5 -0
  56. package/dist/har-service/src/services/schemas/ListConanRecipeRevisionsResponseBodyV3.js +1 -0
  57. package/dist/har-service/src/services/schemas/ListPrincipalsResponseBodyV3.d.ts +5 -0
  58. package/dist/har-service/src/services/schemas/ListPrincipalsResponseBodyV3.js +1 -0
  59. package/dist/har-service/src/services/schemas/PackageV3.d.ts +1 -0
  60. package/dist/har-service/src/services/schemas/PrincipalTypeV3.d.ts +6 -0
  61. package/dist/har-service/src/services/schemas/PrincipalTypeV3.js +4 -0
  62. package/dist/har-service/src/services/schemas/PrincipalV3.d.ts +21 -0
  63. package/dist/har-service/src/services/schemas/PrincipalV3.js +1 -0
  64. package/dist/har-service/src/services/schemas/RegistryV3.d.ts +1 -0
  65. package/dist/har-service/src/services/schemas/VersionV3.d.ts +5 -2
  66. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ConanPackageDetailResponseV3Response } from '../responses/ConanPackageDetailResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetConanPackageDetailV3QueryPathParams {
7
+ id: string;
8
+ recipe_revision: string;
9
+ package_id: string;
10
+ }
11
+ export interface GetConanPackageDetailV3QueryQueryParams {
12
+ account_identifier: string;
13
+ }
14
+ export type GetConanPackageDetailV3OkResponse = ResponseWithPagination<ConanPackageDetailResponseV3Response>;
15
+ export type GetConanPackageDetailV3ErrorResponse = ErrorV3;
16
+ export interface GetConanPackageDetailV3Props extends GetConanPackageDetailV3QueryPathParams, Omit<FetcherOptions<GetConanPackageDetailV3QueryQueryParams, unknown>, 'url'> {
17
+ queryParams: GetConanPackageDetailV3QueryQueryParams;
18
+ }
19
+ export declare function getConanPackageDetailV3(props: GetConanPackageDetailV3Props): Promise<GetConanPackageDetailV3OkResponse>;
20
+ /**
21
+ * Get a Conan package (PKGID) detail with its package revisions.
22
+ */
23
+ export declare function useGetConanPackageDetailV3Query(props: GetConanPackageDetailV3Props, options?: Omit<UseQueryOptions<GetConanPackageDetailV3OkResponse, GetConanPackageDetailV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetConanPackageDetailV3OkResponse, ErrorV3>;
@@ -0,0 +1,20 @@
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 getConanPackageDetailV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/versions/${props.id}/conan/recipe-revisions/${props.recipe_revision}/packages/${props.package_id}/details`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get a Conan package (PKGID) detail with its package revisions.
11
+ */
12
+ export function useGetConanPackageDetailV3Query(props, options) {
13
+ return useQuery([
14
+ 'GetConanPackageDetailV3',
15
+ props.id,
16
+ props.recipe_revision,
17
+ props.package_id,
18
+ props.queryParams,
19
+ ], ({ signal }) => getConanPackageDetailV3(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ConanPackageRevisionDetailResponseV3Response } from '../responses/ConanPackageRevisionDetailResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetConanPackageRevisionDetailV3QueryPathParams {
7
+ id: string;
8
+ recipe_revision: string;
9
+ package_id: string;
10
+ package_revision: string;
11
+ }
12
+ export interface GetConanPackageRevisionDetailV3QueryQueryParams {
13
+ account_identifier: string;
14
+ }
15
+ export type GetConanPackageRevisionDetailV3OkResponse = ResponseWithPagination<ConanPackageRevisionDetailResponseV3Response>;
16
+ export type GetConanPackageRevisionDetailV3ErrorResponse = ErrorV3;
17
+ export interface GetConanPackageRevisionDetailV3Props extends GetConanPackageRevisionDetailV3QueryPathParams, Omit<FetcherOptions<GetConanPackageRevisionDetailV3QueryQueryParams, unknown>, 'url'> {
18
+ queryParams: GetConanPackageRevisionDetailV3QueryQueryParams;
19
+ }
20
+ export declare function getConanPackageRevisionDetailV3(props: GetConanPackageRevisionDetailV3Props): Promise<GetConanPackageRevisionDetailV3OkResponse>;
21
+ /**
22
+ * Get a Conan package revision (PREV) detail.
23
+ */
24
+ export declare function useGetConanPackageRevisionDetailV3Query(props: GetConanPackageRevisionDetailV3Props, options?: Omit<UseQueryOptions<GetConanPackageRevisionDetailV3OkResponse, GetConanPackageRevisionDetailV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetConanPackageRevisionDetailV3OkResponse, ErrorV3>;
@@ -0,0 +1,21 @@
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 getConanPackageRevisionDetailV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/versions/${props.id}/conan/recipe-revisions/${props.recipe_revision}/packages/${props.package_id}/package-revisions/${props.package_revision}/details`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get a Conan package revision (PREV) detail.
11
+ */
12
+ export function useGetConanPackageRevisionDetailV3Query(props, options) {
13
+ return useQuery([
14
+ 'GetConanPackageRevisionDetailV3',
15
+ props.id,
16
+ props.recipe_revision,
17
+ props.package_id,
18
+ props.package_revision,
19
+ props.queryParams,
20
+ ], ({ signal }) => getConanPackageRevisionDetailV3(Object.assign(Object.assign({}, props), { signal })), options);
21
+ }
@@ -0,0 +1,22 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ConanRecipeRevisionDetailResponseV3Response } from '../responses/ConanRecipeRevisionDetailResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetConanRecipeRevisionDetailV3QueryPathParams {
7
+ id: string;
8
+ recipe_revision: string;
9
+ }
10
+ export interface GetConanRecipeRevisionDetailV3QueryQueryParams {
11
+ account_identifier: string;
12
+ }
13
+ export type GetConanRecipeRevisionDetailV3OkResponse = ResponseWithPagination<ConanRecipeRevisionDetailResponseV3Response>;
14
+ export type GetConanRecipeRevisionDetailV3ErrorResponse = ErrorV3;
15
+ export interface GetConanRecipeRevisionDetailV3Props extends GetConanRecipeRevisionDetailV3QueryPathParams, Omit<FetcherOptions<GetConanRecipeRevisionDetailV3QueryQueryParams, unknown>, 'url'> {
16
+ queryParams: GetConanRecipeRevisionDetailV3QueryQueryParams;
17
+ }
18
+ export declare function getConanRecipeRevisionDetailV3(props: GetConanRecipeRevisionDetailV3Props): Promise<GetConanRecipeRevisionDetailV3OkResponse>;
19
+ /**
20
+ * Get a Conan recipe revision (RREV) detail.
21
+ */
22
+ export declare function useGetConanRecipeRevisionDetailV3Query(props: GetConanRecipeRevisionDetailV3Props, options?: Omit<UseQueryOptions<GetConanRecipeRevisionDetailV3OkResponse, GetConanRecipeRevisionDetailV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetConanRecipeRevisionDetailV3OkResponse, 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 getConanRecipeRevisionDetailV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/versions/${props.id}/conan/recipe-revisions/${props.recipe_revision}/details`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get a Conan recipe revision (RREV) detail.
11
+ */
12
+ export function useGetConanRecipeRevisionDetailV3Query(props, options) {
13
+ return useQuery(['GetConanRecipeRevisionDetailV3', props.id, props.recipe_revision, props.queryParams], ({ signal }) => getConanRecipeRevisionDetailV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { FilePreviewResponseV3Response } from '../responses/FilePreviewResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetFilePreviewV3QueryPathParams {
7
+ id: string;
8
+ }
9
+ export interface GetFilePreviewV3QueryQueryParams {
10
+ account_identifier: string;
11
+ org_identifier?: string;
12
+ project_identifier?: string;
13
+ }
14
+ export type GetFilePreviewV3OkResponse = ResponseWithPagination<FilePreviewResponseV3Response>;
15
+ export type GetFilePreviewV3ErrorResponse = ErrorV3;
16
+ export interface GetFilePreviewV3Props extends GetFilePreviewV3QueryPathParams, Omit<FetcherOptions<GetFilePreviewV3QueryQueryParams, unknown>, 'url'> {
17
+ queryParams: GetFilePreviewV3QueryQueryParams;
18
+ }
19
+ export declare function getFilePreviewV3(props: GetFilePreviewV3Props): Promise<GetFilePreviewV3OkResponse>;
20
+ /**
21
+ * Returns a URL for rendering a file inline in the browser. For cloud (S3/GCS) deployments the URL is a presigned URL with inline Content-Disposition and a forced Content-Type baked in, expiring after 20 minutes. For filesystem deployments the URL routes back through the protocol API with preview=true and relies on the caller's session. The endpoint enforces the preview allowlist and a configured maximum size before returning a URL.
22
+ *
23
+ */
24
+ export declare function useGetFilePreviewV3Query(props: GetFilePreviewV3Props, options?: Omit<UseQueryOptions<GetFilePreviewV3OkResponse, GetFilePreviewV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFilePreviewV3OkResponse, ErrorV3>;
@@ -0,0 +1,15 @@
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 getFilePreviewV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/files/${props.id}/preview`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns a URL for rendering a file inline in the browser. For cloud (S3/GCS) deployments the URL is a presigned URL with inline Content-Disposition and a forced Content-Type baked in, expiring after 20 minutes. For filesystem deployments the URL routes back through the protocol API with preview=true and relies on the caller's session. The endpoint enforces the preview allowlist and a configured maximum size before returning a URL.
11
+ *
12
+ */
13
+ export function useGetFilePreviewV3Query(props, options) {
14
+ return useQuery(['GetFilePreviewV3', props.id, props.queryParams], ({ signal }) => getFilePreviewV3(Object.assign(Object.assign({}, props), { signal })), options);
15
+ }
@@ -0,0 +1,33 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ConanPackageRevisionsResponseV3Response } from '../responses/ConanPackageRevisionsResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListConanPackageRevisionsV3QueryPathParams {
7
+ id: string;
8
+ recipe_revision: string;
9
+ package_id: string;
10
+ }
11
+ export interface ListConanPackageRevisionsV3QueryQueryParams {
12
+ account_identifier: string;
13
+ /**
14
+ * @format int64
15
+ * @default 0
16
+ */
17
+ page?: number;
18
+ /**
19
+ * @format int64
20
+ * @default 20
21
+ */
22
+ size?: number;
23
+ }
24
+ export type ListConanPackageRevisionsV3OkResponse = ResponseWithPagination<ConanPackageRevisionsResponseV3Response>;
25
+ export type ListConanPackageRevisionsV3ErrorResponse = ErrorV3;
26
+ export interface ListConanPackageRevisionsV3Props extends ListConanPackageRevisionsV3QueryPathParams, Omit<FetcherOptions<ListConanPackageRevisionsV3QueryQueryParams, unknown>, 'url'> {
27
+ queryParams: ListConanPackageRevisionsV3QueryQueryParams;
28
+ }
29
+ export declare function listConanPackageRevisionsV3(props: ListConanPackageRevisionsV3Props): Promise<ListConanPackageRevisionsV3OkResponse>;
30
+ /**
31
+ * List the package revisions (PREVs) under a Conan package.
32
+ */
33
+ export declare function useListConanPackageRevisionsV3Query(props: ListConanPackageRevisionsV3Props, options?: Omit<UseQueryOptions<ListConanPackageRevisionsV3OkResponse, ListConanPackageRevisionsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListConanPackageRevisionsV3OkResponse, ErrorV3>;
@@ -0,0 +1,20 @@
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 listConanPackageRevisionsV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/versions/${props.id}/conan/recipe-revisions/${props.recipe_revision}/packages/${props.package_id}/package-revisions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List the package revisions (PREVs) under a Conan package.
11
+ */
12
+ export function useListConanPackageRevisionsV3Query(props, options) {
13
+ return useQuery([
14
+ 'ListConanPackageRevisionsV3',
15
+ props.id,
16
+ props.recipe_revision,
17
+ props.package_id,
18
+ props.queryParams,
19
+ ], ({ signal }) => listConanPackageRevisionsV3(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -0,0 +1,32 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ConanPackagesResponseV3Response } from '../responses/ConanPackagesResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListConanPackagesV3QueryPathParams {
7
+ id: string;
8
+ recipe_revision: string;
9
+ }
10
+ export interface ListConanPackagesV3QueryQueryParams {
11
+ account_identifier: string;
12
+ /**
13
+ * @format int64
14
+ * @default 0
15
+ */
16
+ page?: number;
17
+ /**
18
+ * @format int64
19
+ * @default 20
20
+ */
21
+ size?: number;
22
+ }
23
+ export type ListConanPackagesV3OkResponse = ResponseWithPagination<ConanPackagesResponseV3Response>;
24
+ export type ListConanPackagesV3ErrorResponse = ErrorV3;
25
+ export interface ListConanPackagesV3Props extends ListConanPackagesV3QueryPathParams, Omit<FetcherOptions<ListConanPackagesV3QueryQueryParams, unknown>, 'url'> {
26
+ queryParams: ListConanPackagesV3QueryQueryParams;
27
+ }
28
+ export declare function listConanPackagesV3(props: ListConanPackagesV3Props): Promise<ListConanPackagesV3OkResponse>;
29
+ /**
30
+ * List the packages (PKGIDs) under a Conan recipe revision.
31
+ */
32
+ export declare function useListConanPackagesV3Query(props: ListConanPackagesV3Props, options?: Omit<UseQueryOptions<ListConanPackagesV3OkResponse, ListConanPackagesV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListConanPackagesV3OkResponse, 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 listConanPackagesV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/versions/${props.id}/conan/recipe-revisions/${props.recipe_revision}/packages`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List the packages (PKGIDs) under a Conan recipe revision.
11
+ */
12
+ export function useListConanPackagesV3Query(props, options) {
13
+ return useQuery(['ListConanPackagesV3', props.id, props.recipe_revision, props.queryParams], ({ signal }) => listConanPackagesV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,31 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ConanRecipeRevisionsResponseV3Response } from '../responses/ConanRecipeRevisionsResponseV3Response';
3
+ import type { ErrorV3 } from '../schemas/ErrorV3';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListConanRecipeRevisionsV3QueryPathParams {
7
+ id: string;
8
+ }
9
+ export interface ListConanRecipeRevisionsV3QueryQueryParams {
10
+ account_identifier: string;
11
+ /**
12
+ * @format int64
13
+ * @default 0
14
+ */
15
+ page?: number;
16
+ /**
17
+ * @format int64
18
+ * @default 20
19
+ */
20
+ size?: number;
21
+ }
22
+ export type ListConanRecipeRevisionsV3OkResponse = ResponseWithPagination<ConanRecipeRevisionsResponseV3Response>;
23
+ export type ListConanRecipeRevisionsV3ErrorResponse = ErrorV3;
24
+ export interface ListConanRecipeRevisionsV3Props extends ListConanRecipeRevisionsV3QueryPathParams, Omit<FetcherOptions<ListConanRecipeRevisionsV3QueryQueryParams, unknown>, 'url'> {
25
+ queryParams: ListConanRecipeRevisionsV3QueryQueryParams;
26
+ }
27
+ export declare function listConanRecipeRevisionsV3(props: ListConanRecipeRevisionsV3Props): Promise<ListConanRecipeRevisionsV3OkResponse>;
28
+ /**
29
+ * List finalized Conan recipe revisions for a version.
30
+ */
31
+ export declare function useListConanRecipeRevisionsV3Query(props: ListConanRecipeRevisionsV3Props, options?: Omit<UseQueryOptions<ListConanRecipeRevisionsV3OkResponse, ListConanRecipeRevisionsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListConanRecipeRevisionsV3OkResponse, 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 listConanRecipeRevisionsV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/versions/${props.id}/conan/recipe-revisions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List finalized Conan recipe revisions for a version.
11
+ */
12
+ export function useListConanRecipeRevisionsV3Query(props, options) {
13
+ return useQuery(['ListConanRecipeRevisionsV3', props.id, props.queryParams], ({ signal }) => listConanRecipeRevisionsV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -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;
@@ -109,6 +109,12 @@ export type { GetBulkScanEvaluationStatusV3ErrorResponse, GetBulkScanEvaluationS
109
109
  export { getBulkScanEvaluationStatusV3, useGetBulkScanEvaluationStatusV3Query, } from './hooks/useGetBulkScanEvaluationStatusV3Query';
110
110
  export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps, GetClientSetupDetailsQueryPathParams, GetClientSetupDetailsQueryQueryParams, } from './hooks/useGetClientSetupDetailsQuery';
111
111
  export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
112
+ export type { GetConanPackageDetailV3ErrorResponse, GetConanPackageDetailV3OkResponse, GetConanPackageDetailV3Props, GetConanPackageDetailV3QueryPathParams, GetConanPackageDetailV3QueryQueryParams, } from './hooks/useGetConanPackageDetailV3Query';
113
+ export { getConanPackageDetailV3, useGetConanPackageDetailV3Query, } from './hooks/useGetConanPackageDetailV3Query';
114
+ export type { GetConanPackageRevisionDetailV3ErrorResponse, GetConanPackageRevisionDetailV3OkResponse, GetConanPackageRevisionDetailV3Props, GetConanPackageRevisionDetailV3QueryPathParams, GetConanPackageRevisionDetailV3QueryQueryParams, } from './hooks/useGetConanPackageRevisionDetailV3Query';
115
+ export { getConanPackageRevisionDetailV3, useGetConanPackageRevisionDetailV3Query, } from './hooks/useGetConanPackageRevisionDetailV3Query';
116
+ export type { GetConanRecipeRevisionDetailV3ErrorResponse, GetConanRecipeRevisionDetailV3OkResponse, GetConanRecipeRevisionDetailV3Props, GetConanRecipeRevisionDetailV3QueryPathParams, GetConanRecipeRevisionDetailV3QueryQueryParams, } from './hooks/useGetConanRecipeRevisionDetailV3Query';
117
+ export { getConanRecipeRevisionDetailV3, useGetConanRecipeRevisionDetailV3Query, } from './hooks/useGetConanRecipeRevisionDetailV3Query';
112
118
  export type { GetDockerArtifactDetailsErrorResponse, GetDockerArtifactDetailsOkResponse, GetDockerArtifactDetailsProps, GetDockerArtifactDetailsQueryPathParams, GetDockerArtifactDetailsQueryQueryParams, } from './hooks/useGetDockerArtifactDetailsQuery';
113
119
  export { getDockerArtifactDetails, useGetDockerArtifactDetailsQuery, } from './hooks/useGetDockerArtifactDetailsQuery';
114
120
  export type { GetDockerArtifactIntegrationDetailsErrorResponse, GetDockerArtifactIntegrationDetailsOkResponse, GetDockerArtifactIntegrationDetailsProps, GetDockerArtifactIntegrationDetailsQueryPathParams, GetDockerArtifactIntegrationDetailsQueryQueryParams, } from './hooks/useGetDockerArtifactIntegrationDetailsQuery';
@@ -121,6 +127,8 @@ export type { GetDockerArtifactManifestsErrorResponse, GetDockerArtifactManifest
121
127
  export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from './hooks/useGetDockerArtifactManifestsQuery';
122
128
  export type { GetFileMetadataV3ErrorResponse, GetFileMetadataV3OkResponse, GetFileMetadataV3Props, GetFileMetadataV3QueryPathParams, GetFileMetadataV3QueryQueryParams, } from './hooks/useGetFileMetadataV3Query';
123
129
  export { getFileMetadataV3, useGetFileMetadataV3Query } from './hooks/useGetFileMetadataV3Query';
130
+ export type { GetFilePreviewV3ErrorResponse, GetFilePreviewV3OkResponse, GetFilePreviewV3Props, GetFilePreviewV3QueryPathParams, GetFilePreviewV3QueryQueryParams, } from './hooks/useGetFilePreviewV3Query';
131
+ export { getFilePreviewV3, useGetFilePreviewV3Query } from './hooks/useGetFilePreviewV3Query';
124
132
  export type { GetFileErrorResponse, GetFileOkResponse, GetFileProps, GetFileQueryPathParams, GetFileQueryQueryParams, } from './hooks/useGetFileQuery';
125
133
  export { getFile, useGetFileQuery } from './hooks/useGetFileQuery';
126
134
  export type { GetFileV3ErrorResponse, GetFileV3OkResponse, GetFileV3Props, GetFileV3QueryPathParams, GetFileV3QueryQueryParams, } from './hooks/useGetFileV3Query';
@@ -171,6 +179,12 @@ export type { InitiateBulkScanEvaluationV3ErrorResponse, InitiateBulkScanEvaluat
171
179
  export { initiateBulkScanEvaluationV3, useInitiateBulkScanEvaluationV3Mutation, } from './hooks/useInitiateBulkScanEvaluationV3Mutation';
172
180
  export type { ListArtifactLabelsErrorResponse, ListArtifactLabelsOkResponse, ListArtifactLabelsProps, ListArtifactLabelsQueryPathParams, ListArtifactLabelsQueryQueryParams, } from './hooks/useListArtifactLabelsQuery';
173
181
  export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
182
+ export type { ListConanPackageRevisionsV3ErrorResponse, ListConanPackageRevisionsV3OkResponse, ListConanPackageRevisionsV3Props, ListConanPackageRevisionsV3QueryPathParams, ListConanPackageRevisionsV3QueryQueryParams, } from './hooks/useListConanPackageRevisionsV3Query';
183
+ export { listConanPackageRevisionsV3, useListConanPackageRevisionsV3Query, } from './hooks/useListConanPackageRevisionsV3Query';
184
+ export type { ListConanPackagesV3ErrorResponse, ListConanPackagesV3OkResponse, ListConanPackagesV3Props, ListConanPackagesV3QueryPathParams, ListConanPackagesV3QueryQueryParams, } from './hooks/useListConanPackagesV3Query';
185
+ export { listConanPackagesV3, useListConanPackagesV3Query, } from './hooks/useListConanPackagesV3Query';
186
+ export type { ListConanRecipeRevisionsV3ErrorResponse, ListConanRecipeRevisionsV3OkResponse, ListConanRecipeRevisionsV3Props, ListConanRecipeRevisionsV3QueryPathParams, ListConanRecipeRevisionsV3QueryQueryParams, } from './hooks/useListConanRecipeRevisionsV3Query';
187
+ export { listConanRecipeRevisionsV3, useListConanRecipeRevisionsV3Query, } from './hooks/useListConanRecipeRevisionsV3Query';
174
188
  export type { ListFilesV3ErrorResponse, ListFilesV3OkResponse, ListFilesV3Props, ListFilesV3QueryQueryParams, } from './hooks/useListFilesV3Query';
175
189
  export { listFilesV3, useListFilesV3Query } from './hooks/useListFilesV3Query';
176
190
  export type { ListFirewallExceptionVersionsV3ErrorResponse, ListFirewallExceptionVersionsV3OkResponse, ListFirewallExceptionVersionsV3Props, ListFirewallExceptionVersionsV3QueryQueryParams, } from './hooks/useListFirewallExceptionVersionsV3Query';
@@ -191,6 +205,8 @@ export type { ListPackagesV3ErrorResponse, ListPackagesV3OkResponse, ListPackage
191
205
  export { listPackagesV3, useListPackagesV3Query } from './hooks/useListPackagesV3Query';
192
206
  export type { ListPipelineBuildInfoDetailsV3ErrorResponse, ListPipelineBuildInfoDetailsV3OkResponse, ListPipelineBuildInfoDetailsV3Props, ListPipelineBuildInfoDetailsV3QueryQueryParams, } from './hooks/useListPipelineBuildInfoDetailsV3Query';
193
207
  export { listPipelineBuildInfoDetailsV3, useListPipelineBuildInfoDetailsV3Query, } from './hooks/useListPipelineBuildInfoDetailsV3Query';
208
+ export type { ListPrincipalsV3ErrorResponse, ListPrincipalsV3OkResponse, ListPrincipalsV3Props, ListPrincipalsV3QueryQueryParams, } from './hooks/useListPrincipalsV3Query';
209
+ export { listPrincipalsV3, useListPrincipalsV3Query } from './hooks/useListPrincipalsV3Query';
194
210
  export type { ListRegistriesErrorResponse, ListRegistriesOkResponse, ListRegistriesProps, ListRegistriesQueryQueryParams, } from './hooks/useListRegistriesQuery';
195
211
  export { listRegistries, useListRegistriesQuery } from './hooks/useListRegistriesQuery';
196
212
  export type { ListRegistriesV3ErrorResponse, ListRegistriesV3OkResponse, ListRegistriesV3Props, ListRegistriesV3QueryQueryParams, } from './hooks/useListRegistriesV3Query';
@@ -313,6 +329,12 @@ export type { BadRequestResponse } from './responses/BadRequestResponse';
313
329
  export type { BulkScanEvaluationAcceptedV3Response } from './responses/BulkScanEvaluationAcceptedV3Response';
314
330
  export type { BulkScanEvaluationStatusResponseV3Response } from './responses/BulkScanEvaluationStatusResponseV3Response';
315
331
  export type { ClientSetupDetailsResponseResponse } from './responses/ClientSetupDetailsResponseResponse';
332
+ export type { ConanPackageDetailResponseV3Response } from './responses/ConanPackageDetailResponseV3Response';
333
+ export type { ConanPackageRevisionDetailResponseV3Response } from './responses/ConanPackageRevisionDetailResponseV3Response';
334
+ export type { ConanPackageRevisionsResponseV3Response } from './responses/ConanPackageRevisionsResponseV3Response';
335
+ export type { ConanPackagesResponseV3Response } from './responses/ConanPackagesResponseV3Response';
336
+ export type { ConanRecipeRevisionDetailResponseV3Response } from './responses/ConanRecipeRevisionDetailResponseV3Response';
337
+ export type { ConanRecipeRevisionsResponseV3Response } from './responses/ConanRecipeRevisionsResponseV3Response';
316
338
  export type { CopyResponseResponse } from './responses/CopyResponseResponse';
317
339
  export type { CreateBulkDownloadRequestAcceptedV3Response } from './responses/CreateBulkDownloadRequestAcceptedV3Response';
318
340
  export type { CreateBulkDownloadRequestResponseResponse } from './responses/CreateBulkDownloadRequestResponseResponse';
@@ -324,6 +346,7 @@ export type { DockerManifestsResponseResponse } from './responses/DockerManifest
324
346
  export type { DownloadFileResponseResponse } from './responses/DownloadFileResponseResponse';
325
347
  export type { DownloadFileResponseV3Response } from './responses/DownloadFileResponseV3Response';
326
348
  export type { FileDetailResponseResponse } from './responses/FileDetailResponseResponse';
349
+ export type { FilePreviewResponseV3Response } from './responses/FilePreviewResponseV3Response';
327
350
  export type { FirewallExceptionApprovedV3Response } from './responses/FirewallExceptionApprovedV3Response';
328
351
  export type { FirewallExceptionCreatedV3Response } from './responses/FirewallExceptionCreatedV3Response';
329
352
  export type { FirewallExceptionUpdatedV3Response } from './responses/FirewallExceptionUpdatedV3Response';
@@ -352,6 +375,7 @@ export type { ListOciArtifactTagsResponseResponse } from './responses/ListOciArt
352
375
  export type { ListPackageResponseResponse } from './responses/ListPackageResponseResponse';
353
376
  export type { ListPackageResponseV3Response } from './responses/ListPackageResponseV3Response';
354
377
  export type { ListPipelineBuildInfoDetailsResponseV3Response } from './responses/ListPipelineBuildInfoDetailsResponseV3Response';
378
+ export type { ListPrincipalsResponseV3Response } from './responses/ListPrincipalsResponseV3Response';
355
379
  export type { ListRegistryArtifactResponseResponse } from './responses/ListRegistryArtifactResponseResponse';
356
380
  export type { ListRegistryResponseResponse } from './responses/ListRegistryResponseResponse';
357
381
  export type { ListRegistryResponseV3Response } from './responses/ListRegistryResponseV3Response';
@@ -437,6 +461,11 @@ export type { ClientSetupStepConfig } from './schemas/ClientSetupStepConfig';
437
461
  export type { ClientSetupStepType } from './schemas/ClientSetupStepType';
438
462
  export type { CompletedAtMsV3 } from './schemas/CompletedAtMsV3';
439
463
  export type { ComposerArtifactDetailConfig } from './schemas/ComposerArtifactDetailConfig';
464
+ export type { ConanArtifactDetailConfig } from './schemas/ConanArtifactDetailConfig';
465
+ export type { ConanPackageDetailV3 } from './schemas/ConanPackageDetailV3';
466
+ export type { ConanPackageMetadataV3 } from './schemas/ConanPackageMetadataV3';
467
+ export type { ConanPackageRevisionDetailV3 } from './schemas/ConanPackageRevisionDetailV3';
468
+ export type { ConanRecipeRevisionDetailV3 } from './schemas/ConanRecipeRevisionDetailV3';
440
469
  export type { CondaArtifactDetailConfig } from './schemas/CondaArtifactDetailConfig';
441
470
  export type { CopyResourceItemV3 } from './schemas/CopyResourceItemV3';
442
471
  export type { CopySourceRefV3 } from './schemas/CopySourceRefV3';
@@ -468,6 +497,8 @@ export type { ExtraHeader } from './schemas/ExtraHeader';
468
497
  export type { FileDetail } from './schemas/FileDetail';
469
498
  export type { FileMetadata } from './schemas/FileMetadata';
470
499
  export type { FileMetadataV3 } from './schemas/FileMetadataV3';
500
+ export type { FilePreviewDataV3 } from './schemas/FilePreviewDataV3';
501
+ export type { FilePreviewResponseBodyV3 } from './schemas/FilePreviewResponseBodyV3';
471
502
  export type { FirewallExceptionApprovalRequestV3 } from './schemas/FirewallExceptionApprovalRequestV3';
472
503
  export type { FirewallExceptionCreateRequestV3 } from './schemas/FirewallExceptionCreateRequestV3';
473
504
  export type { FirewallExceptionMetaV3 } from './schemas/FirewallExceptionMetaV3';
@@ -513,6 +544,9 @@ export type { LifecycleStatsResponseV3 } from './schemas/LifecycleStatsResponseV
513
544
  export type { ListArtifact } from './schemas/ListArtifact';
514
545
  export type { ListArtifactLabel } from './schemas/ListArtifactLabel';
515
546
  export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
547
+ export type { ListConanPackageRevisionsResponseBodyV3 } from './schemas/ListConanPackageRevisionsResponseBodyV3';
548
+ export type { ListConanPackagesResponseBodyV3 } from './schemas/ListConanPackagesResponseBodyV3';
549
+ export type { ListConanRecipeRevisionsResponseBodyV3 } from './schemas/ListConanRecipeRevisionsResponseBodyV3';
516
550
  export type { ListFileDetail } from './schemas/ListFileDetail';
517
551
  export type { ListFilesResponseBodyV3 } from './schemas/ListFilesResponseBodyV3';
518
552
  export type { ListFirewallExceptionsResponseBodyV3 } from './schemas/ListFirewallExceptionsResponseBodyV3';
@@ -526,6 +560,7 @@ export type { ListOciArtifactTags } from './schemas/ListOciArtifactTags';
526
560
  export type { ListPackage } from './schemas/ListPackage';
527
561
  export type { ListPackagesResponseBodyV3 } from './schemas/ListPackagesResponseBodyV3';
528
562
  export type { ListPipelineBuildInfoDetailsResponseBodyV3 } from './schemas/ListPipelineBuildInfoDetailsResponseBodyV3';
563
+ export type { ListPrincipalsResponseBodyV3 } from './schemas/ListPrincipalsResponseBodyV3';
529
564
  export type { ListRegistriesResponseBodyV3 } from './schemas/ListRegistriesResponseBodyV3';
530
565
  export type { ListRegistry } from './schemas/ListRegistry';
531
566
  export type { ListRegistryArtifact } from './schemas/ListRegistryArtifact';
@@ -571,6 +606,8 @@ export type { PolicyFailureDetailCategoryV3 } from './schemas/PolicyFailureDetai
571
606
  export type { PolicyFailureDetailV3 } from './schemas/PolicyFailureDetailV3';
572
607
  export type { PolicySetFailureDetailV3 } from './schemas/PolicySetFailureDetailV3';
573
608
  export type { PolicySetsV3 } from './schemas/PolicySetsV3';
609
+ export type { PrincipalTypeV3 } from './schemas/PrincipalTypeV3';
610
+ export type { PrincipalV3 } from './schemas/PrincipalV3';
574
611
  export type { ProjectIdentifier } from './schemas/ProjectIdentifier';
575
612
  export type { PuppetArtifactDetailConfig } from './schemas/PuppetArtifactDetailConfig';
576
613
  export type { PythonArtifactDetailConfig } from './schemas/PythonArtifactDetailConfig';
@@ -53,12 +53,16 @@ export { getBulkDownloadRequestStatus, useGetBulkDownloadRequestStatusQuery, } f
53
53
  export { getBulkDownloadRequestStatusV3, useGetBulkDownloadRequestStatusV3Query, } from './hooks/useGetBulkDownloadRequestStatusV3Query';
54
54
  export { getBulkScanEvaluationStatusV3, useGetBulkScanEvaluationStatusV3Query, } from './hooks/useGetBulkScanEvaluationStatusV3Query';
55
55
  export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
56
+ export { getConanPackageDetailV3, useGetConanPackageDetailV3Query, } from './hooks/useGetConanPackageDetailV3Query';
57
+ export { getConanPackageRevisionDetailV3, useGetConanPackageRevisionDetailV3Query, } from './hooks/useGetConanPackageRevisionDetailV3Query';
58
+ export { getConanRecipeRevisionDetailV3, useGetConanRecipeRevisionDetailV3Query, } from './hooks/useGetConanRecipeRevisionDetailV3Query';
56
59
  export { getDockerArtifactDetails, useGetDockerArtifactDetailsQuery, } from './hooks/useGetDockerArtifactDetailsQuery';
57
60
  export { getDockerArtifactIntegrationDetails, useGetDockerArtifactIntegrationDetailsQuery, } from './hooks/useGetDockerArtifactIntegrationDetailsQuery';
58
61
  export { getDockerArtifactLayers, useGetDockerArtifactLayersQuery, } from './hooks/useGetDockerArtifactLayersQuery';
59
62
  export { getDockerArtifactManifest, useGetDockerArtifactManifestQuery, } from './hooks/useGetDockerArtifactManifestQuery';
60
63
  export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from './hooks/useGetDockerArtifactManifestsQuery';
61
64
  export { getFileMetadataV3, useGetFileMetadataV3Query } from './hooks/useGetFileMetadataV3Query';
65
+ export { getFilePreviewV3, useGetFilePreviewV3Query } from './hooks/useGetFilePreviewV3Query';
62
66
  export { getFile, useGetFileQuery } from './hooks/useGetFileQuery';
63
67
  export { getFileV3, useGetFileV3Query } from './hooks/useGetFileV3Query';
64
68
  export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
@@ -84,6 +88,9 @@ export { getWebhookExecution, useGetWebhookExecutionQuery, } from './hooks/useGe
84
88
  export { getWebhook, useGetWebhookQuery } from './hooks/useGetWebhookQuery';
85
89
  export { initiateBulkScanEvaluationV3, useInitiateBulkScanEvaluationV3Mutation, } from './hooks/useInitiateBulkScanEvaluationV3Mutation';
86
90
  export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
91
+ export { listConanPackageRevisionsV3, useListConanPackageRevisionsV3Query, } from './hooks/useListConanPackageRevisionsV3Query';
92
+ export { listConanPackagesV3, useListConanPackagesV3Query, } from './hooks/useListConanPackagesV3Query';
93
+ export { listConanRecipeRevisionsV3, useListConanRecipeRevisionsV3Query, } from './hooks/useListConanRecipeRevisionsV3Query';
87
94
  export { listFilesV3, useListFilesV3Query } from './hooks/useListFilesV3Query';
88
95
  export { listFirewallExceptionVersionsV3, useListFirewallExceptionVersionsV3Query, } from './hooks/useListFirewallExceptionVersionsV3Query';
89
96
  export { listFirewallExceptionsV3, useListFirewallExceptionsV3Query, } from './hooks/useListFirewallExceptionsV3Query';
@@ -94,6 +101,7 @@ export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useLi
94
101
  export { listPackages, useListPackagesQuery } from './hooks/useListPackagesQuery';
95
102
  export { listPackagesV3, useListPackagesV3Query } from './hooks/useListPackagesV3Query';
96
103
  export { listPipelineBuildInfoDetailsV3, useListPipelineBuildInfoDetailsV3Query, } from './hooks/useListPipelineBuildInfoDetailsV3Query';
104
+ export { listPrincipalsV3, useListPrincipalsV3Query } from './hooks/useListPrincipalsV3Query';
97
105
  export { listRegistries, useListRegistriesQuery } from './hooks/useListRegistriesQuery';
98
106
  export { listRegistriesV3, useListRegistriesV3Query } from './hooks/useListRegistriesV3Query';
99
107
  export { listRegistryFilesV3, useListRegistryFilesV3Query, } from './hooks/useListRegistryFilesV3Query';
@@ -0,0 +1,4 @@
1
+ import type { ConanPackageDetailV3 } from '../schemas/ConanPackageDetailV3';
2
+ export interface ConanPackageDetailResponseV3Response {
3
+ data: ConanPackageDetailV3;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { ConanPackageRevisionDetailV3 } from '../schemas/ConanPackageRevisionDetailV3';
2
+ export interface ConanPackageRevisionDetailResponseV3Response {
3
+ data: ConanPackageRevisionDetailV3;
4
+ }
@@ -0,0 +1,2 @@
1
+ import type { ListConanPackageRevisionsResponseBodyV3 } from '../schemas/ListConanPackageRevisionsResponseBodyV3';
2
+ export type ConanPackageRevisionsResponseV3Response = ListConanPackageRevisionsResponseBodyV3;
@@ -0,0 +1,2 @@
1
+ import type { ListConanPackagesResponseBodyV3 } from '../schemas/ListConanPackagesResponseBodyV3';
2
+ export type ConanPackagesResponseV3Response = ListConanPackagesResponseBodyV3;
@@ -0,0 +1,4 @@
1
+ import type { ConanRecipeRevisionDetailV3 } from '../schemas/ConanRecipeRevisionDetailV3';
2
+ export interface ConanRecipeRevisionDetailResponseV3Response {
3
+ data: ConanRecipeRevisionDetailV3;
4
+ }
@@ -0,0 +1,2 @@
1
+ import type { ListConanRecipeRevisionsResponseBodyV3 } from '../schemas/ListConanRecipeRevisionsResponseBodyV3';
2
+ export type ConanRecipeRevisionsResponseV3Response = ListConanRecipeRevisionsResponseBodyV3;
@@ -0,0 +1,2 @@
1
+ import type { FilePreviewResponseBodyV3 } from '../schemas/FilePreviewResponseBodyV3';
2
+ export type FilePreviewResponseV3Response = FilePreviewResponseBodyV3;
@@ -0,0 +1,2 @@
1
+ import type { ListPrincipalsResponseBodyV3 } from '../schemas/ListPrincipalsResponseBodyV3';
2
+ export type ListPrincipalsResponseV3Response = ListPrincipalsResponseBodyV3;
@@ -16,13 +16,14 @@ import type { SwiftArtifactDetailConfig } from '../schemas/SwiftArtifactDetailCo
16
16
  import type { PuppetArtifactDetailConfig } from '../schemas/PuppetArtifactDetailConfig';
17
17
  import type { HelmHttpArtifactDetailConfig } from '../schemas/HelmHttpArtifactDetailConfig';
18
18
  import type { DebianArtifactDetailConfig } from '../schemas/DebianArtifactDetailConfig';
19
+ import type { ConanArtifactDetailConfig } from '../schemas/ConanArtifactDetailConfig';
19
20
  import type { ArtifactType } from '../schemas/ArtifactType';
20
21
  import type { UserInfo } from '../schemas/UserInfo';
21
22
  import type { PackageType } from '../schemas/PackageType';
22
23
  /**
23
24
  * Artifact Detail
24
25
  */
25
- export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig | HelmHttpArtifactDetailConfig | DebianArtifactDetailConfig) & {
26
+ export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig | HelmHttpArtifactDetailConfig | DebianArtifactDetailConfig | ConanArtifactDetailConfig) & {
26
27
  artifactKey?: {
27
28
  [key: string]: string;
28
29
  };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Config for Conan artifact details
3
+ */
4
+ export interface ConanArtifactDetailConfig {
5
+ metadata?: {
6
+ [key: string]: any;
7
+ };
8
+ }
@@ -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,35 @@
1
+ /**
2
+ * A Conan package (PKGID) detail. The package revisions are listed via the package-revisions endpoint.
3
+ */
4
+ export interface ConanPackageDetailV3 {
5
+ /**
6
+ * Total downloads across every finalized package revision of this package.
7
+ * @format int64
8
+ */
9
+ downloadCount?: number;
10
+ /**
11
+ * Most recent download time (Unix milliseconds), if any.
12
+ * @format int64
13
+ */
14
+ lastDownloadedAt?: number | null;
15
+ /**
16
+ * Build options parsed from conaninfo.txt.
17
+ */
18
+ options?: {
19
+ [key: string]: any;
20
+ };
21
+ packageId: string;
22
+ /**
23
+ * Number of finalized package revisions (PREVs) of this package.
24
+ * @format int64
25
+ */
26
+ packageRevisionCount?: number;
27
+ recipeRevision?: string;
28
+ /**
29
+ * Build settings parsed from conaninfo.txt.
30
+ */
31
+ settings?: {
32
+ [key: string]: any;
33
+ };
34
+ size?: string;
35
+ }
@@ -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,29 @@
1
+ /**
2
+ * A Conan package (PKGID).
3
+ */
4
+ export interface ConanPackageMetadataV3 {
5
+ /**
6
+ * The newest finalized package revision hash.
7
+ */
8
+ latestPackageRevision?: string;
9
+ /**
10
+ * Build options parsed from conaninfo.txt.
11
+ */
12
+ options?: {
13
+ [key: string]: any;
14
+ };
15
+ /**
16
+ * The package id hash.
17
+ */
18
+ packageId: string;
19
+ /**
20
+ * Build settings parsed from conaninfo.txt.
21
+ */
22
+ settings?: {
23
+ [key: string]: any;
24
+ };
25
+ /**
26
+ * Size of the latest finalized package revision.
27
+ */
28
+ size?: string;
29
+ }
@@ -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
+ import type { CreatedAtMsV3 } from '../schemas/CreatedAtMsV3';
2
+ /**
3
+ * A Conan package revision (PREV).
4
+ */
5
+ export interface ConanPackageRevisionDetailV3 {
6
+ createdAt?: CreatedAtMsV3;
7
+ /**
8
+ * @format int64
9
+ */
10
+ downloadCount?: number;
11
+ /**
12
+ * Last-downloaded time (Unix milliseconds), if any.
13
+ * @format int64
14
+ */
15
+ lastDownloadedAt?: number | null;
16
+ /**
17
+ * The package revision (PREV) hash.
18
+ */
19
+ packageRevision: string;
20
+ size?: string;
21
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * A Conan recipe revision (RREV).
3
+ */
4
+ export interface ConanRecipeRevisionDetailV3 {
5
+ /**
6
+ * Total downloads across every finalized package revision under this revision.
7
+ * @format int64
8
+ */
9
+ downloadCount?: number;
10
+ /**
11
+ * Most recent download time (Unix milliseconds), if any.
12
+ * @format int64
13
+ */
14
+ lastDownloadedAt?: number | null;
15
+ /**
16
+ * Finalization time (Unix milliseconds).
17
+ * @format int64
18
+ */
19
+ lastPushedAt?: number | null;
20
+ /**
21
+ * Number of packages with at least one finalized package revision.
22
+ * @format int64
23
+ */
24
+ packageCount?: number;
25
+ /**
26
+ * The recipe revision (RREV) hash.
27
+ */
28
+ recipeRevision: string;
29
+ /**
30
+ * Recipe files plus all package binaries under this revision.
31
+ */
32
+ size?: string;
33
+ }
@@ -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,30 @@
1
+ /**
2
+ * Inline preview details for a file.
3
+ */
4
+ export interface FilePreviewDataV3 {
5
+ /**
6
+ * Content-Type the file will be served with for preview. HTML and SVG are forced to text/plain to mitigate stored XSS.
7
+ *
8
+ */
9
+ contentType: string;
10
+ /**
11
+ * When the preview URL expires (Unix ms). Set for cloud presigned URLs (now + 20m); null for filesystem deployments whose URL does not expire.
12
+ *
13
+ * @format int64
14
+ */
15
+ expiresAt?: number | null;
16
+ /**
17
+ * File name (leaf of the node path).
18
+ */
19
+ fileName: string;
20
+ /**
21
+ * URL the browser can open to render the file inline. A presigned URL for cloud deployments, or a protocol-API URL with preview=true for filesystem deployments.
22
+ *
23
+ */
24
+ previewUrl: string;
25
+ /**
26
+ * File size in bytes.
27
+ * @format int64
28
+ */
29
+ size: number;
30
+ }
@@ -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,7 @@
1
+ import type { FilePreviewDataV3 } from '../schemas/FilePreviewDataV3';
2
+ /**
3
+ * Single-resource read wrapping the file preview details.
4
+ */
5
+ export interface FilePreviewResponseBodyV3 {
6
+ data: FilePreviewDataV3;
7
+ }
@@ -0,0 +1,5 @@
1
+ import type { ConanPackageRevisionDetailV3 } from '../schemas/ConanPackageRevisionDetailV3';
2
+ import type { PageInfoV3 } from '../schemas/PageInfoV3';
3
+ export interface ListConanPackageRevisionsResponseBodyV3 extends PageInfoV3 {
4
+ items: ConanPackageRevisionDetailV3[];
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { ConanPackageMetadataV3 } from '../schemas/ConanPackageMetadataV3';
2
+ import type { PageInfoV3 } from '../schemas/PageInfoV3';
3
+ export interface ListConanPackagesResponseBodyV3 extends PageInfoV3 {
4
+ items: ConanPackageMetadataV3[];
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { ConanRecipeRevisionDetailV3 } from '../schemas/ConanRecipeRevisionDetailV3';
2
+ import type { PageInfoV3 } from '../schemas/PageInfoV3';
3
+ export interface ListConanRecipeRevisionsResponseBodyV3 extends PageInfoV3 {
4
+ items: ConanRecipeRevisionDetailV3[];
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { PrincipalV3 } from '../schemas/PrincipalV3';
2
+ import type { PageInfoV3 } from '../schemas/PageInfoV3';
3
+ export interface ListPrincipalsResponseBodyV3 extends PageInfoV3 {
4
+ items: PrincipalV3[];
5
+ }
@@ -24,6 +24,7 @@ export interface PackageV3 {
24
24
  [key: string]: any;
25
25
  };
26
26
  modifiedAt?: ModifiedAtMsV3;
27
+ modifiedBy?: UserInfoV3;
27
28
  name: string;
28
29
  packageKind?: PackageKindV3;
29
30
  packageType: PackageTypeV3;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Principal type. Known values include: USER.
3
+ *
4
+ * @example "USER"
5
+ */
6
+ export type PrincipalTypeV3 = 'USER';
@@ -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
+ 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
+ }
@@ -24,6 +24,7 @@ export interface RegistryV3 {
24
24
  id: string;
25
25
  isPublic: boolean;
26
26
  modifiedAt?: ModifiedAtMsV3;
27
+ modifiedBy?: UserInfoV3;
27
28
  name: string;
28
29
  /**
29
30
  * @format int64
@@ -1,9 +1,9 @@
1
- import type { DeletedAtMsV3 } from '../schemas/DeletedAtMsV3';
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.73.0",
3
+ "version": "0.75.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",