-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from writer/release-please--branches--main--ch…
…anges--next--components--writer-sdk release: 0.4.0
- Loading branch information
Showing
25 changed files
with
255 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
".": "0.3.0" | ||
".": "0.4.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
configured_endpoints: 15 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai%2Fwriter-9950942f4d28d7155ca24b353375665668ba7b19f6a381d42651dd4890a0027f.yml | ||
configured_endpoints: 16 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/writerai%2Fwriter-29d74057f6277b8657539fbdda86e469e2d50765733bfc3db2578eb6fdb8d07e.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ if [[ lenErrors -gt 0 ]]; then | |
fi | ||
|
||
echo "The environment is ready to push releases!" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "writer-sdk", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "The official TypeScript library for the Writer API", | ||
"author": "Writer <[email protected]>", | ||
"types": "dist/index.d.ts", | ||
|
@@ -21,7 +21,7 @@ | |
"prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build; fi", | ||
"tsn": "ts-node -r tsconfig-paths/register", | ||
"lint": "./scripts/lint", | ||
"fix": "eslint --fix --ext ts,js ." | ||
"fix": "./scripts/format" | ||
}, | ||
"dependencies": { | ||
"@types/node": "^18.11.18", | ||
|
@@ -30,8 +30,7 @@ | |
"agentkeepalive": "^4.2.1", | ||
"form-data-encoder": "1.7.2", | ||
"formdata-node": "^4.3.2", | ||
"node-fetch": "^2.6.7", | ||
"web-streams-polyfill": "^3.2.1" | ||
"node-fetch": "^2.6.7" | ||
}, | ||
"devDependencies": { | ||
"@swc/core": "^1.3.102", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}" | |
|
||
# Run prism mock on the given spec | ||
if [ "$1" == "--daemon" ]; then | ||
npm exec --package=@stoplight/prism-cli@~5.8 -- prism mock "$URL" &> .prism.log & | ||
npm exec --package=@stainless-api/[email protected].5 -- prism mock "$URL" &> .prism.log & | ||
|
||
# Wait for server to come online | ||
echo -n "Waiting for server" | ||
|
@@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then | |
|
||
echo | ||
else | ||
npm exec --package=@stoplight/prism-cli@~5.8 -- prism mock "$URL" | ||
npm exec --package=@stainless-api/[email protected].5 -- prism mock "$URL" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
import { APIResource } from '../resource'; | ||
import * as Core from '../core'; | ||
import * as ApplicationsAPI from './applications'; | ||
|
||
export class Applications extends APIResource { | ||
/** | ||
* Generate content from an existing application with inputs. | ||
*/ | ||
generateContent( | ||
applicationId: string, | ||
body: ApplicationGenerateContentParams, | ||
options?: Core.RequestOptions, | ||
): Core.APIPromise<ApplicationGenerateContentResponse> { | ||
return this._client.post(`/v1/applications/${applicationId}`, { body, ...options }); | ||
} | ||
} | ||
|
||
export interface ApplicationGenerateContentResponse { | ||
/** | ||
* The response from the model specified in the application. | ||
*/ | ||
suggestion: string; | ||
|
||
/** | ||
* The name of the output field. | ||
*/ | ||
title?: string; | ||
} | ||
|
||
export interface ApplicationGenerateContentParams { | ||
inputs: Array<ApplicationGenerateContentParams.Input>; | ||
} | ||
|
||
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<string>; | ||
} | ||
} | ||
|
||
export namespace Applications { | ||
export import ApplicationGenerateContentResponse = ApplicationsAPI.ApplicationGenerateContentResponse; | ||
export import ApplicationGenerateContentParams = ApplicationsAPI.ApplicationGenerateContentParams; | ||
} |
Oops, something went wrong.