initial commit
This commit is contained in:
		
							
								
								
									
										53
									
								
								types.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								types.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,53 @@ | ||||
| export interface Notification { | ||||
|   account: Account; | ||||
|   status: Status; | ||||
| } | ||||
|  | ||||
| export interface NewStatusBody { | ||||
|   content_type: "application/json" | "text/markdown"; | ||||
|   in_reply_to_id?: string; | ||||
|   media_ids?: string[]; | ||||
|   sensitive?: "true" | "false" | boolean; | ||||
|   status: string; | ||||
|   to?: string[]; | ||||
| } | ||||
|  | ||||
| export interface Account { | ||||
|   acct: string; // nickname | ||||
|   bot: boolean; | ||||
|   display_name: string; | ||||
|   fqn: string; // user@instance.tld | ||||
|   id: string; // user ID | ||||
|   note?: string; // bio | ||||
| } | ||||
|  | ||||
| export interface OllamaRequest { | ||||
|   model: string; // must be a valid and locally installed Ollama model | ||||
|   prompt: string; // user prompt | ||||
|   stream?: boolean = false; // stream response vs get response in one full message | ||||
| } | ||||
|  | ||||
| export interface OllamaResponse { | ||||
|   model: string; | ||||
|   created_at: Date | string; | ||||
|   response: string; | ||||
|   done: boolean; | ||||
|   done_reason: string; | ||||
| } | ||||
|  | ||||
| export interface Status { | ||||
|   account: Account; | ||||
|   content: string; // content of the post | ||||
|   created_at: string | Date; // when the post was created | ||||
|   id: string; // ID of the reply itself | ||||
|   in_reply_to_account_id: string; // account ID of the reply | ||||
|   in_reply_to_id?: string; // status that the user has replied to | ||||
|   mentions?: Mention[]; // array of mentions | ||||
| } | ||||
|  | ||||
| export interface Mention { | ||||
|   acct: string; | ||||
|   id: string; | ||||
|   url: string; | ||||
|   username: string; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user