Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.398.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Sep 17, 2024
1 parent 8a965d3 commit 89354b3
Show file tree
Hide file tree
Showing 25 changed files with 345 additions and 114 deletions.
33 changes: 24 additions & 9 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: caaaa8c3-6dd7-43a5-841e-c3193e68cc73
management:
docChecksum: 4451647c3fecd12e75576c88d6e46844
docChecksum: ef657b2aadcc7b6b8d116b9b11322b80
docVersion: "1.0"
speakeasyVersion: 1.396.9
generationVersion: 2.415.7
releaseVersion: 0.13.1
configChecksum: 5881ae6eaf79ded36c0abecd2d47bd0c
speakeasyVersion: 1.398.1
generationVersion: 2.415.8
releaseVersion: 0.13.2
configChecksum: 594e8b0951a87c6de2ba2291352d7ff3
repoURL: https://github.com/panoratech/typescript-sdk.git
installationURL: https://github.com/panoratech/typescript-sdk
published: true
Expand Down Expand Up @@ -77,6 +77,7 @@ generatedFiles:
- docs/models/components/passthroughrequestdtomethod.md
- docs/models/components/phone.md
- docs/models/components/projectresponse.md
- docs/models/components/querybody.md
- docs/models/components/remotedata.md
- docs/models/components/requestformat.md
- docs/models/components/resyncstatusdto.md
Expand Down Expand Up @@ -613,7 +614,8 @@ generatedFiles:
- docs/models/operations/listticketingusersrequest.md
- docs/models/operations/listticketingusersresponse.md
- docs/models/operations/listticketingusersresponsebody.md
- docs/models/operations/ragcontrollerqueryembeddingsresponsebody.md
- docs/models/operations/queryrequest.md
- docs/models/operations/queryresponsebody.md
- docs/models/operations/remoteidrequest.md
- docs/models/operations/requestpassthroughresponsebody.md
- docs/models/operations/requestrequest.md
Expand Down Expand Up @@ -905,7 +907,7 @@ generatedFiles:
- src/funcs/atsUsersList.ts
- src/funcs/atsUsersRetrieve.ts
- src/funcs/authLoginSignIn.ts
- src/funcs/connectionsRetrieve.ts
- src/funcs/connectionsList.ts
- src/funcs/crmCompaniesCreate.ts
- src/funcs/crmCompaniesList.ts
- src/funcs/crmCompaniesRetrieve.ts
Expand Down Expand Up @@ -1025,7 +1027,7 @@ generatedFiles:
- src/funcs/passthroughRetryidGetRetriedRequestResponse.ts
- src/funcs/projectsCreate.ts
- src/funcs/projectsGetProjects.ts
- src/funcs/ragQueryRagControllerQueryEmbeddings.ts
- src/funcs/ragQueryQuery.ts
- src/funcs/syncGetPullFrequency.ts
- src/funcs/syncResync.ts
- src/funcs/syncStatus.ts
Expand Down Expand Up @@ -1095,6 +1097,7 @@ generatedFiles:
- src/models/components/passthroughrequestdto.ts
- src/models/components/phone.ts
- src/models/components/projectresponse.ts
- src/models/components/querybody.ts
- src/models/components/resyncstatusdto.ts
- src/models/components/security.ts
- src/models/components/signatureverificationdto.ts
Expand Down Expand Up @@ -1352,7 +1355,7 @@ generatedFiles:
- src/models/operations/listticketingteams.ts
- src/models/operations/listticketingticket.ts
- src/models/operations/listticketingusers.ts
- src/models/operations/ragcontrollerqueryembeddings.ts
- src/models/operations/query.ts
- src/models/operations/remoteid.ts
- src/models/operations/request.ts
- src/models/operations/retrieveaccountingaccount.ts
Expand Down Expand Up @@ -4116,3 +4119,15 @@ examples:
responses:
"200":
application/json: []
query:
speakeasy-default-query:
parameters:
header:
x-connection-token: "<value>"
requestBody:
application/json: {"query": "When does Panora incorporated?", "topK": "3"}
listConnections:
speakeasy-default-list-connections:
responses:
"200":
application/json: []
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.13.1
version: 0.13.2
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.396.9
speakeasyVersion: 1.398.1
sources:
panora-open-api-swagger:
sourceNamespace: panora-open-api-swagger
sourceRevisionDigest: sha256:09a41c636f335cafb4d85225a9fdcc98b18cc03fc47615252db414011724c867
sourceBlobDigest: sha256:713f0a4faf73742f535cfe53b021385e24d65199df45d99217e68df12be7c42b
sourceRevisionDigest: sha256:e982bbcb51be9c21a9c5df52739d32ffd37c8ba27fee825a4ede576d2098b124
sourceBlobDigest: sha256:11ed4be0d33ec3cc2c4c95a2b21ab2e1732bcb9e9760872be99cfaa3ca2b1279
tags:
- latest
- main
targets:
my-first-target:
source: panora-open-api-swagger
sourceNamespace: panora-open-api-swagger
sourceRevisionDigest: sha256:09a41c636f335cafb4d85225a9fdcc98b18cc03fc47615252db414011724c867
sourceBlobDigest: sha256:713f0a4faf73742f535cfe53b021385e24d65199df45d99217e68df12be7c42b
sourceRevisionDigest: sha256:e982bbcb51be9c21a9c5df52739d32ffd37c8ba27fee825a4ede576d2098b124
sourceBlobDigest: sha256:11ed4be0d33ec3cc2c4c95a2b21ab2e1732bcb9e9760872be99cfaa3ca2b1279
codeSamplesNamespace: code-samples-typescript-my-first-target
codeSamplesRevisionDigest: sha256:030a224e95feecb4deaf3a55f955f41b15b2be46da8a1c58ba2c97ae63162434
codeSamplesRevisionDigest: sha256:eaf6fe560f15e64bc026cb4515d0ba1760afefd570081ed701cd310628679f64
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ run();

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

