---
title: Runtime
slug: data-platform/connect-platform/app-sdk-api-reference-classes-runtime
docTags: 
createdAt: 2026-08-05T20:06:32.790Z
---

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT)

***

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT) / Runtime

# Class: Runtime

Defined in: [src/app/Runtime.ts:34](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L34)

## Constructors

### Constructor

:::BlockQuote
**new Runtime**(): `Runtime`
:::

### Returns

`Runtime`

## Accessors

### baseDir

### Get Signature

:::BlockQuote
**get** **baseDir**(): `string`
:::

Defined in: [src/app/Runtime.ts:64](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L64)

### Returns

`string`

***

### manifest

### Get Signature

:::BlockQuote
**get** **manifest**(): `Readonly`\<[`` `AppManifest` ``](docId\:EdN1iagQXubAXSr2f6a1T)>
:::

Defined in: [src/app/Runtime.ts:60](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L60)

### Returns

`Readonly`\<[`` `AppManifest` ``](docId\:EdN1iagQXubAXSr2f6a1T)>

## Methods

### getChannelClass()

:::BlockQuote
**getChannelClass**\<`T`>(): `Promise`\<() => `T`>
:::

Defined in: [src/app/Runtime.ts:83](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L83)

### Type Parameters

### T

`T` *extends* [`` `Channel` ``](docId:3Fy57u8wbc9J6TFHwlc7E)

### Returns

`Promise`\<() => `T`>

***

### getDestinationClass()

:::BlockQuote
**getDestinationClass**\<`T`>(`name`): `Promise`\<() => `T`>
:::

Defined in: [src/app/Runtime.ts:112](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L112)

### Type Parameters

### T

`T` *extends* [`` `Destination` ``](docId\:Xphi6Awl7jkTHpft0QuYK)\<`any`>

### Parameters

### name

`string`

### Returns

`Promise`\<() => `T`>

***

### getDestinationSchema()

:::BlockQuote
**getDestinationSchema**(): [`` `DestinationSchemaObjects` ``](docId\:C_TwDRtdIrbdElrw17PWe)
:::

Defined in: [src/app/Runtime.ts:193](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L193)

### Returns

[`` `DestinationSchemaObjects` ``](docId\:C_TwDRtdIrbdElrw17PWe)

***

### getDestinationSchemaFunctionClass()

:::BlockQuote
**getDestinationSchemaFunctionClass**\<`T`>(`name`): `Promise`\<(`config`) => `T`>
:::

Defined in: [src/app/Runtime.ts:134](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L134)

### Type Parameters

### T

`T` *extends* [`` `DestinationSchemaFunction` ``](docId\:TLxkrhWPKhzqwiFLGSf8G)

### Parameters

### name

`string`

### Returns

`Promise`\<(`config`) => `T`>

***

### getFunctionClass()

:::BlockQuote
**getFunctionClass**\<`T`>(`name`): `Promise`\<(`request`) => `T`>
:::

Defined in: [src/app/Runtime.ts:69](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L69)

### Type Parameters

### T

`T` *extends* [`` `Function` ``](docId\:bbsyDfDxejucoLhIZ9SFd)

### Parameters

### name

`string`

### Returns

`Promise`\<(`request`) => `T`>

***

### getJobClass()

:::BlockQuote
**getJobClass**\<`T`>(`name`): `Promise`\<(`invocation`) => `T`>
:::

Defined in: [src/app/Runtime.ts:87](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L87)

### Type Parameters

### T

`T` *extends* [`` `Job` ``](docId\:iKzsgTwr7sFvpPxiadWxA)

### Parameters

### name

`string`

### Returns

`Promise`\<(`invocation`) => `T`>

***

### getLifecycleClass()

:::BlockQuote
**getLifecycleClass**\<`T`>(): `Promise`\<() => `T`>
:::

Defined in: [src/app/Runtime.ts:79](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L79)

### Type Parameters

### T

`T` *extends* [`` `Lifecycle` ``](docId\:nlHtCPtedxv2Kqyh8ZYQ6)

### Returns

`Promise`\<() => `T`>

***

