@uru-intelligence/app 1.0.0 → 2.0.0

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/index.js CHANGED
@@ -5,38 +5,44 @@
5
5
  * promise to every project that installs it, so the barrel is deliberately
6
6
  * small: one error class, two factories, and the types a caller needs to name
7
7
  * what they get back. Internal helpers live in `./runtime.js`, `./transport.js`,
8
- * `./dampers.js` and `./errorResponse.js` and are not re-exported.
8
+ * `./dampers.js` and `./error-response.js` and are not re-exported.
9
9
  *
10
10
  * Adding an export here is an API decision. Removing one is a breaking change.
11
11
  */
12
- import { createDatasetsContext } from './datasets.js';
13
- import { ForceRefreshThrottle, resolveDamperConfig } from './dampers.js';
14
- import { UruAppRuntimeError } from './errors.js';
15
- import { requireCompletedRuntimeResponse } from './runtime.js';
16
- import { cancelAppRuntimeJob, getAppRuntimeJobStatus, invokeAppRuntime, } from './transport.js';
17
- export { UruAppRuntimeError } from './errors.js';
12
+ import { ForceRefreshThrottle, resolveDamperConfig } from "./dampers.js";
13
+ import { createDatasetsContext } from "./datasets.js";
14
+ import { UruAppRuntimeError } from "./errors.js";
15
+ import { createActionInvoker, createCancelJobInvoker, createCapabilityInvoker, createJobStatusInvoker, } from "./invocations.js";
16
+ export { UruAppRuntimeError } from "./errors.js";
17
+ const ownEnvironmentValue = (env, key) => {
18
+ if (!Object.hasOwn(env, key)) {
19
+ return undefined;
20
+ }
21
+ const value = env[key];
22
+ return typeof value === "string" ? value : undefined;
23
+ };
18
24
  /** Read a required runtime binding, or throw naming the one that is missing. */
