@justaname.id/sdk
Classes
Interfaces
- Address
- AddressResponse
- ApiKeyHeaders
- ApiKeyResponse
- ApiKeyRoute
- BaseResponse
- Coin
- CoinType
- CoinTypeMap
- Configuration
- ContentHash
- Generals
- IHeaders
- IRequest
- IResponse
- IRoute
- IsSubnameAvailableRequest
- IsSubnameAvailableResponse
- IsSubnameAvailableRoute
- Metadata
- MetadataResponse
- ROUTES
- RequestChallengeRequest
- RequestChallengeResponse
- SIWEHeaders
- SIWERequestChallengeRoute
- SIWEVerifyMessageRoute
- SanitizedRecords
- Socials
- SubnameAcceptRequest
- SubnameAcceptResponse
- SubnameAcceptRoute
- SubnameAddRequest
- SubnameAddResponse
- SubnameAddRoute
- SubnameAllCommunitiesWithCountApiResponse
- SubnameGetAllByAddressRequest
- SubnameGetAllByAddressResponse
- SubnameGetAllByAddressRoute
- SubnameGetAllByDomainChainIdRequest
- SubnameGetAllByDomainChainIdResponse
- SubnameGetAllByDomainChainIdRoute
- SubnameGetAllCommunitiesChainIdRequest
- SubnameGetAllCommunitiesChainIdResponse
- SubnameGetAllCommunitiesChainIdRoute
- SubnameGetByDomainNameChainIdRequest
- SubnameGetByDomainNameChainIdResponse
- SubnameGetByDomainNameChainIdRoute
- SubnameGetBySubnameRequest
- SubnameGetBySubnameResponse
- SubnameGetBySubnameRoute
- SubnameRecordsRequest
- SubnameRecordsResponse
- SubnameRecordsRoute
- SubnameRejectRequest
- SubnameRejectResponse
- SubnameRejectRoute
- SubnameReserveRequest
- SubnameReserveResponse
- SubnameReserveRoute
- SubnameRevokeRequest
- SubnameRevokeResponse
- SubnameRevokeRoute
- SubnameSearchDomainResponse
- SubnameSearchRequest
- SubnameSearchResponse
- SubnameSearchRoute
- SubnameUpdateRequest
- SubnameUpdateResponse
- SubnameUpdateRoute
- Text
- TextRecord
- TextRecordResponse
- VerifyChallengeRequest
- VerifyChallengeResponse
Type Aliases
ChainId
Ƭ ChainId: 1
| 11155111
Represents the blockchain network identifier, restricting to specific networks. This type is used to specify and restrict operations to the following chain IDs:
1
: Ethereum Mainnet11155111
: An example of a testnet or custom network ID
Defined in
lib/types/common/index.ts:9
CoinAndDetails
Ƭ CoinAndDetails: Coin
& CoinType
Defined in
lib/utils/sanitizeRecords/index.ts:5
CoinTypeKeys
Ƭ CoinTypeKeys: keyof typeof coinTypeMap
Defined in
lib/utils/cointypes/index.ts:23
GeneralsIdentifier
Ƭ GeneralsIdentifier: "display"
| "description"
| "url"
| "location"
| "avatar"
| "banner"
Defined in
lib/constants/general-fields/index.ts:3
GeneralsName
Ƭ GeneralsName: "Nickname"
| "Description"
| "Website"
| "Location"
| "Avatar"
| "Banner"
Defined in
lib/constants/general-fields/index.ts:1
IROUTES
Ƭ IROUTES: { [key in RoutesType]: IRoute }
Defined in
lib/api/routes/index.ts:67
RoutesType
Ƭ RoutesType: keyof typeof Routes
Defined in
lib/api/routes/index.ts:65
SocialDetails
Ƭ SocialDetails: Text
& { name
: SupportedSocialsNames
}
Defined in
lib/utils/sanitizeRecords/index.ts:7
SocialsIdentifier
Ƭ SocialsIdentifier: "com.twitter"
| "com.facebook"
| "com.instagram"
| "com.reddit"
| "com.x"
| "com.github"
| "email"
| "org.telegram"
Defined in
lib/constants/supported-socials/index.ts:11
SocialsName
Ƭ SocialsName: "Twitter"
| "Facebook"
| "Instagram"
| "Reddit"
| "X"
| "Github"
| "Email"
| "Telegram"
Defined in
lib/constants/supported-socials/index.ts:1
SupportedGeneralsNames
Ƭ SupportedGeneralsNames: typeof GENERAL_FIELDS
[number
][``"name"``]
Defined in
lib/constants/general-fields/index.ts:39
SupportedSocialsNames
Ƭ SupportedSocialsNames: typeof SUPPORTED_SOCIALS
[number
][``"name"``]
Defined in
lib/constants/supported-socials/index.ts:107
Variables
GENERAL_FIELDS
• Const
GENERAL_FIELDS: readonly Generals
[]
Defined in
lib/constants/general-fields/index.ts:12
Routes
• Const
Routes: Object
Type declaration
Name | Type |
---|---|
ACCEPT_SUBNAME_ROUTE | string |
ADD_SUBNAME_ROUTE | string |
CHECK_SUBNAME_AVAILABILITY_ROUTE | string |
GET_ALL_COMMUNITIES_WITH_COUNT_ROUTE | string |
GET_ALL_SUBNAMES_BY_ADDRESS_ROUTE | string |
GET_ALL_SUBNAMES_BY_DOMAIN_ROUTE | string |
GET_ALL_SUBNAMES_BY_INVITATION_ROUTE | string |
GET_SUBNAME_BY_DOMAIN_NAME_CHAIN_ID_ROUTE | string |
GET_SUBNAME_BY_SUBNAME_ROUTE | string |
HEALTH_CHECK_ROUTE | string |
RECORDS_BY_FULLNAME_ROUTE | string |
REJECT_SUBNAME_ROUTE | string |
RESERVE_SUBNAME_ROUTE | string |
REVOKE_SUBNAME_ROUTE | string |
SEARCH_SUBNAMES_ROUTE | string |
SIWE_REQUEST_CHALLENGE_ROUTE | string |
SIWE_VERIFY_MESSAGE_ROUTE | string |
UPDATE_SUBNAME_ROUTE | string |
Defined in
lib/api/routes/index.ts:44
SUPPORTED_SOCIALS
• Const
SUPPORTED_SOCIALS: readonly Socials
[]
Defined in
lib/constants/supported-socials/index.ts:27
coinTypeMap
• Const
coinTypeMap: CoinTypeMap
Defined in
lib/utils/cointypes/index.ts:12
Functions
createAddresses
▸ createAddresses(coins
): CoinAndDetails
[]
Parameters
Name | Type |
---|---|
coins | Coin [] |
Returns
Defined in
lib/utils/sanitizeRecords/index.ts:41
createGenerals
▸ createGenerals(texts
): Text
[]
Parameters
Name | Type |
---|---|
texts | Text [] |
Returns
Text
[]
Defined in
lib/utils/sanitizeRecords/index.ts:68
createSocialsAndOthers
▸ createSocialsAndOthers(texts
): [SocialDetails
[], Text
[]]
Parameters
Name | Type |
---|---|
texts | Text [] |
Returns
[SocialDetails
[], Text
[]]
Defined in
lib/utils/sanitizeRecords/index.ts:50
getCoinTypeDetails
▸ getCoinTypeDetails(cointype
): CoinType
Parameters
Name | Type |
---|---|
cointype | string | number |
Returns
Defined in
lib/utils/cointypes/index.ts:26
sanitizeRecords
▸ sanitizeRecords(records
): SanitizedRecords
Parameters
Name | Type |
---|---|
records | undefined | SubnameRecordsResponse |
Returns
Defined in
lib/utils/sanitizeRecords/index.ts:78