@harnessio/react-integration-manager-client 0.6.4 → 0.6.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.
- package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigMutation.d.ts +1 -1
- package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigMutation.js +1 -1
- package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigOrgMutation.d.ts +1 -1
- package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigOrgMutation.js +1 -1
- package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigProjectMutation.d.ts +1 -1
- package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigProjectMutation.js +1 -1
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigMutation.d.ts +1 -1
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigMutation.js +1 -1
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigOrgMutation.d.ts +1 -1
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigOrgMutation.js +1 -1
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigProjectMutation.d.ts +1 -1
- package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigProjectMutation.js +1 -1
- package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigOrgRequest.d.ts +28 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigProjectRequest.d.ts +28 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigRequest.d.ts +28 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigOrgRequest.d.ts +7 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigProjectRequest.d.ts +7 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigRequest.d.ts +7 -0
- package/package.json +1 -1
|
@@ -15,6 +15,6 @@ export interface CreateIntegrationConfigProps extends CreateIntegrationConfigMut
|
|
|
15
15
|
}
|
|
16
16
|
export declare function createIntegrationConfig(props: CreateIntegrationConfigProps): Promise<CreateIntegrationConfigOkResponse>;
|
|
17
17
|
/**
|
|
18
|
-
* Creates a new integration configuration. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping.
|
|
18
|
+
* Creates a new integration configuration. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'no_auth' or 'hmac_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; no_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhook/{16-char-hex}', which external systems POST payloads to.
|
|
19
19
|
*/
|
|
20
20
|
export declare function useCreateIntegrationConfigMutation(options?: Omit<UseMutationOptions<CreateIntegrationConfigOkResponse, CreateIntegrationConfigErrorResponse, CreateIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationConfigOkResponse, ApierrorsErrorResponse, CreateIntegrationConfigProps, unknown>;
|
|
@@ -7,7 +7,7 @@ export function createIntegrationConfig(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Creates a new integration configuration. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping.
|
|
10
|
+
* Creates a new integration configuration. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'no_auth' or 'hmac_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; no_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhook/{16-char-hex}', which external systems POST payloads to.
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateIntegrationConfigMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => createIntegrationConfig(mutateProps), options);
|
package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigOrgMutation.d.ts
CHANGED
|
@@ -16,6 +16,6 @@ export interface CreateIntegrationConfigOrgProps extends CreateIntegrationConfig
|
|
|
16
16
|
}
|
|
17
17
|
export declare function createIntegrationConfigOrg(props: CreateIntegrationConfigOrgProps): Promise<CreateIntegrationConfigOrgOkResponse>;
|
|
18
18
|
/**
|
|
19
|
-
* Creates a new integration configuration at organization level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping.
|
|
19
|
+
* Creates a new integration configuration at organization level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'no_auth' or 'hmac_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; no_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhook/{16-char-hex}', which external systems POST payloads to.
|
|
20
20
|
*/
|
|
21
21
|
export declare function useCreateIntegrationConfigOrgMutation(options?: Omit<UseMutationOptions<CreateIntegrationConfigOrgOkResponse, CreateIntegrationConfigOrgErrorResponse, CreateIntegrationConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationConfigOrgOkResponse, ApierrorsErrorResponse, CreateIntegrationConfigOrgProps, unknown>;
|
package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigOrgMutation.js
CHANGED
|
@@ -7,7 +7,7 @@ export function createIntegrationConfigOrg(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Creates a new integration configuration at organization level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping.
|
|
10
|
+
* Creates a new integration configuration at organization level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'no_auth' or 'hmac_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; no_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhook/{16-char-hex}', which external systems POST payloads to.
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateIntegrationConfigOrgMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => createIntegrationConfigOrg(mutateProps), options);
|
package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigProjectMutation.d.ts
CHANGED
|
@@ -17,6 +17,6 @@ export interface CreateIntegrationConfigProjectProps extends CreateIntegrationCo
|
|
|
17
17
|
}
|
|
18
18
|
export declare function createIntegrationConfigProject(props: CreateIntegrationConfigProjectProps): Promise<CreateIntegrationConfigProjectOkResponse>;
|
|
19
19
|
/**
|
|
20
|
-
* Creates a new integration configuration at project level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping.
|
|
20
|
+
* Creates a new integration configuration at project level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'no_auth' or 'hmac_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; no_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhook/{16-char-hex}', which external systems POST payloads to.
|
|
21
21
|
*/
|
|
22
22
|
export declare function useCreateIntegrationConfigProjectMutation(options?: Omit<UseMutationOptions<CreateIntegrationConfigProjectOkResponse, CreateIntegrationConfigProjectErrorResponse, CreateIntegrationConfigProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationConfigProjectOkResponse, ApierrorsErrorResponse, CreateIntegrationConfigProjectProps, unknown>;
|
package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigProjectMutation.js
CHANGED
|
@@ -7,7 +7,7 @@ export function createIntegrationConfigProject(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Creates a new integration configuration at project level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping.
|
|
10
|
+
* Creates a new integration configuration at project level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'. The correlation_mapping is also persisted into configuration.correlation_mapping. For Custom integrations, integration_mode may be set to 'webhook'. In webhook mode: (a) exactly one entry in kinds; (b) schema_mapping_per_kind is REQUIRED with one entry per kind and mappings.identifier non-empty; (c) configuration.webhook_auth is REQUIRED and must be a valid WebhookAuth object (auth_type 'no_auth' or 'hmac_auth'; hmac_auth requires hash_algo + auth_header + secret_ref; no_auth rejects any of those fields); (d) payload_schema_per_kind is optional and only supported for the 'custom' kind — other kinds fall back to the built-in default schema; (e) the response configuration.webhook_endpoints_per_kind carries one URL per kind of the shape '/api/v1/accounts/.../webhook/{16-char-hex}', which external systems POST payloads to.
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateIntegrationConfigProjectMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => createIntegrationConfigProject(mutateProps), options);
|
|
@@ -16,6 +16,6 @@ export interface UpdateIntegrationConfigProps extends UpdateIntegrationConfigMut
|
|
|
16
16
|
}
|
|
17
17
|
export declare function updateIntegrationConfig(props: UpdateIntegrationConfigProps): Promise<UpdateIntegrationConfigOkResponse>;
|
|
18
18
|
/**
|
|
19
|
-
* Updates an integration configuration. Set configuration.rate_limit.rpm to override the per-integration custom-entity-upsert rate limit; the change propagates across all replicas immediately. For correlation_mapping: on first add, source_path is required and operator must be 'eq'; on subsequent updates only target_path can be changed (source_path and operator are immutable). When provided, correlation_mapping is also embedded into configuration.correlation_mapping (unrelated configuration keys are preserved).
|
|
19
|
+
* Updates an integration configuration. Set configuration.rate_limit.rpm to override the per-integration custom-entity-upsert rate limit; the change propagates across all replicas immediately. For correlation_mapping: on first add, source_path is required and operator must be 'eq'; on subsequent updates only target_path can be changed (source_path and operator are immutable). When provided, correlation_mapping is also embedded into configuration.correlation_mapping (unrelated configuration keys are preserved). When schema_mapping_per_kind is provided, its keys must match the existing integration's kinds and each mappings.identifier must be a non-empty JQ expression. Each entry replaces the SchemaMapping stored under the 'default' key on that kind's current EntitySchema (partial per-kind updates are supported — kinds omitted from the map are untouched). The map is also mirrored into configuration.schema_mapping_per_kind for read parity with create.
|
|
20
20
|
*/
|
|
21
21
|
export declare function useUpdateIntegrationConfigMutation(options?: Omit<UseMutationOptions<UpdateIntegrationConfigOkResponse, UpdateIntegrationConfigErrorResponse, UpdateIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateIntegrationConfigOkResponse, ApierrorsErrorResponse, UpdateIntegrationConfigProps, unknown>;
|
|
@@ -7,7 +7,7 @@ export function updateIntegrationConfig(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/${props.integrationconfig_identifier}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Updates an integration configuration. Set configuration.rate_limit.rpm to override the per-integration custom-entity-upsert rate limit; the change propagates across all replicas immediately. For correlation_mapping: on first add, source_path is required and operator must be 'eq'; on subsequent updates only target_path can be changed (source_path and operator are immutable). When provided, correlation_mapping is also embedded into configuration.correlation_mapping (unrelated configuration keys are preserved).
|
|
10
|
+
* Updates an integration configuration. Set configuration.rate_limit.rpm to override the per-integration custom-entity-upsert rate limit; the change propagates across all replicas immediately. For correlation_mapping: on first add, source_path is required and operator must be 'eq'; on subsequent updates only target_path can be changed (source_path and operator are immutable). When provided, correlation_mapping is also embedded into configuration.correlation_mapping (unrelated configuration keys are preserved). When schema_mapping_per_kind is provided, its keys must match the existing integration's kinds and each mappings.identifier must be a non-empty JQ expression. Each entry replaces the SchemaMapping stored under the 'default' key on that kind's current EntitySchema (partial per-kind updates are supported — kinds omitted from the map are untouched). The map is also mirrored into configuration.schema_mapping_per_kind for read parity with create.
|
|
11
11
|
*/
|
|
12
12
|
export function useUpdateIntegrationConfigMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => updateIntegrationConfig(mutateProps), options);
|
package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigOrgMutation.d.ts
CHANGED
|
@@ -17,6 +17,6 @@ export interface UpdateIntegrationConfigOrgProps extends UpdateIntegrationConfig
|
|
|
17
17
|
}
|
|
18
18
|
export declare function updateIntegrationConfigOrg(props: UpdateIntegrationConfigOrgProps): Promise<UpdateIntegrationConfigOrgOkResponse>;
|
|
19
19
|
/**
|
|
20
|
-
* Updates an integration configuration at organization level. Supports auto_import_per_kind, action_per_kind, and configuration. When action_per_kind is not provided, all kinds default to Merge_Register. Set configuration.rate_limit.rpm to override the per-integration custom-entity-upsert rate limit; the change propagates across all replicas immediately. For correlation_mapping: on first add, source_path is required and operator must be 'eq'; on subsequent updates only target_path can be changed (source_path and operator are immutable). When provided, correlation_mapping is also embedded into configuration.correlation_mapping (unrelated configuration keys are preserved).
|
|
20
|
+
* Updates an integration configuration at organization level. Supports auto_import_per_kind, action_per_kind, and configuration. When action_per_kind is not provided, all kinds default to Merge_Register. Set configuration.rate_limit.rpm to override the per-integration custom-entity-upsert rate limit; the change propagates across all replicas immediately. For correlation_mapping: on first add, source_path is required and operator must be 'eq'; on subsequent updates only target_path can be changed (source_path and operator are immutable). When provided, correlation_mapping is also embedded into configuration.correlation_mapping (unrelated configuration keys are preserved). When schema_mapping_per_kind is provided, its keys must match the existing integration's kinds and each mappings.identifier must be a non-empty JQ expression. Each entry replaces the SchemaMapping stored under the 'default' key on that kind's current EntitySchema (partial per-kind updates are supported — kinds omitted from the map are untouched). The map is also mirrored into configuration.schema_mapping_per_kind for read parity with create.
|
|
21
21
|
*/
|
|
22
22
|
export declare function useUpdateIntegrationConfigOrgMutation(options?: Omit<UseMutationOptions<UpdateIntegrationConfigOrgOkResponse, UpdateIntegrationConfigOrgErrorResponse, UpdateIntegrationConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateIntegrationConfigOrgOkResponse, ApierrorsErrorResponse, UpdateIntegrationConfigOrgProps, unknown>;
|
package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigOrgMutation.js
CHANGED
|
@@ -7,7 +7,7 @@ export function updateIntegrationConfigOrg(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs/${props.integrationconfig_identifier}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Updates an integration configuration at organization level. Supports auto_import_per_kind, action_per_kind, and configuration. When action_per_kind is not provided, all kinds default to Merge_Register. Set configuration.rate_limit.rpm to override the per-integration custom-entity-upsert rate limit; the change propagates across all replicas immediately. For correlation_mapping: on first add, source_path is required and operator must be 'eq'; on subsequent updates only target_path can be changed (source_path and operator are immutable). When provided, correlation_mapping is also embedded into configuration.correlation_mapping (unrelated configuration keys are preserved).
|
|
10
|
+
* Updates an integration configuration at organization level. Supports auto_import_per_kind, action_per_kind, and configuration. When action_per_kind is not provided, all kinds default to Merge_Register. Set configuration.rate_limit.rpm to override the per-integration custom-entity-upsert rate limit; the change propagates across all replicas immediately. For correlation_mapping: on first add, source_path is required and operator must be 'eq'; on subsequent updates only target_path can be changed (source_path and operator are immutable). When provided, correlation_mapping is also embedded into configuration.correlation_mapping (unrelated configuration keys are preserved). When schema_mapping_per_kind is provided, its keys must match the existing integration's kinds and each mappings.identifier must be a non-empty JQ expression. Each entry replaces the SchemaMapping stored under the 'default' key on that kind's current EntitySchema (partial per-kind updates are supported — kinds omitted from the map are untouched). The map is also mirrored into configuration.schema_mapping_per_kind for read parity with create.
|
|
11
11
|
*/
|
|
12
12
|
export function useUpdateIntegrationConfigOrgMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => updateIntegrationConfigOrg(mutateProps), options);
|
package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigProjectMutation.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ export interface UpdateIntegrationConfigProjectProps extends UpdateIntegrationCo
|
|
|
18
18
|
}
|
|
19
19
|
export declare function updateIntegrationConfigProject(props: UpdateIntegrationConfigProjectProps): Promise<UpdateIntegrationConfigProjectOkResponse>;
|
|
20
20
|
/**
|
|
21
|
-
* Updates an integration configuration at project level. Supports auto_import_per_kind, action_per_kind, and configuration. When action_per_kind is not provided, all kinds default to Merge_Register. Set configuration.rate_limit.rpm to override the per-integration custom-entity-upsert rate limit; the change propagates across all replicas immediately. For correlation_mapping: on first add, source_path is required and operator must be 'eq'; on subsequent updates only target_path can be changed (source_path and operator are immutable). When provided, correlation_mapping is also embedded into configuration.correlation_mapping (unrelated configuration keys are preserved).
|
|
21
|
+
* Updates an integration configuration at project level. Supports auto_import_per_kind, action_per_kind, and configuration. When action_per_kind is not provided, all kinds default to Merge_Register. Set configuration.rate_limit.rpm to override the per-integration custom-entity-upsert rate limit; the change propagates across all replicas immediately. For correlation_mapping: on first add, source_path is required and operator must be 'eq'; on subsequent updates only target_path can be changed (source_path and operator are immutable). When provided, correlation_mapping is also embedded into configuration.correlation_mapping (unrelated configuration keys are preserved). When schema_mapping_per_kind is provided, its keys must match the existing integration's kinds and each mappings.identifier must be a non-empty JQ expression. Each entry replaces the SchemaMapping stored under the 'default' key on that kind's current EntitySchema (partial per-kind updates are supported — kinds omitted from the map are untouched). The map is also mirrored into configuration.schema_mapping_per_kind for read parity with create.
|
|
22
22
|
*/
|
|
23
23
|
export declare function useUpdateIntegrationConfigProjectMutation(options?: Omit<UseMutationOptions<UpdateIntegrationConfigProjectOkResponse, UpdateIntegrationConfigProjectErrorResponse, UpdateIntegrationConfigProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateIntegrationConfigProjectOkResponse, ApierrorsErrorResponse, UpdateIntegrationConfigProjectProps, unknown>;
|
package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigProjectMutation.js
CHANGED
|
@@ -7,7 +7,7 @@ export function updateIntegrationConfigProject(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs/${props.integrationconfig_identifier}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Updates an integration configuration at project level. Supports auto_import_per_kind, action_per_kind, and configuration. When action_per_kind is not provided, all kinds default to Merge_Register. Set configuration.rate_limit.rpm to override the per-integration custom-entity-upsert rate limit; the change propagates across all replicas immediately. For correlation_mapping: on first add, source_path is required and operator must be 'eq'; on subsequent updates only target_path can be changed (source_path and operator are immutable). When provided, correlation_mapping is also embedded into configuration.correlation_mapping (unrelated configuration keys are preserved).
|
|
10
|
+
* Updates an integration configuration at project level. Supports auto_import_per_kind, action_per_kind, and configuration. When action_per_kind is not provided, all kinds default to Merge_Register. Set configuration.rate_limit.rpm to override the per-integration custom-entity-upsert rate limit; the change propagates across all replicas immediately. For correlation_mapping: on first add, source_path is required and operator must be 'eq'; on subsequent updates only target_path can be changed (source_path and operator are immutable). When provided, correlation_mapping is also embedded into configuration.correlation_mapping (unrelated configuration keys are preserved). When schema_mapping_per_kind is provided, its keys must match the existing integration's kinds and each mappings.identifier must be a non-empty JQ expression. Each entry replaces the SchemaMapping stored under the 'default' key on that kind's current EntitySchema (partial per-kind updates are supported — kinds omitted from the map are untouched). The map is also mirrored into configuration.schema_mapping_per_kind for read parity with create.
|
|
11
11
|
*/
|
|
12
12
|
export function useUpdateIntegrationConfigProjectMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => updateIntegrationConfigProject(mutateProps), options);
|
package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigOrgRequest.d.ts
CHANGED
|
@@ -3,23 +3,51 @@ import type { TypesCorrelationMapping } from '../schemas/TypesCorrelationMapping
|
|
|
3
3
|
import type { EnumIntegrationMode } from '../schemas/EnumIntegrationMode';
|
|
4
4
|
import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
|
|
5
5
|
import type { TypesJsonSchema } from '../schemas/TypesJsonSchema';
|
|
6
|
+
import type { TypesSchemaMapping } from '../schemas/TypesSchemaMapping';
|
|
6
7
|
export interface OpenapiCreateIntegrationConfigOrgRequest {
|
|
8
|
+
/**
|
|
9
|
+
* Per-kind write action. For Custom integrations this is forced to 'merge'.
|
|
10
|
+
*/
|
|
7
11
|
action_per_kind?: {
|
|
8
12
|
[key: string]: EnumAction;
|
|
9
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* Per-kind flag to auto-import discovered entities into the catalog.
|
|
16
|
+
*/
|
|
10
17
|
auto_import_per_kind?: {
|
|
11
18
|
[key: string]: boolean;
|
|
12
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Free-form configuration map validated against the integration type's default schema. For webhook mode, must contain a 'webhook_auth' object of type WebhookAuth.
|
|
22
|
+
*/
|
|
13
23
|
configuration?: {
|
|
14
24
|
[key: string]: any;
|
|
15
25
|
} | null;
|
|
16
26
|
correlation_mapping?: TypesCorrelationMapping;
|
|
27
|
+
/**
|
|
28
|
+
* Stable identifier for the integration. Must be unique within its space.
|
|
29
|
+
*/
|
|
17
30
|
identifier?: string;
|
|
18
31
|
integration_mode?: EnumIntegrationMode;
|
|
19
32
|
integration_type?: EnumIntegrationType;
|
|
33
|
+
/**
|
|
34
|
+
* Entity kinds to ingest. Custom integrations require exactly one kind.
|
|
35
|
+
*/
|
|
20
36
|
kinds?: string[];
|
|
37
|
+
/**
|
|
38
|
+
* Human-readable name shown in the UI.
|
|
39
|
+
*/
|
|
21
40
|
name?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Per-kind JSON schema describing the inbound payload. Only supported for the 'custom' kind; other kinds fall back to the built-in default schema.
|
|
43
|
+
*/
|
|
22
44
|
payload_schema_per_kind?: {
|
|
23
45
|
[key: string]: TypesJsonSchema;
|
|
24
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Per-kind ingestion→storage JQ mappings. REQUIRED for webhook mode (one entry per kind, mappings.identifier non-empty). Optional for other modes — when provided it overrides the auto-derived identity mapping.
|
|
49
|
+
*/
|
|
50
|
+
schema_mapping_per_kind?: {
|
|
51
|
+
[key: string]: TypesSchemaMapping;
|
|
52
|
+
};
|
|
25
53
|
}
|
|
@@ -3,23 +3,51 @@ import type { TypesCorrelationMapping } from '../schemas/TypesCorrelationMapping
|
|
|
3
3
|
import type { EnumIntegrationMode } from '../schemas/EnumIntegrationMode';
|
|
4
4
|
import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
|
|
5
5
|
import type { TypesJsonSchema } from '../schemas/TypesJsonSchema';
|
|
6
|
+
import type { TypesSchemaMapping } from '../schemas/TypesSchemaMapping';
|
|
6
7
|
export interface OpenapiCreateIntegrationConfigProjectRequest {
|
|
8
|
+
/**
|
|
9
|
+
* Per-kind write action. For Custom integrations this is forced to 'merge'.
|
|
10
|
+
*/
|
|
7
11
|
action_per_kind?: {
|
|
8
12
|
[key: string]: EnumAction;
|
|
9
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* Per-kind flag to auto-import discovered entities into the catalog.
|
|
16
|
+
*/
|
|
10
17
|
auto_import_per_kind?: {
|
|
11
18
|
[key: string]: boolean;
|
|
12
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Free-form configuration map validated against the integration type's default schema. For webhook mode, must contain a 'webhook_auth' object of type WebhookAuth.
|
|
22
|
+
*/
|
|
13
23
|
configuration?: {
|
|
14
24
|
[key: string]: any;
|
|
15
25
|
} | null;
|
|
16
26
|
correlation_mapping?: TypesCorrelationMapping;
|
|
27
|
+
/**
|
|
28
|
+
* Stable identifier for the integration. Must be unique within its space.
|
|
29
|
+
*/
|
|
17
30
|
identifier?: string;
|
|
18
31
|
integration_mode?: EnumIntegrationMode;
|
|
19
32
|
integration_type?: EnumIntegrationType;
|
|
33
|
+
/**
|
|
34
|
+
* Entity kinds to ingest. Custom integrations require exactly one kind.
|
|
35
|
+
*/
|
|
20
36
|
kinds?: string[];
|
|
37
|
+
/**
|
|
38
|
+
* Human-readable name shown in the UI.
|
|
39
|
+
*/
|
|
21
40
|
name?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Per-kind JSON schema describing the inbound payload. Only supported for the 'custom' kind; other kinds fall back to the built-in default schema.
|
|
43
|
+
*/
|
|
22
44
|
payload_schema_per_kind?: {
|
|
23
45
|
[key: string]: TypesJsonSchema;
|
|
24
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Per-kind ingestion→storage JQ mappings. REQUIRED for webhook mode (one entry per kind, mappings.identifier non-empty). Optional for other modes — when provided it overrides the auto-derived identity mapping.
|
|
49
|
+
*/
|
|
50
|
+
schema_mapping_per_kind?: {
|
|
51
|
+
[key: string]: TypesSchemaMapping;
|
|
52
|
+
};
|
|
25
53
|
}
|
package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigRequest.d.ts
CHANGED
|
@@ -3,23 +3,51 @@ import type { TypesCorrelationMapping } from '../schemas/TypesCorrelationMapping
|
|
|
3
3
|
import type { EnumIntegrationMode } from '../schemas/EnumIntegrationMode';
|
|
4
4
|
import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
|
|
5
5
|
import type { TypesJsonSchema } from '../schemas/TypesJsonSchema';
|
|
6
|
+
import type { TypesSchemaMapping } from '../schemas/TypesSchemaMapping';
|
|
6
7
|
export interface OpenapiCreateIntegrationConfigRequest {
|
|
8
|
+
/**
|
|
9
|
+
* Per-kind write action. For Custom integrations this is forced to 'merge'.
|
|
10
|
+
*/
|
|
7
11
|
action_per_kind?: {
|
|
8
12
|
[key: string]: EnumAction;
|
|
9
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* Per-kind flag to auto-import discovered entities into the catalog.
|
|
16
|
+
*/
|
|
10
17
|
auto_import_per_kind?: {
|
|
11
18
|
[key: string]: boolean;
|
|
12
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Free-form configuration map validated against the integration type's default schema. For webhook mode, must contain a 'webhook_auth' object of type WebhookAuth.
|
|
22
|
+
*/
|
|
13
23
|
configuration?: {
|
|
14
24
|
[key: string]: any;
|
|
15
25
|
} | null;
|
|
16
26
|
correlation_mapping?: TypesCorrelationMapping;
|
|
27
|
+
/**
|
|
28
|
+
* Stable identifier for the integration. Must be unique within its space.
|
|
29
|
+
*/
|
|
17
30
|
identifier?: string;
|
|
18
31
|
integration_mode?: EnumIntegrationMode;
|
|
19
32
|
integration_type?: EnumIntegrationType;
|
|
33
|
+
/**
|
|
34
|
+
* Entity kinds to ingest. Custom integrations require exactly one kind.
|
|
35
|
+
*/
|
|
20
36
|
kinds?: string[];
|
|
37
|
+
/**
|
|
38
|
+
* Human-readable name shown in the UI.
|
|
39
|
+
*/
|
|
21
40
|
name?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Per-kind JSON schema describing the inbound payload. Only supported for the 'custom' kind; other kinds fall back to the built-in default schema.
|
|
43
|
+
*/
|
|
22
44
|
payload_schema_per_kind?: {
|
|
23
45
|
[key: string]: TypesJsonSchema;
|
|
24
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Per-kind ingestion→storage JQ mappings. REQUIRED for webhook mode (one entry per kind, mappings.identifier non-empty). Optional for other modes — when provided it overrides the auto-derived identity mapping.
|
|
49
|
+
*/
|
|
50
|
+
schema_mapping_per_kind?: {
|
|
51
|
+
[key: string]: TypesSchemaMapping;
|
|
52
|
+
};
|
|
25
53
|
}
|
package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigOrgRequest.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EnumAction } from '../schemas/EnumAction';
|
|
2
2
|
import type { TypesCorrelationMapping } from '../schemas/TypesCorrelationMapping';
|
|
3
|
+
import type { TypesSchemaMapping } from '../schemas/TypesSchemaMapping';
|
|
3
4
|
export interface OpenapiUpdateIntegrationConfigOrgRequest {
|
|
4
5
|
action_per_kind?: {
|
|
5
6
|
[key: string]: EnumAction;
|
|
@@ -12,4 +13,10 @@ export interface OpenapiUpdateIntegrationConfigOrgRequest {
|
|
|
12
13
|
} | null;
|
|
13
14
|
correlation_mapping?: TypesCorrelationMapping;
|
|
14
15
|
name?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Per-kind ingestion→storage JQ mappings. When provided, replaces the SchemaMapping stored under the 'default' key on each kind's current EntitySchema and is also mirrored into configuration.schema_mapping_per_kind. Keys must match the integration's kinds and each mappings.identifier must be a non-empty JQ expression.
|
|
18
|
+
*/
|
|
19
|
+
schema_mapping_per_kind?: {
|
|
20
|
+
[key: string]: TypesSchemaMapping;
|
|
21
|
+
};
|
|
15
22
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EnumAction } from '../schemas/EnumAction';
|
|
2
2
|
import type { TypesCorrelationMapping } from '../schemas/TypesCorrelationMapping';
|
|
3
|
+
import type { TypesSchemaMapping } from '../schemas/TypesSchemaMapping';
|
|
3
4
|
export interface OpenapiUpdateIntegrationConfigProjectRequest {
|
|
4
5
|
action_per_kind?: {
|
|
5
6
|
[key: string]: EnumAction;
|
|
@@ -12,4 +13,10 @@ export interface OpenapiUpdateIntegrationConfigProjectRequest {
|
|
|
12
13
|
} | null;
|
|
13
14
|
correlation_mapping?: TypesCorrelationMapping;
|
|
14
15
|
name?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Per-kind ingestion→storage JQ mappings. When provided, replaces the SchemaMapping stored under the 'default' key on each kind's current EntitySchema and is also mirrored into configuration.schema_mapping_per_kind. Keys must match the integration's kinds and each mappings.identifier must be a non-empty JQ expression.
|
|
18
|
+
*/
|
|
19
|
+
schema_mapping_per_kind?: {
|
|
20
|
+
[key: string]: TypesSchemaMapping;
|
|
21
|
+
};
|
|
15
22
|
}
|
package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigRequest.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EnumAction } from '../schemas/EnumAction';
|
|
2
2
|
import type { TypesCorrelationMapping } from '../schemas/TypesCorrelationMapping';
|
|
3
|
+
import type { TypesSchemaMapping } from '../schemas/TypesSchemaMapping';
|
|
3
4
|
export interface OpenapiUpdateIntegrationConfigRequest {
|
|
4
5
|
action_per_kind?: {
|
|
5
6
|
[key: string]: EnumAction;
|
|
@@ -12,4 +13,10 @@ export interface OpenapiUpdateIntegrationConfigRequest {
|
|
|
12
13
|
} | null;
|
|
13
14
|
correlation_mapping?: TypesCorrelationMapping;
|
|
14
15
|
name?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Per-kind ingestion→storage JQ mappings. When provided, replaces the SchemaMapping stored under the 'default' key on each kind's current EntitySchema and is also mirrored into configuration.schema_mapping_per_kind. Keys must match the integration's kinds and each mappings.identifier must be a non-empty JQ expression.
|
|
18
|
+
*/
|
|
19
|
+
schema_mapping_per_kind?: {
|
|
20
|
+
[key: string]: TypesSchemaMapping;
|
|
21
|
+
};
|
|
15
22
|
}
|
package/package.json
CHANGED