Skip to content

Commit

Permalink
[Librarian] Regenerated @ 1b6718f23da76f150eac392860c66a26de9af713 ce…
Browse files Browse the repository at this point in the history
…b130295f80bc623f22496076e3dd57e27da2fb
  • Loading branch information
twilio-dx committed Sep 18, 2024
1 parent 61ba1f1 commit 5e90543
Show file tree
Hide file tree
Showing 108 changed files with 4,771 additions and 41 deletions.
13 changes: 13 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
twilio-go changelog
====================
[2024-09-18] Version 1.23.1
---------------------------
**Library - Fix**
- [PR #256](https://github.com/twilio/twilio-go/pull/256): reverting go imports to previous version. Thanks to [@AsabuHere](https://github.com/AsabuHere)!

**Intelligence**
- Remove public from operator_type
- Update operator_type to include general-availablity and deprecated

**Numbers**
- Remove beta flag for bundle clone API


[2024-09-05] Version 1.23.0
---------------------------
**Iam**
Expand Down
112 changes: 112 additions & 0 deletions rest/assistants/v1/README.md
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)
```

35 changes: 35 additions & 0 deletions rest/assistants/v1/api_service.go
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))
}
Loading

0 comments on commit 5e90543

Please sign in to comment.