Skip to content

Commit

Permalink
Merge pull request #8 from panoratech/speakeasy-sdk-regen-1726601376
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate SDK 0.6.1
  • Loading branch information
naelob authored Sep 17, 2024
2 parents 0bbf24e + fb79386 commit 3264714
Show file tree
Hide file tree
Showing 21 changed files with 214 additions and 91 deletions.
44 changes: 34 additions & 10 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: a91bd2c3-271c-43c1-8aa5-6b9067364c1b
management:
docChecksum: 4451647c3fecd12e75576c88d6e46844
docChecksum: ef657b2aadcc7b6b8d116b9b11322b80
docVersion: "1.0"
speakeasyVersion: 1.396.9
generationVersion: 2.415.7
releaseVersion: 0.6.0
configChecksum: 9b679a07ad1fb663d292fbbc4e2aaacc
speakeasyVersion: 1.398.1
generationVersion: 2.415.8
releaseVersion: 0.6.1
configChecksum: 83bd49dcf090270db2b5d604c9456403
repoURL: https://github.com/panoratech/go-sdk.git
installationURL: https://github.com/panoratech/go-sdk
features:
Expand Down Expand Up @@ -56,6 +56,7 @@ generatedFiles:
- /models/components/passthroughrequestdto.go
- /models/components/phone.go
- /models/components/projectresponse.go
- /models/components/querybody.go
- /models/components/resyncstatusdto.go
- /models/components/security.go
- /models/components/signatureverificationdto.go
Expand Down Expand Up @@ -271,6 +272,7 @@ generatedFiles:
- /models/operations/listatsscorecard.go
- /models/operations/listatstags.go
- /models/operations/listatsusers.go
- /models/operations/listconnections.go
- /models/operations/listcrmcompany.go
- /models/operations/listcrmcontacts.go
- /models/operations/listcrmdeals.go
Expand Down Expand Up @@ -324,7 +326,7 @@ generatedFiles:
- /models/operations/listticketingusers.go
- /models/operations/listwebhooks.go
- /models/operations/map.go
- /models/operations/ragcontrollerqueryembeddings.go
- /models/operations/query.go
- /models/operations/remoteid.go
- /models/operations/request.go
- /models/operations/resync.go
Expand Down Expand Up @@ -364,7 +366,6 @@ generatedFiles:
- /models/operations/retrieveatstag.go
- /models/operations/retrieveatsuser.go
- /models/operations/retrievecollection.go
- /models/operations/retrieveconnections.go
- /models/operations/retrievecrmcompany.go
- /models/operations/retrievecrmcontact.go
- /models/operations/retrievecrmdeal.go
Expand Down Expand Up @@ -489,6 +490,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 @@ -926,6 +928,7 @@ generatedFiles:
- docs/models/operations/listatsusersrequest.md
- docs/models/operations/listatsusersresponse.md
- docs/models/operations/listatsusersresponsebody.md
- docs/models/operations/listconnectionsresponse.md
- docs/models/operations/listcrmcompanyrequest.md
- docs/models/operations/listcrmcompanyresponse.md
- docs/models/operations/listcrmcompanyresponsebody.md
Expand Down Expand Up @@ -1080,8 +1083,9 @@ generatedFiles:
- docs/models/operations/listwebhooksresponse.md
- docs/models/operations/mapresponse.md
- docs/models/operations/option.md
- docs/models/operations/ragcontrollerqueryembeddingsresponse.md
- docs/models/operations/ragcontrollerqueryembeddingsresponsebody.md
- docs/models/operations/queryrequest.md
- docs/models/operations/queryresponse.md
- docs/models/operations/queryresponsebody.md
- docs/models/operations/remoteidrequest.md
- docs/models/operations/remoteidresponse.md
- docs/models/operations/requestpassthroughresponsebody.md
Expand Down Expand Up @@ -1161,7 +1165,6 @@ generatedFiles:
- docs/models/operations/retrieveatsuserresponse.md
- docs/models/operations/retrievecollectionrequest.md
- docs/models/operations/retrievecollectionresponse.md
- docs/models/operations/retrieveconnectionsresponse.md
- docs/models/operations/retrievecrmcompanyrequest.md
- docs/models/operations/retrievecrmcompanyresponse.md
- docs/models/operations/retrievecrmcontactrequest.md
Expand Down Expand Up @@ -1801,6 +1804,7 @@ examples:
createTicketingComment:
speakeasy-default-create-ticketing-comment:
parameters:
query: {}
header:
x-connection-token: "<value>"
requestBody:
Expand Down Expand Up @@ -1882,6 +1886,7 @@ examples:
createTicketingAttachment:
speakeasy-default-create-ticketing-attachment:
parameters:
query: {}
header:
x-connection-token: "<value>"
requestBody:
Expand Down Expand Up @@ -2007,6 +2012,7 @@ examples:
createCrmDeal:
speakeasy-default-create-crm-deal:
parameters:
query: {}
header:
x-connection-token: "<value>"
requestBody:
Expand Down Expand Up @@ -2137,6 +2143,7 @@ examples:
createCrmTask:
speakeasy-default-create-crm-task:
parameters:
query: {}
header:
x-connection-token: "<value>"
requestBody:
Expand Down Expand Up @@ -2406,6 +2413,7 @@ examples:
createHrisEmployee:
speakeasy-default-create-hris-employee:
parameters:
query: {}
header:
x-connection-token: "<value>"
requestBody:
Expand Down Expand Up @@ -2584,6 +2592,7 @@ examples:
createHrisTimeoff:
speakeasy-default-create-hris-timeoff:
parameters:
query: {}
header:
x-connection-token: "<value>"
requestBody:
Expand Down Expand Up @@ -2642,6 +2651,7 @@ examples:
createHrisTimesheetentry:
speakeasy-default-create-hris-timesheetentry:
parameters:
query: {}
header:
x-connection-token: "<value>"
requestBody:
Expand Down Expand Up @@ -2830,6 +2840,7 @@ examples:
createMarketingautomationList:
speakeasy-default-create-marketingautomation-list:
parameters:
query: {}
header:
x-connection-token: "<value>"
retrieveMarketingautomationList:
Expand Down Expand Up @@ -2877,6 +2888,7 @@ examples:
createMarketingautomationTemplate:
speakeasy-default-create-marketingautomation-template:
parameters:
query: {}
header:
x-connection-token: "<value>"
retrieveMarketingautomationTemplate:
Expand Down Expand Up @@ -4020,3 +4032,15 @@ examples:
responses:
"200":
application/json: {"carrier": "DHL", "tracking_urls": ["https://tracing-url.sf.com"], "tracking_numbers": ["track_1029_191919"], "items": {}, "order_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"}
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 @@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
go:
version: 0.6.0
version: 0.6.1
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
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-OAS:
sourceNamespace: go-sdk
sourceRevisionDigest: sha256:448c080067d9756b394d0eb23b801aab8f0d7368672cf91cc2220dee09c93355
sourceBlobDigest: sha256:713f0a4faf73742f535cfe53b021385e24d65199df45d99217e68df12be7c42b
sourceRevisionDigest: sha256:ddbd53ecf79fd9f718003083380ffe83e9f4f2541acc0694f946e3c8d259e67c
sourceBlobDigest: sha256:11ed4be0d33ec3cc2c4c95a2b21ab2e1732bcb9e9760872be99cfaa3ca2b1279
tags:
- latest
- main
targets:
panora:
source: Panora-OAS
sourceNamespace: go-sdk
sourceRevisionDigest: sha256:448c080067d9756b394d0eb23b801aab8f0d7368672cf91cc2220dee09c93355
sourceBlobDigest: sha256:713f0a4faf73742f535cfe53b021385e24d65199df45d99217e68df12be7c42b
sourceRevisionDigest: sha256:ddbd53ecf79fd9f718003083380ffe83e9f4f2541acc0694f946e3c8d259e67c
sourceBlobDigest: sha256:11ed4be0d33ec3cc2c4c95a2b21ab2e1732bcb9e9760872be99cfaa3ca2b1279
codeSamplesNamespace: go-sdk
codeSamplesRevisionDigest: sha256:d3851a6548e3b9452e30507c0c1298e9b9967053f7ff96d6a89097e1cc254d75
codeSamplesRevisionDigest: sha256:63cb71f9b4db2f098b24dc95a3dd4e4e85846f811e4fd223c7394e805bee4e15
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func main() {

### [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 @@ -572,7 +572,7 @@ func main() {

#### [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
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,14 @@ Based on:
### Generated
- [go v0.6.0] .
### Releases
- [Go v0.6.0] https://github.com/panoratech/go-sdk/releases/tag/v0.6.0 - .
- [Go v0.6.0] https://github.com/panoratech/go-sdk/releases/tag/v0.6.0 - .

## 2024-09-17 19:29:30
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.398.1 (2.415.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.6.1] .
### Releases
- [Go v0.6.1] https://github.com/panoratech/go-sdk/releases/tag/v0.6.1 - .
12 changes: 8 additions & 4 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1935,7 +1935,7 @@ actions:
update:
x-codeSamples:
- lang: go
label: retrieveConnections
label: listConnections
source: |-
package main
Expand All @@ -1951,7 +1951,7 @@ actions:
)
ctx := context.Background()
res, err := s.Connections.Retrieve(ctx)
res, err := s.Connections.List(ctx)
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -4661,13 +4661,14 @@ actions:
update:
x-codeSamples:
- lang: go
label: RagController_queryEmbeddings
label: query
source: |-
package main
import(
gosdk "github.com/panoratech/go-sdk"
"context"
"github.com/panoratech/go-sdk/models/components"
"log"
)
Expand All @@ -4677,7 +4678,10 @@ actions:
)
ctx := context.Background()
res, err := s.Rag.Query.RagControllerQueryEmbeddings(ctx)
res, err := s.Rag.Query.Query(ctx, "<value>", components.QueryBody{
Query: "When does Panora incorporated?",
TopK: gosdk.Float64(3),
})
if err != nil {
log.Fatal(err)
}
Expand Down
8 changes: 4 additions & 4 deletions connections.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ func newConnections(sdkConfig sdkConfiguration) *Connections {
}
}

