From 56c02f6667bd28dc1f843d66f402eab1c90566ee Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Wed, 14 Aug 2024 09:57:47 +0000 Subject: [PATCH] docs(api): updates to API spec --- .stats.yml | 2 +- src/resources/applications.ts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 789612fa..7cfc3fc1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 16 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai%2Fwriter-4a89aa730a0c5dad44fa86cfa4f14b10fa44a076dfe6d5d6a2eb1cf8569bf526.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai%2Fwriter-b0de8fe3df00ba634727ad67463d6e2163588f28ce241f4ea45ccff2a25c271f.yml diff --git a/src/resources/applications.ts b/src/resources/applications.ts index fe9d8878..382acc06 100644 --- a/src/resources/applications.ts +++ b/src/resources/applications.ts @@ -18,8 +18,14 @@ export class Applications extends APIResource { } export interface ApplicationGenerateContentResponse { + /** + * The response from the model specified in the application. + */ suggestion: string; + /** + * The name of the output field. + */ title?: string; } @@ -29,8 +35,19 @@ export interface ApplicationGenerateContentParams { export namespace ApplicationGenerateContentParams { export interface Input { + /** + * The unique identifier for the input field from the application. All input types + * from the No-code application are supported (i.e. Text input, Dropdown, File + * upload, Image input). The identifier should be the name of the input type. + */ id: string; + /** + * The value for the input field. If file is required you will need to pass a + * `file_id`. See + * [here](https://dev.writer.com/api-guides/api-reference/file-api/upload-files) + * for the Files API. + */ value: Array; } }