Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.456.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Dec 17, 2024
1 parent 9ae68cd commit 53b28a3
Show file tree
Hide file tree
Showing 984 changed files with 581 additions and 86,312 deletions.
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.455.5
speakeasyVersion: 1.456.0
sources:
orq-ai-node:
sourceNamespace: orq-ai-node
Expand All @@ -10,11 +10,11 @@ sources:
- "2.0"
orq-ai-prerelease-node:
sourceNamespace: orq-ai-prerelease-node
sourceRevisionDigest: sha256:5575160d830a0e46a53c982d7143ac980e75d7c3f3b849c1eedf012550d0056f
sourceBlobDigest: sha256:681ec46f6a6da4f5b0517da2ea671dd014626d4882afc16d2fd1fd50fbe3c8b4
sourceRevisionDigest: sha256:87607e22f29eeca57e8505e742e27c6d0908eb785ee3255bc4f1ea60fbc0e333
sourceBlobDigest: sha256:50e17411344ec12e10192e00c84c37f0cd6dadb1de208b2cd85aeabb994ada5b
tags:
- latest
- speakeasy-sdk-regen-1733176523
- speakeasy-sdk-regen-1734470268
- "2.0"
targets:
orq-ai-node:
Expand All @@ -27,10 +27,10 @@ targets:
orq-ai-prerelease-node:
source: orq-ai-prerelease-node
sourceNamespace: orq-ai-prerelease-node
sourceRevisionDigest: sha256:5575160d830a0e46a53c982d7143ac980e75d7c3f3b849c1eedf012550d0056f
sourceBlobDigest: sha256:681ec46f6a6da4f5b0517da2ea671dd014626d4882afc16d2fd1fd50fbe3c8b4
sourceRevisionDigest: sha256:87607e22f29eeca57e8505e742e27c6d0908eb785ee3255bc4f1ea60fbc0e333
sourceBlobDigest: sha256:50e17411344ec12e10192e00c84c37f0cd6dadb1de208b2cd85aeabb994ada5b
codeSamplesNamespace: orq-ai-prerelease-node-typescript-code-samples
codeSamplesRevisionDigest: sha256:ada12ae3fc947613aba0f630cbbeb6bee3bd64cd9864f05e5e8eeef145220def
codeSamplesRevisionDigest: sha256:7e4f085e2be04e4a7bef3c8d169ed3494706583299cf4613912a5ef82d6b926b
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
1 change: 1 addition & 0 deletions packages/orq-rc/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/react-query
/models
/models/errors
/types
Expand Down
3 changes: 3 additions & 0 deletions packages/orq-rc/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
**/*
!/FUNCTIONS.md
!/RUNTIMES.md
!/REACT_QUERY.md
!/**/*.ts
!/**/*.js
!/**/*.map
Expand Down
929 changes: 6 additions & 923 deletions packages/orq-rc/.speakeasy/gen.lock

Large diffs are not rendered by default.