* [retrieve](docs/sdks/connections/README.md#retrieve) - List Connections
* [list](docs/sdks/connections/README.md#list) - List Connections

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

Expand Down Expand Up @@ -596,7 +596,7 @@ run();

#### [rag.query](docs/sdks/query/README.md)

* [ragControllerQueryEmbeddings](docs/sdks/query/README.md#ragcontrollerqueryembeddings)
* [query](docs/sdks/query/README.md#query) - Query using RAG Search

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

Expand Down Expand Up @@ -1054,7 +1054,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
- [atsUsersList](docs/sdks/panoraatsusers/README.md#list)
- [atsUsersRetrieve](docs/sdks/panoraatsusers/README.md#retrieve)
- [authLoginSignIn](docs/sdks/login/README.md#signin)
- [connectionsRetrieve](docs/sdks/connections/README.md#retrieve)
- [connectionsList](docs/sdks/connections/README.md#list)
- [crmCompaniesCreate](docs/sdks/companies/README.md#create)
- [crmCompaniesList](docs/sdks/companies/README.md#list)
- [crmCompaniesRetrieve](docs/sdks/companies/README.md#retrieve)
Expand Down Expand Up @@ -1174,7 +1174,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
- [passthroughRetryidGetRetriedRequestResponse](docs/sdks/retryid/README.md#getretriedrequestresponse)
- [projectsCreate](docs/sdks/projects/README.md#create)
- [projectsGetProjects](docs/sdks/projects/README.md#getprojects)
- [ragQueryRagControllerQueryEmbeddings](docs/sdks/query/README.md#ragcontrollerqueryembeddings)
- [ragQueryQuery](docs/sdks/query/README.md#query)
- [syncGetPullFrequency](docs/sdks/sync/README.md#getpullfrequency)
- [syncResync](docs/sdks/sync/README.md#resync)
- [syncStatus](docs/sdks/sync/README.md#status)
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,14 @@ Based on:
### Generated
- [typescript v0.13.1] .
### Releases
- [NPM v0.13.1] https://www.npmjs.com/package/@panora/sdk/v/0.13.1 - .
- [NPM v0.13.1] https://www.npmjs.com/package/@panora/sdk/v/0.13.1 - .

## 2024-09-17 19:29:15
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.398.1 (2.415.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.13.2] .
### Releases
- [NPM v0.13.2] https://www.npmjs.com/package/@panora/sdk/v/0.13.2 - .
8 changes: 4 additions & 4 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,8 @@ actions:
update:
x-codeSamples:
- lang: typescript
label: retrieveConnections
source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await panora.connections.retrieve();\n \n // Handle the result\n console.log(result)\n}\n\nrun();"
label: listConnections
source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await panora.connections.list();\n \n // Handle the result\n console.log(result)\n}\n\nrun();"
- target: $["paths"]["/crm/companies"]["get"]
update:
x-codeSamples:
Expand Down Expand Up @@ -1291,8 +1291,8 @@ actions:
update:
x-codeSamples:
- lang: typescript
label: RagController_queryEmbeddings
source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await panora.rag.query.ragControllerQueryEmbeddings();\n \n // Handle the result\n console.log(result)\n}\n\nrun();"
label: query
source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await panora.rag.query.query({\n xConnectionToken: \"<value>\",\n queryBody: {\n query: \"When does Panora incorporated?\",\n topK: 3,\n },\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();"
- target: $["paths"]["/sync/pull-frequencies"]["get"]
update:
x-codeSamples:
Expand Down
19 changes: 19 additions & 0 deletions docs/models/components/querybody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# QueryBody

## Example Usage

```typescript
import { QueryBody } from "@panora/sdk/models/components";

let value: QueryBody = {
query: "When does Panora incorporated?",
topK: 3,
};
```

## Fields

| Field | Type | Required | Description | Example |
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
| `query` | *string* | :heavy_check_mark: | The query you want to received embeddings adn chunks for | When does Panora incorporated? |
| `topK` | *number* | :heavy_minus_sign: | The number of most appropriate documents for your query. | 3 |
22 changes: 22 additions & 0 deletions docs/models/operations/queryrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# QueryRequest

## Example Usage

```typescript
import { QueryRequest } from "@panora/sdk/models/operations";

let value: QueryRequest = {
xConnectionToken: "<value>",
queryBody: {
query: "When does Panora incorporated?",
topK: 3,
},
};
```

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token |
| `queryBody` | [components.QueryBody](../../models/components/querybody.md) | :heavy_check_mark: | N/A |
14 changes: 14 additions & 0 deletions docs/models/operations/queryresponsebody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# QueryResponseBody

## Example Usage

```typescript
import { QueryResponseBody } from "@panora/sdk/models/operations";

let value: QueryResponseBody = {};
```

## Fields

| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
14 changes: 0 additions & 14 deletions docs/models/operations/ragcontrollerqueryembeddingsresponsebody.md

This file was deleted.

10 changes: 5 additions & 5 deletions docs/sdks/connections/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

### Available Operations

* [retrieve](#retrieve) - List Connections
* [list](#list) - List Connections

## retrieve
## list

List Connections

Expand All @@ -21,7 +21,7 @@ const panora = new Panora({
});

async function run() {
const result = await panora.connections.retrieve();
const result = await panora.connections.list();

// Handle the result
console.log(result)
Expand All @@ -36,7 +36,7 @@ The standalone function version of this method:

```typescript
import { PanoraCore } from "@panora/sdk/core.js";
import { connectionsRetrieve } from "@panora/sdk/funcs/connectionsRetrieve.js";
import { connectionsList } from "@panora/sdk/funcs/connectionsList.js";

// Use `PanoraCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
Expand All @@ -45,7 +45,7 @@ const panora = new PanoraCore({
});

async function run() {
const res = await connectionsRetrieve(panora);
const res = await connectionsList(panora);

if (!res.ok) {
throw res.error;
Expand Down
27 changes: 21 additions & 6 deletions docs/sdks/query/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@

### Available Operations

* [ragControllerQueryEmbeddings](#ragcontrollerqueryembeddings)
* [query](#query) - Query using RAG Search

## ragControllerQueryEmbeddings
## query

Query across your connected data sources using RAG Search

### Example Usage

Expand All @@ -19,7 +21,13 @@ const panora = new Panora({
});

async function run() {
const result = await panora.rag.query.ragControllerQueryEmbeddings();
const result = await panora.rag.query.query({
xConnectionToken: "<value>",
queryBody: {
query: "When does Panora incorporated?",
topK: 3,
},
});

// Handle the result
console.log(result)
Expand All @@ -34,7 +42,7 @@ The standalone function version of this method:

```typescript
import { PanoraCore } from "@panora/sdk/core.js";
import { ragQueryRagControllerQueryEmbeddings } from "@panora/sdk/funcs/ragQueryRagControllerQueryEmbeddings.js";
import { ragQueryQuery } from "@panora/sdk/funcs/ragQueryQuery.js";

// Use `PanoraCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
Expand All @@ -43,7 +51,13 @@ const panora = new PanoraCore({
});

async function run() {
const res = await ragQueryRagControllerQueryEmbeddings(panora);
const res = await ragQueryQuery(panora, {
xConnectionToken: "<value>",
queryBody: {
query: "When does Panora incorporated?",
topK: 3,
},
});

if (!res.ok) {
throw res.error;
Expand All @@ -62,13 +76,14 @@ run();

| Parameter | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `request` | [operations.QueryRequest](../../models/operations/queryrequest.md) | :heavy_check_mark: | The request object to use for the request. |
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |

### Response

**Promise\<[operations.RagControllerQueryEmbeddingsResponseBody](../../models/operations/ragcontrollerqueryembeddingsresponsebody.md)\>**
**Promise\<[operations.QueryResponseBody](../../models/operations/queryresponsebody.md)\>**

### Errors

Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@panora/sdk",
"version": "0.13.1",
"version": "0.13.2",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
Loading

0 comments on commit 89354b3

Please sign in to comment.