### getLiquidExtensionClass()

:::BlockQuote
**getLiquidExtensionClass**\<`T`>(`name`): `Promise`\<() => `T`>
:::

Defined in: [src/app/Runtime.ts:179](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L179)

### Type Parameters

### T

`T` *extends* [`` `LiquidExtension` ``](docId\:cRf-grnJnlou31QBA7z0A)

### Parameters

### name

`string`

### Returns

`Promise`\<() => `T`>

***

### getSchemaObjects()

:::BlockQuote
**getSchemaObjects**(): `SchemaObjects`
:::

Defined in: [src/app/Runtime.ts:189](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L189)

### Returns

`SchemaObjects`

***

### getSourceFunctionClass()

:::BlockQuote
**getSourceFunctionClass**\<`T`>(`name`): `Promise`\<(`config`, `request`, `source`) => `T`>
:::

Defined in: [src/app/Runtime.ts:166](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L166)

### Type Parameters

### T

`T` *extends* [`SourceFunction`](Sourceapp-sdk-api-reference-classes-function)

### Parameters

### name

`string`

### Returns

`Promise`\<(`config`, `request`, `source`) => `T`>

***

### getSourceJobClass()

:::BlockQuote
**getSourceJobClass**\<`T`>(`sourceName`, `jobName`): `Promise`\<(`invocation`, `source`) => `T`>
:::

Defined in: [src/app/Runtime.ts:97](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L97)

### Type Parameters

### T

`T` *extends* [`SourceJob`](Sourceapp-sdk-api-reference-classes-job)

### Parameters

### sourceName

`string`

### jobName

`string`

### Returns

`Promise`\<(`invocation`, `source`) => `T`>

***

### getSourceLifecycleClass()

:::BlockQuote
**getSourceLifecycleClass**\<`T`>(`name`): `Promise`\<`null` | (`config`) => `T`>
:::

Defined in: [src/app/Runtime.ts:121](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L121)

### Type Parameters

### T

`T` *extends* [`SourceLifecycle`](Sourceapp-sdk-api-reference-classes-lifecycle)

### Parameters

### name

`string`

### Returns

`Promise`\<`null` | (`config`) => `T`>

***

### getSourceSchema()

:::BlockQuote
**getSourceSchema**(): [`` `SourceSchemaObjects` ``](docId\:Umn8Dl_k7dhtKS_RvwqUY)
:::

Defined in: [src/app/Runtime.ts:197](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L197)

### Returns

[`` `SourceSchemaObjects` ``](docId\:Umn8Dl_k7dhtKS_RvwqUY)

***

### getSourceSchemaFunctionClass()

:::BlockQuote
**getSourceSchemaFunctionClass**\<`T`>(`name`): `Promise`\<(`config`) => `T`>
:::

Defined in: [src/app/Runtime.ts:150](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L150)

### Type Parameters

### T

`T` *extends* [`SourceSchemaFunction`](SourceSchemaapp-sdk-api-reference-classes-function)

### Parameters

### name

`string`

### Returns

`Promise`\<(`config`) => `T`>

***

### toJson()

:::BlockQuote
**toJson**(): `string`
:::

Defined in: [src/app/Runtime.ts:212](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L212)

### Returns

`string`

***

### fromJson()

:::BlockQuote
`static` **fromJson**(`serializedRuntime`): `Runtime`
:::

Defined in: [src/app/Runtime.ts:50](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L50)

Initializes from a pre-validated JSON definition. Used during task execution.

### Parameters

### serializedRuntime

`string`

JSON-serialized runtime definition

### Returns

`Runtime`

***

### initialize()

:::BlockQuote
`static` **initialize**(`dirName`, `skipJsonValidation`): `Promise`\<`Runtime`>
:::

Defined in: [src/app/Runtime.ts:40](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/app/Runtime.ts#L40)

Initializes from a directory. Used during startup.

### Parameters

### dirName

`string`

the base directory of the app

### skipJsonValidation

`boolean` = `false`

for internal use, allows json-schema errors to be captured by the validation process

### Returns

`Promise`\<`Runtime`>
