Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram). AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan. Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
33 lines
798 B
TypeScript
33 lines
798 B
TypeScript
import api from './api';
|
|
|
|
export const verificationService = {
|
|
requestVerification: async (data: {
|
|
type: 'standard' | 'golden';
|
|
reason: string;
|
|
evidence?: string;
|
|
}) => {
|
|
const formData = new FormData();
|
|
formData.append('type', data.type);
|
|
formData.append('reason', data.reason);
|
|
if (data.evidence) {
|
|
formData.append('evidence', {
|
|
uri: data.evidence,
|
|
type: 'image/jpeg',
|
|
name: 'evidence.jpg',
|
|
} as any);
|
|
}
|
|
const response = await api.post('/verification/request', formData, {
|
|
headers: {
|
|
'Content-Type': 'multipart/form-data',
|
|
},
|
|
});
|
|
return response.data;
|
|
},
|
|
|
|
getVerificationStatus: async () => {
|
|
const response = await api.get('/verification/status');
|
|
return response.data;
|
|
},
|
|
};
|
|
|