Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

969 B
Raw Blame
// SiYuan - https://github.com/siyuan-note/siyuan
// Copyright (c) 2020-present, b3log.org
// SPDX-License-Identifier: AGPL-3.0-or-later

package apicontract

type ChatGPTAccountRequest struct {
	AccountID string `json:"accountID" api:"optional"`
}

type ChatGPTLoginRequest struct {
	ID string `json:"id"`
}

type ChatGPTTransferRequest struct {
	AccountID string `json:"accountID" api:"optional"`
	Password  string `json:"password"`
	Data      string `json:"data" api:"optional"`
}

type ChatGPTAccount struct {
	ID        string `json:"id"`
	Email     string `json:"email"`
	Name      string `json:"name"`
	Connected bool   `json:"connected"`
	Sharing   bool   `json:"sharing"`
}

type ChatGPTLogin struct {
	ID  string `json:"id"`
	URL string `json:"url"`
}

type ChatGPTLoginStatus struct {
	State     string `json:"state"`
	AccountID string `json:"accountID"`
	Error     string `json:"error"`
}

type ChatGPTLogoutResult struct {
	Revoked bool `json:"revoked"`
}