> ## Documentation Index
> Fetch the complete documentation index at: https://docs.siftstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# user_defined_functions

> sift/common/type/v1/user_defined_functions.proto

<a name="sift_common_type_v1_user_defined_functions-proto" />

<a name="sift_common_type_v1_user_defined_functions-proto-services" />

## Services

*RPC methods exposed by this API.*

<a name="sift_common_type_v1_user_defined_functions-proto-messages" />

## Messages

*Data models used across requests/responses.*

### FunctionDependency

| Field                                | Type   | Label | Description |
| :----------------------------------- | :----- | :---- | :---------- |
| user\_defined\_function\_version\_id | string |       |             |

### FunctionInput

| Field      | Type                                  | Label | Description |
| :--------- | :------------------------------------ | :---- | :---------- |
| identifier | string                                |       |             |
| data\_type | [FunctionDataType](#functiondatatype) |       |             |
| constant   | bool                                  |       |             |

### UserDefinedFunction

| Field                                | Type                                                              | Label    | Description |
| :----------------------------------- | :---------------------------------------------------------------- | :------- | :---------- |
| user\_defined\_function\_id          | string                                                            |          |             |
| name                                 | string                                                            |          |             |
| archived\_date                       | google.protobuf.Timestamp                                         | optional |             |
| user\_defined\_function\_version\_id | string                                                            |          |             |
| version                              | uint32                                                            |          |             |
| description                          | string                                                            |          |             |
| change\_message                      | string                                                            |          |             |
| user\_notes                          | string                                                            |          |             |
| expression                           | string                                                            |          |             |
| function\_inputs                     | [FunctionInput](#functioninput)                                   | repeated |             |
| function\_output\_type               | [FunctionDataType](#functiondatatype)                             |          |             |
| function\_dependencies               | [FunctionDependency](#functiondependency)                         | repeated |             |
| created\_date                        | google.protobuf.Timestamp                                         |          |             |
| modified\_date                       | google.protobuf.Timestamp                                         |          |             |
| created\_by\_user\_id                | string                                                            |          |             |
| modified\_by\_user\_id               | string                                                            |          |             |
| metadata                             | [sift.metadata.v1.MetadataValue](#sift-metadata-v1-metadatavalue) | repeated |             |
| is\_archived                         | bool                                                              |          |             |

<a name="sift_common_type_v1_user_defined_functions-proto-enums" />

## Enums

*Allowed constant values used in message fields.*

### FunctionDataType

| Name                              | Number | Description |
| :-------------------------------- | :----- | :---------- |
| FUNCTION\_DATA\_TYPE\_UNSPECIFIED | 0      |             |
| FUNCTION\_DATA\_TYPE\_NUMERIC     | 1      |             |
| FUNCTION\_DATA\_TYPE\_STRING      | 2      |             |
| FUNCTION\_DATA\_TYPE\_BOOL        | 3      |             |
