Skip to content

Commit

Permalink
Merge pull request #6 from speakeasy-sdks/speakeasy-sdk-regen-1682469599
Browse files Browse the repository at this point in the history
chore: speakeasy sdk regeneration - Generate
  • Loading branch information
ndimares committed May 3, 2023
2 parents cd46684 + d7ee589 commit 37bf1de
Show file tree
Hide file tree
Showing 14 changed files with 365 additions and 164 deletions.
30 changes: 13 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,16 @@ curl
## SDK Example Usage
<!-- Start SDK Example Usage -->
```typescript
import {
RunCommandRequestBody,
RunCommandResponse
} from "@speakeasy-sdks/jasper-ai/dist/sdk/models/operations";

import { AxiosError } from "axios";
import { Jasper } from "@speakeasy-sdks/jasper-ai";
import { RunCommandResponse } from "@speakeasy-sdks/jasper-ai/dist/sdk/models/operations";

const sdk = new Jasper({
security: {
apiKeyAuth: "YOUR_API_KEY_HERE",
},
});

const req: RunCommandRequestBody = {
sdk.commands.run({
inputs: {
command: "Write a haiku about rabbits",
context: "All rabbits eat kale",
Expand All @@ -67,10 +63,10 @@ const req: RunCommandRequestBody = {
outputCount: 715190,
outputLanguage: "quibusdam",
},
};

sdk.commands.run(req).then((res: RunCommandResponse | AxiosError) => {
// handle response
}).then((res: RunCommandResponse) => {
if (res.statusCode == 200) {
// handle response
}
});
```
<!-- End SDK Example Usage -->
Expand All @@ -79,15 +75,15 @@ sdk.commands.run(req).then((res: RunCommandResponse | AxiosError) => {
## Available Resources and Operations


### commands
### [commands](docs/commands/README.md)

* `run` - Run a command to generate an AI Output
* [run](docs/commands/README.md#run) - Run a command to generate an AI Output

### templates
### [templates](docs/templates/README.md)

* `get` - Retrieve an individual default or custom template available in your workspace by ID
* `list` - Get a list of available templates
* `run` - Run a default template or custom template by ID to generate an AI output. See our guide on Using Templates for tips on getting started.
* [get](docs/templates/README.md#get) - Retrieve an individual default or custom template available in your workspace by ID
* [list](docs/templates/README.md#list) - Get a list of available templates
* [run](docs/templates/README.md#run) - Run a default template or custom template by ID to generate an AI output. See our guide on Using Templates for tips on getting started.
<!-- End SDK Available Operations -->

### Maturity
Expand Down
50 changes: 49 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,52 @@ Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.22.2 (2.20.1) https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v1.1.0] https://www.npmjs.com/package/@speakeasy-sdks/jasper-ai/v/1.1.0 - .
- [NPM v1.1.0] https://www.npmjs.com/package/@speakeasy-sdks/jasper-ai/v/1.1.0 - .

## 2023-04-26 00:39:58
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v1.2.0] https://www.npmjs.com/package/@speakeasy-sdks/jasper-ai/v/1.2.0 - .

## 2023-04-27 00:42:03
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.25.1 (2.22.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v1.3.0] https://www.npmjs.com/package/@speakeasy-sdks/jasper-ai/v/1.3.0 - .

## 2023-04-28 00:41:15
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.26.2 (2.23.2) https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v1.4.0] https://www.npmjs.com/package/@speakeasy-sdks/jasper-ai/v/1.4.0 - .

## 2023-04-29 00:39:18
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.26.4 (2.23.4) https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v1.4.1] https://www.npmjs.com/package/@speakeasy-sdks/jasper-ai/v/1.4.1 - .

## 2023-05-02 00:40:29
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.26.5 (2.23.6) https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v1.4.2] https://www.npmjs.com/package/@speakeasy-sdks/jasper-ai/v/1.4.2 - .

## 2023-05-03 00:39:50
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.27.0 (2.24.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v1.5.0] https://www.npmjs.com/package/@speakeasy-sdks/jasper-ai/v/1.5.0 - .
18 changes: 7 additions & 11 deletions USAGE.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
<!-- Start SDK Example Usage -->
```typescript
import {
RunCommandRequestBody,
RunCommandResponse
} from "@speakeasy-sdks/jasper-ai/dist/sdk/models/operations";

import { AxiosError } from "axios";
import { Jasper } from "@speakeasy-sdks/jasper-ai";
import { RunCommandResponse } from "@speakeasy-sdks/jasper-ai/dist/sdk/models/operations";

const sdk = new Jasper({
security: {
apiKeyAuth: "YOUR_API_KEY_HERE",
},
});

const req: RunCommandRequestBody = {
sdk.commands.run({
inputs: {
command: "Write a haiku about rabbits",
context: "All rabbits eat kale",
Expand All @@ -24,10 +20,10 @@ const req: RunCommandRequestBody = {
outputCount: 715190,
outputLanguage: "quibusdam",
},
};

sdk.commands.run(req).then((res: RunCommandResponse | AxiosError) => {
// handle response
}).then((res: RunCommandResponse) => {
if (res.statusCode == 200) {
// handle response
}
});
```
<!-- End SDK Example Usage -->
43 changes: 43 additions & 0 deletions docs/commands/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# commands

## Overview

Commands for generating content

### Available Operations

* [run](#run) - Run a command to generate an AI Output

## run

Run a command to generate an AI Output

### Example Usage

```typescript
import { Jasper } from "@speakeasy-sdks/jasper-ai";
import { RunCommandResponse } from "@speakeasy-sdks/jasper-ai/dist/sdk/models/operations";

const sdk = new Jasper({
security: {
apiKeyAuth: "YOUR_API_KEY_HERE",
},
});

sdk.commands.run({
inputs: {
command: "Write a haiku about rabbits",
context: "All rabbits eat kale",
},
options: {
inputLanguage: "unde",
languageFormality: "nulla",
outputCount: 544883,
outputLanguage: "illum",
},
}).then((res: RunCommandResponse) => {
if (res.statusCode == 200) {
// handle response
}
});
```
8 changes: 8 additions & 0 deletions docs/jasper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Jasper SDK

## Overview

API for generating content

### Available Operations

99 changes: 99 additions & 0 deletions docs/templates/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# templates

## Overview

Templates for generating content

### Available Operations

* [get](#get) - Retrieve an individual default or custom template available in your workspace by ID
* [list](#list) - Get a list of available templates
* [run](#run) - Run a default template or custom template by ID to generate an AI output. See our guide on Using Templates for tips on getting started.

## get

Retrieve an individual default or custom template available in your workspace by ID

### Example Usage

```typescript
import { Jasper } from "@speakeasy-sdks/jasper-ai";
import { GetTemplateResponse } from "@speakeasy-sdks/jasper-ai/dist/sdk/models/operations";
import { TemplateInputsTypeEnum } from "@speakeasy-sdks/jasper-ai/dist/sdk/models/shared";

const sdk = new Jasper({
security: {
apiKeyAuth: "YOUR_API_KEY_HERE",
},
});

sdk.templates.get({
templateId: "vel",
}).then((res: GetTemplateResponse) => {
if (res.statusCode == 200) {
// handle response
}
});
```

## list

Get a list of available templates

### Example Usage

```typescript
import { Jasper } from "@speakeasy-sdks/jasper-ai";
import { ListTemplatesResponse } from "@speakeasy-sdks/jasper-ai/dist/sdk/models/operations";
import { TemplateInputsTypeEnum } from "@speakeasy-sdks/jasper-ai/dist/sdk/models/shared";

const sdk = new Jasper({
security: {
apiKeyAuth: "YOUR_API_KEY_HERE",
},
});

sdk.templates.list().then((res: ListTemplatesResponse) => {
if (res.statusCode == 200) {
// handle response
}
});
```

## run

Run a default template or custom template by ID to generate an AI output. See our guide on Using Templates for tips on getting started.

### Example Usage

```typescript
import { Jasper } from "@speakeasy-sdks/jasper-ai";
import { RunTemplateResponse } from "@speakeasy-sdks/jasper-ai/dist/sdk/models/operations";

const sdk = new Jasper({
security: {
apiKeyAuth: "YOUR_API_KEY_HERE",
},
});

sdk.templates.run({
requestBody: {
inputs: {
"deserunt": "suscipit",
"iure": "magnam",
"debitis": "ipsa",
},
options: {
inputLanguage: "delectus",
languageFormality: "tempora",
outputCount: 383441,
outputLanguage: "molestiae",
},
},
templateId: "minus",
}).then((res: RunTemplateResponse) => {
if (res.statusCode == 200) {
// handle response
}
});
```
3 changes: 3 additions & 0 deletions files.gen
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ src/sdk/models/shared/templateinputs.ts
src/sdk/models/shared/templateinputoptions.ts
src/sdk/models/shared/security.ts
src/sdk/models/shared/index.ts
docs/jasper/README.md
docs/commands/README.md
docs/templates/README.md
USAGE.md
6 changes: 3 additions & 3 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ configVersion: 1.0.0
management:
docChecksum: f5b6e724b9f702f6494ec262b0dc33c5
docVersion: 1.0.0
speakeasyVersion: 1.22.2
generationVersion: 2.20.1
speakeasyVersion: 1.27.0
generationVersion: 2.24.0
generation:
telemetryEnabled: false
sdkClassName: Jasper
singleTagPerOp: false
typescript:
version: 1.1.0
version: 1.5.0
author: Jasper
packageName: '@speakeasy-sdks/jasper-ai'
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@speakeasy-sdks/jasper-ai",
"version": "1.1.0",
"version": "1.5.0",
"author": "Jasper",
"scripts": {
"prepare": "tsc --build"
Expand All @@ -22,5 +22,10 @@
"files": [
"dist",
"README.md"
]
],
"repository": {
"type": "git",
"url": "https://github.com/speakeasy-sdks/jasper-ts.git",
"directory": "."
}
}

0 comments on commit 37bf1de

Please sign in to comment.