@harnessio/react-integration-manager-client 0.8.4 → 0.8.5

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 (62) hide show
  1. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesFieldValuesMutation.d.ts +33 -0
  2. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesFieldValuesMutation.js +27 -0
  3. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesFieldValuesOrgMutation.d.ts +34 -0
  4. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesFieldValuesOrgMutation.js +27 -0
  5. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesFieldValuesProjectMutation.d.ts +35 -0
  6. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesFieldValuesProjectMutation.js +27 -0
  7. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesMutation.d.ts +1 -1
  8. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesMutation.js +1 -1
  9. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesOrgMutation.d.ts +1 -1
  10. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesOrgMutation.js +1 -1
  11. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesProjectMutation.d.ts +1 -1
  12. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesProjectMutation.js +1 -1
  13. package/dist/integration-manager/src/services/hooks/useListIntegrationConfigsOrgQuery.d.ts +7 -3
  14. package/dist/integration-manager/src/services/hooks/useListIntegrationConfigsProjectQuery.d.ts +7 -3
  15. package/dist/integration-manager/src/services/hooks/useListIntegrationConfigsQuery.d.ts +7 -3
  16. package/dist/integration-manager/src/services/hooks/useSyncNowMutation.d.ts +1 -1
  17. package/dist/integration-manager/src/services/hooks/useSyncNowMutation.js +1 -1
  18. package/dist/integration-manager/src/services/index.d.ts +13 -16
  19. package/dist/integration-manager/src/services/index.js +3 -6
  20. package/dist/integration-manager/src/services/schemas/EntityGetCustomEntitiesFieldValuesResponse.d.ts +4 -0
  21. package/dist/integration-manager/src/services/schemas/EnumIntegrationEventType.d.ts +1 -1
  22. package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigOrgRequest.d.ts +4 -0
  23. package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigProjectRequest.d.ts +4 -0
  24. package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigRequest.d.ts +4 -0
  25. package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesFieldValuesOrgRequest.d.ts +5 -0
  26. package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesFieldValuesProjectRequest.d.ts +5 -0
  27. package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesFieldValuesProjectRequest.js +4 -0
  28. package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesFieldValuesRequest.d.ts +5 -0
  29. package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesFieldValuesRequest.js +4 -0
  30. package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigOrgRequest.d.ts +1 -0
  31. package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigProjectRequest.d.ts +1 -0
  32. package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigRequest.d.ts +1 -0
  33. package/dist/integration-manager/src/services/schemas/TypesDefaultEntitySchema.d.ts +2 -0
  34. package/dist/integration-manager/src/services/schemas/TypesHarnessAirbyteConfig.d.ts +1 -1
  35. package/dist/integration-manager/src/services/schemas/TypesInfraProviderType.d.ts +1 -4
  36. package/dist/integration-manager/src/services/schemas/TypesIntegrationConfig.d.ts +1 -0
  37. package/dist/integration-manager/src/services/schemas/TypesWorkflowFieldMapping.d.ts +4 -0
  38. package/dist/integration-manager/src/services/schemas/TypesWorkflowFieldMapping.js +4 -0
  39. package/dist/integration-manager/src/services/schemas/TypesWorkflowMetadata.d.ts +9 -0
  40. package/dist/integration-manager/src/services/schemas/TypesWorkflowTarget.d.ts +4 -0
  41. package/dist/integration-manager/src/services/schemas/TypesWorkflowTarget.js +4 -0
  42. package/package.json +1 -1
  43. package/dist/integration-manager/src/services/hooks/useCreateAgentMutation.d.ts +0 -20
  44. package/dist/integration-manager/src/services/hooks/useCreateAgentMutation.js +0 -14
  45. package/dist/integration-manager/src/services/hooks/useDeleteAgentMutation.d.ts +0 -17
  46. package/dist/integration-manager/src/services/hooks/useDeleteAgentMutation.js +0 -14
  47. package/dist/integration-manager/src/services/hooks/useDownloadAgentYamlQuery.d.ts +0 -17
  48. package/dist/integration-manager/src/services/hooks/useDownloadAgentYamlQuery.js +0 -14
  49. package/dist/integration-manager/src/services/hooks/useGetAgentQuery.d.ts +0 -18
  50. package/dist/integration-manager/src/services/hooks/useGetAgentQuery.js +0 -14
  51. package/dist/integration-manager/src/services/hooks/useListAgentsQuery.d.ts +0 -17
  52. package/dist/integration-manager/src/services/hooks/useListAgentsQuery.js +0 -14
  53. package/dist/integration-manager/src/services/hooks/useUpdateAgentMutation.d.ts +0 -21
  54. package/dist/integration-manager/src/services/hooks/useUpdateAgentMutation.js +0 -14
  55. package/dist/integration-manager/src/services/schemas/OpenapiCreateAgentRequest.d.ts +0 -5
  56. package/dist/integration-manager/src/services/schemas/OpenapiUpdateAgentRequest.d.ts +0 -6
  57. package/dist/integration-manager/src/services/schemas/TypesAgentStatus.d.ts +0 -1
  58. package/dist/integration-manager/src/services/schemas/TypesIntegrationAgent.d.ts +0 -11
  59. package/dist/integration-manager/src/services/schemas/TypesIntegrationAgent.js +0 -1
  60. /package/dist/integration-manager/src/services/schemas/{OpenapiCreateAgentRequest.js → EntityGetCustomEntitiesFieldValuesResponse.js} +0 -0
  61. /package/dist/integration-manager/src/services/schemas/{TypesAgentStatus.js → OpenapiGetCustomEntitiesFieldValuesOrgRequest.js} +0 -0
  62. /package/dist/integration-manager/src/services/schemas/{OpenapiUpdateAgentRequest.js → TypesWorkflowMetadata.js} +0 -0
