> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# IAllowedRelationshipType

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: interface
- Stability: beta
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/genAI/semanticSearch.ts

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Allowed relationship type combination for semantic search. Filters relationships and results to only include direct matches or objects reachable via allowed relationship types.

**Signature:**

```typescript
export interface IAllowedRelationshipType 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [allowOrphans?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iallowedrelationshiptype/index.md#iallowedrelationshiptypealloworphans) |  | boolean | **_(BETA)_** _(Optional)_ If true, allows target objects that are not part of any relationship (orphans) to be included in results. If false, orphan target objects will be excluded even if they directly match the search query. Default is true (orphans are allowed). |
| [sourceType](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iallowedrelationshiptype/index.md#iallowedrelationshiptypesourcetype) |  | [GenAIObjectType](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.genaiobjecttype/index.md) | **_(BETA)_** Source object type (e.g. 'dashboard', 'visualization', 'metric'). |
| [targetType](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iallowedrelationshiptype/index.md#iallowedrelationshiptypetargettype) |  | [GenAIObjectType](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.genaiobjecttype/index.md) | **_(BETA)_** Target object type (e.g. 'visualization', 'metric', 'attribute'). |

## Property details

### IAllowedRelationshipType.allowOrphans

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

If true, allows target objects that are not part of any relationship (orphans) to be included in results. If false, orphan target objects will be excluded even if they directly match the search query. Default is true (orphans are allowed).

**Signature:**

```typescript
allowOrphans?: boolean;
```

### IAllowedRelationshipType.sourceType

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Source object type (e.g. 'dashboard', 'visualization', 'metric').

**Signature:**

```typescript
sourceType: GenAIObjectType;
```

### IAllowedRelationshipType.targetType

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Target object type (e.g. 'visualization', 'metric', 'attribute').

**Signature:**

```typescript
targetType: GenAIObjectType;
```
