POST http://127.0.0.1:8000/v1/auth-methods -H 'content-type: application/json' -d '{"id":"cmdfkjh0n0000668kxq94sigl","platformId":"cmhoo2suf0001wrsvnx5yopev","name":"OAuth1自维护授权","type":"OAuth1","description":"X平台 直接提交所有授权信息，不暴露运营平台身份，需要用户手动登录x平台界面操作后完成相关授权信息的获取。","authFieldsSchema":{"type":"object","title":"OAuth1 授权凭证","description":"直接填写已经获取的 OAuth1 授权令牌信息","properties":{"consumer_key":{"type":"string","title":"OAuth Token","description":"用于标识请求方的 OAuth token (client_id)"},"consumer_secret":{"type":"string","title":"OAuth Token Secret","description":"OAuth token 对应的 secret (client_secret)"},"access_token":{"type":"string","title":"Access Token","description":"最终的 access token"},"access_token_secret":{"type":"string","title":"Access Token Secret","description":"access token 对应的 secret"},"expires_at":{"type":["integer","null"],"title":"过期时间戳","description":"Unix 时间戳，或留空表示长期有效"}},"required":["consumer_key","consumer_secret","access_token","access_token_secret"]}}'

cd /home/developerlmt/projects/turbo-agent/backend/packages/turbo-agent-auth && curl -s -o /tmp/upsert_secret.json -w "%{http_code}" -X POST http://127.0.0.1:8000/v1/auth-methods/cmdfkjh0n0000668kxq94sigl/secret -H 'content-type: application/json' -d '{"id":"cmsecretx000001","name":"x平台运营账号","tags":["x-platform","prod"],"data":{"consumer_key":"vsmkuDe184dAtzreORdvzMfD1","consumer_secret":"Ge169I6bzszKO6YnazfmJ03hKG0yhvJFaHf88UgLK1BhCxJR1h","access_token":"1689809778678063104-4ISoJ6pD7cRbd7ASIEOEZXVSACgeTn","access_token_secret":"NfwCxN0pO243XNsmoykLcp1Npc9oXFntpzSx0FbGN1TTS","expires_at":null},"loginPayload":{"consumer_key":"x_consumer_key","consumer_secret":"x_consumer_secret","callback_url":"https://example.com/callback"},"autoLoginEnabled":false}'