19
- function requiredRuntimeEnv(env, key) {
20
- const value = String(env[key] ?? '').trim();
21
- if (!value) {
25
+ const requiredRuntimeEnv = (env, key) => {
26
+ const value = (ownEnvironmentValue(env, key) ?? "").trim();
27
+ if (value === "") {
22
28
  throw new UruAppRuntimeError(`Missing Uru runtime binding: ${key}`, {
23
- status: 0,
24
29
  body: null,
30
+ status: 0,
25
31
  });
26
32
  }
27
33
  return value;
28
- }
34
+ };
29
35
  /** Reject an empty secret name before it becomes an empty env lookup. */
30
- function normalizedSecretName(name) {
31
- const normalized = String(name ?? '').trim();
32
- if (!normalized) {
33
- throw new UruAppRuntimeError('Uru app secret name is required.', {
34
- status: 0,
36
+ const normalizedSecretName = (name) => {
37
+ const normalized = name.trim();
38
+ if (normalized === "") {
39
+ throw new UruAppRuntimeError("Uru app secret name is required.", {
35
40
  body: null,
41
+ status: 0,
36
42
  });
37
43
  }
38
44
  return normalized;
39
- }
45
+ };
40
46
  /**
41
47
  * Build a capability-invocation client against a Uru app runtime.
42
48
  *
@@ -46,7 +52,7 @@ function normalizedSecretName(name) {
46
52
  * deployment id and how to authenticate — a browser calling a public page's
47
53
  * runtime, for example.
48
54
  */
49
- export function createUruAppRuntimeClient(options) {
55
+ export const createUruAppRuntimeClient = (options) => {
50
56
  // One damper runtime per client: the resolved config plus the forceRefresh
51
57
  // throttle whose per-capability timestamps must persist across calls.
52
58
  const damper = {
@@ -54,15 +60,15 @@ export function createUruAppRuntimeClient(options) {
54
60
  throttle: new ForceRefreshThrottle(),
55
61
  };
56
62
  return {
57
- query: (name, input, invocationOptions) => invokeAppRuntime(options, damper, 'query', name, input, invocationOptions),
58
- action: (name, input, invocationOptions) => invokeAppRuntime(options, damper, 'action', name, input, invocationOptions),
59
- job: (name, input, invocationOptions) => invokeAppRuntime(options, damper, 'job', name, input, invocationOptions),
60
- endpoint: (name, input, invocationOptions) => invokeAppRuntime(options, damper, 'endpoint', name, input, invocationOptions),
61
- serverFunction: (name, input, invocationOptions) => invokeAppRuntime(options, damper, 'server_function', name, input, invocationOptions),
62
- jobStatus: (executionId, invocationOptions) => getAppRuntimeJobStatus(options, executionId, invocationOptions),
63
- cancelJob: (executionId, invocationOptions) => cancelAppRuntimeJob(options, executionId, invocationOptions),
63
+ action: createCapabilityInvoker(options, damper, "action"),
64
+ cancelJob: createCancelJobInvoker(options),
65
+ endpoint: createCapabilityInvoker(options, damper, "endpoint"),
66
+ job: createCapabilityInvoker(options, damper, "job"),
67
+ jobStatus: createJobStatusInvoker(options),
68
+ query: createCapabilityInvoker(options, damper, "query"),
69
+ serverFunction: createCapabilityInvoker(options, damper, "server_function"),
64
70
  };
65
- }
71
+ };
66
72
  /**
67
73
  * Build the server context a Uru app runs against, from the provider bindings
68
74
  * in `env`.
@@ -72,47 +78,44 @@ export function createUruAppRuntimeClient(options) {
72
78
  * {@link UruAppRuntimeError} naming the binding, rather than failing later at a
73
79
  * request that could not have worked.
74
80
  */
75
- export function createUruServerContext(env, options = {}) {
76
- const deploymentId = requiredRuntimeEnv(env, 'URU_DEPLOYMENT_ID');
77
- const baseUrl = requiredRuntimeEnv(env, 'URU_RUNTIME_API_BASE');
78
- const runtimeToken = requiredRuntimeEnv(env, 'URU_RUNTIME_TOKEN');
81
+ export const createUruServerContext = (env, options = {}) => {
82
+ const deploymentId = requiredRuntimeEnv(env, "URU_DEPLOYMENT_ID");
83
+ const baseUrl = requiredRuntimeEnv(env, "URU_RUNTIME_API_BASE");
84
+ const runtimeToken = requiredRuntimeEnv(env, "URU_RUNTIME_TOKEN");
79
85
  const clientOptions = {
80
- deploymentId,
81
86
  baseUrl,
82
- providerRuntime: true,
87
+ deploymentId,
83
88
  headers: {
84
- 'x-uru-app-runtime-token': runtimeToken,
89
+ "x-uru-app-runtime-token": runtimeToken,
85
90
  },
91
+ providerRuntime: true,
86
92
  };
87
- if (options.fetch) {
93
+ if (options.fetch !== undefined) {
88
94
  clientOptions.fetch = options.fetch;
89
95
  }
90
96
  const app = createUruAppRuntimeClient(clientOptions);
91
97
  return {
98
+ actions: { run: createActionInvoker(app) },
92
99
  app,
93
100
  datasets: createDatasetsContext(app, clientOptions),
94
- actions: {
95
- run: (name, input, invocationOptions) => requireCompletedRuntimeResponse(app.action(name, input, invocationOptions)),
96
- },
97
- jobs: {
98
- start: (name, input, invocationOptions) => app.job(name, input, invocationOptions),
99
- },
101
+ jobs: { start: app.job },
100
102
  secrets: {
101
- has: (name) => {
102
- const key = normalizedSecretName(name);
103
- return String(env[key] ?? '').length > 0;
104
- },
105
103
  get: (name) => {
106
104
  const key = normalizedSecretName(name);
107
- const value = String(env[key] ?? '');
108
- if (!value) {
105
+ const value = ownEnvironmentValue(env, key);
106
+ if (value === undefined || value === "") {
109
107
  throw new UruAppRuntimeError(`Missing Uru app secret binding: ${key}`, {
110
- status: 0,
111
108
  body: null,
109
+ status: 0,
112
110
  });
113
111
  }
114
112
  return value;
115
113
  },
114
+ has: (name) => {
115
+ const key = normalizedSecretName(name);
116
+ const value = ownEnvironmentValue(env, key);
117
+ return value !== undefined && value.length > 0;
118
+ },
116
119
  },
117
120
  };
118
- }
121
+ };
@@ -0,0 +1,7 @@
1
+ import type { DamperRuntime } from "./transport.js";
2
+ import type { CreateUruAppRuntimeClientOptions, UruActionInvoker, UruAppRuntimeCapabilityType, UruAppRuntimeClient, UruCapabilityInvoker, UruCancelJobInvoker, UruJobStatusInvoker } from "./types.js";
3
+ /** Overloads expose a typed result only when the transport runs its decoder. */
4
+ export declare const createCapabilityInvoker: (options: CreateUruAppRuntimeClientOptions, damper: DamperRuntime, capabilityType: UruAppRuntimeCapabilityType) => UruCapabilityInvoker;
5
+ export declare const createJobStatusInvoker: (options: CreateUruAppRuntimeClientOptions) => UruJobStatusInvoker;
6
+ export declare const createCancelJobInvoker: (options: CreateUruAppRuntimeClientOptions) => UruCancelJobInvoker;
7
+ export declare const createActionInvoker: (app: UruAppRuntimeClient) => UruActionInvoker;
@@ -0,0 +1,27 @@
1
+ import { requireCompletedRuntimeResponse } from "./runtime.js";
2
+ import { cancelAppRuntimeJob, getAppRuntimeJobStatus, invokeAppRuntime, } from "./transport.js";
3
+ /** Overloads expose a typed result only when the transport runs its decoder. */
4
+ export const createCapabilityInvoker = (options, damper, capabilityType) => {
5
+ async function invoke(name, input, invocationOptions) {
6
+ return await invokeAppRuntime(options, damper, capabilityType, name, input, invocationOptions);
7
+ }
8
+ return invoke;
9
+ };
10
+ export const createJobStatusInvoker = (options) => {
11
+ async function status(executionId, invocationOptions) {
12
+ return await getAppRuntimeJobStatus(options, executionId, invocationOptions);
13
+ }
14
+ return status;
15
+ };
16
+ export const createCancelJobInvoker = (options) => {
17
+ async function cancel(executionId, invocationOptions) {
18
+ return await cancelAppRuntimeJob(options, executionId, invocationOptions);
19
+ }
20
+ return cancel;
21
+ };
22
+ export const createActionInvoker = (app) => {
23
+ async function run(name, input, invocationOptions) {
24
+ return await requireCompletedRuntimeResponse(app.action(name, input, invocationOptions));
25
+ }
26
+ return run;
27
+ };
package/dist/runtime.d.ts CHANGED
@@ -11,17 +11,17 @@
11
11
  *
12
12
  * Imports `./errors.js` and `./types.js`, both of which import nothing back.
13
13
  */
14
- import type { CreateUruAppRuntimeClientOptions, UruAppRuntimeInvocationResponse } from './types.js';
14
+ import type { CreateUruAppRuntimeClientOptions, UruAppRuntimeInvocationResponse } from "./types.js";
15
15
  /** Drop one trailing `/` so a base URL concatenates cleanly with a rooted path. */
16
- export declare function trimTrailingSlash(value: string): string;
16
+ export declare const trimTrailingSlash: (value: string) => string;
17
17
  /**
18
18
  * The rooted path every runtime call hangs off, in precedence order: a public
19
19
  * page's own runtime, then the provider runtime, then an explicit override,
20
20
  * then the default in-app route.
21
21
  */
22
- export declare function runtimeBasePath(options: CreateUruAppRuntimeClientOptions): string;
22
+ export declare const runtimeBasePath: (options: CreateUruAppRuntimeClientOptions) => string;
23
23
  /** Resolve the caller's headers, awaiting them when they are supplied lazily. */
24
- export declare function resolveHeaders(headers: CreateUruAppRuntimeClientOptions['headers']): Promise<HeadersInit | undefined>;
24
+ export declare const resolveHeaders: (headers: CreateUruAppRuntimeClientOptions["headers"]) => Promise<HeadersInit | undefined>;
25
25
  /**
26
26
  * Narrow an invocation response to its result, or throw.
27
27
  *
@@ -29,4 +29,4 @@ export declare function resolveHeaders(headers: CreateUruAppRuntimeClientOptions
29
29
  * the caller wants the value and a pending or failed call is an error rather
30
30
  * than a state to render.
31
31
  */
32
- export declare function requireCompletedRuntimeResponse<TResult>(responsePromise: Promise<UruAppRuntimeInvocationResponse<TResult>>): Promise<TResult>;
32
+ export declare const requireCompletedRuntimeResponse: (responsePromise: Promise<UruAppRuntimeInvocationResponse>) => Promise<unknown>;
package/dist/runtime.js CHANGED
@@ -11,47 +11,47 @@
11
11
  *
12
12
  * Imports `./errors.js` and `./types.js`, both of which import nothing back.
13
13
  */
14
- import { UruAppRuntimeError } from './errors.js';
14
+ import { UruAppRuntimeError } from "./errors.js";
15
15
  /** Drop one trailing `/` so a base URL concatenates cleanly with a rooted path. */
16
- export function trimTrailingSlash(value) {
17
- return value.endsWith('/') ? value.slice(0, -1) : value;
18
- }
16
+ export const trimTrailingSlash = (value) => value.endsWith("/") ? value.slice(0, -1) : value;
19
17
  /** Drop every leading and trailing `/` (47 is `'/'`). */
20
- function trimSlashes(value) {
18
+ const trimSlashes = (value) => {
21
19
  let start = 0;
22
20
  let end = value.length;
23
- while (start < end && value.charCodeAt(start) === 47) {
21
+ while (start < end && value.codePointAt(start) === 47) {
24
22
  start += 1;
25
23
  }
26
- while (end > start && value.charCodeAt(end - 1) === 47) {
24
+ while (end > start && value.codePointAt(end - 1) === 47) {
27
25
  end -= 1;
28
26
  }
29
27
  return start === 0 && end === value.length ? value : value.slice(start, end);
30
- }
28
+ };
31
29
  /**
32
30
  * The rooted path every runtime call hangs off, in precedence order: a public
33
31
  * page's own runtime, then the provider runtime, then an explicit override,
34
32
  * then the default in-app route.
35
33
  */
36
- export function runtimeBasePath(options) {
37
- if (options.publicPageSlug?.trim()) {
38
- return `/api/public/pages/${encodeURIComponent(options.publicPageSlug.trim())}/app-runtime`;
34
+ export const runtimeBasePath = (options) => {
35
+ const publicPageSlug = options.publicPageSlug?.trim();
36
+ if (publicPageSlug !== undefined && publicPageSlug !== "") {
37
+ return `/api/public/pages/${encodeURIComponent(publicPageSlug)}/app-runtime`;
39
38
  }
40
- if (options.providerRuntime) {
41
- return '/api/runtime/provider';
39
+ if (options.providerRuntime === true) {
40
+ return "/api/runtime/provider";
42
41
  }
43
- if (options.runtimeBasePath?.trim()) {
44
- return `/${trimSlashes(options.runtimeBasePath.trim())}`;
42
+ const explicitBasePath = options.runtimeBasePath?.trim();
43
+ if (explicitBasePath !== undefined && explicitBasePath !== "") {
44
+ return `/${trimSlashes(explicitBasePath)}`;
45
45
  }
46
- return '/api/runtime';
47
- }
46
+ return "/api/runtime";
47
+ };
48
48
  /** Resolve the caller's headers, awaiting them when they are supplied lazily. */
49
- export async function resolveHeaders(headers) {
50
- if (typeof headers === 'function') {
49
+ export const resolveHeaders = async (headers) => {
50
+ if (typeof headers === "function") {
51
51
  return await headers();
52
52
  }
53
53
  return headers;
54
- }
54
+ };
55
55
  /**
56
56
  * Narrow an invocation response to its result, or throw.
57
57
  *
@@ -59,13 +59,13 @@ export async function resolveHeaders(headers) {
59
59
  * the caller wants the value and a pending or failed call is an error rather
60
60
  * than a state to render.
61
61
  */
62
- export async function requireCompletedRuntimeResponse(responsePromise) {
62
+ export const requireCompletedRuntimeResponse = async (responsePromise) => {
63
63
  const response = await responsePromise;
64
64
  if (!response.ok || response.pending) {
65
65
  throw new UruAppRuntimeError(`Uru app runtime ${response.capabilityType} '${response.capabilityName}' did not complete successfully.`, {
66
- status: 0,
67
66
  body: response,
67
+ status: 0,
68
68
  });
69
69
  }
70
70
  return response.result;
71
- }
71
+ };
@@ -0,0 +1,7 @@
1
+ /** Opaque JSON at the HTTP edge. These are not domain model types. */
2
+ export type RuntimeJsonValue = boolean | null | number | string | RuntimeJsonValue[] | {
3
+ [key: string]: RuntimeJsonValue;
4
+ };
5
+ export type RuntimeJsonObject = Record<string, RuntimeJsonValue>;
6
+ /** Validate without invoking getters or recursing on the JavaScript call stack. */
7
+ export declare const isRuntimeJsonObject: (value: unknown) => value is RuntimeJsonObject;
@@ -0,0 +1,92 @@
1
+ const isJsonPrimitive = (value) => value === null ||
2
+ typeof value === "string" ||
3
+ typeof value === "boolean" ||
4
+ (typeof value === "number" && Number.isFinite(value));
5
+ const isArrayIndex = (key, length) => {
6
+ const index = Number(key);
7
+ return (Number.isInteger(index) &&
8
+ index >= 0 &&
9
+ index < length &&
10
+ String(index) === key);
11
+ };
12
+ const jsonProperties = (value) => {
13
+ const prototype = Object.getPrototypeOf(value);
14
+ const validPrototype = Array.isArray(value)
15
+ ? prototype === Array.prototype
16
+ : prototype === null || prototype === Object.prototype;
17
+ if (!validPrototype) {
18
+ return undefined;
19
+ }
20
+ const arrayLength = Array.isArray(value) ? value.length : undefined;
21
+ const keys = Reflect.ownKeys(value);
22
+ if (arrayLength !== undefined && keys.length !== arrayLength + 1) {
23
+ return undefined;
24
+ }
25
+ const properties = [];
26
+ for (const key of keys) {
27
+ if (typeof key !== "string") {
28
+ return undefined;
29
+ }
30
+ if (arrayLength !== undefined && key === "length") {
31
+ continue;
32
+ }
33
+ if (arrayLength !== undefined && !isArrayIndex(key, arrayLength)) {
34
+ return undefined;
35
+ }
36
+ const descriptor = Object.getOwnPropertyDescriptor(value, key);
37
+ if (descriptor === undefined ||
38
+ descriptor.enumerable !== true ||
39
+ descriptor.get !== undefined ||
40
+ descriptor.set !== undefined) {
41
+ return undefined;
42
+ }
43
+ properties.push(descriptor);
44
+ }
45
+ return properties;
46
+ };
47
+ const inspectRuntimeJsonObject = (value) => {
48
+ if (value === null || typeof value !== "object" || Array.isArray(value)) {
49
+ return false;
50
+ }
51
+ const ancestors = new WeakSet();
52
+ const frames = [{ phase: "enter", value }];
53
+ while (frames.length > 0) {
54
+ const frame = frames.pop();
55
+ if (frame === undefined) {
56
+ break;
57
+ }
58
+ if (frame.phase === "leave") {
59
+ ancestors.delete(frame.value);
60
+ continue;
61
+ }
62
+ const candidate = frame.value;
63
+ if (isJsonPrimitive(candidate)) {
64
+ continue;
65
+ }
66
+ if (candidate === null ||
67
+ typeof candidate !== "object" ||
68
+ ancestors.has(candidate)) {
69
+ return false;
70
+ }
71
+ const properties = jsonProperties(candidate);
72
+ if (properties === undefined) {
73
+ return false;
74
+ }
75
+ ancestors.add(candidate);
76
+ frames.push({ phase: "leave", value: candidate });
77
+ for (const property of properties) {
78
+ frames.push({ phase: "enter", value: property.value });
79
+ }
80
+ }
81
+ return true;
82
+ };
83
+ /** Validate without invoking getters or recursing on the JavaScript call stack. */
84
+ export const isRuntimeJsonObject = (value) => {
85
+ try {
86
+ return inspectRuntimeJsonObject(value);
87
+ }
88
+ catch {
89
+ // A revoked proxy or a throwing reflection trap is not inspectable JSON.
90
+ return false;
91
+ }
92
+ };
@@ -6,7 +6,7 @@
6
6
  * neither exceeds the repo's 1000-line clean-code budget).
7
7
  *
8
8
  * The P2 runaway dampers (default idempotency key, 429 backoff, forceRefresh
9
- * throttle — `docs/plans/gem-runtime-cost-safety-audit.md`) live inline in
9
+ * throttle — the 2026-08 Gem runtime cost-safety audit) live inline in
10
10
  * `invokeAppRuntime` here, composing the pure helpers from `./dampers`.
11
11
  *
12
12
  * Imports the shared URL/error primitives from `./runtime.js` and the
@@ -15,29 +15,30 @@
15
15
  * for by exporting four internal helpers from it. Every edge here points at a
16
16
  * module that imports nothing back.
17
17
  */
18
- import { type ForceRefreshThrottle, type ResolvedDamperConfig } from './dampers.js';
19
- import type { CreateUruAppRuntimeClientOptions, UruAppRuntimeCapabilityType, UruAppRuntimeExecutionStatus, UruAppRuntimeInvocationOptions, UruAppRuntimeInvocationResponse } from './types.js';
18
+ import type { ForceRefreshThrottle, ResolvedDamperConfig } from "./dampers.js";
19
+ import type { RuntimeJsonObject } from "./transport-json.js";
20
+ import type { CreateUruAppRuntimeClientOptions, UruAppRuntimeCapabilityType, UruAppRuntimeExecutionStatus, UruAppRuntimeInvocationOptions, UruAppRuntimeInvocationResponse, UruResultDecoder } from "./types.js";
20
21
  /** Per-client damper state: the resolved config plus the forceRefresh throttle. */
21
22
  export interface DamperRuntime {
22
23
  readonly config: ResolvedDamperConfig;
23
24
  readonly throttle: ForceRefreshThrottle;
24
25
  }
25
- interface AppRuntimeInvocationHttpResponse<TResult> {
26
+ interface AppRuntimeInvocationHttpResponse {
26
27
  ok: boolean;
27
28
  status: string;
28
29
  state: string;
29
30
  deploymentId: string;
30
31
  capabilityType: string;
31
32
  capabilityName: string;
32
- result?: TResult | null;
33
+ result?: unknown;
33
34
  executionId?: string | null;
34
35
  pending: boolean;
35
- diagnostics?: Record<string, unknown>;
36
+ diagnostics?: RuntimeJsonObject;
36
37
  }
37
- interface AppRuntimeExecutionHttpResponse<TResult> {
38
+ interface AppRuntimeExecutionHttpResponse {
38
39
  success?: boolean;
39
40
  pending?: boolean;
40
- result?: TResult | null;
41
+ result?: unknown;
41
42
  error?: string | null;
42
43
  state?: string;
43
44
  status?: string | null;
@@ -49,10 +50,10 @@ interface AppRuntimeExecutionHttpResponse<TResult> {
49
50
  executorKind?: string | null;
50
51
  }
51
52
  /** Map the owned camelCase HTTP envelope without copying unknown fields. */
52
- export declare function appRuntimeInvocationResponseFromHttp<TResult>(value: unknown): AppRuntimeInvocationHttpResponse<TResult>;
53
+ export declare const appRuntimeInvocationResponseFromHttp: (value: unknown, decodeResult?: UruResultDecoder<unknown>) => AppRuntimeInvocationHttpResponse;
53
54
  /** Map the owned camelCase job-status envelope without copying unknown fields. */
54
- export declare function appRuntimeExecutionStatusFromHttp<TResult>(value: unknown): AppRuntimeExecutionHttpResponse<TResult>;
55
- export declare function invokeAppRuntime<TResult>(options: CreateUruAppRuntimeClientOptions, damper: DamperRuntime, capabilityType: UruAppRuntimeCapabilityType, name: string, input?: Record<string, unknown>, invocationOptions?: UruAppRuntimeInvocationOptions): Promise<UruAppRuntimeInvocationResponse<TResult>>;
56
- export declare function getAppRuntimeJobStatus<TResult>(options: CreateUruAppRuntimeClientOptions, executionId: string, invocationOptions?: UruAppRuntimeInvocationOptions): Promise<UruAppRuntimeExecutionStatus<TResult>>;
57
- export declare function cancelAppRuntimeJob(options: CreateUruAppRuntimeClientOptions, executionId: string, invocationOptions?: UruAppRuntimeInvocationOptions): Promise<UruAppRuntimeInvocationResponse>;
55
+ export declare const appRuntimeExecutionStatusFromHttp: (value: unknown, decodeResult?: UruResultDecoder<unknown>) => AppRuntimeExecutionHttpResponse;
56
+ export declare const invokeAppRuntime: (options: CreateUruAppRuntimeClientOptions, damper: DamperRuntime, capabilityType: UruAppRuntimeCapabilityType, name: string, input?: unknown, invocationOptions?: UruAppRuntimeInvocationOptions) => Promise<UruAppRuntimeInvocationResponse>;
57
+ export declare const getAppRuntimeJobStatus: (options: CreateUruAppRuntimeClientOptions, executionId: string, invocationOptions?: UruAppRuntimeInvocationOptions) => Promise<UruAppRuntimeExecutionStatus>;
58
+ export declare const cancelAppRuntimeJob: (options: CreateUruAppRuntimeClientOptions, executionId: string, invocationOptions?: UruAppRuntimeInvocationOptions) => Promise<UruAppRuntimeInvocationResponse>;
58
59
  export {};