Created
August 30, 2024 15:21
-
-
Save dskvr/46321b3a97d7a804a035ebbcb2ddcaaf to your computer and use it in GitHub Desktop.
types generated with NIP-11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface Types { | |
contact: string; | |
description: string; | |
fees?: Fees; | |
icon?: any; | |
language_tags?: string[]; | |
limitation?: Limitation; | |
name: string; | |
payments_url?: any; | |
posting_policy?: any; | |
pubkey: string; | |
relay_country?: string[]; | |
retention?: RetentionElement[]; | |
software: string; | |
supported_nips: number[]; | |
tags?: string[]; | |
version: string; | |
} | |
export interface Fees { | |
admission?: AdmissionElement[]; | |
publication?: AdmissionElement[]; | |
subscription?: AdmissionElement[]; | |
} | |
export interface AdmissionElement { | |
amount?: number; | |
kinds?: number[]; | |
period?: number; | |
unit?: string; | |
[property: string]: any; | |
} | |
export interface Limitation { | |
auth_required?: boolean; | |
created_at_lower_limit?: number; | |
created_at_upper_limit?: number; | |
max_content_length?: number; | |
max_event_tags?: number; | |
max_filters?: number; | |
max_limit?: number; | |
max_message_length?: number; | |
max_subid_length?: number; | |
max_subscriptions?: number; | |
min_pow_difficulty?: number; | |
payment_required?: boolean; | |
restricted_writes?: boolean; | |
} | |
export interface RetentionElement { | |
count?: number; | |
kinds?: Array<number[] | number>; | |
time?: number; | |
[property: string]: any; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment