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

# FunctionVersionOriginInfo

> [!TIP]
>
> Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.

[Source: node-sdk/src/lib/client/types.gen.ts](https://github.com/nottelabs/notte/blob/main/node-sdk/src/lib/client/types.gen.ts)

```typescript theme={null}
export type FunctionVersionOriginInfo = {
    /**
     * Version
     *
     * A version from the function's `versions` history
     */
    version: string;
    /**
     * What created the version: an upload's client (`console`, `cli`, `python-sdk`, `node-sdk`, `rest-api`, `anything`), `self-heal` for an upload from an Anything self-heal turn, `rollback` or `fork`. Null when unknown (versions deployed before origins were recorded).
     */
    origin?: FunctionVersionOrigin | null;
    /**
     * Heal Attempt Id
     *
     * The Anything self-heal attempt the version was deployed under, when it was one.
     */
    heal_attempt_id?: string | null;
    /**
     * Restored From
     *
     * For a rollback, the version whose code it redeployed.
     */
    restored_from?: string | null;
};
```

## Fields

**version** `string` *required*

A version from the function's `versions` history

**origin** `FunctionVersionOrigin | null | undefined`

What created the version: an upload's client (`console`, `cli`, `python-sdk`, `node-sdk`, `rest-api`, `anything`), `self-heal` for an upload from an Anything self-heal turn, `rollback` or `fork`. Null when unknown (versions deployed before origins were recorded).

**heal\_attempt\_id** `string | null | undefined`

The Anything self-heal attempt the version was deployed under, when it was one.

**restored\_from** `string | null | undefined`

For a rollback, the version whose code it redeployed.

## Related types

* [FunctionVersionOrigin](https://docs.notte.cc/typescript-sdk-reference/types/functionversionorigin)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.