Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 27 additions & 6 deletions src/open-api/types/flows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
/**
Expand Down
12 changes: 6 additions & 6 deletions src/services/flows/service/web-inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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']
>
>;

Expand Down Expand Up @@ -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']
>
>(),
};
Loading