@harnessio/react-ng-manager-swagger-service-client 1.12.0 → 1.13.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 (63) hide show
  1. package/dist/ng-manager-swagger-service/src/services/hooks/useCreateApiKeyMutation.d.ts +22 -0
  2. package/dist/ng-manager-swagger-service/src/services/hooks/useCreateApiKeyMutation.js +14 -0
  3. package/dist/ng-manager-swagger-service/src/services/hooks/useCreateTokenMutation.d.ts +22 -0
  4. package/dist/ng-manager-swagger-service/src/services/hooks/useCreateTokenMutation.js +14 -0
  5. package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteApiKeyMutation.d.ts +26 -0
  6. package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteApiKeyMutation.js +14 -0
  7. package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteTokenMutation.d.ts +27 -0
  8. package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteTokenMutation.js +14 -0
  9. package/dist/ng-manager-swagger-service/src/services/hooks/useGetInheritingChildScopeListForServiceAccountQuery.d.ts +24 -0
  10. package/dist/ng-manager-swagger-service/src/services/hooks/useGetInheritingChildScopeListForServiceAccountQuery.js +14 -0
  11. package/dist/ng-manager-swagger-service/src/services/hooks/useGetInheritingChildScopeListQuery.d.ts +25 -0
  12. package/dist/ng-manager-swagger-service/src/services/hooks/useGetInheritingChildScopeListQuery.js +14 -0
  13. package/dist/ng-manager-swagger-service/src/services/hooks/useGetTokenQuery.d.ts +19 -0
  14. package/dist/ng-manager-swagger-service/src/services/hooks/useGetTokenQuery.js +14 -0
  15. package/dist/ng-manager-swagger-service/src/services/hooks/useListAggregatedApiKeysQuery.d.ts +37 -0
  16. package/dist/ng-manager-swagger-service/src/services/hooks/useListAggregatedApiKeysQuery.js +14 -0
  17. package/dist/ng-manager-swagger-service/src/services/hooks/useListAggregatedTokensQuery.d.ts +39 -0
  18. package/dist/ng-manager-swagger-service/src/services/hooks/useListAggregatedTokensQuery.js +14 -0
  19. package/dist/ng-manager-swagger-service/src/services/hooks/useListApiKeysQuery.d.ts +24 -0
  20. package/dist/ng-manager-swagger-service/src/services/hooks/useListApiKeysQuery.js +14 -0
  21. package/dist/ng-manager-swagger-service/src/services/hooks/useRotateTokenMutation.d.ts +31 -0
  22. package/dist/ng-manager-swagger-service/src/services/hooks/useRotateTokenMutation.js +14 -0
  23. package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateApiKeyMutation.d.ts +21 -0
  24. package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateApiKeyMutation.js +14 -0
  25. package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateTokenMutation.d.ts +25 -0
  26. package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateTokenMutation.js +14 -0
  27. package/dist/ng-manager-swagger-service/src/services/index.d.ts +43 -0
  28. package/dist/ng-manager-swagger-service/src/services/index.js +13 -0
  29. package/dist/ng-manager-swagger-service/src/services/requestBodies/ApiKeyDtoRequestBody.d.ts +2 -0
  30. package/dist/ng-manager-swagger-service/src/services/requestBodies/ApiKeyDtoRequestBody.js +1 -0
  31. package/dist/ng-manager-swagger-service/src/services/requestBodies/TokenDtoRequestBody.d.ts +2 -0
  32. package/dist/ng-manager-swagger-service/src/services/requestBodies/TokenDtoRequestBody.js +1 -0
  33. package/dist/ng-manager-swagger-service/src/services/schemas/ApiKeyAggregateDto.d.ts +16 -0
  34. package/dist/ng-manager-swagger-service/src/services/schemas/ApiKeyAggregateDto.js +1 -0
  35. package/dist/ng-manager-swagger-service/src/services/schemas/ApiKeyDto.d.ts +21 -0
  36. package/dist/ng-manager-swagger-service/src/services/schemas/ApiKeyDto.js +1 -0
  37. package/dist/ng-manager-swagger-service/src/services/schemas/PageApiKeyAggregateDto.d.ts +26 -0
  38. package/dist/ng-manager-swagger-service/src/services/schemas/PageApiKeyAggregateDto.js +1 -0
  39. package/dist/ng-manager-swagger-service/src/services/schemas/PageTokenAggregateDto.d.ts +26 -0
  40. package/dist/ng-manager-swagger-service/src/services/schemas/PageTokenAggregateDto.js +1 -0
  41. package/dist/ng-manager-swagger-service/src/services/schemas/PgpKeyIdentity.d.ts +4 -0
  42. package/dist/ng-manager-swagger-service/src/services/schemas/PgpKeyIdentity.js +4 -0
  43. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseApiKeyDto.d.ts +9 -0
  44. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseApiKeyDto.js +1 -0
  45. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListApiKeyDto.d.ts +9 -0
  46. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListApiKeyDto.js +1 -0
  47. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListScopeName.d.ts +9 -0
  48. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListScopeName.js +1 -0
  49. package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageApiKeyAggregateDto.d.ts +9 -0
  50. package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageApiKeyAggregateDto.js +1 -0
  51. package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageTokenAggregateDto.d.ts +9 -0
  52. package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageTokenAggregateDto.js +1 -0
  53. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseString.d.ts +8 -0
  54. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseString.js +4 -0
  55. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseTokenDto.d.ts +9 -0
  56. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseTokenDto.js +1 -0
  57. package/dist/ng-manager-swagger-service/src/services/schemas/ScopeName.d.ts +7 -0
  58. package/dist/ng-manager-swagger-service/src/services/schemas/ScopeName.js +4 -0
  59. package/dist/ng-manager-swagger-service/src/services/schemas/TokenAggregateDto.d.ts +16 -0
  60. package/dist/ng-manager-swagger-service/src/services/schemas/TokenAggregateDto.js +1 -0
  61. package/dist/ng-manager-swagger-service/src/services/schemas/TokenDto.d.ts +48 -0
  62. package/dist/ng-manager-swagger-service/src/services/schemas/TokenDto.js +1 -0
  63. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseApiKeyDto } from '../schemas/ResponseApiKeyDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ApiKeyDtoRequestBody } from '../requestBodies/ApiKeyDtoRequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface CreateApiKeyMutationQueryParams {
9
+ accountIdentifier: string;
10
+ }
11
+ export type CreateApiKeyRequestBody = ApiKeyDtoRequestBody;
12
+ export type CreateApiKeyOkResponse = ResponseWithPagination<ResponseApiKeyDto>;
13
+ export type CreateApiKeyErrorResponse = Failure | Error;
14
+ export interface CreateApiKeyProps extends Omit<FetcherOptions<CreateApiKeyMutationQueryParams, CreateApiKeyRequestBody>, 'url'> {
15
+ queryParams: CreateApiKeyMutationQueryParams;
16
+ body: CreateApiKeyRequestBody;
17
+ }
18
+ export declare function createApiKey(props: CreateApiKeyProps): Promise<CreateApiKeyOkResponse>;
19
+ /**
20
+ *
21
+ */
22
+ export declare function useCreateApiKeyMutation(options?: Omit<UseMutationOptions<CreateApiKeyOkResponse, CreateApiKeyErrorResponse, CreateApiKeyProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateApiKeyOkResponse, CreateApiKeyErrorResponse, CreateApiKeyProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function createApiKey(props) {
7
+ return fetcher(Object.assign({ url: `/apikey`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useCreateApiKeyMutation(options) {
13
+ return useMutation((mutateProps) => createApiKey(mutateProps), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseString } from '../schemas/ResponseString';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { TokenDtoRequestBody } from '../requestBodies/TokenDtoRequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface CreateTokenMutationQueryParams {
9
+ accountIdentifier: string;
10
+ }
11
+ export type CreateTokenRequestBody = TokenDtoRequestBody;
12
+ export type CreateTokenOkResponse = ResponseWithPagination<ResponseString>;
13
+ export type CreateTokenErrorResponse = Failure | Error;
14
+ export interface CreateTokenProps extends Omit<FetcherOptions<CreateTokenMutationQueryParams, CreateTokenRequestBody>, 'url'> {
15
+ queryParams: CreateTokenMutationQueryParams;
16
+ body: CreateTokenRequestBody;
17
+ }
18
+ export declare function createToken(props: CreateTokenProps): Promise<CreateTokenOkResponse>;
19
+ /**
20
+ *
21
+ */
22
+ export declare function useCreateTokenMutation(options?: Omit<UseMutationOptions<CreateTokenOkResponse, CreateTokenErrorResponse, CreateTokenProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateTokenOkResponse, CreateTokenErrorResponse, CreateTokenProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function createToken(props) {
7
+ return fetcher(Object.assign({ url: `/token`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useCreateTokenMutation(options) {
13
+ return useMutation((mutateProps) => createToken(mutateProps), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseBoolean } from '../schemas/ResponseBoolean';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface DeleteApiKeyMutationPathParams {
8
+ identifier: string;
9
+ }
10
+ export interface DeleteApiKeyMutationQueryParams {
11
+ accountIdentifier: string;
12
+ orgIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ apiKeyType: 'PGP_KEY' | 'SERVICE_ACCOUNT' | 'SSH_KEY' | 'USER';
15
+ parentIdentifier: string;
16
+ }
17
+ export type DeleteApiKeyOkResponse = ResponseWithPagination<ResponseBoolean>;
18
+ export type DeleteApiKeyErrorResponse = Failure | Error;
19
+ export interface DeleteApiKeyProps extends DeleteApiKeyMutationPathParams, Omit<FetcherOptions<DeleteApiKeyMutationQueryParams, unknown>, 'url'> {
20
+ queryParams: DeleteApiKeyMutationQueryParams;
21
+ }
22
+ export declare function deleteApiKey(props: DeleteApiKeyProps): Promise<DeleteApiKeyOkResponse>;
23
+ /**
24
+ *
25
+ */
26
+ export declare function useDeleteApiKeyMutation(options?: Omit<UseMutationOptions<DeleteApiKeyOkResponse, DeleteApiKeyErrorResponse, DeleteApiKeyProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteApiKeyOkResponse, DeleteApiKeyErrorResponse, DeleteApiKeyProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function deleteApiKey(props) {
7
+ return fetcher(Object.assign({ url: `/apikey/${props.identifier}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useDeleteApiKeyMutation(options) {
13
+ return useMutation((mutateProps) => deleteApiKey(mutateProps), options);
14
+ }
@@ -0,0 +1,27 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseBoolean } from '../schemas/ResponseBoolean';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface DeleteTokenMutationPathParams {
8
+ identifier: string;
9
+ }
10
+ export interface DeleteTokenMutationQueryParams {
11
+ accountIdentifier: string;
12
+ orgIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ apiKeyType: 'PGP_KEY' | 'SERVICE_ACCOUNT' | 'SSH_KEY' | 'USER';
15
+ parentIdentifier: string;
16
+ apiKeyIdentifier: string;
17
+ }
18
+ export type DeleteTokenOkResponse = ResponseWithPagination<ResponseBoolean>;
19
+ export type DeleteTokenErrorResponse = Failure | Error;
20
+ export interface DeleteTokenProps extends DeleteTokenMutationPathParams, Omit<FetcherOptions<DeleteTokenMutationQueryParams, unknown>, 'url'> {
21
+ queryParams: DeleteTokenMutationQueryParams;
22
+ }
23
+ export declare function deleteToken(props: DeleteTokenProps): Promise<DeleteTokenOkResponse>;
24
+ /**
25
+ *
26
+ */
27
+ export declare function useDeleteTokenMutation(options?: Omit<UseMutationOptions<DeleteTokenOkResponse, DeleteTokenErrorResponse, DeleteTokenProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteTokenOkResponse, DeleteTokenErrorResponse, DeleteTokenProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function deleteToken(props) {
7
+ return fetcher(Object.assign({ url: `/token/${props.identifier}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useDeleteTokenMutation(options) {
13
+ return useMutation((mutateProps) => deleteToken(mutateProps), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseListScopeName } from '../schemas/ResponseListScopeName';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface GetInheritingChildScopeListForServiceAccountQueryPathParams {
8
+ identifier: string;
9
+ }
10
+ export interface GetInheritingChildScopeListForServiceAccountQueryQueryParams {
11
+ accountIdentifier: string;
12
+ orgIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ }
15
+ export type GetInheritingChildScopeListForServiceAccountOkResponse = ResponseWithPagination<ResponseListScopeName>;
16
+ export type GetInheritingChildScopeListForServiceAccountErrorResponse = Failure | Error;
17
+ export interface GetInheritingChildScopeListForServiceAccountProps extends GetInheritingChildScopeListForServiceAccountQueryPathParams, Omit<FetcherOptions<GetInheritingChildScopeListForServiceAccountQueryQueryParams, unknown>, 'url'> {
18
+ queryParams: GetInheritingChildScopeListForServiceAccountQueryQueryParams;
19
+ }
20
+ export declare function getInheritingChildScopeListForServiceAccount(props: GetInheritingChildScopeListForServiceAccountProps): Promise<GetInheritingChildScopeListForServiceAccountOkResponse>;
21
+ /**
22
+ *
23
+ */
24
+ export declare function useGetInheritingChildScopeListForServiceAccountQuery(props: GetInheritingChildScopeListForServiceAccountProps, options?: Omit<UseQueryOptions<GetInheritingChildScopeListForServiceAccountOkResponse, GetInheritingChildScopeListForServiceAccountErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetInheritingChildScopeListForServiceAccountOkResponse, GetInheritingChildScopeListForServiceAccountErrorResponse>;
@@ -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 getInheritingChildScopeListForServiceAccount(props) {
7
+ return fetcher(Object.assign({ url: `/serviceaccount/${props.identifier}/scopes`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetInheritingChildScopeListForServiceAccountQuery(props, options) {
13
+ return useQuery(['getInheritingChildScopeListForServiceAccount', props.identifier, props.queryParams], ({ signal }) => getInheritingChildScopeListForServiceAccount(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseListScopeName } from '../schemas/ResponseListScopeName';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { AccessControlCheckError } from '../schemas/AccessControlCheckError';
5
+ import type { Error } from '../schemas/Error';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface GetInheritingChildScopeListQueryPathParams {
9
+ identifier: string;
10
+ }
11
+ export interface GetInheritingChildScopeListQueryQueryParams {
12
+ accountIdentifier: string;
13
+ orgIdentifier?: string;
14
+ projectIdentifier?: string;
15
+ }
16
+ export type GetInheritingChildScopeListOkResponse = ResponseWithPagination<ResponseListScopeName>;
17
+ export type GetInheritingChildScopeListErrorResponse = Failure | AccessControlCheckError | Error;
18
+ export interface GetInheritingChildScopeListProps extends GetInheritingChildScopeListQueryPathParams, Omit<FetcherOptions<GetInheritingChildScopeListQueryQueryParams, unknown>, 'url'> {
19
+ queryParams: GetInheritingChildScopeListQueryQueryParams;
20
+ }
21
+ export declare function getInheritingChildScopeList(props: GetInheritingChildScopeListProps): Promise<GetInheritingChildScopeListOkResponse>;
22
+ /**
23
+ *
24
+ */
25
+ export declare function useGetInheritingChildScopeListQuery(props: GetInheritingChildScopeListProps, options?: Omit<UseQueryOptions<GetInheritingChildScopeListOkResponse, GetInheritingChildScopeListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetInheritingChildScopeListOkResponse, GetInheritingChildScopeListErrorResponse>;
@@ -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 getInheritingChildScopeList(props) {
7
+ return fetcher(Object.assign({ url: `/user-groups/${props.identifier}/scopes`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetInheritingChildScopeListQuery(props, options) {
13
+ return useQuery(['getInheritingChildScopeList', props.identifier, props.queryParams], ({ signal }) => getInheritingChildScopeList(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,19 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseTokenDto } from '../schemas/ResponseTokenDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface GetTokenQueryQueryParams {
8
+ tokenId?: string;
9
+ }
10
+ export type GetTokenOkResponse = ResponseWithPagination<ResponseTokenDto>;
11
+ export type GetTokenErrorResponse = Failure | Error;
12
+ export interface GetTokenProps extends Omit<FetcherOptions<GetTokenQueryQueryParams, unknown>, 'url'> {
13
+ queryParams: GetTokenQueryQueryParams;
14
+ }
15
+ export declare function getToken(props: GetTokenProps): Promise<GetTokenOkResponse>;
16
+ /**
17
+ *
18
+ */
19
+ export declare function useGetTokenQuery(props: GetTokenProps, options?: Omit<UseQueryOptions<GetTokenOkResponse, GetTokenErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTokenOkResponse, GetTokenErrorResponse>;
@@ -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 getToken(props) {
7
+ return fetcher(Object.assign({ url: `/token`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetTokenQuery(props, options) {
13
+ return useQuery(['getToken', props.queryParams], ({ signal }) => getToken(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,37 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponsePageApiKeyAggregateDto } from '../schemas/ResponsePageApiKeyAggregateDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface ListAggregatedApiKeysQueryQueryParams {
8
+ accountIdentifier: string;
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ apiKeyType: 'PGP_KEY' | 'SERVICE_ACCOUNT' | 'SSH_KEY' | 'USER';
12
+ parentIdentifier: string;
13
+ identifiers?: string[];
14
+ /**
15
+ * @format int32
16
+ * @default 0
17
+ */
18
+ pageIndex?: number;
19
+ /**
20
+ * @format int32
21
+ * @default 50
22
+ */
23
+ pageSize?: number;
24
+ sortOrders?: string[];
25
+ pageToken?: string;
26
+ searchTerm?: string;
27
+ }
28
+ export type ListAggregatedApiKeysOkResponse = ResponseWithPagination<ResponsePageApiKeyAggregateDto>;
29
+ export type ListAggregatedApiKeysErrorResponse = Failure | Error;
30
+ export interface ListAggregatedApiKeysProps extends Omit<FetcherOptions<ListAggregatedApiKeysQueryQueryParams, unknown>, 'url'> {
31
+ queryParams: ListAggregatedApiKeysQueryQueryParams;
32
+ }
33
+ export declare function listAggregatedApiKeys(props: ListAggregatedApiKeysProps): Promise<ListAggregatedApiKeysOkResponse>;
34
+ /**
35
+ *
36
+ */
37
+ export declare function useListAggregatedApiKeysQuery(props: ListAggregatedApiKeysProps, options?: Omit<UseQueryOptions<ListAggregatedApiKeysOkResponse, ListAggregatedApiKeysErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListAggregatedApiKeysOkResponse, ListAggregatedApiKeysErrorResponse>;
@@ -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 listAggregatedApiKeys(props) {
7
+ return fetcher(Object.assign({ url: `/apikey/aggregate`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useListAggregatedApiKeysQuery(props, options) {
13
+ return useQuery(['listAggregatedApiKeys', props.queryParams], ({ signal }) => listAggregatedApiKeys(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,39 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponsePageTokenAggregateDto } from '../schemas/ResponsePageTokenAggregateDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface ListAggregatedTokensQueryQueryParams {
8
+ accountIdentifier: string;
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ apiKeyType: 'PGP_KEY' | 'SERVICE_ACCOUNT' | 'SSH_KEY' | 'USER';
12
+ parentIdentifier?: string;
13
+ apiKeyIdentifier?: string;
14
+ identifiers?: string[];
15
+ /**
16
+ * @format int32
17
+ * @default 0
18
+ */
19
+ pageIndex?: number;
20
+ /**
21
+ * @format int32
22
+ * @default 50
23
+ */
24
+ pageSize?: number;
25
+ sortOrders?: string[];
26
+ pageToken?: string;
27
+ searchTerm?: string;
28
+ includeOnlyActiveTokens?: boolean;
29
+ }
30
+ export type ListAggregatedTokensOkResponse = ResponseWithPagination<ResponsePageTokenAggregateDto>;
31
+ export type ListAggregatedTokensErrorResponse = Failure | Error;
32
+ export interface ListAggregatedTokensProps extends Omit<FetcherOptions<ListAggregatedTokensQueryQueryParams, unknown>, 'url'> {
33
+ queryParams: ListAggregatedTokensQueryQueryParams;
34
+ }
35
+ export declare function listAggregatedTokens(props: ListAggregatedTokensProps): Promise<ListAggregatedTokensOkResponse>;
36
+ /**
37
+ *
38
+ */
39
+ export declare function useListAggregatedTokensQuery(props: ListAggregatedTokensProps, options?: Omit<UseQueryOptions<ListAggregatedTokensOkResponse, ListAggregatedTokensErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListAggregatedTokensOkResponse, ListAggregatedTokensErrorResponse>;
@@ -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 listAggregatedTokens(props) {
7
+ return fetcher(Object.assign({ url: `/token/aggregate`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useListAggregatedTokensQuery(props, options) {
13
+ return useQuery(['listAggregatedTokens', props.queryParams], ({ signal }) => listAggregatedTokens(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseListApiKeyDto } from '../schemas/ResponseListApiKeyDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface ListApiKeysQueryQueryParams {
8
+ accountIdentifier: string;
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ apiKeyType: 'PGP_KEY' | 'SERVICE_ACCOUNT' | 'SSH_KEY' | 'USER';
12
+ parentIdentifier: string;
13
+ identifiers?: string[];
14
+ }
15
+ export type ListApiKeysOkResponse = ResponseWithPagination<ResponseListApiKeyDto>;
16
+ export type ListApiKeysErrorResponse = Failure | Error;
17
+ export interface ListApiKeysProps extends Omit<FetcherOptions<ListApiKeysQueryQueryParams, unknown>, 'url'> {
18
+ queryParams: ListApiKeysQueryQueryParams;
19
+ }
20
+ export declare function listApiKeys(props: ListApiKeysProps): Promise<ListApiKeysOkResponse>;
21
+ /**
22
+ *
23
+ */
24
+ export declare function useListApiKeysQuery(props: ListApiKeysProps, options?: Omit<UseQueryOptions<ListApiKeysOkResponse, ListApiKeysErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListApiKeysOkResponse, ListApiKeysErrorResponse>;
@@ -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 listApiKeys(props) {
7
+ return fetcher(Object.assign({ url: `/apikey`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useListApiKeysQuery(props, options) {
13
+ return useQuery(['listApiKeys', props.queryParams], ({ signal }) => listApiKeys(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,31 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseString } from '../schemas/ResponseString';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface RotateTokenMutationPathParams {
8
+ identifier: string;
9
+ }
10
+ export interface RotateTokenMutationQueryParams {
11
+ /**
12
+ * @format int64
13
+ */
14
+ rotateTimestamp?: number;
15
+ accountIdentifier: string;
16
+ orgIdentifier?: string;
17
+ projectIdentifier?: string;
18
+ apiKeyType: 'PGP_KEY' | 'SERVICE_ACCOUNT' | 'SSH_KEY' | 'USER';
19
+ parentIdentifier: string;
20
+ apiKeyIdentifier: string;
21
+ }
22
+ export type RotateTokenOkResponse = ResponseWithPagination<ResponseString>;
23
+ export type RotateTokenErrorResponse = Failure | Error;
24
+ export interface RotateTokenProps extends RotateTokenMutationPathParams, Omit<FetcherOptions<RotateTokenMutationQueryParams, unknown>, 'url'> {
25
+ queryParams: RotateTokenMutationQueryParams;
26
+ }
27
+ export declare function rotateToken(props: RotateTokenProps): Promise<RotateTokenOkResponse>;
28
+ /**
29
+ *
30
+ */
31
+ export declare function useRotateTokenMutation(options?: Omit<UseMutationOptions<RotateTokenOkResponse, RotateTokenErrorResponse, RotateTokenProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RotateTokenOkResponse, RotateTokenErrorResponse, RotateTokenProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function rotateToken(props) {
7
+ return fetcher(Object.assign({ url: `/token/rotate/${props.identifier}`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useRotateTokenMutation(options) {
13
+ return useMutation((mutateProps) => rotateToken(mutateProps), options);
14
+ }
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseApiKeyDto } from '../schemas/ResponseApiKeyDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ApiKeyDtoRequestBody } from '../requestBodies/ApiKeyDtoRequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface UpdateApiKeyMutationPathParams {
9
+ identifier: string;
10
+ }
11
+ export type UpdateApiKeyRequestBody = ApiKeyDtoRequestBody;
12
+ export type UpdateApiKeyOkResponse = ResponseWithPagination<ResponseApiKeyDto>;
13
+ export type UpdateApiKeyErrorResponse = Failure | Error;
14
+ export interface UpdateApiKeyProps extends UpdateApiKeyMutationPathParams, Omit<FetcherOptions<unknown, UpdateApiKeyRequestBody>, 'url'> {
15
+ body: UpdateApiKeyRequestBody;
16
+ }
17
+ export declare function updateApiKey(props: UpdateApiKeyProps): Promise<UpdateApiKeyOkResponse>;
18
+ /**
19
+ *
20
+ */
21
+ export declare function useUpdateApiKeyMutation(options?: Omit<UseMutationOptions<UpdateApiKeyOkResponse, UpdateApiKeyErrorResponse, UpdateApiKeyProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateApiKeyOkResponse, UpdateApiKeyErrorResponse, UpdateApiKeyProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function updateApiKey(props) {
7
+ return fetcher(Object.assign({ url: `/apikey/${props.identifier}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useUpdateApiKeyMutation(options) {
13
+ return useMutation((mutateProps) => updateApiKey(mutateProps), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseTokenDto } from '../schemas/ResponseTokenDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { TokenDtoRequestBody } from '../requestBodies/TokenDtoRequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface UpdateTokenMutationPathParams {
9
+ identifier: string;
10
+ }
11
+ export interface UpdateTokenMutationQueryParams {
12
+ accountIdentifier: string;
13
+ }
14
+ export type UpdateTokenRequestBody = TokenDtoRequestBody;
15
+ export type UpdateTokenOkResponse = ResponseWithPagination<ResponseTokenDto>;
16
+ export type UpdateTokenErrorResponse = Failure | Error;
17
+ export interface UpdateTokenProps extends UpdateTokenMutationPathParams, Omit<FetcherOptions<UpdateTokenMutationQueryParams, UpdateTokenRequestBody>, 'url'> {
18
+ queryParams: UpdateTokenMutationQueryParams;
19
+ body: UpdateTokenRequestBody;
20
+ }
21
+ export declare function updateToken(props: UpdateTokenProps): Promise<UpdateTokenOkResponse>;
22
+ /**
23
+ *
24
+ */
25
+ export declare function useUpdateTokenMutation(options?: Omit<UseMutationOptions<UpdateTokenOkResponse, UpdateTokenErrorResponse, UpdateTokenProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateTokenOkResponse, UpdateTokenErrorResponse, UpdateTokenProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function updateToken(props) {
7
+ return fetcher(Object.assign({ url: `/token/${props.identifier}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useUpdateTokenMutation(options) {
13
+ return useMutation((mutateProps) => updateToken(mutateProps), options);
14
+ }
@@ -11,10 +11,18 @@ export type { CheckMemberErrorResponse, CheckMemberOkResponse, CheckMemberProps,
11
11
  export { checkMember, useCheckMemberQuery } from './hooks/useCheckMemberQuery';
12
12
  export type { ClustersErrorResponse, ClustersOkResponse, ClustersProps, ClustersQueryQueryParams, } from './hooks/useClustersQuery';
13
13
  export { clusters, useClustersQuery } from './hooks/useClustersQuery';
14
+ export type { CreateApiKeyErrorResponse, CreateApiKeyMutationQueryParams, CreateApiKeyOkResponse, CreateApiKeyProps, CreateApiKeyRequestBody, } from './hooks/useCreateApiKeyMutation';
15
+ export { createApiKey, useCreateApiKeyMutation } from './hooks/useCreateApiKeyMutation';
14
16
  export type { CreateJiraIssueErrorResponse, CreateJiraIssueMutationQueryParams, CreateJiraIssueOkResponse, CreateJiraIssueProps, CreateJiraIssueRequestBody, } from './hooks/useCreateJiraIssueMutation';
15
17
  export { createJiraIssue, useCreateJiraIssueMutation } from './hooks/useCreateJiraIssueMutation';
16
18
  export type { CreateServiceV2ErrorResponse, CreateServiceV2MutationQueryParams, CreateServiceV2OkResponse, CreateServiceV2Props, CreateServiceV2RequestBody, } from './hooks/useCreateServiceV2Mutation';
17
19
  export { createServiceV2, useCreateServiceV2Mutation } from './hooks/useCreateServiceV2Mutation';
20
+ export type { CreateTokenErrorResponse, CreateTokenMutationQueryParams, CreateTokenOkResponse, CreateTokenProps, CreateTokenRequestBody, } from './hooks/useCreateTokenMutation';
21
+ export { createToken, useCreateTokenMutation } from './hooks/useCreateTokenMutation';
22
+ export type { DeleteApiKeyErrorResponse, DeleteApiKeyMutationPathParams, DeleteApiKeyMutationQueryParams, DeleteApiKeyOkResponse, DeleteApiKeyProps, } from './hooks/useDeleteApiKeyMutation';
23
+ export { deleteApiKey, useDeleteApiKeyMutation } from './hooks/useDeleteApiKeyMutation';
24
+ export type { DeleteTokenErrorResponse, DeleteTokenMutationPathParams, DeleteTokenMutationQueryParams, DeleteTokenOkResponse, DeleteTokenProps, } from './hooks/useDeleteTokenMutation';
25
+ export { deleteToken, useDeleteTokenMutation } from './hooks/useDeleteTokenMutation';
18
26
  export type { GetAcrRegistriesBySubscriptionErrorResponse, GetAcrRegistriesBySubscriptionOkResponse, GetAcrRegistriesBySubscriptionProps, GetAcrRegistriesBySubscriptionQueryQueryParams, } from './hooks/useGetAcrRegistriesBySubscriptionQuery';
19
27
  export { getAcrRegistriesBySubscription, useGetAcrRegistriesBySubscriptionQuery, } from './hooks/useGetAcrRegistriesBySubscriptionQuery';
20
28
  export type { GetAcrRepositoriesErrorResponse, GetAcrRepositoriesOkResponse, GetAcrRepositoriesProps, GetAcrRepositoriesQueryPathParams, GetAcrRepositoriesQueryQueryParams, } from './hooks/useGetAcrRepositoriesQuery';
@@ -73,6 +81,10 @@ export type { GetImagePathsForArtifactoryErrorResponse, GetImagePathsForArtifact
73
81
  export { getImagePathsForArtifactory, useGetImagePathsForArtifactoryQuery, } from './hooks/useGetImagePathsForArtifactoryQuery';
74
82
  export type { GetImagesListForEcrErrorResponse, GetImagesListForEcrMutationQueryParams, GetImagesListForEcrOkResponse, GetImagesListForEcrProps, GetImagesListForEcrRequestBody, } from './hooks/useGetImagesListForEcrMutation';
75
83
  export { getImagesListForEcr, useGetImagesListForEcrMutation, } from './hooks/useGetImagesListForEcrMutation';
84
+ export type { GetInheritingChildScopeListForServiceAccountErrorResponse, GetInheritingChildScopeListForServiceAccountOkResponse, GetInheritingChildScopeListForServiceAccountProps, GetInheritingChildScopeListForServiceAccountQueryPathParams, GetInheritingChildScopeListForServiceAccountQueryQueryParams, } from './hooks/useGetInheritingChildScopeListForServiceAccountQuery';
85
+ export { getInheritingChildScopeListForServiceAccount, useGetInheritingChildScopeListForServiceAccountQuery, } from './hooks/useGetInheritingChildScopeListForServiceAccountQuery';
86
+ export type { GetInheritingChildScopeListErrorResponse, GetInheritingChildScopeListOkResponse, GetInheritingChildScopeListProps, GetInheritingChildScopeListQueryPathParams, GetInheritingChildScopeListQueryQueryParams, } from './hooks/useGetInheritingChildScopeListQuery';
87
+ export { getInheritingChildScopeList, useGetInheritingChildScopeListQuery, } from './hooks/useGetInheritingChildScopeListQuery';
76
88
  export type { GetIssueTransitionsErrorResponse, GetIssueTransitionsOkResponse, GetIssueTransitionsProps, GetIssueTransitionsQueryQueryParams, } from './hooks/useGetIssueTransitionsQuery';
77
89
  export { getIssueTransitions, useGetIssueTransitionsQuery, } from './hooks/useGetIssueTransitionsQuery';
78
90
  export type { GetJiraIssueCreateMetadataErrorResponse, GetJiraIssueCreateMetadataOkResponse, GetJiraIssueCreateMetadataProps, GetJiraIssueCreateMetadataQueryQueryParams, } from './hooks/useGetJiraIssueCreateMetadataQuery';
@@ -129,6 +141,8 @@ export type { GetServicesYamlAndRuntimeInputsV2ErrorResponse, GetServicesYamlAnd
129
141
  export { getServicesYamlAndRuntimeInputsV2, useGetServicesYamlAndRuntimeInputsV2Mutation, } from './hooks/useGetServicesYamlAndRuntimeInputsV2Mutation';
130
142
  export type { GetSubscriptionTagsErrorResponse, GetSubscriptionTagsOkResponse, GetSubscriptionTagsProps, GetSubscriptionTagsQueryPathParams, GetSubscriptionTagsQueryQueryParams, } from './hooks/useGetSubscriptionTagsQuery';
131
143
  export { getSubscriptionTags, useGetSubscriptionTagsQuery, } from './hooks/useGetSubscriptionTagsQuery';
144
+ export type { GetTokenErrorResponse, GetTokenOkResponse, GetTokenProps, GetTokenQueryQueryParams, } from './hooks/useGetTokenQuery';
145
+ export { getToken, useGetTokenQuery } from './hooks/useGetTokenQuery';
132
146
  export type { GetUserGroupAggregateListByUserErrorResponse, GetUserGroupAggregateListByUserMutationPathParams, GetUserGroupAggregateListByUserMutationQueryParams, GetUserGroupAggregateListByUserOkResponse, GetUserGroupAggregateListByUserProps, GetUserGroupAggregateListByUserRequestBody, } from './hooks/useGetUserGroupAggregateListByUserMutation';
133
147
  export { getUserGroupAggregateListByUser, useGetUserGroupAggregateListByUserMutation, } from './hooks/useGetUserGroupAggregateListByUserMutation';
134
148
  export type { GetUserGroupAggregateListErrorResponse, GetUserGroupAggregateListOkResponse, GetUserGroupAggregateListProps, GetUserGroupAggregateListQueryQueryParams, } from './hooks/useGetUserGroupAggregateListQuery';
@@ -141,6 +155,12 @@ export type { HelmCmdFlagsErrorResponse, HelmCmdFlagsOkResponse, HelmCmdFlagsPro
141
155
  export { helmCmdFlags, useHelmCmdFlagsQuery } from './hooks/useHelmCmdFlagsQuery';
142
156
  export type { JiraUserSearchErrorResponse, JiraUserSearchOkResponse, JiraUserSearchProps, JiraUserSearchQueryQueryParams, } from './hooks/useJiraUserSearchQuery';
143
157
  export { jiraUserSearch, useJiraUserSearchQuery } from './hooks/useJiraUserSearchQuery';
158
+ export type { ListAggregatedApiKeysErrorResponse, ListAggregatedApiKeysOkResponse, ListAggregatedApiKeysProps, ListAggregatedApiKeysQueryQueryParams, } from './hooks/useListAggregatedApiKeysQuery';
159
+ export { listAggregatedApiKeys, useListAggregatedApiKeysQuery, } from './hooks/useListAggregatedApiKeysQuery';
160
+ export type { ListAggregatedTokensErrorResponse, ListAggregatedTokensOkResponse, ListAggregatedTokensProps, ListAggregatedTokensQueryQueryParams, } from './hooks/useListAggregatedTokensQuery';
161
+ export { listAggregatedTokens, useListAggregatedTokensQuery, } from './hooks/useListAggregatedTokensQuery';
162
+ export type { ListApiKeysErrorResponse, ListApiKeysOkResponse, ListApiKeysProps, ListApiKeysQueryQueryParams, } from './hooks/useListApiKeysQuery';
163
+ export { listApiKeys, useListApiKeysQuery } from './hooks/useListApiKeysQuery';
144
164
  export type { ListFeedsForAzureArtifactsErrorResponse, ListFeedsForAzureArtifactsOkResponse, ListFeedsForAzureArtifactsProps, ListFeedsForAzureArtifactsQueryQueryParams, } from './hooks/useListFeedsForAzureArtifactsQuery';
145
165
  export { listFeedsForAzureArtifacts, useListFeedsForAzureArtifactsQuery, } from './hooks/useListFeedsForAzureArtifactsQuery';
146
166
  export type { ListPackagesForAzureArtifactsErrorResponse, ListPackagesForAzureArtifactsOkResponse, ListPackagesForAzureArtifactsProps, ListPackagesForAzureArtifactsQueryQueryParams, } from './hooks/useListPackagesForAzureArtifactsQuery';
@@ -155,14 +175,21 @@ export type { PostProjectErrorResponse, PostProjectMutationQueryParams, PostProj
155
175
  export { postProject, usePostProjectMutation } from './hooks/usePostProjectMutation';
156
176
  export type { RemoveMemberErrorResponse, RemoveMemberMutationPathParams, RemoveMemberMutationQueryParams, RemoveMemberOkResponse, RemoveMemberProps, } from './hooks/useRemoveMemberMutation';
157
177
  export { removeMember, useRemoveMemberMutation } from './hooks/useRemoveMemberMutation';
178
+ export type { RotateTokenErrorResponse, RotateTokenMutationPathParams, RotateTokenMutationQueryParams, RotateTokenOkResponse, RotateTokenProps, } from './hooks/useRotateTokenMutation';
179
+ export { rotateToken, useRotateTokenMutation } from './hooks/useRotateTokenMutation';
158
180
  export type { TagsErrorResponse, TagsOkResponse, TagsProps, TagsQueryQueryParams, } from './hooks/useTagsQuery';
159
181
  export { tags, useTagsQuery } from './hooks/useTagsQuery';
182
+ export type { UpdateApiKeyErrorResponse, UpdateApiKeyMutationPathParams, UpdateApiKeyOkResponse, UpdateApiKeyProps, UpdateApiKeyRequestBody, } from './hooks/useUpdateApiKeyMutation';
183
+ export { updateApiKey, useUpdateApiKeyMutation } from './hooks/useUpdateApiKeyMutation';
160
184
  export type { UpdateServiceV2ErrorResponse, UpdateServiceV2MutationQueryParams, UpdateServiceV2OkResponse, UpdateServiceV2Props, UpdateServiceV2RequestBody, } from './hooks/useUpdateServiceV2Mutation';
161
185
  export { updateServiceV2, useUpdateServiceV2Mutation } from './hooks/useUpdateServiceV2Mutation';
186
+ export type { UpdateTokenErrorResponse, UpdateTokenMutationPathParams, UpdateTokenMutationQueryParams, UpdateTokenOkResponse, UpdateTokenProps, UpdateTokenRequestBody, } from './hooks/useUpdateTokenMutation';
187
+ export { updateToken, useUpdateTokenMutation } from './hooks/useUpdateTokenMutation';
162
188
  export type { ValidateJiraCredentialsErrorResponse, ValidateJiraCredentialsOkResponse, ValidateJiraCredentialsProps, ValidateJiraCredentialsQueryQueryParams, } from './hooks/useValidateJiraCredentialsQuery';
163
189
  export { useValidateJiraCredentialsQuery, validateJiraCredentials, } from './hooks/useValidateJiraCredentialsQuery';
164
190
  export type { VpcsErrorResponse, VpcsOkResponse, VpcsProps, VpcsQueryQueryParams, } from './hooks/useVpcsQuery';
165
191
  export { useVpcsQuery, vpcs } from './hooks/useVpcsQuery';
192
+ export type { ApiKeyDtoRequestBody } from './requestBodies/ApiKeyDtoRequestBody';
166
193
  export type { DockerRequestDtoRequestBody } from './requestBodies/DockerRequestDtoRequestBody';
167
194
  export type { EcrRequestDtoRequestBody } from './requestBodies/EcrRequestDtoRequestBody';
168
195
  export type { EnvironmentFilterPropertiesRequestBody } from './requestBodies/EnvironmentFilterPropertiesRequestBody';
@@ -171,6 +198,7 @@ export type { ListTagsForAmiArtifactBodyRequestBody } from './requestBodies/List
171
198
  export type { OrganizationRequestRequestBody } from './requestBodies/OrganizationRequestRequestBody';
172
199
  export type { ProjectRequestRequestBody } from './requestBodies/ProjectRequestRequestBody';
173
200
  export type { ServiceRequestDtoRequestBody } from './requestBodies/ServiceRequestDtoRequestBody';
201
+ export type { TokenDtoRequestBody } from './requestBodies/TokenDtoRequestBody';
174
202
  export type { UserGroupFilterDtoRequestBody } from './requestBodies/UserGroupFilterDtoRequestBody';
175
203
  export type { AccessControlCheckError } from './schemas/AccessControlCheckError';
176
204
  export type { AcrBuildDetailsDto } from './schemas/AcrBuildDetailsDto';
@@ -180,6 +208,8 @@ export type { AcrRepositoriesDto } from './schemas/AcrRepositoriesDto';
180
208
  export type { AcrRepositoryDto } from './schemas/AcrRepositoryDto';
181
209
  export type { AcrResponseDto } from './schemas/AcrResponseDto';
182
210
  export type { AmiTagObject } from './schemas/AmiTagObject';
211
+ export type { ApiKeyAggregateDto } from './schemas/ApiKeyAggregateDto';
212
+ export type { ApiKeyDto } from './schemas/ApiKeyDto';
183
213
  export type { ArtifactFileMetadata } from './schemas/ArtifactFileMetadata';
184
214
  export type { ArtifactSourcesResponseDto } from './schemas/ArtifactSourcesResponseDto';
185
215
  export type { ArtifactoryBuildDetailsDto } from './schemas/ArtifactoryBuildDetailsDto';
@@ -264,14 +294,17 @@ export type { NotificationSettingConfigDto } from './schemas/NotificationSetting
264
294
  export type { Organization } from './schemas/Organization';
265
295
  export type { OrganizationRequest } from './schemas/OrganizationRequest';
266
296
  export type { OrganizationResponse } from './schemas/OrganizationResponse';
297
+ export type { PageApiKeyAggregateDto } from './schemas/PageApiKeyAggregateDto';
267
298
  export type { PageEnvironmentResponse } from './schemas/PageEnvironmentResponse';
268
299
  export type { PageOrganizationResponse } from './schemas/PageOrganizationResponse';
269
300
  export type { PageProjectAggregateDto } from './schemas/PageProjectAggregateDto';
270
301
  export type { PageProjectResponse } from './schemas/PageProjectResponse';
271
302
  export type { PageServiceDashboardResponseDto } from './schemas/PageServiceDashboardResponseDto';
272
303
  export type { PageServiceResponse } from './schemas/PageServiceResponse';
304
+ export type { PageTokenAggregateDto } from './schemas/PageTokenAggregateDto';
273
305
  export type { PageUserGroupAggregateDto } from './schemas/PageUserGroupAggregateDto';
274
306
  export type { PermissionCheck } from './schemas/PermissionCheck';
307
+ export type { PgpKeyIdentity } from './schemas/PgpKeyIdentity';
275
308
  export type { Project } from './schemas/Project';
276
309
  export type { ProjectAggregateDto } from './schemas/ProjectAggregateDto';
277
310
  export type { ProjectRequest } from './schemas/ProjectRequest';
@@ -281,6 +314,7 @@ export type { ResourceScope } from './schemas/ResourceScope';
281
314
  export type { ResponseAcrRegistriesDto } from './schemas/ResponseAcrRegistriesDto';
282
315
  export type { ResponseAcrRepositoriesDto } from './schemas/ResponseAcrRepositoriesDto';
283
316
  export type { ResponseAcrResponseDto } from './schemas/ResponseAcrResponseDto';
317
+ export type { ResponseApiKeyDto } from './schemas/ResponseApiKeyDto';
284
318
  export type { ResponseArtifactSourcesResponseDto } from './schemas/ResponseArtifactSourcesResponseDto';
285
319
  export type { ResponseArtifactoryImagePathsDto } from './schemas/ResponseArtifactoryImagePathsDto';
286
320
  export type { ResponseArtifactoryRepoDetailsDto } from './schemas/ResponseArtifactoryRepoDetailsDto';
@@ -310,6 +344,7 @@ export type { ResponseJiraIssueCreateMetadataNg } from './schemas/ResponseJiraIs
310
344
  export type { ResponseJiraIssueNg } from './schemas/ResponseJiraIssueNg';
311
345
  export type { ResponseJiraIssueUpdateMetadataNg } from './schemas/ResponseJiraIssueUpdateMetadataNg';
312
346
  export type { ResponseListAmiTagObject } from './schemas/ResponseListAmiTagObject';
347
+ export type { ResponseListApiKeyDto } from './schemas/ResponseListApiKeyDto';
313
348
  export type { ResponseListAwsVpc } from './schemas/ResponseListAwsVpc';
314
349
  export type { ResponseListAzureArtifactsFeed } from './schemas/ResponseListAzureArtifactsFeed';
315
350
  export type { ResponseListAzureArtifactsPackage } from './schemas/ResponseListAzureArtifactsPackage';
@@ -323,26 +358,32 @@ export type { ResponseListJiraStatusNg } from './schemas/ResponseListJiraStatusN
323
358
  export type { ResponseListJiraUserData } from './schemas/ResponseListJiraUserData';
324
359
  export type { ResponseListNexusRepositories } from './schemas/ResponseListNexusRepositories';
325
360
  export type { ResponseListRegionGar } from './schemas/ResponseListRegionGar';
361
+ export type { ResponseListScopeName } from './schemas/ResponseListScopeName';
326
362
  export type { ResponseListServiceDefinitionType } from './schemas/ResponseListServiceDefinitionType';
327
363
  export type { ResponseListString } from './schemas/ResponseListString';
328
364
  export type { ResponseMapStringString } from './schemas/ResponseMapStringString';
329
365
  export type { ResponseMessage } from './schemas/ResponseMessage';
330
366
  export type { ResponseNexusResponseDto } from './schemas/ResponseNexusResponseDto';
331
367
  export type { ResponseOrganizationResponse } from './schemas/ResponseOrganizationResponse';
368
+ export type { ResponsePageApiKeyAggregateDto } from './schemas/ResponsePageApiKeyAggregateDto';
332
369
  export type { ResponsePageEnvironmentResponse } from './schemas/ResponsePageEnvironmentResponse';
333
370
  export type { ResponsePageOrganizationResponse } from './schemas/ResponsePageOrganizationResponse';
334
371
  export type { ResponsePageProjectAggregateDto } from './schemas/ResponsePageProjectAggregateDto';
335
372
  export type { ResponsePageProjectResponse } from './schemas/ResponsePageProjectResponse';
336
373
  export type { ResponsePageServiceDashboardResponseDto } from './schemas/ResponsePageServiceDashboardResponseDto';
337
374
  export type { ResponsePageServiceResponse } from './schemas/ResponsePageServiceResponse';
375
+ export type { ResponsePageTokenAggregateDto } from './schemas/ResponsePageTokenAggregateDto';
338
376
  export type { ResponsePageUserGroupAggregateDto } from './schemas/ResponsePageUserGroupAggregateDto';
339
377
  export type { ResponseProjectResponse } from './schemas/ResponseProjectResponse';
340
378
  export type { ResponseServiceResponse } from './schemas/ResponseServiceResponse';
341
379
  export type { ResponseServicesV2YamlMetadataDto } from './schemas/ResponseServicesV2YamlMetadataDto';
342
380
  export type { ResponseSetHelmCommandFlagType } from './schemas/ResponseSetHelmCommandFlagType';
343
381
  export type { ResponseSetString } from './schemas/ResponseSetString';
382
+ export type { ResponseString } from './schemas/ResponseString';
383
+ export type { ResponseTokenDto } from './schemas/ResponseTokenDto';
344
384
  export type { ResponseUserGroupDto } from './schemas/ResponseUserGroupDto';
345
385
  export type { RoleAssignmentMetadataDto } from './schemas/RoleAssignmentMetadataDto';
386
+ export type { ScopeName } from './schemas/ScopeName';
346
387
  export type { ScopeSelector } from './schemas/ScopeSelector';
347
388
  export type { ServiceDashboardResponseDto } from './schemas/ServiceDashboardResponseDto';
348
389
  export type { ServiceRequestDto } from './schemas/ServiceRequestDto';
@@ -354,6 +395,8 @@ export type { ServicesYamlMetadataApiInputV2 } from './schemas/ServicesYamlMetad
354
395
  export type { StackTraceElement } from './schemas/StackTraceElement';
355
396
  export type { TaskSelectorYaml } from './schemas/TaskSelectorYaml';
356
397
  export type { Throwable } from './schemas/Throwable';
398
+ export type { TokenAggregateDto } from './schemas/TokenAggregateDto';
399
+ export type { TokenDto } from './schemas/TokenDto';
357
400
  export type { UserGroupAggregateDto } from './schemas/UserGroupAggregateDto';
358
401
  export type { UserGroupAggregateFilter } from './schemas/UserGroupAggregateFilter';
359
402
  export type { UserGroupDto } from './schemas/UserGroupDto';
@@ -4,8 +4,12 @@ export { artifactIds, useArtifactIdsMutation } from './hooks/useArtifactIdsMutat
4
4
  export { autoScalingGroups, useAutoScalingGroupsQuery } from './hooks/useAutoScalingGroupsQuery';
5
5
  export { checkMember, useCheckMemberQuery } from './hooks/useCheckMemberQuery';
6
6
  export { clusters, useClustersQuery } from './hooks/useClustersQuery';
7
+ export { createApiKey, useCreateApiKeyMutation } from './hooks/useCreateApiKeyMutation';
7
8
  export { createJiraIssue, useCreateJiraIssueMutation } from './hooks/useCreateJiraIssueMutation';
8
9
  export { createServiceV2, useCreateServiceV2Mutation } from './hooks/useCreateServiceV2Mutation';
10
+ export { createToken, useCreateTokenMutation } from './hooks/useCreateTokenMutation';
11
+ export { deleteApiKey, useDeleteApiKeyMutation } from './hooks/useDeleteApiKeyMutation';
12
+ export { deleteToken, useDeleteTokenMutation } from './hooks/useDeleteTokenMutation';
9
13
  export { getAcrRegistriesBySubscription, useGetAcrRegistriesBySubscriptionQuery, } from './hooks/useGetAcrRegistriesBySubscriptionQuery';
10
14
  export { getAcrRepositories, useGetAcrRepositoriesQuery } from './hooks/useGetAcrRepositoriesQuery';
11
15
  export { getArtifactPathForJenkins, useGetArtifactPathForJenkinsQuery, } from './hooks/useGetArtifactPathForJenkinsQuery';
@@ -35,6 +39,8 @@ export { getHelmChartVersionDetails, useGetHelmChartVersionDetailsQuery, } from
35
39
  export { getHelmChartVersionDetailsV1, useGetHelmChartVersionDetailsV1Query, } from './hooks/useGetHelmChartVersionDetailsV1Query';
36
40
  export { getImagePathsForArtifactory, useGetImagePathsForArtifactoryQuery, } from './hooks/useGetImagePathsForArtifactoryQuery';
37
41
  export { getImagesListForEcr, useGetImagesListForEcrMutation, } from './hooks/useGetImagesListForEcrMutation';
42
+ export { getInheritingChildScopeListForServiceAccount, useGetInheritingChildScopeListForServiceAccountQuery, } from './hooks/useGetInheritingChildScopeListForServiceAccountQuery';
43
+ export { getInheritingChildScopeList, useGetInheritingChildScopeListQuery, } from './hooks/useGetInheritingChildScopeListQuery';
38
44
  export { getIssueTransitions, useGetIssueTransitionsQuery, } from './hooks/useGetIssueTransitionsQuery';
39
45
  export { getJiraIssueCreateMetadata, useGetJiraIssueCreateMetadataQuery, } from './hooks/useGetJiraIssueCreateMetadataQuery';
40
46
  export { getJiraIssue, useGetJiraIssueQuery } from './hooks/useGetJiraIssueQuery';
@@ -63,12 +69,16 @@ export { getServiceList, useGetServiceListQuery } from './hooks/useGetServiceLis
63
69
  export { getServicesList, useGetServicesListQuery } from './hooks/useGetServicesListQuery';
64
70
  export { getServicesYamlAndRuntimeInputsV2, useGetServicesYamlAndRuntimeInputsV2Mutation, } from './hooks/useGetServicesYamlAndRuntimeInputsV2Mutation';
65
71
  export { getSubscriptionTags, useGetSubscriptionTagsQuery, } from './hooks/useGetSubscriptionTagsQuery';
72
+ export { getToken, useGetTokenQuery } from './hooks/useGetTokenQuery';
66
73
  export { getUserGroupAggregateListByUser, useGetUserGroupAggregateListByUserMutation, } from './hooks/useGetUserGroupAggregateListByUserMutation';
67
74
  export { getUserGroupAggregateList, useGetUserGroupAggregateListQuery, } from './hooks/useGetUserGroupAggregateListQuery';
68
75
  export { getV2BucketListForS3, useGetV2BucketListForS3Query, } from './hooks/useGetV2BucketListForS3Query';
69
76
  export { getVersionsFromPackages, useGetVersionsFromPackagesQuery, } from './hooks/useGetVersionsFromPackagesQuery';
70
77
  export { helmCmdFlags, useHelmCmdFlagsQuery } from './hooks/useHelmCmdFlagsQuery';
71
78
  export { jiraUserSearch, useJiraUserSearchQuery } from './hooks/useJiraUserSearchQuery';
79
+ export { listAggregatedApiKeys, useListAggregatedApiKeysQuery, } from './hooks/useListAggregatedApiKeysQuery';
80
+ export { listAggregatedTokens, useListAggregatedTokensQuery, } from './hooks/useListAggregatedTokensQuery';
81
+ export { listApiKeys, useListApiKeysQuery } from './hooks/useListApiKeysQuery';
72
82
  export { listFeedsForAzureArtifacts, useListFeedsForAzureArtifactsQuery, } from './hooks/useListFeedsForAzureArtifactsQuery';
73
83
  export { listPackagesForAzureArtifacts, useListPackagesForAzureArtifactsQuery, } from './hooks/useListPackagesForAzureArtifactsQuery';
74
84
  export { listProjectsForAzureArtifacts, useListProjectsForAzureArtifactsQuery, } from './hooks/useListProjectsForAzureArtifactsQuery';
@@ -76,7 +86,10 @@ export { listTagsForAmiArtifact, useListTagsForAmiArtifactMutation, } from './ho
76
86
  export { postOrganization, usePostOrganizationMutation } from './hooks/usePostOrganizationMutation';
77
87
  export { postProject, usePostProjectMutation } from './hooks/usePostProjectMutation';
78
88
  export { removeMember, useRemoveMemberMutation } from './hooks/useRemoveMemberMutation';
89
+ export { rotateToken, useRotateTokenMutation } from './hooks/useRotateTokenMutation';
79
90
  export { tags, useTagsQuery } from './hooks/useTagsQuery';
91
+ export { updateApiKey, useUpdateApiKeyMutation } from './hooks/useUpdateApiKeyMutation';
80
92
  export { updateServiceV2, useUpdateServiceV2Mutation } from './hooks/useUpdateServiceV2Mutation';
93
+ export { updateToken, useUpdateTokenMutation } from './hooks/useUpdateTokenMutation';
81
94
  export { useValidateJiraCredentialsQuery, validateJiraCredentials, } from './hooks/useValidateJiraCredentialsQuery';
82
95
  export { useVpcsQuery, vpcs } from './hooks/useVpcsQuery';
@@ -0,0 +1,2 @@
1
+ import type { ApiKeyDto } from '../schemas/ApiKeyDto';
2
+ export type ApiKeyDtoRequestBody = ApiKeyDto;
@@ -0,0 +1,2 @@
1
+ import type { TokenDto } from '../schemas/TokenDto';
2
+ export type TokenDtoRequestBody = TokenDto;
@@ -0,0 +1,16 @@
1
+ import type { ApiKeyDto } from '../schemas/ApiKeyDto';
2
+ export interface ApiKeyAggregateDto {
3
+ apiKey: ApiKeyDto;
4
+ /**
5
+ * @format int64
6
+ */
7
+ createdAt: number;
8
+ /**
9
+ * @format int64
10
+ */
11
+ lastModifiedAt: number;
12
+ /**
13
+ * @format int32
14
+ */
15
+ tokensCount?: number;
16
+ }
@@ -0,0 +1,21 @@
1
+ import type { GovernanceMetadata } from '../schemas/GovernanceMetadata';
2
+ export interface ApiKeyDto {
3
+ accountIdentifier: string;
4
+ apiKeyType: 'PGP_KEY' | 'SERVICE_ACCOUNT' | 'SSH_KEY' | 'USER';
5
+ /**
6
+ * @format int64
7
+ */
8
+ defaultTimeToExpireToken?: number;
9
+ description?: string;
10
+ governanceMetadata?: GovernanceMetadata;
11
+ identifier: string;
12
+ name: string;
13
+ orgIdentifier?: string;
14
+ parentIdentifier: string;
15
+ parentUniqueId?: string;
16
+ projectIdentifier?: string;
17
+ tags?: {
18
+ [key: string]: string;
19
+ };
20
+ uniqueId?: string;
21
+ }
@@ -0,0 +1,26 @@
1
+ import type { ApiKeyAggregateDto } from '../schemas/ApiKeyAggregateDto';
2
+ export interface PageApiKeyAggregateDto {
3
+ content?: ApiKeyAggregateDto[];
4
+ empty?: boolean;
5
+ /**
6
+ * @format int64
7
+ */
8
+ pageIndex?: number;
9
+ /**
10
+ * @format int64
11
+ */
12
+ pageItemCount?: number;
13
+ /**
14
+ * @format int64
15
+ */
16
+ pageSize?: number;
17
+ pageToken?: string;
18
+ /**
19
+ * @format int64
20
+ */
21
+ totalItems?: number;
22
+ /**
23
+ * @format int64
24
+ */
25
+ totalPages?: number;
26
+ }
@@ -0,0 +1,26 @@
1
+ import type { TokenAggregateDto } from '../schemas/TokenAggregateDto';
2
+ export interface PageTokenAggregateDto {
3
+ content?: TokenAggregateDto[];
4
+ empty?: boolean;
5
+ /**
6
+ * @format int64
7
+ */
8
+ pageIndex?: number;
9
+ /**
10
+ * @format int64
11
+ */
12
+ pageItemCount?: number;
13
+ /**
14
+ * @format int64
15
+ */
16
+ pageSize?: number;
17
+ pageToken?: string;
18
+ /**
19
+ * @format int64
20
+ */
21
+ totalItems?: number;
22
+ /**
23
+ * @format int64
24
+ */
25
+ totalPages?: number;
26
+ }
@@ -0,0 +1,4 @@
1
+ export interface PgpKeyIdentity {
2
+ email?: string;
3
+ name?: string;
4
+ }
@@ -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,9 @@
1
+ import type { ApiKeyDto } from '../schemas/ApiKeyDto';
2
+ export interface ResponseApiKeyDto {
3
+ correlationId?: string;
4
+ data?: ApiKeyDto;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { ApiKeyDto } from '../schemas/ApiKeyDto';
2
+ export interface ResponseListApiKeyDto {
3
+ correlationId?: string;
4
+ data?: ApiKeyDto[];
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { ScopeName } from '../schemas/ScopeName';
2
+ export interface ResponseListScopeName {
3
+ correlationId?: string;
4
+ data?: ScopeName[];
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { PageApiKeyAggregateDto } from '../schemas/PageApiKeyAggregateDto';
2
+ export interface ResponsePageApiKeyAggregateDto {
3
+ correlationId?: string;
4
+ data?: PageApiKeyAggregateDto;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { PageTokenAggregateDto } from '../schemas/PageTokenAggregateDto';
2
+ export interface ResponsePageTokenAggregateDto {
3
+ correlationId?: string;
4
+ data?: PageTokenAggregateDto;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,8 @@
1
+ export interface ResponseString {
2
+ correlationId?: string;
3
+ data?: string;
4
+ metaData?: {
5
+ [key: string]: any;
6
+ };
7
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
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,9 @@
1
+ import type { TokenDto } from '../schemas/TokenDto';
2
+ export interface ResponseTokenDto {
3
+ correlationId?: string;
4
+ data?: TokenDto;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,7 @@
1
+ export interface ScopeName {
2
+ accountIdentifier?: string;
3
+ orgIdentifier?: string;
4
+ orgName?: string;
5
+ projectIdentifier?: string;
6
+ projectName?: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,16 @@
1
+ import type { TokenDto } from '../schemas/TokenDto';
2
+ export interface TokenAggregateDto {
3
+ /**
4
+ * @format int64
5
+ */
6
+ createdAt: number;
7
+ /**
8
+ * @format int64
9
+ */
10
+ expiryAt: number;
11
+ /**
12
+ * @format int64
13
+ */
14
+ lastModifiedAt: number;
15
+ token: TokenDto;
16
+ }
@@ -0,0 +1,48 @@
1
+ import type { PgpKeyIdentity } from '../schemas/PgpKeyIdentity';
2
+ export interface TokenDto {
3
+ accountIdentifier: string;
4
+ apiKeyIdentifier: string;
5
+ apiKeyType: 'PGP_KEY' | 'SERVICE_ACCOUNT' | 'SSH_KEY' | 'USER';
6
+ content?: string;
7
+ description?: string;
8
+ email?: string;
9
+ encodedPassword?: string;
10
+ identifier: string;
11
+ name: string;
12
+ orgIdentifier?: string;
13
+ parentEntityUniqueId?: string;
14
+ parentIdentifier: string;
15
+ parentUniqueId?: string;
16
+ pgpIdentities?: PgpKeyIdentity[];
17
+ pgpIsSubKey?: boolean;
18
+ pgpKeyAlgorithm?: string;
19
+ pgpKeyFingerprint?: string;
20
+ pgpKeyId?: string;
21
+ pgpKeyUsage?: Array<'AUTH' | 'CERTIFY' | 'ENCRYPT' | 'SIGN'>;
22
+ pgpParentKeyId?: string;
23
+ pgpPrimaryIdentity?: PgpKeyIdentity;
24
+ pgpPrimaryUserId?: string;
25
+ projectIdentifier?: string;
26
+ revocationReason?: 'COMPROMISED' | 'RETIRED' | 'SUPERSEDED' | 'UNKNOWN';
27
+ /**
28
+ * @format int64
29
+ */
30
+ scheduledExpireTime?: number;
31
+ sshKeyContent?: string;
32
+ sshKeyFingerprint?: string;
33
+ sshKeyUsage?: Array<'AUTH' | 'SIGN'>;
34
+ tags?: {
35
+ [key: string]: string;
36
+ };
37
+ uniqueId?: string;
38
+ username?: string;
39
+ valid?: boolean;
40
+ /**
41
+ * @format int64
42
+ */
43
+ validFrom?: number;
44
+ /**
45
+ * @format int64
46
+ */
47
+ validTo?: number;
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ng-manager-swagger-service-client",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "Harness React NG Manager Swagger service client - NG Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",