@uru-intelligence/app 1.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/LICENSE +58 -0
- package/README.md +146 -0
- package/dist/dampers.d.ts +145 -0
- package/dist/dampers.js +200 -0
- package/dist/datasets.d.ts +11 -0
- package/dist/datasets.js +119 -0
- package/dist/errorResponse.d.ts +2 -0
- package/dist/errorResponse.js +11 -0
- package/dist/errors.d.ts +18 -0
- package/dist/errors.js +20 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +118 -0
- package/dist/runtime.d.ts +32 -0
- package/dist/runtime.js +71 -0
- package/dist/transport.d.ts +58 -0
- package/dist/transport.js +625 -0
- package/dist/types.d.ts +211 -0
- package/dist/types.js +15 -0
- package/package.json +62 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function isRecord(value) {
|
|
2
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
3
|
+
}
|
|
4
|
+
/** Read the canonical owned HTTP error envelope without accepting removed aliases. */
|
|
5
|
+
export function runtimeErrorMessage(body, fallback) {
|
|
6
|
+
if (!isRecord(body) || !isRecord(body.error)) {
|
|
7
|
+
return fallback;
|
|
8
|
+
}
|
|
9
|
+
const message = body.error.message;
|
|
10
|
+
return typeof message === 'string' && message.trim() ? message : fallback;
|
|
11
|
+
}
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one error type this package throws.
|
|
3
|
+
*
|
|
4
|
+
* It gets its own module so every other module can throw it without importing
|
|
5
|
+
* the public barrel. `index.ts` re-exports it, because it is part of the
|
|
6
|
+
* published API: a caller has to be able to `instanceof` it.
|
|
7
|
+
*/
|
|
8
|
+
/** Thrown for every Uru app runtime failure: transport, protocol and binding. */
|
|
9
|
+
export declare class UruAppRuntimeError extends Error {
|
|
10
|
+
/** HTTP status of the failed call, or `0` when the failure was local. */
|
|
11
|
+
readonly status: number;
|
|
12
|
+
/** Parsed response body when the server sent one, otherwise `null`. */
|
|
13
|
+
readonly body: unknown;
|
|
14
|
+
constructor(message: string, details: {
|
|
15
|
+
status: number;
|
|
16
|
+
body: unknown;
|
|
17
|
+
});
|
|
18
|
+
}
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one error type this package throws.
|
|
3
|
+
*
|
|
4
|
+
* It gets its own module so every other module can throw it without importing
|
|
5
|
+
* the public barrel. `index.ts` re-exports it, because it is part of the
|
|
6
|
+
* published API: a caller has to be able to `instanceof` it.
|
|
7
|
+
*/
|
|
8
|
+
/** Thrown for every Uru app runtime failure: transport, protocol and binding. */
|
|
9
|
+
export class UruAppRuntimeError extends Error {
|
|
10
|
+
/** HTTP status of the failed call, or `0` when the failure was local. */
|
|
11
|
+
status;
|
|
12
|
+
/** Parsed response body when the server sent one, otherwise `null`. */
|
|
13
|
+
body;
|
|
14
|
+
constructor(message, details) {
|
|
15
|
+
super(message);
|
|
16
|
+
this.name = 'UruAppRuntimeError';
|
|
17
|
+
this.status = details.status;
|
|
18
|
+
this.body = details.body;
|
|
19
|
+
}
|
|
20
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@uru-intelligence/app` — the runtime client for Uru Gems.
|
|
3
|
+
*
|
|
4
|
+
* THE PUBLIC SURFACE OF THE PACKAGE IS THIS FILE. Everything exported here is a
|
|
5
|
+
* promise to every project that installs it, so the barrel is deliberately
|
|
6
|
+
* small: one error class, two factories, and the types a caller needs to name
|
|
7
|
+
* what they get back. Internal helpers live in `./runtime.js`, `./transport.js`,
|
|
8
|
+
* `./dampers.js` and `./errorResponse.js` and are not re-exported.
|
|
9
|
+
*
|
|
10
|
+
* Adding an export here is an API decision. Removing one is a breaking change.
|
|
11
|
+
*/
|
|
12
|
+
import type { CreateUruAppRuntimeClientOptions, CreateUruServerContextOptions, UruAppRuntimeClient, UruProviderRuntimeEnvironment, UruServerContext } from './types.js';
|
|
13
|
+
export { UruAppRuntimeError } from './errors.js';
|
|
14
|
+
export type { UruRunawayDamperOptions } from './dampers.js';
|
|
15
|
+
export type { CreateUruAppRuntimeClientOptions, CreateUruServerContextOptions, UruAppRuntimeCapabilityType, UruAppRuntimeClient, UruAppRuntimeEvent, UruAppRuntimeEventType, UruAppRuntimeExecutionStatus, UruAppRuntimeInvocationOptions, UruAppRuntimeInvocationResponse, UruAppRuntimeState, UruDatasetMutationResult, UruDatasetQuery, UruDatasetRow, UruDatasetRowsResult, UruDatasetSortClause, UruDatasetSqlWriteOptions, UruDatasetWhereClause, UruDatasetWhereOperator, UruDatasetsContext, UruProviderRuntimeEnvironment, UruServerContext, } from './types.js';
|
|
16
|
+
/**
|
|
17
|
+
* Build a capability-invocation client against a Uru app runtime.
|
|
18
|
+
*
|
|
19
|
+
* Most apps want {@link createUruServerContext} instead, which reads the
|
|
20
|
+
* provider bindings out of the environment and adds Datasets, actions, jobs and
|
|
21
|
+
* secrets on top. Use this directly when the caller already knows its
|
|
22
|
+
* deployment id and how to authenticate — a browser calling a public page's
|
|
23
|
+
* runtime, for example.
|
|
24
|
+
*/
|
|
25
|
+
export declare function createUruAppRuntimeClient(options: CreateUruAppRuntimeClientOptions): UruAppRuntimeClient;
|
|
26
|
+
/**
|
|
27
|
+
* Build the server context a Uru app runs against, from the provider bindings
|
|
28
|
+
* in `env`.
|
|
29
|
+
*
|
|
30
|
+
* `URU_DEPLOYMENT_ID`, `URU_RUNTIME_API_BASE` and `URU_RUNTIME_TOKEN` are
|
|
31
|
+
* required and are injected by the Uru runtime. A missing one throws
|
|
32
|
+
* {@link UruAppRuntimeError} naming the binding, rather than failing later at a
|
|
33
|
+
* request that could not have worked.
|
|
34
|
+
*/
|
|
35
|
+
export declare function createUruServerContext(env: UruProviderRuntimeEnvironment, options?: CreateUruServerContextOptions): UruServerContext;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@uru-intelligence/app` — the runtime client for Uru Gems.
|
|
3
|
+
*
|
|
4
|
+
* THE PUBLIC SURFACE OF THE PACKAGE IS THIS FILE. Everything exported here is a
|
|
5
|
+
* promise to every project that installs it, so the barrel is deliberately
|
|
6
|
+
* small: one error class, two factories, and the types a caller needs to name
|
|
7
|
+
* what they get back. Internal helpers live in `./runtime.js`, `./transport.js`,
|
|
8
|
+
* `./dampers.js` and `./errorResponse.js` and are not re-exported.
|
|
9
|
+
*
|
|
10
|
+
* Adding an export here is an API decision. Removing one is a breaking change.
|
|
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';
|
|
18
|
+
/** 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) {
|
|
22
|
+
throw new UruAppRuntimeError(`Missing Uru runtime binding: ${key}`, {
|
|
23
|
+
status: 0,
|
|
24
|
+
body: null,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return value;
|
|
28
|
+
}
|
|
29
|
+
/** 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,
|
|
35
|
+
body: null,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
return normalized;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Build a capability-invocation client against a Uru app runtime.
|
|
42
|
+
*
|
|
43
|
+
* Most apps want {@link createUruServerContext} instead, which reads the
|
|
44
|
+
* provider bindings out of the environment and adds Datasets, actions, jobs and
|
|
45
|
+
* secrets on top. Use this directly when the caller already knows its
|
|
46
|
+
* deployment id and how to authenticate — a browser calling a public page's
|
|
47
|
+
* runtime, for example.
|
|
48
|
+
*/
|
|
49
|
+
export function createUruAppRuntimeClient(options) {
|
|
50
|
+
// One damper runtime per client: the resolved config plus the forceRefresh
|
|
51
|
+
// throttle whose per-capability timestamps must persist across calls.
|
|
52
|
+
const damper = {
|
|
53
|
+
config: resolveDamperConfig(options.dampers),
|
|
54
|
+
throttle: new ForceRefreshThrottle(),
|
|
55
|
+
};
|
|
56
|
+
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),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Build the server context a Uru app runs against, from the provider bindings
|
|
68
|
+
* in `env`.
|
|
69
|
+
*
|
|
70
|
+
* `URU_DEPLOYMENT_ID`, `URU_RUNTIME_API_BASE` and `URU_RUNTIME_TOKEN` are
|
|
71
|
+
* required and are injected by the Uru runtime. A missing one throws
|
|
72
|
+
* {@link UruAppRuntimeError} naming the binding, rather than failing later at a
|
|
73
|
+
* request that could not have worked.
|
|
74
|
+
*/
|
|
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');
|
|
79
|
+
const clientOptions = {
|
|
80
|
+
deploymentId,
|
|
81
|
+
baseUrl,
|
|
82
|
+
providerRuntime: true,
|
|
83
|
+
headers: {
|
|
84
|
+
'x-uru-app-runtime-token': runtimeToken,
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
if (options.fetch) {
|
|
88
|
+
clientOptions.fetch = options.fetch;
|
|
89
|
+
}
|
|
90
|
+
const app = createUruAppRuntimeClient(clientOptions);
|
|
91
|
+
return {
|
|
92
|
+
app,
|
|
93
|
+
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
|
+
},
|
|
100
|
+
secrets: {
|
|
101
|
+
has: (name) => {
|
|
102
|
+
const key = normalizedSecretName(name);
|
|
103
|
+
return String(env[key] ?? '').length > 0;
|
|
104
|
+
},
|
|
105
|
+
get: (name) => {
|
|
106
|
+
const key = normalizedSecretName(name);
|
|
107
|
+
const value = String(env[key] ?? '');
|
|
108
|
+
if (!value) {
|
|
109
|
+
throw new UruAppRuntimeError(`Missing Uru app secret binding: ${key}`, {
|
|
110
|
+
status: 0,
|
|
111
|
+
body: null,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
return value;
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared runtime primitives: URL assembly, header resolution and the
|
|
3
|
+
* completed-response assertion.
|
|
4
|
+
*
|
|
5
|
+
* INTERNAL. Nothing here is re-exported by `index.ts`. These four functions
|
|
6
|
+
* used to be public exports of the barrel for one reason only — `transport.ts`
|
|
7
|
+
* and `datasets.ts` imported them from `./index`, and the cycle needed the
|
|
8
|
+
* barrel to own them. Publishing the package would have frozen four private
|
|
9
|
+
* helpers into the API for ever, so they live here instead and the barrel stays
|
|
10
|
+
* the three factories, the error class and the types.
|
|
11
|
+
*
|
|
12
|
+
* Imports `./errors.js` and `./types.js`, both of which import nothing back.
|
|
13
|
+
*/
|
|
14
|
+
import type { CreateUruAppRuntimeClientOptions, UruAppRuntimeInvocationResponse } from './types.js';
|
|
15
|
+
/** Drop one trailing `/` so a base URL concatenates cleanly with a rooted path. */
|
|
16
|
+
export declare function trimTrailingSlash(value: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* The rooted path every runtime call hangs off, in precedence order: a public
|
|
19
|
+
* page's own runtime, then the provider runtime, then an explicit override,
|
|
20
|
+
* then the default in-app route.
|
|
21
|
+
*/
|
|
22
|
+
export declare function runtimeBasePath(options: CreateUruAppRuntimeClientOptions): string;
|
|
23
|
+
/** Resolve the caller's headers, awaiting them when they are supplied lazily. */
|
|
24
|
+
export declare function resolveHeaders(headers: CreateUruAppRuntimeClientOptions['headers']): Promise<HeadersInit | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* Narrow an invocation response to its result, or throw.
|
|
27
|
+
*
|
|
28
|
+
* The unwrapping used by `context.actions.run` and `datasets.queryRows`, where
|
|
29
|
+
* the caller wants the value and a pending or failed call is an error rather
|
|
30
|
+
* than a state to render.
|
|
31
|
+
*/
|
|
32
|
+
export declare function requireCompletedRuntimeResponse<TResult>(responsePromise: Promise<UruAppRuntimeInvocationResponse<TResult>>): Promise<TResult>;
|
package/dist/runtime.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared runtime primitives: URL assembly, header resolution and the
|
|
3
|
+
* completed-response assertion.
|
|
4
|
+
*
|
|
5
|
+
* INTERNAL. Nothing here is re-exported by `index.ts`. These four functions
|
|
6
|
+
* used to be public exports of the barrel for one reason only — `transport.ts`
|
|
7
|
+
* and `datasets.ts` imported them from `./index`, and the cycle needed the
|
|
8
|
+
* barrel to own them. Publishing the package would have frozen four private
|
|
9
|
+
* helpers into the API for ever, so they live here instead and the barrel stays
|
|
10
|
+
* the three factories, the error class and the types.
|
|
11
|
+
*
|
|
12
|
+
* Imports `./errors.js` and `./types.js`, both of which import nothing back.
|
|
13
|
+
*/
|
|
14
|
+
import { UruAppRuntimeError } from './errors.js';
|
|
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
|
+
}
|
|
19
|
+
/** Drop every leading and trailing `/` (47 is `'/'`). */
|
|
20
|
+
function trimSlashes(value) {
|
|
21
|
+
let start = 0;
|
|
22
|
+
let end = value.length;
|
|
23
|
+
while (start < end && value.charCodeAt(start) === 47) {
|
|
24
|
+
start += 1;
|
|
25
|
+
}
|
|
26
|
+
while (end > start && value.charCodeAt(end - 1) === 47) {
|
|
27
|
+
end -= 1;
|
|
28
|
+
}
|
|
29
|
+
return start === 0 && end === value.length ? value : value.slice(start, end);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The rooted path every runtime call hangs off, in precedence order: a public
|
|
33
|
+
* page's own runtime, then the provider runtime, then an explicit override,
|
|
34
|
+
* then the default in-app route.
|
|
35
|
+
*/
|
|
36
|
+
export function runtimeBasePath(options) {
|
|
37
|
+
if (options.publicPageSlug?.trim()) {
|
|
38
|
+
return `/api/public/pages/${encodeURIComponent(options.publicPageSlug.trim())}/app-runtime`;
|
|
39
|
+
}
|
|
40
|
+
if (options.providerRuntime) {
|
|
41
|
+
return '/api/runtime/provider';
|
|
42
|
+
}
|
|
43
|
+
if (options.runtimeBasePath?.trim()) {
|
|
44
|
+
return `/${trimSlashes(options.runtimeBasePath.trim())}`;
|
|
45
|
+
}
|
|
46
|
+
return '/api/runtime';
|
|
47
|
+
}
|
|
48
|
+
/** Resolve the caller's headers, awaiting them when they are supplied lazily. */
|
|
49
|
+
export async function resolveHeaders(headers) {
|
|
50
|
+
if (typeof headers === 'function') {
|
|
51
|
+
return await headers();
|
|
52
|
+
}
|
|
53
|
+
return headers;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Narrow an invocation response to its result, or throw.
|
|
57
|
+
*
|
|
58
|
+
* The unwrapping used by `context.actions.run` and `datasets.queryRows`, where
|
|
59
|
+
* the caller wants the value and a pending or failed call is an error rather
|
|
60
|
+
* than a state to render.
|
|
61
|
+
*/
|
|
62
|
+
export async function requireCompletedRuntimeResponse(responsePromise) {
|
|
63
|
+
const response = await responsePromise;
|
|
64
|
+
if (!response.ok || response.pending) {
|
|
65
|
+
throw new UruAppRuntimeError(`Uru app runtime ${response.capabilityType} '${response.capabilityName}' did not complete successfully.`, {
|
|
66
|
+
status: 0,
|
|
67
|
+
body: response,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return response.result;
|
|
71
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Low-level HTTP transport for the Uru app runtime client — the capability
|
|
3
|
+
* invocation (`invokeAppRuntime`), job-status poll, and job-cancel calls, plus
|
|
4
|
+
* their private response/state normalizers. Split out of `index.ts` so that file
|
|
5
|
+
* stays the public API + factory layer and this stays the wire layer (and so
|
|
6
|
+
* neither exceeds the repo's 1000-line clean-code budget).
|
|
7
|
+
*
|
|
8
|
+
* The P2 runaway dampers (default idempotency key, 429 backoff, forceRefresh
|
|
9
|
+
* throttle — `docs/plans/gem-runtime-cost-safety-audit.md`) live inline in
|
|
10
|
+
* `invokeAppRuntime` here, composing the pure helpers from `./dampers`.
|
|
11
|
+
*
|
|
12
|
+
* Imports the shared URL/error primitives from `./runtime.js` and the
|
|
13
|
+
* option/event TYPES from `./types.js`. It does NOT import `./index.js`: the
|
|
14
|
+
* barrel is the published API, and the old `index ↔ transport` cycle was paid
|
|
15
|
+
* for by exporting four internal helpers from it. Every edge here points at a
|
|
16
|
+
* module that imports nothing back.
|
|
17
|
+
*/
|
|
18
|
+
import { type ForceRefreshThrottle, type ResolvedDamperConfig } from './dampers.js';
|
|
19
|
+
import type { CreateUruAppRuntimeClientOptions, UruAppRuntimeCapabilityType, UruAppRuntimeExecutionStatus, UruAppRuntimeInvocationOptions, UruAppRuntimeInvocationResponse } from './types.js';
|
|
20
|
+
/** Per-client damper state: the resolved config plus the forceRefresh throttle. */
|
|
21
|
+
export interface DamperRuntime {
|
|
22
|
+
readonly config: ResolvedDamperConfig;
|
|
23
|
+
readonly throttle: ForceRefreshThrottle;
|
|
24
|
+
}
|
|
25
|
+
interface AppRuntimeInvocationHttpResponse<TResult> {
|
|
26
|
+
ok: boolean;
|
|
27
|
+
status: string;
|
|
28
|
+
state: string;
|
|
29
|
+
deploymentId: string;
|
|
30
|
+
capabilityType: string;
|
|
31
|
+
capabilityName: string;
|
|
32
|
+
result?: TResult | null;
|
|
33
|
+
executionId?: string | null;
|
|
34
|
+
pending: boolean;
|
|
35
|
+
diagnostics?: Record<string, unknown>;
|
|
36
|
+
}
|
|
37
|
+
interface AppRuntimeExecutionHttpResponse<TResult> {
|
|
38
|
+
success?: boolean;
|
|
39
|
+
pending?: boolean;
|
|
40
|
+
result?: TResult | null;
|
|
41
|
+
error?: string | null;
|
|
42
|
+
state?: string;
|
|
43
|
+
status?: string | null;
|
|
44
|
+
executionId?: string | null;
|
|
45
|
+
statusUrl?: string | null;
|
|
46
|
+
retryAfterSeconds?: number | null;
|
|
47
|
+
cacheStatus?: string | null;
|
|
48
|
+
executor?: string | null;
|
|
49
|
+
executorKind?: string | null;
|
|
50
|
+
}
|
|
51
|
+
/** Map the owned camelCase HTTP envelope without copying unknown fields. */
|
|
52
|
+
export declare function appRuntimeInvocationResponseFromHttp<TResult>(value: unknown): AppRuntimeInvocationHttpResponse<TResult>;
|
|
53
|
+
/** 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>;
|
|
58
|
+
export {};
|