-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Librarian] Regenerated @ 1b6718f23da76f150eac392860c66a26de9af713 ce…
…b130295f80bc623f22496076e3dd57e27da2fb
- Loading branch information
Showing
108 changed files
with
4,771 additions
and
41 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 |
---|---|---|
@@ -0,0 +1,112 @@ | ||
# Go API client for openapi | ||
|
||
This is the public Twilio REST API. | ||
|
||
## Overview | ||
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. | ||
|
||
- API version: 1.0.0 | ||
- Package version: 1.0.0 | ||
- Build package: com.twilio.oai.TwilioGoGenerator | ||
For more information, please visit [https://support.twilio.com](https://support.twilio.com) | ||
|
||
## Installation | ||
|
||
Install the following dependencies: | ||
|
||
```shell | ||
go get github.com/stretchr/testify/assert | ||
go get golang.org/x/net/context | ||
``` | ||
|
||
Put the package under your project folder and add the following in import: | ||
|
||
```golang | ||
import "./openapi" | ||
``` | ||
|
||
## Documentation for API Endpoints | ||
|
||
All URIs are relative to *https://assistants.twilio.com* | ||
|
||
Class | Method | HTTP request | Description | ||
------------ | ------------- | ------------- | ------------- | ||
*AssistantsApi* | [**CreateAssistant**](docs/AssistantsApi.md#createassistant) | **Post** /v1/Assistants | Create a new assistant | ||
*AssistantsApi* | [**DeleteAssistant**](docs/AssistantsApi.md#deleteassistant) | **Delete** /v1/Assistants/{id} | Delete an assistant by ID | ||
*AssistantsApi* | [**FetchAssistant**](docs/AssistantsApi.md#fetchassistant) | **Get** /v1/Assistants/{id} | Get an assistant by ID | ||
*AssistantsApi* | [**ListAssistant**](docs/AssistantsApi.md#listassistant) | **Get** /v1/Assistants | List all assistants | ||
*AssistantsApi* | [**UpdateAssistant**](docs/AssistantsApi.md#updateassistant) | **Put** /v1/Assistants/{id} | Update an assistant by ID | ||
*AssistantsFeedbacksApi* | [**CreateFeedback**](docs/AssistantsFeedbacksApi.md#createfeedback) | **Post** /v1/Assistants/{id}/Feedbacks | Create feedback | ||
*AssistantsFeedbacksApi* | [**ListFeedback**](docs/AssistantsFeedbacksApi.md#listfeedback) | **Get** /v1/Assistants/{id}/Feedbacks | List feedbacks | ||
*KnowledgeApi* | [**CreateKnowledge**](docs/KnowledgeApi.md#createknowledge) | **Post** /v1/Knowledge | Create knowledge | ||
*KnowledgeApi* | [**DeleteKnowledge**](docs/KnowledgeApi.md#deleteknowledge) | **Delete** /v1/Knowledge/{id} | Delete knowledge | ||
*KnowledgeApi* | [**FetchKnowledge**](docs/KnowledgeApi.md#fetchknowledge) | **Get** /v1/Knowledge/{id} | Get knowledge | ||
*KnowledgeApi* | [**ListKnowledge**](docs/KnowledgeApi.md#listknowledge) | **Get** /v1/Knowledge | List all knowledge | ||
*KnowledgeApi* | [**UpdateKnowledge**](docs/KnowledgeApi.md#updateknowledge) | **Put** /v1/Knowledge/{id} | Update knowledge | ||
*KnowledgeChunksApi* | [**ListKnowledgeChunks**](docs/KnowledgeChunksApi.md#listknowledgechunks) | **Get** /v1/Knowledge/{id}/Chunks | List knowledge chunks | ||
*PoliciesApi* | [**ListPolicies**](docs/PoliciesApi.md#listpolicies) | **Get** /v1/Policies | List policies | ||
*SessionsApi* | [**FetchSession**](docs/SessionsApi.md#fetchsession) | **Get** /v1/Sessions/{id} | Get a session by ID | ||
*SessionsApi* | [**ListSessions**](docs/SessionsApi.md#listsessions) | **Get** /v1/Sessions | List sessions | ||
*SessionsMessagesApi* | [**ListMessages**](docs/SessionsMessagesApi.md#listmessages) | **Get** /v1/Sessions/{sessionId}/Messages | List messages | ||
*ToolsApi* | [**CreateTool**](docs/ToolsApi.md#createtool) | **Post** /v1/Tools | Create tool | ||
*ToolsApi* | [**DeleteTool**](docs/ToolsApi.md#deletetool) | **Delete** /v1/Tools/{id} | Delete tool | ||
*ToolsApi* | [**ListTools**](docs/ToolsApi.md#listtools) | **Get** /v1/Tools | List tools | ||
*ToolsApi* | [**UpdateTool**](docs/ToolsApi.md#updatetool) | **Put** /v1/Tools/{id} | Update tool | ||
|
||
|
||
## Documentation For Models | ||
|
||
- [AssistantsV1CreateAssistantRequest](docs/AssistantsV1CreateAssistantRequest.md) | ||
- [AssistantsV1KnowledgeChunk](docs/AssistantsV1KnowledgeChunk.md) | ||
- [AssistantsV1AssistantSendMessageResponse](docs/AssistantsV1AssistantSendMessageResponse.md) | ||
- [AssistantsV1SearchKnowledgeRequest](docs/AssistantsV1SearchKnowledgeRequest.md) | ||
- [AssistantsV1CreatePolicyRequest](docs/AssistantsV1CreatePolicyRequest.md) | ||
- [AssistantsV1SegmentCredential](docs/AssistantsV1SegmentCredential.md) | ||
- [AssistantsV1CustomerAi](docs/AssistantsV1CustomerAi.md) | ||
- [AssistantsV1Knowledge](docs/AssistantsV1Knowledge.md) | ||
- [AssistantsV1Message](docs/AssistantsV1Message.md) | ||
- [ListToolsResponse](docs/ListToolsResponse.md) | ||
- [AssistantsV1UpdateToolRequest](docs/AssistantsV1UpdateToolRequest.md) | ||
- [ListFeedbacksResponse](docs/ListFeedbacksResponse.md) | ||
- [AssistantsV1CreateToolRequest](docs/AssistantsV1CreateToolRequest.md) | ||
- [ListAssistantResponse](docs/ListAssistantResponse.md) | ||
- [AssistantsV1AssistantSendMessageRequest](docs/AssistantsV1AssistantSendMessageRequest.md) | ||
- [AssistantsV1Session](docs/AssistantsV1Session.md) | ||
- [AssistantsV1Policy](docs/AssistantsV1Policy.md) | ||
- [AssistantsV1ToolWithPolicies](docs/AssistantsV1ToolWithPolicies.md) | ||
- [ListKnowledgeChunksResponse](docs/ListKnowledgeChunksResponse.md) | ||
- [AssistantsV1AssistantWithToolsAndKnowledge](docs/AssistantsV1AssistantWithToolsAndKnowledge.md) | ||
- [ListKnowledgeResponse](docs/ListKnowledgeResponse.md) | ||
- [AssistantsV1Tool](docs/AssistantsV1Tool.md) | ||
- [ListPoliciesResponse](docs/ListPoliciesResponse.md) | ||
- [ListSessionsResponse](docs/ListSessionsResponse.md) | ||
- [AssistantsV1Feedback](docs/AssistantsV1Feedback.md) | ||
- [AssistantsV1UpdateKnowledgeRequest](docs/AssistantsV1UpdateKnowledgeRequest.md) | ||
- [ListMessagesResponse](docs/ListMessagesResponse.md) | ||
- [AssistantsV1Assistant](docs/AssistantsV1Assistant.md) | ||
- [AssistantsV1CreateKnowledgeRequest](docs/AssistantsV1CreateKnowledgeRequest.md) | ||
- [AssistantsV1KnowledgeChunkWithScore](docs/AssistantsV1KnowledgeChunkWithScore.md) | ||
- [ListAssistantResponseMeta](docs/ListAssistantResponseMeta.md) | ||
- [AssistantsV1KnowledgeStatus](docs/AssistantsV1KnowledgeStatus.md) | ||
- [AssistantsV1UpdateAssistantRequest](docs/AssistantsV1UpdateAssistantRequest.md) | ||
- [AssistantsV1CreateFeedbackRequest](docs/AssistantsV1CreateFeedbackRequest.md) | ||
|
||
|
||
## Documentation For Authorization | ||
|
||
|
||
|
||
## accountSid_authToken | ||
|
||
- **Type**: HTTP basic authentication | ||
|
||
Example | ||
|
||
```golang | ||
auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ | ||
UserName: "username", | ||
Password: "password", | ||
}) | ||
r, err := client.Service.Operation(auth, args) | ||
``` | ||
|
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,35 @@ | ||
/* | ||
* This code was generated by | ||
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | ||
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | ||
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ | ||
* | ||
* Twilio - Assistants | ||
* This is the public Twilio REST API. | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator. | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
package openapi | ||
|
||
import ( | ||
twilio "github.com/twilio/twilio-go/client" | ||
) | ||
|
||
type ApiService struct { | ||
baseURL string | ||
requestHandler *twilio.RequestHandler | ||
} | ||
|
||
func NewApiService(requestHandler *twilio.RequestHandler) *ApiService { | ||
return &ApiService{ | ||
requestHandler: requestHandler, | ||
baseURL: "https://assistants.twilio.com", | ||
} | ||
} | ||
|
||
func NewApiServiceWithClient(client twilio.BaseClient) *ApiService { | ||
return NewApiService(twilio.NewRequestHandler(client)) | ||
} |
Oops, something went wrong.