// Retrieve - List Connections
func (s *Connections) Retrieve(ctx context.Context, opts ...operations.Option) (*operations.RetrieveConnectionsResponse, error) {
// List Connections
func (s *Connections) List(ctx context.Context, opts ...operations.Option) (*operations.ListConnectionsResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "retrieveConnections",
OperationID: "listConnections",
SecuritySource: s.sdkConfiguration.Security,
}

Expand Down Expand Up @@ -160,7 +160,7 @@ func (s *Connections) Retrieve(ctx context.Context, opts ...operations.Option) (
}
}

res := &operations.RetrieveConnectionsResponse{
res := &operations.ListConnectionsResponse{
HTTPMeta: components.HTTPMetadata{
Request: req,
Response: httpRes,
Expand Down
9 changes: 9 additions & 0 deletions docs/models/components/querybody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# QueryBody


## 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` | **float64* | :heavy_minus_sign: | The number of most appropriate documents for your query. | 3 |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RetrieveConnectionsResponse
# ListConnectionsResponse


## Fields
Expand Down
9 changes: 9 additions & 0 deletions docs/models/operations/queryrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# QueryRequest


## 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 |
9 changes: 9 additions & 0 deletions docs/models/operations/queryresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# QueryResponse


## Fields

| Field | Type | Required | Description |
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A |
| `Object` | [*operations.QueryResponseBody](../../models/operations/queryresponsebody.md) | :heavy_minus_sign: | N/A |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RagControllerQueryEmbeddingsResponseBody
# QueryResponseBody


## Fields
Expand Down

This file was deleted.

Loading

0 comments on commit 3264714

Please sign in to comment.