62 changes: 17 additions & 45 deletions packages/orq-rc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,27 +174,6 @@ run();
* [bulkUpload](docs/sdks/files/README.md#bulkupload) - Bulk upload file


### [prompt](docs/sdks/prompt/README.md)


#### [prompt.snippets](docs/sdks/snippets/README.md)

* [findOne](docs/sdks/snippets/README.md#findone) - Get one prompt snippet

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

* [getAll](docs/sdks/templates/README.md#getall) - Get all prompt templates

### [prompts](docs/sdks/prompts/README.md)

* [create](docs/sdks/prompts/README.md#create) - Create a new prompt
* [createVersion](docs/sdks/prompts/README.md#createversion) - Create a new prompt version
* [delete](docs/sdks/prompts/README.md#delete) - Delete a prompt
* [getOne](docs/sdks/prompts/README.md#getone) - Get one prompt
* [update](docs/sdks/prompts/README.md#update) - Update a prompt
* [duplicate](docs/sdks/prompts/README.md#duplicate) - Duplicate a prompt
* [getAll](docs/sdks/prompts/README.md#getall) - Get all prompts

### [remoteconfig](docs/sdks/remoteconfig/README.md)

* [getConfig](docs/sdks/remoteconfig/README.md#getconfig) - Get Configurations
Expand Down Expand Up @@ -226,15 +205,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
- [`feedbackCreate`](docs/sdks/feedback/README.md#create) - Submit feedback
- [`filesBulkUpload`](docs/sdks/files/README.md#bulkupload) - Bulk upload file
- [`filesUpload`](docs/sdks/files/README.md#upload) - Upload file
- [`promptsCreate`](docs/sdks/prompts/README.md#create) - Create a new prompt
- [`promptsCreateVersion`](docs/sdks/prompts/README.md#createversion) - Create a new prompt version
- [`promptsDelete`](docs/sdks/prompts/README.md#delete) - Delete a prompt
- [`promptsDuplicate`](docs/sdks/prompts/README.md#duplicate) - Duplicate a prompt
- [`promptsGetAll`](docs/sdks/prompts/README.md#getall) - Get all prompts
- [`promptsGetOne`](docs/sdks/prompts/README.md#getone) - Get one prompt
- [`promptSnippetsFindOne`](docs/sdks/snippets/README.md#findone) - Get one prompt snippet
- [`promptsUpdate`](docs/sdks/prompts/README.md#update) - Update a prompt
- [`promptTemplatesGetAll`](docs/sdks/templates/README.md#getall) - Get all prompt templates
- [`remoteconfigGetConfig`](docs/sdks/remoteconfig/README.md#getconfig) - Get Configurations

</details>
Expand Down Expand Up @@ -380,25 +350,15 @@ run();
<!-- Start Error Handling [errors] -->
## Error Handling

All SDK methods return a response object or throw an error. By default, an API error will throw a `errors.APIError`.

If a HTTP request fails, an operation my also throw an error from the `models/errors/httpclienterrors.ts` module:

| HTTP Client Error | Description |
| ---------------------------------------------------- | ---------------------------------------------------- |
| RequestAbortedError | HTTP request was aborted by the client |
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
| ConnectionError | HTTP client was unable to make a request to a server |
| InvalidRequestError | Any input used to create a request is invalid |
| UnexpectedClientError | Unrecognised or unexpected error |

In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `all` method may throw the following errors:
Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `all` method may throw the following errors:

| Error Type | Status Code | Content Type |
| ------------------- | ----------- | ---------------- |
| errors.HonoApiError | 500 | application/json |
| errors.APIError | 4XX, 5XX | \*/\* |

If the method throws an error and it is not captured by the known errors, it will default to throwing a `APIError`.

```typescript
import { Orq } from "@orq-ai/node";
import { HonoApiError, SDKValidationError } from "@orq-ai/node/models/errors";
Expand All @@ -416,8 +376,9 @@ async function run() {
console.log(result);
} catch (err) {
switch (true) {
// The server response does not match the expected SDK schema
case (err instanceof SDKValidationError): {
// Validation errors can be pretty-printed
// Pretty-print will provide a human-readable multi-line error message
console.error(err.pretty());
// Raw value may also be inspected
console.error(err.rawValue);
Expand All @@ -429,6 +390,7 @@ async function run() {
return;
}
default: {
// Other errors such as network errors, see HTTPClientErrors for more details
throw err;
}
}
Expand All @@ -439,7 +401,17 @@ run();

```

Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted multi-line string since validation errors can list many issues and the plain error string may be difficult read when debugging.

In some rare cases, the SDK can fail to get a response from the server or even make the request due to unexpected circumstances such as network conditions. These types of errors are captured in the `models/errors/httpclienterrors.ts` module:

| HTTP Client Error | Description |
| ---------------------------------------------------- | ---------------------------------------------------- |
| RequestAbortedError | HTTP request was aborted by the client |
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
| ConnectionError | HTTP client was unable to make a request to a server |
| InvalidRequestError | Any input used to create a request is invalid |
| UnexpectedClientError | Unrecognised or unexpected error |
<!-- End Error Handling [errors] -->

<!-- Start Server Selection [server] -->
Expand Down
12 changes: 11 additions & 1 deletion packages/orq-rc/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ Based on:
### Generated
- [typescript v1.31.0-rc.12] packages/orq-rc
### Releases
- [NPM v1.31.0-rc.12] https://www.npmjs.com/package/@orq-ai/node/v/1.31.0-rc.12 - packages/orq-rc
- [NPM v1.31.0-rc.12] https://www.npmjs.com/package/@orq-ai/node/v/1.31.0-rc.12 - packages/orq-rc

## 2024-12-17 21:17:45
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.456.0 (2.481.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.32.0-rc.5] packages/orq-rc
### Releases
- [NPM v1.32.0-rc.5] https://www.npmjs.com/package/@orq-ai/node/v/1.32.0-rc.5 - packages/orq-rc
2 changes: 1 addition & 1 deletion packages/orq-rc/docs/models/components/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const value: components.Two[] = [
{
type: "image_url",
imageUrl: {
url: "https://ashamed-distinction.net",
url: "https://insistent-markup.biz",
},
},
];
Expand Down
2 changes: 1 addition & 1 deletion packages/orq-rc/docs/models/components/content2.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const value: components.Two1 = {
const value: components.Deployments22 = {
type: "image_url",
imageUrl: {
url: "https://worldly-apricot.com/",
url: "https://frequent-wriggler.biz",
},
};
```
Expand Down
2 changes: 1 addition & 1 deletion packages/orq-rc/docs/models/components/deployments22.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Deployments22 } from "@orq-ai/node/models/components";
let value: Deployments22 = {
type: "image_url",
imageUrl: {
url: "https://crooked-in-joke.biz/",
url: "https://subdued-widow.org/",
},
};
```
Expand Down
6 changes: 2 additions & 4 deletions packages/orq-rc/docs/models/components/deploymentscontent.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ const value: string = "<value>";
```typescript
const value: components.Content2[] = [
{
type: "image_url",
imageUrl: {
url: "https://artistic-impostor.org/",
},
type: "text",
text: "<value>",
},
];
```
Expand Down
2 changes: 1 addition & 1 deletion packages/orq-rc/docs/models/components/deploymentsrole.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The role of the prompt message
```typescript
import { DeploymentsRole } from "@orq-ai/node/models/components";

let value: DeploymentsRole = "correction";
let value: DeploymentsRole = "user";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion packages/orq-rc/docs/models/components/imageurl.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { ImageUrl } from "@orq-ai/node/models/components";

let value: ImageUrl = {
url: "https://authorized-transom.info",
url: "https://incomparable-coil.name",
};
```

Expand Down
2 changes: 1 addition & 1 deletion packages/orq-rc/docs/models/components/inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const value: string = "<value>";
### `number`

```typescript
const value: number = 442.61;
const value: number = 6184.80;
```

### `boolean`
Expand Down
11 changes: 2 additions & 9 deletions packages/orq-rc/docs/models/components/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,8 @@
import { Messages } from "@orq-ai/node/models/components";

let value: Messages = {
role: "user",
content: [
{
type: "image_url",
imageUrl: {
url: "https://jam-packed-traditionalism.com/",
},
},
],
role: "expected_output",
content: "<value>",
};
```

Expand Down
2 changes: 1 addition & 1 deletion packages/orq-rc/docs/models/components/prefixmessages.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { PrefixMessages } from "@orq-ai/node/models/components";

let value: PrefixMessages = {
role: "user",
role: "prompt",
content: "<value>",
};
```
Expand Down
2 changes: 1 addition & 1 deletion packages/orq-rc/docs/models/components/role.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The role of the prompt message
```typescript
import { Role } from "@orq-ai/node/models/components";

let value: Role = "correction";
let value: Role = "expected_output";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion packages/orq-rc/docs/models/components/two.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const value: components.One = {
const value: components.Two2 = {
type: "image_url",
imageUrl: {
url: "https://better-bonnet.name",
url: "https://excellent-petticoat.biz/",
},
};
```
Expand Down
2 changes: 1 addition & 1 deletion packages/orq-rc/docs/models/components/two2.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Two2 } from "@orq-ai/node/models/components";
let value: Two2 = {
type: "image_url",
imageUrl: {
url: "https://key-soup.biz/",
url: "https://wrong-baseboard.net/",
},
};
```
Expand Down
2 changes: 1 addition & 1 deletion packages/orq-rc/docs/models/components/twoimageurl.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { TwoImageUrl } from "@orq-ai/node/models/components";

let value: TwoImageUrl = {
url: "https://silky-order.org",
url: "https://vain-archaeology.biz",
};
```

Expand Down
2 changes: 1 addition & 1 deletion packages/orq-rc/docs/models/components/userid.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ const value: string = "<value>";
### `number`

```typescript
const value: number = 618.93;
const value: number = 6897.68;
```

17 changes: 0 additions & 17 deletions packages/orq-rc/docs/models/errors/updatepromptresponsebody.md

This file was deleted.

21 changes: 0 additions & 21 deletions packages/orq-rc/docs/models/operations/createprompt21.md

This file was deleted.

23 changes: 0 additions & 23 deletions packages/orq-rc/docs/models/operations/createprompt22.md

This file was deleted.

Loading

0 comments on commit 53b28a3

Please sign in to comment.