@harnessio/react-ng-manager-swagger-service-client 1.11.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.
- package/dist/ng-manager-swagger-service/src/services/hooks/useCreateApiKeyMutation.d.ts +22 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useCreateApiKeyMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useCreateTokenMutation.d.ts +22 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useCreateTokenMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteApiKeyMutation.d.ts +26 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteApiKeyMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteTokenMutation.d.ts +27 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteTokenMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetFilteredUserGroupAggregateListMutation.d.ts +39 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetFilteredUserGroupAggregateListMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetInheritingChildScopeListForServiceAccountQuery.d.ts +24 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetInheritingChildScopeListForServiceAccountQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetInheritingChildScopeListQuery.d.ts +25 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetInheritingChildScopeListQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetTokenQuery.d.ts +19 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetTokenQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetUserGroupAggregateListQuery.d.ts +43 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetUserGroupAggregateListQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useListAggregatedApiKeysQuery.d.ts +37 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useListAggregatedApiKeysQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useListAggregatedTokensQuery.d.ts +39 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useListAggregatedTokensQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useListApiKeysQuery.d.ts +24 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useListApiKeysQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useRotateTokenMutation.d.ts +31 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useRotateTokenMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateApiKeyMutation.d.ts +21 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateApiKeyMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateTokenMutation.d.ts +25 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateTokenMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/index.d.ts +49 -0
- package/dist/ng-manager-swagger-service/src/services/index.js +15 -0
- package/dist/ng-manager-swagger-service/src/services/requestBodies/ApiKeyDtoRequestBody.d.ts +2 -0
- package/dist/ng-manager-swagger-service/src/services/requestBodies/ApiKeyDtoRequestBody.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/requestBodies/TokenDtoRequestBody.d.ts +2 -0
- package/dist/ng-manager-swagger-service/src/services/requestBodies/TokenDtoRequestBody.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/requestBodies/UserGroupFilterDtoRequestBody.d.ts +2 -0
- package/dist/ng-manager-swagger-service/src/services/requestBodies/UserGroupFilterDtoRequestBody.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ApiKeyAggregateDto.d.ts +16 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ApiKeyAggregateDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ApiKeyDto.d.ts +21 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ApiKeyDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PageApiKeyAggregateDto.d.ts +26 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PageApiKeyAggregateDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PageTokenAggregateDto.d.ts +26 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PageTokenAggregateDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PgpKeyIdentity.d.ts +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PgpKeyIdentity.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseApiKeyDto.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseApiKeyDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListApiKeyDto.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListApiKeyDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListScopeName.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListScopeName.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageApiKeyAggregateDto.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageApiKeyAggregateDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageTokenAggregateDto.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageTokenAggregateDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseString.d.ts +8 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseString.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseTokenDto.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseTokenDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ScopeName.d.ts +7 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ScopeName.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/TokenAggregateDto.d.ts +16 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/TokenAggregateDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/TokenDto.d.ts +48 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/TokenDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UserGroupFilterDto.d.ts +10 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UserGroupFilterDto.js +4 -0
- 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,39 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponsePageUserGroupAggregateDto } from '../schemas/ResponsePageUserGroupAggregateDto';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { UserGroupFilterDtoRequestBody } from '../requestBodies/UserGroupFilterDtoRequestBody';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface GetFilteredUserGroupAggregateListMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
/**
|
|
11
|
+
* @format int32
|
|
12
|
+
* @default 0
|
|
13
|
+
*/
|
|
14
|
+
pageIndex?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @format int32
|
|
17
|
+
* @default 50
|
|
18
|
+
*/
|
|
19
|
+
pageSize?: number;
|
|
20
|
+
sortOrders?: string[];
|
|
21
|
+
pageToken?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @format int32
|
|
24
|
+
* @default 6
|
|
25
|
+
*/
|
|
26
|
+
userSize?: number;
|
|
27
|
+
}
|
|
28
|
+
export type GetFilteredUserGroupAggregateListRequestBody = UserGroupFilterDtoRequestBody;
|
|
29
|
+
export type GetFilteredUserGroupAggregateListOkResponse = ResponseWithPagination<ResponsePageUserGroupAggregateDto>;
|
|
30
|
+
export type GetFilteredUserGroupAggregateListErrorResponse = Failure | Error;
|
|
31
|
+
export interface GetFilteredUserGroupAggregateListProps extends Omit<FetcherOptions<GetFilteredUserGroupAggregateListMutationQueryParams, GetFilteredUserGroupAggregateListRequestBody>, 'url'> {
|
|
32
|
+
queryParams: GetFilteredUserGroupAggregateListMutationQueryParams;
|
|
33
|
+
body: GetFilteredUserGroupAggregateListRequestBody;
|
|
34
|
+
}
|
|
35
|
+
export declare function getFilteredUserGroupAggregateList(props: GetFilteredUserGroupAggregateListProps): Promise<GetFilteredUserGroupAggregateListOkResponse>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
export declare function useGetFilteredUserGroupAggregateListMutation(options?: Omit<UseMutationOptions<GetFilteredUserGroupAggregateListOkResponse, GetFilteredUserGroupAggregateListErrorResponse, GetFilteredUserGroupAggregateListProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetFilteredUserGroupAggregateListOkResponse, GetFilteredUserGroupAggregateListErrorResponse, GetFilteredUserGroupAggregateListProps, 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 getFilteredUserGroupAggregateList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/aggregate/acl/usergroups`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetFilteredUserGroupAggregateListMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => getFilteredUserGroupAggregateList(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
|
+
}
|
package/dist/ng-manager-swagger-service/src/services/hooks/useGetInheritingChildScopeListQuery.d.ts
ADDED
|
@@ -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>;
|
package/dist/ng-manager-swagger-service/src/services/hooks/useGetInheritingChildScopeListQuery.js
ADDED
|
@@ -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
|
+
}
|
package/dist/ng-manager-swagger-service/src/services/hooks/useGetUserGroupAggregateListQuery.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponsePageUserGroupAggregateDto } from '../schemas/ResponsePageUserGroupAggregateDto';
|
|
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 GetUserGroupAggregateListQueryQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier?: string;
|
|
10
|
+
projectIdentifier?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @format int32
|
|
13
|
+
* @default 0
|
|
14
|
+
*/
|
|
15
|
+
pageIndex?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @format int32
|
|
18
|
+
* @default 50
|
|
19
|
+
*/
|
|
20
|
+
pageSize?: number;
|
|
21
|
+
sortOrders?: string[];
|
|
22
|
+
pageToken?: string;
|
|
23
|
+
searchTerm?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @default "EXCLUDE_INHERITED_GROUPS"
|
|
26
|
+
*/
|
|
27
|
+
filterType?: 'EXCLUDE_INHERITED_GROUPS' | 'INCLUDE_CHILD_SCOPE_GROUPS' | 'INCLUDE_INHERITED_GROUPS' | 'INCLUDE_PARENT_SCOPE_GROUPS';
|
|
28
|
+
/**
|
|
29
|
+
* @format int32
|
|
30
|
+
* @default 6
|
|
31
|
+
*/
|
|
32
|
+
userSize?: number;
|
|
33
|
+
}
|
|
34
|
+
export type GetUserGroupAggregateListOkResponse = ResponseWithPagination<ResponsePageUserGroupAggregateDto>;
|
|
35
|
+
export type GetUserGroupAggregateListErrorResponse = Failure | Error;
|
|
36
|
+
export interface GetUserGroupAggregateListProps extends Omit<FetcherOptions<GetUserGroupAggregateListQueryQueryParams, unknown>, 'url'> {
|
|
37
|
+
queryParams: GetUserGroupAggregateListQueryQueryParams;
|
|
38
|
+
}
|
|
39
|
+
export declare function getUserGroupAggregateList(props: GetUserGroupAggregateListProps): Promise<GetUserGroupAggregateListOkResponse>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
export declare function useGetUserGroupAggregateListQuery(props: GetUserGroupAggregateListProps, options?: Omit<UseQueryOptions<GetUserGroupAggregateListOkResponse, GetUserGroupAggregateListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetUserGroupAggregateListOkResponse, GetUserGroupAggregateListErrorResponse>;
|
package/dist/ng-manager-swagger-service/src/services/hooks/useGetUserGroupAggregateListQuery.js
ADDED
|
@@ -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 getUserGroupAggregateList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/aggregate/acl/usergroups`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetUserGroupAggregateListQuery(props, options) {
|
|
13
|
+
return useQuery(['getUserGroupAggregateList', props.queryParams], ({ signal }) => getUserGroupAggregateList(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>;
|