2022-12-08 14:31:51 +00:00
|
|
|
import { TwitterPublicMetrics } from "../pages/api/twitter-auth-info";
|
|
|
|
|
2022-12-05 11:01:24 +00:00
|
|
|
export interface TwitterAuthUrlResponse {
|
|
|
|
authUrl: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface TwitterAuthInfoResponse {
|
|
|
|
accessToken: string;
|
2022-12-05 11:48:09 +00:00
|
|
|
id: string;
|
2022-12-08 14:31:51 +00:00
|
|
|
name: string;
|
2022-12-05 11:48:09 +00:00
|
|
|
username: string;
|
2022-12-08 14:31:51 +00:00
|
|
|
profile_image_url: string;
|
|
|
|
description: string;
|
|
|
|
public_metrics: TwitterPublicMetrics;
|
2022-12-05 11:01:24 +00:00
|
|
|
}
|
2022-12-05 14:16:02 +00:00
|
|
|
|
2022-12-05 15:02:30 +00:00
|
|
|
export interface IcnsVerificationResponse {
|
2022-12-12 06:31:52 +00:00
|
|
|
verificationList: (
|
|
|
|
| {
|
|
|
|
status: "fulfilled";
|
|
|
|
value: {
|
|
|
|
errors: Error[];
|
|
|
|
data: {
|
|
|
|
verifying_msg: string;
|
|
|
|
signature: number[];
|
|
|
|
algorithm: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
status: "rejected";
|
|
|
|
reason: Error;
|
|
|
|
}
|
|
|
|
)[];
|
2022-12-05 14:16:02 +00:00
|
|
|
}
|