From cad7e03f998869a17be1b76c3fb6265c3c8e82bd Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 27 Jul 2026 14:39:42 +0000 Subject: [PATCH 1/2] chore: Updates OpenAPI generated types for Globus Service APIs --- src/open-api/types/flows.ts | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/src/open-api/types/flows.ts b/src/open-api/types/flows.ts index 28d1b34a..4a6ef6c9 100644 --- a/src/open-api/types/flows.ts +++ b/src/open-api/types/flows.ts @@ -2587,7 +2587,7 @@ export interface paths { patch?: never; trace?: never; }; - "/web_inputs/{web_input_id}/response": { + "/web_inputs/{web_input_id}/respond": { parameters: { query?: never; header?: never; @@ -3198,23 +3198,44 @@ export interface components { * @description A timezone-aware ISO8601 format string that represents the time at which the Web Input was closed. Null if the Web Input is still open. */ _WebInputClosedTimestamp: string | null; + _WebInputContext: components["schemas"]["_WebInputTableContext"] | components["schemas"]["_WebInputTextContext"]; /** * @description Information that helps respondents understand what they're responding to. * For example, "What file transfer am I approving or denying?" */ - _WebInputContext: { + _WebInputTableContext: { /** * @description A title for the Web Input. * This may be displayed as an human-readable label for the Web Input itself, or it may be used as a bold header on a webpage displaying the Web Input as a form. */ - title?: string; - /** @description The suggested way by which the rows should be rendered for display. */ - presentation_style?: string; - rows?: { + title: string; + /** + * @description The value "table" indicating that clients should present data as a table. (enum property replaced by openapi-typescript) + * @enum {string} + */ + presentation_style: "table"; + rows: { field: string; value: string; }[]; }; + /** + * @description Information that helps respondents understand what they're responding to. + * For example, "What file transfer am I approving or denying?" + */ + _WebInputTextContext: { + /** + * @description A title for the Web Input. + * This may be displayed as an human-readable label for the Web Input itself, or it may be used as a bold header on a webpage displaying the Web Input as a form. + */ + title: string; + /** + * @description The value "text" indicating that clients should present data as a block of text. (enum property replaced by openapi-typescript) + * @enum {string} + */ + presentation_style: "text"; + text: string; + }; /** @description The Globus Auth identity that created the Web Input. Creators are not implicitly granted "view" access to the Web Input. */ _WebInputCreatorUrn: string; /** From 4472aee17ecbe51c92627370291092e4a8b39b5c Mon Sep 17 00:00:00 2001 From: Joe Bottigliero <694253+jbottigliero@users.noreply.github.com> Date: Mon, 27 Jul 2026 09:45:49 -0500 Subject: [PATCH 2/2] fix: type references --- src/services/flows/service/web-inputs.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/services/flows/service/web-inputs.ts b/src/services/flows/service/web-inputs.ts index 68bdc81d..12874b04 100644 --- a/src/services/flows/service/web-inputs.ts +++ b/src/services/flows/service/web-inputs.ts @@ -71,7 +71,7 @@ export const respond = function ( sdkOptions?, ): Promise< JSONFetchResponse< - OpenAPI.paths['/web_inputs/{web_input_id}/response']['post']['responses']['200']['content']['application/json'] + OpenAPI.paths['/web_inputs/{web_input_id}/respond']['post']['responses']['200']['content']['application/json'] > > { return serviceRequest( @@ -87,10 +87,10 @@ export const respond = function ( } satisfies ServiceMethodDynamicSegments< string, { - body: OpenAPI.paths['/web_inputs/{web_input_id}/response']['post']['requestBody']['content']['application/json']; + body: OpenAPI.paths['/web_inputs/{web_input_id}/respond']['post']['requestBody']['content']['application/json']; }, JSONFetchResponse< - OpenAPI.paths['/web_inputs/{web_input_id}/response']['post']['responses']['200']['content']['application/json'] + OpenAPI.paths['/web_inputs/{web_input_id}/respond']['post']['responses']['200']['content']['application/json'] > >; @@ -134,12 +134,12 @@ export const next = { }).generate< { request?: { - query?: OpenAPI.paths['/web_inputs/{web_input_id}/response']['post']['parameters']['query']; - data?: OpenAPI.paths['/web_inputs/{web_input_id}/response']['post']['requestBody']['content']['application/json']; + query?: OpenAPI.paths['/web_inputs/{web_input_id}/respond']['post']['parameters']['query']; + data?: OpenAPI.paths['/web_inputs/{web_input_id}/respond']['post']['requestBody']['content']['application/json']; }; }, JSONFetchResponse< - OpenAPI.paths['/web_inputs/{web_input_id}/response']['post']['responses']['200']['content']['application/json'] + OpenAPI.paths['/web_inputs/{web_input_id}/respond']['post']['responses']['200']['content']['application/json'] > >(), };