@@ -0,0 +1,33 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { EntityGetCustomEntitiesFieldValuesResponse } from '../schemas/EntityGetCustomEntitiesFieldValuesResponse';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { OpenapiGetCustomEntitiesFieldValuesRequest } from '../schemas/OpenapiGetCustomEntitiesFieldValuesRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface GetCustomEntitiesFieldValuesMutationPathParams {
8
+ accountIdentifier: string;
9
+ }
10
+ export type GetCustomEntitiesFieldValuesRequestBody = OpenapiGetCustomEntitiesFieldValuesRequest;
11
+ export type GetCustomEntitiesFieldValuesOkResponse = ResponseWithPagination<EntityGetCustomEntitiesFieldValuesResponse>;
12
+ export type GetCustomEntitiesFieldValuesErrorResponse = ApierrorsErrorResponse;
13
+ export interface GetCustomEntitiesFieldValuesProps extends GetCustomEntitiesFieldValuesMutationPathParams, Omit<FetcherOptions<unknown, GetCustomEntitiesFieldValuesRequestBody>, 'url'> {
14
+ body: GetCustomEntitiesFieldValuesRequestBody;
15
+ }
16
+ export declare function getCustomEntitiesFieldValues(props: GetCustomEntitiesFieldValuesProps): Promise<GetCustomEntitiesFieldValuesOkResponse>;
17
+ /**
18
+ * Returns the distinct spec.<field_name> values present in entities for a custom integration.
19
+ *
20
+ * Scope (account/org/project) is taken from the URL path.
21
+ *
22
+ * Request body:
23
+ * - integration_id: Required; identifier of the custom integration.
24
+ * - kind: Required; entity kind (lowercased server-side).
25
+ * - field_name: Required; exactly one of: type, status.
26
+ *
27
+ * Backed by the indexed related_fields array, where ingestion writes spec.<field> as "<field>:<value>".
28
+ *
29
+ * Response:
30
+ * - field_name: The requested field name (lowercased).
31
+ * - values: Array of distinct field values, sorted alphabetically (ascending).
32
+ */
33
+ export declare function useGetCustomEntitiesFieldValuesMutation(options?: Omit<UseMutationOptions<GetCustomEntitiesFieldValuesOkResponse, GetCustomEntitiesFieldValuesErrorResponse, GetCustomEntitiesFieldValuesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetCustomEntitiesFieldValuesOkResponse, ApierrorsErrorResponse, GetCustomEntitiesFieldValuesProps, unknown>;
@@ -0,0 +1,27 @@
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 getCustomEntitiesFieldValues(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/entities/custom/fieldValues`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Returns the distinct spec.<field_name> values present in entities for a custom integration.
11
+ *
12
+ * Scope (account/org/project) is taken from the URL path.
13
+ *
14
+ * Request body:
15
+ * - integration_id: Required; identifier of the custom integration.
16
+ * - kind: Required; entity kind (lowercased server-side).
17
+ * - field_name: Required; exactly one of: type, status.
18
+ *
19
+ * Backed by the indexed related_fields array, where ingestion writes spec.<field> as "<field>:<value>".
20
+ *
21
+ * Response:
22
+ * - field_name: The requested field name (lowercased).
23
+ * - values: Array of distinct field values, sorted alphabetically (ascending).
24
+ */
25
+ export function useGetCustomEntitiesFieldValuesMutation(options) {
26
+ return useMutation((mutateProps) => getCustomEntitiesFieldValues(mutateProps), options);
27
+ }
@@ -0,0 +1,34 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { EntityGetCustomEntitiesFieldValuesResponse } from '../schemas/EntityGetCustomEntitiesFieldValuesResponse';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { OpenapiGetCustomEntitiesFieldValuesOrgRequest } from '../schemas/OpenapiGetCustomEntitiesFieldValuesOrgRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface GetCustomEntitiesFieldValuesOrgMutationPathParams {
8
+ accountIdentifier: string;
9
+ orgIdentifier: string;
10
+ }
11
+ export type GetCustomEntitiesFieldValuesOrgRequestBody = OpenapiGetCustomEntitiesFieldValuesOrgRequest;
12
+ export type GetCustomEntitiesFieldValuesOrgOkResponse = ResponseWithPagination<EntityGetCustomEntitiesFieldValuesResponse>;
13
+ export type GetCustomEntitiesFieldValuesOrgErrorResponse = ApierrorsErrorResponse;
14
+ export interface GetCustomEntitiesFieldValuesOrgProps extends GetCustomEntitiesFieldValuesOrgMutationPathParams, Omit<FetcherOptions<unknown, GetCustomEntitiesFieldValuesOrgRequestBody>, 'url'> {
15
+ body: GetCustomEntitiesFieldValuesOrgRequestBody;
16
+ }
17
+ export declare function getCustomEntitiesFieldValuesOrg(props: GetCustomEntitiesFieldValuesOrgProps): Promise<GetCustomEntitiesFieldValuesOrgOkResponse>;
18
+ /**
19
+ * Returns the distinct spec.<field_name> values present in entities for a custom integration.
20
+ *
21
+ * Scope (account/org/project) is taken from the URL path.
22
+ *
23
+ * Request body:
24
+ * - integration_id: Required; identifier of the custom integration.
25
+ * - kind: Required; entity kind (lowercased server-side).
26
+ * - field_name: Required; exactly one of: type, status.
27
+ *
28
+ * Backed by the indexed related_fields array, where ingestion writes spec.<field> as "<field>:<value>".
29
+ *
30
+ * Response:
31
+ * - field_name: The requested field name (lowercased).
32
+ * - values: Array of distinct field values, sorted alphabetically (ascending).
33
+ */
34
+ export declare function useGetCustomEntitiesFieldValuesOrgMutation(options?: Omit<UseMutationOptions<GetCustomEntitiesFieldValuesOrgOkResponse, GetCustomEntitiesFieldValuesOrgErrorResponse, GetCustomEntitiesFieldValuesOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetCustomEntitiesFieldValuesOrgOkResponse, ApierrorsErrorResponse, GetCustomEntitiesFieldValuesOrgProps, unknown>;
@@ -0,0 +1,27 @@
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 getCustomEntitiesFieldValuesOrg(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/entities/custom/fieldValues`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Returns the distinct spec.<field_name> values present in entities for a custom integration.
11
+ *
12
+ * Scope (account/org/project) is taken from the URL path.
13
+ *
14
+ * Request body:
15
+ * - integration_id: Required; identifier of the custom integration.
16
+ * - kind: Required; entity kind (lowercased server-side).
17
+ * - field_name: Required; exactly one of: type, status.
18
+ *
19
+ * Backed by the indexed related_fields array, where ingestion writes spec.<field> as "<field>:<value>".
20
+ *
21
+ * Response:
22
+ * - field_name: The requested field name (lowercased).
23
+ * - values: Array of distinct field values, sorted alphabetically (ascending).
24
+ */
25
+ export function useGetCustomEntitiesFieldValuesOrgMutation(options) {
26
+ return useMutation((mutateProps) => getCustomEntitiesFieldValuesOrg(mutateProps), options);
27
+ }
@@ -0,0 +1,35 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { EntityGetCustomEntitiesFieldValuesResponse } from '../schemas/EntityGetCustomEntitiesFieldValuesResponse';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { OpenapiGetCustomEntitiesFieldValuesProjectRequest } from '../schemas/OpenapiGetCustomEntitiesFieldValuesProjectRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface GetCustomEntitiesFieldValuesProjectMutationPathParams {
8
+ accountIdentifier: string;
9
+ orgIdentifier: string;
10
+ projectIdentifier: string;
11
+ }
12
+ export type GetCustomEntitiesFieldValuesProjectRequestBody = OpenapiGetCustomEntitiesFieldValuesProjectRequest;
13
+ export type GetCustomEntitiesFieldValuesProjectOkResponse = ResponseWithPagination<EntityGetCustomEntitiesFieldValuesResponse>;
14
+ export type GetCustomEntitiesFieldValuesProjectErrorResponse = ApierrorsErrorResponse;
15
+ export interface GetCustomEntitiesFieldValuesProjectProps extends GetCustomEntitiesFieldValuesProjectMutationPathParams, Omit<FetcherOptions<unknown, GetCustomEntitiesFieldValuesProjectRequestBody>, 'url'> {
16
+ body: GetCustomEntitiesFieldValuesProjectRequestBody;
17
+ }
18
+ export declare function getCustomEntitiesFieldValuesProject(props: GetCustomEntitiesFieldValuesProjectProps): Promise<GetCustomEntitiesFieldValuesProjectOkResponse>;
19
+ /**
20
+ * Returns the distinct spec.<field_name> values present in entities for a custom integration.
21
+ *
22
+ * Scope (account/org/project) is taken from the URL path.
23
+ *
24
+ * Request body:
25
+ * - integration_id: Required; identifier of the custom integration.
26
+ * - kind: Required; entity kind (lowercased server-side).
27
+ * - field_name: Required; exactly one of: type, status.
28
+ *
29
+ * Backed by the indexed related_fields array, where ingestion writes spec.<field> as "<field>:<value>".
30
+ *
31
+ * Response:
32
+ * - field_name: The requested field name (lowercased).
33
+ * - values: Array of distinct field values, sorted alphabetically (ascending).
34
+ */
35
+ export declare function useGetCustomEntitiesFieldValuesProjectMutation(options?: Omit<UseMutationOptions<GetCustomEntitiesFieldValuesProjectOkResponse, GetCustomEntitiesFieldValuesProjectErrorResponse, GetCustomEntitiesFieldValuesProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetCustomEntitiesFieldValuesProjectOkResponse, ApierrorsErrorResponse, GetCustomEntitiesFieldValuesProjectProps, unknown>;
@@ -0,0 +1,27 @@
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 getCustomEntitiesFieldValuesProject(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/entities/custom/fieldValues`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Returns the distinct spec.<field_name> values present in entities for a custom integration.
11
+ *
12
+ * Scope (account/org/project) is taken from the URL path.
13
+ *
14
+ * Request body:
15
+ * - integration_id: Required; identifier of the custom integration.
16
+ * - kind: Required; entity kind (lowercased server-side).
17
+ * - field_name: Required; exactly one of: type, status.
18
+ *
19
+ * Backed by the indexed related_fields array, where ingestion writes spec.<field> as "<field>:<value>".
20
+ *
21
+ * Response:
22
+ * - field_name: The requested field name (lowercased).
23
+ * - values: Array of distinct field values, sorted alphabetically (ascending).
24
+ */
25
+ export function useGetCustomEntitiesFieldValuesProjectMutation(options) {
26
+ return useMutation((mutateProps) => getCustomEntitiesFieldValuesProject(mutateProps), options);
27
+ }
@@ -28,7 +28,7 @@ export declare function getCustomEntities(props: GetCustomEntitiesProps): Promis
28
28
  * - At least one of entity_ref or correlation_value is required.
29
29
  * - filter: Optional map of additional indexed-field filters. Each key/values pair becomes
30
30
  * a related_fields AND constraint ($in within values). Only fields written into
31
- * related_fields by ingestion (entity_ref, type, correlation source_path) are queryable.
31
+ * related_fields by ingestion (entity_ref, type, status, correlation source_path) are queryable.
32
32
  * - sort_by: "created", "last_updated" (default), "name", or "identifier".
33
33
  * - order: "asc" or "desc" (default: "desc").
34
34
  * - page: Pagination page number (default: 0, 0-based).
@@ -20,7 +20,7 @@ export function getCustomEntities(props) {
20
20
  * - At least one of entity_ref or correlation_value is required.
21
21
  * - filter: Optional map of additional indexed-field filters. Each key/values pair becomes
22
22
  * a related_fields AND constraint ($in within values). Only fields written into
23
- * related_fields by ingestion (entity_ref, type, correlation source_path) are queryable.
23
+ * related_fields by ingestion (entity_ref, type, status, correlation source_path) are queryable.
24
24
  * - sort_by: "created", "last_updated" (default), "name", or "identifier".
25
25
  * - order: "asc" or "desc" (default: "desc").
26
26
  * - page: Pagination page number (default: 0, 0-based).
@@ -29,7 +29,7 @@ export declare function getCustomEntitiesOrg(props: GetCustomEntitiesOrgProps):
29
29
  * - At least one of entity_ref or correlation_value is required.
30
30
  * - filter: Optional map of additional indexed-field filters. Each key/values pair becomes
31
31
  * a related_fields AND constraint ($in within values). Only fields written into
32
- * related_fields by ingestion (entity_ref, type, correlation source_path) are queryable.
32
+ * related_fields by ingestion (entity_ref, type, status, correlation source_path) are queryable.
33
33
  * - sort_by: "created", "last_updated" (default), "name", or "identifier".
34
34
  * - order: "asc" or "desc" (default: "desc").
35
35
  * - page: Pagination page number (default: 0, 0-based).
@@ -20,7 +20,7 @@ export function getCustomEntitiesOrg(props) {
20
20
  * - At least one of entity_ref or correlation_value is required.
21
21
  * - filter: Optional map of additional indexed-field filters. Each key/values pair becomes
22
22
  * a related_fields AND constraint ($in within values). Only fields written into
23
- * related_fields by ingestion (entity_ref, type, correlation source_path) are queryable.
23
+ * related_fields by ingestion (entity_ref, type, status, correlation source_path) are queryable.
24
24
  * - sort_by: "created", "last_updated" (default), "name", or "identifier".
25
25
  * - order: "asc" or "desc" (default: "desc").
26
26
  * - page: Pagination page number (default: 0, 0-based).
@@ -30,7 +30,7 @@ export declare function getCustomEntitiesProject(props: GetCustomEntitiesProject
30
30
  * - At least one of entity_ref or correlation_value is required.
31
31
  * - filter: Optional map of additional indexed-field filters. Each key/values pair becomes
32
32
  * a related_fields AND constraint ($in within values). Only fields written into
33
- * related_fields by ingestion (entity_ref, type, correlation source_path) are queryable.
33
+ * related_fields by ingestion (entity_ref, type, status, correlation source_path) are queryable.
34
34
  * - sort_by: "created", "last_updated" (default), "name", or "identifier".
35
35
  * - order: "asc" or "desc" (default: "desc").
36
36
  * - page: Pagination page number (default: 0, 0-based).
@@ -20,7 +20,7 @@ export function getCustomEntitiesProject(props) {
20
20
  * - At least one of entity_ref or correlation_value is required.
21
21
  * - filter: Optional map of additional indexed-field filters. Each key/values pair becomes
22
22
  * a related_fields AND constraint ($in within values). Only fields written into
23
- * related_fields by ingestion (entity_ref, type, correlation source_path) are queryable.
23
+ * related_fields by ingestion (entity_ref, type, status, correlation source_path) are queryable.
24
24
  * - sort_by: "created", "last_updated" (default), "name", or "identifier".
25
25
  * - order: "asc" or "desc" (default: "desc").
26
26
  * - page: Pagination page number (default: 0, 0-based).
@@ -27,11 +27,11 @@ export interface ListIntegrationConfigsOrgQueryQueryParams {
27
27
  */
28
28
  offset?: number;
29
29
  /**
30
- * Sort field: 'created' or 'updated'. Omitted means unsorted.
30
+ * Sort field: 'name', 'created', or 'updated'. Defaults to 'name' when omitted.
31
31
  */
32
- sort?: 'created' | 'updated';
32
+ sort?: 'created' | 'name' | 'updated';
33
33
  /**
34
- * Sort order: 'asc' or 'desc'. Defaults to 'desc' when sort is provided.
34
+ * Sort order: 'asc' or 'desc'. Defaults to 'asc' when omitted.
35
35
  */
36
36
  order?: 'asc' | 'desc';
37
37
  /**
@@ -46,6 +46,10 @@ export interface ListIntegrationConfigsOrgQueryQueryParams {
46
46
  * When set, filters integrations by enabled state (true = enabled only, false = disabled only). Omit to return all integrations regardless of enabled state.
47
47
  */
48
48
  enabled?: boolean | null;
49
+ /**
50
+ * Optional filter by source.
51
+ */
52
+ source?: string;
49
53
  }
50
54
  export type ListIntegrationConfigsOrgOkResponse = ResponseWithPagination<TypesIntegrationConfig[]>;
51
55
  export type ListIntegrationConfigsOrgErrorResponse = ApierrorsErrorResponse;
@@ -28,11 +28,11 @@ export interface ListIntegrationConfigsProjectQueryQueryParams {
28
28
  */
29
29
  offset?: number;
30
30
  /**
31
- * Sort field: 'created' or 'updated'. Omitted means unsorted.
31
+ * Sort field: 'name', 'created', or 'updated'. Defaults to 'name' when omitted.
32
32
  */
33
- sort?: 'created' | 'updated';
33
+ sort?: 'created' | 'name' | 'updated';
34
34
  /**
35
- * Sort order: 'asc' or 'desc'. Defaults to 'desc' when sort is provided.
35
+ * Sort order: 'asc' or 'desc'. Defaults to 'asc' when omitted.
36
36
  */
37
37
  order?: 'asc' | 'desc';
38
38
  /**
@@ -47,6 +47,10 @@ export interface ListIntegrationConfigsProjectQueryQueryParams {
47
47
  * When set, filters integrations by enabled state (true = enabled only, false = disabled only). Omit to return all integrations regardless of enabled state.
48
48
  */
49
49
  enabled?: boolean | null;
50
+ /**
51
+ * Optional filter by source.
52
+ */
53
+ source?: string;
50
54
  }
51
55
  export type ListIntegrationConfigsProjectOkResponse = ResponseWithPagination<TypesIntegrationConfig[]>;
52
56
  export type ListIntegrationConfigsProjectErrorResponse = ApierrorsErrorResponse;
@@ -26,11 +26,11 @@ export interface ListIntegrationConfigsQueryQueryParams {
26
26
  */
27
27
  offset?: number;
28
28
  /**
29
- * Sort field: 'created' or 'updated'. Omitted means unsorted.
29
+ * Sort field: 'name', 'created', or 'updated'. Defaults to 'name' when omitted.
30
30
  */
31
- sort?: 'created' | 'updated';
31
+ sort?: 'created' | 'name' | 'updated';
32
32
  /**
33
- * Sort order: 'asc' or 'desc'. Defaults to 'desc' when sort is provided.
33
+ * Sort order: 'asc' or 'desc'. Defaults to 'asc' when omitted.
34
34
  */
35
35
  order?: 'asc' | 'desc';
36
36
  /**
@@ -45,6 +45,10 @@ export interface ListIntegrationConfigsQueryQueryParams {
45
45
  * When set, filters integrations by enabled state (true = enabled only, false = disabled only). Omit to return all integrations regardless of enabled state.
46
46
  */
47
47
  enabled?: boolean | null;
48
+ /**
49
+ * Optional filter by source.
50
+ */
51
+ source?: string;
48
52
  /**
49
53
  * Repeatable query param; each value is a JSON object with id and scope fields (maximum 200). Account-level list route only; each ref scope may be any path within the caller account (account, org, or project). Refs mode is independent of all other list params. Returns 400 for malformed refs, out-of-account scopes, or too many refs. Returns 200 with all matched configs or an empty array when any ref is missing.
50
54
  */
@@ -13,6 +13,6 @@ export interface SyncNowProps extends SyncNowMutationPathParams, Omit<FetcherOpt
13
13
  }
14
14
  export declare function syncNow(props: SyncNowProps): Promise<SyncNowOkResponse>;
15
15
  /**
16
- * Triggers an immediate Airbyte sync via the k8s-agent.
16
+ * Triggers an immediate Airbyte sync through the delegate lifecycle.
17
17
  */
18
18
  export declare function useSyncNowMutation(options?: Omit<UseMutationOptions<SyncNowOkResponse, SyncNowErrorResponse, SyncNowProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SyncNowOkResponse, ApierrorsErrorResponse, SyncNowProps, unknown>;
@@ -7,7 +7,7 @@ export function syncNow(props) {
7
7
  return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/${props.integrationconfig_identifier}/airbyte-sync`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Triggers an immediate Airbyte sync via the k8s-agent.
10
+ * Triggers an immediate Airbyte sync through the delegate lifecycle.
11
11
  */
12
12
  export function useSyncNowMutation(options) {
13
13
  return useMutation((mutateProps) => syncNow(mutateProps), options);
@@ -5,8 +5,6 @@ export type { CountIntegrationConfigsProjectErrorResponse, CountIntegrationConfi
5
5
  export { countIntegrationConfigsProject, useCountIntegrationConfigsProjectQuery, } from './hooks/useCountIntegrationConfigsProjectQuery';
6
6
  export type { CountIntegrationConfigsErrorResponse, CountIntegrationConfigsOkResponse, CountIntegrationConfigsProps, CountIntegrationConfigsQueryPathParams, CountIntegrationConfigsQueryQueryParams, } from './hooks/useCountIntegrationConfigsQuery';
7
7
  export { countIntegrationConfigs, useCountIntegrationConfigsQuery, } from './hooks/useCountIntegrationConfigsQuery';
8
- export type { CreateAgentErrorResponse, CreateAgentMutationPathParams, CreateAgentOkResponse, CreateAgentProps, CreateAgentRequestBody, } from './hooks/useCreateAgentMutation';
9
- export { createAgent, useCreateAgentMutation } from './hooks/useCreateAgentMutation';
10
8
  export type { CreateAirbyteIntegrationConfigErrorResponse, CreateAirbyteIntegrationConfigMutationPathParams, CreateAirbyteIntegrationConfigOkResponse, CreateAirbyteIntegrationConfigProps, CreateAirbyteIntegrationConfigRequestBody, } from './hooks/useCreateAirbyteIntegrationConfigMutation';
11
9
  export { createAirbyteIntegrationConfig, useCreateAirbyteIntegrationConfigMutation, } from './hooks/useCreateAirbyteIntegrationConfigMutation';
12
10
  export type { CreateAirbyteIntegrationConfigOrgErrorResponse, CreateAirbyteIntegrationConfigOrgMutationPathParams, CreateAirbyteIntegrationConfigOrgOkResponse, CreateAirbyteIntegrationConfigOrgProps, CreateAirbyteIntegrationConfigOrgRequestBody, } from './hooks/useCreateAirbyteIntegrationConfigOrgMutation';
@@ -25,8 +23,6 @@ export type { CreateMetricConfigOrgErrorResponse, CreateMetricConfigOrgMutationP
25
23
  export { createMetricConfigOrg, useCreateMetricConfigOrgMutation, } from './hooks/useCreateMetricConfigOrgMutation';
26
24
  export type { CreateMetricConfigProjectErrorResponse, CreateMetricConfigProjectMutationPathParams, CreateMetricConfigProjectOkResponse, CreateMetricConfigProjectProps, CreateMetricConfigProjectRequestBody, } from './hooks/useCreateMetricConfigProjectMutation';
27
25
  export { createMetricConfigProject, useCreateMetricConfigProjectMutation, } from './hooks/useCreateMetricConfigProjectMutation';
28
- export type { DeleteAgentErrorResponse, DeleteAgentMutationPathParams, DeleteAgentOkResponse, DeleteAgentProps, } from './hooks/useDeleteAgentMutation';
29
- export { deleteAgent, useDeleteAgentMutation } from './hooks/useDeleteAgentMutation';
30
26
  export type { DeleteIntegrationConfigErrorResponse, DeleteIntegrationConfigMutationPathParams, DeleteIntegrationConfigOkResponse, DeleteIntegrationConfigProps, } from './hooks/useDeleteIntegrationConfigMutation';
31
27
  export { deleteIntegrationConfig, useDeleteIntegrationConfigMutation, } from './hooks/useDeleteIntegrationConfigMutation';
32
28
  export type { DeleteIntegrationConfigOrgErrorResponse, DeleteIntegrationConfigOrgMutationPathParams, DeleteIntegrationConfigOrgOkResponse, DeleteIntegrationConfigOrgProps, } from './hooks/useDeleteIntegrationConfigOrgMutation';
@@ -45,12 +41,8 @@ export type { DeleteSettingOrgErrorResponse, DeleteSettingOrgMutationPathParams,
45
41
  export { deleteSettingOrg, useDeleteSettingOrgMutation } from './hooks/useDeleteSettingOrgMutation';
46
42
  export type { DeleteSettingProjectErrorResponse, DeleteSettingProjectMutationPathParams, DeleteSettingProjectOkResponse, DeleteSettingProjectProps, } from './hooks/useDeleteSettingProjectMutation';
47
43
  export { deleteSettingProject, useDeleteSettingProjectMutation, } from './hooks/useDeleteSettingProjectMutation';
48
- export type { DownloadAgentYamlErrorResponse, DownloadAgentYamlOkResponse, DownloadAgentYamlProps, DownloadAgentYamlQueryPathParams, } from './hooks/useDownloadAgentYamlQuery';
49
- export { downloadAgentYaml, useDownloadAgentYamlQuery } from './hooks/useDownloadAgentYamlQuery';
50
44
  export type { FetchAirbyteConnectorCatalogErrorResponse, FetchAirbyteConnectorCatalogMutationPathParams, FetchAirbyteConnectorCatalogOkResponse, FetchAirbyteConnectorCatalogProps, FetchAirbyteConnectorCatalogRequestBody, } from './hooks/useFetchAirbyteConnectorCatalogMutation';
51
45
  export { fetchAirbyteConnectorCatalog, useFetchAirbyteConnectorCatalogMutation, } from './hooks/useFetchAirbyteConnectorCatalogMutation';
52
- export type { GetAgentErrorResponse, GetAgentOkResponse, GetAgentProps, GetAgentQueryPathParams, } from './hooks/useGetAgentQuery';
53
- export { getAgent, useGetAgentQuery } from './hooks/useGetAgentQuery';
54
46
  export type { GetAirbyteConnectorCatalogErrorResponse, GetAirbyteConnectorCatalogOkResponse, GetAirbyteConnectorCatalogProps, GetAirbyteConnectorCatalogQueryPathParams, GetAirbyteConnectorCatalogQueryQueryParams, } from './hooks/useGetAirbyteConnectorCatalogQuery';
55
47
  export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogQuery, } from './hooks/useGetAirbyteConnectorCatalogQuery';
56
48
  export type { GetAirbyteIntegrationConfigOrgErrorResponse, GetAirbyteIntegrationConfigOrgOkResponse, GetAirbyteIntegrationConfigOrgProps, GetAirbyteIntegrationConfigOrgQueryPathParams, } from './hooks/useGetAirbyteIntegrationConfigOrgQuery';
@@ -59,6 +51,12 @@ export type { GetAirbyteIntegrationConfigProjectErrorResponse, GetAirbyteIntegra
59
51
  export { getAirbyteIntegrationConfigProject, useGetAirbyteIntegrationConfigProjectQuery, } from './hooks/useGetAirbyteIntegrationConfigProjectQuery';
60
52
  export type { GetAirbyteIntegrationConfigErrorResponse, GetAirbyteIntegrationConfigOkResponse, GetAirbyteIntegrationConfigProps, GetAirbyteIntegrationConfigQueryPathParams, } from './hooks/useGetAirbyteIntegrationConfigQuery';
61
53
  export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
54
+ export type { GetCustomEntitiesFieldValuesErrorResponse, GetCustomEntitiesFieldValuesMutationPathParams, GetCustomEntitiesFieldValuesOkResponse, GetCustomEntitiesFieldValuesProps, GetCustomEntitiesFieldValuesRequestBody, } from './hooks/useGetCustomEntitiesFieldValuesMutation';
55
+ export { getCustomEntitiesFieldValues, useGetCustomEntitiesFieldValuesMutation, } from './hooks/useGetCustomEntitiesFieldValuesMutation';
56
+ export type { GetCustomEntitiesFieldValuesOrgErrorResponse, GetCustomEntitiesFieldValuesOrgMutationPathParams, GetCustomEntitiesFieldValuesOrgOkResponse, GetCustomEntitiesFieldValuesOrgProps, GetCustomEntitiesFieldValuesOrgRequestBody, } from './hooks/useGetCustomEntitiesFieldValuesOrgMutation';
57
+ export { getCustomEntitiesFieldValuesOrg, useGetCustomEntitiesFieldValuesOrgMutation, } from './hooks/useGetCustomEntitiesFieldValuesOrgMutation';
58
+ export type { GetCustomEntitiesFieldValuesProjectErrorResponse, GetCustomEntitiesFieldValuesProjectMutationPathParams, GetCustomEntitiesFieldValuesProjectOkResponse, GetCustomEntitiesFieldValuesProjectProps, GetCustomEntitiesFieldValuesProjectRequestBody, } from './hooks/useGetCustomEntitiesFieldValuesProjectMutation';
59
+ export { getCustomEntitiesFieldValuesProject, useGetCustomEntitiesFieldValuesProjectMutation, } from './hooks/useGetCustomEntitiesFieldValuesProjectMutation';
62
60
  export type { GetCustomEntitiesErrorResponse, GetCustomEntitiesMutationPathParams, GetCustomEntitiesOkResponse, GetCustomEntitiesProps, GetCustomEntitiesRequestBody, } from './hooks/useGetCustomEntitiesMutation';
63
61
  export { getCustomEntities, useGetCustomEntitiesMutation, } from './hooks/useGetCustomEntitiesMutation';
64
62
  export type { GetCustomEntitiesOrgErrorResponse, GetCustomEntitiesOrgMutationPathParams, GetCustomEntitiesOrgOkResponse, GetCustomEntitiesOrgProps, GetCustomEntitiesOrgRequestBody, } from './hooks/useGetCustomEntitiesOrgMutation';
@@ -97,8 +95,6 @@ export type { GetMetricTimeseriesProjectErrorResponse, GetMetricTimeseriesProjec
97
95
  export { getMetricTimeseriesProject, useGetMetricTimeseriesProjectQuery, } from './hooks/useGetMetricTimeseriesProjectQuery';
98
96
  export type { GetMetricTimeseriesErrorResponse, GetMetricTimeseriesOkResponse, GetMetricTimeseriesProps, GetMetricTimeseriesQueryPathParams, GetMetricTimeseriesQueryQueryParams, } from './hooks/useGetMetricTimeseriesQuery';
99
97
  export { getMetricTimeseries, useGetMetricTimeseriesQuery, } from './hooks/useGetMetricTimeseriesQuery';
100
- export type { ListAgentsErrorResponse, ListAgentsOkResponse, ListAgentsProps, ListAgentsQueryPathParams, } from './hooks/useListAgentsQuery';
101
- export { listAgents, useListAgentsQuery } from './hooks/useListAgentsQuery';
102
98
  export type { ListDefaultMappingFieldsErrorResponse, ListDefaultMappingFieldsOkResponse, ListDefaultMappingFieldsProps, ListDefaultMappingFieldsQueryPathParams, ListDefaultMappingFieldsQueryQueryParams, } from './hooks/useListDefaultMappingFieldsQuery';
103
99
  export { listDefaultMappingFields, useListDefaultMappingFieldsQuery, } from './hooks/useListDefaultMappingFieldsQuery';
104
100
  export type { ListDefaultSchemasErrorResponse, ListDefaultSchemasOkResponse, ListDefaultSchemasProps, ListDefaultSchemasQueryPathParams, ListDefaultSchemasQueryQueryParams, } from './hooks/useListDefaultSchemasQuery';
@@ -139,8 +135,6 @@ export type { TriggerSyncOrgErrorResponse, TriggerSyncOrgMutationPathParams, Tri
139
135
  export { triggerSyncOrg, useTriggerSyncOrgMutation } from './hooks/useTriggerSyncOrgMutation';
140
136
  export type { TriggerSyncProjectErrorResponse, TriggerSyncProjectMutationPathParams, TriggerSyncProjectOkResponse, TriggerSyncProjectProps, } from './hooks/useTriggerSyncProjectMutation';
141
137
  export { triggerSyncProject, useTriggerSyncProjectMutation, } from './hooks/useTriggerSyncProjectMutation';
142
- export type { UpdateAgentErrorResponse, UpdateAgentMutationPathParams, UpdateAgentOkResponse, UpdateAgentProps, UpdateAgentRequestBody, } from './hooks/useUpdateAgentMutation';
143
- export { updateAgent, useUpdateAgentMutation } from './hooks/useUpdateAgentMutation';
144
138
  export type { UpdateAirbyteIntegrationConfigErrorResponse, UpdateAirbyteIntegrationConfigMutationPathParams, UpdateAirbyteIntegrationConfigOkResponse, UpdateAirbyteIntegrationConfigProps, UpdateAirbyteIntegrationConfigRequestBody, } from './hooks/useUpdateAirbyteIntegrationConfigMutation';
145
139
  export { updateAirbyteIntegrationConfig, useUpdateAirbyteIntegrationConfigMutation, } from './hooks/useUpdateAirbyteIntegrationConfigMutation';
146
140
  export type { UpdateAirbyteIntegrationConfigOrgErrorResponse, UpdateAirbyteIntegrationConfigOrgMutationPathParams, UpdateAirbyteIntegrationConfigOrgOkResponse, UpdateAirbyteIntegrationConfigOrgProps, UpdateAirbyteIntegrationConfigOrgRequestBody, } from './hooks/useUpdateAirbyteIntegrationConfigOrgMutation';
@@ -187,6 +181,7 @@ export type { AirbyteFetchAirbyteConnectorCatalogResponse } from './schemas/Airb
187
181
  export type { AirbyteGetAirbyteConnectorCatalogResponse } from './schemas/AirbyteGetAirbyteConnectorCatalogResponse';
188
182
  export type { ApierrorsErrorDetail } from './schemas/ApierrorsErrorDetail';
189
183
  export type { ApierrorsErrorResponse } from './schemas/ApierrorsErrorResponse';
184
+ export type { EntityGetCustomEntitiesFieldValuesResponse } from './schemas/EntityGetCustomEntitiesFieldValuesResponse';
190
185
  export type { EntityGetCustomEntitiesResponse } from './schemas/EntityGetCustomEntitiesResponse';
191
186
  export type { EntityGetCustomEntitiesTypeResponse } from './schemas/EntityGetCustomEntitiesTypeResponse';
192
187
  export type { EntityGetEntitiesResponse } from './schemas/EntityGetEntitiesResponse';
@@ -209,7 +204,6 @@ export type { IntegrationconfigValidateCustomSchemaResponse } from './schemas/In
209
204
  export type { IntegrationeventIntegrationEventResponse } from './schemas/IntegrationeventIntegrationEventResponse';
210
205
  export type { IntegrationeventPrincipalInfo } from './schemas/IntegrationeventPrincipalInfo';
211
206
  export type { IntegrationeventUiStatus } from './schemas/IntegrationeventUiStatus';
212
- export type { OpenapiCreateAgentRequest } from './schemas/OpenapiCreateAgentRequest';
213
207
  export type { OpenapiCreateAirbyteIntegrationConfigOrgRequest } from './schemas/OpenapiCreateAirbyteIntegrationConfigOrgRequest';
214
208
  export type { OpenapiCreateAirbyteIntegrationConfigProjectRequest } from './schemas/OpenapiCreateAirbyteIntegrationConfigProjectRequest';
215
209
  export type { OpenapiCreateAirbyteIntegrationConfigRequest } from './schemas/OpenapiCreateAirbyteIntegrationConfigRequest';
@@ -222,6 +216,9 @@ export type { OpenapiCreateMetricConfigRequest } from './schemas/OpenapiCreateMe
222
216
  export type { OpenapiCustomIntegrationRequestOpenApi } from './schemas/OpenapiCustomIntegrationRequestOpenApi';
223
217
  export type { OpenapiFieldValFilterRequest } from './schemas/OpenapiFieldValFilterRequest';
224
218
  export type { OpenapiGetAirbyteConnectorCatalogRequest } from './schemas/OpenapiGetAirbyteConnectorCatalogRequest';
219
+ export type { OpenapiGetCustomEntitiesFieldValuesOrgRequest } from './schemas/OpenapiGetCustomEntitiesFieldValuesOrgRequest';
220
+ export type { OpenapiGetCustomEntitiesFieldValuesProjectRequest } from './schemas/OpenapiGetCustomEntitiesFieldValuesProjectRequest';
221
+ export type { OpenapiGetCustomEntitiesFieldValuesRequest } from './schemas/OpenapiGetCustomEntitiesFieldValuesRequest';
225
222
  export type { OpenapiGetCustomEntitiesOrgRequest } from './schemas/OpenapiGetCustomEntitiesOrgRequest';
226
223
  export type { OpenapiGetCustomEntitiesProjectRequest } from './schemas/OpenapiGetCustomEntitiesProjectRequest';
227
224
  export type { OpenapiGetCustomEntitiesRequest } from './schemas/OpenapiGetCustomEntitiesRequest';
@@ -236,7 +233,6 @@ export type { OpenapiSecondaryKindRequestOpenApi } from './schemas/OpenapiSecond
236
233
  export type { OpenapiSettingsUpsertAccountRequest } from './schemas/OpenapiSettingsUpsertAccountRequest';
237
234
  export type { OpenapiSettingsUpsertOrgRequest } from './schemas/OpenapiSettingsUpsertOrgRequest';
238
235
  export type { OpenapiSettingsUpsertProjectRequest } from './schemas/OpenapiSettingsUpsertProjectRequest';
239
- export type { OpenapiUpdateAgentRequest } from './schemas/OpenapiUpdateAgentRequest';
240
236
  export type { OpenapiUpdateAirbyteIntegrationConfigOrgRequest } from './schemas/OpenapiUpdateAirbyteIntegrationConfigOrgRequest';
241
237
  export type { OpenapiUpdateAirbyteIntegrationConfigProjectRequest } from './schemas/OpenapiUpdateAirbyteIntegrationConfigProjectRequest';
242
238
  export type { OpenapiUpdateAirbyteIntegrationConfigRequest } from './schemas/OpenapiUpdateAirbyteIntegrationConfigRequest';
@@ -250,7 +246,6 @@ export type { OpenapiValidateCustomSchemaOrgRequest } from './schemas/OpenapiVal
250
246
  export type { OpenapiValidateCustomSchemaProjectRequest } from './schemas/OpenapiValidateCustomSchemaProjectRequest';
251
247
  export type { OpenapiValidateCustomSchemaRequest } from './schemas/OpenapiValidateCustomSchemaRequest';
252
248
  export type { TimeDuration } from './schemas/TimeDuration';
253
- export type { TypesAgentStatus } from './schemas/TypesAgentStatus';
254
249
  export type { TypesAirbyteCatalogConfigured } from './schemas/TypesAirbyteCatalogConfigured';
255
250
  export type { TypesAirbyteCatalogDiscovered } from './schemas/TypesAirbyteCatalogDiscovered';
256
251
  export type { TypesAirbyteConnector } from './schemas/TypesAirbyteConnector';
@@ -277,7 +272,6 @@ export type { TypesHarnessComponentSettings } from './schemas/TypesHarnessCompon
277
272
  export type { TypesIdpSubscription } from './schemas/TypesIdpSubscription';
278
273
  export type { TypesInfraProviderSettings } from './schemas/TypesInfraProviderSettings';
279
274
  export type { TypesInfraProviderType } from './schemas/TypesInfraProviderType';
280
- export type { TypesIntegrationAgent } from './schemas/TypesIntegrationAgent';
281
275
  export type { TypesIntegrationConfig } from './schemas/TypesIntegrationConfig';
282
276
  export type { TypesIntegrationConfigCountResponse } from './schemas/TypesIntegrationConfigCountResponse';
283
277
  export type { TypesJsonSchema } from './schemas/TypesJsonSchema';
@@ -316,3 +310,6 @@ export type { TypesTriggerSyncError } from './schemas/TypesTriggerSyncError';
316
310
  export type { TypesTriggerSyncResponse } from './schemas/TypesTriggerSyncResponse';
317
311
  export type { TypesUdpConfig } from './schemas/TypesUdpConfig';
318
312
  export type { TypesUdpKeyField } from './schemas/TypesUdpKeyField';
313
+ export type { TypesWorkflowFieldMapping } from './schemas/TypesWorkflowFieldMapping';
314
+ export type { TypesWorkflowMetadata } from './schemas/TypesWorkflowMetadata';
315
+ export type { TypesWorkflowTarget } from './schemas/TypesWorkflowTarget';
@@ -1,7 +1,6 @@
1
1
  export { countIntegrationConfigsOrg, useCountIntegrationConfigsOrgQuery, } from './hooks/useCountIntegrationConfigsOrgQuery';
2
2
  export { countIntegrationConfigsProject, useCountIntegrationConfigsProjectQuery, } from './hooks/useCountIntegrationConfigsProjectQuery';
3
3
  export { countIntegrationConfigs, useCountIntegrationConfigsQuery, } from './hooks/useCountIntegrationConfigsQuery';
4
- export { createAgent, useCreateAgentMutation } from './hooks/useCreateAgentMutation';
5
4
  export { createAirbyteIntegrationConfig, useCreateAirbyteIntegrationConfigMutation, } from './hooks/useCreateAirbyteIntegrationConfigMutation';
6
5
  export { createAirbyteIntegrationConfigOrg, useCreateAirbyteIntegrationConfigOrgMutation, } from './hooks/useCreateAirbyteIntegrationConfigOrgMutation';
7
6
  export { createAirbyteIntegrationConfigProject, useCreateAirbyteIntegrationConfigProjectMutation, } from './hooks/useCreateAirbyteIntegrationConfigProjectMutation';
@@ -11,7 +10,6 @@ export { createIntegrationConfigProject, useCreateIntegrationConfigProjectMutati
11
10
  export { createMetricConfig, useCreateMetricConfigMutation, } from './hooks/useCreateMetricConfigMutation';
12
11
  export { createMetricConfigOrg, useCreateMetricConfigOrgMutation, } from './hooks/useCreateMetricConfigOrgMutation';
13
12
  export { createMetricConfigProject, useCreateMetricConfigProjectMutation, } from './hooks/useCreateMetricConfigProjectMutation';
14
- export { deleteAgent, useDeleteAgentMutation } from './hooks/useDeleteAgentMutation';
15
13
  export { deleteIntegrationConfig, useDeleteIntegrationConfigMutation, } from './hooks/useDeleteIntegrationConfigMutation';
16
14
  export { deleteIntegrationConfigOrg, useDeleteIntegrationConfigOrgMutation, } from './hooks/useDeleteIntegrationConfigOrgMutation';
17
15
  export { deleteIntegrationConfigProject, useDeleteIntegrationConfigProjectMutation, } from './hooks/useDeleteIntegrationConfigProjectMutation';
@@ -21,13 +19,14 @@ export { deleteMetricConfigProject, useDeleteMetricConfigProjectMutation, } from
21
19
  export { deleteSetting, useDeleteSettingMutation } from './hooks/useDeleteSettingMutation';
22
20
  export { deleteSettingOrg, useDeleteSettingOrgMutation } from './hooks/useDeleteSettingOrgMutation';
23
21
  export { deleteSettingProject, useDeleteSettingProjectMutation, } from './hooks/useDeleteSettingProjectMutation';
24
- export { downloadAgentYaml, useDownloadAgentYamlQuery } from './hooks/useDownloadAgentYamlQuery';
25
22
  export { fetchAirbyteConnectorCatalog, useFetchAirbyteConnectorCatalogMutation, } from './hooks/useFetchAirbyteConnectorCatalogMutation';
26
- export { getAgent, useGetAgentQuery } from './hooks/useGetAgentQuery';
27
23
  export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogQuery, } from './hooks/useGetAirbyteConnectorCatalogQuery';
28
24
  export { getAirbyteIntegrationConfigOrg, useGetAirbyteIntegrationConfigOrgQuery, } from './hooks/useGetAirbyteIntegrationConfigOrgQuery';
29
25
  export { getAirbyteIntegrationConfigProject, useGetAirbyteIntegrationConfigProjectQuery, } from './hooks/useGetAirbyteIntegrationConfigProjectQuery';
30
26
  export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
27
+ export { getCustomEntitiesFieldValues, useGetCustomEntitiesFieldValuesMutation, } from './hooks/useGetCustomEntitiesFieldValuesMutation';
28
+ export { getCustomEntitiesFieldValuesOrg, useGetCustomEntitiesFieldValuesOrgMutation, } from './hooks/useGetCustomEntitiesFieldValuesOrgMutation';
29
+ export { getCustomEntitiesFieldValuesProject, useGetCustomEntitiesFieldValuesProjectMutation, } from './hooks/useGetCustomEntitiesFieldValuesProjectMutation';
31
30
  export { getCustomEntities, useGetCustomEntitiesMutation, } from './hooks/useGetCustomEntitiesMutation';
32
31
  export { getCustomEntitiesOrg, useGetCustomEntitiesOrgMutation, } from './hooks/useGetCustomEntitiesOrgMutation';
33
32
  export { getCustomEntitiesProject, useGetCustomEntitiesProjectMutation, } from './hooks/useGetCustomEntitiesProjectMutation';
@@ -47,7 +46,6 @@ export { getMetricConfig, useGetMetricConfigQuery } from './hooks/useGetMetricCo
47
46
  export { getMetricTimeseriesOrg, useGetMetricTimeseriesOrgQuery, } from './hooks/useGetMetricTimeseriesOrgQuery';
48
47
  export { getMetricTimeseriesProject, useGetMetricTimeseriesProjectQuery, } from './hooks/useGetMetricTimeseriesProjectQuery';
49
48
  export { getMetricTimeseries, useGetMetricTimeseriesQuery, } from './hooks/useGetMetricTimeseriesQuery';
50
- export { listAgents, useListAgentsQuery } from './hooks/useListAgentsQuery';
51
49
  export { listDefaultMappingFields, useListDefaultMappingFieldsQuery, } from './hooks/useListDefaultMappingFieldsQuery';
52
50
  export { listDefaultSchemas, useListDefaultSchemasQuery } from './hooks/useListDefaultSchemasQuery';
53
51
  export { listIntegrationConfigsOrg, useListIntegrationConfigsOrgQuery, } from './hooks/useListIntegrationConfigsOrgQuery';
@@ -68,7 +66,6 @@ export { syncNowProject, useSyncNowProjectMutation } from './hooks/useSyncNowPro
68
66
  export { triggerSync, useTriggerSyncMutation } from './hooks/useTriggerSyncMutation';
69
67
  export { triggerSyncOrg, useTriggerSyncOrgMutation } from './hooks/useTriggerSyncOrgMutation';
70
68
  export { triggerSyncProject, useTriggerSyncProjectMutation, } from './hooks/useTriggerSyncProjectMutation';
71
- export { updateAgent, useUpdateAgentMutation } from './hooks/useUpdateAgentMutation';
72
69
  export { updateAirbyteIntegrationConfig, useUpdateAirbyteIntegrationConfigMutation, } from './hooks/useUpdateAirbyteIntegrationConfigMutation';
73
70
  export { updateAirbyteIntegrationConfigOrg, useUpdateAirbyteIntegrationConfigOrgMutation, } from './hooks/useUpdateAirbyteIntegrationConfigOrgMutation';
74
71
  export { updateAirbyteIntegrationConfigProject, useUpdateAirbyteIntegrationConfigProjectMutation, } from './hooks/useUpdateAirbyteIntegrationConfigProjectMutation';
@@ -0,0 +1,4 @@
1
+ export interface EntityGetCustomEntitiesFieldValuesResponse {
2
+ field_name?: string;
3
+ values?: string[] | null;
4
+ }
@@ -1 +1 @@
1
- export type EnumIntegrationEventType = 'entity_auto_import' | 'entity_deleted' | 'entity_ingested' | 'entity_manual_import' | 'entity_rejected' | 'entity_unlinked' | 'integration_created' | 'integration_disabled' | 'integration_enabled' | 'integration_updated' | 'metric_config_created' | 'metric_config_disabled' | 'metric_config_enabled' | 'metric_config_updated' | 'metric_entity_deleted' | 'metric_entity_ingested' | 'metric_entity_rejected' | 'sync_run';
1
+ export type EnumIntegrationEventType = 'entity_auto_import' | 'entity_deleted' | 'entity_ingested' | 'entity_manual_import' | 'entity_rejected' | 'entity_unlinked' | 'integration_created' | 'integration_deleted' | 'integration_disabled' | 'integration_enabled' | 'integration_updated' | 'metric_config_created' | 'metric_config_disabled' | 'metric_config_enabled' | 'metric_config_updated' | 'metric_entity_deleted' | 'metric_entity_ingested' | 'metric_entity_rejected' | 'sync_run';
@@ -57,4 +57,8 @@ export interface OpenapiCreateIntegrationConfigOrgRequest {
57
57
  schema_mapping_per_kind?: {
58
58
  [key: string]: TypesSchemaMapping;
59
59
  };
60
+ /**
61
+ * Optional source identifier for custom integrations.
62
+ */
63
+ source?: string | null;
60
64
  }
@@ -57,4 +57,8 @@ export interface OpenapiCreateIntegrationConfigProjectRequest {
57
57
  schema_mapping_per_kind?: {
58
58
  [key: string]: TypesSchemaMapping;
59
59
  };
60
+ /**
61
+ * Optional source identifier for custom integrations.
62
+ */
63
+ source?: string | null;
60
64
  }
@@ -57,4 +57,8 @@ export interface OpenapiCreateIntegrationConfigRequest {
57
57
  schema_mapping_per_kind?: {
58
58
  [key: string]: TypesSchemaMapping;
59
59
  };
60
+ /**
61
+ * Optional source identifier for custom integrations.
62
+ */
63
+ source?: string | null;
60
64
  }
@@ -0,0 +1,5 @@
1
+ export interface OpenapiGetCustomEntitiesFieldValuesOrgRequest {
2
+ field_name?: 'status' | 'type';
3
+ integration_id?: string;
4
+ kind?: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface OpenapiGetCustomEntitiesFieldValuesProjectRequest {
2
+ field_name?: 'status' | 'type';
3
+ integration_id?: string;
4
+ kind?: string;
5
+ }
@@ -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,5 @@
1
+ export interface OpenapiGetCustomEntitiesFieldValuesRequest {
2
+ field_name?: 'status' | 'type';
3
+ integration_id?: string;
4
+ kind?: string;
5
+ }
@@ -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 {};
@@ -30,4 +30,5 @@ export interface OpenapiUpdateIntegrationConfigOrgRequest {
30
30
  schema_mapping_per_kind?: {
31
31
  [key: string]: TypesSchemaMapping;
32
32
  };
33
+ source?: string | null;
33
34
  }
@@ -30,4 +30,5 @@ export interface OpenapiUpdateIntegrationConfigProjectRequest {
30
30
  schema_mapping_per_kind?: {
31
31
  [key: string]: TypesSchemaMapping;
32
32
  };
33
+ source?: string | null;
33
34
  }
@@ -30,4 +30,5 @@ export interface OpenapiUpdateIntegrationConfigRequest {
30
30
  schema_mapping_per_kind?: {
31
31
  [key: string]: TypesSchemaMapping;
32
32
  };
33
+ source?: string | null;
33
34
  }
@@ -3,6 +3,7 @@ import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
3
3
  import type { TypesDefaultKind } from '../schemas/TypesDefaultKind';
4
4
  import type { TypesDefaultEntityRelation } from '../schemas/TypesDefaultEntityRelation';
5
5
  import type { TypesScopeConfig } from '../schemas/TypesScopeConfig';
6
+ import type { TypesWorkflowMetadata } from '../schemas/TypesWorkflowMetadata';
6
7
  export interface TypesDefaultEntitySchema {
7
8
  configuration?: {
8
9
  [key: string]: any;
@@ -17,4 +18,5 @@ export interface TypesDefaultEntitySchema {
17
18
  relations?: TypesDefaultEntityRelation[];
18
19
  scope_config?: TypesScopeConfig;
19
20
  version?: string;
21
+ workflows?: TypesWorkflowMetadata[];
20
22
  }
@@ -15,7 +15,7 @@ export interface TypesHarnessAirbyteConfig {
15
15
  gcp_harness_connector_ref?: string;
16
16
  gcp_org_id?: string;
17
17
  github_agent_file_name?: string;
18
- github_org?: string;
18
+ github_orgs?: string[];
19
19
  github_scm_connector_ref?: string;
20
20
  harness_bitbucket_cloud_connector_ref?: string;
21
21
  integration_type?: EnumIntegrationType;
@@ -1,4 +1 @@
1
- /**
2
- * @default "k8s"
3
- */
4
- export type TypesInfraProviderType = 'harness-cloud' | 'k8s';
1
+ export type TypesInfraProviderType = string;
@@ -31,6 +31,7 @@ export interface TypesIntegrationConfig {
31
31
  name?: string;
32
32
  next_sync?: number;
33
33
  secondary_kinds?: string[];
34
+ source?: string | null;
34
35
  space_path?: string;
35
36
  status?: string;
36
37
  sync?: TypesSyncState;
@@ -0,0 +1,4 @@
1
+ export interface TypesWorkflowFieldMapping {
2
+ entity_field_source?: string;
3
+ input?: 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 { TypesWorkflowFieldMapping } from '../schemas/TypesWorkflowFieldMapping';
2
+ import type { TypesWorkflowTarget } from '../schemas/TypesWorkflowTarget';
3
+ export interface TypesWorkflowMetadata {
4
+ default_field_mappings?: TypesWorkflowFieldMapping[];
5
+ default_targets?: TypesWorkflowTarget[] | null;
6
+ description?: string;
7
+ identifier?: string;
8
+ name?: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ export interface TypesWorkflowTarget {
2
+ entity_kind?: string;
3
+ entity_type?: 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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-integration-manager-client",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "description": "Harness React integration manager client - Integration Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,20 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { TypesIntegrationAgent } from '../schemas/TypesIntegrationAgent';
3
- import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
- import type { OpenapiCreateAgentRequest } from '../schemas/OpenapiCreateAgentRequest';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
7
- export interface CreateAgentMutationPathParams {
8
- accountIdentifier: string;
9
- }
10
- export type CreateAgentRequestBody = OpenapiCreateAgentRequest;
11
- export type CreateAgentOkResponse = ResponseWithPagination<TypesIntegrationAgent>;
12
- export type CreateAgentErrorResponse = ApierrorsErrorResponse;
13
- export interface CreateAgentProps extends CreateAgentMutationPathParams, Omit<FetcherOptions<unknown, CreateAgentRequestBody>, 'url'> {
14
- body: CreateAgentRequestBody;
15
- }
16
- export declare function createAgent(props: CreateAgentProps): Promise<CreateAgentOkResponse>;
17
- /**
18
- * Create a new integration agent with the specified configuration. Agent names must be unique within the space path scope.
19
- */
20
- export declare function useCreateAgentMutation(options?: Omit<UseMutationOptions<CreateAgentOkResponse, CreateAgentErrorResponse, CreateAgentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateAgentOkResponse, ApierrorsErrorResponse, CreateAgentProps, unknown>;
@@ -1,14 +0,0 @@
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 createAgent(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/agents`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Create a new integration agent with the specified configuration. Agent names must be unique within the space path scope.
11
- */
12
- export function useCreateAgentMutation(options) {
13
- return useMutation((mutateProps) => createAgent(mutateProps), options);
14
- }
@@ -1,17 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface DeleteAgentMutationPathParams {
6
- accountIdentifier: string;
7
- agent_name: string;
8
- }
9
- export type DeleteAgentOkResponse = ResponseWithPagination<unknown>;
10
- export type DeleteAgentErrorResponse = ApierrorsErrorResponse;
11
- export interface DeleteAgentProps extends DeleteAgentMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
12
- }
13
- export declare function deleteAgent(props: DeleteAgentProps): Promise<DeleteAgentOkResponse>;
14
- /**
15
- * Delete an integration agent by its name.
16
- */
17
- export declare function useDeleteAgentMutation(options?: Omit<UseMutationOptions<DeleteAgentOkResponse, DeleteAgentErrorResponse, DeleteAgentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteAgentOkResponse, ApierrorsErrorResponse, DeleteAgentProps, unknown>;
@@ -1,14 +0,0 @@
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 deleteAgent(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/agents/${props.agent_name}`, method: 'DELETE' }, props));
8
- }
9
- /**
10
- * Delete an integration agent by its name.
11
- */
12
- export function useDeleteAgentMutation(options) {
13
- return useMutation((mutateProps) => deleteAgent(mutateProps), options);
14
- }
@@ -1,17 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface DownloadAgentYamlQueryPathParams {
6
- accountIdentifier: string;
7
- agent_name: string;
8
- }
9
- export type DownloadAgentYamlOkResponse = ResponseWithPagination<unknown>;
10
- export type DownloadAgentYamlErrorResponse = ApierrorsErrorResponse;
11
- export interface DownloadAgentYamlProps extends DownloadAgentYamlQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
12
- }
13
- export declare function downloadAgentYaml(props: DownloadAgentYamlProps): Promise<DownloadAgentYamlOkResponse>;
14
- /**
15
- * Download the Kubernetes manifest YAML file for deploying the agent. The YAML contains all necessary resources (Namespace, ServiceAccount, Role, RoleBinding, ConfigMap, Deployment, Service, HPA) with the agent name and namespace pre-configured.
16
- */
17
- export declare function useDownloadAgentYamlQuery(props: DownloadAgentYamlProps, options?: Omit<UseQueryOptions<DownloadAgentYamlOkResponse, DownloadAgentYamlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<DownloadAgentYamlOkResponse, ApierrorsErrorResponse>;
@@ -1,14 +0,0 @@
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 downloadAgentYaml(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/agents/${props.agent_name}/yaml`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Download the Kubernetes manifest YAML file for deploying the agent. The YAML contains all necessary resources (Namespace, ServiceAccount, Role, RoleBinding, ConfigMap, Deployment, Service, HPA) with the agent name and namespace pre-configured.
11
- */
12
- export function useDownloadAgentYamlQuery(props, options) {
13
- return useQuery(['downloadAgentYAML', props.accountIdentifier, props.agent_name], ({ signal }) => downloadAgentYaml(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,18 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TypesIntegrationAgent } from '../schemas/TypesIntegrationAgent';
3
- import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface GetAgentQueryPathParams {
7
- accountIdentifier: string;
8
- agent_name: string;
9
- }
10
- export type GetAgentOkResponse = ResponseWithPagination<TypesIntegrationAgent>;
11
- export type GetAgentErrorResponse = ApierrorsErrorResponse;
12
- export interface GetAgentProps extends GetAgentQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
13
- }
14
- export declare function getAgent(props: GetAgentProps): Promise<GetAgentOkResponse>;
15
- /**
16
- * Get an integration agent by its name.
17
- */
18
- export declare function useGetAgentQuery(props: GetAgentProps, options?: Omit<UseQueryOptions<GetAgentOkResponse, GetAgentErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAgentOkResponse, ApierrorsErrorResponse>;
@@ -1,14 +0,0 @@
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 getAgent(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/agents/${props.agent_name}`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Get an integration agent by its name.
11
- */
12
- export function useGetAgentQuery(props, options) {
13
- return useQuery(['getAgent', props.accountIdentifier, props.agent_name], ({ signal }) => getAgent(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,17 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TypesIntegrationAgent } from '../schemas/TypesIntegrationAgent';
3
- import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface ListAgentsQueryPathParams {
7
- accountIdentifier: string;
8
- }
9
- export type ListAgentsOkResponse = ResponseWithPagination<TypesIntegrationAgent[]>;
10
- export type ListAgentsErrorResponse = ApierrorsErrorResponse;
11
- export interface ListAgentsProps extends ListAgentsQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
12
- }
13
- export declare function listAgents(props: ListAgentsProps): Promise<ListAgentsOkResponse>;
14
- /**
15
- * List all integration agents in the current space path scope.
16
- */
17
- export declare function useListAgentsQuery(props: ListAgentsProps, options?: Omit<UseQueryOptions<ListAgentsOkResponse, ListAgentsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListAgentsOkResponse, ApierrorsErrorResponse>;
@@ -1,14 +0,0 @@
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 listAgents(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/agents`, method: 'GET' }, props));
8
- }
9
- /**
10
- * List all integration agents in the current space path scope.
11
- */
12
- export function useListAgentsQuery(props, options) {
13
- return useQuery(['listAgents', props.accountIdentifier], ({ signal }) => listAgents(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,21 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { TypesIntegrationAgent } from '../schemas/TypesIntegrationAgent';
3
- import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
- import type { OpenapiUpdateAgentRequest } from '../schemas/OpenapiUpdateAgentRequest';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
7
- export interface UpdateAgentMutationPathParams {
8
- accountIdentifier: string;
9
- agent_name: string;
10
- }
11
- export type UpdateAgentRequestBody = OpenapiUpdateAgentRequest;
12
- export type UpdateAgentOkResponse = ResponseWithPagination<TypesIntegrationAgent>;
13
- export type UpdateAgentErrorResponse = ApierrorsErrorResponse;
14
- export interface UpdateAgentProps extends UpdateAgentMutationPathParams, Omit<FetcherOptions<unknown, UpdateAgentRequestBody>, 'url'> {
15
- body: UpdateAgentRequestBody;
16
- }
17
- export declare function updateAgent(props: UpdateAgentProps): Promise<UpdateAgentOkResponse>;
18
- /**
19
- * Update an existing integration agent. Only the fields provided in the request body will be updated.
20
- */
21
- export declare function useUpdateAgentMutation(options?: Omit<UseMutationOptions<UpdateAgentOkResponse, UpdateAgentErrorResponse, UpdateAgentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateAgentOkResponse, ApierrorsErrorResponse, UpdateAgentProps, unknown>;
@@ -1,14 +0,0 @@
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 updateAgent(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/agents/${props.agent_name}`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * Update an existing integration agent. Only the fields provided in the request body will be updated.
11
- */
12
- export function useUpdateAgentMutation(options) {
13
- return useMutation((mutateProps) => updateAgent(mutateProps), options);
14
- }
@@ -1,5 +0,0 @@
1
- export interface OpenapiCreateAgentRequest {
2
- k8s_connector_ref?: string;
3
- name?: string;
4
- namespace?: string;
5
- }
@@ -1,6 +0,0 @@
1
- import type { TypesAgentStatus } from '../schemas/TypesAgentStatus';
2
- export interface OpenapiUpdateAgentRequest {
3
- k8s_connector_ref?: string | null;
4
- namespace?: string | null;
5
- status?: TypesAgentStatus;
6
- }
@@ -1 +0,0 @@
1
- export type TypesAgentStatus = string | null;
@@ -1,11 +0,0 @@
1
- import type { TypesAgentStatus } from '../schemas/TypesAgentStatus';
2
- export interface TypesIntegrationAgent {
3
- created?: number;
4
- k8s_connector_ref?: string;
5
- last_heartbeat_at?: number | null;
6
- last_updated?: number;
7
- name?: string;
8
- namespace?: string;
9
- space_path?: string;
10
- status?: TypesAgentStatus;
11
- }