@uibot/application 0.13.0 → 0.14.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/creation-http.d.ts +16 -0
- package/dist/index.js +210 -210
- package/package.json +12 -12
package/dist/creation-http.d.ts
CHANGED
|
@@ -94,6 +94,22 @@ export interface CreateCreationHandlerOptions {
|
|
|
94
94
|
* that project version. A stale or widened claim does not commit or re-authorize.
|
|
95
95
|
*/
|
|
96
96
|
authorizeRecovery?: CreationRecoveryAuthorizer;
|
|
97
|
+
/**
|
|
98
|
+
* Optional runtime check of a generated HTML candidate before it is committed (e.g. a headless
|
|
99
|
+
* render that reports script errors or a blank page). A failed check fails the run; a check that
|
|
100
|
+
* throws fails it as unavailable, never as passed.
|
|
101
|
+
*/
|
|
102
|
+
htmlSelfCheck?: CreationHtmlSelfCheck;
|
|
97
103
|
}
|
|
104
|
+
export type CreationHtmlSelfCheckResult = {
|
|
105
|
+
ok: true;
|
|
106
|
+
} | {
|
|
107
|
+
ok: false;
|
|
108
|
+
detail: string;
|
|
109
|
+
};
|
|
110
|
+
export type CreationHtmlSelfCheck = (input: {
|
|
111
|
+
html: string;
|
|
112
|
+
signal: AbortSignal;
|
|
113
|
+
}) => Promise<CreationHtmlSelfCheckResult>;
|
|
98
114
|
/** Durable single-service workflow: generate -> validate -> conditional commit. */
|
|
99
115
|
export declare function createUIBotStudioCreationHandler(options: CreateCreationHandlerOptions): Promise<(request: Request) => Promise<Response | null>>;
|