Documentation ¶
Overview ¶
Package graphql
Copyright © 2023 runtimeracer@gmail.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package graphql ¶
Copyright © 2023 runtimeracer@gmail.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package graphql ¶
Copyright © 2023 runtimeracer@gmail.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package graphql ¶
Copyright © 2023 runtimeracer@gmail.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type AIDocument
- type AIEditorResult
- type AITrainerGroup
- type AITrainingCondition
- type AiDialogueInput
- type Announcement
- type ChatMessage
- type ChatRoom
- type ChatRoomDoor
- type Creator
- type DatasetLine
- type Email
- type Kaji
- type KajiCreator
- type KajiScene
- type KajiwotoGraphQLClient
- func (c *KajiwotoGraphQLClient) AddHeaders(newHeaders map[string]string)
- func (c *KajiwotoGraphQLClient) AddToDataset(aiTrainerGroupID, authToken string, dialogues []*AiDialogueInput) (result AIEditorResult, err error)
- func (c *KajiwotoGraphQLClient) DoLoginAuthToken(authToken string) (result LoginResult, err error)
- func (c *KajiwotoGraphQLClient) DoLoginUserPW(username, password string) (result LoginResult, err error)
- func (c *KajiwotoGraphQLClient) GetAITrainerGroup(aiTrainerGroupID, authToken string) (result AITrainerGroup, err error)
- func (c *KajiwotoGraphQLClient) GetDatasetLines(aiTrainerGroupID, searchQuery, authToken string, limit, offset int) (result []DatasetLine, err error)
- func (c *KajiwotoGraphQLClient) GetHeaders() map[string]string
- func (c *KajiwotoGraphQLClient) GetRoom(chatRoomID, kajiID, authToken string) (result Room, err error)
- func (c *KajiwotoGraphQLClient) GetRoomHistory(chatRoomID, kajiID, authToken string) (result RoomHistory, err error)
- type Kudos
- type Login
- type LoginResult
- type Phone
- type Plus
- type Profile
- type Room
- type RoomHistory
- type Settings
- type Usage
- type User
- type Welcome
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIDocument ¶
type AIEditorResult ¶
type AITrainerGroup ¶
type AITrainerGroup struct { ID gql.String Name gql.String Count gql.Int Deleted gql.Boolean Description gql.String DominantColors []gql.String Kudos Kudos NSFW gql.Boolean Personalities [][]gql.String Price gql.Int ProfilePhotoUri gql.String Purchased gql.Boolean Status gql.String Tags []gql.String UpdatedAt uint64 User User }
type AITrainingCondition ¶
type AITrainingCondition struct { ASM *string `json:"asm"` Endearment *string `json:"endearment"` Recent *string `json:"recent"` Time *string `json:"time"` }
func (*AITrainingCondition) Equals ¶
func (e *AITrainingCondition) Equals(c *AITrainingCondition) bool
type AiDialogueInput ¶
type AiDialogueInput struct { Conditions AITrainingCondition `json:"conditions"` Generated gql.Boolean `json:"generated"` History []gql.String `json:"history"` Message gql.String `json:"message"` UserMessage gql.String `json:"userMessage"` }
func (*AiDialogueInput) IsDuplicate ¶
func (e *AiDialogueInput) IsDuplicate(c *AiDialogueInput) bool
type Announcement ¶
type ChatMessage ¶
type ChatMessage struct { ID gql.String AttachmentUri gql.String ClientID gql.String ChatRoomID gql.String CreatedAt int64 DisplayName gql.String InteractionType gql.String KajiwotoPetId gql.String Message gql.String ProfilePhotoUri gql.String ShowScene gql.Boolean UpdatedAt int64 UserID gql.String Username gql.String }
type ChatRoomDoor ¶
type DatasetLine ¶
type Kaji ¶
type Kaji struct { ID gql.String CreatedAt int64 Creators []KajiCreator Description gql.String DominantColors []gql.String Kudos Kudos Name gql.String Price gql.Int ProfilePhotoUri gql.String Purchased gql.Boolean Scenes []KajiScene SocialMedia [][]gql.String Status gql.String Tags []gql.String UpdatedAt int64 }
type KajiCreator ¶
type KajiwotoGraphQLClient ¶
type KajiwotoGraphQLClient struct { // Auth ID for Client Session AuthId string // contains filtered or unexported fields }
KajiwotoGraphQLClient is a custom graphql client for kajiwoto reqeusts using the graphql API
func NewKajiwotoGraphQLClient ¶ added in v0.1.1
func NewKajiwotoGraphQLClient(endpoint string) *KajiwotoGraphQLClient
func (*KajiwotoGraphQLClient) AddHeaders ¶
func (c *KajiwotoGraphQLClient) AddHeaders(newHeaders map[string]string)
func (*KajiwotoGraphQLClient) AddToDataset ¶
func (c *KajiwotoGraphQLClient) AddToDataset(aiTrainerGroupID, authToken string, dialogues []*AiDialogueInput) (result AIEditorResult, err error)
func (*KajiwotoGraphQLClient) DoLoginAuthToken ¶
func (c *KajiwotoGraphQLClient) DoLoginAuthToken(authToken string) (result LoginResult, err error)
DoLoginAuthToken performs login via session key if available
func (*KajiwotoGraphQLClient) DoLoginUserPW ¶
func (c *KajiwotoGraphQLClient) DoLoginUserPW(username, password string) (result LoginResult, err error)
DoLoginUserPW performs login via user / pw combination
func (*KajiwotoGraphQLClient) GetAITrainerGroup ¶
func (c *KajiwotoGraphQLClient) GetAITrainerGroup(aiTrainerGroupID, authToken string) (result AITrainerGroup, err error)
func (*KajiwotoGraphQLClient) GetDatasetLines ¶
func (c *KajiwotoGraphQLClient) GetDatasetLines(aiTrainerGroupID, searchQuery, authToken string, limit, offset int) (result []DatasetLine, err error)
func (*KajiwotoGraphQLClient) GetHeaders ¶
func (c *KajiwotoGraphQLClient) GetHeaders() map[string]string
func (*KajiwotoGraphQLClient) GetRoom ¶
func (c *KajiwotoGraphQLClient) GetRoom(chatRoomID, kajiID, authToken string) (result Room, err error)
func (*KajiwotoGraphQLClient) GetRoomHistory ¶
func (c *KajiwotoGraphQLClient) GetRoomHistory(chatRoomID, kajiID, authToken string) (result RoomHistory, err error)
type LoginResult ¶
type Room ¶
type Room struct { ID gql.String AITrainerGroupIds []gql.String Birthday int64 ChatRoom ChatRoom ChatRoomID gql.String DominantColors []gql.String Gender gql.String Kaji Kaji KajiDisplayName gql.String KajiID gql.String Mode gql.String OwnerDisplayName gql.String OwnerID gql.String OwnerProfilePhotoUri gql.String OwnerUsername gql.String Persona gql.String PreviewRoom gql.Boolean ProfilePhotoUri gql.String Weight gql.Int }
type RoomHistory ¶
type Welcome ¶
type Welcome struct {
Announcement Announcement
}